What’s new:
- Unity3D: Build Flexible detector script using UnityEvent systemLet’s build a very useful and flexible detector script, that you can easily use to detect if some body enters the specific space. Then using UnityEvnts system you will be able to flexibly notify other GameObject about this fact. The created detector allows you to use it in various situations in the future without writing any line of code.
- SpringBoot: Resetting H2 database before each integration testIn the following article, apart from providing two solutions to the title problem, we will also talk about a few side topics. I find them worth discussing as they explain the specific behavior of SpringBoot and the H2 database when running JUnit tests.
- Unity3D: Scrolling texture on Sprite(Image)In this article, I will show you how you can scroll the texture on the Image object in Unity. This effect can be used, for example, to simulate a moving background or the parallax effect.
Learn Java & Spring Framework:
- SpringBoot: Resetting H2 database before each integration test
- Java & SpringBoot: Overriding system time for Unit, Integration and End2End testing – Complete guide
- Spring: Injecting smaller scope bean into larger scope bean
- Spock 2.x: Configuring maven project in both pure Java and SpringBoot projects
- Spring @PostConstruct and @PreDestroy alternatives in Java 9+
Learn making games in Unity3D:
- Unity3D: Build Flexible detector script using UnityEvent system
- Unity3D: Scrolling texture on Sprite(Image)
- Unity 3D: Can’t see Cinemachine in C# script
Learn Ionic Framework:
- Ionic & Angular: Custom page transitions (animations between pages)
- Ionic & Angular: Same back button behaviour on iOS, android and custom button.
- Ionic & Angular: How to exit application on pressing hardware back button
See other topics:
-
Unity 3D: Can’t see Cinemachine in C# script
There might be two main reasons why you can’t see Cinemachine in your C# script – missing Cinemachine package or missing assembly reference. In the following article you will find solution for both causes.
-
FiveM + C#: Storing player data in MySQL/MariaDB database. Complete guide from scratch.
The following video shows how to create both client and server scripts for FiveM that allows you to pass data from the client through the server and to store it in MySQL database
-
Ionic & Angular: Custom page transitions (animations between pages)
Default page transitions that you can find in out of the box Ionic framework does not always suits your needs. In some cases you may want to have custom page animations when ion-router-outlet navigates between pages. Let me share with you a very compact and elegant solution for the title topic.
-
Java thread-safe singleton pattern (with and without lazy loading)
In the first part of the guide you get know the right solution to implement thread safe singleton in Java. Then I’m going to explain to you what’s wrong with the most common singleton implementation and why it is not thread safe.
-
Java & SpringBoot: Overriding system time for Unit, Integration and End2End testing – Complete guide
Have you ever wondering how to make your application travel in time? If you have, let me tell you that’s great because in the following tutorial I’m going to show you in the real examples how to manage time for all of three test layers – unit tests, integration tests and end-to-end testing.
-
Spring: Injecting smaller scope bean into larger scope bean
Let’s build a coffee machine and then find out what happened if you inject a smaller scope bean into a larger scope bean. Spoiler: In the last part I’ll tell you how to fix the coffee machine.
-
Spock: How to get Mock to return value to avoid NullPointerException or InvalidSpecException
The following guide explains how to use mock in Spock Testing Framework in a proper way to get rid of unnecessary problems like NullPointerExceptions and InvalidSpecException when you try stubbing instead of mocking.
-
Spock 2.x: Configuring maven project in both pure Java and SpringBoot projects
From the following guide you will learn how to configure maven project to work with Spock Testing Framework in both cases: standard Java maven project and SpringBoot maven project.
-
MacOS: Install Unity on Apple Silicon M1 | Brew + Visual Studio Code + Mono
In the following article you can find all you need to properly install Unity on new MacBook Pro with Apple Silicon on the bard. The guide works for older MacBooks as well.
-
MacOS: How to take screenshot and save it to clipboard or custom directory
n the following guide I will show you two methods of making screenshot in MacOS and int the last part I’ll show you how to change the default screenshots location.
-
DaVinci Resolve: Voice recording | Noise reduction | Sound level normalization | External mic issue
The video tutorial contains everything you should know to start voice recording in DaVinci resolve. It consists of the following parts:
-
MacOS: How to Drag and Drop between full screen apps
If you want to move a file from Finder window to the application opened in fullscreen window just grab the file (click and move) and then press ⌘ + Tab to switch to the target window.
-
DaVinci Resolve on Mac OS: Dual Screen button greyed out
The following guide explains how to switch DaVinci Resolve to dual screen mode on MacOS in case you stuck with the “Dual Screen” button disabled.
-
FiveM + C#: Storing player data in MySQL/MariaDB database
The following video shows how to create both client and server scripts for FiveM that allows you to pass data from the client through the server and to store it in MySQL
-
Ionic & Angular: Same back button behaviour on iOS, android and custom button.
How to use the same back button logic for an Android hardware back button and any custom button on the Angular page? No problem! The solution I show you in the tutorial allows you write all your navigation logic in one place and makes it work exactly the same on Android and iOS devices.
-
Ionic & Angular: How to exit application on pressing hardware back button
The tutorial explains how to override standard hardware back button behaviour by custom logic. The article contains detailed descriptions of three most common scenarios of hardware back button use.
-
MacOS: How to permanently add ssh private key to keychain
If your private ssh key is secured by passphrase you have to run ssh-add command to add it to keychain. It is a mechanism that allows OSX to load ssh keys on login without passing passphrase each time you want to use the key. You can skip the following step if you key is not…
-
Windows 10 – How to free up space on drive C in 5 simple steps
Windows often littering the hard disk with various files. Today we are going through a series of simple and effective steps that will allow you to clean the system partition from unnecessary files. We will start with the simplest steps, which are worth repeating from time to time, to advanced ones like removing old driver…
-
MacOS: How to connect and transfer photos, videos and other files from Android devices
You’ve probably noticed that after connecting an Android phone to your MacBook and allowing files to be transferred, the device is still invisible from within the MacBook. In this short guide, I will show you to a simple and secure way to transfer data (including photos and videos) from your phone to your Mac. Resources:…
-
Spring @PostConstruct and @PreDestroy alternatives in Java 9+
Both @PostConstruct and @PreDestroy annotations (often used in spring applications) are located in java.xml.ws.annotation package which is a part of Java EE module. J2EE has been deprecated in Java 9 and it’s scheduled to be removed in Java 11. Let’s look how to run your application without errors again in two approaches: with and without code modification. Approach 1: Without code…
-
[SOLVED] – AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’
The cause of the mentioned problem is incompatibile code with installed tensorflow library. In this case you have code compatible with tensorflow 1.0 version but installed tensorflow 2.0 or higher. Let’s see what you can do to solve the problem. Solution 1. Follow tensorflow migration guide Migrate your code following this guide. Solution for the title…
-
The power of SSH tunnelling – Simple guide with drawings and examples
SSH tunnelling is about making a two-way secure connection between two servers using SSH. Though it sounds innocent, it gives you powerful capabilities. Starting from the simplest tunnels, along with delving into the subject, we will go through the more advanced ones. 1. Communication channel encryption Imagine a situation in which we are implementing some…
-
Windows 10 – Clean up System32\DriverStore\FileRepository and free up a lot of space
It’s been a year or two since you last reinstalled Windows. The problem of missing space on the system partition returns like the boomerang . Do you know it? This time I decided to check what is the reason. What I found caused me a slight shock and disbelief. In today’s post, I collected all…
-
Java/Spring Boot – How to autowire bean to a static field of a class or UtilityClass
There are situations in witch you need to access Spring ApplicationContext or any other Spring bean from a static method. At the beginning I would like to emphasise, that wiring a bean into a static class is strongly discouraged. This article is for those who insist on taking going ahead with it and are aware of…