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…
Git shows files come along a specific commit
Sometimes we need to check which files were come along with a given commit so as to verify which is the missing file, for instance. I bet some of you…
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…
Understanding data type of 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…
How to build and render data in JSON format with Grails
Nowadays, an awful lot of web based applications are using JSON as a principal data to load and render information rapidly. While some applications store data into persistence volume as…
How to consume web services in Grails
Frankly, implementing RESTful API endpoints/services is a vital part of any modern web-based applications these days because of inherent advantages of this technology. However, how do you consume RESTful services…
Event Delegation in jQuery
Introduction Event delegation allows us to attach a single event listener, to a parent element, that will fire for all descendants matching a selector, whether those descendants exist now or…
How to change default server port for Grails application
As a web developer, all of us are aware of the number 8080 as the holy port nobody can forget. In Grails based applications, there is no exception at all.…
How to find the mime type of a file in Python
A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) is a standard that indicates the nature and format of a document, file, or assortment of bytes. It is defined…
