Archive for January, 2006

PCTV version 2

Monday, January 23rd, 2006

Version 2 of Telenet PCTV has been released today (if you’ve read my other posts, you understand what a busy time I’ve had lately). Main new features are:

More exciting new features are coming, so stay tuned!

Telemeter

Monday, January 16th, 2006

The new Telenet Telemeter was released this weekend. Telenet is one of the two greatest Belgian cable providers. The telemeter is a tool where you can view how much data you have uploaded and downloaded. It is also possible to specify if (and when) you want to get an e-mail or a webpage when you have reached for example 80% of the monthly volume that you can download.

This project interfaces with the Telenet backend by using Hessian (we first used Axis, but since both application are written in Java, we decided to switch to Hessian in order to have a performance gain). The switch from Axis to Hessian was simply a matter of switching Spring configuration, which again indicates the cleverness of the Spring framework.

The application displays some charts. After a rather negative experience with jFreeChart and CeWolf, we decided to use FusionCharts, a flash application which uses XML to render the graphs. This choice has a lot of benefits:

  • The XML is very easy to understand and generate
  • Load is moved from the server to the client
  • It’s easy to switch layout and graph type
  • The graph can contain a lot of useful information without using huge html imagemaps
  • The graphs can use animation, which give a wow-effect to the end-user

The telemeter now runs very fast (considering what happens behind the scenes) on a WebLogic cluster, but had some initial load problems because of another application that was running on the same server that crashed it.

It is sometimes humorous to read the post on the Telenet user forums, where a lot of people (mostly teenagers have nothing else to do besides downloading movies from newsgroups and complaining about the data limits) report errors which most of the time are just because of their misunderstanding of the application.

I myself am convinced that the data limits are needed so the network stays fast for everyone and isn’t slowed down because some guys want to watch illegal low quality movies. But, of course, this is my own humble feeling about it.

CM Site

Monday, January 9th, 2006

Today the new CM site went live. I the role I played in this project was limited to optimisation of the database code (Hibernate tuning) and some small Java development. The site runs on Tridion and Oracle Application Server.

One piece I’m particularly proud of is the selection of postal codes and cities. You can try it out here. It suggest possible cities while you type, and supports both mouse and keyboard navigation. There is also a fallback on the server when the browser doesn’t support (certain parts of) javascript.

Instead of cluttering the html with javascript, I wrote a .js file which registers methods like ‘onmouseover’ and ‘onchange’ to objects in the HTML DOM when loading the page. There was an issue with Internet Explorer which leaks memory when using this, so I needed a “shutdown” method which deregisters these callbacks when the user navigates to another page.

I didn’t use ajax for this because it would generate to much load on the server to get city name suggestions for every letter that is typed and because the data is rather limited.

You can browse the source of the page and look for yourself how this all works.