Skip to main content

Posts

Showing posts from November 8, 2010

BE COMP OS Assignments

Palindrome http://www.ideone.com/gYTMA Menu driven http://www.ideone.com/svoiM Awk http://www.ideone.com/1waFr Fork http://www.ideone.com/AF4Ln Alarm http://www.ideone.com/MVrCt Fibonacci http://www.ideone.com/P2TQZ Unnamed pipe http://www.ideone.com/CwYPr Named pipe : Server : http://www.ideone.com/Rpe8e                        Client : http://www.ideone.com/bIMmi Semaphore : Not done File management : http://www.ideone.com/3NRHh ( not my code ) kernel module : http://www.ideone.com/4PK3O Paging :  http://ideone.com/mmdjF

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="http://code.jquery.com/jquery-latest.min.js"></script> </head> <body> <div id="images"> </div> <script> $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?", { tags: "cat", tagmode: "any", format: "json" }, function(data) { $.each(data.items, function(i,item){ $("<img/>").attr("src", item.media.m).appendTo("#images"); if ( i == 3 ) return false; }); });</script> </body> </html>

ideone

used ideone to test code. Its awesome http://ideone.com/Wmk1W 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  ( N etwork  A ddress  T ranslation), 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 M

New Blog

Dear readers, In an effort to stick with the title of this blog, i.e. "Me, Mine and MySelf", I have decided to put all technology related posts on a new blog and leave this one clean for more important stuff. The link to the new blog is http://icodeforfun.blogspot.com/ Enjoy reading!

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. ;)