Tuesday, January 3, 2017

Upgrading Node.js and Npm on Raspberry Pi

Happy New Year!

This holiday I bought myself a Raspberry Pi (with a camera module) as I wanted to play with Node-RED on a real Internet-Of-Things device (the pi has Raspbian Jesse).

The default version of NodeJs on NOOBs is 0.12.x and some of the flows nodes do not work on this (e.g. node-red-contrib-python-function) since they might use ECMA6 syntax (e.g. lambda expression).
So, I had to upgrade the Node.js version to a newer version like 6.x.

After remo nodered, nodejs and npm I installed them back with the correct version (using sudo apt-get install nodejs npm nodered). Unfortunately, installing them this way do not install the node-red-start/stop commands. After a quick search online I found these commands:

sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start -O /usr/bin/node-red-start
sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop -O /usr/bin/node-red-stop
sudo chmod +x /usr/bin/node-red-st*
sudo systemctl daemon-reload

sudo systemctl enable nodered.service

These commands will install the node-red-start/stop commands and make it start when the device boots!

Pretty nice!

Happy coding!

Monday, May 23, 2016

Web Inspector CAB for Rho WM6.5

Download from here:

Guide here:


Monday, June 1, 2015

IBM MobileFirst Platform Foundation (Worklight) - nodename nor servname provided or not known (some ip)

Hey there,

Due to Mac@IBM initiative, I've moved my primary workstation to 2014 MacBook Pro (15') with an OSX Yosemite 10.10.3.

Being a Mobile Architect in IBM Mobile Center of Competency, I also do a lot of work with IBM MobileFirst Platform Foundation (aka Worklight).
In one of my current projects (developed with IBM MFPF) I got the error in the title when building an iPad environment.
Looking in /etc/hosts and /private/etc/hosts the mappings were correct. The solution was to change the host name using the scutil command:
scutil --set HostName "localhost" 

Happy IMF coding! :)

Friday, December 12, 2014

Friday, November 28, 2014

Intel® RealSense™ AppChallenge - Phase 2 - Demo 1


This week I got the Intel® RealSense™ Camera and I've started creating the Visual Studio extension for the Intel® RealSense™ AppChallange.

First, I've installed the Intel® RealSense™ SDK which has some very nice samples for both C++ and C#.
Then I've installed Visual Studio 2013 Community edition (Thank you Microsoft!) and then VS 2013 SDK.

All tools are now in place!

The Natural Interaction Visual Studio (2013) extension is designed to be initialized when a solution is loaded - here the devices are discovered and entities initialized (e.g. SpeechRecognition). Once this happens, the user can go to the menu TOOLS and then Options... to view the Natural Interaction extension settings. In my case, I used a small vocabulary file for the "Start debugging" and "Stop debugging" sentences.

After some hours of coding, I've come to the following (promising) result: http://screencast.com/t/uvvmbfBHXkrQ.

This is Demo 1 - more commands (like Step into, step out) will follow. Also, the gestures are to be expected in the near future... but that is for another post!

Have fun!

Monday, November 24, 2014

Intel® RealSense™ AppChallenge - Phase 2


Last week I was nominated as a Phase 2 finalist for Intel® RealSense™ AppChallenge to develop a Natural Interaction Visual Studio extension.
This week I will get the Dev kit that contains the Intel® RealSense™ 3D camera and I will start developing the VS extension.

I'll post here how the project gos!

Stay tuned!