Less
There are very few rules in programming that are always right. Ever rule ends up losing a fight when it ends up in the wrong corner.
There is however one rule that seems to be always correct, in whatever code base it wanders into, and that rule is : less.
Because you see, less code is less prone to have bugs, because there is less of it.
Concise is also less than verbose, which means that if you go less you have a good chance of making yourself understood.
Less also tends to be faster because there is less to transfer and execute.
You are forced into writing better abstractions by writing less code, because you have less real estate to express semantics.
Redundancy is reduced by orders of magnitude when you try to have less code because redundancy is trivial to remove.
Less is easier to refactor, because you have to refactor less.
You could try to argue that less is just the result of striving for orthogonality, speed, clear code and zero bugs, and that I have it backwards. But you would argue wrong.
Add comment January 23, 2010
I like, eees nice
Sometimes I like to prepare food. I would use the word ‘cook’ but that could remind you of a real cook. Someone like him

or her

( i also like, eees also nice )
So let’s just call me a food-preparer. Basically, I like to keep it very basic, putting my faith more in my ingredients than in my own food-preparing skillzzzz.
However, how-very-much-ever, I do need to use the same utensils that actual cooks use. And my main utensil is the venerable wok.
Since I don’t have one of these bad mofo’s :
I don’t use one of these babies :

But I did use one of these beauties :

A cast-iron Le Creuset wok. Its ability to store a lot of heat, made it possible to do some reasonable wokking on a vitroceramic cooking plate.
Cleaning it afterwards is something else. The best way to do it was to fill it partly with water and some washing powder and letting it soak for a night.
And even then, you’d need to scrub and scratch until completely ready for the next session. Yes, I do know that you have to season it, by letting some arachide oil cook in it for a while.
This is something you have to repeat when the wok becomes sticky again, but mine turned sticky right away. The seasoning itself is not a pleasant task either. Would like you to keep yourself busy watching hot oil boil in a pot? Not to mention the fact that the whole house smells like a fastfood joint afterwards.
So I decided that seasoning was not for me, and continued using the sticky wok while thouroughly cleaning it afterwards.
That is why I am so happy that I have recently acquired this fly boy :

