SystemTray icon on Mac OSX problem

SystemTray icon on Mac OSX problem published on No Comments on SystemTray icon on Mac OSX problem

Problem I want to have an icon in the SystemTray of Mac in order to sync some calendar stuff. Solution

Extra information I came to this solution via this code snippet Before finding this snippet I have tried a variety of options, namely: ScalaFx, JavaFx, Swt, com.dorkbox.SystemTray. ScalaFx/JavaFx can handle native menu’s via the… Continue reading SystemTray icon on Mac OSX problem

Sudoku solver

Sudoku solver published on No Comments on Sudoku solver

I just found an old project of mine. A Sudoku solver optimized and unreadable :-). I thought you might like it…

Kill zombi processes on linux

Kill zombi processes on linux published on No Comments on Kill zombi processes on linux

Problem Sometimes I have processes called zombi processes reported by my login screen. I could not seem te get rid of them and now I can 🙂 Solution

Extra information Any of the commands above can of course be done or not according to your wishes. The first command searches for the zombi processes… Continue reading Kill zombi processes on linux

Get meminfo in GB / MB in stead of KB only

Get meminfo in GB / MB in stead of KB only published on No Comments on Get meminfo in GB / MB in stead of KB only

This will convert any kB lines to MB: awk ‘$3==”kB”{$2=$2/1024;$3=”MB”} 1’ /proc/meminfo | column -t This version converts to gigabytes: awk ‘$3==”kB”{$2=$2/1024**2;$3=”GB”;} 1’ /proc/meminfo | column -t For completeness, this will convert to MB or GB as appropriate: awk ‘$3==”kB”{if ($2>1024**2){$2=$2/1024**2;$3=”GB”;} else if ($2>1024){$2=$2/1024;$3=”MB”;}} 1′ /proc/meminfo | column -t I’ve used the following command in… Continue reading Get meminfo in GB / MB in stead of KB only