How to export environment variables defined in a file

Using environment variables in modern applications is very common https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file https://unix.stackexchange.com/a/79084/30988 set -a . ./tmp.txt set +a

Introduction to default parameters in C++

What is a default parameter? When do you have to use default parameters? How to define a function having default parameters? These questions will be discussed in this post. Let’s…

Deploying a Grails App in a standalone Tomcat Docker container

Recently, I have written the post to keep how to dockerise Grails apps with an embedded Tomcat. However, we are entirely able to run Grails apps in a standalone Tomcat,…

Dockerising Grails applications with an embedded Tomcat

The applications built on the Grails framework can be run (often referred to deployment) on either standalone or embedded Tomcat. Grails applications can be deployed in a number of ways,…

Share files and directories on the host machine with docker containers

If you used to access files and directories of the host machine from a virtual machine (VM), I believe you have been aware of sharing folders between guest and host…

How to create a temporary file to store data

Your application has to write data out in a temporary file to reprocess them before rendering to users. The file will be created temporarily and swept our when the application…

Fastest way to get the first n elements of a List or an Array

Which is the fastest way to get the first n elements of a List or an Array? Let’s give a context where we want to extract some first elements from…

How to console.log in JSX

https://medium.com/javascript-in-plain-english/can-you-console-log-in-jsx-732f2ad46fe1

Running Redis Server on a Docker container

[dropcap]W[/dropcap]hen reading this post, I am thinking of the fact that you are curious at the reasons why we have to do so and why we don’t install Redis Server…

Deploying your first web application to Tomcat on Docker

Before reading this post, you are expected to be familiar with deploying a web-based application to Tomcat or any similar web container. To add another way of deploying your web…