Reduce the number of threads Boxee / XBMC / Kodi uses for thumbnailing

In Kodi/XBMC/Boxee, Canon .CR2 and other raw photo file thumbnailing speed is pretty slow. On a slow computer, using a large number of threads to generate thumbnails in parallel can use up a lot of CPU and memory and lock up the UI.

The number of threads used for thumbnailing can be reduced by creating a .boxee/UserData/advancedsettings.xml or .xbmc/userdata/advancedsettings.xml or .kodi/userdata/advancedsettings.xml file with these contents:

Make alt tab switch between all windows in Ubuntu Unity

Upgrading from Ubuntu 11.04 "Natty Narwhal" to Ubuntu 11.10 "Oneiric Ocelot" installs Ubuntu's Unity, which changes the configuration of the window switcher that is usually bound to Alt-Tab. Instead of switching between all windows, it now switches between applications.

These are instructions on how to revert the behavior back:

In gconf-editor:

Installing jpegtran in Ubuntu 10.10 (a.k.a. Oneiric Ocelot)

To install jpegtran in the Ubuntu 10.10 Linux distribution, you can run the following command in a terminal window/shell

sudo apt-get install libjpeg-progs

jpegtran allows lossless rotation of JPEG images.  For example, you can losslessly rotate an image 90° counterclockwise by running:

jpegtran -rotate 270 input.jpg > output.jpg

Or you can losslessly rotate an image 90° clockwise by running:

jpegtran -rotate 90 input.jpg > output.jpg

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" \


Subscribe to RSS - Tech