Toggen Blog

Tech tips

Articles

Latest

Access

Blog History

Exporting Dia Diagrams to PNG from the Command Line

A post from the Dia mailing list: I was asked to deliver some diagrams Dia diagrams I did, in PNG format. I just would imagine the nightmare it would have been to do this under "other" diagramming tools. for D in *.dia; do dia -t png -s 1024x $D; done I just checked...

Reducing the size of a massive PDF so you can email it

Just joined a heap of PDF files with pdftk output*.pdf cat output nov2010.pdf and got a 19.5MB PDF file. From here found a working solution to reduce the size of the PDF. gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH...

Returning DDMMYY in Bash or CMD.exe

Anyone else have a better way on Windows. Let me know. # bash scripting MYDATE=`date +%d%m%y` echo $MYDATE # or all in one echo $(date +%d%m%y) rem Windows cmd.exe rem This gives you the correct format rem offsets rem 01234567890123 rem Mon 01/11/2010 set...

Run Ubuntu > 9.x Headless

Found this after too much Googling so listing here for future reference. Stop X Starting at Boot on an Upstart controlled system update-rc.d -f remove gdm doesn't work: That is because Ubuntu doesn't use System V init files for startup any more, it uses a program...