This web site uses cookies. By staying on this web site, you accept the use of cookies.

Heavy (Log) Rotation

Sometimes I am at the point where there's too much log output, but I don't want to send everything to /dev/null because of some rare bug. The easiest way I know to retain some fixed amount of logs is to use rotatelogs from Apache HTTPD - e.g. in the following fashion:

some_command 2>&1 | rotatelogs -n 5 /var/log/some_command.log 100M

Hope to help somebody with this (perhaps the future me)...

Use Canon CanoScan 9000F Mark II to digitize slides and prints on Linux

Some time ago I collected some boxes of slides from my parents and parents-in-law. The pictures were taken in the 70s and 80s and it would be a shame to disregard them, so I set out to create a workflow to digitize them. I bought a CanoScan 9000F Mark II because the Linux support is good - this piece of technology can scan with 4800 dpi which should be sufficient even for advanced use. I confined myself to 1200 dpi which gave me pictures of 1650 x 1080 pixels. The process took 35 seconds for 4 pictures (scanned in one go).

Read more: Use Canon CanoScan 9000F Mark II to digitize slides and prints on Linux

Certificates and the JVM

The recent events revealed that the internet is not a very safe place. If you don't encrypt your data, it is likely to be analyzed by third parties like intelligence services. So you start to encrypt everything because you care for the safety your customers data. You managed to get it done without extra budget because you use a self-signed certificate - but oh, what is this? A nasty ValidatorException saying "PKIX path building failed". What now?

Read more: Certificates and the JVM

Developing Android apps in Eclipse

For some time now, Android development in Eclipse made me stumble in one point: the libraries. When you develop an app, there will be some third-party library you can use - and it's easy to do so, just drop it into the "libs" directory. The Android Development Tools (ADT) take care of adding it to the classpath. But what about attaching sources to those libraries so you can debug easily? Nope. These properties are labeled as "non-modifiable" in the appropriate Eclipse dialogs.

Read more: Developing Android apps in Eclipse