-
How to handle developer translations?
I our projects we have a developer translations, that are translation written by the developer, that are late replaces by real translations made by professional translators. The translators use a demo system and periodically push new and updated translations into our repository. But in our system test we depend on the translation and we do…
-
Memory optimization for JAXB parsing
On some project we had a Java program that needed to parse a lot of small XML messages continuously that uses a lot of memory. After we made a heap dump and analyzed it we found the problem, a big chunk of the memory was used by Strings from the JAXB Objects. We had over…
-
How to use the ExecutorService with virtual Threads?
Since Java 21 we have virtual threads. But how can we take advantage of virtual thread wen we use ExecutorService or ScheduledExecutorService? For an ExecutorService you can just use the factory method Executors.newVirtualThreadPerTaskExecutor() or if you want to give the virtual threads a name: For a ScheduledExecutorService you can use the following code:
-
Block dialogs with uBlock origin
Sometimes I get annoying dialogs on websites. For example there is a website which keeps asking me to use the Internet Explorer. You can supress such dialogs with a special filter rule in uBlock origin:
-
Swipe gestures with selenium on Android devices
Testing swipe gestures on android devices is not easy. I will show you how it can be done in this blog post. There are two things you need to know: See the following example for swiping from left to right: This example just swipes horizontal from left to right over the whole screen. If you…
-
Redirect with Amazon Route 53
Creating redirect with Amazon Route 53 are not so easy but doable. I will show you how it can be done. For this blog i wanted to create a redirect from www.nilsrudolph.de and nilsrudolph.de to blog.nilsrudolph.de. There are some DNS providers who supports such redirects by creating a URL record but that is not a…