Uncategorized

Take Snapshots using Python

Posted by arkadian on August 13, 2011
Python, Uncategorized, examples / Comments Off
1
2
3
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.

Tags: ,

AWS, SSH & Keys…

Posted by arkadian on June 02, 2011
Uncategorized / Comments Off

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 bash may throw an error saying you should do so…

Tags: ,

Joggler on Ubuntu

Posted by admin on April 18, 2010
Linux, Uncategorized / Comments Off

O2, the UK mobile phone operator had an amazing offer a few days ago: they were selling their O2 Joggler for £49.99.
O2_joggler_main

This little gadget, with a touchscreen, wifi and an intel atom processor, wasn’t really a best seller for your average cosumer and O2 ended up selling them at a loss.

I picked one up and installed Ubuntu successfully on an 8GB stick, following religiously the instructions from this
site.

DSCF1236_w500

DSCF1234_w500

Other interesting/useful sites on the Joggler are:

http://www.canonical.com/projects/ubuntu/unr

http://www.linuxformat.co.uk/forums/viewtopic.php?p=87157&sid=ed063024114914ddf6e977294bcb427a

http://www.backtrack-linux.org/forums/hardware-compatibility-list/2738-o2-joggler-openpeak-open-frame-7-touch-device.html

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=80756&view=next
DSCF1241_w500DSCF1237_w500

The installation was pretty straight forward and uneventful but a bit long. I installed everything on the usb key, using my linux laptop. Everything was supported and worked out of the box, including the touch-screen and the wifi. I added a belkin bluetooth adaptor (which also worked out of the box) and installed skype on it. Unfortunately, the performance of skype with a bluetooth headset was below expectations. I’m also having performance issues: sometimes it’s slow, but I think this is because of my usb key being relatively slow.

It’s a great little system and for £50 I can’t fault it (I’ve paid more for photo frames!). I wish it had a few additional usb ports that I could use (instead of my ugly hub).
DSCF1243_w500

Also, it would be great if linux could be loaded on the device (instead of doing this on an additional external usb key).

I just had a look on the O2 site: it’s now priced at £99.99, but cheaper ones are available on ebay.

Stay tuned for more news and comments on this little gem!

Tags: , ,