Christian Heilmann

You are currently browsing the Christian Heilmann blog archives for May, 2005.

Archive for May, 2005

Tales from the hood

Tuesday, May 10th, 2005

Somehow I think the council has to wait a long time for this parking fine to be paid:

A car with a parking clamp, and someone stole the tires

I’ve seen many clamped cars, and many with stolen tires, but never one that got its tires stolen after it has been clamped.

Constraining link length with JavaScript and DOM

Monday, May 9th, 2005

From time to time, we need to display links as plain URLs in a text.

The problem with URLs is that per definition they don’t contain spaces (yes, sloppy developers or maintainers use spaces in filenames and risk broken links, but nobody should).
No spaces in long words in HTML means that the text does not break into several lines when there is not enough space. This can seriously wreck a layout.
Furthermore, long URLs don’t look nice and stop the flow when reading a text.

A lot of blogging tools and CMS offer backend scripts to constrain the length of submitted URLs, for example in comments.
A friend asked me if that could also be done on the client side, and I wrote shortlinks to do that.

It is a small script that checks each of the links in the document for a http: start and if it is longer than a defined length. If that is the case, the script takes out some letters either at the end of the URL or in the middle and displays the shorter version. You can define a title with the full URL to be added.

The price of colour printing

Monday, May 9th, 2005

I am currently looking for cheap rebates for some company licenses of the Adobe Creative Suite 2. This ebay listing is my favourite. How stupid does this guy think bidders are?

You are bidding on the whole Creative Suite 2 from Adobe. It comes as a DVD with a Total Training video CD. The product is a fully operational, licensed version with all programs working but the DVD does not have the Adobe logo on it, thats all. This is because Adobe charge a LOT more for their color printed DVDs, than the ones provided, since the ones provided are exactly the same, the only difference is how much money you are saving.

How not to design a logo

Friday, May 6th, 2005

It seems perfectly innocent at first, but am I a bad person for finding the logo of this oriental institute a bit naughty?

Naughty looking logo of a brazilian oriental institute

Ugly yellow form fields

Wednesday, May 4th, 2005

Once again someone asked on CSS-D why MSIE shows some horribly yellow text boxes, and how to work around that.

The riddle is easily solved – the google toolbar highlights form fields that can be automatically filled with data you entered earlier and shades them yellow.

Patrick Griffiths reported on that some year ago, and of course there is a developer who came up with a JavaScript workaround to suppress this functionality.

Personally, I think it is a nice to have feature. It was bad practise of google to not make it more obvious that the toolbar causes these changes and explain what they mean. However, the amount of work some developers put into trying to control the UI as much as possible with web client technologies just makes me snigger.

Wake up, smell the coffee. Yes, you might know a lot about usability and you can design well, but it is the user’s choice to install the toolbar, and live with its features – or turn them off. The colouring has a reason, it is not done because google like yellow.