Archive for January, 2006

Breaking the NIE practicum webpage

Saturday, January 28th, 2006

The NIE Practicum Office website has this nasty piece of incompatible JavaScript that renders the page unusable in any browser but Internet Explorer. Essentially it’s a JS DOM trick that shows and hides blocks of information below sub-headings, but implemented wrongly at the “checking for browser compatibility” level, so all browsers but IE get the wrong scripts to run.

To solve this problem, I wrote fixpracticum.user.js: a Firefox script for use with GreaseMonkey that enables the hidden blocks’ visibility by default. After I wrote that, I was all pleased with myself and was about to write something similar (CSS-based) to fix the problem in Safari, but I noticed that if one just disabled JavaScript when viewing the site, that worked just fine too, i.e. (pun unintentional), the hidden blocks are visible by default.*

Oh well. Whatever works.

* This is because the webpage doesn’t use a separate stylesheet to hide them, instead running some JS code to inject the “visibility:hidden” and “display:none” styles into the code upon loading the webpage. Oddness.

Tags:

Festive Fruitmonsters, Part 1

Saturday, January 28th, 2006

Watermelon Monster says,

Wmmonster

I have no future in the greeting card business, I know. Enjoy the long weekend!

Tags: ,

Chicken vs Purportedly Friendly Snake

Tuesday, January 24th, 2006

Inspired by this news article about a snake befriending its lunch hamster.

Chickenvssnake

Previous: Chicken vs Horror Movie

Info: What’s with all the chickens?

Tags: ,

They Might Live In Giants

Monday, January 23rd, 2006

From the Straits Times Dashboard widget news summary:

“Temasek Holdings confirmed on Monday that it was part of a group that purchased the shares of Thai Prime Minister Thaksin Shinawatra’s family in a telecommunications giant.”

Initial thoughts: (1) Temasek now owns shares in Thaksin’s family? Nice!; (2) Thaksin’s family is in a wha?!

Warped sentence-processing, visualised:

Shin

Safari Web Inspector

Tuesday, January 17th, 2006

The new Safari web inspector (available in nightly Webkit downloads) looks very, very nice. Hopefully this makes it into a stable release of the browser itself, or someone hacks it in.

The Web Inspector lets you browse the live DOM hierarchy in a compact HUD style window, catering to the needs of web developers and WebKit hackers alike. The Web Inspector highlights the node on the page as it is selected in the hierarchy. You can also search for nodes by node name, id and CSS class name.

(from Surfin’ Safari)

Screenshot (click to enlarge):

Chicken vs Horror Movie

Saturday, January 14th, 2006

This one’s for the friends I conned into watching The Descent with me… Sorry.

Chickenvshorror

Such a great movie, though!

Previous: Chicken vs Cannibal

Info: What’s with all the chickens?

Tags: ,

Spend spend spend

Wednesday, January 11th, 2006

Dammit. The new MacBook Pros show up right around when the extended warranty on my trusty old PowerBook expires. Chinese new year ang pows + one month’s salary should raise just about enough funds for one. Hmmmmm.

So if the PowerBooks have been renamed to MacBooks, do the PowerMacs become MacMacs?

Chicken vs Cannibal

Monday, January 9th, 2006

Chickenvscannibal

Tastes like Chicken!!

Previous: Chicken vs The Fragility of Life

Info: What’s with all the chickens?

Tags: ,