Ongoing | October 2022
I wrote a blog post about using Go Graphics and how to use the graphics functionality to design book covers with Golang. Since I published the blog post it’s become one of the most read posts on my site. I’m enjoying having the time to spend on writing developer content.
I’m even contemplating starting an opinionated blog on architecting solutions in AWS. After running large workloads in the cloud for five years; I’ve got strong opinions on how health applications should be designed and deployed.
I’m presenting at an AWS roadshow in Edinburgh on the 3rd of November. As such, I’ve spent this month pulling my slide deck together. I detest using Microsoft Powerpoint; and have been experimenting with using Asciidoctor to produce the slides. The resulting PDF is pretty good. With minimal changes to the PDF theming file, I now have a PDF file which opens in presentation mode. I’ll certainly be writing up the process in future blog post.
At band, we got sight of the area contents test piece; and so the practice and sectionals begin. On the 12th, we performed a charity concert to raise funds for Hospice at Home, an independent charity committed to providing high quality care and support for adults who have palliative and end of life care needs. The concert at Wigton Road Methodists Church was well received.
For the last two weeks of the month I was full of a cold. This knocked me for six. I felt worse than I did with Covid. It was bad enough to prevent me practicing the cornet.
Body chart markup
I worked on a new challenge this month. I needed to see if it was feasible to create a system to allow clinical staff to mark up digital body charts. The video below shows what I’ve managed to create so far.
The system uses a HTML5 canvas tag and leverages Fabric.js to handle the majority of the drawing. Since the video, I’ve also added zoom in/out and panning of the canvas.
It’s starting to show promise, and I’ll be using this on a Dermatology referral request. The doctor would select the location of the moles on the body, and then attach photos to the point. The photos and points would be attached to the referral.
Video file conversions with FFMPEG
This month I learned how to do some video file conversions with ffmpeg. I’d recorded a short screen cast of the body chart software using Kazam to share with colleagues. The resulting MP4 couldn’t be uploaded to Twitter, or shared on WhatsApp as it was the wrong format.
However, ffmpeg could convert the video to the correct encodings with this command:
ffmpeg -i input.mp4 -c:v libx264 -crf 20 -preset slow -vf format=yuv420p -c:a aac -movflags +faststart output.mp4
After reading this blog by xeiaso, I too want to start hosting videos on infrastructure I own/manage.
HLS stands for HTTP Live Streaming. Its a HTTP-based adaptive streaming protocol developed by Apple. The protocol has widespread support in media players and the HTML5 video control can play the videos in most browsers.
I’d never heard of it before, but there is a segmenter which divides the video into fragments of equal length. Each fragment is roughly ten seconds of video The web browser then requests the fragments as they are needed. The segmenter also creates an index file that contains references of the fragmented files, saved as .m3u8.
To covert an mp4 file into the HLS format use the following command:
ffmpeg -i ./input.mp4 -profile:v baseline -level 3.0 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls output.m3u8
The video embedded under the body charting section is using HLS, with a fall back to an MP4 version of the video if HTTP live streaming isn’t supported by the client. I wrote a more depth blog posts at — HLS Video Streaming with MP4 Legacy Fallback.
- 58 bytes of CSS to look great nearly everywhere.
- A Practical Guide to the Web Cryptography API — I want to make a future release of MIA use end-to-end encryption, this guide should be able to help me deliver that capability.
- CloudWatch Agent on EC2 with Terraform — How to deploy with Terraform so that disk space can be monitored from CloudWatch. I want to bake this into my EC2 blue print going forwards.
- Postgres: a better message queue than Kafka?
- Returning related rows in a single SQL SQLite query using JSON
- Awesome Security Write-Ups and POCs — A curated list of delightful write ups and POCs
- Awesome EventBridge — A handy list of resources for getting up to speed on events, patterns, and using Amazon EventBridge.
- Simple, Fast, and Scalable Reverse Image Search Using Perceptual Hashes
Still reading and enjoying the 5th book in the Wings of War series, Of Sand and Snow
I’m listening to Craig Alanson’s Expeditionary Force, book 8 : Armageddon. This month I subscribed to a new podcast titled CoRecursive the story behind the code. I especially liked the episode with Richard Hipp telling the The Untold Story of SQLite.
The Sky History channel has a good series called Cracking The Code which I enjoyed. It reveals the greatest codes known to humanity and the brilliant minds that cracked them.
Google released well-produced YouTube video series called Hacking Google. Start with the first one in the series Operation Aurora and then follow the links to the others. Threat Analysis Group, Detection & Response, Red Team, Bug Hunters and Project Zero.
I remember as child I loved watching The Paper Chase with my mum. It follows the lives of law student James T. Hart and his classmates at an unnamed law school. Well the episodes are free to watch on the Internet Archive. I might re-watch them and see if it’s as good as I remember.
A work colleague recommended The Watcher on Netflix. I enjoyed it immensely. Ominous letters. Strange neighbors. Sinister threats. A family moves into their suburban dream home to discover they’ve inherited a nightmare.