Rather Useful Seminar learning experience
/Start with some Lego
One of the golden rules for a presentation is: never do anything in front of the audience that you haven’t tested before. Today I broke that rule, and suffered as a result. My talk was all about making things with AI, and as a grand finale I thought it might be fun to show off the latest thingmaker program. So I opened the page and it crashed. Repeatedly. Of course it has been working fine for ages. It only broke when I showed it to the audience. Wah.
When I got back home I did some digging. This morning I’d added a new device type so that I can make cases for a lovely little ESP32 display I’ve been working with. I tested the changes on a local version of the site and then pushed the new site into the cloud. Then, and this is the really stupid bit, I failed to test the site on my presentation machine. I just assumed it would work like it has for ages.
Not so. It locked up and all attempts to use it failed. After some messing around we (Claude and me) have figured it out. The browser is told to cache some of the program elements locally to improve responsiveness. This works fine until you update the code on the site. Then old and new elements end up loaded together and the whole thing falls apart. If I’d been sensible enough to press CTRL+SHIRT+R during the presentation to force a complete page reload and flush the cache the site would have worked fine, and I would have wowed the audience. Rather than looking silly. But there you are. We’ve changed the names of the cached files so that they are different with each version. This should mean that updated versions won’t get picked up alongside old parts.
The audience were great, some good questions and, once one pair of brave souls had been turned into Lego, we had a few more who were keen to have a go. Of course, this was the point at which the printer battery (or something in the print chain in the camera) got stuck and broke a few prints. Oh well.
If you want to know what my session was all about you can find a screencast here.
I’m off for a lie down.