Friday, January 11, 2013

Must read for (Java) programmers

If you are a new programmer (e.g., high-school student, undergrad), and want to become a good one, you should read this:

If you're programming in Java, you should also read this:

You will benefit from them for the rest of your (programming) life!

Convert PNG/JPG to EPS on a Mac without creating a huge file

The command for converting PNG/JPG to EPS are:
convert temp.png -compress lzw eps2:temp.eps
convert temp.jpg -compress jpeg eps2:temp.eps

The convert command comes from Mac's built-in imagemagick package.

If you type only convert temp.png temp.eps, it's gonna create the EPS file without compression, creating a huge file.