Some time ago, during the Devoxx conference, I noticed a very interesting tool used by the speaker. When he wanted to type in the console a command, which he had already typed before, terminal was shown a list of prompts. This makes working in the console more efficient. Navigating with the arrows By default, when we …
Read MoreToday I'd like to share an interesting case that took me some time before I came to a solution. The case was about using reflection in unit tests to check if the established naming conventions are followed. Problem - reflection does not find all classes Let's assume a project that has 4 classes named: UsecaseA …
Read MoreWhen we have a problem with reproducing the bug in local environment, it may be useful to view logs from environment where a bug could be reproduced. Usually it requires to change logging level to DEBUG or TRACE. We can do this by changing logging level in application preferences and then restart application. 1# …
Read MorePersonally I prefer jar then war ("Make JAR, not WAR" - Josh Long), but sometimes we have constraints that are not depend on us. This example focus about how to deploy two springboot applications in Wildfly and how to externalize application properties for each application. The case is: deploy two springboot …
Read MoreAccording to OWASP recommendations "Fingerprint Web Application Framework (OTG-INFO-008)" you must turn off specific headers, which are sent by application server or used framework. The less informations attacker knows, the harder it will be to attack. Below are instructions to run in jboss-cli in standalone …
Read MoreIn multi-tier applications there is often a need for mapping between two data models. In this article you can read about comparing two mapping libraries: Dozer (http://dozer.sourceforge.net/) - popular library, where mapping is configured by XML files MapStruct (http://mapstruct.org/) - library, which is used for …
Read MoreRaspberryPi card doesn't have no default turn off button. You can't just disconnect it from power supply - it may cause problems with SD card. Firstly you should execute command: 1sudo shutdown -h now
Read MoreWhat is .gitignore file? It's a file containing names or pattern names of directories and files, that should't be included in GIT repository. These are among others files generated by IDE - in case of IntelliJ IDEA it's a directory .idea and file with extension *.iml. Generator .gitignore On website …
Read MoreOption 1 - set static IP address in router Many routers have settings to assign static IP address based on MAC addres of network card. Each router has different administration panel, so I won't describe this option in detail. If IP address of your local network is 192.168.0.15 you probably can access in browser …
Read MoreIn this post i will show you how to check IP address of your raspberry after you connect it to network. New IP address in local network Check all of IP addresses in your local network 1arp -a Connect Raspberry Pi to network Run again command from first step. New address on list will point to your device. Recognize …
Read More