Quite a few projects hardcode metadata in a file (or C/C++ headers), e.g. version.h with version info or defines. This can cause small problems when developers forget to update the version information inside these files. It is a lot easier to keep track of version information if your project uses git and makes use of tagging.
This is one possible versioning scheme used for C/C++ releases. It depends on Make, a build automation tool, but the idea can be easily extended to other build tools such as CMake.
Okay, new website!
CSS The CSS is written in SASS, using a custom CSS framework called Zombie Responsive System. I currently don’t know enough about web development to fiddle with this, but it does seem quite responsive. This may be re-written at some point, once I have learnt more about CSS.
Computer vision seems to be an interesting field to explore in. This is a simple tutorial on how to get OpenCV up and running on Arch Linux. A short C++ program is provided to confirm that OpenCV was successfully installed and compilation with OpenCV libraries actually works.
To keep it simple, the provided code is quite minimal and will only load a picture, convert it to grayscale and then display both pictures in two separate windows.
I consume a lot of written media on my Kindle, and I’m often frustrated when I have to use my mobile phone or computer to read online content. I needed a new project and I was hearing a lot about Node.js. In order to learn more about Node.js, I decided to write a couple of libraries to grab content from a specific website (Fictionpress) and convert it into a format that my Kindle could use.
quick-epub is a library written in Node.js that generates valid EPUB 3.0.1 documents. It is derived from cyrilis’ epub-gen as a proof of concept, rather than an actual library. It was mainly used to learn about the EPUB specification, set out by the International Digital Publishing Forum.
This will generate an EPUB file with a table of contents included, which proves for easy browsing by chapter on an e-book reader.
fictionpress-scraper is a web scraper written in Node.js. It makes use of promises which enable asynchronous computations in Node’s event loop. When passed a Fictionpress story ID, this library will verify that the story exists then fetch all the chapters for that story along with some metadata. At this stage, it will provide the story title, author’s name, summary of the story and all chapters (with chapter titles, if available).