Sunday, June 25, 2006

320 condoms full of heroin

8:47 PM
Boing Boing reports about a woman being caught with 320 condoms full of heroin in her stomach, and wonders how they found out. This is actually a very common type of smuggling (at least between the Netherlands Antilles and The Netherlands), commonly recognized by the fact that the carriers are not drinking or eating anything while they are on board.

Still, I think 320 condoms is a bit over the top. This must have been one big woman.

Friday, May 12, 2006

Why is web news still text-oriented?

1:28 PM
Yes, why is web news still so text-oriented? I can imagine tech news sites like Slashdot being text oriented, but why would news sites still stick to text-only messages with only a single photo? I regularly read the dutch news site nu.nl, and all it ever does is present short pieces of text. Accompanied by thumbnails, stock photographs that have nothing in common with the text but the theme. For instance, this story is about how a train driver stopped his train and saved a cow. It is accompanied by a thumbnail of a cow. Not of the actual cow that was saved. No trains. No, just a stock photograph.

Anyway, this text-based idiom seems to be a relic from when news was paper-based, when printing space came at a premium. OTOH, the beauty of the web is that you can literally flood people with photographic, space-wasting material. Then why don't they?

Friday, March 31, 2006

Pixels and Web Page Scalability

8:02 PM
Why is it that almost no web sites get font scalability right? Try to zoom the mozilla website. If anybody should get this right, it's them, but no: zoom the page to 250% and you see that everything still breaks down. Text gets too big for the menu bars, the beautiful "Download Firefox" box gets broken in the middle, and so on.

The start page is actually the best-working page on the site when zoomed to 250%. Try this one. The text of the menu on the left starts to overlap the other columns, making them partially unreadable. This is a very common problem with web sites: fixed-size columns. Why do columns need to be fixed-size? First reason: because web developers are lazy have other priorities, and bosses are ignorant demand only that it looks good in IE, that's why!

The most frustrating thing about this is that as long as this is going on, it'll never be possible to buy a nice, new super-high-res monitor that renders a cool 2048x1528 in a space of only 17". After all these years of increasing pixel densities, people still depend on pixels to render their pages, and expect fonts to take up a specific number of pixels. What you'd get when you'd buy a monitor like this is very simple: you'd have to run it at 1024x768 to be able to read a web page without overlapping columns...

Friday, November 18, 2005

How to be a Programmer

1:52 PM
Robert Read has written an excellent piece on how to be a programmer. I wish every one of my future co-workers will have read this document!

The interesting thing is that he sometimes refers to programming teams as tribes. And they are tribes, in a sense. With their rituals, habits, taboos, village idiots. With hierarchy, pecking order, power struggles, gossip. That's what makes it so hard to leave some teams, and what makes it so easy leaving some others.

Thursday, November 17, 2005

Distro Despair

3:05 PM
DVD Jon posts links to Linux distro "despair" posters.

"Last Post"

10:28 AM
Well, not for this blog. But it's funny to notice how many blogs get started and then slowly die without ever being formally declared dead. It's the only place where the "last post" would regain its literal meaning.

Or.... one could go to Slashdot, find a story that was about to be archived, and post there. 1a57 p057!

Monday, November 14, 2005

Cooking for engineers

2:57 PM
Now this is cool: a cooking site aimed at engineers. People who want to understand exactly why you would want to cook stuff a certain way, instead of simply following instructions. For the aspiring food engineer I also highly recommend Alton Brown's books.

Performance != optimizing inner loops

10:18 AM
Check out Jeroen Vermeulen's wishlist for C++. He states:

The CPU cranking through loops is no longer the major time waster in most computer use. [...] Don't believe the benchmarks. Those tend to measure the straightforward, classic computing tasks that used to take so long, way back when.

