March 06, 2018

Disk Passthrough for KVM and VMM

Just a little note for those who could use it.

Through just the Virtual Machine Manager UI, there's not a real way to perform plain disk passthrough to a virtual machine. However, to perform a disk passthrough isn't all that hard with just a tweak to a file.

February 01, 2018

Integrating sanitizer tools to CMake builds

Even more tools at your fingertips. What's not to like?

Previously we added tools for code coverage and static analysis via clang-tidy. Now comes the ability to perform better runtime testing through GCC and Clang's sanitizer tools, and integrating them with CMake.

January 15, 2018

Adding C++ code coverage with CMake and GCC or Clang

CMake and code coverage statistics. For the data nerds.

Code coverage gives the ability to determine which sections of code are used, and how much, helping to prevent issues from sections of code that aren't run during tests and thus could potentially fail in production.

January 01, 2018

Integrating clang-tools with CMake

CMake and clang-tools. A match made in heaven?

The clang tools, clang-format and clang-tidy can be immensly useful, both for software development on local machines and as passes in a CI pipeline. This is especially true when they are integrated into a CMake script, where new targets 'format' and 'tidy' can be exist.

June 25, 2017

Fixed Point Precision Type

Because sometimes floats are not enough.

One of the most valuable basic types in computer science is the floating point type. The float is that allows for a massive range of storable values, at the cost of some precision after the value becomes large enough, due to the fact that floats can only store ~7.2 decimal digits. Thus, if we wish to keep a certain fixed amount or precision, we need to either put coded limits around the use of particular floats, or just create our own fixed point type.

March 06, 2017

An all-in-one constructor for typescript classes

Only one constructor, multiple possibilities

Because Typescript is just a superset of javascript, having different constructors from C++ is something that I do indeed somtimes miss. In this case, Java/Typescript classes can only have a single constructor, whereas many times I wish to have differing levels of constructor capability.

December 15, 2016

Automated backups with rsync and crontab

The goto post after you've learned the lesson.

Creating automated backups is, in fact, incredibly simple and easy. So simple, that one can set it up in less than two minutes, and is guarunteed to be the best thing EVER in case of HDD failure, or otherwise corruption.

December 10, 2016

Setting up a Samba Server

It's almost like cloud storage, except secured at home.

The ability to have files accessible from any device connected to the network is a great way to store and consume one's data. For example, on my home network, I have a central basic Linux file server, which stores all my music, videos, pictures, etc, such that I can play my 250GB music collection on any of my other connected devices, such as my dekstop, tablet, and phone, without requiring massive storage for the files on each device, or have to worry about updating the collection on each device.