HackDay – hack attempt 1 – a wiki sync

October 27th, 2007

Yesterday was IBM’s fourth HackDay. My first project attempt of the day was to try and ‘hack’ our internal wiki.

Background
We have an internally hosted wiki software on the intranet. Anyone is free to create a new wiki, and these wikis are used to manage anything from work projects and teams to community projects.

The idea
The plan was to write something that would let you have a local copy of a wiki – a copy which lets you read and edit an intranet wiki while offline (or with only Internet access). The idea was to have the ability to sync this local wiki to the intranet-hosted the next time you are on the intranet.

Why?
The thought was that sales or service IBMers who work at customer sites might not always have access to the intranet.

And even with Intranet access, I thought that some tasks – such as looking something up quickly – might be better-suited to the quicker access you could get from a locally-hosted mirror.

Read the rest of this entry »

Shortest app yet – Windows Mobile reset

October 23rd, 2007

I have to reset my Windows Mobile PDAs depressingly often. Both the HTC Universal and Advantage seem to need resetting every other day or so.

This has one big problem. You can lose stuff if you’re not careful. From Windows Mobile 5 onwards, a lot of data is kept in memory for performance reasons – written to persistent storage periodically. If you reset before this has been done, you can lose the most recent data.

For example, if I get a text message, then reset the phone, that text message will almost certainly be lost.

The trick is, if you need to do a reset you switch the phone off, leave it for 20 seconds then reset it. Normally, after being idle for a bit the phone will write pending data to storage.

This is a bit unscientific, so (after losing stuff from Outlook again today) I looked for a software way to ensure recent stuff is saved.

Read the rest of this entry »

A PowerShell command you should avoid

October 23rd, 2007

While I was writing my presentation on PowerShell, I did one spectacularly dumb thing which I thought might be fun to share.

I was doing some screen-captures for use in slides, to show how you can stop a process.

What I meant to type was:

Get-Process notepad | Stop-Process

Get me all of the notepad processes, and pipe them to Stop-Process which will stop them.

But stuck deep in PowerPoint slide-producing-hell, my fingers ran quicker than my brain and what I actually typed was:

Get-Process | Stop-Process

Crap.

Fancy taking a guess what that did?

Read the rest of this entry »

An introduction to mobile development on Windows Mobile

October 23rd, 2007

Another day, another HackDay presentation. This one is a little more lightweight than yesterday (a breakneck crash course through learning how to use and extend PowerShell).

It’s basically a beginner’s guide to mobile development – some scene-setting and a few walkthroughs how to do “Hello World”-type stuff with the key Windows Mobile libraries.

Hopefullly will be interesting to someone!

I guess I’ll know in about an hour 🙂

An introduction to Windows PowerShell

October 22nd, 2007

Later today, I’m giving a presentation on Windows PowerShell as a part of the lead-up to this year’s internal IBM HackDay.

It’ll be good to address some of the misunderstandings I had about PowerShell when I wrote about it before. In the presentation, I will be giving an introduction to Windows PowerShell – what is it, and how it works.

I’ll also be talking about how you can extend it to provide support for administering your own product or project (which is where the HackDay element comes in – hopefully to encourage some PowerShell projects!).

Impatient people can get a sneak peek at my slides here…

Read the rest of this entry »

We need a personal Twitter glossary

October 9th, 2007

Something Luis Suarez said on Twitter last week got me thinking. I tweeted back at the time, but thought the idea was worth fleshing out.

We need a Twitter glossary. My tweets stand a chance of making sense to people who know me, or have been following me for a while, but to anyone else? Perhaps not. But with only 140 characters, I haven’t got the space to put everything in context in every tweet.

What I want is an up-front way of defining a list of terms that I am likely to use often in the future. For each term, I could give a definition – a description that could be used in a tool-tip when you hover over the word in a tweet, and/or a URL to a page with more info if you click on it.

For example, instead of a tweet like:

Gotta take Grace with me to a SYA meeting tonight

it might be useful if the tweet showed up on the twitter webpage like this:

Gotta take Grace with me to a SYA meeting tonight

Getting the currently selected text from Pocket Internet Explorer

October 6th, 2007

As part of my hack for mobileCampLondon, I wanted to get the current selection from the web browser on my Windows Mobile phone.

The plan was to add a new menu item to Pocket Internet Explorer that lets you search for the text you’ve selected in Google. So I needed to get the currently selected text in order to include it in a Google search page URL. I thought it’d be simple, but it turned out to be more of a hassle than I expected.

My final approach is more of a hack than I’d have liked, so in this post, I’ll outline my unsuccessful approaches before showing what I finally ended up doing.

Read the rest of this entry »

mobileCampLondon

September 30th, 2007

I’m back. Home after a weekend of hacking and mobile tech geek-ery – this was BarCamp weekend, at mobileCampLondon. I would’ve written a post on it on the train home, but I was too busy playing with my new toy. I’ll have to settle with some random thoughts before bed instead 🙂

In short, I had a great time – met a lot of interesting people, heard about some very cool projects and technologies, played with some new toys, plus got free food, free beer, free wifi and free T-shirts.

Read the rest of this entry »