Posts

Showing posts from August, 2013

Compile NodeJS from source on Debian (linux)

Steps wget http://nodejs.org/dist/v0.10.16/node-v0.10.16.tar.gz    /// Downloads the source tar -zxf node-v0.10.16.tar.gz  ///extract to local folder su   /// switch to root apt-get install build-essential   ///This command installs the c compiler and other essential build tools.  ./configure && make  /// builds the source

Universal Plug and Play (UPnP) with NodeJS

Image
Introduction UPnP architecture allows devices to device communications among home entertainment devices, consumer electronics devices, wireless device etc. This uses UDP port 1900 and TCP port 2869. Participating devices use Simple Service Device Discovery protocol ( SSDP ) to discover other devices. Enable UPnP in Windows 7 Window 7 support UPnP for sharing videos, photos, and files to other supported devices including Smart TVs, SetTopBox devices etc. Go to Control Panel\All Control Panel Items Network and Sharing Center Choose home group and sharing options Create a homegroup Select the options you wish to enable and click Next Write down the password and 'Finish' Now your pc is set up as a UPnP enabled devices Install NodeJS  The sample code discussed here require nodejs to run. You may find the installation details here (NodeJS) . Search This sample I used is inspired from this github - https://gist.github.com/chrishulbert/895382. This is goo