philwilson.org

a geek commodity

Three months with a Droid

March 13th, 2010 by Phil

Just before Christmas I got a Motorola Milestone to replace my Nokia N95. At the time it was the latest and greatest Android device to be released in the UK, and it’s my first non-Nokia device in a decade.

All in all, it is not the step change I was hoping for in upgrading from a device I got in October 2007. The device itself looks unremarkable and rather like several touchscreen LG models. The hardware keyboard is very useful but the keys are virtually flush together, making it hard to get any kind of sense of whether you’re about to press the right letter or not (obviously it’s less of an issue after a bit of practice).

The camera is significantly worse than my N95 in both hardware and software (even accounting for the 24.5 day bug which my firmware has) – this is a real disappointment since the camera on my phone had become my main Flickr weapon since it worked well in most light conditions, had simple software and a great lens.

It doesn’t come with a podcatcher, which the nokia did, and the music player is extraordinarily basic (although it does seem to do most of the things I want).

On the other hand, having a large, hi-res, bright, touchscreen device is lovely. I’ve been lusting after my wife’s iPod Touch for the last year or so but hate iTunes and get frustrated at the Touch’s limitations so it’s been a blessed relief to finally get a device that feels more like a computer (yay for multitasking!). Of course, the Android Market is much smaller than the app store but the only place I’ve really noticed this is with games, and I’ll write another post about the Market later.

It’s pretty clear I was quite spoiled with the N95 in that it met all the hardware and software requirements I had, even though I didn’t realise I had them until I moved platform.

All this does lead me to wonder whether i’d have been better off with the Nokia N900 rather than the Milestone. In the short term I think the answer is no, especially since it runs Maemo rather than Symbian. I’m glad I have an Android device, even if, in the worst case, it’s just to get some experience of it; but in 15 months time I think there will have to be something special, in both hardware and software to keep me on Android.

Tagged: , | 2 Comments »

Tracking my life

March 12th, 2010 by Phil

I used to detail what was happening in my life through Flickr, and what I was interested in on this blog.

The immediacy and brevity of Twitter put paid to that and I regret it.

I think I will be making a concerted effort to either tweet less or not at all.

Tagged: | 2 Comments »

I have forked Charbot Green

January 14th, 2010 by Phil

About a year ago Libby Miller wrote Charbot Green, a BBC Radio 4 announcement bot for Twitter. It’s written in JRuby, uses the H2 database and the source code is in SVN here.

A screenshot of CharbotGreen on Twitter

A screenshot of CharbotGreen on Twitter

It’s a really great app and I thought I’d have a play, but half-way through the install I realised that setting up an H2 DB server was a step too far, so instead I rewrote it to be a pure Ruby app using the SQLite3 database. Using SQLite3 keeps it a self-contained app in a single directory without the need to run a database server.

You can get the code from GitHub here.

My small changelist looks like this:

  • H2 replaced by SQLite3
  • links to iPlayer use the short form of the URL
  • if available, the subtitle, such as episode number is displayed
  • now a pure ruby app!

I haven’t tested it very hard, just run it up a couple of times, so please do let me know of bugs or feel free to go fork it yourself!

Tagged: , , , | 5 Comments »

Adding a bookmark to an Android Home screen

January 2nd, 2010 by Phil

It’s easy to add a link to a URL to the home screen on the iPhone. When you’re looking at a web page, just hit “+” and select “Add to Home Screen”. On Android it’s slightly more involved:

  • Bookmark the page you want to add to a home screen
  • Go to the home screen you want to add the link to
  • long-press in an empty space to bring up the “Add to Home Screen” menu
  • select “Shortcuts”
  • select “Bookmark”
  • choose your bookmark!

The icon you get will be the standard bookmark image with a small overlay of the site’s favicon. If the site provides <link rel="apple-touch-icon-precomposed" href="blah" /> in the <head> then that will be used in preference. Both the iPhone and Android support the apple-touch-icon-precomposed link rel-type so it’s the preferred way of setting a custom icon for your webpage.

Update: I should mention that the resolution of the image you link to shouldn’t be too important but that the Android Icon Guidelines say it should be a 48×48 transparent PNG. I ignored that and used an icon I had lying around that was 256×256 and the OS scaled it just fine. Google themselves use this technique and their image is 57×57. You can find lots of good, free icons for your apps on Smashing Magazine.

Tagged: , , , | 3 Comments »

Setting up the Play framework on Google App Engine

December 14th, 2009 by Phil

