Friday, July 08, 2016

Changing PDF paper types

Useful to know: use pdfinfo to find metadata and paper size, pdfjam to change the paper type/size specified in a PDF file.

 pdfjam --outfile out.pdf --paper letter original_a4.pdf  

As seen in Unix & Linux Stack Exchange http://unix.stackexchange.com/questions/185145/convert-pdf-to-a-different-page-size-us-letter-a4

[Source code formatting from http://codeformatter.blogspot.com/]

Tuesday, May 17, 2016

Backing up virtual machines and fat32

Couldn't backup a 100GB virtual machine image to a truecrypt encrypted external drive because the drive was formatted Fat32. Turned out you can convert it to NTFS while mounted without losing data:
Accessories > right click on Command prompt
>convert x: /fs:ntfs

After that a normal copy to the external drive worked fine. No data loss!

Wednesday, March 30, 2016

Testing... Testing...

This is a test with a link to [NASA HTTP://www.NASA.gov].

Thursday, September 03, 2015

Astronomy routines for MATLAB (and Octave?)

Over the last few years I've become a big fan of Matlab and its free, open-source, twin Octave so I was pleased to discover at least some professional Astronomers use it. The Astronomy & Astrophysics package for Matlab (Ofek 2014, see also http://ascl.net/1407.005) contains just under a thousand Matlab functions, including catalog access and ds9-interaction.

Hat tip: The Astrophysics Source Code Library.