Just a quick follow on from the home automation stuff. I just saw this person put an iPad in their kitchen cupboard door. Looks pretty cool. Although I wonder whether just a case and a stand somewhere in the kitchen would be more useful...
Anyway they have done it now and it's still a pretty cool idea (especially if there was some kind of easy release mechanism at the back of the door). If you coupled this with the x10 app I saw for the iPhone on one of the commercials then you could have yourself a pretty cool control system.
I talked at the end of the month at Derbyshire Dot Net. It was a first for me in the sense that I have never delivered someone elses talk. The talk was originally scheduled to be Andrew Bullock but I had agreed to cover it.
It was an interesting experience but I think the topic was general enough for anyone au fiat with the main points to deliver. Especially as I am a keen proponent on many of the points made in the talk.
Anyway, the crowd was either pleased or very understanding (I'll take the former thanks) and the evening was hosted in an excellent pub called the Brewer Tap which definitely help take the edge off any nerves I had.
My good colleague Paddington bear has just asked me for some help with a marvellous mobile project he has devised. He has some locally stored JSON arrays that he needs to filter based on various fields throughout the code and he was looking for a nice way to reduce the complexity without having to do nasty loops everywhere and in different ways.
I came up with this example that we then turned into something for him (that you aren't allowed to see :-/) but I thought it might be of value to someone else.
Basically, the code takes the onus of doing the filtering out of the filter function so you then pass the array and the function upon which it is filtered at the same time.
Take a peek, I am sure there's some nicer ways of doing things but I just coded it as we were talking and now I am posting it. He has refined the production version and you guys can do the same if you like the idea!