Archive for the ‘General’ Category

Mulholland Drive

Tuesday, January 31st, 2006

Mulholland Drive is a great film. If you haven’t watched it yet, just watch it.

Those lucky enough to be astounded and puzzled by the film have all came up with their own interpretation of the movie.

The most common interpretation is that either the first or the last part is a dream of the opposite part. I’d have to disagree with that for both parts are just too bizarre to be real. However, both parts are pseudo-opposite.

Just take the ’119′ on the firetruck for instance that hasn’t been mirrored, but still reversed.

It keeps you thinking in any case.

PHP’s hidden treasures

Monday, January 30th, 2006

I’ve complained a lot when I worked with PHP about PHP’s terribly inefficient design; I’ve complained about it, just because it was PHP. The things I missed most in PHP, it seems, were actually there all along!

Behold shared memory and yet more IPC.

One reason PHP really sucked was that you need to load small data from and to databases or files if you want to share it between page views. The whole concept of handling a request per page view is ridiculous too, IMO.

With those two libraries however, PHP pages could be way more efficient.

I wonder why the big PHP software haven’t used it. Lets hope it isn’t portability.

Beacon with eggs and …

Saturday, January 28th, 2006

Spam, again on this blog.

It seems those nasty spammers are now using actual people (or an automated browser) to post spam comments, subverting the protection wp-hashcash delivers.

Luckily it are only about two per day, which is very managable, but still annoying.

Like DRM and most other copyright protections, SPAM protection is inherently insecure, for the original openess required to allow a not-spammer to use them is, well, too open.

One interesting thing is that we can fight back now that they are using full javascript VM’s. Matching the spam-ip and letting it execute a rather ‘memory inefficient’ little program would certainly make me smile.

Freelancer hash database

Saturday, January 28th, 2006

The game Freelancer uses hashes a lot in its data files, which gives modders a hard time.

I’ve put a database online, which modders can use to look-up hashes.

mail.w-nz.com

Sunday, January 15th, 2006

I’ve successfully installed vpopmail, qmail and courier today, after some hours of work on this server.
From now on you can send e-mail again to @w-nz.com adresses, which won’t end up in /dev/null. (like bas.westerbaan@~)

To the users of the server: if you want an email-address, mail me.

While testing my smtp server whether it would receive incoming email properly I was harshly confirmed by it being spam instead of my test mail entering my mailbox first:

Hello Spam!
It’s pretty funny to see spam junk in an ancient text-mode mailing program.

If anyone experiences problems with any application not mailing you any verification as it should, please email me. It could very possibly be that the qmail-send isn’t configured properly to allow unauthorized local mails.

Update: More good news, the amount of RAM on my virtual server has increased to 120MB! Which means that my server won’t be swapping instead of working all the time anymore.

Crash

Thursday, January 12th, 2006

For unkown reason lighttpd decided to pump out a log file of a few GB’s, which totally filled the last single piece of free memory on my server, resulting in the malfunction of several server daemons crashing the server.

Anyone has experience with this problem?

Welcome to lighttpd

Wednesday, January 4th, 2006

After a long afternoon I’ve got lighttpd to work with my current apache based layout.

This means I can choose whether to run apache or lighttpd.

Lighttpd is a webserver, like apache. The key advantage of lighttpd over apache is that lighttpd is very light on your server. It uses a lot less memory, which is very nice espacially when considering that my server only has got ~90mB of memory.

The drawback of lighttpd is that it is light and doesn’t support as much as apache does.

It doesn’t do .htaccess files. Everything needs to be configured in the lighttpd.conf, which doesn’t support everything, or at least not in the same way as apache does.

However, lighttpd is pretty easy to configure when you get the hang of it.

One particulair pain in the ass is getting old mod_rewrite using .htaccess to work, for instance the one used by wordpress of this blog.

I’ve added this in my lighttpd.conf:

$HTTP["host"] =~ "blog.w-nz.com" {
url.rewrite = ( "^/(page|archives|comments|search|feed)/" => "/index.php?error=404" )
}

One interesting thing to note is that the configuration file is nothing more than a script being executed for each request.

Welcome to wordpress 2.0

Sunday, January 1st, 2006

I’ve just upgraded my blog to the new wordpress 2.0, which seems to work properly.

Espacially the back-end has got a face lift, which looks and feels really nice.

Update: redid the logo and changed the theme to show the author

And offcourse: Happy newyear!

Merry Christmas

Sunday, December 25th, 2005

Merry Christmas!

Christmas carol

Saturday, December 24th, 2005

What would you do when you need to perform something ‘nice’ on a christmas celebration of your high school?

This is what my brother and Noud did.

