Home / 16:58 / 16:58

Monthly Archives: 29/04/2020

How to change font size for text shown on arcs in D3Js

A bubble chart built in D3js with the forced layout algorithm

using .style(“font-size”, “1.5em”)

Read More »

Các lệnh của VIM được sử dụng phổ biến

Screen at starting VIM with --startuptime vim.log

Rất tiếc, mục này chỉ tồn tại ở Tiếng Anh.

Read More »

Cách thức để truy cập dịch vụ web trong các ứng dụng với Grails

consume web service from Grails 4

Tài liệu tham khảo https://guides.grails.org/grails-mock-http-server/guide/index.html

Read More »

Git shows files come along a specific commit

The output of git show --name-only

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 have already known how to do that via a graphical ...

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 »

(English) Understanding data type of dictionary in JavaScript

Understanding Dictionary in JavaScript

Rất tiếc, mục này chỉ tồn tại ở Tiếng Anh.

Read More »

How to build and render data in JSON format with Grails

The graphical representation of the illustrated application

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 JSON string, the others still use relational databases as the ...

Read More »

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 if you are a client/user? There are several approaches to ...

Read More »

Event Delegation trong jQuery

What is Event Delegation?

Event delegation là cách để giải quyết vấn vấn đề: trong những đoạn html được cập nhật bằng ajax (ajax updated content). Tham khảo https://learn.jquery.com/events/event-delegation/ https://blog.revathskumar.com/2013/10/jquery-on-avoid-losing-event-binding-for-ajaxed-contents.html Click doesn’t work after AJAX load – jQuery

Read More »

How to change default server port for Grails application

An Grails application started successfully

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. For some reasons, we might need to run multiple grails ...

Read More »