Submitted by Chris Larson on Thu, 04/04/2013 - 20:58
This week I found out how easy it is to spin up a Hadoop cluster with Amazon AWS. My fist app was the simple word count app found on the AWS tutorial site. The biggest thing missing from the tutorial is an interesting data set. (The tutorial uses a 3 line text file.) After the Word Count Hadoop tutorial the next most popular tutorial is calculating Twitter sentiment. For this I needed to become familiar with Twitter's API, specifically the Streaming API.
Submitted by Chris Larson on Mon, 02/18/2013 - 12:51
Using HTTPS with express is almost as simple as replacing require('http') with require('https'). For my application I am using a self-signed certificate that I created after following the directions on Nate Good's blog. I placed the certs in a folder called cert.
Submitted by Chris Larson on Sun, 02/10/2013 - 11:25
My application uses node.js and socket.io for communication between server and client. For communication between server and local hardware/programs I need a way to pass events and variables from node.js to python. The solution I am using is to store the values in Redis and access them from both node.js and python. First Redis needs to be installed; on Ubuntu simply run
Submitted by Chris Larson on Fri, 02/08/2013 - 16:35
Now that I have a working HMI setup with user authentication, I want to extend it to include remote devices and computers. The easiest way to connect remote computers is to emulate the browser connection. Since malicious hackers will probably attempt to do this anyway it is also a great way to test the security and robustness of the system. My example is taken directly from the creator of Passport.SocketIO, José F.
Submitted by Chris Larson on Thu, 01/24/2013 - 23:34
Authenticating socket.io with passport is tricky because socket.io doesn't have direct access to the cookie data that passport.js and express create. The solution is to add a socket.io function that requests the cookie and checks it against the list created by passport. Fortunately jfromaniello on github has already created passport.socketio.
Submitted by Chris Larson on Mon, 01/14/2013 - 11:18
Using node.js, socket.io, and express I created a simple real-time HMI for controlling valves. This method can be used to control any device including a network connected arduino or raspberry pi, local USB connected IO boards, or any other device that can communicate with web sockets. In this simple web based HMI clients connect and enter their name. Clients are then allowed to send and receive chat messages or press the open and close buttons associated with each valve. Security and access restrictions were not used here, but could be added later.
Submitted by Chris Larson on Sat, 01/05/2013 - 23:25
Getting started Screencasting with Linux and open source software was an adventure. I was looking for a single tool that could do all the editing for audio, video and effects. What I came up with is a combination of Kdenlive, Audacity, RecordMyDesktop, and a couple command line tools.
Submitted by Chris Larson on Sun, 12/23/2012 - 14:17
For my birthday a good friend got me a Raspberry Pi. It took three months, but I finally received the raspberry pi in the mail this week. After spending time reading through performance reports on SD cards, I ordered the SanDisk Extreme Pro 8GB. Once it arrived I used my Ubuntu machine to download the Raspbian “wheezy” disk image and extract the image onto the SD card using ImageWritter. Using an iPhone USB charger I plugged in a micro USB cable to the power input on the Raspberry Pi board as well as an HDMI monitor and wireless keyboard/mouse dongle.