Bortrövat barn tillbaka efter 6 månader

Jag läser på Text-TV att det vietnamesiska föräldraparet i Värnamo får tillbaka sitt barn efter dom i kammarrätten.

En av kvinnans mediciner togs bort under graviditeten vilket ökade antalet epilepsianfall. Men det kan inte motivera att babyn omhändertogs direkt efter födseln, enligt rätten.

Om eller hur ofta de fått träffa barnet under de 6 månader som gått framgår inte. Det vore intressant att veta vilket rätt till skadestånd som finns när staten begår barnarov på halvlösa grunder. Förmodligen ingen som helst rätt, som så ofta… Mer finns på Smålandsnytt och SVT Rapport (video).

Själv åker jag till Vietnam den 16:e juni, men mer om det senare.

祝福灾区人民 Stöd jordbävningens offer



Det är snart en vecka sedan jordbävningen i Sìchuān (uttal) och antalet döda uppskattas överstiga 30 000. Kina-vännen Blogge har reagerat på den svenska rapportering kring katastrofen och visat upp den blodiga verkligheten. Svenskar som vill donera pengar kan göra det via Röda Korset. Välj “Kina – jordbävningens offer”.

How much a thousand words are worth

According to popular opinion, a picture is worth a thousand words. But how much are a thousand words worth? And exactly what kind of picture is worth a thousand words? Important questions which will be given important answers.

What’s in a word?

For calculating the value of 1000 words, finding out the worth of 1 word is a good start. Let’s assume it’s an english word and let’s use Mark Twain’s The Adventures of Tom Sawyer as a sample of the English language. This book has 71343 words averaging 4.158 characters in length. When stored digitally (and uncompressed) an english character requires 1 byte. The average English word would then be worth 4.158 bytes.

If 1 word is worth 4.158 bytes, are 1000 words 4158 bytes? Not quite, because whenever there is more than one word there must be spaces separating them, 999 of them for 1000 words to be exact. The digital worth of 1000 words is therefore 5157 bytes, or just over 5 KiB (5×1024=5120).

5 KiB worth of pictures

So, what kind of picture is 5 KiB in size? Using uncompressed 24-bit RGB color, 5 KiB is only enough for 1706 pixels, roughly a 41×41-sized image. Doesn’t sound like much, but here’s what a wild strawberry looks like:

41×41 uncompressed

Not very impressive, I’d rather keep my 1000 words. To get the most out the 5 KiB, let’s compress the wild strawberry with an image codec suited for photographs, such as JPEG. With JPEG, 5 KiB can be made to last for an image 8 times the size while maintaining decent quality:

164×164 JPEG

To make the 5 KiB last for the whole picture, let’s compress it more:

648×486 JPEG, click to enlarge

No, not quite the quality I had in mind. By downscaling the picture by a factor of 16 we get rid of the worst block artefacts at the expense of detail:

162×122 JPEG

Evidently, 1000 words worth of pictures isn’t much when it comes to photographs. Unless the people who claim that a picture is worth 1000 words are talking about artificial images (like diagrams) or vector images they are clearly mistaken.

Work ad for hackers

I stumbled onto this while verifying that my redirects are working as they should.

$ wget -S
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Server: nginx
  Date: Fri, 16 May 2008 22:40:05 GMT
  Content-Type: text/html; charset=UTF-8
  Connection: close
  Vary: Cookie
  X-hacker: If you're reading this, you should visit and apply to join the fun, mention this header.

I’ve already renewed my contract with Opera for the summer and beyond, but I though it was pretty neat. However, I am not the first to discover this little easter egg…



  1. 订阅我的FeedBurner。图象因为在wordpress.com的服务器还是无法显示。我不能使用FeedSky因为他们的服务器在中国大陆……
  2. 使用Google Reader的可以继续阅读,但也不能显示图象
  3. 使用代理(请参看ProxyCN.COM代理服务器网Tor



Cool URIs must not change, ever!

Despite the infinte coolness of my new server environment I have finally decided to stop hosting my own web server. Shortly after I installed the new silent hard drive my server begun making a high pitch noise, somewhat like a television set but much more annoying. I was very close to sending the hard drive back for repair when I discovered that the noise was actually coming from the processor (an AMD Athlon XP 2800+). The noise pitch changes with the CPU load and no combination of BIOS settings or cooling has made any difference. I’ve never experienced this before and the only solution seems to be buying new hardware (again).

In the long term I don’t want the burden of running my own web server, so I have begun “outsourcing” everything. This blog has been exported to and I am paying $10/year to use my own domain. However, there’s no way I could keep the “blog” path in, so my only solution is relocating to As we all know, cool URIs don’t (must not, ever) change, so for a while I was at a loss about how to redirect my old URLs. Eventually I found a free webhost which supports mod_rewrite and seems fairly solid. I will use this only to redirect, without serving a single file. Writing a .htaccess is very straightforward:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^foolip\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.foolip\.org$
# http://(www.) ->
RewriteRule ^blog$ [R=permanent,L]
RewriteRule ^blog/(.*)$$1 [R=permanent,L]
# http://(www.) ->
RewriteRule ^$ [R,L]

If you are one the approximately three readers of this blog, you don’t need to do anything. Your browser and feed reader will automatically find the way (because cool URIs don’t change). However, as is blocked in mainland China I will have to make some special arrangements for those users, possibly using a mirror blog on As soon as all of that is handled, I will enable redirection and my private web server will enter eternal downtime.

Update: .htaccess made more strict, only redirecting known URLs

Electrolux Ice Server Home Edition

The last week or so has been available only sporadically, as I have moved to a new apartment. After acquiring a new silent hard drive and silenter fans, I had to find a discrete place to put the server. The first though was in the closet (where many respectable home servers live) but that would mean having cables running across the floor. I eventually decided on the cleaning cupboard in the kitchen. I pulled the refrigerator out to make room for some cables when, lo and behold, I found…

Some genius has made room on top of the refrigerator just big enough for my server! It was clearly meant to be…

With the refrigerator pushed back in place, there’s little to tell that there’s a server in hiding. What makes it even cooler (pun intended) is the perfect positioning next to the air circulation system:

Could this all be a coincidence? I think not! Check out the revealing hint in the freezer compartment below…

With my new Ice Server™ up and running, is open to the world again!