Archive for the ‘programming’ Category

Eclipse jacket voor Emiel

Wednesday, August 13th, 2008

En weer valt een goede vriend van mij, dit keer Emiel van Rooijen, in de prijzen. Voor het schrijven van een recensie/review over de Eclipse Ganymede release behaalde Emiel de 2e prijs, een eclipse jacket. Het artikel van Emiel gaat over DTP (Data Tools Platform) een platform voor database development.

Gefeliciteerd Emiel!

Ik vertrouw erop dat je ons binnenkort de ogen uit komt steken met je flashy, 100%-man wear, eclipse jack. Een eclipse jack wordt omschreven in de Hitchhiker’s Guide to the Galaxy als het op één na meest bruikbare voorwerp in het sterrenstelsel. Niet alleen wordt het jack op iedere planeet als modieus en stoer kledingstuk beschouwd tevens dient de drager gezien te worden als een man waar rekening mee gehouden dient te worden. Daarnaast is het jack een open-uitnodiging voor alle feesten die er her en der in het sterrenstelsel gehouden worden. Het meest bruikbare voorwerp blijft natuurlijk, onbetwist, de handdoek.

Ik heb nog nooit wat gewonnen, geen prijzen, geen awards… behalve dan de award van Wowbagger die me uitriep tot meest domme wezen in het sterrenstelsel dat rondloopt op twee benen. Ik overweeg sindsdien amputatie van één van mijn twee benen. Uw eigen wowbagger belediging krijgt u hier.

It never rains it just drizzles…

Wednesday, July 23rd, 2008

Worried about where MySQL is heading? Do your applications rely on a fast, easy and low-footprint database? Then maybe, just maybe, drizzle is the thing for you. Drizzle is about building a database designed for the typical Web usage patterns for a database. It is being designed for massive concurrency on modern multi-cpu/core architecture. The code is originally derived from MySQL. Checkout the WIKI. Drizzle is the shizzle, fo shizzle ma nizzle.

Stallman on Gates’ retirement and OSS

Friday, July 4th, 2008

Richard Stallman, founder of the Free Software Foundation (FSF), has been known for his controversial and sometimes radical statements. So in many cases I don’t (fully) agree with Richard but in this article I like the gest of his article regarding proprietary software and the stranglehold it keeps on its users.

In the article Stallman calls copying software for neighbours a neighbourly thing to do. I feel that if the software is targeted at home users (with acceptable pricing) you should not copy the software. License a copy for a few bucks. However when software is targeted for business-use I don’t think home users should have to pay up. If I were Microsoft, only business/professional use of MS Office would require a license. Home use of MS Office would be free. Does Microsoft really believe that an eight year old who writes a letter to grandma should pay hunderds of dollars for an office license? I don’t think this is very realistic. I would like to see a business plan that projects expected revenue from eight year olds writing letters to grandma. Get out of here!

Read the view of Stallman on Microsoft, Bill Gates and proprietary software in general in his article. Stallman refers to an “infamous open letter” in his article which I reprinted below for your convenience.

(more…)

25 year old bug fixed in BSD Unices

Sunday, May 11th, 2008

Here’s a remarkable report on a bug that has been living in BSD for over 25 years. At one time, BSD-hero, Kirk McKusick implemented the dir* library in BSD to prevent applications from having to implement the directory oriented functions themselves. Afterwards he changed 22 programs that were using direct directory handling to using the operating system functions. The bug could prolong itself for 25 years because it manifests itself in a particular (rare) case:

This code will not work as expected when seeking to the second entry of a block where the first has been deleted: seekdir() calls readdir() which happily skips the first entry (it has inode set to zero), and advance to the second entry. When the user now calls readdir() to read the directory entry to which he just seekdir()ed, he does not get the second entry but the third.

Even OSX has the same problem since it has BSD under the hood. The good news is that BSD now even got better and a small consolation for all coders out there: even Kirk McKusick slips one in every now and then. Happy coding.

44 years of BASIC

Thursday, May 1st, 2008

