Archive for the ‘Scripting/Programming’ Category

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…)

Webserver (apache) security

Wednesday, October 22nd, 2008

Generally my experience with apache has been very good. It’s a decent web server and works very well, is well supported and generally doesn’t suffer too many problems. For an ISP though, there are a few issues: php and other sub-processes/modues runs with the privileges of the apache user. So what is so bad about that?

(more…)