How to load files from Spring JUnit test resources folder

In this short tutorial we will show you how to read the files from the /src/test/resources directory path.

Continue reading

Posted in Tutorials | Tagged , , , , , , , | Leave a comment

How to initialize an array with zero values in Java

This article will look at how to fill up a Java array with default values effectively on an array creation.

Continue reading

Posted in Language basics | Tagged , , , | Leave a comment

3 ways how to kill Spring Boot application at port 8080 on Windows

This article tries to answer one of the most often occurred questions connected with Spring Boot development. When developing a web application with Spring Boot, you might hit an error announcing that port 8080 is occupied. In this article, we will see why and how to solve this error. However, be sure that tutorial can help you solve the occupancy of any other port.

Continue reading

Posted in Bug hunt | Tagged , , , , , , , , , , , , , , , | Leave a comment

How to remotely debug Java application in IntelliJ

This tutorial will show you how to debug your JAR or WAR file in IntelliJ IDEA remotely and gives you hints on developing new features through the application stack.

Continue reading

Posted in Tips & tricks | Tagged , , , , , , , , , , , , , , | Leave a comment

How to trigger action with Scheduler and Quartz in Camel

In any project using Camel you might come to the stage you want to trigger action periodically.

We have recently looked on how to download file from Azure Cloud Storage in legacy application. With the help of Camel and in Java project, all was written in a couple of minutes. But what if you have a special case and your file is changing periodically. For example, every day or every minute?

This article will show you a couple of code examples on how to initiate an action when periodic change is required. This article will also show you how to start the action with Camel’s Scheduler and Camel’s Quartz2 components, mostly for your legacy Camel projects.

Continue reading

Posted in Tutorials | Tagged , , , , , , , , | Leave a comment

How to download a file from Azure Claud Storage

At some point, you need to deal with and develop legacy code for legacy software. As you Google stuff on the internet and waiting for being by StackOverflow, you go through ancient documentation. It was also my case.

Continue reading

Posted in Tutorials | Tagged , , , , , , , , , , , , , | 1 Comment

How to use IntelliJ Idea as a text editor

I have recently started to use IntelliJ Idea as my text editor and integrated it into my creative process.

Continue reading

Posted in Tips & tricks | Tagged , , , , , , , | Leave a comment

Bit manipulation operators in Java

As in many programming languages, Java offers a possibility for bit manipulation with bit operators. While the official documentation is kind of sparse, this article will give you more information about individual operators.

Continue reading

Posted in Language basics | Tagged , , | 1 Comment

How to show first n characters in JavaScript or TypeScript string

To get a substring from a string in JavaScript or TypeScript, you have as option three different methods to call. Besides TypeScript compiling to JavaScript, method’s names a behaviour stay the same.

Continue reading

Posted in Language basics | Tagged , , , | Leave a comment

How to use IntStream range in Java

Very often, I encounter a situation in which I need to loop through a collection in Java. While looping through it sequentially, I usually want to use a temporal loop count variable as a variable with which I will be working inside the loop.

Continue reading

Posted in Language basics | Tagged , , , , | Leave a comment