Из-за весьма неудобных особенностей одной из внешних служб мне пришлось городить огород на своей стороне. А именно: поле с одним и тем же именем с двух разных ссылок передается в json в виде списка и в виде ассоциативного массива (LinkedHashMap).
Read more »
Полиморфизм применительно к json

Создание jar-расширений со шрифтами
Если в вашей печатной форме Jasper Reports в формате RTF/PDF пропали кириллические символы, которые, однако, выводятся в DOCX, то эта заметка для вас. В ней я расскажу про создание JAR расширений для шрифтов.
Read more »

Анализ core-dump многопоточного приложения с помощью GDB
Недавно по работе мне пришлось анализировать core-dump, сброшенный процессом httpd. Поиск нужных команд для gdb занял некоторое время. Для того, чтобы сэкономить время другим, напишу о своем опыте. Итак, мы открыли с помощью GDB core-dump:
Read more »

Creating jpa repo for a temp view
In this post I will tell how to compose a repository accessing entities without actual mapping to a table in the database. This allows to move data aggregation from several entities/tables into a database function. As a result, you can use all the postgres functions and your own functions. And the number of SQL requests decreases.
Read more »

Опыт подключения Яндекс.Метрики в vaadin
Входные данные такие. Есть приложения на vaadin, в него нужно вставить джаваскриптовый код и кусочек HTML разметки.

Изготовление формы для литья восковых свечей
Трубку для свечи я взял от старого пылесоса. Преимущество металлических форм в том, что они не изнашиваются и их легко чистить. Как можно понять, форма будет простая — свечи будут изготавливаться для церковных богослужений.
Read more »
How to get sockJS sessionId in Spring’s WebSocketStompClient?
Brief. You want to compose a simple client which receives messages from the server side with STOMP over websockets. Most probably you will face the issue: the default sessionId retrieved from the Session doesn’t match the one assigned by sock.js. We need to go deeper.
Read more »Mouse drag event support for SwipeBox
More precisely, I will tell how to add support of mousedown and mouseup events and how to use the difference of X coordinates to switch to the previous or to the next image in the gallery. Read more »
Mouse scroll event support for Swipebox
Javascript library Swipebox is commonly used in different galleries in spite of lack of support — last commit was several years ago. Nevertheless we can add mouse scroll support.
Read more »

How to avoid double url encoding in HATEOAS
The point is that HTTP parameters get encoded internally in HATEOAS firstly and then in spring when it requests the composed link. I will tell you a workaround in this post. Read more »