Related Posts
Accessing and manipulating a 32bit integer as a byte array in C++ using unions
I don’t think I’ve ever used union for anything, but today I came across a very interesting use case to avoid bit-shifting tricks when dealing with data embedded in numbers. What’s a union? Microsoft defines it this way A union is a user-defined type in which all members share the same memory location. This definition means that […]

How to create a list that holds different object types using `void*` in C.
I remember being in school back around 1998 and not knowing enough about C to do this. After coding in other languages, then going back to C++ and understanding at a lower level how references and pointers work, this was pretty easy to figure out. In this exercise I store elements of different types in […]
Emacs Pocket Guide
I wrote this a long long time ago when I was learning emacs, then pasted it on linuxmachos.org, but that site is down atm. So here’s for future reference EMACS POCKET GUIDE Ctrl+g Cancels anything (useful for n00bs) == Saving == Ctrl+x s Save buffer (buffer a.k.a filez) Ctrl+x Ctrl+w Save As == Opening and […]