Ubuntu 14.04 freezes after latest update (18 May 2015)

After the latest update of ubuntu 14.04, I was able to log in to my account, but desktop refresh was extremely slow and toolbars were noisy. Continue reading

Posted in linux, nvidia, Ubuntu | Leave a comment

How stupid is initializing a vector from the concatenation of 2 other vectors?

Recently, I wanted to construct quickly a constant vector being the result of the concatenation of two other vectors using a one liner code, and if possible, without rewriting the concatenation by myself. I am a very very very lazy programmer.

Continue reading

Posted in C++ | Leave a comment

Avoid finding twice the same key in the map (part 2)

Later, I found the following code:

Continue reading

Posted in C++, C++11, STL | Leave a comment

Avoid finding twice the same key in the map (part 1)

This is unfortunate, but I regularly still see the following piece of code:

Continue reading

Posted in C++, C++11, STL | Leave a comment

An optional member of an optional object

My colleague told me that boost::optional suffers from missing the ability of building an optional of a member from an optional of its parent object. Continue reading

Posted in boost, C++, C++11, optional | Leave a comment

Firmware alternatif pour router netgear WNDR3700 v1

Insatisfait par les firmware de mon routeur netgear, j’ai décidé d’installer une alternative open source. Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Implementing comparators with tuple

C++11 introduces the interesting std::tuple feature.
Here, I will present the usage of std::tie to implement comparison operators in a class.

Continue reading

Posted in C++, C++11 | Leave a comment

Memory size of unique_ptr with custom deleter

The C++11 standard added unique_ptr which goal is to replace and correct the weaknesses of the deprecated auto_ptr.

This post will focus on the memory payload of the unique_ptr with a custom deleter.

Continue reading

Posted in C++, C++11 | Tagged , , , , | Leave a comment