Author Archives: andrejbuday

Refactoring function for the least amount of lines

I had the opportunity to review a small piece of code. I took code review a little bit personally and challenged myself to write the shortest solution possible. Continue reading

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

Angular calendar datepicker creates incorrect date one day behind the selection

In this article, we will be looking at the issue of Angular datepicker and transferring correct date trough REST endpoint. Continue reading

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

vim – How to quickly edit readme.md with vim in a terminal?

This article is a small tutorial with a few simple steps on how to quickly edit readme.md with vim editor. Continue reading

Posted in Tutorials | Tagged , , | Leave a comment

SQL – How to use NOT LIKE in SQL?

This article demonstrates usage of SQL’s NOT LIKE on example. Continue reading

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

Git – How to remove folder recursively from Git

This article contains several clever commands for removal of unwanted files in your git repository. Continue reading

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

Windows – How to kill port at Windows?

This tutorial shows how to kill the port at Windows operation system. Continue reading

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

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.

Posted in Scala | 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 … 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.

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

Posted in Uncategorized | Leave a comment