Spot the bug..
/Version 0.9 of my playlist generator for the car had a tiny bug in in. Can you use your skill and judgement to tell me what it was?
Rob Miles on the web. Also available in Real Life (tm)
Version 0.9 of my playlist generator for the car had a tiny bug in in. Can you use your skill and judgement to tell me what it was?
Me on my horse. Some time before I set fire to him.
I'm still enjoying Zelda: Breath of the Wild on the Nintendo Switch. I managed to get a horse today. Then, wandering through a camp I wandered a bit too close to the camp fire, and set him alight. He promptly threw me and wandered off in a huff. As you might.
..at least you get a nice picture of a duck thrown in...
Working on an idea for a film about an American scientist who invents a machine that cuts off the bottoms of faces, and then goes on the rampage with it. Provisional title "Texas Chinsaw massacre".
Windows 10 is lovely. But there are some things that it does that drive me a bit nuts. Like, when I've downloaded a file, and then want to find it in my downloads folder.
Not a particularly strange request you might think.
But Windows 10 acts as if I've just asked for the cure for cancer and the ten millionth digit of pi. Along with next week's lottery numbers. My powerful machine with it's ultra-fast hard disk (at least that's what the salesman said) grinds to a halt while the operating system "works on" finding the files in a folder.
Why?
Is the world surprised that I bought a Nintendo Switch? No. Does the world care what I think of it? Probably not. But anyway, I like to write these things down, so here's my thoughts after nearly a week of ownership.
The Nintendo switch is properly different. It's not just a console. It's trying to be a way of life. My Xbox One sits under the telly and when I fancy a bit of Forza Horizons I can fire it up. And that's that. Walk away from the Xbox and I walk away from the game. But the Nintendo Switch wants to go everywhere with me. It can be connected to the TV. But I can also undock it and carry my games with me. The controllers can be attached to the side of the tablet, or they can be undocked and used individually, or clipped to a carrier to be used as an external controller. There's no need to buy a second controller if I fancy a bit of two player action, each player can have their own tiny controller. And I can prop the tablet on its kickstand and use it as a tiny free-standing display.
And everything I've described above just works. But there are niggles. The hardware is nice, but the screen looks incredibly easy to scratch. The slide on/slide off side controllers can be fiddly to remove and re-attach. They also have a wrist strap attachment that is horrible to use, and makes you feel like you're breaking something each time you detach it. There are not that many games available. Zelda: Breath of the Wild is awesome. A properly vast and detailed world that you can inhabit. 12 Switch is a real curate's egg. Great in some parts, very ho-hum in others. And horribly over-priced. But the SnipperClips game is fantastic. One of the best two-player games I've ever seen. I'm not sure if it was just made for the Switch, but the gameplay and the way that you use the controllers feels like it was. Great fun. If you have a Switch, you must get this game. But that's about it for the release games. Everything else is either out on other platforms or looks a bit ropey to me. Although I've heard some good things about Shovel Knight.
I've grown to like the Switch. If I'd bought a new console and stuck it on a screen in the house I'd probably have played with it quite a bit in the first week. But I've used the Switch a lot, simply because I can. I can cart it around with me, and wander around the Kingdom of Hyrule any time, and any place I want, It's not got graphical quality that I've not seen before, although Zelda does look very good on the big screen, but it does have a portability and a package that I think will appeal to folks, as long as Nintendo can keep "Zelda quality" games coming.
Visual Studio 2017 came out yesterday. And today I downloaded my copy. I was keen to find out what was happening with the Python support.
What can I say? I like Python.
Anyhoo, Python is not in the release version of Visual Studio 2017, which is sad. But, you can still get all that crazy Python goodness (along with Intellisense and a lot of other neat stuff) by going here and following the link to download a pre-release version of Visual Studio 2017 with Python built in (which actually works alongside your "proper" install). Which is great.
This morning the weather looked promising, so it was off to Hornsea for a coffee and a cake. As you do.
This picture came out quite well, although I wish I'd seen that traffic cone before I took the shot....
I've got confirmation of the venue for my world famous (in my world) Comic Relief lecture in rhyme for 2017. I've been producing bad poetry in aid of charity for over twenty years. This year I'm breaking one of the immutable laws of showbiz:
Never work with children, animals or robots.
My lecture will be accompanied by a horde of Hull Pixelbot robots, each of which has a mind of its own (and isn't afraid of using it). You'll even be able to control the robots yourself during the lecture. As long as you've sponsored me here.
I've chosen a crack team of robots to help in the presentation. Above you can see them being put through their paces.
The lecture starts at 7:00 pm in the Large Lecture Theatre in the Applied Science 3 building on the Hull University campus. You can find a map of the campus here.
There is free admission to the lecture but, as always, you'll have to pay to get out. I'll have robots guarding all the doors.
Please come. Bring money. Bring a friend. Bring pies.
OK, they're not really alloy. Although you could cast them out of shiny metal if you wanted. I'm going to have a go with some metallic filament I've got lying around.
Anyhoo, I've spent some time today improving the Hull Pixelbot wheels. They've been simple disks for too long. They now have a specially designed rim which turns a simple elastic band into a workable tyre (and the band doesn't seem to come off) and the rim is actually narrower than the wheel. And, the wheel now has holes in for lower weight, a better 0-60 time and faster printing.
I've just to do one final test on the finished design and then I'll put them on GitHub.
I first came across Andrew "bunnie" Huang when I had a Chumby. I used to read the Chumby blog and he made some excellent posts about the ins and outs of dodgy SD cards. He's got a fantastic perspective on the business of making stuff, with special emphasis on how things get done in China.
He's written a book all about this, which I'm really keen to get a copy of. You can get a taste of the content on the book site, which seems to have a different chapter from the book each day. I've read a couple and really enjoyed them.
If you have any kind of interest in how things are made, or if you have ever fancied having something made in Shenzen you should have a read of this book.
It's lovely to see research work in Computer Science getting the recognition it deserves. The Dependable Intelligent Systems group at Hull has been doing some lovely work connecting the behaviour of penguin communities with reliability issues concerning regenerative braking systems on electric cars (among other things). Yes. Really,
There's a great report of the work here.
It usually takes me a while to get around playing video games. I've still got a copy of "Batman - Arkham Asylum" for the Xbox 360 in its shrink wrap. Must get round to firing that up.
Anyhoo, I've started playing "Uncharted 4: A Thief's End" properly this weekend. It's very, very, good game. In fact it's like taking part in a movie. The production values are sky high, everything is polished to perfection and I'm really enjoying it.
These games are so clever that they can play themselves. And during some of the gameplay I'm wondering if that is what is happening, and I'm just watching. When I'm jumping around and hitting all the hand-holds, or shooting with unerring accuracy, it sometimes feels that the game is doing all the work and just leaving me with the impression I'm in charge.
I remember talking to someone about game development using the Wii Motion Controller. They were talking about how they managed to implement a particularly complicated gesture the player could make. They said something like "We just look for when the controller goes nuts, and assume the player is making that gesture". And nobody had ever complained about this.
I guess at the end of the day, when you write a game you are after giving a good experience, and one way to do this is to give the illusion of being in control while the game runs. I know it's the same with Forza 3. The game is giving me an impression of driving, and leaving out lots of control issues, not to mention the awful consequences of making a mistake.
Having said all this, the game is hugely impressive and shows, yet again, just how much of a cinematic feel that modern games have.
Apparently household insurance is important. I'm not keen on living in a box, although the single is awesome, (out of date pop culture reference alert) and so every year I've been paying a chunk of money to Legal and General so that if anything terrible happens they'll come round and sympathise with me whilst explaining why they can't pay me any money.
This year I took a proper look at the renewal price and it seemed a bit high. So I did a bit of digging and discovered that I could get equivalent cover for around a quarter of what I've been paying.
I rang up the company, was told that mine was a special "Rainbow" policy that was not arranged directly by the Legal and General. I think it's called Rainbow because I'm the crock of gold at the end of it.
Anyhoo, after 25 minutes on hold and being cut off, I finally manage to find a person to talk to. He asks if I'd like to cancel the policy. I ask him what he would do in my situation. We both agree to cancel the policy.
I'm not saying which company I used to sort out my new insurance, but apparently I can now take a cuddly toy to the movies with me for free. I'm pleased that I've saved some money, and cross that I've been paying so much over the odds for all these years. I'm now going to carefully examine all my other policies and whatnot to see if I'm being ripped off by any of them too.
It seems that the phrase "valued customer" is now as outdated as ones like "liars don't prosper" and "manners maketh man". Life eh?
When I was growing up I read a lot of science fiction. And pretty much my favourite author was Isaac Asimov. If you've never read any of his stuff, I envy you. You've got some great stuff out there to discover.
His stuff is brilliant. You can say what you like about the writing style (some of it hasn't aged particularly well) but the ideas behind it were always top notch. He was particularly good when writing about robots, and will go down in history for his "Three Laws of Robotics" which is becoming increasingly relevant today. Seek out his stuff. Read it. Enjoy.
Isaac Asimov liked writing short stories and wrote a bunch of really good ones which explored the Three Laws and how they can be bent. And the BBC have just made a series of 15 minute drama presentations of the best ones. They are really, really good.
Well. I'm now officially, properly, incontrovertibly old. I've just become a grandfather.
Baby Imogen was born last night. We went to see her today and she is awesome. Just awesome.
Behold. After a couple of hour's work we have the first version of an M3U compatible (yeah - right) playlist generator. You point it at a device full of audio files and you can select tracks for inclusion in a playlist you can then save. I love using Visual Studio and C# to put useful things together quickly.
Next step is to have a crack at decoding the track information so I can select music by genre.
The music player in my car is quite good. I can plug in a memory card and load up a whole bunch of music. The player interface also talks enticingly about "playlists", but I don't seem to have any and there seems no way in the car to create them.
So I do some digging. After a bit of searching I discover that the car will accept playlists in the "M3U" format. This format can be exported from some music players and you can also find programs that will create M3U files. Which is useful.
But, me being me, I fancy writing my own M3U file generation program. So I do some more digging. It turns out that the format of an M3U file is a list of tracks in a text file.
That's it. No cunning schemas or encoding techniques. Just a list of names. The only fiddly bit is in the file extension which I think needs to be m3u for non-Unicode and m3u8 if the text is UTF-8 encoded. You can make it more complicated by adding directives (there's a good description here) but it turns out that I can start making these exotic sounding files with just notepad. I'm going to have a go tomorrow.
There's a lesson here folks, which is that in the Wonderful World of Computers(tm) it is quite frequently the case that something horribly complex sounding will actually turn out to be quite simple. Don't work on the basis that "it will always be too hard for me to understand". Every now and then something is as simple as the simplest thing it could be.
Got up bright and early to go and work down at c4di today. I've got all my robots set up there now (they've got plenty of space, which is nice) and I wanted to work on remote configuration of robot settings.
I was up so bright and early that the car was actually frozen solid. And as I drove into town a clear bright morning turned into something a bit foggy. But this did make for some nice photographs when the mist cleared a bit.
Some seagulls
c4di looking shiny
I've been experimenting with some wheels I found on a different, lessor, robot. They are about the right size, and they give a Hull Pixelbot a nice "off-road" feel. They make turning a bit more difficult though, as the thick tyres are very grippy.
I've also been playing with printing "light pipes" inside the shade for the pixels. The idea is to give better defined points for a camera to track the position and orientation of the robot. But I think the results are quite artistic too.
Maybe not a great score. But a great number.
Rob Miles is technology author and educator who spent many years as a lecturer in Computer Science at the University of Hull. He is also a Microsoft Developer Technologies MVP. He is into technology, teaching and photography. He is the author of the World Famous C# Yellow Book and almost as handsome as he thinks he is.
Begin to Code with JavaScript is now available for purchase and download. You can find it here