Category Archives: Solutions

Simple algorithm for casting strings to double

The article describes a method for converting incorrectly formatted numeric strings in CSV files into doubles by replacing commas with dots and handling various input errors, complemented by a Java util class implementation and tests. Continue reading

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

How to make multipart requests with file and object through autogenerated code defined in OpenAPI

This article explains how to create a Spring Boot endpoint using OpenAPI to receive objects and, optionally, files through multipart form data, focusing on deserialization and validation of incoming objects. Continue reading

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

How to make multipart requests with files through autogenerated code defined in OpenAPI

This article provides a clear tutorial on generating infrastructure code defined in OpenAPI schema for your custom Spring Boot application and handling multipart file uploads through an autogenerated REST endpoint. Continue reading

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

Create PostgreSQL database for integration testing with Docker

In this article, we will explore the idea of creating a PostgreSQL database Dockerfile. We can, for example, use it for creating integration tests in a separate CI/CD workflow. Continue reading

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

Compare all elements in an array against each other in Java

One of the most common requests when processing an array is to compare each element against all other elements in the array. An abstract solution to this request is demonstrated in this article in Java Continue reading

Posted in Solutions | Tagged , | Leave a comment

How do you kill the port on Windows?

This tutorial shows how to kill the port in the Windows operating system. Continue reading

Posted in Solutions | 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

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

Fixing SimplePie “./cache is not writeable.” error

Switching from EasyPHP to XAMPP as development environment and Windows to OSX I have encounter error regarding cache file in my app based on SimplePie library.

Posted in Solutions | Tagged , , | Leave a comment