abstractOwl .github

code atom

Logs, logs, logs!

As services become more and more complex, log analysis has become increasingly imperative when trying to diagnose bugs. Services now generate megabytes or even gigabytes of log files on an average day, and it’s more often than not impossible to look through data manually from each file, or even open them in certain text editors (*ahem* Notepad). So how do we work with these files?

Debug Logging in C

Using printf for debugging is simple enough for small projects, but what if we want more information?

UINT_MAX in C

Quick tip: You can also get UINT_MAX in C by doing (unsigned) -1.

Adventures in Prolog

Over the past couple days, I’ve been banging my head against the wall, trying to understand the logic programming language Prolog (or more specifically, SWI-Prolog) for our CS162 Programming Languages class.