Tag: trick

Enforce c++11 flags using cmake

Since CMake 3.2, it is possible to enforce in very simple way the use of c++11 features (see Craig Scott’s blog post for more details). Until now in dtk, we had to test the architecture (Apple, Unix or Windows), then check whether the compiler provides c++11 support or not and eventually set dedicated flags manually.

Continue reading »

Écrivez vos posts avec Markdown

Suite à l’installation par l’équipe SEISM d’un plugin Markdown (merci à eux), nous pourront désormais écrire nos blog-posts en utilisant la syntaxe Markdown. En pratique pour activer le mode markdown, il vous suffit d’encadrer le contenu de votre post entre les balises [ md] et [ /md]. Après une première utilisation rapide, j’ai pu détecter …

Continue reading »

dtk plugins tricks

In this post, we are going to explore two tricks around plugins: auto-loading and application private plugins.

Continue reading »

Trick of the day: monitoring the Linux filesystem changes in “real time”

Ever wanted to monitor the filesystem changes ? Since Linux 2.6.25, the kernel provides us with a signal driven I/O notification API and the inotify-tools RPM provides a set of tools to interact with the kernel. inotify in action: a simple way to test this API is to run the following command in a terminal …

Continue reading »

Trick of the day: prefetching a callback into the QApplication event loop

Qt provide a standard mechanism (aboutToQuit() signal) to insure that a callback is executed at the end of the QApplication event loop. This is typically used to add some cleanup code to your application. Infortunately, Qt does not provide a “aboutToRun()” if you want to execute an initializing code just before the event loop. Nevertheless …

Continue reading »