It has a non-stick Thermolon layer which can withstand temperatures of 400+ degrees celsius and is completely non-toxic. It’s also much smoother than Teflon.
If you dig in, and read the interweb reviews for Thermolon pans you will find two camps : very happy or very sad customers.
Some claim that the non-stick properties soon fade, and that the layer starts to crack.
Since I have only used it once – which great results - I can’t really comment on the long term quality. What I did find out however, is that you need to let it heat up sufficiently because some foods can stick to it at lower temperatures.
I had absolutely nothing stick to it, and cleaning it consisted of a rinse with some soapy water and a soft sponge.
So this wok is another great addition to my food preparing arsenal. I will keep you guys posted on the long term effects of food preparing on this wok.
1 comment December 1, 2009
Nice Try G-men
OK, so Microsoft tries to launch something revolutionary – with Bing Visual Search, which is a nice idea but won’t alter the search landscape much -, and immediately Google tries to one-up the Redmond boys by making something out of their Beta stable accessible to the public.
The thing we are talking about is Google Fast Flip.
Now don’t get me wrong, I welcome new superfluous extravaganza on the web as much as the next guy, but why in heaven’s name would I want to use Fast Flip, when I already have a boatload of newsfeeds in Google Reader.
How is this Fast Flip any different from manually polling websites to see whether there is something new? I tried that once, it almost killed this whole internet thing completely for me. Well, sort of.
It looks nice, and is pretty fast, but either I seem to completely miss the point, or Google has finally made something which is utterly useless.
How many times do we have to repeat this – actually I have never ever said this, some other guy did, but not me – : the web is not printing on a screen.
If Fast Flip is a good idea, why not print hyperlinks in a newspaper and expect people to type them in their browser’s address window? Because a printed medium is not the web on paper.
This post could very well lead to a meganormous rant about the fact that people should use RSS – and by default Google Reader – to stay up-to-date, not visit websites time and time again
But it won’t. I’m saving that for another day. Although really, you should. Use RSS that is. And Google Reader. But not Fast Flip. Never that.
Add comment September 15, 2009
The Return of the Comeback II
Should you be wanting to comment on that special YouTube vid, but lack the time to think of something to say, here’s the all new Best of YouTube Collected Comment Snippets for you.
- gay
- rofl
- you’re so stupid
- nOOb
- f*ck *ff you liberal commie
- my brother can do this too, but way better
- my mum can do this too, but way better
- your mum is gay
- if you’re so good let’s see your vid
- gay
- lolZ
- ghetto power – check me at www.ghettopowerrulezforever.net
- lol, U r NOT from the ghetto, you’re from the gay-to
- i saw him live in 1997
- me in ‘95
- ‘95? back he when he was gay? like you?
- stop hatin gays
- stop gaying hate
- pepsi is so waaaay better than coke
- coke is the shitz, pepsi is da ballz suxor
- dude where’s my car
- you’re car is gay dude
- first
- you should get off the crack pipe
- you should get off the crack ho
- at least i’m not gay…
- “this fire is out of control, we need more water, sand, …anything” thats da best line ever
- “this fire is out of control, we need more water, sand, …anything” lolz
- “diz fire is out of control, wee need mor water, sand, …anyting” lolw
- “this fire is out of control, we need more water, sand, …anything”
- “this fire is out of control, we need more water, sand, …anything”
- rofl 1:12 –> “this fire is out of control, we need more …”
- that wuz the gayest movie evr…sooooo gay
- second
- gay
( any similarity between these and actual YouTube comments is completely and utterly semi-coincidental )
Add comment July 6, 2009
Compile-Time Log2
While I was looking for a compile-time Log2 calculation for integer numbers, I couldn’t find anything simple and concise enough.
So I wrote something myself, putting all my trust in the good old compiler. This is what I came up with. It’s so simple that I cannot believe nobody came up with this before, but anyways, here it is :
//Description: a compile time truncated log2 for integer values
template< size_t ac_Val > struct CLog2
{
static const size_t result = CLog2< ac_Val / 2 >::result + 1 ;
};
template<> struct CLog2< 1 > { static const size_t result = 0 ; } ;
template<> struct CLog2< 0 > { } ; // undefined
Of course, the truncated Log2 is also the index of the highest set bit in an integer number.
3 comments July 4, 2009
Extremely concise guide to hotel guides
If there are no pictures of the exterior then it probably looks like one of these :



If there are no pictures of the rooms then then they probably look like one of these :


Add comment June 17, 2009
Deleting Files ( on Windows )
Shift + Delete = Bad
Delete = Good
Shift + Delete = False sense of empowerment
Delete = Wise approach to one’s own fallibility
Shift + Delete = Lost forever
Delete = Still there when you need it
Shift + Delete = Old Fool
Delete = Old Skool
Shift + Delete = Clever road to utter madness
Delete = Becoming one with the universe
The only thing you need to remember is :


