Home / 08:40 PM / 08:40 PM

Monthly Archives: Sunday May 31st, 2020

Dockerising Grails applications with an embedded Tomcat

Deploy Grails apps in an embedded Tomcat Docker

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, each of which has its pros and cons. In this ...

Read More »

Share files and directories on the host machine with docker containers

How to share local files to 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 in Virtual Box. In the age of cloud and dockerisation, ...

Read More »

How to create a temporary file to store data

Create temporary files

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 restarts or shuts down. How do we create such a ...

Read More »

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

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 an array or a list. You have a list of ...

Read More »

Running Redis Server on a Docker container

Running Redis Server on Docker

When 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 on our system and run it as the typical software. ...

Read More »

Deploying your first web application to Tomcat on Docker

Deploy web apps on Tomcat running in a Docker container

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 applications, I am going to show you how to deploy ...

Read More »

Create Symbolic Links on Windows

Create symbolic links on Windows

Your Python codes store and resident in many places on your computer. Is this a bit messed up to remember which Python directory you are looking for, isn’t it? On a Linux environment, you can organise your Python-based codes into ...

Read More »

Use PowerShell to Set Environment Variables

Use PowerShell to Set Environment Variables

What Are Environment Variables? Two fundamental components of any computer programming language are variables and constants. Like independent variables in a mathematical equation, these take on values that change the results of the program. Variables and constants both represent unique memory locations containing ...

Read More »

An annoyed error needed to be paid more attention when using RestBuilder grails plugin

In the previous post about consuming web services in Grails using RestBuilder grails plugin, I explained how to set up a call to the remote service provider. However, I have recently encountered an annoying error as reported on its GitHub ...

Read More »

How to test database connection without using Hibernate ORM in Grails

How to test database connection without using Hibernate ORM in Grails

You will likely encounter a headache problem when bringing a large project to cloud-based deployment development, especially testing the access of databases if you have to request of accessing internally managed database servers and set up HTTP proxy like we ...

Read More »