Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

Friday, 23 June 2023

Valgrind: noise reduction

Ensuring your delivered code is memory leak free is a standard concern for C/C++ developers and valgrind is a great tool to assist. One problem we can run into is extra noise from system/non project libraries masking your own issues. Refocussing is relatively straight forward:

Saturday, 10 September 2022

Disabling debuginfods and manually loading symbols

Fedora 32 introduced debuginfod which is meant to provide dynamic debug symbols to debugging tools. The problem I've found is that using valgrind is horrifically slow as the debug symbols are downloaded and processed. One way to avoid the debug is to disable debuginfod is to rm /etc/debuginfod/*.urls; echo "set debuginfod enabled off" > /etc/gdbinit.d/debuginfo.gdb. But how do we get our debug symbols for gdb?

Sunday, 6 March 2016

Custom EOG rating plugin

When using a low powered netbook as a travel companion running Linux, the Gnome EOG image viewer can be used to provide an initial review tool, with a little hacking.

Saturday, 6 February 2016

Custom gdk_pixbuf_loader to handle embedded RAW preview images

The Gtk/Gnome subsystem provides the basis for many of the popular (along with KDE) window managers on Linux. One of the areas of the current gtk subsystem that handles image formats can be extended if needed via gdk_pixbuf_loaders. By implementing and installing a newer loader for your image format, the current image viewers such as eog (Eye of Gnome) will seamlessly display these images.

The standard installation of loaders on Fedora 23 does not provide a suitable image loader for RAW files...

Sunday, 29 May 2011

Love that Magick

There is nothing like a good trick and ImageMagick (IM) has plenty of them - if you need a command line swiss knife image toolset then this is it.


Friday, 11 February 2011

Embedded in RAW

One of the most common debates (ignoring brand wars) in the hobbyist/amateur camera world is whether one should shoot RAW or jpeg (or RAW/jpeg with varying degrees of jpeg quality). For me the decision is easy: shoot RAW.