Category Archives: Technology

A better “reddit this” bookmark button

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 [...]

Why does htop display an exclamation mark next to uptime?

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 } else if (days > 1) { 39 [...]

Careful with sudo – giving access to vi/vim via sudo could allow someone to wreak havoc

sudo can be used to give certain users access to commands that require root. This is handy when you’ve got lots of users that need to administer the system or software that resides within it. This also means you don’t have to distribute the . An example would be to allow a user to edit [...]

Configure Log4j To Disable Specific Package (Java)

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 [...]

Xbox 360 Debian/Ubuntu Linux – Media (video, music) Streaming

Being both a Linux and Xbox fan makes for an interesting time. One of the best features of the Xbox is its streaming from a PC on your LAN. There are various features that the Xbox provides for seamless media streaming (be it videos, music or pictures) but it’s not as straightforward as it may [...]

Ubuntu Intrepid Ibex/8.10 Is Ruining My Hardware

I’m a long time user, advocate and all-round fan of Linux. In particular, I’ve used Debian or variant distributions and have never had any major issues (well none that weren’t PEBKAC). I’ve been running Debian Sid on my Thinkpad X31 for around three years now, and out of curiosity I thought I’d try out Ubuntu [...]

Gears of War (Xbox 360) Is Awesome, but..

So I got Gears of War 2 on Friday for my Xbox 360. It’s an astonishing game: the graphics are second to none, the animation is very realistic, and the intensity of some of the gameplay is just awesome. The online play is also very well done. You get your regular deathmatch, but what’s brilliant [...]