Weeknotes for 18th November 2019 – 24th November 2019

I’ve followed a few digital government folk like @edent on twitter for a while and seen their #weeknotes approach to blogging, so I’ve decided to dip my toe in and write a little post about what I’ve been up to this past week.

It can be difficult to remember everything you did if you don’t deliberately keep notes, but the one thing that was keeping notes all week was my browser history. Reviewing your browser searches can be quite enlightening, revealing things that tripped you up or that you needed help with.

🔎 roku sdk, 🔎 brightscript & 🔎 windows 95 star field

On the 17th Nicole He posted up a thread on twitter showing the truly bizarre and kinda-probably-NSFW collection of screensavers available for installation on Roku devices. I didn’t even realise that screensavers for your Roku were a thing or that custom ones were available. I immediately signed up for a developer account, of course, and started work on bringing a late 90’s classic back from the dead and on to my TV screen.

🔎 oracle regular expression & 🔎 regexp_like

We’re continually updating and upgrading our applications at NatureScot, and an integral part of that work is data migration and management. I had to wrangle some ‘stringly-typed’ numbers this week in our Oracle database and so I got an opportunity to flex my regular expression muscles. Luckily for me, it didn’t turn in to two problems.

🔎 angular template reference variable, 🔎 ngcontent & 🔎 ControlValueAccessor& HtmlInputElement

At NatureScot, we develop our applications like SiteLink using the Angular framework. To keep our UIs and UXs consistent between applications, I’ve been looking at what’s required to put our commonly re-used components in a library available for re-use across the organisation.

🔎 httpstatuses

Creating and working with RESTful services mean you need to have a pretty decent knowledge of the HTTP status codes. I can never keep track of the higher-numbered 4xx errors, which is why I like this HTTP Status Codes site.

🔎 metalsmith, 🔎 handlebars stringify & 🔎 json stringify circular

I had previously used Metalsmith for this blog – it is now hosted on WordPress. I’ve written this blog using the static site generator Metalsmith and to get to grips with the data structures it creates on its journey from markdown to HTML I was looking at a way to dump the current page’s object to the HTML. This brought to light an interesting point that JSON.stringify cannot handle javascript objects that contain circular references, but console.log can. Something to remember for the future!

🔎 unicode arrow, 🔎 html5 unicode, 🔎 html5 semantic elements, 🔎 mdn date localedate

As part of my blog’s redesign I was looking at ways to embed forward and backward arrows for post-to-post navigation and how to get some ‘pretty’ looking dates displayed on the home page. I can never remember the proper way to embed a hex reference to a unicode character in HTML. It’s &#x????;, by the way.

🔎 remount usb rw & 🔎 linux mount hfsplus ignore user

I was doing some tidying one evening and came across a couple of old USB memory sticks that I had no idea what, if anything, was on them. It turned out they were from back when I ran OS X/macOS on my laptop, so getting access to them to back up the files and wipe the drives took a little bit of effort.

🔎 jess frazelle docker firefox, 🔎 vscode x11 forwarding & 🔎 web vnc

I’m a techie at heart, and I’m always on the look-out for new, hacky, ways to set up my environment. I’d love to be able to work properly from an iPad, and I’m 90% there with Prompt connecting to my Linux server, but I’ve not got a good solution for very interactive GUI applications yet. I’ve followed Jessie Frazelle on twitter for a few years and I could remember that she had written a blog post about running desktop programs like Firefox in docker containers. If I could spin up an application in a container then I could deploy that to my Linux server and use it as headless terminal.

I managed to get Mocha X11 on my iPhone to connect to my Debian laptop and launch vscode from there to display on my phone’s screen. It didn’t appear to work at first, as each time I connected using Mocha, the new copy of vscode appeared on my laptop screen and not my phone screen. I eventually realised that vscode was sharing some sort of ‘session’ and launching subsequent copies as extra windows on the first copy – not as wholly new processes. Killing all vscode instances and trying once again from the phone worked a treat.

It turns out that vscode isn’t a great application to run over X11, probably because it’s an electron app, so rendering is handled in a very non-X11-efficient way. I tried launching KeePassXC instead and it performed a lot better.

In my further searching around the idea of web vnc I came across Apache Guacamole, which looks quite promising as a method of accessing applications remotely. If I can set it up as some kind of gateway to allow access in to my dockerised desktop applications, I might be on to something.






Leave a Reply

Your email address will not be published. Required fields are marked *