Python for Kids on the Raspberry Pi

10 Jan, 2013

I finally managed to find enough bits-and-pieces to get a Raspberry Pi (borrowed from a friend - thanks Matt!) up and running, in order to test out the code from Python for Kids. A USB charger for an old Nokia phone, a somewhat dodgy-looking USB power adaptor from the bottom of a cobweb-filled box in the back room, a wireless mouse (the base for which had managed to hide itself on the opposite side of the house), a bent network cable (surprisingly still functional), and a powerline adaptor scavenged from the TV. In the end the only thing missing was a USB keyboard, which finally arrived in the mail this morning.

Raspbian menu It looks like all the code works fine, and Python3 is installed by default on the Raspbian operating system, so there's not a lot required to install out of the box. There is one thing to be aware of - do not use the IDLE3 icon which is on the desktop by default (at least not when you're running the graphics code in the book). Instead, go to the Other menu, and choose IDLE (Python 3.2) (click on the screenshot to see what you should be looking for). This runs IDLE in "No subprocess" mode, so modules such as turtle will run correctly.

However, to use GIMP (the graphics program we use in Chapter 15), you will need to install it first:

  1. Make sure your Raspberry Pi is connected to the internet
  2. Open a terminal (select the Other menu, and then LXTerminal)
  3. Update the package list (might not be necessary, but just in case) by entering the following command: sudo apt-get update
  4. Once completed, install GIMP by running this command: sudo apt-get install gimp

After installation, you'll find a new menu option in the Graphics menu: GNU Image Manipulation Program.

That should be all you need to get started with the Raspberry Pi.

Puzzle 1 Solution

01 Jan, 2013

Happy New Year!

The solution to Programming Puzzle 1 has been added to the puzzle page - actually it was updated just before Christmas, but I've been entirely too lazy busy to post about it. ツ

Finding your way

19 Dec, 2012

Google Maps We went to Rome over the weekend. Despite the weather (mild but wet), gelato seemed one of the higher priorities - a task that was more difficult than you might expect, when you want to go to one of the more famous Italian ice cream parlours, and you're relying on the slightly oddly printed tourist maps (with occasional irritatingly positioned advertising boxes). Apple's Maps isn't bad, at a high level, and I like the way it saves prior searches, but in order to see the street names, you need to zoom in far too close to get a good idea of where you're going next (at times).

Giolitti Google Maps doesn't save prior searches (unless you're logged in, I believe), but it offers a number of alternative walking routes (useful for tourist wanderings), and seems to do a better job of highlighting street names. In addition, with data roaming switched off, it didn't stumble after first downloading the maps on Wi-Fi - I don't think Apple Maps was quite as good. I haven't quite dragged it to my front screen to replace Maps yet - but I'm wavering...

Two years of effort

11 Dec, 2012

Python for Kids in box My author copies arrived from No Starch today - the culmination of two years of not-an-inconsequential amount of effort.

If you happen to have ordered a copy, here's hoping it arrives in time to stuff the Christmas stocking.

New Programming Puzzle

09 Dec, 2012

puzzle image A new programming puzzle has been added today. This one is a bit more difficult than the last - the actual solution isn't all that complicated, but it does require a bit of lateral thinking.