Koen Handekyn
Sunday, January 02, 2011
virtual folder of starred picasa pictures
Below a code example that creates a set of nested virtual folders (using windows system links) of all your starred picasa pictures.
This is perfect for syncing your best photos to your iphone or ipad
Koen
require 'fileutils'file = File.new('C:\Users\Koen\AppData\Local\Google\Picasa2\db3\starlist.txt', 'r')counter = 0lastdir = ""while (line = file.gets)## puts line unless line.include? "2010-10"## puts "#{counter}: #{line}"elements = line.split('\\')## puts elements[-2]next unless elements[-2].include? "2010"subdir = "starred\\#{elements[-2]}"if ( lastdir === subdir )# do nothingelselastdir = subdirputs subdirFileUtils.mkpath(subdir)endtarget = "starred\\#{elements[-2]}\\#{elements[-1].chomp}"instruction = "cmd.exe /c mklink /H \"#{target}\" \"#{line.chomp}\""# puts instructionsystem instructionputs $?counter = counter + 1endputs counterfile.close
Saturday, December 22, 2007
clowntje lucas
Tuesday, May 02, 2006
Lente is in't land
De lente is in't land. Lucas bedelft zijn papa onder het gras. Een overzicht of slideshow.
Wednesday, April 12, 2006
Tuesday, November 15, 2005
bad software
if you have a philips plasma with software release lc4xep1 1.24 s4xgp4 you better call philips to have the software updated. all the bad artifacts will be gone.
philips plasma parameters
my philips plasma 42pf7320 was delivered with the following configuration
152 037 079 113 252 027 019
the 42pf5320 we had temporarely had
152 037 015 241 252 027 019
after the software patch the config was
152 037 015 209 252 027 019
Tuesday, August 16, 2005
Monday, May 10, 2004
Saturday, December 20, 2003
Java Indexed Serialization Package - Tutorial
Java Indexed Serialization Package - Tutorial
An interesting package giving indexed access to serialized objects.
Tuesday, November 18, 2003
Infobel Belgium - Telephone Directories
var clientConfigXmlUrl = "file://C:/amigoTvConfig.xml";
var clientConfig:XML = new XML();
clientConfig.ignoreWhite = true;
clientConfig.load(clientConfigXmlUrl);
clientConfig.onLoad = function(success:Boolean) {
if (success) {
var url:String;
url = this.firstChild.firstChild.firstChild.nodeValue;
trace("gui.SceneLogon.clientConfig.onLoad(): INFO: logon url="+url);
initLoginMenu(url);
} else {
trace("gui.SceneLogon.clientConfig.onLoad(): ERROR: error loading client configuration xml");
}
}
Friday, October 31, 2003
window icon in java
Toolkit tk = Toolkit.getDefaultToolkit();
Image im = tk.getImage('myicon.gif');
setIconImage(im);"
Monday, October 20, 2003
Tuesday, October 07, 2003
Unit Test opgave Toets
De unit test voor de toets vind je hier. Zorg dat je oplossing voor deel twee er ongeveer als volgt uit ziet:
Thursday, September 25, 2003
Monday, September 22, 2003
Wednesday, September 17, 2003
Vakantie 2003
This summer, the graet plains where our destination. We first went to Minneapolis where we visited family. From there we drove all the way to Yellowstone, passing the badlands, the black hills, and more. Here is a collection of some snapshots.
Below is a view on the "Bad Lands".
Wednesday, July 23, 2003
Dover Ramsgate Canterburry
Leaving from Nieuwpoort.
We sailled of to the white cliffs of Dover last weekend.
And had some drinks in Canterburry.
Open XUL Alliance - Creating A Rich Internet For Everyone
Open XUL Alliance - Creating A Rich Internet For Everyone
Sunday, July 13, 2003
Fietstocht
We visited my aunt from Knesselare by bike. A tour of something more than fifty kilometers. A beautifull tropical sunny day in Belgium.

Oostende Light Show
Vorig weekend nog eens in oostende geraakt. Er was 's avonds een "light show". De geschiedenis van Oostende werd verteld op een muziek- en lichtspel. Niet spectaculair, wel onderhoudend. Een gezellige drukte. Vanop de pier kon ik dit beeld vastleggen, camera in manuele stand, rustend op de ballustrade van de pier. Ik liet gedurende 15 seconden licht binnen vallen, het was toen eigenlijk goed donker.

