TO THE NEW Blog PAGES

Technology

Node.js: Getting started with Express.js and MongoDB

In my previous post, I explained how to get started with node.js and executing your first script with node. Now in this tutorial, we will go a step ahead and learn using Expressjs and MongoDB. For people who are new, Express is a web application framework for node which provides a set of features that […]

Suroor Wijdan
Suroor Wijdan
Read

Technology

Getting started with node.js on Linux

In this tutorial i will walk you through the installation of node.js on your Linux system and executing your first script with node. To get started goto the official node.js website and download the Linux Binaries file (as shown in the screenshot below) according the bit version of your system. Save the downloaded file in […]

Suroor Wijdan
Suroor Wijdan
Read

Technology

Simulating Static behaviour for Object Properties in JavaScript

We were facing problem at time of creating Static properties in any Object in JavaScript as there is not any direct method to create static properties. For example if we want to create a static property in an array object and we want it to be same for every other object without storing the property […]

Node.js

How to Remove Duplicate Elements from Array in JavaScript

Arrays in JavaScript are daunting and particularly difficult in nature. The fundamental reason for making this statement is that JavaScript does not provide as many functions/methods for array operations as several other languages do. As a result, an array operation as simple as removing duplicate elements from an array may also be particularly intimidating. A […]

Sakshi Tyagi
Sakshi Tyagi
Read

Android

Using ‘SendJavscript’ to inject javascript into Android Phonegap application

In one of my Android Phonegap projects, I had to pass information from the native java code of my app to the Phonegap code(written in Javascript). I found out that I can do so with ‘sendJavascript()’ method available in DroidGap class. For example, the following line of code will inject a variable in Javscript with value […]

Technology

Difference between call() and apply() method of JavaScript

Many people get confused with these two functions in JavaScript, most of the time people think that we can pass an object in apply() and access it with this which is not possible with the call() method. But that is not the case, let’s see an example which will make it more clear. Using call() method: [js] […]

Suroor Wijdan
Suroor Wijdan
Read