Archive for the ‘Scripting/Programming’ Category

non-root users and ACPI

Friday, January 22nd, 2010

In my experience dealing with ACPI events as a non-root user is a pain in the backside. Firstly, let’s say for arguments sake (even though this isn’t that often) multiple people use a laptop, and want to deal with the “external monitor on/off” button in different ways? Currently there is no simply way to do that AFAIK. So … enters a little script to deal with that particular gripe. (more…)

Using FireFox (3.5) to convert html to pdf

Sunday, August 23rd, 2009

So I’ve been struggling to convert html to pdf. There are many attempts at this in the forms of perl scripts, some php dom parsers making use of pdflib or fpdf, and some of them even work … mostly. But without exception all of the solutions I’ve come across in the last month fails on gb2312 (chinese character sets). I’ve actually wanted to hit my head that the solution didn’t make itself apparent earlier … seeing that I’ve been opening the sample .html files with firefox for most of that month to see what it should look like. It’s been staring me in the face and I didn’t realize it.
(more…)

Live without version control …

Friday, November 21st, 2008

I made a large commit a few minutes back, and crazy as this may sound, I nearly sighed an audible sound of relieve! I’m not sure why this is – I managed most of four years of university without version control without an insane amount of harm done.

(more…)

3G, PINs, prompts and pppd

Monday, November 17th, 2008

A recent post by Quintin, and specifically a few comments regarding 3G made me think The primary advice to users looking to use 3G under Linux is to switch off the PIN on the SIM. Well, I’ve posted before on how to make 3G work … but Quintin’s post challenged me to take it to the next level…

(more…)