Skip to main content

Posts

Map Reduce Simplified

Yes it is about parallel and distributed computing, there are tonnes of web pages, books articles, diagrams etc. etc with nice buzz words to talk about Map Reduce, here is the most simplified explanation. Lets take a real life example. 1. Company CEO called all Program Manager's "I need total effort spent this month by noon". Program Manager's no problem sir. Why are Program Manager's not worried because they are going to distribute task :-) 2. Each Program Manager called their project manager asking for effort spent so far. 3. Each Project Manager pulled up effort sheet and provided it to their Program Managers. 4. Program Managers complied received sheet into one file and sent it to CEO. 5. Company CEO collated all the sheets and calculated total effort spent. Each individually broke its task to smaller tasks (Mapped its input task to smaller tasks), Program Manager was required to provide effort spent, he mapped his task to smaller tasks, this is...

Apache Roller Getting Started

If you are thinking to setup a blog website then apache roller is the quickest and simplest thing to do so, below are steps for getting started, though these instructions are present in documentation provided by apache, but hopefully following steps will make it very easy for you. Here you Go !! 1. Download apache roller http://roller.apache.org/download.cgi#roller50 2. Install Tomcat http://tomcat.apache.org/download-70.cgi 3. Download mysql http://dev.mysql.com/downloads/ 4. Unzip apache roller zip file and copy roller-5.0.1-tomcat.war from \roller-weblogger-5.0.1-for-tomcat.zip\roller-weblogger-5.0.1-tomcat\webapp to tomcat webapps folder 5. Create mysql database, dont worry about schema, that will be automatically created later. mysql -u root -p password: ***** mysql> create database rollerdb; mysql> grant all on rollerdb.* to scott@'%' identified by 'tiger'; mysql> grant all on rollerdb.* to scott@localhost identified by 't...

HTML5 Cool Features

HTML5 has come up with lot of features but coolest of them are MathML and SVG support. Tried few quick examples, they make web designing more fun: If you don't see a green circle, red rectangle and a blue line then your browser does not support HTML5, visit following URL to check your browser: http://html5test.com/ Good luck for rich GUI's.

Best way to visit Statue of Liberty

Well it actually depends on how much time you have and for how long you are in New york. If you are in states for shorter time then probably you would take a ferry from battery park. Going from battery park you may have to be in long queues for tickets then ferry and same when you take the ferry back from Ellis island and statue of liberty. But if you are around new york for a longer time and you are traveling with kids then the best way is to rent a car and go to liberty state park in Jersey City. And if you are coming from Connecticut then I would suggest that you take Tappan Zee bridge and Garden state parkway. From Stamford, CT we found this route most convenient and traffic free. From the Jersey side the queues are much much shorter, no waiting. Would strongly recommend especially if you are traveling with kids. We felt so relieved when we went there last weekend with nine month old baby, it would have been so hard to stand in long queues. Also the time that you save from standing...

Watch Youtube HD on PS3

Last few weeks i spent a lot of time searching on internet to watch Youtube HD videos on PS3, there were a few solutions available, but the following worked for me and is the simplest. 1. Open browser on ps3 2. Goto Ps3Youtube.com 3. There is a search box on top, enter your keywords (you may add word HD in your search criteria) 4. From the search list click on a video and play it, thats it !! I know there are some other instructions on website in green colored text but playing the video on same site worked for me. I hope this helps, searching through internet i found lot of people feeling this pain of unable to watch youtube HD videos and low quality that is provided by Youtube XL. Good luck !

View Drools Generated Code

When we execute rules, behind the scene java code is generated which is actually getting executed, to see this java code you need to set configuration path where you want java code generated by drools to be stored. PackageBuilderConfiguration configuration = new PackageBuilderConfiguration(); configuration.setDumpDir(new File("XYZ")); final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory .newKnowledgeBuilder(configuration); Set XYZ as a directory path where you would like drools to store generated code. e.g. XYZ = "c:/drools/codegen" When you run your program the java classes generated for the .drl files are stored at the path XYZ. This generated code is really helpful to understand the behavior in lot of situations.

Listen Hindi Internet Radio Channels on PS3

PS3 is the best gadget i have ever used and its true "It only do everything". Having used it to play games, watch netflix, youtube and see my collection of pictures and listen to songs. I was searching for a way to play radio on PS3 and specifically "Hindi Internet Radio Channels" After spending couple of days, finally I have it working in few easy steps: 1. Download PS3 Media server on you laptop or PC: http://ps3mediaserver.blogspot.com/ 2. Open WEB.conf file of PS3 and add following lines: audiostream.Web,Radio=Desi Radio - www.desi-radio.com,http://76.73.90.27:80/ audiostream.Web,Radio=Desi-Radio - www.desi-radio.com,http://76.73.126.218:80/ 3. Restart PS3 Media Server 4. In your PS3, you should see PS3 Media server, open following path: Web -> Radio You should see "Desi Radio" in list. 5. Click on Desi Radio and you have live hindi songs streaming on your Ps3. I am searching more hindi internet radio channels, will update this blog when i find more...