Example of BASIC programToday is the 44th birthday of the first BASIC interpreter. At Dartmouth college two professors, John G. Kemeny and Thomas E. Kurtz, ran the first program in their new computer programming language BASIC (Beginner’s All-purpose Symbolic Instruction Code). They created BASIC to provide access for non-science students to computers. At 04:00 (AM) on May 1st 1964 the General Electric GE-225 mainframe of Dartmouth college started running a BASIC interpreter. This made the power of computing available to students and staff members who could not program Algol or Fortran.

BASIC was so simple that it became the language of choice for virtual all homecomputers albeit each had its own dialect. Exchanging programs always required considerable porting effort. However the computer industry owes Kemeny and Kurtz a lot. BASIC allowed the computer to enter the homes of millions of users and was one of the factors that made people accept and embrace computers.

BASIC has since evolved into a “serious” object oriented language. The rise of the BASIC compiler made it a viable alternative to develop production code in BASIC. For a long time BASIC was the scripting or ‘automation’ language in a lot of Microsoft products (VBA). I learned to program BASIC when I was 12 and abandoned it a few years later in favor of 6502 assembly. Maybe today is a good day to program a “hello world” in BASIC. You can do that online, have fun.

Patch your live Linux kernel without reboot

Thursday, April 24th, 2008

Now this is a remarkable piece of technology. Ksplice allows you to patch a running Linux kernel without the need to reboot your system. Of course there are restrictions. The patch should not introduce semantic changes to kernel datastructures. Now this is not really a restriction since most security patches won’t change the kernel datastructures and this technique is typically used to apply security patches to running systems. ZDnet also reports on Ksplice.

When I have the time I will definitely play around with this software.

Webby award nomination

Thursday, April 10th, 2008

Yes! A Webby award nomination. No! Not for this stupid blog of course. My good buddy Sander is winning prizes with his Rube Goldberg viral animation. Now the viral is nominated for a Webby. The nomination in itself is a recognition for his work. But let’s help Sander to win the Webby we all know he deserves. Voting can be done here. We keep our fingers crossed. Good luck Sander!

Google App Engine

Thursday, April 10th, 2008

True, true, I don’t like Python all that much. I don’t like programming languages where whitespace matters. Give me brackets, lots of brackets. Anyway this demo is very cool. Recently Google launched Google App Engine. An application hosting engine where everyone can create and upload their application. Here’s a small demo of how simple it is to use Google App Engine. Brett Slatkin uses Python to quickly create a small web application for shouting out messages (twitter anyone?). Nice to watch and makes you want to program something, really just anything. Where’s my editor?

Twitter commandline tool

Friday, April 4th, 2008

Since a couple of days I integrated twitter status updates in my blog. Just for the fun of it. Now I need something easy to post new status messages to twitter. Sure there is the twitter website that you can use to do that but it requires me to logon and then type the status etc. I get tired of just thinking about all that. To ease the pain I added SMS as a channel and added twitter to my instant messenger program. So instead of chatting to a person I can send an update to twitter. This is already much better but I’m really lazy. Basically I want just a small commandline tool that sends the argument I specify as status message to twitter.

Due to the twitter API this is really easy using wget (or you could use curl if you more into that). The script is basically a one-liner that posts the message to twitter. Put the script below in a file (I put it in a file called ‘twitter’). Replace USER with your twitter username and replace PW with your password. Make the file executable and you are ready to go. Here it is:

#!/bin/sh
wget --post-data="status=$@" -q -O - \
"http://USER:PW@twitter.com/statuses/update.json"

Now you can post a message to twitter using:

./twitter "Just bought the new Joe Jackson CD"

Have fun!

Java in 1997

Sunday, March 9th, 2008

Sometimes you have to make room for new books. I usually take the books I don’t use or read anymore and put them in the back of the closet. In this case I came across the book “Practical C Programming” by Steve Oualline 3rd edition of 1997. I don’t know how I got the book, I definitely didn’t bought it myself. Maybe I used it for a training or something. Anyway I went through the introduction about the history of C and other computer programming languages. Here’s a beautiful quote about Java as a programming language:

One of the newest languages, Java, is based on C++. Java was
designed to be “C++ with the bugs fixed.” At the time of this writing,
Java has limited use despite being heavily marketed by Sun
Microsystems and others.

Ok. Thank you. This book can be moved to the back of the closet…