Tom's Blog · Abelo
Unique identifiers generation in Node.js
Generating a unique identifier is sometimes a straightforward job. All you need is to get an index of integer type and increment it any time you need an identifier. The things get more complicated if an id needs to be unique in a distributed environment. In this post, I am sharing a couple of approaches to generated unique identifiers in Node.js. The solutions can be used in a single process as well as the distributed environment.
JSON and JSONP correct MIME types
Measurement of Node.js execution time
Images with data URI scheme using Node.js
In this post, I will share how to embed an image data directly into the document with data URI scheme in Node.js and Jade. The data URL scheme specification is RFC 2397. This process will basically require conversion of an image into base64 format.
Winston logs rotation based on time
In this post, I am sharing how to rotate Winston log files based on time and date pattern.
Github tarball download
Github provides a feature of downloading entire repository from a single URL (a tarball). The downloaded repository file is combined into a single file using Linux tar command. The archive file is also compressed using gzip compression.