• Skip to content

Technology enthusiast

  • Home
  • About Han
  • Get in touch
  • Privacy Policy

Bunyan: A logging tool for node.js

Uncategorized

Motivation

We are all familiar with using console.log() to log out information for debugging purposes. However, as the application grows, console.log gets littered everywhere. Also, there is formatting messaging is done manually.

[Read more…] about Bunyan: A logging tool for node.js

Managing connections in MongoDB

Uncategorized

Introduction to MongoDB

MongoDB is a NoSQL database that allows us to store data in other formats such as object, document, graph other than tabular relations using relational databases. As it is designed for horizontal scaling, NoSQL is increasingly used in applications that handle a huge volume of data, and real-time analytics.

Personally, I am using MongoDB out of interest, to learn a new technology and apply it to in my own side project. Like others, I followed tutorials and courses which used mongoose, a Object Document Mapper for MongoDB, to abstract nitty-gritty details away to provide a streamlined learning experience to new developers.

However, this time, I am using the native driver, in an attempt to learn to use the actual MongoDB syntax and commands.
So, the very first roadblock that I faced is to manage the connections, which mongoose already takes good care of.

[Read more…] about Managing connections in MongoDB

jquery sparklines charts in Angular2

Uncategorized

While working on my internship project that uses Angular2, I had to display some data in a nice chart which provides some interactivity. After browsing around for awhile, I settled for the jQuery Sparklines pie chart.

It uses <canvas> to draw charts(Should I use canvas or svg?), is simple and provides useful tooltip information when you hover over it.

For more info, check out the Sparklines documentation

[Read more…] about jquery sparklines charts in Angular2

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3

Copyright © 2019 · Essence Pro on Genesis Framework · WordPress · Log in