logo
  • Contact
  • Scribbles
  • Articles

  • 2015-05-01

    C++11 Smart Pointer wrappers for C libraries

    Wrapping C-libraries' acquire/release functions with unique_ptr and shared_ptr

    c++ c++11 development SDL2
  • 2014-11-12

    Cross-compiling for windows (from linux) - Part 2

    This article covers cross-compiling (from scracth) all the necessary libraries for an SDL2 based OpenGL application. In particular: SDL2, SDL2_image (w/png, jpeg), SDL_mixer (w/ogg), SDL_ttf, GLEW

    c++ development gamedev SDL2 OpenGL SCons linux windows
  • 2014-11-11

    Cross-compiling for windows (from linux) - Part 1

    This article talks about how to cross-compile a 64bit windows application from linux, using mingw. This first part covers the necessary tools, and shows a minimal SCons based build system for cross-compiling Hello_World.exe.

    c++ development gamedev SCons linux windows
  • 2014-09-03

    subtlemark: Watermarking Images

    A quick look at how to automate the process of adding subtle watermarks to images.

    bash automation linux
  • 2014-05-24

    Line coverage report using gcov/lcov

    A bit specific to my SCons setup and unit-test system, but hopefully still general enough to be useful for someone else. I'll walk through the whole process of setting it up and cleaning it up.

    c++ bash SCons development linux
  • 2014-04-08

    Picture-in-picture timelapse of dual monitors (single X display).

    How do a screen capture of two monitors within a single X display, and overlay one screen as a picture-in-picture thumbnail.

    bash unix linux
  • 2014-02-13

    watchfile: Execute a command whenever something changes.

    A script that performs the task of "whenever this changes, do this". Initially created for monitoring files, but later extended to arbitrary commands. This means it can be used to monitor websites, or what have you.

    bash automation productivity
  • 2014-01-29

    Picture-in-picture timelapse of two separate X displays.

    How do a screen capture of two separate X displays, and overlay one screen as a picture-in-picture thumbnail. This is all nicely automated in a script.

    bash unix linux