Dev
I ran into a tricky issue where all unit tests passed when executed from the IDE, but one test consistently failed when run from the command line. I won’t go into the details of the root cause (it was related to how the IDE handles the /dev/tty device), but I will provide instructions on how to manually debug a failing test.
…
GoTo – a simple cross-platform command line SSH manager
GoTo is a wrapper around SSH client. The difference with Putty is that GoTo is a command line application that does not depend on any OS-specific graphic libraries and thus is very portable across platforms, however it lacks any connection logic therefore SSH client needs to be available in your binary $PATH.
Handy JS in operator
The ‘in’ operator can help to check if an Array contains specified index or an Object contains a specified key …
Conditionally add a key to a JS Object or Array
Conditionally add a key to an object: …
Remove a key from a JS Object using Spread operator
Remove a key from an object with spread operator …
Nice tricks with Switch operator in JavaScript
Evaluating expressions inside Switch statement …
How to calculate ISIN checksum digit
How to calculate CUSIP checksum digit
Автоматическое обновление версий maven-проектов
Я сопровождаю многомодульный java проект. При обновлении версии родительского модуля, я каждый раз, стыдно признаться, открывал файл pom.xml каждого дочернего модуля и вручную изменял номер версии родителя. Номер версии в ссылках на родительский проект опустить нельзя – произойдет ошибка. Указывается номер версии в pom-файле:
…