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…)
Archive for the ‘Scripting/Programming’ Category
non-root users and ACPI
Friday, January 22nd, 2010Using FireFox (3.5) to convert html to pdf
Sunday, August 23rd, 2009So 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, 2008I 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.