Wednesday, July 02, 2003
An unkown command line utility availlable in windows is 'netsh.exe' that gives command line control of the network interface configurations.
Tuesday, July 01, 2003
From: Sun Developer Network - Forums
"Hi, Could anybody tell me how to put a file in a JMS queue? Is there any way to put the file contents in the queue and retrieve it from the same? Thanks in advance."
The following will work for both text file and binary file:
Sender:
BytesMessage msg = session.createBytesMessage();
File file = new File('Your file path and name');
int length = (int) file.length(); // your file length in bytes
byte[] bytes = new byte[length];
FileInputStream stream = new FileInputStream(file);
stream.read(bytes);// read file into bytes
msg.writeInt(length);// used for receiver
msg.writeBytes(bytes);//
sender.send(msg);
stream.close();
Receiver:
BytesMessage msg = (BytesMessage) message;
int length = msg.readInt();
byte[] bytes = new byte[length];
msg.readBytes(bytes);
FileOutputStream out = new FileOutputStream('New name');
if (out.canWrite()) {
out.write(bytes);
}
out.close();
Friday, June 27, 2003
Werchter 2003. A birthday present of a very good friend of mine resulted in us departing from Antwerp to Werchter without a ticket for a sold out concert. A little crazy, but OK, there's always the street. We were hoping to lay our hands on some tickets that were priced fair. And yes, we found a pair at 50 euro a peice. The consequence: we arrivid early in the morning (5am) back in Ghent after enjoying a triplet of interesting performances: Bjork, Radiohead, Underworld! Bjork received my extra amount of attention and interest: what a contrast, how colourful, from intimicy to explosion.

Saturday, June 21, 2003
Just watched two pretty good movies. I was surprised by 'The Astronaut's Wife (1999)'. I kind of like that kind of movies. The end was kind of weak, but it sticks. The next movie was Changing Lanes. Samual L Jackson is kind of a softie the movie and the end is rather predictable.
Friday, June 20, 2003
How to turn a byte into it's hexadecimal representation in Java:
public static String toHex(byte a) {
final char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
char first = digits[(a & 0xff) >> 4];
char second = digits[a & 0x0f];
StringBuffer hex = new StringBuffer(2);
hex.append(first);
hex.append(second);
return hex.toString();
}
However, it seems that similar functionality is availlable for Integers as member functions of the java.lang.Integer class.
The core need was a function that converts a byte[] into a String containing the hex representation of the array (Conversion.java).
Let's reflect on the past work week for a moment. As often is the case, Monday is spent almost fully on meetings. Tuesday we organized a workshop called "Living Tomorrow". Remarkably enough, the outcome of the outcome of the workshop was that there is no direct desire for gadgets and toys. The focus lies on work-life balance. Gadgets and toys that can help to improve the work-life balance are welcome. A very interesting remark is that the approaches for solving some of the work-life balance issues could be very culturally bound. An example was given with respect to ‘traffic jams’. In China people prefer to live in the city and choose to avoid the commute, in Europe the desire for a house with a garden in a quiet environment seems to be more important still.
Wednesday and Thursday we had a meeting with some people from outside our team. In these discussions we discussed about MHP. For some reasons, the people from www.androme.be are not that fond of it. Today, I ran into some guy from www.streamcase.com, who seems to be more convinced of the relevance of MHP. Europe is pushing the standard and it is expected that by 2006, all of the high-end television sets will have MHP built in. Interactive TV is finally to be there?
Today, I went to see the presentation of the work of our internship students, Steven and Anneleen. They brought a very good presentation. I’m sure they will be more than pleased with the rewarded score.
And for the rest, I had some more fun playing with the J-Plugin for FileMaker. I realized some neat components that could be very useful for FileMaker developers: data change triggers, md5 hash key generation, access to sockets, etc.
www.mhp.org
J-Plugin
Monday, June 16, 2003
Alive and kicking @ 91. Yesterday we had a birthday party. My girlfriends grandmother celebrated her 91st anniversary.

Thursday, June 05, 2003
Kind of big news in fact to post. If all goes well I'll be a daddy somewhere arround december 20th. Seems most of the people I told it to where kind of surprised. Strange feeling, good feelling. Now I've told it to the world and beyond!
We visited "De Kampioentjes", a daycare centre for kids between the age of 0 and 3. The deal is 22 euro, all inclusive. I find it kind of expensive. It seems that a similar service in Aalter is around 16 euro.
De Kampioentjes
Some time ago I had a problem with .NET on my machine. Asmx files were downloaded instead of executed on the server. Doing some searching I discoverd that I could fix the problem by running "aspnet_regiis.exe -s W3SVC/1/ROOT/" from the commandline. The following page was found to be of interest: http://support.microsoft.com/default.aspx?scid=kb;en-us;815175.
Hello All,
I'm not going to bother writing a long first blog about my first blog, but heck, at some point you have to start.
Still no clue what I will be blogging about ...
Take care,
Koen.
