Nicely display a reference to something (hash, array or scalar) in Perl

Below is a little function to display a reference to mainly a hash, array or scalar in Perl:

Code:

use strict;
use warnings;

our $indentationString = "    ";

sub recursive_ref_string
{ Continue reading 
Advertisements

Python Singleton

#!/usr/bin/python

class Singleton( object ):
        instance = None
        def __new__( className, *args, **kargs):
                print 'Getting %s instance' % className.__name__
                if className.instance is None:
                        print 'Creating new %s object' % className.__name__
                        className.instance = object.__new__( className, *args, **kargs );
                return className.instance
 Continue reading 

M-Audio Driver Monitor

EDIT (bis):

The last known driver for Windows (version 6.1.10 downloadable here) DOES work under Windows 10, but in my case it does not show the Fast Track Ultra Control Panel anymore…
So I used the work of Mark Heath (NAudio) to make a little utility which can start the Control Panel without launching your favorite DAW each time you need it.
The source code is located on GitLab.
Or you can download the binary from this link.

EDIT:

Avid has made a complete rewrite of the driver for the “Fast Track Ultra” for Windows.
This new driver doesn’t have that annoying DRIVER_POWER_STATE_FAILURE BSOD flaw anymore!
The driver can be downloaded at the following URL: Fast Track Ultra Drivers

Continue reading

[CMake] Framework header hierarchy installation How-To

In this article, I’ll briefly describe how I managed to deploy a complete tree of headers with CMake.

Synopsis

The main limitation of CMake arise when the time comes to deploy the development version of your libraries, that is to say your binaries and complete header hierarchy.
No problem if all your headers are stuffed in one big fat folder, but this is not all the time the case…

Continue reading