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 [...]
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 [...]
December 18, 2008 – 22:57
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 [...]
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 [...]
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 [...]