Archive for April, 2011

Setting up a VPN Server on Mac OS X 10.6 >

Tuesday, April 26th, 2011 | Permalink

I was just looking around for a possibility to connect to my computer at home secure thru a VPN. Unfortunately my router at home has no VPN feature implemented. As with most broadband packages, you get the cheapest router possible from your ISP. In my case I rely on the router as I get my television signal thru my internet connection and the router works as an authentication device for the media box from my ISP.

Anyway… I found a pretty exciting tutorial about setting up a VPN server on a Mac OS X machine on theilluminatedengineer.com.
Took me about 10 minutes to set it up and have it up and running.

Pretty thrilled by node.js

Wednesday, April 13th, 2011 | Permalink

How could I have missed that?

node.js is an evented I/O for Google V8 engine.

Okay, so what does that mean?
Basically it means it is a library on top of V8 that enables you to do things with JavaScript that haven’t been possible before. Things like coding and running your own webserver or tcp server. As nodejs never stops running processes it can do several things at the same time. Like running the webserver and doing calls to another webserver at the same time, for several users and without running more than one process.

To be honest it is easier if you just watch this video. It’s worth watching!

Update on hacking PHPList to redirect subscription and unsubscription page

Wednesday, April 13th, 2011 | Permalink

About 4 years ago I wrote a post about hacking PHPList to redirect the subscribe and unsubscribe pages. It is one of the most read articles on my blog. And has around 50ish comments right now. It seems like there is still a high demand for a solution.

I didn’t do much work with PHPlist since then, but from looking at the current version 2.10.13 I would assume the following works.

Please be aware that this is totally untested and just a guess. So if anyone could test this and comment here, I would appreciate it.

Code has changed a lot since I have downloaded the project the last time. There are now functions instead of spaghetti code. To be fair, there is still a lot of spaghetti code. Anyway I still think PHPList is an awesome product. Especially as an open source solution.

Seems like the structure is till the old one. All main functions are located in lists/index.php.

For the subscribe page go to line 404 and look for:

function subscribePage($id) {

This leads you to the function that is generating the subscribe page.

Looking for the line 525 there is a

return $html;

Remove that line and replace it with a

header("Location: YOURURL.com");

For the confirmation page go to line 528:

function confirmPage($id) {

Look for return $res; in line 580.

Comment it out or remove it and replace it with the header redirect.

Finally go to line 583 for the unsubscribe page.

function unsubscribePage($id) {

You will find in line 700 the

return $res;

Same procedure here.

This is only working if PHPlist is not writting a header up front.

As I mentioned in the beginning, TOTALLY UNTESTED NO GARANTUEES.

How does a Facebook server look like?

Friday, April 8th, 2011 | Permalink

Facebook today announced an open source project called Open Compute Project.
After Google showed how their servers are design, Facebook even went a step further and presented CAD files and detailed hardware information so everyone can build his own Facebook server.
They removed everything that is completely useless for a server from the motherboard and designed an open chasie.
More information about Open Compute Project can be found on http://opencompute.org/