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

Force an unlock of MySQL tables if locked

Force an unlock of MySQL tables if locked published on No Comments on Force an unlock of MySQL tables if locked

How to fix an unlocked table. Sometimes you have a locked table when something went wrong and you can not go on without it being unlocked. here is how to do that. 1) Enter MySQL mysql -u your_user -p 2) Let’s see the list of locked tables show open tables where in_use>0; 3) Look at… Continue reading Force an unlock of MySQL tables if locked

Convert mkv 2 m4v

Convert mkv 2 m4v published on No Comments on Convert mkv 2 m4v

How to convert HD video to ipod/ipad/iphone compatible format You have lots of nice movies in matroska (mkv) format but want to take them on your trip in your iPhone but don’t know how. Solution Use Handbrake commandline utility. After quite a bit of trial and error I think I’ve found a good combination between… Continue reading Convert mkv 2 m4v