Monitor gamma calibration for Linux / X.Org

The monica-3.7-7mdv2011.0.i586.rpm binary RPM for monica (a free monitor calibration tool for Linux) does not run in Ubuntu 11.10 (a.k.a. "Oneiric Ocelot").

./usr/bin/monica: error while loading shared libraries: cannot open shared object file: No such file or directory

How to delete an entire splunk index / remove all events from a splunk index

To remove all of the data from a specific Splunk index without using the slow "| delete" command:

  1. Stop Splunk
    /path/to/splunk  stop
  2. Delete all the data from a specific index (for example "main"):
    /path/to/splunk clean eventdata -index main


Smell printer 2011

Updating the locate database one time only in Mac OS X

If the locate database hasn't been created yet on a Mac OS X 10.6 (Snow Leopard) computer, the message:

WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.

Color Range Mapping in Gimp 2.6

The plugin formerly known as Map Color Range in GIMP 2.2 and Color Range Mapping in GIMP 2.4 appears to have been removed in GIMP 2.6.

One way to get it back is to just grab the plug-in file from a previous version.  For example, you can run:


rpm2cpio gimp-2.4.5-1.fc9.i386.rpm|cpio -idvm

"This site may harm your computer" google bug

a.k.a. #googmayharm

At first, I thought I had been hacked:

Show ignored files in Git

How do you see or find untracked files in your Git working copy that Git ignores?

Files which do not show up in git status because they match a pattern/line in .gitignore or .git/info/exclude with this command:

Git 1.6:
git ls-files --others -i --exclude-standard

Git 1.4, 1.5:
git ls-files --others -i \
--exclude-from="`git rev-parse --git-dir`/info/exclude" \

Google App Engine Helper For Django with App Engine 1.1.8

Google App Engine Helper for Django r52—the one that works with the Django 0.96 that comes stock with Google App Engine—no longer works with Google App Engine 1.1.8. It gives an error like:
cd mysite; /usr/bin/python runserver
Traceback (most recent call last):
File "", line 18, in <module>
File ".../mysite/appengine_django/", line 440, in InstallAppengineHelperForDjango

Simple Tests in Drupal 6

There are two simpletest modules for Drupal 6.  The 2.x branch (currently at 6.x-2.5) is a backport of the unit testing framework that will be included in Drupal 7.

Unfortunately, error handling is not very good and it is possible to get inscrutable errors like this when running a test:

Running SimpleTests

An error has occurred.
Please continue to the error page
An error occurred. /batch?id=30&op=do

trim a string in Javascript

str = str.replace(/^\s+|\s+$/g, '');


Subscribe to RSS - Tech