Disable keycloak welcome page

After digging a bit deeper into this issue. It seems that the command /subsystem=undertow/server=default-server/host=default-host/location=\/:remove disables only the /opt/jboss/keycloak/welcome-content page, which contains only a redirect to the /auth path. The «Welcome to Keycloak» page cannot be disabled but it can be themed. The default theme is located in /opt/jboss/keycloak/themes/keycloak/welcome. It can […]

How to enable MySQL Query Log?

If you don’t want or cannot restart the MySQL server you can proceed like this on your running server: Create your log tables (see answer) Enable Query logging on the database (Note that the string ‘table’ should be put literally and not substituted by any table name. Thanks Nicholas Pickering) […]

How to recover a git branch you accidentally deleted

As pointed out by @johntyree in the comments, using git reflog is easier and more reliable. Thanks for the suggestion! $ git reflog 1ed7510 HEAD@{1}: checkout: moving from develop to 1ed7510 3970d09 HEAD@{2}: checkout: moving from b-fix-build to develop 1ed7510 HEAD@{3}: commit: got everything working the way I want 70b3696 […]

Документация OpenNMT на русском языке!

Всем привет! На этой странице я будут выкладывать частичные переводы документации проекта OpenNMT — нейросети для машинного перевода с языка на язык. Начну с главы Tokenization. Разбиение на лексемы OpenNMT из коробки предоставляет утилиты токенизации для быстрой обработки новых наборов данных для обучения. Цель токенизации — преобразовать необработанные предложения в […]

Отладка вражеского кода

В моей карьере разработчика .net было несколько случаев, когда я хотел отладить чужой код. Код, к которому у меня нет исходников, только DLL. К счастью, Visual Studio позволяет дебажить код без исходинков. Эта статья основана на вопросе на StackOverflow, где я пытался объяснить поведение Unity-контейнера.

Patterns: Specification

Specification pattern is my favorite one! It unites Domain-Driven Design, application architecture modeling, entity framework — all cool things. Specification pattern is designed to order business rules and connect your code to your business terms. In this article I will show an example of implementation and how this pattern is […]

Any vs Count

This post started from discussion on SO: Why LINQ method Any does not check Count? After it I decided to check the most common collections on performance in methods Any and Count.

Debug enemy’s code

I had several episodes in my .net development career, when I wanted to debug foreign code. The code, I have no sources access to, DLL only. Visual Studio has ability to debug code without sources. This article is based on StackOverflow question where I tried to explain Unity behavior.