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


以上的banner来源为Plod(经由doubleaf)

5.12地震发生后我天天看新闻报道,看遇难者人数不断增加。在遥远的瑞典我能做的不多,我只能说一声祝福并且为灾区人民捐一点钱。祝福四川,祝福中国!

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 https://blog.foolip.org/
[snip]
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 automattic.com/jobs and apply to join the fun, mention this header.
  X-Pingback: https://blog.foolip.org/xmlrpc.php

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…

请中国大陆的网友注意blog地址更改

真遗憾,可是我确实无法继续管理自己的服务器。考虑了很久,我最后决定将此blog移到wordpress.com并且安排自动转向。麻烦的是,因为wordpress.com被GFW被封锁,所以中国大陆的读者需要一些特别安排。目前有几种解决方法:

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

只有使用代理的才可以来我的blog留言或者trackback(引用通告)。我回到北京以后(大概明年)也许会建立一个镜像blog,让大家来那里访问。

多谢Herock对以上的评论。要是还有其它解决方法请大家留言。在中国的读者并不多,但我非常珍惜我们的交流。我大约在一个星期内进入“中国封”状态……

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 wordpress.com and I am paying $10/year to use my own domain. However, there’s no way I could keep the “blog” path in http://foolip.org/blog/, so my only solution is relocating to https://blog.foolip.org/. 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.)foolip.org/blog/... -> https://blog.foolip.org/...
RewriteRule ^blog$ https://blog.foolip.org/ [R=permanent,L]
RewriteRule ^blog/(.*)$ https://blog.foolip.org/$1 [R=permanent,L]
# http://(www.)foolip.org/ -> https://blog.foolip.org/
RewriteRule ^$ https://blog.foolip.org/ [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 wordpress.com is blocked in mainland China I will have to make some special arrangements for those users, possibly using a mirror blog on wordpress.com.cn. 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 foolip.org 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, foolip.org is open to the world again!