I have been playing around a little bit... with web sockets and executing shell commands via node.js, and created a web based shell terminal. This is really just a POC rather than finished product, how to created a web based terminal taking advantages of socket.io and node.js
I have put the code on github, so you can check it out. Before you run it, make sure you have all the necessary packages, and also, you have the update the web folder static file path in the config.js file.
Here is a nice little piece of code that can help you measure measure time: (actually using it in node.js)
var timer = function(){
var start,
end;
return {
start: function(){
start = new Date().getTime();
},
stop: function(){
end = new Date().getTime();
},
getTime: function(){
return time = end - start;
}
};
};
Here is the usage:
var t = timer(); t.start(); // do something t.stop(); console.log(t.getTime());
So I have some movies in avi format that I want to watch on my ipad. Obviously this feature is not build in itunes, as apple wants you ony to watch purchased content. I did some googeling around, found some paid software that did not look trust worthy either to put on my mac, finally found this little open source project: HandBrake. And it works great. I have my movies at another mac in my house network, and did not even have to get up from my couch, just pointed to the remote disk, through a few movies in the queue, and my son will have movies to watch on the ipad... I think HandBrake even rips DVDs directly...
These guys even have a repo on github, so you know this is for real... real great tool :)