Raising Exceptions

Programming Journey Blog

Check me out on GitHub

Generate Links to All Directory Files in Jekyll Collection

30 Mar 2021 | programming

I faced some limitations on Github Pages when I wanted to link all files inside a directory with Jekyll. Jekyll is a decent static site generator if you want to create a blog. Anything more complicated than that require messing around JavaScript and Liquid template language. This hack is meant for Jekyll sites that use collections instead of posts.

Read more →

Jekyll Cornell Notes

03 Mar 2021 | programming

I wrote a flashcards generator a few months back. I used it a lot when I was studying for the Food Manager exam. Flashcards are very useful when there are a lot of facts to memorize, but it’s not as effective if the topic has concepts to be understood rather than memorized. I noticed this when I read self-help books. The lessons in these books are helpful but they fade over time if I don’t review them. When I want to find a specific concept but don’t remember where it is in the book, it can be time-consuming to find it.

The Cornell notes system is great for organizing this type of information. I combined the system with the interactivity of JavaScript for my project.

Link to project: Jekyll Cornell Notes

Read more →

Audiosurf 2 Bot

12 Feb 2021 | programming

I finally got a simple Audiosurf 2 Bot up and running. I had the thought of building this bot for a long time but never made the commitment to just sit down and do it. Here’s what it looks like:

This was the first working prototype. There were still glaring issues about accuracy and performance. I fixed some minor problems like the ship not hitting far left or far right blocks. It gets the job done but it’s still a crappy bot. There are still a few issues I have not been able to address yet.

Read more →

Preparing Training Data for Cascade Classifier

30 Jan 2021 | programming

I’ve been building a bot for a game called Audiosurf 2. In that game, you play as a ship that collects blocks and avoid spikes. I used OpenCV, a computer vision library, for processing the images. I followed a few tutorials on YouTube on training a Haar cascade classifier. The results were disappointing. I had a lot of false positives because I did not understand how to prepare samples for the model to train with.

Read more →