Archive for July, 2009

Writing Python with PSPad

PSPad is a great editor for programmers. Instead of using a dedicated Python IDE, PSPad can be tweaked to compile and run scripts directly. Here’s how: -

  • Go to Settings -> Highlighters Settings
  • Select “Python” in the left hand pane (if its not selected already)
  • Select the “Compiler” tab
  • In the “compiler” text box, enter or browse to the location of the Python compiler (e.g. C:\Program Files\Python26\python.exe)
  • In the “parameters” text box, enter “%File%” (note the double quotes)
  • Put a tick box in the “Capture Program Output Window” option
  • In the “LOG parser” text box, enter *file %F *line %L*

PSPad Python Settings

Once this is set up correctly, you will be able to run .py files directly from PSPad by going to File -> Compile or using the shortcut (Ctrl+F9).

Updating twitter from python

Just looking into posting twitter updates from python. I’ve found three methods so far: -

Hmmm, more investigation required…

Pimp my Revo!

I’ve added some extra RAM and a new larger hard drive to my Acer Aspire Revo so here are the final specs: –

  • 1.6GHz Intel Atom 230 CPU
  • 2GB DDR2 RAM
  • 500GB hard disk
  • Nvidia GeForce 9400M graphics
  • HDMI, D-SUB out
  • eSATA
  • 6 x USB
  • 4-in-1 card reader
  • Gigabit Ethernet
  • 802.11bg WLAN
  • Size: 30mm x 180mm x 180mm

The Windows Experience comes out at a weedy 2.2 due to the Atom CPU but the rest of the ratings look pretty decent for such a low-powered PC (it got up to a maximum of around 34 watts during the tests – normally it hovers at around 23 watts when idling).

Acer Aspire Revo Windows Experience Rating

Next up – install Linux!

Swapping Hard Drive in Acer Revo

The Acer Aspire Revo has a lot of potential for a home media player but the 160gb hard drive won’t be large enough for everybody.

I spotted a special offer on a Iomega Prestige 500gb Portable Hard Drive which contains (in my case) a Seagate Momentus 5400.6 drive, model ST9500325AS .

I already had a working installation of Windows 7 RC, so here’s how I swapped the hard drives: -

  1. Download the Clonezilla ISO file (I used clonezilla-live-1.2.2-14.iso) and install it to USB stick via Unetbootin.
  2. Boot Revo with Clonezilla USB stick attached & USB Hard Drive attached.
  3. Select “device-device disk/partition to disk/partition” and choose the 160gb internal hard drive (/dev/sda) as the source and the 500gb USB hard drive (/dev/sdb) as the target.
  4. Confirm (it asks a few times!) and then wait for cloning to be complete. This will take a long time, as it copies all partitions (on my original hard drive I had 4 partitions – Windows 7 NTFS, Linux ext3, Data NTFS and Linux swap).
  5. Open the Iomega USB drive (two screws at the back) and take out the Seagate 500gb hard drive.
  6. Open the Revo & Swap the hard drives (see forum post here).
  7. Swap the drives and re-assemble the Revo and portable hard drive.
  8. Boot up the Revo with the new hard drive in it – it should boot straight up.
  9. Extend the partitions to make use of the full 500gb space (this can be done in Windows 7 by going to “Computer” then “Manage”. Go to “Storage” then “Disk Management” and then right-click the drive before selecting “Extend Volume”).
  10. Put 160gb hard drive into Iomega case & re-partition hard drive.

Now I have a Revo with lots of storage space, and a spare 160gb portable hard drive for backups etc.

XBMC With VDPAU and iPlayer

There’s an interesting article on the How to do something differently… blog about getting VDPAU working with iPlayer under Linux with the SVN build of XBMC. I’ll be sure to look into it some more when I install Ubuntu onto my Revo.