Author Archives: Andrej Buday

3 basic mistakes for NullPointerException when Mock

This article is a shortlist of the three most common reasons why you get NullPointerException in your tests. Continue reading →

Posted in Testing | Tagged , , , | 5 Comments

How to create a file in a different directory in PHP

How to make this file in another folder than the execution file location? This article will help you with a small snippet of code to create a file in a different folder. Continue reading →

Posted in Language basics | Tagged , | Leave a comment

How to create a folder in PHP if it doesn’t exist

This article will show you how to create a folder automatically in PHP if it does not exist. Continue reading →

Posted in Tutorials | Tagged , | 1 Comment

Solution for Lombok plugin incompatible with 2018.1 Intellij Idea warning

Migrating from the older to the newest version of IntelliJ Idea can cause a warning message for the Lombok module. This article is about a simple solution how to solve this problem. Continue reading →

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

How to loop over HashMap in Java

HashMap is one of the most used data collection. There are several ways how to loop over it and get what you need. We will show five different ways how to loop over HashMap. So what is the best way to … Continue reading →

Posted in Language basics | Tagged | Leave a comment

How to sync up new Git repository on GitHub or GitLab

From time to time you necessary to set up new Git repository. This article is about a list of commands which are helpful for creating a new repository and syncing it with GitHub or GitLab.

Posted in Solutions | Tagged , , | Leave a comment

Python String split() Method

From time to time, you will find yourself trying to get a list of things from a string. For this purpose, you can use the split() function.

Posted in Language basics | Tagged | Leave a comment

How to concatenate or append strings in Python

If you are looking for answer how to append strings in Python, you are on the right page.

Posted in Language basics | Tagged | Leave a comment

How to write CRON jobs

CRON jobs or CRON tasks are very useful for automatizing repetitive work. With cron job help you can for example once a week wipe out cache files in your app directory or send email about number of newly registered users. You … Continue reading →

Posted in Tips & tricks | 1 Comment

How to compute distance between 2 GPS points?

This is an algorithm for measuring distance between 2 GPS points. Continue reading →

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