He then argues that in everyday desktop usage, most of the time is spent in libraries. This is also the reason that many (semi-)interpreted languages fare reasonably well compared to compiled languages: these languages are typically very high-level, so interpreted programs spend even more time in libraries compared to compiled programs. And if the libraries are fast, then the programs are going to be fast -- even if they have to be interpreted on-the-fly.

Let's be honest, what is the biggest problem in desktop computing today? It's "first-time latency" -- the extra time that is added when you do something for the first time, or for the first time in a while. There are plenty of frustrating examples of this behaviour:
  • Start OpenOffice. It takes bloody ages. To make matters worse, it used to display an always-on-top splash screen as well!
  • Open the Start Menu, or one of its submenus. Usually very quick, but sometimes it suddenly takes ages.
  • Expose the desktop when you have a stretched background image on it. If you've been running some memory-intensive task, then it will take up to ten seconds to render the background. Slooooooowly.
  • Open a Windows Explorer. You press Windows Key+E once, and then again when the explorer hasn't appeared 15 seconds later. After 30 seconds, all of a sudden you get two explorer windows.
  • Open a context menu for an item in Windows Explorer. This may take between zero and thirty seconds, depending on whether you've done it before.
If anything should be addressed in desktop performance, it should be this. First impressions are of the utmost importance, and these are all first impressions. Check out Jeroen's ideas on how we can improve startup performance.

Sunday, November 13, 2005

Train Trickery

8:08 PM
Reading this posting about public transport frustration inspired me to write down some of my own experiences.

I take the train to work every day. It's 80 minutes by train (from Nijmegen to Gouda) followed by a 10-minute sprint on my bike. Or, more accurately: it's 90 minutes by train, on average. The Dutch railways have currently got a timeliness factor of about 85%, which means that 85% of trains leave the station on time. Those just happen to be other trains than the ones I'm riding. Granted, my train usually leaves the first station on time, indeed. But a couple of stops down the line it's practically always delayed. The usual cause: no available platform at Arnhem station, leaving Arnhem with a delay, and then getting stuck behind a local train (that was supposed to leave after my train) on the way to Utrecht.

Thank god I have a notebook that I can do some work on: it doesn't actually cost me any time when the train is late. But in order to use a notebook, I need a seat. To be precise: I need two seats: one for myself, and one for my laptop bag, coat, papers, and arm space while I'm typing.

So, how do I accomplish that?

1. I get in at the first station on the line, and the train is empty when I get there, so I get to pick my seat. I always pick a two-seat bench for myself (with no opposing bench), and I sit in the isle seat. That way, people will have to make contact with me when they want to take the other seat of my bench. People in trains usually avoid human contact like the plague, so that usually doesn't happen unless the train is really full.

2. I make the other seat look really full: I put my laptop bag there, some papers, and I hang up my coat next to the window, above the other seat. If anybody is going to sit there, they'll have to wait until I move all of that stuff out of the way. Any passengers coming into the train will take the path of least resistance -- and that's not the seat next to me, unless every other seat in the carriage is taken. And even then a lot of people choose to stand on the balcony.

3. If things threaten to go wrong, I'll put on earphones. It doesn't matter if I actually play music through them -- people will have to tap my shoulders in order to get my attention so that they can sit next to me. Tapping is even worse than verbal contact. Also, I pretend to be very focused on my work, to have an excuse for not noticing any visible or audible cues that indicate someone might want to sit next to me.

Visual Studio stuff

5:18 PM
With the recent commotion on VS2005 being full of bugs (because they declined to postpone the release even when there was a consensus among customers that it should be done; dissenting post here), I read a number of comments saying that VS2003 is full of bugs as well. Well, I disagree. Compared to VS6, the quality of VS2003 is tremendous. Especially the C++ compiler. In VC6, I would run into an internal compiler error every week on average, while in VS2003 I have only run into one or two compiler bugs to date. I guess they dogfood this part of their product the most: the big internal MSFT apps are probably all written in C++, and not in .NET. If that's true, then it's not surprising that most of the problems that are found in VS2005 are problems in the .NET arena.