Simply known as the Evo
31.08.2008 13:09
I don't give a lot on fast cars. They are an inefficient mode of transportation and if it wasn't nearly impossible to get anywhere in Slovenia without a car I most likely wouldn't even have a driver's license.
That said, I still couldn't resist taking a ride in this Ferrari F430 when there was an opportunity in Monaco, the last stop of our circle through France.
Oh well, I suppose the environment can take another one for the team.
Stretching brands
29.08.2008 21:04
A telecommunications company, train operator, airline, space agency... and now a carbonated non-alcoholic drink?
Imagine my surprise when I was served this when I ordered lemonade. That's either an incredible lack of imagination on their part or a cunning measure to save on trademark registration costs.
According to Wikipedia's three pages long list of things named like this it's nothing new though.
Pixel art en Provence
27.08.2008 9:55
Aiguille du Midi
25.08.2008 22:09
Speaking of French engineering achievements, here's another one: Aiguille du Midi is an inaccessible tower of rock in the middle of snow, ice and granite. With buildings and walkways on the top. And a cable car that brings you to them from the valley below in some 15 minutes.
This is even more impressive when you get to know that the first version was built before helicopters and that the heavy steel cable was brought up on foot. You can see and feel the huge difference in height from the cable car when it rises almost vertically at the top end of the catenary.
Going to 3800 m above the sea level was an interesting experience by itself. This is most likely far the highest place on Earth I'll ever stand on. Before going on the cable car I did question the safety of making an altitude gain of 2800 m in a couple of minutes without leaving some time for the body to accommodate. Then I saw hordes of other tourists going in and coming back without any doubts in their minds.
While the experience is obviously survivable, the thin air on the top does make climbing 10 steps feel like you're going 10 floors up. It certainly makes you respect people that come this far on their own feet.
And question the sanity of bringing that many tourists there.
Three klicks under
21.08.2008 16:36
Traveling to France I drove under the Mont Blanc last Friday.
When you're focusing on keeping a safe distance from the car in front of you using the lines of blue LEDs as a guide, 11 kilometers don't seem that long.
Only after a day or so I realized that at the deepest point I was under 3.5 km of rocks. In a car, no less.
With all the glaciers and mountains around it it's easy to overlook what an engineering feat this tunnel is.
Videos from Wikimania
13.08.2008 18:32
Video recordings of all sessions at Wikimania 2008 appeared at the Bibliotheca Alexandrina site a few days ago. Among others was also the video of my talk about the technology behind Wikitag, the in-text link generation system I developed at Zemanta.
Unfortunately the videos are only provided in form of pretty large MPEG-2 files and the site seems pretty slow. So I've uploaded my video to YouTube for more convenient viewing. It's split into three parts and a small part of the recording is missing for some reason (which may be for the best, because now you can't see my futile attempt at pitching Zemanta service to Wikipedians).
Here's the first part of it:
(If you can't see the embedded player: part 1, part 2, part 3)
Line voltage drop
09.08.2008 12:54
I was looking at the input and output voltage history of my server's UPS the other day and I noticed this line voltage drop or around 10 volts that occurred sometime in July:
Digging some more into logs I found out that this drop coincides with an hour long black-out in the morning of 14 July. Being a bit suspicious about the quality of the voltmeter built into a cheap UPS I also checked the current UPS input voltage reading against a multimeter and they matched to within 1 V.
It looks like this is still well within the allowed limits though. According to my electrical engineering handbook Slovenian distribution network complies with IEC 60038 standard, which permits tolerances of +6% and -10% from the nominal 230 V. So as long as the there is more than around 200 V in the sockets, I can't complain.
Still it's interesting why this happened. I find it hard to believe that such a consistent drop would be caused by a large load being connected to the network. This is a residential area and people don't tend to run large machinery in their basements. The time of the blackout (from 11 to 12 am) suggests that it was because of planned maintenance (they don't usually tell you about those).
It's possible that the ratio of the local transformer got changed for some reason. Someone closer to it could have complained that they're receiving voltage that is too high. Or perhaps the cause is somewhere further upstream. Maybe a transmission line is out somewhere and they are providing power to our neighborhood through some new route that is has a higher load.
Python readline() surprise
05.08.2008 21:01
If you think Python readline() function works like the C fgets(), you're in for a nasty surprise the first time you'll be using it to read line-oriented files containing Unicode text (like FreeBase data dumps for example).
Check this example:
import codecs
one_line = u"Hello\u2028world!\n"
print one_line
f = codecs.open("tmp", "w", "utf-8")
f.write(one_line)
f.close()
f = codecs.open("tmp", "r", "utf-8")
for line in f:
# How many lines are read here?
print line
f.close()
The loop at the end prints out two lines: one with "Hello", and other with "world!". Of course, once you look into it the reason for this behavior becomes obvious. Unicode character 2028 is a line separator and readline() seems to be smart enough to know this.
This is my first time that I encountered a function that reads a line from a file and has intimate knowledge of Unicode. Since most other such functions only know "\n" (or "\r" or "\r\n" on line-ending challenged systems) it would be nice if this oddity would at least be mentioned in Python documentation.
On the other hand, maybe it's time to put Tab Separated Values file format to rest and bravely step into the bright Unicode-encoded XML-formatted future?
