Windows Phone, Wedding Lights and Bluetooth

Windows Phone connected Wedding Lights. Eight synchronized lights which can be controlled over Bluetooth. Each light contains an Arduino processor and a 16 NeoPixel ring.

I've finally finished it. I was going to write an article about my Windows Phone Controlled Wedding Lights. But instead I thought I'd do something different. So I fired up Adobe Premier and I made a video about them instead. It only lasts a couple of minutes, but boy was it complicated to make. Anyhoo, feel free to take a look and let me know what you think.

I've done something else I've not done before (and I feel a bit guilty about this one). I've put the Bluetooth code for Windows Phone 8.1 and Windows 8.1 up on Codeplex. I'm ashamed to admit that this is the first code that I've ever posted there. I really should have been posting stuff up there earlier. I'm determined to post more stuff as I come up with it.  

You can find a sample project (my Bluetooth Printer) and the BluetoothManager class that I used to communicate with the embedded Bluetooth controller. There are also details of how to configure the Bluetooth device and send and receive data. 

Importing Autographer Videos into Adobe Premiere Pro

The title says it all really. If you don't want to know how to import time lapse videos you made with your Autographer into Adobe Premiere Pro then just admire the picture above and move on with your life. 

If you do want to know this, then your'e in luck. Turns out that the Adobe importer is a bit fussy about file formats and it decides a lot of things from the file extension. The Autographer writes files with an extension of mp4, which are rejected. If you just rename your file, from blah.mp4 to blah.mpg then the files are accepted. I used the command prompt to do this. 

Hull Pie, Parade and Classic Cars

Did something today that we've been meaning to do for ages. Had lunch in Hull Pie. The word on the street (love using that phrase, although I'm probably not of an age to be streetwise any more) was that the food was ace.

And it was. Good prices, amazing cuisine. I had chicken, ham and leek pie on mash and it was great. Number one wife had the quiche and salad. Both were thoroughly excellent. Yesterday was the Lord Mayor's Parade and Hull was packed. We missed the World War 2 Hurricane flypast (we were eating pie at the time) but we did see some of the celebrations.

Little Drummer Boy

Little Drummer Boy

Look at all those buttons and dials. Must be at least three of them...

Look at all those buttons and dials. Must be at least three of them...

Me and the Town Crier go way back. No, really.

Me and the Town Crier go way back. No, really.

They had a big parade, which was very big, and a collection of classic cars, one of which actually was a Ford Consul Classic.

This was the car that my dad really wanted to buy in the early 1960s. We had to make do with a Ford Cortina. If they'd had one of them at the show I'd have been in car heaven. 

The car we never had

The car we never had

How to be a Husband

I've been practicing being a husband for over thirty years. I think I'm reasonable at it, although apparently I'm not the one to judge this.

