Christian Heilmann

You are currently browsing the archives for the General category.

Archive for the ‘General’ Category

Slap your coworker day

Thursday, May 12th, 2005

Got this from a disgruntled colleague:

Slap Your Co-Worker Day is Coming!!

Tomorrow is the official Slap Your Irritating Co-workers Holiday: Do you have a co-worker who talks nonstop about nothing, working your last nerve with tedious and boring details that you don’t care about? Do you have a co-worker who ALWAYS screws up stuff creating MORE work for you?

Do you have a co-worker who kisses so much booty, you can look in their mouth and see what your boss had for lunch? Do you have a co-worker who is SOOO obnoxious, when he/she enters a room, everyone else clears it?

Well, on behalf of Ike Turner, I am so very very glad to officially announce tomorrow as SLAP YOUR IRRITATING CO-WORKER DAY! There are the rules you must follow:

  • You can only slap one person per hour – no more.
  • You can slap the same person again if they irritate you again in the same day.
  • You are allowed to hold someone down as other co-workers take their turns slapping the irritant.
  • No weapons are allowed…other than going upside somebody’s head with a stapler or a hole-puncher.
  • If questioned by a supervisor [or police, if the supervisor is the irritant], you are allowed to LIE, LIE, LIE! Now, study the rules, break out your list of folks that you want to slap the living day lights out of and get to slapping…..and have a great day

Attack of the vegetables

Wednesday, May 11th, 2005

The Storewars animated movie got me in stitches this morning. Much better than all the other hype about Episode 3 I have seen so far.

And I just remembered that I have foreseen it:
yoda made from lettuce

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.