Overwrite all git commit’s author

As a little post-it, here’s a script to amend author’s name and email of all commits of a repository. Use with care, it will override all commits, no matter what the original author is. Credit: https://stackoverflow.com/a/750191/913135

Visual Studio 2017, CMake and launch settings

Long story short, documentation for CMake related features in Visual Studio 2017 sucks. It’s scattered among a ton of blog post where most of the code samples are outdated or contain errors. Here is an example launch.vs.json that I’m using for reference:

Build / debug Blender with Visual Studio Code on Linux

Visual Studio Code is an open source and multiplatform IDE for code editing (and compiling, debugging, etc.) available here : https://code.visualstudio.com/ I wanted to see if I could build, run and debug Blender using this IDE, and the anwser is : yes. Here is how to do it. Get Blender’s sources and dependencies Based on […]

Compiling ICU with Visual Studio 2013

In my previous post on how to build Qt on Windows, I explained how to build Qt for Windows, using Visual Studio 2010 and prebuilt ICU libraries. If we want to build Qt with Visual Studio 2013, we’ll need to build ICU ourself, and here’s how : Download ICU sources from here : http://site.icu-project.org/download Unzip […]

Building Qt from sources on Windows

Building Qt is not in itself difficult. But building Qt on Windows, and with QtWebkit can become quite the challenge. So here is a little tutorial on how I did it. Configuration First of all, you’ll need a lot of stuff correctly installed. Keep in mind that the paths to the following tools should appear […]

Scope based execution of arbitrary code with C++11

Imagine the following peace of code (which is really simple for the sake of the example :) The basic idea here is that you need to maintain the integrity of a states’ stack in a loop. But what happens if you have some tests that allow to break, continue or return : Wrong. You didn’t […]

Userfriendly Qt5 Types in Visual Studio Debugger

If you’re using Visual Studio 2012 or 2013 Express with Qt, you can’t use the Qt Addin, but you might still want to have user friendly Qt types showing in your debugger. Luckily this is quite easily achieved : Download the qt5.natvis file from the Qt Git repository. Make sure you have the following folder […]

Build boost as static libs for Visual Studio 2012

Following is a small script that I use to build a few static Boost libraries in 64 bits for Visual Studio 2012, and with iterator debugging turned off. :: build the bjam and b2 exe if not exist “b2.exe” ( bootstrap.bat ) :: build boost with visual 2012 toolset. :: – static lib :: – […]

Multiple commands in Sublime Build System

A little note on the build system integrated in Sublime. If you have multiple commands to execute during a build (for instance minifying your js code, and generating the documentation) your can do it quite easily on Windows, but it took me a while to find the equivalent on Mac, so here is the relevent […]