the corner office : tech blog

a tech blog, by Colin Pretorius

# Pngs to pdf using ImageMagick

How nice to use a tool that just does the right thing with excellent results. I normally type up my assignments using LaTeX, but I needed to send a waaay overdue assignment to a lecturer pronto. Given the time constraints I scrawled out the solutions and scanned the pages to pngs.

I thought it was going to be a nightmare to get the pages converted and sized into a single pdf. Enter ImageMagick, which generated a perfect-resolution pdf using a simple

convert q*.png myassignment.pdf

Thank you ImageMagick, you rock.

File under: linux : {2012.01.30 - 18:40} : Comments (0)

# Thee 2011 Tech Review

Each year I do a review of what I've done technically. 2010 wasn't that exciting, 2011 even less. I think my pet projects stagnated in March. Between studies and a busy year at work, I did next to nothing tech-wise at home. Mostly because of time, but partly just being all coded out from work.

Work is where the interesting stuff has been, as usual I don't talk too much about that. I've gotten my fingers a little dirtier with Python, though it's still largely a case of Google-on-one-screen-code-on-the-other when cranking out scripts. Python is great to get stuff done quickly, but I still prefer Java for heavy lifting.

I'm not going to bother about 2012 goals yet, that kinda depends on how exams go. If exams don't go well it's going to be more of the same. Even if they do go well, after the past year, there's a good chance 2012 will be spent playing computer games and little else. Then again, I'm sure I've said that before...

{2012.01.11 - 10:51} : Comments (0)

# 0.0050

I ran into the bug discussed in this Stack Overflow post: Why do some floating point numbers appear with a trailing 0?

A ten year old bug only fixed in Java 7.

File under: java : {2011.12.12 - 22:09} : Comments (0)

# Links 2011.12.05

The Strange Birth and Long Life of Unix

{2011.12.05 - 21:47} : Comments (0)

# Unity

I finally got around to upgrading to Ubuntu 11.04, and finally got to see why people got so worked up about Unity. Maybe it's great for new users but for me, no thanks. I like the idea of the menu bar at the top of the screen - that was a cool feature from the old Apple Macintosh world, but the big buttons and search box et al - not for me. Switched back to Gnome classic quick-spot.

Apparently Linux Mint is where it's at these days.

File under: linux : {2011.12.03 - 20:17} : Comments (0)

# The month of November

It's been a decade and a half since I got my first login to a Linux box, so it's hardly a revelation, but Unix rocks. Every day I find new ways in which it rocks.

I'm enjoying Python.

File under: linux, programming : {2011.11.25 - 21:08} : Comments (0)

# Familiar surroundings

I switched to Windows on the laptop last year to play EVE Online, but even though I'm no longer playing EVE Online the laptop still stays in Windows. This is an old laptop, XP still feels zippy on it, and studying means I don't spend nearly as much time coding or doing heavy lifting at home as I used to. So I've had no impetus to switch back to Ubuntu.

At work, after a year of living predominantly on a Windows desktop (a dozen Putty and cygwin sessions notwithstanding), I'm again using Linux as a dev environment. How I've missed Ctrl-Alt-Left and Right!

{2011.10.21 - 21:51} : Comments (0)

# RIP Dennis Ritchie

We have much to thank him for.

{2011.10.13 - 21:20} : Comments (0)

# Links 2011.09.07

Miguel de Icaza: Learning Unix. Best quote:

Save yourself the embarrassment, and avoid posting on the comments section jwz's quote on regular expressions. You are not jwz.

File under: linux : {2011.09.07 - 23:21} : Comments (0)

# Links 2011.08.28

C++0x is now C++11

File under: programming : {2011.08.28 - 15:16} : Comments (0)

Older »

meta

about
main blog

Categories

eclipse
java
linux
programming

RSS Feeds

rssfeed all posts
rssfeed all comments

Archives

2012.01
2011.12
2011.11
2011.10
2011.09
2011.08
2011.07
2011.06
2011.05
2011.04
2011.03
2011.02
2011.01
2010.12
2010.11
2010.10
2010.09
2010.08
2010.07
2010.06
2010.05
2010.04
2010.03
2010.02
2010.01
2009.12
2009.11
2009.10
2009.09
2009.08
2009.07
2009.06
2009.05
2009.02
2009.01
2008.12
2008.11
2008.08
2008.07
2008.06
2008.05
2008.04
2008.03
2008.02
2008.01
2007.12
2007.11
2007.10
2007.09
2007.08
2007.07

© Colin Pretorius