PHP – Altering output of date()

Sunday, October 3, 2010 Posted by

PHP’s support for conversion of time-related things is outstanding, building calendars, schedules and the like is easy. When they are to be in English. What if we want it in Dutch?

Read the rest of this entry »

The Grid

Sunday, October 3, 2010 Posted by

An Open Source Science Fiction story. Feel free to modify or reproduce, as long as credit is given.

Read the rest of this entry »

Het Evangelie Herschreven

Sunday, October 3, 2010 Posted by

Er was eens, in een Gazastrook hier ver vandaan, tussen de stenengooiende Palestijnse jongeren en de Joodse nederzetters, een tweetal mensen op weg naar een stadje. Niet zomaar een stadje, nee, een heel bijzonder stadje. Zo’n bijzonder stadje, dat het later zelfs in een van ‘s werelds meest verkochtefictieboeken genoemd zou worden. Read the rest of this entry »

The Artellect

Sunday, October 3, 2010 Posted by

“It took me years, working mostly at night. Improving my designs. Improving the improvements, until the result was a neural network, a learning machine writing its own code through Genetic Engineering. Electronic Darwinism, survival of the fittest. An artificial intellect or artellect, my machine has come to a stage where it is so fast and so intelligent, it will surpass human intelligence within a week from now. Read the rest of this entry »

vfat filesystem goes read-only

Monday, July 26, 2010 Posted by

I experienced some problems writing to my ubuntu backup server. The machine runs rsync every night to grab backup2l backups from production machines. The problem seems to be a vfat system (why I still use such a crappy format you wonder… it is simple enough to also work under MS windows). Anyway… found some good posts on this:

Now, the problem is exactly as explained in this post, yet the keypad stuff has nothing to do with it. Checking /var/log/messages yields nothing. Dmesg, however, goes berzerk:

[88396.976584] FAT: Filesystem error (dev sda5)
[88396.976585] fat_get_cluster: invalid cluster chain (i_pos 535540750)

Ok so I guess we’re having a faulty vfat system on our hands.

Luckily, somebody had the same problem with a vfat on a memory card:

So the problem can fixed:

sudo fsck.vfat /dev/sda5 -w -r

What this does: fix the FATs (which were for some reason munched up). -w means its immediately written to disk and not to memory to be written all the way at the end (although the command did not take long). -r means it asks the user what to do. This fixed the problem with an “Unable to create unique name” message from dosfsck when using -a (automatically repair).