Another astonishing service

You people know me, I’m always wanting to use computers for any practical and non-practical use. Now, out of curiosity and need for a few bowls of punch, I created a small web application to calculate punch mixtures! It allows you to add all the booze you wish, mix it with necessary juices and stuff, and see what comes out, alcohol-wise mostly though. Unfortunately it is uncapable of determining if the stuff will actually taste good or not. Anyway, I present thee: T3h Punch Calculator! Remember to have common sense when drinking alcohol. 😉

By the way, if anyone wants to translate that page to other languages (than English and Finnish), contact me (see link on right) and I’ll send a language file for translation. Thx.

CSS Printing Trickery

For past few hours I’ve been fighting with CSS and especially its printed media type. It seems that I’ve found something that actually works better with Internet Explorer than it does with Firefox. Or maybe it’s just me or my printer.

Anyway, when setting absolute positions for elements and using centimetres as unit, there’s an anomaly with Firefox. I developed using Firefox, so after initial tests with Internet Explorer I thought it was behaving badly as well, but soon discovered that IE was working perfectly, and Firefox was not. The problem is that when printing squares with 1cm sides, Firefox actually prints out an approximately 0.6cm by 1cm sized rectangle. IE prints perfect 1cm squares.

For the record, my printer is Lexmark Forms Printer 2480, which also gives out the reason for absolute positioning. And no, PDF is not an option. Fortunately in this case there’s a choice of what browser to use in printing. Because of other reasons, it’ll be Firefox and I’ll be multiplying all horizontal positions by factor of 1.8, while all vertical positions remain unchanged. In any case, if someone wants to go through the trouble of posting this to Bugzilla, that’d be nice. I’m too lazy. 🙂