September 3, 2009 – 18:45
So every year I learn a new language. It’s fun, insightful and leaves me feelin’ a fresh for new challenges in my new found religion.
This time round I’ve been learning Common LISP and now Scala. Being a Java programmer professionally it makes sense to try the latter. I love the idea of it being its [...]
February 11, 2009 – 21:13
I’ve amended the standard “reddit this” button and made it so that submissions open in a new window without navigating away from the original page – I found this annoying when halfway through something and thinking “I’ll reddit this”. Here’s the javascript code:
javascript:window.open(‘http://reddit.com/submit?url=’+encodeURIComponent(location.href)+’&title=’+encodeURIComponent(document.title));void 0;
Just add a bookmark in your browser and use the above as [...]
I keep getting the exclamation mark in htop next to the uptime and always wondered why it’s there. According to this mailing list post it’s a little easter egg in UptimeMeter.c:
35 char daysbuf[15];
36 if (days > 100) {
37 sprintf(daysbuf, “%d days(!), “, days);
38 [...]
November 30, 2008 – 21:49
I came across the need to disable logging (debug) for a specific package in Apache Log4j today whilst coding. It’s simple. All you need to do is precede the package name, e.g. net.beplacid, with log4j.logger and follow that with “=LEVEL”, where ‘level’ is one of TRACE, DEBUG, INFO, WARN, ERROR and FATAL – the standard [...]
September 6, 2008 – 22:33
jQuery is a good thing. It allows you to minimise the amount of Javascript you write, while maintaining elegance and ease-of-use. jQuery.com has recently relaunched with a brand-new design. Feedback from around the web was initially quite negative due to a bizarre decision by someone who thought it’d be great to apply a ‘rockstar’ ethos [...]
Some time ago, I began hacking away at a simple API (Application Programming Interface) for Eternal Lands written in Python. I intended to write something that was quick and concise, and that would be easy to reuse. Using a typical OO approach, I finally came up with ‘Pyela – Python Eternal Lands API’.
Pyela is an [...]
The latest project at work is using a service tier setup. We have the web front-end that’s using Struts 1.2 (yes, old!), Weblogic 9.2, Apache Axis 1.3, JSON & jQuery. The back-end web services are written in .Net (and how difficult it seems to be for developers to work in .Net). Things at least work, [...]