Saturday, December 17, 2016

31 The Most Common Ways to Use Your Android Phone

31 The Most Common Ways to
Use Your Android Phone

31 The Most Common Ways to Use Your Android Phone

Android has become one of the best mobile platform. Since its disruptive incarnation, which strained the relations between Steve Jobs and Larry Page, Android has evolved a lot and has surpassed the number of mobile applications as compared to iOS apps. Continual innovation and well-timed new flavours empowering Android capable mobile phones.

This post tries to summarize the most common ways to make the most of what Android phones/tablets offer.


Way 1: As music player

There is a wide range of music players available be it traditional Winamp to Google Music. For Indian music lovers, Saavan and Wynk apps are available that stream the latest Bollywood/Tollywood music.



Way 2: As an Alarm

The in-built Alarm Clock fulfill its purpose but Google Play offers you more impressive Alarm applications. Alarmy is quite unique. To shut its annoying alarm off you must take a photo of that location or solve a maths problem.


Way 3: As a GPS

Certainly GPS has been out-placed by smartphone. Almost all Android-based smartphones have in-built GPS feature. There is no shortage of GPS enabled apps at Google Play store. Google Maps offers many features like Live Traffic Updates and it has started supporting offline maps as well. You can store your maps on an external SD card as well.

Alternately you can try Sygic GPS Navigation & Maps.


Way 4: As a Compass

Almost every Andorid device comes with pre-installed Compass application. You don't need any data connection to use compass application. It is very handy while scouting in finding the North direction at the strangest places. In India, the main admirers of the compass app are Vastu Shastra Astrologers and property dealers or agents.

Compass 360 Pro has been the most popular application at Google Play. The application claims that it can provide magnetic and true North and take cares of the variations automatically.

Wednesday, December 7, 2016

NodeJS Tutorial 5: Using HTTPS with Express

NodeJS Tutorial 5

Using HTTPS with Express

NodeJS Tutorial 5: Using HTTPS with Express

Tutorial 5: Using HTTPS with Express
Tutorial 6: Develop a JSON API server
Tutorial 7: Use Templates and Views with Express
Tutorial 8: Integrating MongoDB
Tutorial 9: Testing Express Applications
Tutorial 10: Securing Express

To make end to end secure communication, you need HTTPS. To a great extent it protects data packets from intercepting by third party tools. HTTPS i.e. HTTP communication over SSL(Secure Socket Layer) or TLS(Transport Layer Security).

If you don't  understand these terms, don't worry. In layman terms, HTTP and HTTPS works in a same fashion except the data communication between web browser and web server is encrypted which prevents man-in-middle snooping. Both web server and browser have in-built mechanism to encrypt and decrypt the data and for this web server keeps an SSL certificate. This SSL certificate is issued by Certifying Authorities (CA) and the browser uses this certificate (public-key) to verify the identity of the web server.

In nutshell, you need SSL certificate which you can obtain in the following three ways:

1. Generate your own self-signed certificate.
2. Obtain a free certificate from free CA
3. Buy a commercial certificate.

1. Self-signed certificate is required for development or testing purpose. This certificate is not used for commercial purpose. You can generate your own using openssl tool on a Linux environment. Tony Erwin blog has a nice post that provides steps to create self-signed certificate using openssl. Alternately you can go to websites like MakeCert or www.selfsignedcertificate.com.

2. There are certifying authorities that offer free SSL production-ready certificates like CACert  and LetUsEncryt. There are “ifs and buts” are involved to issue certificates from these organizations, but they are gaining popularity. There are other organizations which offer 30 days to 90 days valid certificates on trial.

3. Companies like Verisign, GoDaddy, BigRock, Bluehost and may other hosting sites vendors sell SSL certificates for few hundreds to a few thousand dollars.

Using certificates in ExpressJS


Saturday, December 3, 2016

Google Chrome Hidden Tool - Task Manager

Google Chrome Task Manager

Google Chrome Hidden Tool - Task Manager

Chrome browser has its own built-in task manager. You can open task manager dialog by keyboard shortcut Ctrl-Esc or Go to Main Menu > More Tools > Select Task Manager.

The task manager lists the following:

- Website opened in each Tab
- Plugins or Apps running in back ground.

Thursday, November 24, 2016

NodeJS: Develop a Static File Server

NodeJS: Develop a Static File Server

