Category Archives: Code

WebTech 2010

I’m attending the WebTech 2010 in Mainz – it’s a hybrid conference together with the international PHP conference taking place in the nice Rheingoldhalle right next to the Rhein river. Oh my… So many geeks in one place! And almost no women here! (and those few that are here… well, you know…)

Anyways, I’m looking forward to another two and a half days of interesting talks and new insights to technology and the software industry in general.

PS: I did not forget about the pics of my appartment, it’s just that I couldn’t find the time by now… (and, to be honest, not so much progress has been made since my last post on that topic…)

Nice quote

Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live.

– from “Code for the Maintainer”

Electronic job application

This is friggin’ funny: http://www.asofterworld.com/oq-display.php?id=22

WPTouch rocks!

As some of you might know, I installed the WPTouch plugin to make the site easier to read on mobile phones. While this is awesome enough to praise it, it now has a very cool feature that allows people to send me free live messages to my phone directly from my site 😎 So if you happen to be reading this from a mobile phone, you can click on the “Message” button at the top to get to a form for sending me instant messages:

Java 4-ever

This video is truly awesome :mrgreen:

New highslide-integration plugin

Yaay! After months years of waiting, the highslide-integration plugin I’m using here finally got a major update. The new unobtrusive way the JavaScript magic is now done rocks!

The old version hooked into the image uploading dialog of the post creation page to apply the “highslide” CSS class and the JavaScript onclick event to all thumbnails in content. That automatically lead to the unattractive situation that this purely technical, not-content-relatedΒ class=”highslide” onclick=”hs.expand(this); return false;” got saved to the database instead of applying the class dynamically via jQery when the document loaded in the browser. That had the big drawback that this information would stay inside the content – even if I decided to exchange the plugin or maybe the JavaScript library itself! Another issue was that this hook only worked for single images but not for galleries because they are generated from a magic tag… I worked around this by writing my own small hack that actually used jQuery and Marc’s header-include plugin to attach the stuff from above to each image in the generated gallery. Back then, I contacted Christoph, the creator of the highslide-integration plugin, and proposed my way of doing it as a completely new approach for the whole plugin and that he could get rid of all that hooking into the actual blogging / content thing. He reacted really cool and friendly and thanked me for this idea. Unfortunately, he seems to be busy as hell, too, so the release of the new version with the new way of doing it was nowhere to be seen. πŸ˜‰

However, since highslide.js has cool gallery features, I always wanted to improve or re-write my hack so that the viewer can navigate through all images of a given post at once (and also preloading speeds up the experience!!) I knew all along that it might not be a big deal, frankly, but I just never found the damn time to actually DO IT. Anyways, the new plugin is now out and all’s well, finally πŸ˜€ But still I had to customize it, again, mostly because I’m a dumb fuck that enjoys coding more than sleeping… :mrgreen:

Infinite text playground

http://yourworldoftext.com/defaude

You can type anywhere you like on this endless canvas. To move around in space, you can simply click and drag to move the whole canvas. I know it serves absolutely no purpose and is completely pointless, but I think it’s really funny to toy around with 😎

TLDR :)

http://www.skorks.com/2010/05/how-to-be-a-real-elite-programmer-and-make-sure-everybody-knows-it/

Cool mini-description on how GitHub works

Cool guy, cool story, cool script (it features a Konami code and unicorns!), cool way to communicate the way GitHub works: http://ericharrison.info/2010/05/28/github-is-the-best-thing-ever/

Metaprogramming in Ruby

I just stumbled upon this one and I think it’s a superb example of how metaprogramming works: http://gregosuri.com/powerful-twitter-api-wrapper-in-less-than-50. If you understand it, you can show off in the comment section here :mrgreen: