Beautiful Git Logs

git has a very configurable logging options. I’ve played a while with the configuration, and found an awesome alias that looks just beautiful. It only works as of git 1.8.3 (March 24, 2013) because it uses auto coloring.

git l

git_l

git ls

git_ls

FreeArc Compression Settings

I have been playing around with compression tools for quite a while, and FreeArc is one of the best of the bunch. It has the best compression / runtime ratio of any compression tool I know. Here are two parameter sets I especially like:

Fast compression

uses 4 cores to the max on a 4GB RAM machine, ~10MB per second. Compression ratio is usually above 7z max, while beeing much faster. Decompression is very fast.

Maximum compression

Requires 2 pass on a 4GB RAM machine, ~1MB per second. Usually compresses better than freearc’s default max compression. Decompression is fast too, and requires only one pass.

Extreme Compression

Can take like forever, and needs executable for precomp042 and srep, and requires two temporary files that are about as large (or larger) than the whole uncompressed data set.

Optimized Approximative pow() in C / C++

Mostly thanks to this reddit discussion, I have updated my pow() approximation for C / C++. I have now two different versions:

Continue reading “Optimized Approximative pow() in C / C++”