Tutorial 1: NodeJS: An Asynchronous World
Tutorial 2: Express: Middleware or more...
Tutorial 3: Understanding Routing in Express
Tutorial 4: Develop a Static File Server
Tutorial 5: Using HTTPS with Express
Tutorial 6: Develop a JSON API server
Tutorial 7: Use Templates and Views with Express
Tutorial 8: Integrating MongoDB
Tutorial 9: Testing Express Applications
Tutorial 10: Securing Express



Any web server serves a lot of static content like CSS, images, Javascript etc. files. ExpressJS provides a built-in middleware i.e. express.static to offer static content. It has a lot other features like caching mechanism, ETag support etc.

Let us try to build a static page using BootStrap framework (http://getbootstrap.com). To install BootStrap, you can use npm command i.e.

$ npm install bootstrap@3

Tutorial 4: NodeJS: Develop a Static File Server


You can check the Bootstrap structure it contains files under 'dist' folder which can be distributed.

Tutorial 4: NodeJS: Develop a Static File Server


Copy the folders of 'dist' of make soft-link of these sub-folders to your expressJS web-site folder.
Create a folder named “images”. Also, install jquery

Sunday, November 13, 2016

Are Hatchimals the latest fads of 2016?

Are Hatchimals the latest fads of 2016?

Are Hatchimals the latest fads of 2016?
image credits: Htachimasl.com


Interactive toys sell more... In 90s the concept of virtual Pet emerged and became popular in 2001-02. Japan's Tamagotchi was an instant hit in 1996 around the globe. It was key chain size virtual pet game that comes with a black and white LCD screen.


Later many games and web sites came based on virtual pet theme. Now when adults are busy interactive with intelligent chat bots (Siri or Allo...), for toddlers (age 5 to 7) there is an incarnation of Tamagotchi like toy called Hatchimals. In past two months it has gained popularity worldwide and might become the most hot selling Christmas toy.

Saturday, November 12, 2016

From Swiss Banks to Swiss Emails - Politicians, Businessmen, People Another Liking - Proton Mail

From Swiss Banks to Swiss Emails -
Politicians, Businessmen,
People Another Liking -
Proton Mail

From Swiss Banks to Swiss Emails - Politicians, Businessmen, People Another Liking - Proton Mail

For last 20 or 30 decades, Swiss banks were the favourites of politicians, business men, mafia people through out the world. From Hollywood to Bollywood to Lollywood, movies in any language depict Swiss banks as the routes to store bad men black money. Many politicians from different parts of the planet have won their elections by connecting their counterparts to Swiss banks.

Despite all these melodramatic manifestations, Swiss banks have earned a sweet fame like Swiss chocolates. People recognize these bankers for their honesty, privacy and security.


In this cyber space where scams, leaks, hackings like activities are pacing up, a Swiss organization called Proton Technologies offers a secure email service called ProtonMail.

Thursday, November 3, 2016

Tutorial 3: ExpressJS – Using 3rd Party Middleware Stack

Tutorial 3: Express Module – 
Understanding routing using 3rd Party Middleware

Tutorial 1: NodeJS: An Asynchronous World
Tutorial 2: Express: Middleware or more...
Tutorial 3: Understanding Routing in Express
Tutorial 4: Develop a Static File Server
Tutorial 5: Using HTTPS with Express
Tutorial 6: Develop a JSON API server
Tutorial 7: Use Templates and Views with Express
Tutorial 8: Integrating MongoDB
Tutorial 9: Testing Express Applications
Tutorial 10: Securing Express



ExpressJS based applications can use numerous third party middleware modules available free or commercially. When a request enters expressJS based node application, the request goes through the middleware stack from top to botton unless it meets an error or a response. Thus expressJS routers help splitting up applcation into manageable independent mini applications.

A few commonly used middlewares are listed below:

express-session: To implement sessions in express, this module comes handy. It supports two main ways to implement session i.e. cookies and session-store at the backend.

cookie-parser: Cookie is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing. In general developers use it along with express-session. The cookie-parser middleware enables signed cookies which can be referenced by other middleware components, using an optional secret attribute.

useragent : Sometimes you want to serve different web pages to different browsers or you want to limit serving your application to browsers of minimum version, useragent module is very helpful.

body-parser: It  parses incoming browser's request in a middleware before your handlers. Useful in form-handling.

morgan: It is a http logger. By default it logs to console or you can redirect to file stream.