Archive

172 down, 1 to go

There’s now only 1 credit unit between me and my Master’s degree. My Thesis is done and accepted, all exams are written and I just submitted an application to get my Laudatur and Other Studies entries into the register. Now there’s only a 1 cu Maths assignment left to complete. Let’s see if I manage to get it done before the end of next week…

Word of the Day 0.3

Version 0.2 of the Word of the Day script broke after Urbandictionary changed the source of the website. Version 0.3 works with the new source. Find it on the Projects page.

Some eggdrop tcl scripts

Since I began using the IRC about 3-4 years ago, I’ve come around to write a couple of scripts for my bot. They’re still not really stable nor user friendly, but they do what they’re supposed to. If I’ve got time and motivation, I might continue the development at some point.

One is a simple “battle/vote” script, that takes a set of candidates as argument and “calculates” the winner. The outcome is displayed in percent. You can battle anything: Batman vs Penguin, bananas vs mangos, youtube vs work vs coffee break. But if you throw in Chuck Norris in the fight, he’ll always win.

The other is a reminder script that someone actually might find useful. It can be set to remind anyone of anything at any time (not in the past, though). The time syntax is really liberal, you can tell it to remind you on a specific date and time or in a relative time in the future (like “5 hours”). You can also ask the script to show all active reminders and cancel reminders.

You can find them on the Projects page.

Tomcat 5.5 getSession(true) returns null

This week I’ve been fiddling around with my thesis application, trying to get it up and running again after a hibernation period of almost a year. A lot of things had changed since I last used it, both on the department server and in our database, so I was in for some serious glueing, duct taping and debugging. Most of the problems were quite straight forward to fix, such as the database being out of date, some protocols having changed and so on. But there was one thing I just couldn’t understand.

When my web application tried to create an HttpSession object by calling getSession(true) on the HttpServletRequest instance, it returned null! According to the servlet 2.4 specification, the method must return a new session if it doesn’t exist, so this was just insane behaviour. By reflex, I started Googling for some answers, and it actually took me a while to find the solution.

Continue reading ‘Tomcat 5.5 getSession(true) returns null’

iTunes everywhere

It was great to get the iTunes share to work from my Linux server, but I got thirsty for more! I wanted to be able to listen to my music collection wherever I was. Especially at work and while writing my thesis in the library. This meant that I had to share my music library as an iTunes share over the Internet – fascinating thought. I found some instructions on how to achieve this, but again they weren’t really crystal clear. So this is how I did it.

Continue reading ‘iTunes everywhere’