Category Archives: Web Development

VMWare Workstation start on boot CentOS

Fix cannot find module ‘block-stream’’ in npm Node.js on CentOS 6.3

Overview

While writing  and exploring on Node.js I did lots of ‘yum remove/install’ for npm node.js.
after a while I realized that npm wasn’t installing anything and just returned an Error: cannot find module ‘block-stream’.
Another thing was that the folder ‘/usr/lib/nodejs/npm’ was lacking the ‘node_modules’ folder which includes its dependencies.
yum remove/install npm didn’t helped, the error also happened when I tried running ‘npm update’ or ‘npm install’.

Continue reading

VMWare Workstation start on boot CentOS

CentOS Node.js / Express.js / Derby.js / Meteor.js is EASY!

 CentOS Node.js / Express.js / Derby.js / Meteor.js is EASY!

In the following tutorial I will show you how to install CentOS Node.js and the Express.js /Derby.js and Meteor.js frameworks.

I am using CentOS minimal 6.5, but the following instructions have been tested on 6.3+ and probably works on earlier versions also.

Note: this article was updated in 02, march, 2014.

Continue reading

Transfer data from PHP to Android (JSON) – Part 1

You may reach a point where you need to transfer data from a server (web-service) to a an android client. although, there are many ways to achieve that goal, one of the simplest is using JSON. JSON is better then XML in terms of small bandwidth footprint. it has a lot of libraries for every available platform, so it makes the best solution for server-client communication.

Continue reading