London By Degrees

Today we got to go to a degree ceremony.  I've a professional interest in these, what with helping to run the ones at Hull, and it was nice to see how another institution does it. The answer would seem to be, in a tent and very well. 

We were there in honour of Number One Daughter, who you can find above if you look hard enough. Full disclosure, I didn't actually buy the sweatshirt with the graduation list on, but we did buy some other bits and bobs and so my conscience is clear on taking the picture. 

Anyhoo, a wonderful time was had and now I am by far the least qualified member of the family. If it wasn't for my amazing 99% performance in my Cycling Proficiency test I'd have no standing at all..

London Ho

You might be forgiven for thinking that my life is one long holiday, what with me heading off to London this week for a few days (and further travel shenanigans to come). However, we're spreading our time off over a few different weeks this year. So there.

Anyhoo, this means that we are presently away for a few days. With two tablets, a bunch of cameras and the fat lens. Which is rather nice.

Spooky Three Thing Game

We are holding our next Three Thing Game at the end of October. Right at the very end in fact. Over Halloween from Friday 31st October to November 1st. Spooky eh?

Any of our students can take part and with a bit of luck lots of First Year students will sign up and join in. It is a great way to get programming, even if you don't really see yourself as a games programmer. You learn programming best if you are trying to build something and what better way than by trying to make something playable out of "Eiffel Tower, Underwater and Flying Fish"? Indeed.

If you are a Hull graduate and fancy coming back for a dose of Three Thing fun and games please get in touch with me directly and I'll see what I can do. If enough folks want to come back I'll set up a "Three Thing Alumni Tacky Prize" for the best effort from past stars.

One thing to remember though, the event runs from Friday to Saturday, starting Friday evening and then ending on Saturday night. This means that if you are in a job you might have to take some time off if you want to come along. Or tell the boss that you are on an "outreach visit" and dish out a few business cards when you turn up.......

Galileo and Windows Development Just Got Interesting

This is why Galileo development is going to be awesome...

This is why Galileo development is going to be awesome...

I've got the Windows operating system running on my Galileo board now and I've actually managed to deploy a program to it.

No thanks to the Galileo Watcher program though, which is supposed to detect your board and tell you when it is available. This has steadfastly refused to notice my device, even when I run the watcher program as Administrator and connect both the computer and the Galileo board to the same wired network. 

However, Visual Studio 2013 detects the board and will deploy to it quite happily. Even via WiFi. I built the sample project and flashed a led, as you do. I noticed, much to my great joy, that I can put breakpoints in the code, single step through it and work with variables in the immediate window of Visual Studio. 

This board just got a lot more interesting. You can find out more here

Update: This is the Galileo version 1 board, which it would appear is now replaced by the Version 2. In other words, if you decide to splash out on one of these devices, make sure that you get the Version 2. It has much better connectors and a higher performance interface to the Arduino pins.

Read "The Martian"

Number one son recommended this. He was so right. A proper, hard science fiction story. No wizards, no "use the force", just Newton and chums driving the narrative forwards.

It tells the story of a man who ends up on Mars for a lot longer than the mission plan allowed for. Everything hangs together brilliantly and the science behind his fight for survival is expertly set out.

The book reminded me strongly of "A Fall of Moondust",  one my my all time favourites. Reading jacket notes after I'd started the book I wasn't surprised to find that someone else has made the association too.

 A thunderingly great read. 

Current Affairs (and Voltage)

I hate it when I plug something into something and I've no idea what is going on.  Is the device taking any power? How much? Is the supply holding up?

Some time back I ordered one of these. The price was amazing (and delivery was free). It arrived today and it works a treat. The case is a bit flimsy, but I'm not going to submit it to anything too rough, and so it should do just what I want.

What does it do? You plug it between a USB device and a power source and it tells you the voltage that the source is providing and the current the device is consuming. It can tell you if your phone is charging or not. It can tell you if your Raspberry Pi is taking too much current out of the adapter. For the price, well worth picking one up and adding it to your toolbox.

Making the Web Work for you at C4DI

Another interesting evening at a C4DI meetup.  I don't actually make a website that sells anything (other than the brand of me I suppose) but the session was fascinating even so. Mike Jessop from Strawberry gave a talk on Digital Marketing. Used properly the technology can give web vendors invaluable insights into how their customers tick and what makes them actually go ahead and buy stuff.  Used badly it can give customers the feeling they are being stalked by an oven

The most important single point for me was that Google Analytics is where you need to go and live if you want to this kind of thing properly. I do have it switched on for my site, but I don't really use it as much as I probably should. But then again, I'm not really selling anything.