The Play framework is the most fun I’ve had developing Java web applications. It’s fast, natural, comes with a rails-like scaffolding for CRUD operations on your model, has built-in Selenium testing as well as unit and functional tests, and most importantly Just Works.

It also deploys natively onto Google App Engine, but this isn’t described very well in the official documentation so here are the basics:

Get started

  1. Get yourself a GAE account and set up an application. you will need the ID.
  2. Download a recent nightly of the stable 1.0 branch (1.0 final doesn’t work with GAE, and Play needs to sort out its versioning system here)
  3. Unzip
  4. Download the GAE SDK for Java
  5. Unzip
  6. Create your app (although use Siena rather than JPA if you want to persist to the GAE data store) and configure it to use the GAE module
  7. Add your GAE application ID to myapp/war/WEB-INF/appengine-web.xml

Deploy to a local dev GAE environment

  1. run play war myappname -o myappname-war
  2. run APPENGINE_SDK_DIR/bin/dev_appserver myappname-war

Deploy to the GAE server

  1. run play war myappname -o ../myappname-war
  2. run APPENGINE_SDK_DIR/bin/appcfg update myappname-war/
  3. log in to your app engine console and check out your application!

Tagged: , , | 3 Comments »

Importing Nokia podcast subscriptions into Google Reader

December 3rd, 2009 by Phil

Exporting the list of podcasts

  1. load the podcasting application, mark all items and hit “send -> bluetooth”. Contrary to what you might expect, this will send an OPML file listing your subscriptions to your PC

Edit the list ready for import

  1. Open your new Podcasting.opml file in a text editor
  2. Find/replace all instances of url= with xmlUrl=
  3. Immediately after the opening <body> tag put <outline title="podcasts" text="podcasts">
  4. Just before the closing </body> tag put </outline>
  5. (I also duplicated all the text=”blah” attributes with title=”blah” but I don’t know if this is actually necessary)

Import the list of podcasts

The Google Reader Import/Export page

The Google Reader Import/Export page

  1. load Google Reader
  2. Click “Settings” in the top right
  3. Go to the Import/Export tab
  4. Find your Podcasting.opml file and upload!

You should now find that you have a new folder called “podcasts” in your google reader containing all the podcasts from your Nokia device.

Even nicer – if you make the folder public (Settings -> Folders and Tags) you can import the OPML from Google Reader directly into other applications by giving the URL http://www.google.com/reader/public/subscriptions/user/USERID/label/podcasts where USERID is the long number in the URL of the “view public page” link next to your public podcasts folder in Settings -> Folders and Tags.

Google Reader view public page section

Google Reader view public page section

Tagged: , , , , | No Comments »

Life-changing

November 8th, 2009 by Phil

Three months ago my first son, Daniel was born.

happy baby

I think it fair to say that blogging and coding have not been high on my agenda :)

Tagged: , | 1 Comment »

No more NewsGator, no Google Reader API

August 9th, 2009 by Phil

So everyone heard earlier this week that NewsGator is shutting down their aggregator synchronising service and getting everyone to switch to Google Reader.

There are two big problems for me:

There are also other issues of course, like Google owning yet another piece of monopoly pie, but the others affect me more directly right now.

Both NetNewsWire and FeedDemon now have the ability to sync with Google Reader, but there’s no published API, so I can’t mirror their behaviour in my own Linux desktop aggregator. At best I could use Niall Kennedy’s work from 2005 or maybe code from pyrfeed which has some documentation from 2007. Neither is an option I would choose willingly.

Tagged: , | 3 Comments »

Photo-frame dashbaord

August 7th, 2009 by Phil

In a comment on peterme.com over a year ago, I said

I’d like to see a personal dashboard being displayed through one of those digital wifi photo frames attached to the inside of my front door, so I can see the appointments my wife and I have got that day on my way out, plus other reminders based on previously gathered data. It can’t be far away, surely?

Apparently I was wrong, because I’ve not yet seen anyone doing this, but this kind of scenario came up at work the other day and, having forgotten suggesting it before, I suggested it again, in particular, using cron and imagemagick to take a screenshot of a web page, save it as an image and send it to the wifi photo frame.

This sounds terrifyingly doable, and semi-useful. If I could find a decent, cheap wifi photo frame, that might be something to keep me busy one weekend!

| No Comments »

How curious are humans?

July 27th, 2009 by Phil

I’m reasonably confident that at some unspecified point in the future we’ll tear the Universe in two.

I feel slightly proud about that.

| No Comments »

« Older Entries