Skip to main content


Showing posts from November 8, 2010

BE COMP OS Assignments

Menu driven
Unnamed pipe
Named pipe : Server :
                       Client :
Semaphore : Not done
File management : (not my code)
kernel module :
Paging :

jQuery $.getJSON

The classic example for understanding jQuery $.getJSON (and JSON format).
Taken from jQuery documentation.
This code displays images of cats from flickr.

<!DOCTYPE html> <html> <head> <style>img{ height: 100px; float: left; }</style> <script src=""></script> </head> <body> <div id="images"> </div> <script> $.getJSON("", { tags: "cat", tagmode: "any", format: "json" }, function(data) { $.each(data.items, function(i,item){ $("<img/>").attr("src","#images"); if ( i == 3 ) return false; }); });</script> </body> </html>


used ideone to test code. Its awesome
Thinking of developing a desktop app for this.
1. create an ideone app that returns the status of submitted code
2. combine the paste with icode to get in under version control
3. this way I'll be harnessing power of both ideone as well as icode.
4. user does not need to have anything : he codes on ideone and stores on icode => zenith of saas dev

Access Virtualbox Guest machine via SSH

How to Access via ssh a Virtualbox Guest machine. By default, the network connection in VirtualBox is set to NAT (Network Address Translation), that is every packet coming from the Guest machine is modified so that it seems as it has come from the Host machine. In this way it’s easy for the Guest machine to connect to all the rest of the network (the internet included) but nobody can start a connection with the Guest Machine since it’s hidden behind the Host one. So, if you are going to test a server service in your Guest machine (i.e. Apache or ssh) you have two choices: pass to Virtualbox Host network connection;make virtualbox forward all the packets arriving to a certain port of the Host machine. This article will describe how to do the latter, in particular in the case of the ssh server. This is an interesting case because it allows you to simulate very well a quite common condition: connecting to a remote Linux headless machine.

We have a Guest Machine with a running ssh server …

Uploading multiple pictures on picassa

By default, picassa accepts only single pictures. However this time I had to upload about 100 pics of Nexus 2010 to picassa and doing that manually, pic by pic was too much of an effort.
A bit of googling got me this very wonderful solution. Use google buzz.
The pics that are posted on buzz are saved on picassa web albums. And buzz accepts multiple pictures for upload. Hence problem solved. Upload multiple pics as buzz posts, and they automatically show up in your picassa web album. ;)