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 »

What is volunteering?

September 27th, 2007

I was in London Waterloo this week (to get the Eurostar to Disneyland!) and one thing I noticed was the posters advertising for volunteers to be Special Constables.

I’ve sort of been vaguely aware of them before, but this was the first time I had a proper look. They have the same powers as regular police. They wear similar uniforms. They get “professional police training”. But they don’t get paid.

Is this volunteering?

I mean… they don’t get paid… but something about it doesn’t feel like volunteering. Is it a cheap way to get more police on the streets? I’m absolutely not trying to be negative about a role that I know next to nothing about, nor am I belittling the contribution made by anyone who wants to take on what looks like a very challenging role in support of their community. But it has got me thinking about what I consider to be “volunteering”.

Read the rest of this entry »

Process your emails – an Outlook plugin

September 13th, 2007

I got a nice email last week from someone asking why I never made the “triage” Outlook plugin I mentioned last year available as I have with other bits of code. The short answer was obviously because I never got round to finishing it! 🙂

However, the idea feels a bit more topical at the moment so I think it is worth revisiting.

The aim was to create something that would let me process my emails in Outlook Mobile (the cut-down version of Outlook you get on Windows Mobile PDAs and smartphones).

“Processing”, rather than doing emails is an idea that I hear people mention more often since Merlin Mann’s brilliant Inbox Zero talk started doing the rounds as a Google video. I’m even hearing other people use it as a phrase from time to time! I used to call it “triaging” my email, but I think “processing” is actually a better term. Either way, the idea is that I want to be able to go through my inbox as quickly as possible – doing something with each one so that I can finish up with an empty inbox.

Inbox ZeroIt doesn’t mean doing everything right away – just putting the information in it’s right place. If it’s an email asking me to do something, the right place for the email is in my Task List, not my Inbox. If it’s an email telling me about a meeting or appointment, then the right place for the email is in my Calendar. If it’s an email containing information that I need to keep for future reference, then the right place for it is in my wiki.

Mobile phones seem like an ideal tool for processing email, as it’s something that you can do when you have a few spare minutes and without having to do a lot of text entry or other input. Rather rely on manual (and slow!) copy-and-pasting, I wanted Outlook Mobile to be able to move my emails around like this for me. This was the idea of the plugin…

If you are interested in the pain of writing MAPI plugins in C++, read on. If you are… erm… normal – then the short version is that I tidied up the code and made it available.

Read the rest of this entry »