Make work better and faster

sun – socket unmasker

To learn which files are opened by a given program one may use a famous spell: ls -l /proc/$PID/fd. Output of the spell will also list sockets but in a very bare and unfriendly format, e.g. '4 -> socket:[123456]'. That was making me to frustrate a lot because it’s so teasing to see what is hiding beyond this cold “123456” – a very precious information for troubleshooting!
Recently got a clue how to crack this nut. This resulted in a tiny yet powerful script named (socket unmasker).


Remote Eclipse over X11

At my job it’s common to develop products in a virtualized environment (e.g. in Virtozzo containers) using following schema: create a VPS (build machine), ssh to VPS, checkout source code, work with source code, build product. The reason for this is that products (e.g. OSA) require too much resources to build (memory, disk space, CPU), have many custom maven plugins and are strictly bound to platform (e.g. CentOS 6). This makes it almost impossible to build a product on a local machine (e.g. laptop). However working within a VPS reduces productivity since it leaves you with a vim or emacs. These editors are great but it’s much easier to develop in some IDE with code analysis, hot deployment, debugging and other cool features. My choice is an  Eclipse – it supports  C++ and  Java – two major languages our product is written in. However Eclipse requires GUI which is not available within VPS. To overcome this a “Remote Eclipse” schema described below could be used.