No Disconnect

Things I’d rather not forget

Archive for January 2012

How SVG units work

leave a comment »

From the specification:

“1pt” equals “1.25px” (and therefore 1.25 user units)
“1pc” equals “15px” (and therefore 15 user units)
“1mm” would be “3.543307px” (3.543307 user units)
“1cm” equals “35.43307px” (and therefore 35.43307 user units)
“1in” equals “90px” (and therefore 90 user units)

Written by nodisconnect

January 3, 2012 at 10:52 pm

Posted in Uncategorized

Linux remove directory and all contents

leave a comment »

rm -rf NameOfTheDirectory

Written by nodisconnect

January 2, 2012 at 3:04 am

Posted in Programming

What to do with all the GTK+ library files in Win32

leave a comment »

Lots of files are helpfully provided here: http://www.gtk.org/download/win32.php

Not bad Win32 support for a GPL, but as is typical, they don’t tell you what to do with them. :-)

What you do is open the zip files, and merge them with the folders in your MinGW directory. The best way I found to do that is to move the zip file to my mingw directory (in my case, C:\Qt\4.7.1\mingw), and then use Windows’ “Extract all…” feature, which will offer to merge the directories automatically.

One more wrinkle: the “Dev” versions are necessary to build code using the libraries; the “Run-time” versions are necessary to actually execute the program. Both need to be installed as described above.

Written by nodisconnect

January 1, 2012 at 11:29 pm

Posted in C/C++, Programming

Follow

Get every new post delivered to your Inbox.