Monday, January 11, 2016

Migrating a svn repository to git

I realize there are a ton of articles about migrating from svn to git, but this is mostly a note so I don't forget the steps. My situation is a bit particular since I need to import an svn folder to git.



Sunday, December 27, 2015

An opinion on TDD

TDD (Test Driven Development) seems to be used a lot in technical and management circles, together with "CI", "scrum" and other agile-ish buzzwords. Since I've got an internet connection and the ability to throw my opinion into the wild, I think I'll do just that.



Saturday, December 26, 2015

Reusing std::thread objects

Sometimes it's useful to reuse a std::thread object - from a resource and design point of view. This would seem trivial, but since the std::thread was designed as a single use object, there are a few tricks to reusing it.



Sunday, December 13, 2015

Running a stand alone child process from a parent process

Sometimes it is necessary to start a process from within another process, whether it is for executing a command line utility or to create a peer process with which the parent process will need to communicate.



Detaching a process from the terminal

Sometimes it is useful to detach your application from the console terminal. It may be because you're building a daemon or simply because you don't want the application closing when the user ends his terminal session.



Sunday, November 8, 2015

C++: splitting strings

There are multiple ways of splitting or tokenizing strings in C++. I'll enumerate below four types that seem most used and/or useful.



Saturday, October 3, 2015

Uploading files with unknown size using the Google Drive API

The Drive API documentation is not very straight forward when it comes to uploading files when you don't know the size of the file. In this post I'll explain a way to do a chunked file upload when the file length is unknown.