• Coding in C: Could Changing the Order of Declaration Change the Code Size? Exploring the Impact of Hardware Architecture on Code.

    This is a draft for Medium. Does re-ordering declarations change the how the compiler generates our code? This post explores two things. Firstly, a handy way to save code size on Cortex-M embedded devices with limited resources. Secondly, it is looking at the impact of the hardware architecture on meeting...


  • Not Scraping Real Estate.com.au

    I’d like to automate my monitoring of local real estate. Just a private resource, I’m not trying to re-create a site such as http://house.ksou.cn/. I’d like to implement a process to automate and do efficient market analysis, something like this: Scraping A few years ago was to easy to scrape...


  • KVM On WSL2

    Replacing VirtualBox with KVM inside of WSL2. Compile a new Kernel. KVM needs to be enabled in the WSL kernel variant. This post gives the details: https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/ A few key points: Microsoft’s kernel is here: https://github.com/microsoft/WSL2-Linux-Kernel/. The default config is in Microsoft/config-wsl You update the config to enable KVM and...


  • A Simple Example app in Vue3+Typescript

    Vue3 Vue3 is the latest iteration of the Vue framework. The attraction for me is: Component based development. Each component can be encapsulated in a single (.vue) file that encapsulates: the presentation (Templated HTML), view logic script (JavaScript or Typescript), style (SCSS). A model can be built outside of the...


  • Docker and GitHub Actions for Embedded Compilation

    Using Docker and GitHub actions to build an embedded project. These scripts have been added to to the modern C++ RISC-V blinky project to implement build on push. Dockerfile docker_entrypoint.sh action.yml .github/workflows/main.yml The general flow is: The github/workflows/main.yml has a trigger on push, this invokes an action in action.yml. The...