Mar 20, 2015

What is new on Eclipse Thym 0.2.0

We have just released a new version of Eclipse Thym.

Compared to 0.1.0 release the highlights for the 0.2.0 release are.
  • Working sets are supported on New Hybrid Mobile Project wizard: You can add your Hybrid Mobile projects to JavaScript working sets during project creation.
  • Convert existing Eclipse projects to a Hybrid Mobile project: Any existing Eclipse project, that has a proper config.xml and www directory, can be converted using the Configure > Convert to Hybrid Mobile Project menu item. This feature also introduces a new API to enable adopters to programmatically convert existing projects to Hybrid Mobile projects.
  • Icon and Splash Screen support for iOS and Android builds:  If your config.xml has icon and/or splash screen references. Native project or executable exports created from Thym will honour them. Refer to Apache Cordova documentation for details of icon and splash screen support. 
As usual Thym 0.2.0 is available from these update sites and Eclipse marketplace.
  • Update existing installs:
  • Release repository good for building against:
Read more →

Jan 2, 2015

GPIO with Node.js in Pidora

So you have node.js running on a raspberry pi (if not see earlier post), I guess next you want to do some physical computing, and get some LEDs blinking.

In order to do physical computing, you need a library to access GPIO. Luckily, there is no shortage of   libraries for GPIO on npm. Without spending too much time, I have tried a few of them and for no particular reason, I have chosen to use wiring-pi.  wiring-pi is actually bindings to the WiringPi , a well known C library for GPIO.

Pidora actually includes WiringPi so you can actually start using it right away. It does come with a command line utility called gpio. However, the wiring-pi npm package does check out and compile its own copy of the library so if you do not already have it installed on your raspberry pi, do not worry.

Because wiring-pi needs git to retrieve WiringPi,  you need git to be available on your raspberry pi. First install it using

yum install git

Now you are ready to install wiring-pi

npm install wiring-pi

If you have followed my earlier post for installing node.js, you probably have a second node installation that came with pidora. In some cases, gyp conflicts with this obsolete one and installation of the wiring-pi may fail. To fix remove gyp and try to install wiring-pi again.

yum remove gyp
npm install wiring-pi

Since blinking LEDs were mentioned, here is a sample code that I have used, which is the example code from wiring-pi Github repository with a small change.

Read more →

Dec 14, 2014

Pidora Node.js quickstart

I have been using pidora (a fedora remix) for my raspberry pi experiments. So far, pidora has been treating me fine. However, you can quickly notice that pidora lacks documentation compared to debian based raspbian, so here is my instructions for getting node.js to work on pidora.

Actually, if you try to install node.js from yum repository, you will notice that node.js is available and can be installed. In fact, it was version 0.10.25, which was OK, when I was writing this.  However, when I tried to run an application with it, it failed with the message "Binary compiled with -mfloat-abi=hard but without -DUSE_EABI_HARDFLOAT". As one can imagine, I have not pursued further this road and looked other options.

So next option is to get node.js directly from the node.js distribution. First download the latest arm build for node.js. Although the latest release for node.js is 0.10.33, the latest ARM build I could find was 0.10.28.


Next extract the contents, move contents to /opt/node and link the bin folder to /opt/bin. I guess you can use different directories but can't imagine why.

tar xvzf node-v*
mv node-v* /opt/node
mkdir /opt/bin
ln -s /opt/node/bin/* /opt/bin/

Check that PATH includes /opt/bin. If it does not, edit /etc/profile to include it on PATH.  Now you should be all set. Of course, you need a library for accessing GPIO, and have your LEDs blinking but that is subject for another post.
Read more →

Jul 14, 2014

Adoption... Sort of

Apparently, myeclipse has started to use bits and pieces from Thym. It was brought to my attention that the plugin wizard image on the myeclipse feature page is from Thym. You can compare it with an image of the same wizard on JBoss tools features page for yourself. I have not tried the product myself hopefully it is working well.

Normally, I would be very excited about a product adoption happening this quickly. However, the folks behind this product have a different way of adopting open source software, which usually means project Thym will get zero benefits from this adoption. Of course, one can only hope for a positive surprise.
Read more →