Analytics is free, and very powerful. I didn't know that you could use it to create dashboards that show real time activity on the site, summary reports of the way your site is being traversed by visitors and even perform a/b comparison of site designs to work out which is the most profitable. 

The other thing that came out was just how much tagging and profiling goes on. Mike recommends the Wasp profiler as a way of finding out how many tags each web page contains. A tag is a link embedded in web page that lets servers behind the scenes track what you are doing and pass the information around so that what you see on the next page reflects where you have been.  This is how my oven managed to follow me from site to site.

Apparently the Holy Grail of web marketeers is a system that can track the way that you move between mobile, tablet and desktop as you move from following a link in an advert through finding out more about the product from your Facebook friends to search for the product on Bing and then buying it. We are not quite there yet apparently, but we are heading that way.

Personally, I'm not sure if this is scary or not. I remember years ago that when you answered an advert in the paper and you put "Department G176" on the top of the address you knew that this was how they were tracking the success of their promotions.  However, nowadays it all takes place in the background. I reckon it is all about making sure that folks are aware that this kind of thing is going on.

Mike was very keen to make it clear that if you get too heavy handed with the technology and start gaming it to swing results your way this will end in tears as the users and the service providers change the way they behave, and his talk provided a really good overview of how to make the best use of what is out there. The best sessions leave you wanting to find out more, and this one did that for me.

Galileo Windows Upgrade Now Available

I wrote about the Intel Galileo a while back. It's an Intel Quark based device which, as you can buy it at the moment, runs a cut down version of Linux which allows it to behave as an Arduino (it has shield connections) with a high performance backend

At the time I took my first look I was bemoaning the way that the really interesting aspects of the platform (the ones which have it running a variant of Windows) weren't available for shop bought Galileo devices.

Well, that's changed. If you have (or you get) a Galileo device you can now upgrade the firmware and install a Windows based operating system on an SD card for the device to boot from. Upgrading the Galileo and making the boot image are easy enough (I know this because I've done it) and raise the interesting prospect of running full fat Windows programs, created and deployed using Visual Studio, on a processor around the size of your toenail.  You can find out more here

Minishift on Raspberry Pi

Well, that was a fight and a half.

I've finally got the Minishift that I was building connected to the Raspberry Pi and working. This turned out to be a lot less trivial than I expected. One of my strongest beliefs is that the best way to learn stuff is to try and do things. I've sure learned a lot this time. 

You can put items into the Minishift in a variety of ways. It supports SPI (Serial Peripheral Interface), so you can just connect an Arduino (or probably a Raspberry Pi) directly and it should just work. However, it is supplied with a rather spiffy USB-SPI interface and so I thought I'd use that instead. It looks neat. 

So I plugged the board into my Pi and up popped a new HID (Human Interface Device) in the dev folder. So I thought all I'd have to do was install the Minishift Python program and I'd be good to go.

Wrong. Wrong, wrong, wrong. 

