Category Archives: Linux

Convert text label files to UTF-8 encoding

In a lot of multi-language enterprise applications where you have to support labels in different languages the text files with the different labels for each language are scattered across your source code. In my case I all the labels are kept in Java property files with “.properties” file extension. Then for each language I have… Read More »

Advertisements

Disable core dump generation on #Linux

Generation of core dumps that result in freezing the Linux system is another common issue in the new Linux kernels discussed on many forum threads. Same as the bug of kswapd0 discussed here Kswapd0 going haywire this can become very annoying. It seems that lately someone tries to add developer features turned on by default… Read More »

#Apache #Kafka solutions going mainstream

I like when solutions you are excited about and are first seen as “experimental” start to go mainstream. This happened with containers (Docker, CoreOS, Kubernetes etc.) which are now the hottest topic in DevOps right now. The same is happening now for Apache Kafka which was adopted by no other than “Goldman Sachs” for their… Read More »

A solution for kswapd0 going haywire on #Linux

This is a common issue in the new Linux kernels discussed on many forum threads. There is a long thread here about this problem. In short the issue is that when you run out of memory “kswapd0” a kernel process than manages virtual memory will start moving “old memory entries” to swap. The “run out… Read More »

Find in Linux if your installed RAM is ECC

Sometimes really simple questions are hard to answer. One day I got the question from a coworker: “How do I know if some installed RAM is ECC or not”. The easiest way is to use dmidecode command that dumps in Linux all the system characteristics. But because I had no idea how to see if… Read More »

Convert certificate from DER to PEM format

Sometimes you get a CA certificate in DER format and some application requires it in a PEM format. OpenSSL to the rescue: # openssl x509 -inform der -in myCA.der -out myCA.pem

#Docker volumes and Selinux

When running complex environments on Docker on Linux again we face the mighty selinux. There are plenty of selinux alerts generated when I start my environment when the host machines have selinux enabled and volumes are used by the containers. Setting selinux permissions is hard and tedious and many people just prefer to disable it.… Read More »