Recently I noticed that the nginx error log for a site I was working with was filling up with timeout messages similar to below: 2012/07/06 17:21:01 [error] 23897#0: *8870 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 173.25.1.129, server: project.com, request: “GET /jobs/update HTTP/1.0”,…
Read More
Raspberry Pi Overclocking
Like just like alot of other people as soon as the Model B Raspberry Pi went on sale in March I eagerly rushed out and ordered one from Element 14. Due to production delays this didn’t arrive till the start of June.ย But given its size, specs and price I…
Read More
Watching the progress of a dd action
dd is one of those indispensable Unix / Linux utilities whether its cloning or wiping a drive or simply creating a bootable flash drive from an image file. The problem is operations like wiping a drive with the output from /dev/zero can take an extremely long time especially on larger…
Read More
Quick Recursive Code Count
Although the “lines of code” in a project is not the worlds most useful metric. Curiosity sometimes gets the better of us and after many days / weeks of typing you think “gee I wonder exactly how many lines of code are in that project?”. Wonder no more! By embracing…
Read More
Replace The Default Firefox Google Search In Linux Mint
The recent release of Ubuntu’s Natty Narwhal forced me to reassess my usage of Ubuntu on my work and home machines. As I found the Unity interface drives me crazy and the release on a whole to be very buggy. So I decided to give Linux Mint a go, it…
Read More
Anonymizing CURL Scripts With TOR & Polipo
Last week I received a typical run of the mill phishing email littered with the usual bad Engrish making the instructions far from believable but being bored I decided to take a look at the link they were pushing. They had created a believable enough looking Paypal form asking clueless…
Read More
Near Realtime File Replication With Lsyncd
Ever wanted real time backups ofย directories on your server? To replicate static media files for a website to a separate box to reduce load? An easy solution lays with lsyncd it allows you to watch a directory structure on your file system, and replicate any changes on a remote…
Read More
Tracking Bandwidth Usage With vnStat
Outside of internal networks bandwidth is paid often for by the gigabyte and as such it becomes important to be able to see the bandwidth consumption of machines and plan future quotas accordingly as usage grows. There are plenty of packages available that fill this void like darkstat, ntop etc,…
Read MoreUbuntu Natty Narwhal Invisible Scroll Bars In Eclipse
Since its release on April 28th Natty Narwhal (11.04) seems to have gained it fair share of haters. The Unity interface is a huge change to the UI and in most peoples experience its buggy and doesn’t seem ready for the prime time. No issue I thought after I upgraded…
Read MoreEasily Rip Youtube Videos On Ubuntu Maverick
Downloading youtube videos to your local machine for offline veiwing is easily on Ubuntu 10.10 with the youtube-dl utility. Simply open a terminal window and execute: apt-get update apt-get install youtube-dl
Read More