Don't track me Google

Today Google decided to force Google Search users into enabling cookies for *.google.com domains. Previously you could prevent Google from tracking your search results (and still use Google's services) if you blocked cookies for google.com and allowed cookies for various Google services (accounts.google.com, plus.google.com, mail.google.com, etc.). But today Google search click tracking does not work anymore with google.com cookies blocked.

Siebel MTOM Attachments

"This article highlights the importance of MTOM in the enterprise, provides a high level overview of the challenges that I faced bringing the MTOM standard into Siebel. However due to the proprietary nature of the environment, the source code for the implementation cannot be provided, but it is hoped that this article will provide a strategy for system designers/architects out there wishing to achieve the same goal and bring their project forward into the 21st century. (...)"

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

Syndicate content