English

Home - The Movie

"In 200.000 years on Earth, humanity has upset the balance of the planet, estabilished by nearly four billion years of evolution. The price to pay is high, but it's too late to be a pessimist: humanity has barely ten years to reverse the trend, become aware of the full extent of its spoliation of the Earth's riches and change its patterns of consumption.

By bringing us unique footage from over fifty countries, all seen from the air, by sharing with us his wonder and his concern, with this film Yann Arthus-Bertrand lays a foundation stone for the edifice that, together, we must rebuild."


The movie features beautiful cinematography. If for no other reason, then watch it just because it's a masterpiece in showing off the beauties of Earth. Smiling

How to remove all messages from Exim's mail queue


# list messages in the queue
exim -bp
# remove a single message
exim -Mrm 1RsGHp-0008Kz-6P
# remove all messages
exim -bp | exiqgrep -i | xargs exim -Mrm

Ghostery seems to be inherently slow

Don't take me wrong: I'm all for Ghostery. It's a really great initiative and the functionality seems to be OK. The only problem is with performance.

How to persistently set the priority of an app in Mac OS X

The question at superuser.com sounds a bit differently from what I chose for my post. It's: "How do I pass command line arguments to Dock items?". However the point is the same: how to launch an app with a commandline that is a bit different from what the app's developers had in mind.

How to properly adjust the auto_increment property of a table in MySQL

If you've an autoincrement column in a table and you want to set the next value to the max value + 1 from the actual values in the table, then use something like this ...

How to tell which processes are going to be killed first by the linux kernel's OOM killer

If an OOM (Out-Of-Memory) event occurs (the system runs out of allocatable memory), the linux kernel invokes the oom-killer which uses an algorithm (as described in the kernel docs) to select some processes to be killed and thus free some memory.

DiffMerge - cross-platform visual diff tool

DiffMerge is an application to visually compare and merge files within Windows, Mac OS X and Linux.

  • Graphically shows the changes between two files. Includes intra-line highlighting and full support for editing.
  • Graphically shows the changes between 3 files. Allows automatic merging (when safe to do so) and full control over editing the resulting file.
  • Performs a side-by-side comparison of 2 folders, showing which files are only present in one file or the other, as well as file pairs which are identical or different.
  • Right-click on any two files in Windows Explorer to diff them immediately.
  • Rulesets and options provide for customized appearance and behavior.
  • Compatible with 42 different character encodings.
  • Identical feature set on Windows, Mac OS X, and Linux.


Aggregate processes based on name (~command) and sort in decreasing order of a "top" column

The top command has lots of useful columns, but since many applications run multiple worker processes (eg. webservers like Apache), it's a bit difficult to see the big picture. The following one-liner aggregates a selected column in the output of top by the process name (ie. the COMMAND column) and sorts the result in decreasing order:
top -b -n 1 | tail -n +8 | awk '{ col=$6; if (match(col, "^[0-9]+m$")) { col = 1000 * substr(col, 1, length(col) - 1) }; stat[$12] += col } END { for (i in stat) { print stat[i] ": " i } }' | sort -rn | head -n 20

Listing (and optionally unlocking) all locked objects on a Siebel server

Siebel Tools makes it not easy to create a list of all locked objects. You've to do it for each potential object type and unlocking multiple objects is not easy either. Eg. you can only unlock objects that you've locked. If some developer left an object locked, you either know her/his password or you don't. In the latter case you've take over the user and log in with it to unlock the objects.

Syndicate content