Home / Web Engineering

Web Engineering

Web Engineering

Deploying a Grails App in a standalone Tomcat Docker container

Dockerise Grails apps 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, particularly deployed in Kubernetes or Docker environment. In this post, ...

Read More »

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 »

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 »

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 change font size for text shown on arcs in D3Js

A bubble chart built in D3js with the forced layout algorithm

Have you ever asked how to change the size of the text displayed on elements of a D3JS plot so far? After a bit touch search and discovery, I believe this trick isn’t explicitly addressed in anywhere of D3JS documentation ...

Read More »

How to consume web service from Grails 4 applications

consume web service from Grails 4

Recently, I have shared my experience in using grails 2.5.x to consume RESTful API/WebServices. In addition, to know how to retrieve remote data via RESTful WebServices with Grails 3 or 4 is an added value for your resume so as ...

Read More »

Checking existence of an element in an array with JavaScript

Checking existence of an element in an array with JavaScript

JavaScript is a loosely typed or a dynamic language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and reassigned) values of all types. In other words, everything in JavaScript is ...

Read More »

Understanding data type of dictionary in JavaScript

Understanding Dictionary in JavaScript

Dictionary is among the commonly used data structures in modern programming because of its benefits so that there has not been any frankly acceptable alternative. Therefore, in this post I am going to how you how to conceive this data ...

Read More »