Practical Logic and Decision Making in Real Life

Many articles present logic in decision making as an “alternative” to the way decision making is typically done. This article’s premise is that upon reflection, logic is everyone’s preferred method of decision making – even illogical arguments use logically sounding statements to appear more valid. Unfortunately, many of us do not use logic consistently for . . . → Read More: Practical Logic and Decision Making in Real Life

Linux memory leak detection

Tracking down the source of a memory leak in Linux is not always straightforward…

Signs of a Memory Leak:

Typically, the first sign of a memory leak is the oom-killer. If programs start dying inexplicably, check the system log (usually /var/log/messages) for evidence of the oom-killer in action. This should be accompanied by low memory . . . → Read More: Linux memory leak detection

Compiling programs in Fedora

Say you want to install a program in Fedora…

Before Compiling:

Many programs are available easily in the Fedora repositories via yum.

If you don’t already have a graphical package management tool, then install PackageKit or yumex. If you prefer the command-line, then (as root / under sudo) use: >yum search <program> to see if . . . → Read More: Compiling programs in Fedora

Perl global error handler

This is in an Apache::ASP based system, but should theoretically work in any web environment.

I wanted to create a global default error handler ($SIG{__DIE__}) that displays the error text on the page.

Some notes:

It is generally recommended that run-time errors be trapped on a case-by-case basis using try/catch style eval statements. A global . . . → Read More: Perl global error handler

Dual-monitor + TV

In the current GNOME shell, Xinerama, the feature that supports more than 2 adjacent displays, is broken. With my nVidia card, the native Nouveau driver doesn’t even detect the 3rd output. The proprietary nVidia driver detects 3 outputs, but cannot enable all of them simultaneously, even without Xinerama (ie, as separate X displays). 🙁 So . . . → Read More: Dual-monitor + TV

Nautilus open-with / mime-type associations

Using the native GNOME file manager Nautilus, you can double-click on a file to open it with its default application. If you don’t like that, are not sure what the default application is, or want to modify it, then you can right-click on the file to see a list of mime-type associations. The first item . . . → Read More: Nautilus open-with / mime-type associations

Perl regular expressions – limit

Just ran into a limitation of Perl regular expressions. It’s mentioned (in brackets!) here:, but I didn’t see mention of it in the Perl manual, so this wasn’t easy to track down.

It’s stated as: “Perl currently has an internal limit of 32K repeats for parenthetical items”. The following code is sufficient to demonstrate . . . → Read More: Perl regular expressions – limit

Customizing the GNOME Shell menu

The GNOME Shell (GNOME 3) menu, is customized using the alacarte application. Install this application if you wish to edit the menu. If you want to know more about how the menu works in order to write a script to manage it, or do things that alacarte can’t do, then read on.

The freedesktop standard:

. . . → Read More: Customizing the GNOME Shell menu