Category Archives: Quick post

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

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

Ubuntu & Xubuntu – No sound in Audacious

mplayer, vlc and even the horrible Totem would play my music, but my favourite media player — Audacious — wouldn’t. I like Audacious because of its plugins and subtle interface. Some searching around the web didn’t find many solutions except suggesting that the output plugin was incorrect. I managed to fix this by changing from [...]

Favourite Quote: “Complexity has nothing to do with intelligence. Simplicity does.”

This excellent phrase was coined by Lawrence “Larry” Bossidy, the retired CEO of Allied Signal. What I find particularly interesting about this quote is that it’s so eloquently structured and an example of what it’s stating; the statement is simple yet intelligent. Here it is in all its wonderful, quoted glory: “Complexity has nothing to [...]

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