Mon Nov 30 16:57:10 EST 2009

The NSLU2 as a last.fm to twitter bridge.

This simple script came from the need of updating my twitter status with the songs that I am playing, the trick is that it will only update my profile if the song has been tagged as 'loved' on last.fm. It will also detect if it is Monday and will add the #mm hash.


As you can see I am using bit.ly to shorten the urls of the song, you will need a bit.ly API for this to work. I think what is left is to optimize the script storing the curl requests in a file sort of like a cache and add a routine to detect if it is longer than the 140 charaters allowed by twitte and shorten the text to be posted as the status.r


Posted by orvtech | Permanent link | Comments

Tue Nov 3 11:37:17 EST 2009

Monitoring Script for resources

This is a small script to display the resources utilization of a NSLU2 running linux on a web page in plain HTML, It is coded in BASH and some JavaScript in orther to display the information. Here is what the output looks like:


Source Code of resources.sh:

You then direct the output of that script to a file in your RootDirectory, in my case I am using /resources.js and I execute resources.sh every 5 minutes from a cronjob.


Source Code of resources.js:

I use the following code to display the information:


Posted by orvtech | Permanent link | Comments

Sun Nov 1 20:08:45 EST 2009

Almost There.

Almost two years have gone by since I last updated the site, we have migrated from a plain HTML site that had to be edited and managed using vim to the previous template but using nanoblogger as the back end for content manager. There are still some issues that I need to address like maintaining the same CSS between the old content and the new content... ultimately the old content will need to be migrated.

I have also been working on a picasa albums plug-in that I will release as soon as it gets properly tested. The ability to have a multilingual content is also something that I have been thinking of.

In 2 weeks I should finally have internet at home and should not need to 'borrow' it from my neighbors, by then I should be working again in to getting a gentoo stage3 of the latest release possible for the NSLU2.


Posted by orvtech | Permanent link | Comments

Sun Nov 1 13:16:16 EST 2009

Linux on the NSLU2

The Linksys NSLU2 (aka "slug") is sold as a NAS device but in reality it is much more useful than that. It is a complete, cheap, embedded Linux system. Best of all is the fact that the official Linksys firmware uses the Linux kernel, and so Linksys released the source code. This led to some excellent custom firmware projects like Unslung and OpenSlug.

Posted by iDontknow | Permanent link | Comments