Electricmonk

Ferry Boender

Programmer, DevOpper, Open Source enthusiast.

Blog

Archive for January 2006

Floating point stuff in Bash

Shell scripting is powerful, but unfortunatelly it gets less easy if you want to perform floating point calculations in it. There’s expr, but it only handles integers: [todsah@jib]~$ echo `expr 0.1 + 0.1` expr: non-numeric argument If you wish to perform floating point calculations in shell scripts, you can use the bc tool: “bc – […]

Learn your language’s basic features

Sometimes I’d really like to bash in my own head with a 2×4. I just spent at least 20 minutes figuring out why the boolean expression ($options & PW_SORT_DATE == PW_SORT_DATE) didn’t evaluate to true, even though $options had a value of 2 and so did PW_SORT_DATE. Then I suddenly realised that PHP’s == operator […]

Monsieur Cannibale

Check out singer/songwriter Monsieur Cannibale. Excellent stuff.

GPLv3 Draft

It’s out in the wild: The GNU GPL v3 Draft.

Change blindness

This is pretty cool. Try to see if you can spot the change that occurs during the flicker (after about 1.5 seconds) in this image: Kayak Now try it in the same image without the flicker: Kayak More information in this paper

Slashdot VS digg

There’s been a lot of talk lately about how Digg.com will be the new slashdot , whereby Slashdot.org receives a lot of complaints and Digg.com receives a lot of praise. Most of these are comming from the Digg camp. There’s a article on The Guardian right now prematurely talking about Slashdot’s demise. “Slashdot will take […]

Alarm.sh v0.2

Alarm.sh v0.2. Get it while it’s hot! Changes: No output shown when in daemon mode anymore. Alarm.sh no longer adds alarms with an invalid date/time.

Bad surveys

Since I graduated and got my bachelors degree, I’ve regularly been approached to participate in various surveys. Among them have been polls on the impact of pre-education on my last education, quality of my latest education and various other surveys. To date I have not seen a single poll which was straight-forward in it’s questions. […]

Some (Debian) backgrounds

I found some Debian (and one Linux) backgrounds I had created some time ago on my computer. Decided to put them online.

localenv v0.1

localenv is a collection of scripts that run other scripts and replace (configuration) files depending on the current profile, which is determined by the network you’re currently on. It is ideal for laptop owners that move between different networks. Scripts are provided for discovering which network you’re on (by using known MAC addresses of machines […]

The text of all posts on this blog, unless specificly mentioned otherwise, are licensed under this license.