What I had to do (from memory, there may be steps I've forgotten) was to:

  • Update everything
  • Upgrade everything
  • Install missing things
  • Install python-dev
  • Install pip
  • Install minishift
  • Install Cython
  • Install libusb
  • Install udev
  • Install hideapi
  • Remember to run Python as super user so it could see the device

Anyhoo, it now works fine and the hardware looks great. The next step is to get a perspex case for the Pi and then make a little mounting bracket so I can put the Pi and the display on the wall somewhere and have a clock/RSS feed reader/weather forecast thing going. 

The MiniShift is great fun to build. You can find it on Tindie

Our New Robots have Arrived

It is with a heavy heart that I've had to retire the .NET Micro Framework robots that we've been using for teaching our embedded module for the last few years. They served us very well but wear and tear on the mechanical bits has meant that they are having to be put out to pasture....

The good news is that the replacements devices have arrived (or at least some of them). We are using the Arduino bot which has one or two useful attributes, including a dual processor design, a spiffy LCD panel and a bunch of line following leds. 

Now all I have to do is update all the courseware.....

Home Made Minishift Spacers

I spent a very happy afternoon making up an ArachnidLabs MiniShift that I got a while back. At least I was very happy until I got to the point in the instructions where it said "Now, take one of the spacers and fit it to the circuit board..."

Of course I'd lost mine.

However, the good news is that I happen to have a 3D printer. And so I was able to design and print a set in a rather attractive blue colour and then continue the build. I've not tried firing them up yet. That's for next week.

Photographing Custard for C#

You probably ought to know that the custard colour has been slightly enhanced here....

You probably ought to know that the custard colour has been slightly enhanced here....

I'm presently updating the C# Yellow Book for next year. The next version will be the custard edition. Last year it was the "Rubber Duck", and before that we had the "Daffodils" one.

I've no idea what we will use next year. 

Anyhoo, this meant that we needed a picture of some "stunt custard" in a specially purchased jug.......

Raspberry Pi B+ Tabletop Upgrade

Still a work in progress...

Still a work in progress...

It's been nearly two years since I started on my Raspberry Pi powered arcade tabletop. I got it to the point where it was just about working and promptly lost interest. For a considerable while the poor thing has been languishing in my office. I even took the drastic step of removing the monitor in the hope that the sight of the empty hole might motivate me to actually finish it off. 

Anyhoo, this week I've decided to actually get the project finished. I've made an arrangement with Robert that if I've not got the table finished by the time he comes back from his travels I'll give him fifty quid. I figured that this would force the issue nicely. So far it is working....

Another reason for finishing it off is that I needed a solid reason to play with the new Raspberry Pi B+ device. This has lots of advantages for this project. It has four USB ports so I don't need a USB hub or separate power supply. I now just need two power cables to the device. One for the monitor and the other for the Pi. 

My B+ arrived today and I spent a little while getting it going. There is actually an operating system image specially for emulating games machines now, it is called PiPlay and it is rather nice. You just download the image and it has emulators for lots of devices. It hooks into Mame4All, which is the latest incarnation of Mame for the Raspberry Pi. 

However, I found that Mame4All is not quite what I want for all the games I want to play. It is based on a slightly older version of Mame which is good because it performs better, but bad because it is missing one or two crucial features. The biggest omission is the lack of the "cocktail table" button.

One of the things I want to be able to do is have a player at each end of the table so that they can get proper Player 1 vs Player 2 action. This means that I need to be able to invert the screen when each player takes their turn. Mame4All doesn't do this, but AdvMame does.  But then Mame4All works with some games that AdvMame doesn't like...

So it looks like I'm going to have to have several different Mame installations installed and then write a script that fires up the appropriate version depending on which game we want to play. Which shouldn't be too much of a stretch.

As for the Pi B+, it works very well. The only problem that I've found is that if you connect a USB device that wants a fair amount of current, for example a USB hub or speaker, it causes the Pi to reset. I think there are some settings that you can adjust to allow more current from these ports. I'll have find out more about this. 

I've also ordered some glass from Jack's Glass for the top. I just hope that Robert will be impressed when he gets back....

Haynes Motor Museum

Maybe one day....

Maybe one day....

One of the places that we visited on our holiday travels was the Haynes Motor Museum in Yeovil. If you like cars you'll love it there. They had some wonderful vehicles and a Mini that had been cut in half (as opposed to the one I used own, which fell in half all by itself). 

You could see all the inner workings of the Mini and I think I rather bored number one son as I went around the exhibit identifying each of the components that I'd had to replace on mine. 

If you are in the area you really should go and look around. They do go-karting too.

Guinea Pigs On the Run

Wanted in most states....

Wanted in most states....

We've had guinea pigs as pets for ages now. I quite like them, in that I strongly believe in having pets that are more stupid than you are. And with guinea pigs I've felt quite safe in this respect. Until now.

We fetched the two newest members of the family on Sunday. As soon as I found out that one of them was all black I wanted to call him "Darth". This didn't go down too well, the name "Licorice" being preferred. However, having seen him in action, we are starting to think that Darth might be more appropriate. 

They escaped last night. I'm convinced that Darth was the ringleader in the break for freedom. What should have been a quiet evening was instantly turned into a festival of fear and panic as they ran every which way and loose. I managed to catch Darth after a while and the other one (provisionally named "Henchman") was apprehended by the simple expedient of dropping a tea towel on him as he ran across next door's garden. 

At present their cage is surrounded by second level perimeter system and we are making plans to move them into more high security quarters which should keep them where we want them.

For now...

Lights and Taps

No more drips...

No more drips...

The lawn needs mowing. The upstairs is covered in discarded music CDs. And the kitchen tap has been dripping for ages. A perfect time to start building a computer controlled led display for downstairs. Or perhaps not.

At least I've fixed the tap now. Modern taps are strange. When it started to drip I went up town and bought every sized tap washer that I could find and then set to.

As soon as I took a proper look at the tap I discovered that it doesn't use a standard washer, it uses some strange right angled tap device. A quick search on the internets revealed that a lot of people solve this problem by purchasing new taps. Which wasn't entirely helpful.

So I did a more careful search and came up with these beauties. They dropped in as a direct replacement and work a treat. A little tip though. Make sure that you put them on the correct sides otherwise you'll end up on Amazon complaining that the replacement taps work fine but their action has reversed and the up position is now on rather than off....

I'm going to tidy upstairs and mow the lawn later. And the lights and controller boards are in stock. I love having a project on the go...