The beagle board community has always amazed me. They strive to design and produce low cost embedded systems. This is clearly an amazing task. And I also believe amazingly hard.

A true open hardware, community-supported embedded computer for developers and hobbyists. Ride the 1GHz edge with the Sitara™ ARM® Cortex-A8 processor, boot Linux in under 10 seconds and get started on development in less than 5 minutes with just a single USB cable.

Says the information on the web-site. And what they say is true. I have had one of these on me for some time now. And got to play with it.

BeagleBone Black

The BeagleBone Black

Leaving aside the hardware. Writing software for such an amazing device is just so fun!!

The new BeagleBone Black comes with Node.js installed with couple neat libraries such as the BoneScript (https://github.com/jadonk/bonescript). With this library it is possible to get analog data from the pins using Node.js

A sample code could be viewed below;

The html file can be found below;

Probably not the best way to sample data. But hey, this is free code you are looking at. Will fix it on later.

Now the great thing is that, I can actually use the Cordova (cordova.apache.org) library to get this to work over an Android tablet. Hence I would be able to actually interact with a BeagleBoard using a Android tablet. How cool is that!

Now the thing is that I can not give you all the code. As I am writing the more important parts for my work work. However feel free to ask questions. I will see if I can answer them.

Have fun!

Just wanted to post an interview question I came across which might help those in need.

The task was : Use the language of your choice to write a program that reads a CSV file and outputs the contents of the file sorted by the “age” column.  Missing data should sort to the end.  Output should show all columns of data and may be sent to the console, an output file or a graphical interface at your discretion.

The csv file:  [download id=”28″]

My answer to this question was to write a Python script that used Spinx as a document generator.

The code went something like this:

You can find all the files in a neat little rar in the link following; [download id=”29″]

Anyway hope you have fun with it!

Wanted to create backups at certain intervals for a very important server. And what’s more  I wanted to make sure that the backups were in couple of places. Including my e-mail. So, I bash script was created!

Now you may notice you will need to install couple of packages to your server. These are ;

  • Mutt : Setting mutt is very easy. Simply search gmail mutt configuration in google. Who knows. May be you will find me in the process.
  • lftp : You don’t need to set this. And the packages for this is readily available for ubuntu and fedora distros.

Now all you need is to save this little script and call it from cron in periods of your wish.

For those wondering what message2.txt contains. It is a daily usage report that is created by a python script I wrote. However you can simply create a simple txt file of your choosing. That way mutt will include that text in to your e-mail.

 

I know there a lot of examples of WebCAM image capturing on the net. Mine is one of that but the main difference is that this little script here simply captures frames in a certain fps and simply saves those images. There a numerous usages for such a thing. One usage could be a script that uploads this image to a certain ftp site so you can display it in your web page. I needed this little script to follow a moving object. I did not write the whole script. You may think this as a little upgrade from the one on the internet. The script uses OpenCV and Pygame libs. Without further ado the script :

If you are geek your mouth should be watering by now. I will like to thank Oscar Lindberg and his cool Linux friend for this code! I was trying to get multiple-mice movement data. This is the code that got me started. Once I beautify my multiple-mouse code I will be posting it here as well. Without further ado :

I hope this just made your day!