7 comments April 3, 2009
Home Entertainment Schmamblings
Between the last article and this one I have been busy putting together our home entertainment system.
Since I like Visio, I made a diagram in Visio.
Interesting items in this setup :
- Popcorn Hour media player
- Western Digital MyBook NAS
- DVB-T antenna
This setup does not include digital cable television. Currently we get a couple of real good stations through our antenna. So we get to see the news and several very good shows. This is more than enough for us for what tv is concerned.
We also use it for radio. The disadvantage is that your tv has to be on, because it contains DVB-T decoder.
The Popcorn Hour media player is the device that connects to all media that is not tv or radio : it streams off the MyBook NAS, internet stations and USB storage. It is also capable of acting as a server, but I do not have an internal drive for it yet. That internal drive is going to be a Compact Flash card with a CF to SATA converter module.
For two reasons : it’s fast, quiet and cool. Well, that’s three reasons. So three reasons then : fast, quiet, cool and cheap. Again, the four reasons for using a CF to SATA converter are : fast, quiet, cool, cheap and an almost fanatical devotion to the pope.
This is not the ultimate setup. There is no ultimate setup. Video format wars, hardware vs software dialectic, smaller and faster components, network technology advancements and Boxee are all things that make your setup quite crappy in regard to the ultimate setup. Which does not exist, but would currently be something like a mix between LinuxMCE, Boxee and Apple TV. All of this working flawlessy of course, playing every media format known to man.
The disadvantages of our current setup are :
- Popcorn Hour does not have a movie or music jukebox built in
- Popcorn Hour does not seem to play .mp4 files that my Lacie Cinema Premier did play. They play but there is no sound. And by playing them, the Philips Soundbar is audiophonically tilted, refusing to play any more sound.
- .mkv files seem to work best for the Popcorn Hour. But alas they do not play well on the Vista laptop using either VLC or Mediaplayer, nor on the Aspire One using VLC. Apparently MPlayer would be the solution for the Aspire. One more media player removed from bliss.
- There is no tv recording.
- There are three remotes. This will be remedied in the future with a Logitech Harmony 885.
You could probably come up with a couple more disadvantages, but I’m quite happy with this setup. My main requirement was bridging the lean-forward pc media environment to the lean-back television world. Having the complete South Park collection at my fingertips sitting in a comfy sofa is a great feeling. A reward for all those years of neck- and backache inducing late night pc sessions.
Note : you could be thinking when reading this article that the all the devices in the network have access to the internet. But this is not so. Only the laptop currently has got an internet connection in the form of a USB modem using the GSM network. The real internet will be installed on March 10.
1 comment February 12, 2009
Home Entertainment Ramblings
A while ago we moved to our new house. At last we have the space and comfort we always wanted. And comfort is relative, since several parts of the house still need to be completed. But the essential things are there. Well the essential essential things at least.
One thing that we do already have is a new tv. I have searched high and low for the optimal television set. Plowed through endless lists of specs, prices and reviews. I also went to electronics shops to see for myself what the picture quality of some of these tv’s was really worth.
The result of the search was this tv :
I ordered it online, from Redcoon.be. Its price was unbeatable for this particular model. But do your own research before buying one, things move fast on the web. Just google for ‘<thing you want> price [|prix|prijs|preise]‘.
The next thing on my list was a decent set of amplifier and speakers combo. I didn’t really care for a specific setup like 5.1, 6.1, 7.1, plain stereo, biamp stereo,… It just had to be something relatively cheap – which rules out high-end receivers and speakers – and decent sounding.
And the results of the groundbreaking jury ( that’s just me in fact, there’s no real jury, I just made that up for effect, but I soon realised that this lie would not hold for long, so I just thought it better to confess right away ) are :
This device uses a technology that creates surround sound using just one speaker cabinet. Of course you need the subwoofer for the lows as well. Two features, simplicity and compatibility, made this device stand out from all the others.
It has been ordered, but not yet delivered.
So now that we have the two main devices sorted, the question poses itself : what to hook up to them? How to have a big collection of movies, music and photographs that is accessible from anywhere in the house?
Do I use small specialized pc’s? Or dedicated devices?
Do I buy a media streaming client? And a server? Or do I set this up with an old pc featuring Ubuntu? Or should I look at media disk drives?
Will I switch to Apples’s iTunes/iPod/Apple TV?
Every setup has its drawbacks and imperfections. It looks as if with current technology you should be able to make a setup that is perfectly suited to your needs, but whatever you think of, there is always a catch.
And the truly terrible thing is : whatever you eventually install, you’ll always have that nagging feeling that you did it wrong.
Next time I’ll ramble some more about possible setups and their drawbacks.
And what the hell is up with these expensive HDMI cables anyway? Don’t people realise that a digital signal is mostly an all or nothing affair over such a short distance? Either you have bytes or you don’t. The bytes don’t care about gold or nickel, shielded or unshielded, expensive or cheap. This is more than adequate.
Add comment January 17, 2009

