Building C code for Windows Mobile

February 16th, 2008

I was asked to get a C application working on Windows Mobile. Some colleagues at work have got some hobby code : a bunch of C files which they want to try out on a huge range of mobile platforms such as a slug. On Linux-based platforms, it’s apparently fairly straightforward – without too much work, gcc or some such compiler turns the code into a neat little executable.

Now the plan is to try it on a Windows Mobile device. And, probably cos I won’t shut up about Windows Mobile, they asked if I’d fancy giving the code a try on Windows Mobile.

Read the rest of this entry »

wiki-related fame and fortune ;-)

February 15th, 2008

I'm famous!  ;-)After last year’s blurb in Smartphone & Pocket PC Magazine, I’ve seen another small write-up for my Windows Mobile wiki-based note-taking program, bLADE Wiki.

c't computing magazine - coverThis time, it’s in a German computing magazine called c’t. They’ve included the app on their cover CD, and written a short paragraph describing it.

Yay – that’s quite a nice end to the week. 🙂

Asking for my vote

February 13th, 2008

"ballot paper" for the EU Lisbon TreatyMy “ballot paper” arrived.

“I Want a Referendum” is holding a referendum in ten Labour and Lib Dem constituencies in the UK. It’s even made the news, and Eastleigh – where I live – is one of the constituencies involved.

You get two questions – which essentially boil down to “do you think there should be a referendum?” and “if there was, how would you vote?”.

And a litle “Information Booklet” that explains the two sides of the argument – the argument against the Lisbon Treaty written by “I Want a Referendum”, and an argument for it from the European Movement.

I found this booklet very interesting.

Read the rest of this entry »

PowerShell: Providers vs Cmdlets

February 12th, 2008

When I wrote the PowerShell snap-in for WebSphere MQ, I chose to implement it as a set of cmdlets.

PS C:\> $myqmgr = Get-WMQQueueManager DALE
PS C:\> Get-WMQQueue -Qmgr $myqmgr

They are new commands for WebSphere MQ – commands that let you get, create, modify new objects representing WebSphere MQ objects.

The commands are consistent with existing commands in syntax and style, to be sure. But, they’re still new commands.

I didn’t have to do it this way.

Read the rest of this entry »

Cryptography with C# in Windows Mobile

February 11th, 2008

I wrote last week about an evening I spent throwing together a password manager for Windows and Windows Mobile. As I wrote at the time, one of the motivations was to try writing some encryption code.

I’ve finally got around to writing it, and wanted to post it here with a few comments.

This is what I needed code to be able to do:

  • Encrypt and decrypt data based on a user-provided password
  • Encrypt/decrypt consistently on both Windows desktops and Windows Mobile devices – a file encrypted on a Windows Mobile PDA should be able to be decrypted on a Windows desktop, and vice versa

The System.Security.Cryptography library in .NET makes this fairly straightforward – the class I have written to add crypto support to the password manager app needed only a few hundred lines of code in total.

I’ve shared a simplified version of the source at the end of this post.

Read the rest of this entry »

Making an offline copy of a wiki

February 9th, 2008

We use a Confluence wiki for one of the projects that I work on. Wikis can be a fantastic tool for collaboration, and this wiki is a single place where we can share information and our progress.

But we’ve been having problems with the reliability of the wiki – it is unavailable at times, and can be painfully slow at others. Key information that I need is in that wiki, and when the wiki goes down it can be difficult and frustrating.

Yesterday, I had a play with wget to try and download an offline copy of the wiki to use as a backup for when it isn’t working or is going painfully slow.

I’ve put the steps I took here, in case they will be useful for others.

Read the rest of this entry »

Support U 2

February 8th, 2008

An article I wrote for the Hursley intranet. There is nothing confidential in it (and it took me long enough to write!) so I thought it’d be good to share.

The first phase of Support U 2 – a pilot mentoring project for young people run between business, charity, and government agency – came to an end with a celebration evening in the Clubhouse.

What was the project all about?

Support U 2 was started to help hard to reach young people – people not in education, employment or training, and identified as being unlikely to change this without some additional effort.

IBM’ers are already mentors for young people through programmes like MentorPlace. Youth charity, Solent Youth Action (SYA), work with young people through volunteering placements, activities and youth groups. Government agency Connexions provide advice and counselling to young people.

All of this happens already, and makes a massive difference to the lives of thousands of young people.

The unique aspect of Support U 2 was how these organisations worked together. The project brought them together to make a focused, coordinated effort to change the lives of young people identified as being at risk of remaining NEET.

Rather than offer separate programs, they pooled our resources – IBM’s business expertise, Connexions’ expertise at working with NEET young people, and SYA’s expertise at finding young people engaging, educational placements and activities. This was brought together to produce an intensive, coordinated package, tailored to each young person.

Read the rest of this entry »

Donating for freeware

February 7th, 2008

If I’ve ever talked to you about Windows Mobile, the chances are I’ve probably mentioned my wiki note-taking app. Of all of the bits of mobile code hacking that I’ve done, it is the one that (a) I dont seem to shut up about, and (b) has been one of my most popular*.

The app has been around for over a year now, and gets downloaded from about 1000 – 1700 unique IP addresses each month (Plus a few thousand more from mirrors on freeware sites).

The forum set up for users to report bugs and request features has over sixty active users.

And I generally get emails from 20 or 30 other people with requests each month who don’t want to use the forum for whatever reason.

I’ve even had emails from people using the app far more than I ever envisaged: people who are using the wiki as a work intranet wiki, installing a copy for each of their staff; people who use the wiki to maintain and develop websites; and more.

It would seem that there is an audience and a demand for this app.

Nearly a year ago, I decided to try a little experiment to see how this demand would translate into people prepared to pay for it.

Read the rest of this entry »