Author: Jeffrey04
-
Video data IO through ffmpeg subprocess
As I restarted my job search (yes, I am still #OpenToWork, ping me!), in one of the job applications, I was asked to implement a prototype that processes video data. While working through the project, I unexpectedly got a lot of help from generative AI chatbots due to my relatively inexperience in the area. As…
-
How to code a Sorting Algorithm for Advent of Code 2024
In the previous post, I briefly mentioned that I am participating in this year’s Advent of Code. Co-incidentally, in one of the puzzles, specifically the one published on day 5, involves fixing the order of pages in a list. This came not long after I posted about implementing a sorting algorithm, so I figure I…
-
Why does everyone love sorting algorithms?
I had an interview a few weeks ago, and was asked to implement a sorting algorithm. I didn’t manage to do it on the spot, but managed to revise and sent it back in my follow-up email. That was my second time implementing a sorting algorithm, the first was during my play through of Human…
-
Building state machine library with help from AI tools
Just out of boredom, while waiting for my follow-up interview sessions, I built a state-machine library, powered by genruler. I built one in the past, to be exact, during my first job after graduation. This implementation is loosely based on the design my supervisor drafted back then. The project also aimed to showcase how the…
-
Remaking a rule-engine DSL
A few years ago, I reimplemented a domain-specific language (DSL) originally designed for the rule engine at work. The toy reimplementation was written in Javascript (originally in Python), and released to GitHub. I did not expect it to do much, as it was specifically designed for a very specific use-case I should not reveal. The…
-
Building a desktop launcher
I still use QuickSilver on my mac, despite there are multiple efforts attempting to displace it. There used to be one made for Linux, called Gnome Do, however the development eventually stopped. I settled for the built-in launcher in Gnome Shell, and then briefly moved on to rofi with this configuration. One thing I liked…
-
Implementing breadth-first search in low-level setting
This is a follow-up article on my play through of Exapunks, feel free to read the prologue to this series to learn about the background. In this article, we will briefly talk about implementing a recursion in a low-level setting. As we know, we can do a simple recursion easily with languages like Python, as…
-
Practicing Low Level Programming with Games
In my day-to-day work, I mostly communicate with computers through high-level languages. High level languages are designed such that instructions are written with a small subset of vocabulary we use in day-to-day life. For instance, we use the keyword for / while / map etc. to repeat certain operations, defining function or subroutine for repeatable…
-
Attending an Open Government Workshop
Earlier in the year, I was invited to work on a project to archive and parse legislative data from the website of Selangor Assembly. It was the technical side of the project, where we demonstrate some of the benefits that may be achieved if the data was published in structured form. In the past weekend,…