Posts

Showing posts from March, 2014

ImageMagick

I'd scanned 16 pages of a mortgage application form using xsane and I wanted to whack them all together in a single pdf. Googling revealed a consensus that the solution involved using ImageMagick . Lazily I just tried sudo apt-get install imagemagick , which did something , but I'm not sure what. Maybe provided some sort of infrastructure for imagemagick, if the description of the packages I checked on synaptic later are anything to go by. Anyway, I fucked about a bit and ended up compiling it and I was missing dependencies which I eventually got from following this advice : sudo apt-get install imagemagick libmagick++-dev And suddenly the starting instructions I was following worked: convert mortgage *. png mortgage_application . pdf Gave me the single document I needed. Pages all in the wrong order of course.  [EDIT] The files needed leading numbers in the name to order properly in the folder. I tried to use a for loop to rename each in turn ( f or v in mortgag

psftp

I have an old desktop pc in the office running as a server and I usually just mess about on it via SSH. Couple of times I've wanted to move files about and I always manage to do it eventually with putty's psftp function, but I always forget how it works and have to search up how to do it again... SO. http://www.msci.memphis.edu/~simmonsj/c4262/notes/psftp.html  is the source of the following information. Navigating the remote directory is pretty much just the usual shell commands (without useful filename expansion).  Navigating the local pc (the bit that confused me) requires commands like:  lpwd (local present working directory) lcd e:\ (change local working directory - to a USB on Windows in this case) !dir (list contents of local working directory) put filename (puts a copy of the file named in the remote working directory) Because I'm getting slightly to grips with how this stuff works I did put -r in this case because I was copyin