Simple Scala methods for sum and maximum

I am learning Scala. I have been confronted with a simple task to create functions for finding sum and maximum in the list of numbers. A precondition is that both functions should be solved recursively.
Continue reading

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

Convert varchar to text in PostgreSQL

If you work with PostgreSQL you will definitely get into the situation when you want to change the data type for the text fields in your tables. This is a simple hint how to convert varchar data type to text data type.

Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

3 basic mistakes for NullPointerException when Mock

You might get NullPointerException exception when you try to mock object in your tests. This article is a short list of 3 most common reasons why this might be happening.

Continue reading

Posted in Testing | Tagged , , | Leave a comment

How to create file in different directory in PHP

Let’s imagine I want to create a file in a different folder than where I am in the current moment. How to create this file in the different folder? This article will help with a small piece of code achieve creation of a file in the different folder.

Continue reading

Posted in Uncategorized | 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.  We will see several different approaches to solve this problem in a right way.

Continue reading

Posted in Tutorials | Tagged | 1 Comment

Solution for ‘Lombok plugin incompatible with 2018.1 Intellij Idea’ warning

Migrating from older to the newest version of IntelliJ Idea can cause a warning message for Lombok module.
Continue reading

Posted in JetBrains suite | 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 iterate over the items in a HashMap? 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.

Continue reading

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.

Continue reading

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.
Continue reading

Posted in Language basics | Tagged | Leave a comment