Take Snapshots using Python

1 2 3 import ImageGrab img = ImageGrab.grab() img.save(’arkadian.png’,’PNG’)import ImageGrab img = ImageGrab.grab() img.save(‘arkadian.png’,’PNG’) A quick and easy way to take a snapshot of your current window. You can always use JPG, but the quality is better in PNG. Works in Windows and requires PIL.

Merging pdf files in Python with pyPDF

Here is a very simple python script that marges two pdf files, using the pyPDF library. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 import os.path import pyPdf   pdfOne = "C:\\a.pdf" pdfTwo = "C:\\b.pdf"   merged = "C:\\c.pdf"   […]

AWS, SSH & Keys…

Have you got problems connecting to your AWS instance? Assuming SSH is running on your instance and the firewall allows SSH traffic to and from your instance, just save your key somewhere locally (in this example it’s: linux_us_key.pem) and try this: ssh -v -i linux_us_key.pem root@xxx.compute-1.amazonaws.com Don’t forget to chmod 400 your key, otherwise your […]

Lulu & LaTeX

Today, while searching for advice on how to publish a book on Lulu, I stumbled upon Jason Brownlee’s blog. He has published a book using Lulu and Latex. The book is available as a free download from Lulu and on Amazon Jason has a post with great advice on publishing a book with Lulu. It […]

Arduino Cookbook on its way!

A Safari Online subscription was one of the best things I took on in 2010. As part of the service, subscribers can access early drafts of Oreilly books. Yesterday, I had a quick look at the upcoming “Arduino Cookbook” and I here is my review. I really like the Oreilly “Cookbook” series. With most programming […]