I must admit I regard Tim Dowling as something of a newcomer to the field, with only twenty or so years under his belt. However, he has written a very funny book about the art of husbandry (if that's what you call it). 

There are some genuine insights, a lot of laugh out loud moments and a few poignant parts as well. If you have enjoyed reading his column in the weekend Guardian over the years then you will know what you are getting and like it all the more. 

If you've not read his work before I'd say you were in for a treat. He is that most rare of species, a self deprecating American, and very, very good at it. Although of course I'm sure he would beg to differ.

You can find his book here

Amazon at C4DI

Tonight at the C4DI June Developer Meetup we welcomed Ian Massingham from Amazon Web Services, who gave a great talk about cloud based deployment of computing resource. Put that way it doesn't sound that interesting, but whey you go on to think that it allows computing infrastructure to change performance and scope with just a flick of a virtual switch you start to see just how compelling this model is.

Consider a situation where you have an idea for a product or service which, if it works, would be useful to millions of people. More than that, you might have an idea which only works properly if you have millions of users. How do you get started? Well, the answer is to put your system in the cloud. You don't have to buy anything at the start and you just pay for the computing power that you use. If things go well you use your revenue to pay for more processing. If things go badly you walk away and have another idea.

Ian talked about the way that the Amazon service is provisioned around the globe so that your data doesn't need to to leave your part of the world, and how clever management of the addressing of addresses means that your users will always be connected to the fastest servers in their neck of the woods. 

It's very clever stuff, and it lets you do things and play with things in a way that was just not possible in the past. Want to test out a new service for a while, need a high performance cluster for twenty minutes,  reduce the power of your end user platforms and do all your rendering off site? Cloud services can do this kind of thing and their power is going up and their prices going down all the time. 

When I met Ian I made some fairly silly comments about Python, a computer language that I've been playing with during the "Wrestling with Python" sessions we are doing for teachers. I made the point that for some applications, where security is right at the front of the things you are worrying about, I don't think that Python is the best choice (I'm going to have to write a complete blog post to get my feelings on this one properly set out).

However, for cloud type stuff Python is pretty much perfect. It provides the fastest way to get from idea to running code that I've found. A skilled Python coder can wrangle hugely complex systems together really quickly. I still prefer C# personally, but when you hear what developers can put together in Python in record time you can't help but be impressed.

Python is a perfect language for the "Move fast and break things" culture where companies survive by innovating faster than the other guy. If your new services are a bit fragile that's a price worth paying, and you can always iterate until you get solid systems.

All in all, a very thought provoking presentation, which ended with some hugely tempting AWS offers from Ian to members of C4DI and anyone thinking about their startup programme starting soon. 

Quadcopters over Hull

Adam passed me this still shot from the quadcopter. Not bad.

Adam passed me this still shot from the quadcopter. Not bad.

I've enjoyed playing with number one son's home made tricopter, but this week the "proper" flying camera arrived in the department.  It's a Phantom Quadcopter. We took it for a flight today, launching it carefully from the middle of a deserted playing field near the university. 

It is awesome. The camera stabilization is astonishing. The pictures are incredibly smooth and very high quality. The device uses global positioning to allow it to hover at one point above the ground. There was a fair bit of wind around, but the device was completely stable. Apparently it's very easy to control, although I lacked the nerve to have a go myself. And anyway, I was taking pictures. 

The battery is good for quite a long flight and there are also coloured lights. We took long a tiny toy quadcopter as well, as you do.

This was great fun to play around with, and you can even get one with a camera built in too.

Formation flying

Formation flying

The ground crew

The ground crew

Research at Hull

As it says on my departmental profile, I'm now a member of the Dependable Systems research group in the department. V. exciting. I've not done any "proper" research before.

My profile page also gives the impression, via my picture, that every now and then I wear somebody else's hair. Which is not true. But there are also links through to a couple of PhD projects that you might be interested in. 

Nokia Sensor Core Beta now available

Nokia make some fine APIs for Windows Phone. And now they've just released a couple more. Their Imaging API is great, and make it really easy to add image processing to your applications. It has just graduated from Beta to a formal release.

The Sensor Core API, just released as a beta, is a very interesting development. It takes Windows Phone into a domain it hasn't been before. Up until Sensor Core it was impossible to do things like track user activity and do things like count the number of steps walked by the phone user, find out where they had been etc etc. But Sensor Core provides the stuff to do all that for you. 

From my experience Nokia libraries are well written and beautifully documented. I'm going to get hold of them and have a play. If you are into Windows Phone, you should too. 

The Forbidden Corner Rocks

One of the many lovely gardens spread around the site. 

One of the many lovely gardens spread around the site. 

Today we headed off into the Yorkshire Dales to take a look around the Forbidden Corner. This is part theme-park, part country gardens, part awesome place to explore. We'd heard good things about it from numerous different sources and so we were expecting a good time.

We got one. The weather was kind to us and we had great fun wandering round. Admission is by pre-booked ticket only, which means that the place is never overwhelmed by visitors, and there are lots of things that scare, intrigue and amuse. Plus some things that squirt water at you or, better yet, the people with you.

There's a cafe with nice food and a gift shop with sensible prices and Yorkshire memorabilia. I enjoyed it at my age. If I'd been six I would never have wanted to leave. 

There is actually some blue sky in this picture. No. Really.

There is actually some blue sky in this picture. No. Really.

Dredgers and Docks

This is Orca the dredger. She'd make an awesome Lego model.....

This is Orca the dredger. She'd make an awesome Lego model.....

Today we celebrate 100 years since the King George Dock was opened in Hull. To me this means a chance to go and take some pictures. We got the first bus out of Hull to the dockside and were there at the very very start. Which was nice because we got to go straight onto the boat and take a look around. I was trying out the ultra wide-angle lens.

I'm very proud of the fact that I didn't touch any of the buttons or levers....

I'm very proud of the fact that I didn't touch any of the buttons or levers....

The dredger was huge. It is basically a floating container that they take out into the estuary and fill with mud. Then they sail somewhere else and drop the mud off. The cabin was massive and had lots of interesting consoles and controls. I took pictures of all of them.

On the way out I did something by mistake that I plan to do again. I changed the colour temperature on the camera settings. This is the thing that makes colours look "right" in different lighting environments. Normally I leave it on automatic, but by pressing the wrong button I changed it to "incandescent". This is not really a problem, I can fix it later, but it does mean that you get neat colour effects sometimes.

Interesting. But wrong.

Interesting. But wrong.

I'm not suggesting that you do this as a matter of course, but if you want to get a strange "other worldly" effect on your shots it is definitely worth a try every now and then.

We wandered into a massive warehouse that they'd set aside for exhibitions and bumped straight into Warren and the Seed crew. They were there to show off what Seed can do (which is quite a lot).

I'm not sure what Warren made of me, what with the Autgrapher pinned to my T-shirt and two cameras round my neck (actually, I am quite sure what he made of me - I just don't want to think about it) but it was nice to see them all there. At the time we turned up things were just getting going, so I think they were in for a busy time of it.

Waiting for the flood....

Waiting for the flood....

I had some lawns to mow and stuff to do at home (no - really) and so we had to head back to Hull. After a game of "hunt the bus" which went on for a bit longer than it really should have, we got to sit on the top deck at the front. Which was nice. 

3D Printerns

Mr Burns seems to like 3D printing....

Mr Burns seems to like 3D printing....

The department is running a new initiative this year. We have a bunch of undergraduate students working as interns for a couple of months over summer. They are being paid to work on interesting projects "just to see where they go". The idea is that this will lead to research efforts and other interesting stuff.  The prospective interns were interviewed a few weeks back and they'll be starting in July. It's going to be fun. 

One area of interest is 3D printing, which is rather nice. It means that the departmental 3D printer (which doesn't have a name - yet unlike Una) will be getting even more use over summer. At the moment he/she/it (really must find a name) is busy printing out parts for our robot army (not sure if I should be talking about that). Perhaps we need another printer. Of course, we'll need another name then....

I really hope that the Summer Interns scheme becomes an annual thing. It provides a great way for students to explore just working with things to see what happens. 

Hull Devday a Roaring Success

I stole this picture from the Hull Devdays twitter tag. How many Hull folks can you spot in the crowd?

I stole this picture from the Hull Devdays twitter tag. How many Hull folks can you spot in the crowd?

Oh to be young. And not to have to go to exam board meetings. But then again you don't read my blog to hear about my problems....

Lee from Microsoft was in town running the first ever Hull Devday. All the time I was in my meeting I was sneaking peeks at the folk who were all having a much better time than I was. I really hope they do it again, and I also hope that it doesn't clash with marking next time.....

Wrestling with Pygame and Cheese

This pictures is entitled "Unsuccessful Cheese Movement Number 1"

This pictures is entitled "Unsuccessful Cheese Movement Number 1"

The "Wrestling with Python" sessions on Pygame are progressing well. Today we got some cheese moving around the screen under keyboard control. Next week we will add some more sprites and get some proper game action going. You can see on of the first attempts at moving things above. Perhaps we should clear the background after each draw.....

It occurred to us (in a rather nervous-making way) that we are exactly four weeks away from the big event on campus when folks are going to come in and make and show off games. But everyone is learning stuff and having fun, so actually I'm quite looking forward to it. 

If you want to find out what we have been doing you can download the content from here

Fun with a Wide Angle Lens

I've always liked wide angle lenses. I've been playing with one and taking pictures around campus which turns out to be great fun. Places, like the area outside the Student's Union, suddenly look different and strange, and you can get some really interesting angles that you can't get any other way.

If you are interested (and why should you be) the lens I've been playing with is an 8mm focal length FishEye from Samyang. For such a bespoke piece of optics the price is very good, particularly if you get the cheaper silver one. The lens is completely manual, you have to set the focus and aperture by hand, but I rather like that and the cleverness in the camera seems to take this in its stride. The results are pin sharp in the centre of the frame and very good around the edges, particularly if you stop down to F8 or so. The colour rendition is good too, with hardly any fringing.

I'll certainly be taking it on my travels from now on,  it gives a very refreshing angle of view to familiar scenes so it should do amazing things with unfamiliar ones. 

Tricopter Flying over Cottingham

Yesterday we took number one son's home made tri-copter for another spin. Last time it flew very well, and so we thought we'd add a GoPro camera to see what kind of pictures we could get. We fitted the camera by the simple process of just sticking it on the front plate of the device. This seemed to work OK, although for the first few shots we had the battery wire in the frame.

Turned out that there was more than enough lift to take the camera into the air, although it is a tiny bit more wobbly than we'd have liked. The video came out pretty well, all things considered. 

Saturday Open Day with Added Stupidity

We had an Open Day at the University today. The place was nicely busy, and of course I took pictures of the folks that turned up. Except that for the first group I forgot to put a memory card in the camera. Which was not optimal. Sorry about that folks. I got you to smile and everything, and then took a picture that turns out not to exist.

Anyhoo, the talks went well (at least I thought so) and some of the Wedding Lights made a guest appearance. I hope you all enjoyed the trip. You can find the C# book (and a fair few other things) here

Three Thing Game Summer 2014 Wrap Up

These are the hardy survivors. Well done folks.

These are the hardy survivors. Well done folks.

We had had a great time yesterday writing our games. I left around 10:30 pm having made a good start on my game. Then I was back developing at 7:00, along with lots of the other teams who seemed to have stayed all night and loved it. I lost a few hours doing academic things around the department, but at the end I've got something that I'm kind of proud of (at least from the outside - the code is horrible) and I'm going to get it into a demonstrable form. 

I'm not sure what the market is like for "Old School" text based adventures, but I'm going to find out. By the end we had 7 teams who finished up with demonstrable games. And by that I mean proper games. With a beginning, middle and end. And artwork and sound effects. Amazing, and in just about a day. Simon and Kevin wandered around judging and I followed with a wobbly camera. You can see the results here:

Top down fighting action here, with a "Bitmap Brothers" feel to the graphics and the things "Butler", "Ninja" and "Attack" being put to good use. Different styles of ninja and a scrollable level system kept the action going, as the hapless butler fends off wave after wave of bad guys.
Highly commended by the judges, this neat space shooter was formed from the things Hand Grenade, Ring of Power and Spacecraft. With two distinct game modes and an awesome looking 3D cityscape this was as good to watch as it was to play.
Another entry that was highly commended by the judges. Start from "Mayhem", "Puzzler" and "Of Fun" they crafted a neat space flying game where the player has to find linked gems in a puzzle in order to keep flying through space. The mayhem mode effects looked a lot like the movie "Gravity", but with more moving bits and bobs.
24 hours to make an Occulus Rift game from scratch. Why not. Or y! Anyhoo, from "Gentleman Thief", "Screwdriver" and" Inventor" the team made an immersive exploration game where you go in search of a screwdriver within a 3d rendered environment. And it worked
With a team name that sounds like three things, but isn't, this bunch had a lot of fun with Anti-aircraft gun, Liner and Zeus. What we got was an action packed sideways scroller with myriads of weapon modes and boss levels. Great fun to play and some lovely graphical touches.
Maze based dungeon bashing with a twist form Floating Goats. From Apocalypse, Downstairs and Locked the team crafted a succession of fighting arenas where the key to moving on is killing everything else. With some neat graphical touches, a splendid piece of work. Oh, and the twist.
This gained first place in the competition, and rightly so. There are some lovely touches, like the way that the tower "dings" when it is hit. The three words that they had, by the way, were Eiffel Tower, Flying Fish and Undersea. And all in around 24 hours. Magic.

The standard was astonishing. The winners were 1.21 Gigabytes,

Great game, well worth worthy prizes. 

Great game, well worth worthy prizes. 

The judges also highly commended these two teams.

BetaJester made not one, but two different and attractive games, both of which stuck closely to their theme.

BetaJester made not one, but two different and attractive games, both of which stuck closely to their theme.

Rusty Spoons ended their TTG career with something rather special that I really hope makes it into the marketplace.

Rusty Spoons ended their TTG career with something rather special that I really hope makes it into the marketplace.

It really was a fantastic occasion. Thanks to Dave for letting us play with his lab, Simon and Kevin for Judging, David, Simon and Martin for running the night shift, John for dropping round from C4DI and kudos to all the folks that took part. And book now for Three Thing Game Autumn, running from 31st October to 1st November. 

There are more team and winner pictures here

Update: Forgot to mention. The voting for the People's Choice award is still open. You can vote until Tuesday morning next week (the 17th June). The survey is here

Adventure, Crying Baby, Dressing Up

We got our things today for Three Thing Game. Most people got one or two things they wanted. The bidding was fast and frantic, although some words that I thought would sell big didn't really go that well. Anyhoo, I ended up with "Adventure", "Dressing Up" and "Crying Baby". 

I really wanted Adventure. It was the first word to be auctioned and so I rather cleverly spent all my money on it. After that I was forced to take whatever was left, which turned out to be the other two. I've got a plan though.....

Three Thing Game Starts Tomorrow

Three Thing Game Summer 2014 starts tomorrow, Thursday 12th of June. We will be holding the Thing Auction in Lecture Theatre A in the Robert Blackburn Building. Doors open at 1:00 pm, when teams can collect their team packs and "Bank of Thingland" money and the auction itself starts at 1:15 pm prompt.

This is a list of all the things in the auction. There may be some "special guest things" in addition to the words on the list. These will be inserted at random during the auction. The things will be auctioned in alphabetical order. And here they are:

Adventure, Alien, Anti-aircraft gun, Apocalypse, Assassin, At the Circus, Attack, Balloon, Banjo, Box of Tricks, Bread, Butler, Cheese Sandwich, Crying Baby, Cube, Diploma, Downstairs, Drainpipe, Dressing Up, Eiffel Tower, Electric, Enormous Hat, Enormous Pie, Fan, Fishing, Flying Fish, Fruit, Frying Pan, Gems, Gentleman Thief, Going Downhill, Gong, Hairy Arms, Hand grenade, Hunting, Inventor, Last Bus Home, Locked, Mayhem, Ninja, Ocean Liner, Of Fun, Pirate, Puzzler, Ring of Power, Robot, Rubber, Screwdriver, Shop, Slippery, Spacecraft, String Vest, Tidal Barrier, Triangles, Undersea, University , Violin of Doom, Wearing a Boiler Suit, Wombat, Yeti, Zeus, Zombie.

Folks can bid for any item that comes up, and spend all their money on the very first word if they like. That's mostly what I'm planning to do. I'm in a one man team called "Alien Robot Adventure". We'll see how that goes.