A downside of Python dynamic nature is that REST API documentation won’t generate right out of your code, like Swagger does for Java. The best you can get is http://pythonhosted.org/sphinxcontr...
https://victorsergienko.com/documenting-python-rest-api-whining/
Just built a Win32 version of yajl, a comandline C JSON pretty-printer and validator. Viva CMake. Welcome to downoad.
https://victorsergienko.com/fast-windows-json-pretty-printer/
Ex-USSR has got a great school of engineers. Russia is the 3rd software outsourcing country (market) in the world. Russian (let’s use the name, though I’m Ukrainian, for instance) engineers a...
https://victorsergienko.com/the-dead-end-of-russia-software-engineer/
By default, Glassfish does an ugly thing: takes an application’s stdout/stderr and wraps it into its own log with INFO level for stdout and WARN level for stderr. Other logging facility normall...
https://victorsergienko.com/getting-glassfish-stdout-logging-under-control/
Had a hard time rendering a QR-code to SVG. Drawing simple rect-s didn’t work well, visible gaps appeared between bars. I looked for a SVG QR renderer, but apparently neither zxing nor other li...
Thanks to Dreamhost, now running on CloudFlare CDN. WP Super Cache happily supports it. BTW CloudFlare got a free plan, and it’s easy to set up so that it doesn’t interfere: Add a cdn subdoma...
They do a pretty cool thing: force you to tell “the truth” — no matter how subjective this term is — as opposed to emasculated official style: what you really did (whatever it means to yo...
https://victorsergienko.com/got-a-stackoverflow-careers-invitation/
I don’t like GMock. It’s not as if it was badly written or designed. But it lets you to unit-test dirtier code, tying to method call structure instead of resulting data. For instance, this GM...
I wonder why this was not in JDK/Groovy Collections. Just put together a Comparator for StackOverflow question – a Groovy Comparator that would sort class field names in the declaration order. ...
https://victorsergienko.com/groovy-comparator-for-class-field-names/
Grails doesn’t reload scaffolding on-the-fly if you change local templates. But you can open a Groovy console inside application and run in it: org.codehaus.groovy.grails.scaffolding.view. ...
https://victorsergienko.com/couple-o-grails-tricks-reload-scaffolding-and-fieldvalue-formatting/
It hasn’t even been a ten years that DB2, one of the most, er, expensive DBMSes, got a feature needed by every other application – dataset paging. Before, you had to use window functions rown...
A friend of mine defended Fortran against half-literate coders on an example of Prim’s allgorithm. Good pretext for another language comparison. Let’s see Groovy vs Java vs good old Fortran. ...
https://victorsergienko.com/prims-allgorithm-in-groovy-inspired-by-fortran-and-java-versions/
I’m thinking of precise Redmine burdown chart, which is not so simple. It has to build burdown chart for a given sprint (Version in Redmine). It has to account issues added to Version and remov...
Just installed a shiny new Google Buzz button for WordPress by Tejaswini, Sanjeev. I hacked it a bit, to align to the right. Download this plugin version here, until author updates it. I’m repl...
https://victorsergienko.com/google-buzz-button-for-wordpress/
Just in case someone needs a code snippet. This one groups Prices by PriceProvider and was intended to pick only last 5 values for each PriceProvider – but sadly, it’s impossible without wind...
https://victorsergienko.com/group-by-clause-in-gormhibernatecriteriabuilder/
Hibernate bug 1895 seems to be still there since 2006. If, for instance, in Grails, such a syntax won’t work for you (it won’t): def books = Book.findAll("FROM Book AS b JOIN Chapter AS c WHE...
https://victorsergienko.com/hibernate-join-bug-createfromjoinelement/
Just published a library I created on one of past jobs out of Updater Application Block and WiX’s ClichThrough component. Please meet: DotUpdater It can auto-update an application, just create ...
https://victorsergienko.com/self-update-library-for-net-using-wix-dotupdater/
Imagine a task (actually, quite common), if you have: a nodes (articles, ads, whatever) taxonomy in Drupal, a taxonomy-based url path rewrites, like /monkeys/primates/homosapiens and want to show...
https://victorsergienko.com/link-taxonomy-terms-to-views-in-drupal/
In case you, like me, need to compare version of Office documents (under Windows), just know that TortoiseSVN got a pretty set of scripts for that. It works out of box! YES! You can compare Offic...
https://victorsergienko.com/diff-a-micorosoft-office-documents-inder-svn/
We’re trying Grails, Rails-like web application framework for Java. It’s fine, just that Groovy debugger support is, er, imperfect, even in the best Gruoovy IDE – IDEA. And, if you want to ...
https://victorsergienko.com/grails-mocking-domain-objects-in-unit-tests/