Quantcast
Channel: Matthias Friedrich's Blog » quick tips
Browsing all 6 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Quick Tip #1: Implicit FIFOs in Bash

One could assume that I have run out of material and retreat to safer ground, but far from it. From now on I’ll just throw in a few quick shell hacks hoping some of you don’t know them yet. So, here it...

View Article



Image may be NSFW.
Clik here to view.

Quick Tip #2: Set Operations Using Shell Tools

Everybody knows that Unix shell utilities are powerful. Even though they’re text-based, you can build a lot of useful things outside of the text domain. Today I’ll show you how to implement set...

View Article

Image may be NSFW.
Clik here to view.

Quick Tip #3: Creating Histograms in Python

Since Python 2.5, creating histograms has become easier. Instead of dict, we can now use defaultdict which is similar in behavior to awk’s associative arrays. Instead of raising a KeyError for...

View Article

Image may be NSFW.
Clik here to view.

Quick Tip #4: Sorting Large Files

With traditional Unix sort(1), the size of the files you can sort is limited by the amount of available main memory. As soon the file get larger and your system has to swap, performance degrades...

View Article

Image may be NSFW.
Clik here to view.

Quick Tip #5: Navigating in Source Trees

I often move around in checked out Subversion or Git source trees on a Bash command line. Directory structures tend to get quite deep (especially in Java projects), so one problem keeps coming up...

View Article


Image may be NSFW.
Clik here to view.

Quick Tip #6: Triggering Actions on File Close

Sometimes it’s useful to trigger an action after a file is closed. Suppose you started a lengthy download on your notebook and you want to suspend it as soon as the download is done. There are several...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images