Advent of Code 2018

December 25, 2018

I participated in the Advent of Code ‘18 and I suggest you do the same in the year you’ll be reading this. I wasn’t able to bring myself to actually finish it in 2018, for various reasons, main one being my general disdain for the competitive programming. Below is the link to my GitHub repo with the solutions I made. I started solving the AoC with the language I am using every day on my job, Javascript.

(Yet Another) Simple Explanation For Pointers in C

December 12, 2018

This is an answer to a Quora question How would you explain the most complex concepts of C, such as pointers, in the easiest way to a 13-year-old boy? I removed myself from Quora forever so this answer doesn’t exist there anymore, but the question still is. By themselves pointers are not a hard concept. Dereferencing them is. ;) To actually understand what is going on in C, one has to have a specific mental model of how the C runtime treats the memory.

CUE generator

November 16, 2016

Convert text file with list of tracks to CUE definitions Usage: php cue.php FILENAME [START_INDEX] Writes new file named FILENAME.cue In the input file each line should be in the format: minutes:seconds performer - title Colon between munutes and seconds and space-dash-space between performer and title are mandatory. Non-well-formed lines are ignored. In the output file there’ll be the following block of data for each well-formed line: TRACK ## AUDIO PERFORMER "performer" TITLE "title" INDEX 01 minutes:seconds:00 which corresponds to proper CUE format.

Running Database Dependent Tests on Ramdisk

June 29, 2013

Today's guess is this: you have a test harness which utilizes the database, and it has enough test cases in it for full test run to be so slow you cringe at the very thought of launching it.

Über prompt string for modern commandline

November 11, 2012

Okay. Today’s XXI century already. You have colored commandlines everywhere and you have basically single-user *nix OSes. Now it’s time to shift from default commandline prompt strings to something more useful (and fancy, of course).

Status update of AFCALC development

September 17, 2011

Well, AFCALC development goes smoothly and I reached the important milestone. Code base substantially shrunk — I was mostly fixing bugs, not adding features.