Windows Checklist

New Windows, same old crap to configure (and new ones every version…) Install with a local account At the step where it asks you to enter a Microsoft account or create one, you can no longer skip… Fuck you Microsoft… even Apple still lets you its OS without forcing you to create a fucking iCloud […]

Dumb things to do in C: named arguments!

Question: can the following be valid C (in the same compilation unit): Yup. Up until very recently I didn’t know you could kinda use named arguments in C, but you can. Of course, like most C thing, it involves a few stupid tricks, but still, the end result is pretty nice. Note: I didn’t come […]

Don’t use VcVarsAll/VsDevCmd

Long story shorts, those “helpers” provided by Visual Studio to setup your development environment are horribly slow, and seems to get slower on every new version. So, if you’re like me and don’t like to wait 2 to 10 seconds every single time you need a working environment in which you can call cl, then […]

Kubuntu install checklist

Since every single fucking time I dare update Kubuntu, some things suddenly break down (sound, various drivers, Bluetooth, whatever) I end re-installing from scratch. Most of the time it works out of the box, but sometimes, things just don’t work, like the application launcher no longer opens when I press the Meta key or whatever. […]

Swig typemaps cheatsheet

The documentation of SWIG is pretty extensive, but there isn’t a single point that document all available macros / substitution mechanisms available while writing a typemap. It’s a nightmare to find what you’re looking for when you’re not already really familiar with it, so to save myself and maybe a few others from early hair […]

Linking against a static Qt5 build using CMake

The previous post was the script I use to statically build Qt5 on Windows, but the real fun part is then linking an application using that version ! Here is the part of the CMake script I’m using (as usual, for reference) For the moment I only build a basic Widgets application. As I use […]

Qt5 static Windows build script

To avoid loosing the script I use to build Qt 5 on Windows, here is the latest version I’m using. Note that I’m compiling using Visual Studio 2019 and I disable things I don’t need to try to minimize build time. Edit 2019-10-17: Removed accessibility and harfbuzz

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:

Building & Debugging Blender with Visual Studio Code

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. Edit: Updated the scripts and configuration of […]