Hopefully I`ll be able to grab some photo’s soon and upload them of the stunned faces of the suprised people there.

Switching to Lighttpd

Tuesday, November 22nd, 2005

Recently a lot of people seem to be switching from Apache to Lighttpd, which is a webserver that is said to be a lot faster, but even better it is said to have a constant low memory footprint.

I`m currently compiling lighttpd on my vserver (on which this blog runs), and I`ll switch to lighttpd – which should be as easy as setting some configurations for lighttpd to fit in with the current /var/www model I`m using and simply switching off Apache and switching on lighttpd.

I hope there won’t be a lot downtime.

Update Lighttpd and fastcgi don’t seem to really go together on my server configuration, so no lighttpd for a while :( .

Google Analytics

Monday, November 14th, 2005

Google’s new service to information domination, Google Analytics, it a traffic tracker for your website, originally used with their adwords service, seems pretty nice.

Well.. if it would be responsive, that is.

Worse than being slashdotted, a lot of high-traffic bloggers link to it.

Unintentional Distributed Denail of Service.

If only I could cash it

Tuesday, October 25th, 2005


My blog is worth $2,258.16.
How much is your blog worth?

Enter HashCash 3.0

Sunday, October 23rd, 2005

A new anti-wordpress-spam release of Elliott Back: HashCash 3.0.

Basicly it uses md5, javascript and a bit of AJAX, which is very hard to force except when a spam bot executes the actual javascript.Basicaly it just keeps an “undecipherable” secret which in theory you’d need javascript to decode. The problem with that is that it takes some time to execute the javascript and hopefully will scare the spambot away.

The method isn’t intrusive (although it does require javascript to be turned on), and pretty effective.

Good work Elliot!

Back from Rome

Saturday, October 15th, 2005

I`m back indeed.

Rome is a great city.

Giolitti‘s ice-cream tastes great as does tazza d’oro‘s espresso.

Best building I visited was the pantheon. I like it more than the sixtian chapel, which is overrated in my humble opinion.

(Go Bernini! Boo Michelangolo)

Anyway, I could fill a few pages with my experiences, but I`m to lazy and too excited with my new toy: google reader!

Rome, here I come

Wednesday, October 5th, 2005

I’ll be on a school excursion to Rome for 10 days, from tomorrow Thursday the 6th of October untill Saterday the 15th of October.

NB Contact my twin, Bram, if you would have contacted me.

bram.westerbaan@gmail.com

My wordpress.com blog finally has got an usage

Sunday, October 2nd, 2005

The free wordpress.com blog I got will be used to dump my stupidest, most impulsive and chaotic thoughts or things I want to say.

You’re warned.

Binary Multiples

Saturday, October 1st, 2005

Data size prefixes always have caused confusion.

How much is one MB?

Originally it’s 1024 kB, each kB is 1024B. This makes a total of 10243 bytes (1073741824).

Using 1024 instead of 1000 has its roots in the fact that computers usually work with blocks of 1024 bytes (210).

Other people stick to the SI and deem one MB 10003 bytes (1000000000).

To get rid of confusion binary multiples were introduced. One MiB = 10243, where one MB would be 10003.

Factor Name Symbol Factor Name Symbol
10001 Kilo k 10241 Kibi Ki
10002 Mega M 10242 Mebi Mi
10003 Giga G 10243 Gibi Gi
10004 Tera T 10244 Tebi Ti
10005 Peta P 10245 Pebi Pi
10006 Exa E 10246 Exbi Ei
10007 Zetta Z 10247 Zebi Zi
10008 Yotta Y 10248 Yobi Yi

When buying something one should take notice of this, because the difference between one GB and one GiB is 74MB (or 70 MiB).

With ever increasing storage capability there would be a time where one VendekaByte would be half of one VendebiByte. (Vendika = 1030)

Downtime

Thursday, September 29th, 2005

Sorry for the downtime, it seems that the vServer software hosting this site crashed.

Spam, spam and more spam

Sunday, September 11th, 2005

I noticed I had an enourmous amount of spam in my moderation queue.

The plugin I used to protect myself from spam wp-hashcash, seemed to have been mastered by spammers.

A download of the newest version did the trick.

If anyone experiences problems with posting comments, please mail me.

Update I: Seems some spam prevailed even over this version. I’d better get to making my own custom changes to wp-hashcsah.

Update II: I changed the secret codes in the plugin. And I broke it for a while. Either one of those could have resulted in the fortunate (hopefully not temporarilly) stop of spam.

Update III: According to Elliot Back, the creator of hashcash, the spammers bruteforce the secret value. Changing it usually is efficient enough to keep them at bay for a while. He’s working on a newer version which features bigger, thus harder to bruteforce values. I just hope they won’t suck my bandwidth too much.

Update IV: Unfortunately there seems to be a lot of computing power or a hack behind the breaking of the hashcash security -_-, I keep getting spam :-/