Archive for the 'All software sucks' Category

IE6 users: upgrade your browser — now!

Up until now, I haven’t really cared what browser people are using. I haven’t designed any commercial web sites for a long time and in the research projects I worked on at HIIT, we always had a target device or target browser, disregarding the poor bastards that didn’t use the right equipment.

Things are different now. I’m developing a real web application for real people with real browsers (or not), which means that I more than ever need to take into consideration what gear people are using our application with. This would be fairly simple if it weren’t for all web designers nemesis: Internet Explorer 6. Let us together once and for all put this freak to rest. Please.

Continue reading ‘IE6 users: upgrade your browser — now!’

Rewriting the WPG2 URL

I’m sick and tired of the new WPG2 plugin for Wordpress forcing me to use the embedded gallery page. Sure, nowadays you can configure it to look identical to the actual gallery, but that doesn’t satisfy me. Since my gallery is on another virtual domain (gallery.fredrikbostrom.net as opposed to blog.fredrikbostrom.net) I want the images in my Wordpress sidebar to link to a page where the URL tells me that I’ve moved away from the blog and am now viewing the gallery. WPG2 version 3.x doesn’t do this, so I decided to fix it myself (yet again a case of “if you want something done, do it yourself).

Continue reading ‘Rewriting the WPG2 URL’

WPG2 fuck-up

I just upgraded my Wordpress along with all my active plugins, and apparently the WPG2 plugin has broken my blog. When trying to read a full blog post, you are instead redirected to my gallery’s front page.

I’ll try to fix the problem asap.

MacBook hard drive failure

I’ve been separated from my MacBook for a week now, and I’m in pain. Ok, it’s not actually my MacBook since it’s my work computer, but I’ve grown so fond of it that it hurts to be without it. Apparently, the hard drive is broken (or at least the file system is corrupted), so it had to be handed over to the Apple authorities for surgery. They’ll probably replace the hard drive, forcing me to re-install and reconfigure the machine. This all started with an OS X upgrade from 10.5.2 to 10.5.3 which wouldn’t install properly.

Continue reading ‘MacBook hard drive failure’

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’