Category Archives: Uncategorized

Deleting outdated Teamcity builds using the REST interface

The cleanup rules of Teamcity are pretty limited. For instance, if you keep the N last builds on the default branch, it will also keep so many builds on all other branches, which is a problem in case there is … Continue reading

Posted in Uncategorized | Leave a comment

Accept Outlook invitations automatically with custom response

I often need to accept invitations and set the corresponding event as private. This is very cumbersome in Outlook, therefore I wrote the following macro to do it for me: To call it easily, put it in the Quick Access … Continue reading

Posted in Uncategorized | Leave a comment

Posting HTML to WordPress.com

Posting HTML in a post on wordpress.com is still a nightmare, here is the recipe that will hopefully help me next time I need it: Switch to HTML mode Add [code language="html"] Encode your HTML code to replace HTML special characters … Continue reading

Posted in Uncategorized | Leave a comment

Converting RSS to HTML

Firefox unfortunately removed the support for RSS in the version 64. I am relying on RSS for multiple web pages I visit regularly, so I looked for alternatives. I was not convinced by the available Firefox plugins, they were either … Continue reading

Posted in Uncategorized | Leave a comment

MinGW/GCC: error: stdlib.h: No such file or directory in include_next

A common error with MinGW or GCC is the following: This is typically due to the fact that something messed up the system include path with -isystem. Specifying again some paths changes the search order, so that #include_next doesn’t find … Continue reading

Posted in C/C++, Uncategorized | Leave a comment

Groovy: cloning nodes in an XML document

It’s pretty easy to clone nodes in a XML document using Groovy once XmlParser is used instead of XmlSlurper: The result is:  

Posted in Uncategorized | Leave a comment

VMWare Fusion: the path “” is not valid path to the gcc binary.

A common error installing the VMWare tools in a Ubuntu guest is: In some cases, like when using an older version of Fusion with newer version of Ubuntu, an easy workaround is to use the opensource version of the VMWare … Continue reading

Posted in Uncategorized | Leave a comment

PHP not working in Apache virtual hosts

I just had the situation where PHP worked fine from the default/main site configured in Apache, but not in a virtual host. Instead of parsing/executing the PHP script, Apache would rather send its source code back to the browser, which … Continue reading

Posted in Uncategorized | Leave a comment

Uploading a file with HTTP PUT in Groovy with Basic Auth

Dependencies: Code:

Posted in Uncategorized | Leave a comment

Gerrit: robust regular expression to create links from text automatically (commentlink)

When there is a link to a bug tracking ticket in a commit message, and Gerrit is already configured to make links out of ticket numbers automatically, it results in a mess. There is a bug report about this since … Continue reading

Posted in Uncategorized | Leave a comment