<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3169609112456792233</id><updated>2012-02-16T07:20:41.414-08:00</updated><title type='text'>Saurabh Jain</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default?start-index=101&amp;max-results=100'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>245</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-5908585805902631713</id><published>2010-05-06T14:23:00.000-07:00</published><updated>2010-05-06T14:24:49.410-07:00</updated><title type='text'>Generating free of cost</title><content type='html'>http://www.fpdf.org/&lt;br /&gt;&lt;br /&gt;Very useful for generating fancy table using PHP and that also free of cost.. :)&lt;br /&gt;The other tool pdflib is not really good as it is costly... and some other php_pdf.dll thingy also causes issues as it is tough to find correct dll and generating dll from source requires to understand something into pecl... &lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Suarabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-5908585805902631713?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/5908585805902631713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/05/generating-free-of-cost.html#comment-form' title='35 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5908585805902631713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5908585805902631713'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/05/generating-free-of-cost.html' title='Generating free of cost'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>35</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4501379736205630438</id><published>2010-04-08T12:12:00.001-07:00</published><updated>2010-04-08T12:12:43.872-07:00</updated><title type='text'>Generating PDF files from server side PHP..</title><content type='html'>http://www.devarticles.com/c/a/PHP/Use-PHP-to-Create-Dynamic-pdf-Files/1/&lt;br /&gt;&lt;br /&gt;http://articles.sitepoint.com/article/generate-pdfs-php&lt;br /&gt;&lt;br /&gt;Working on it.. will update it later...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4501379736205630438?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4501379736205630438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/04/generating-pdf-files-from-server-side.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4501379736205630438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4501379736205630438'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/04/generating-pdf-files-from-server-side.html' title='Generating PDF files from server side PHP..'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6546499413937088030</id><published>2010-04-06T15:38:00.001-07:00</published><updated>2010-04-06T15:38:56.385-07:00</updated><title type='text'>Excellent Dojo date poicker examples</title><content type='html'>http://www.upscale.toronto.edu/test/dojo/tests/widget/test_DatePicker.html&lt;br /&gt;&lt;br /&gt;Here is date picker with localization thingy supported...&lt;br /&gt;using it now... :)&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6546499413937088030?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6546499413937088030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/04/excellent-dojo-date-poicker-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6546499413937088030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6546499413937088030'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/04/excellent-dojo-date-poicker-examples.html' title='Excellent Dojo date poicker examples'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4059665830618558802</id><published>2010-02-25T22:03:00.000-08:00</published><updated>2010-02-25T22:08:44.189-08:00</updated><title type='text'>How to put lightbox on your website</title><content type='html'>I did lightbox task using YUI once.. it took me two days to get that piece of code working... so i was bit apprehensive about light box....&lt;br /&gt;&lt;br /&gt;then today i found this "ThickBox" thing which makes light box so easy that it seemed to me that there can be nothing simpler than this...&lt;br /&gt;&lt;br /&gt;so first goes the link:&lt;br /&gt;http://jquery.com/demo/thickbox/&lt;br /&gt;&lt;br /&gt;Issues:&lt;br /&gt;1. Light box does not capture the tab button.... &lt;br /&gt;2. It works on top of jQuery... so it might break with some other javascript library.. but fortuantely in my case Dojo + {ThickBox + Jquery} model worked perfectly..&lt;br /&gt;&lt;br /&gt;I am glad it did as it reduced hour long task to seconds...&lt;br /&gt;&lt;br /&gt;A small info to add.. this link is good for color coding things..&lt;br /&gt;http://html-color-codes.info/&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4059665830618558802?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4059665830618558802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/how-to-put-lightbox-on-your-website.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4059665830618558802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4059665830618558802'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/how-to-put-lightbox-on-your-website.html' title='How to put lightbox on your website'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8192918815715453852</id><published>2010-02-25T22:00:00.000-08:00</published><updated>2010-02-25T22:03:24.977-08:00</updated><title type='text'>How to put Videos on your website</title><content type='html'>This is very simple thing to do:&lt;br /&gt;As usual, first i'll post the links which i found best and helped me in understanding the concept with ease...&lt;br /&gt;&lt;br /&gt;This one gives the code snippet for scenarios when u have a video player and corresponding files to play...&lt;br /&gt;http://www.sothinkmedia.com/guide/putvideo.htm&lt;br /&gt;&lt;br /&gt;then other wonderful link is this one...&lt;br /&gt;http://flowplayer.org/index.html&lt;br /&gt;This made things lot easy .. the readme.txt and examples in downloaded zipped reduced the whole thing to just two lines...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8192918815715453852?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8192918815715453852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/how-to-put-videos-on-your-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8192918815715453852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8192918815715453852'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/how-to-put-videos-on-your-website.html' title='How to put Videos on your website'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6817047829122963969</id><published>2010-02-25T17:57:00.000-08:00</published><updated>2010-02-25T18:01:10.705-08:00</updated><title type='text'>Dynamic table creation using Javascript</title><content type='html'>As u might know, i was struggling with Dojo Data grid and data table concepts...&lt;br /&gt;so i decided to go back to basic...&lt;br /&gt;I thought of implementing the table using normal DOM manipulation API like createElement, appendChild etc...&lt;br /&gt;&lt;br /&gt;This particular link made my task a lot easy..&lt;br /&gt;&lt;br /&gt;http://www.eggheadcafe.com/community/aspnet/3/83650/dynamic-creation--of-html.aspx&lt;br /&gt;http://www.codeproject.com/KB/HTML/html.aspx&lt;br /&gt;&lt;br /&gt;This gave me the basic code for create dynamic tables...&lt;br /&gt;there were few bugs which i fixed ...&lt;br /&gt;But it has a big drawback... I want my table to be wrapped in some kind of scrollable div so that in case i need to limit its height in future i can get it to work...&lt;br /&gt;&lt;br /&gt;Let me see how to do that next.. Till then see yup/./&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6817047829122963969?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6817047829122963969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/dynamic-table-creation-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6817047829122963969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6817047829122963969'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/dynamic-table-creation-using-javascript.html' title='Dynamic table creation using Javascript'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4394766224527972700</id><published>2010-02-24T18:41:00.000-08:00</published><updated>2010-02-24T18:49:11.718-08:00</updated><title type='text'>Dojo Data grid with JSON data</title><content type='html'>Right now i am struggling with displaying with JSON data in DOJO grid on the front end..&lt;br /&gt;Data can be either in a file... or returned as response to AJAX request.&lt;br /&gt;&lt;br /&gt;Most helpful links:&lt;br /&gt;For JSON as AJAX data.. This is more useful link than any but does not work for me...&lt;br /&gt;http://blog.sonores.de/2008/03/14/dojo-tutorial-with-a-grid-part-3-english-version/&lt;br /&gt;&lt;br /&gt;This one explains using DojoTable.. Though it is not that useful but still good to read after first one...&lt;br /&gt;http://www.sitepen.com/blog/2007/11/06/simple-dojo-grids/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Problems i am facing are weird...&lt;br /&gt;1. this.model is not defined...&lt;br /&gt;2. Nothing is getting displayed and no error as well..&lt;br /&gt;Confused what is the issue...&lt;br /&gt;3. Styling related issues...&lt;br /&gt;&lt;br /&gt;Will update you on this...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4394766224527972700?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4394766224527972700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/dojo-data-grid-with-json-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4394766224527972700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4394766224527972700'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/dojo-data-grid-with-json-data.html' title='Dojo Data grid with JSON data'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-2713414319020831457</id><published>2010-02-05T08:11:00.000-08:00</published><updated>2010-02-05T08:26:56.126-08:00</updated><title type='text'>Problem statement CSS</title><content type='html'>Hi, I have been struggling with this CSS issue for like infinite time now. Suddenly a thought came... As Swami Vivekanand has said "If you know your problem then you have solved it 90%"...&lt;br /&gt;So here is my problem statement:&lt;br /&gt;Without using table trick or absolute position and width parameter, &lt;br /&gt;How to place div element of page in parallel to each other and over top of each other?&lt;br /&gt;&lt;br /&gt;There will be one top div element where height and width can be defined but rest should be dealt in % and positioning concept.&lt;br /&gt;&lt;br /&gt;Reason for not using absolute position and tabular structure is that i am doing internationalization so string length varies from language to language. If i use table and position then things get screwed from one language to other. &lt;br /&gt;I am not sure if table less and positioning based thing will solve that problem but thats how i wish to do it.&lt;br /&gt;&lt;br /&gt;Any one who read this problem statement, please respond to my problem.&lt;br /&gt;Its like taking infinite time for me to solve this issue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the understanding of whole position and css thingy.. many links helped me a lot but one link specifically i would like to mention and that is:&lt;br /&gt;http://www.barelyfitz.com/screencast/html-training/css/positioning/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-2713414319020831457?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/2713414319020831457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/problem-statement-css.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2713414319020831457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2713414319020831457'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/02/problem-statement-css.html' title='Problem statement CSS'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7964195902807702315</id><published>2010-01-29T08:52:00.000-08:00</published><updated>2010-01-29T08:55:43.916-08:00</updated><title type='text'>Database handle in PHP-mysql</title><content type='html'>This is the two line code i use to connect to database through PHP: &lt;br /&gt;&lt;br /&gt;$dbhandle = mysql_connect("$host", "$username", "$password")or die("cannot connect");&lt;br /&gt;mysql_select_db("$db_name")or die("cannot select DB");&lt;br /&gt;&lt;br /&gt;The great thing about this code is that once dbhandle is created then any call to mysql_connect will reuse the old dbhandle. This is very nice abstraction provided by PHP-mysql connector. I dont know if this is same with other connection object or not...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7964195902807702315?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7964195902807702315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/01/database-handle-in-php-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7964195902807702315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7964195902807702315'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/01/database-handle-in-php-mysql.html' title='Database handle in PHP-mysql'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8701302167290693217</id><published>2010-01-28T14:02:00.001-08:00</published><updated>2010-01-28T14:03:08.518-08:00</updated><title type='text'>A brief on web related technology</title><content type='html'>http://sharat.wordpress.com/&lt;br /&gt;This page explains some of the web concept in brief ...&lt;br /&gt;Some of them are useful...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8701302167290693217?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8701302167290693217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/01/brief-on-web-related-technology.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8701302167290693217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8701302167290693217'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/01/brief-on-web-related-technology.html' title='A brief on web related technology'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4473802781855624279</id><published>2010-01-28T08:07:00.000-08:00</published><updated>2010-01-28T08:18:32.881-08:00</updated><title type='text'>After a month</title><content type='html'>Sorry i was on vacation lately so had nothing much to post...&lt;br /&gt;&lt;br /&gt;Recently i was working on database part of my project...&lt;br /&gt;I had a doubt about auto-increment primary keys that what happen if some fields are deleted in future {which will happen in 99.99% of scenarios } then primary key does not remain sequential and those gaps will never be filled and eventually when project scale heavily then auto-increment field will reach its maximum and project will crash...&lt;br /&gt;&lt;br /&gt;I discussed it with friend and in his opinion, auto-increment field is automatically taken care by the database so nothing to worry,... Moreover one should keep in practice to not write program to access primary key sequentially. &lt;br /&gt;&lt;br /&gt;He also mentioned that i could use LDAPs for authentication of my system...&lt;br /&gt;Will write rest later...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4473802781855624279?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4473802781855624279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2010/01/after-month.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4473802781855624279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4473802781855624279'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2010/01/after-month.html' title='After a month'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6791303514579026409</id><published>2009-12-27T10:59:00.001-08:00</published><updated>2009-12-27T11:12:47.207-08:00</updated><title type='text'>DOJO Charting and php mysql connection thingy</title><content type='html'>yesterday i was trying to get my ajax-php-mysql code working..&lt;br /&gt;Following are the problems that i faced...&lt;br /&gt;1. I wanted to avoid call to mysql_connect method multiple times because in my perception, this would lead to multiple handles to database and hence wastage of resource and time... I was trying to save the handle of database in $_session variable but it was fruitless because i was getting server side error that database not connected ... then i checked documentation of mysql_connect and it says that if same arguments are passed then no new connection handle is created.... This can be great abstraction as PHP does the job for you.. but some inflexibility as well that it does not allowing me to have multiple connection to back end.... but i guess my knowledge is incomplete so will update this space regarding flexibility issue...&lt;br /&gt;&lt;br /&gt;2. JSON object parsing...&lt;br /&gt;we can use many inbuilt functions... My understanding of this is still vague... I was sending text/plain data from server and calling JSON.parse($data) thingy to convert it to JSON object but in some cases i saw that data was received in JSON format.. means it was converted into JSON on server side itself...&lt;br /&gt;basically read the data from server and store it in {"" : [{"":"","":""},{"":"","":""}] } form....&lt;br /&gt;&lt;br /&gt;3. Third problem was related to DOJo charts...&lt;br /&gt;there is no way in dojo charts to create custom labels.. which is bad... because my RA guys would be mad about it...&lt;br /&gt;&lt;br /&gt;4. Ajax.. PHP... MYSQL.. JSON...AJAX handling... this is the sequence of getting  this done... &lt;br /&gt;&lt;br /&gt;For dojo charting quickcet source is ...&lt;br /&gt;http://www.sitepen.com/blog/2008/06/16/a-beginners-guide-to-dojo-charting-part-2-of-2/&lt;br /&gt;first and second blog here... best&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6791303514579026409?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6791303514579026409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/dojo-charting-and-php-mysql-connection.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6791303514579026409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6791303514579026409'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/dojo-charting-and-php-mysql-connection.html' title='DOJO Charting and php mysql connection thingy'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3616135016434925515</id><published>2009-12-12T16:14:00.000-08:00</published><updated>2009-12-12T16:15:14.482-08:00</updated><title type='text'>C pointers notes</title><content type='html'>http://www.ibiblio.org/pub/languages/fortran/append-c.html&lt;br /&gt;&lt;br /&gt;This is also good... read it whenever u are confused&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3616135016434925515?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3616135016434925515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/c-pointers-notes.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3616135016434925515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3616135016434925515'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/c-pointers-notes.html' title='C pointers notes'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-442183721243887712</id><published>2009-12-10T23:48:00.000-08:00</published><updated>2009-12-10T23:49:09.646-08:00</updated><title type='text'>Post about unix file system working</title><content type='html'>http://people.csail.mit.edu/rinard/osnotes/h13.html&lt;br /&gt;&lt;br /&gt;Read this some time in detail...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-442183721243887712?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/442183721243887712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/post-about-unix-file-system-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/442183721243887712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/442183721243887712'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/post-about-unix-file-system-working.html' title='Post about unix file system working'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8987518260667443164</id><published>2009-12-07T16:29:00.000-08:00</published><updated>2009-12-07T16:48:27.002-08:00</updated><title type='text'>i18n support for images and variable size text</title><content type='html'>http://www.alistapart.com/articles/slidingdoors/&lt;br /&gt;&lt;br /&gt;I am struggling with i18n support thingy... so here it goes....&lt;br /&gt;&lt;br /&gt;This page explains different ways of sending data between forms or pages... &lt;br /&gt;1. URL&lt;br /&gt;2. Form submit&lt;br /&gt;3. Cookie transfer&lt;br /&gt;http://www.plus2net.com/php_tutorial/variables2.php&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8987518260667443164?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8987518260667443164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/i18n-support-for-images-and-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8987518260667443164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8987518260667443164'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/i18n-support-for-images-and-variable.html' title='i18n support for images and variable size text'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3129003769631191942</id><published>2009-12-06T13:45:00.000-08:00</published><updated>2009-12-06T13:53:08.988-08:00</updated><title type='text'>transfering data from host to guest machine on virtual box</title><content type='html'>I am stuck with this problem. I have Windows7 as host and Ubuntu as guest operating system. My wireless does not work on virtual box, neither the USB is detected. I tried to use the shared folder approach but that also throws error so i am basically handicapped due to this problem.&lt;br /&gt;I tried to follows instruction given on this site but encountered error that "nautilus can not handle this kind of location". Totally stuck with no clue what to do...&lt;br /&gt;Will  update on how to fix this issue....&lt;br /&gt;&lt;br /&gt;http://www.mydigitallife.info/2009/07/29/workaround-to-access-shared-folders-on-sun-xvm-virtualbox-from-windows-7-guest/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3129003769631191942?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3129003769631191942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/transfering-data-from-host-to-guest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3129003769631191942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3129003769631191942'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/transfering-data-from-host-to-guest.html' title='transfering data from host to guest machine on virtual box'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1466068794550700626</id><published>2009-12-04T21:06:00.000-08:00</published><updated>2009-12-04T21:15:40.362-08:00</updated><title type='text'>Comparison of RIP vs OSPF</title><content type='html'>I thought of reading the in depth comparison of RIP and OSPF protocol.&lt;br /&gt;RIP : Count to infinity problem, slow convergence, O(M*N) complexity where M is edges and N is number of nodes&lt;br /&gt;To solve count to infinity approaches are hold down, split horizon but still there are other issues like no sub net masking support. All nodes in the network should use the same sub net mask, some frame related issues... Network size should be small .. Hope count is just 15 ... moreover packets between neighbors are exchanged every 30 seconds... &lt;br /&gt;&lt;br /&gt;OSPF: Intelligent routing with improved alternative to RIP. Link state, Main problem is flooding in the network for sending updates but by using proper sub net masking support and carefully fine tuning the parameter, this can be bettered.&lt;br /&gt;&lt;br /&gt;Full comparison is present on this site so please look here....&lt;br /&gt;http://www.networkcomputing.com/unixworld/feature/002.html?cid=ref-true&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1466068794550700626?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1466068794550700626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/comparison-of-rip-vs-ospf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1466068794550700626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1466068794550700626'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/12/comparison-of-rip-vs-ospf.html' title='Comparison of RIP vs OSPF'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1880441061918731790</id><published>2009-11-30T14:55:00.000-08:00</published><updated>2009-11-30T14:59:25.414-08:00</updated><title type='text'>Few things in Dojo</title><content type='html'>I learned few things in DOJO:&lt;br /&gt;1. Dojo.addonload(funcname)&lt;br /&gt;   this is similar to window.onload thingy... if we are using addonload thing then we should not use window.onload&lt;br /&gt;&lt;br /&gt;2. dojo.query() I am yet to understand the basic flexibility that this provide...&lt;br /&gt;   However, it seemed useful while accessing dom element and defining events on them..&lt;br /&gt;   something like dojo.query("#idname").connect("onclick", function(){ });&lt;br /&gt;&lt;br /&gt;3. Dojo.require is used to load the libraries &lt;br /&gt;&lt;br /&gt;4. dojo.byId is similar to document.getHtmlById() or may be similar to document.getNodebyId() of javascript or DHTML&lt;br /&gt;&lt;br /&gt;5. Dojo.connet is used for  binding event with libraries...&lt;br /&gt;&lt;br /&gt;Here is found a really well documented tutorial. I like well documented tutorial because they give a good head start...&lt;br /&gt;&lt;br /&gt;http://www.dynamicajax.com/fr/AJAX_Chat_Usability_Additions-271_290_291_297.html&lt;br /&gt;Chatting application in ajax... I should try this some time...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1880441061918731790?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1880441061918731790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/few-things-in-dojo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1880441061918731790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1880441061918731790'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/few-things-in-dojo.html' title='Few things in Dojo'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6204340019877827514</id><published>2009-11-28T14:16:00.000-08:00</published><updated>2009-11-28T14:40:07.172-08:00</updated><title type='text'>Css Style and my lessons</title><content type='html'>I was playing around with layout, divs and css style properties.&lt;br /&gt;Now it's always difficult to summarize all the experience but i'll try my best&lt;br /&gt;This is what i learned... &lt;br /&gt;1. Css wrapper div should be used to center the whole web site.&lt;br /&gt;  Now we should specify some width units and we browser size reduce beyond that  value , then horizontal scroll bar will appear.&lt;br /&gt;  Also margin for this wrapper should be set to auto so that it'll be centered...&lt;br /&gt;  This code piece is used to center the website....&lt;br /&gt;&lt;br /&gt;html,body {&lt;br /&gt;height:100%;&lt;br /&gt;margin:0;&lt;br /&gt;padding:0;&lt;br /&gt;text-align: center; &lt;br /&gt;background-color: #999999;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#CenterLayout { &lt;br /&gt;width: 1000px; /* set to desired width in px or percent */&lt;br /&gt;height: 100%; /* This made me go nuts because i did not specify this height , Absolute value required here if vertical scrollbar is required below certain value*/&lt;br /&gt;text-align: left; /* optionally you could use "justified" */&lt;br /&gt;border: 0px; /* Changing this value will add lines around the centered area */&lt;br /&gt;padding: 0;  &lt;br /&gt;margin: 0 auto; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;2. Margin auto sets are outer padding values... In case of auto, it tries to place div at equal distance from left and right side div...&lt;br /&gt;&lt;br /&gt;3. Float: left to make things left justified... i know this is not perfect... but i'll updated it as i learn more...&lt;br /&gt;&lt;br /&gt;4. To put an image in the div and over lap text on it... i wrote this style &lt;br /&gt;&lt;br /&gt;#CenterLayout  #TitleSection {&lt;br /&gt;position: relative;&lt;br /&gt;top:0%;&lt;br /&gt;left:30px;&lt;br /&gt;width:50%;&lt;br /&gt;height:25%;&lt;br /&gt;// border:5px double #999;&lt;br /&gt;margin:0 auto;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#CenterLayout  #TitleSection #Title-background {&lt;br /&gt;width:100%;&lt;br /&gt;height:100%;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;#CenterLayout #TitleSection #TitleContent{&lt;br /&gt;position: absolute;  &lt;br /&gt;//margin: 15px 15px 15px 15px;  /* No Idea about significance of this */&lt;br /&gt;// border:3px double #777;&lt;br /&gt;padding-bottom: 5px; &lt;br /&gt;bottom: 0px; &lt;br /&gt;left: 0.5em;  &lt;br /&gt;width: 90%; &lt;br /&gt;height: 50%;&lt;br /&gt;font-weight: bold; &lt;br /&gt;color: #777; &lt;br /&gt;//font-size: X-large; &lt;br /&gt;font-size: 150%;&lt;br /&gt;overflow: hidden;&lt;br /&gt;text-align: center;&lt;br /&gt;letter-spacing: 8px;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Now important point here is positioning attribute.&lt;br /&gt;Position: absolute, place the div at absolute position relative to parent container.. so for this, we need to make sure parent container's width and height property. Also when we specify, absolute position then top, right, left, bottom... some of these properties should be specified properly.&lt;br /&gt;&lt;br /&gt;If position is relative then top and left values are relative to self absolute position.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;One very important thing to learn about vertical image resizing is:&lt;br /&gt;1. in case of horizontal, screen appear in center and margins are left on both side, this looks ok because things are symmetric and space is filled. Note: here we set height as 100%&lt;br /&gt;&lt;br /&gt;2. Now if we re-size the browser vertically then things can go messy, for example: text overflow can occur. To avoid this, we should specify the height dimension also to some value..  &lt;br /&gt;suppose u have an image and u position some text on top of it...&lt;br /&gt;by horizontal width property of parent div, scroll-bar will appear and things will not go wrong.&lt;br /&gt;This boils down to two things:&lt;br /&gt;1. If we specify height dimension to some value then on very large browser window, we might see some blank space below the website ...&lt;br /&gt;2. If we do not specify height dimension to 100% value, we need to find some way so that when image is resized while browser resizing then font that is overlapped on the image should also be resized...&lt;br /&gt;&lt;br /&gt;Will write later...&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6204340019877827514?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6204340019877827514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/css-style-and-my-lessons.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6204340019877827514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6204340019877827514'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/css-style-and-my-lessons.html' title='Css Style and my lessons'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4119388804263140071</id><published>2009-11-28T02:00:00.001-08:00</published><updated>2009-11-28T02:01:45.487-08:00</updated><title type='text'>Css layout and positioning</title><content type='html'>I was again struggling with the css layout of my project page...&lt;br /&gt;Finally by hook and crook , i got something running and this link helped me a lot in the process...&lt;br /&gt;&lt;br /&gt;http://www.barelyfitz.com/screencast/html-training/css/positioning/&lt;br /&gt;&lt;br /&gt;CSS styling thingy, importance of fixed, relative and absolute positioning..&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4119388804263140071?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4119388804263140071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/css-layout-and-positioning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4119388804263140071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4119388804263140071'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/css-layout-and-positioning.html' title='Css layout and positioning'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7264662688263058468</id><published>2009-11-27T12:54:00.000-08:00</published><updated>2009-11-27T12:57:55.213-08:00</updated><title type='text'>Internationalization and charting</title><content type='html'>I was searching for some java script toolkit which support Internationalization as well as charting support. I searched on internet and found this page...&lt;br /&gt;&lt;br /&gt;http://kauriproject.org/wiki/g1/g4/g2/69-kauri.html&lt;br /&gt;This page gives a brief overview of major JavaScript tool-kits in the market. &lt;br /&gt;It covered negatives well but it did not distinguish deeper into their positives.&lt;br /&gt;&lt;br /&gt;Finally i decided to go for DOJO toolkit as it is the one which charts as well as i18n support.&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7264662688263058468?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7264662688263058468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/internationalization-and-charting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7264662688263058468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7264662688263058468'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/internationalization-and-charting.html' title='Internationalization and charting'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-2586885928376633508</id><published>2009-11-26T10:36:00.000-08:00</published><updated>2009-11-26T10:37:13.099-08:00</updated><title type='text'>Java, C++, C and web programming</title><content type='html'>Nowdays i am coding in so many things that i just mix up things badly.&lt;br /&gt;to overcome this situation, i should take test from time to time..&lt;br /&gt;so here i go for Java:&lt;br /&gt;&lt;br /&gt;http://cyber.gwc.cccd.edu/faculty/hcohen/Java5Ch11MCAnswers.txt&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-2586885928376633508?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/2586885928376633508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/java-c-c-and-web-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2586885928376633508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2586885928376633508'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/java-c-c-and-web-programming.html' title='Java, C++, C and web programming'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6271749171843838054</id><published>2009-11-26T09:24:00.000-08:00</published><updated>2009-11-26T09:26:12.211-08:00</updated><title type='text'>Common mistake while allocating pointers and good programming practice</title><content type='html'>http://www.eskimo.com/~scs/cclass/int/sx7.html&lt;br /&gt;&lt;br /&gt;Malloc may fail so it is always good to check the return value of malloc and then proceed..&lt;br /&gt;One can also write a wrapper function to malloc which return space allocated to void pointer. We just need to type case this to desired data type..&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6271749171843838054?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6271749171843838054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/common-mistake-while-allocating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6271749171843838054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6271749171843838054'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/common-mistake-while-allocating.html' title='Common mistake while allocating pointers and good programming practice'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3774842504083000891</id><published>2009-11-25T22:00:00.001-08:00</published><updated>2009-11-25T22:09:07.480-08:00</updated><title type='text'>stack vs heap allocation</title><content type='html'>A very frequent and obvious question to mind...&lt;br /&gt;what are different segments and from where storage is taken to assign space to variables...&lt;br /&gt;&lt;br /&gt;Code segment --- compiled code, static link files etc..&lt;br /&gt;Data segment -- stack and heap&lt;br /&gt;   stack --&gt; function calls and variables with in function... main is also a function&lt;br /&gt;   heap --&gt; static and global variables&lt;br /&gt;&lt;br /&gt;Now big question is: &lt;br /&gt;How does memory leak happens... &lt;br /&gt;  Suppose i define some variables in a function, &lt;br /&gt;  variables allocated memory in stack,&lt;br /&gt;  and when function call returns then all that memory is de-allocated.. &lt;br /&gt;  By de-allocation means top pointer of stack returns to point to callee function.&lt;br /&gt;&lt;br /&gt;Now if i do not free that variable space and set the content of memory location to null then that might be disaster because it'll result into memory leak but i dont understand why did memory leak happens... Which variable is holding that memory.. Where the pointer variable allocated memory from&lt;br /&gt;&lt;br /&gt;Will freshen up my concept and then updated this stuff...&lt;br /&gt;till then u read this...&lt;br /&gt;http://ee.hawaii.edu/~tep/EE160/Book/chap14/subsection2.1.1.8.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3774842504083000891?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3774842504083000891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/stack-vs-heap-allocation.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3774842504083000891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3774842504083000891'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/stack-vs-heap-allocation.html' title='stack vs heap allocation'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4493272160413865120</id><published>2009-11-25T06:40:00.001-08:00</published><updated>2009-11-25T06:41:40.849-08:00</updated><title type='text'>Recently added features in java</title><content type='html'>These are some recently added feature in java's new version&lt;br /&gt;&lt;br /&gt;Strings in switch is the interesting one....&lt;br /&gt;http://code.joejag.com/2009/new-language-features-in-java-7/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4493272160413865120?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4493272160413865120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/recently-added-features-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4493272160413865120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4493272160413865120'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/recently-added-features-in-java.html' title='Recently added features in java'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6182804091698707291</id><published>2009-11-24T15:30:00.000-08:00</published><updated>2009-11-25T09:18:08.439-08:00</updated><title type='text'>css sytle, three column layout and float property</title><content type='html'>http://webdesign.about.com/od/csstutorials/ss/css_layout_sbs_9.htm&lt;br /&gt;&lt;br /&gt;This link is really useful in understanding three column layout but bad thing is that it hard code the div size instead of using %..&lt;br /&gt;&lt;br /&gt;Some good tips for newbies...&lt;br /&gt;http://webdesign.about.com/od/layout/a/aa062104.htm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fixed vs liquid layouts..&lt;br /&gt;http://webdesign.about.com/od/layout/i/aa060506_2.htm&lt;br /&gt;&lt;br /&gt;Excellent tutorial on centering a web page layout...&lt;br /&gt;http://blogs.techrepublic.com.com/howdoi/?p=186&lt;br /&gt;http://www.wikihow.com/Center-Web-Page-Content-Using-CSS&lt;br /&gt;&lt;br /&gt;One doubt still remains and that is how to get away with fixed width parameter and use percentage in whole of the page...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6182804091698707291?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6182804091698707291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/css-sytle-three-column-layout-and-float.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6182804091698707291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6182804091698707291'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/css-sytle-three-column-layout-and-float.html' title='css sytle, three column layout and float property'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6551687093080224798</id><published>2009-11-22T20:19:00.001-08:00</published><updated>2009-11-22T20:24:35.672-08:00</updated><title type='text'>Globbing a directory in perl</title><content type='html'>To glob a directory is very simple in Perl.&lt;br /&gt;We just have to use these three lines of code...&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl -w&lt;br /&gt;&lt;br /&gt;@files = &lt;FILEPATH&gt;&lt;br /&gt;# FILEPATH can be like *&lt;br /&gt;# for all html files it can be /var/doc/*.html&lt;br /&gt;&lt;br /&gt;foreach $filename (@files){&lt;br /&gt; open FILE, "&lt;$filename" or die $!;&lt;br /&gt; # do my 50 things&lt;br /&gt; close FILE &lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6551687093080224798?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6551687093080224798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/globbing-directory-in-perl.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6551687093080224798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6551687093080224798'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/globbing-directory-in-perl.html' title='Globbing a directory in perl'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3624779633864958852</id><published>2009-11-18T08:08:00.000-08:00</published><updated>2009-11-18T08:12:59.665-08:00</updated><title type='text'>Bug algorithm on robot... Difficulties on running on actual robot..</title><content type='html'>It was way more difficult and frustrating then we (Me and Konrad) initially thought. &lt;br /&gt;The major problems and issues that we faced are summarized below:&lt;br /&gt;&lt;br /&gt;1. Specifying laser driver in .cfg file &lt;br /&gt;&lt;br /&gt;2. Timeout problem .. Laser takes time in starting&lt;br /&gt;    red and green light issue&lt;br /&gt;&lt;br /&gt;3. Serial port issues...&lt;br /&gt;    Identifying which port on serial device.. laser is sending the output&lt;br /&gt;&lt;br /&gt;4. Inserting the USB in correct side.. because one USB port is for serial tty/USB0 - tty/USB3 and other is for 4 to 7&lt;br /&gt;&lt;br /&gt;5. Robot battery low so some time output is not returned well.. Make sure above 10V&lt;br /&gt;&lt;br /&gt;6. Software related measurement issues:&lt;br /&gt;  a. Rotating more than desired angle&lt;br /&gt;     so for this we had to decrease the turnrate as it was reaching near to desired rotation value... also after it stops rotating we were checking if we need to rotate in opposite direction to get exact rotation...&lt;br /&gt;&lt;br /&gt;  b. Laser not returning data and some time data is not that accurate...&lt;br /&gt;&lt;br /&gt;  c. On stage things are simple but pioneer was behaving in lot more erratic way due to extra rotation and movement related problem... we had an accuracy of 66% in our case. when robot follows the wall accurately.&lt;br /&gt;&lt;br /&gt;   d. Path on stage was way different from actual pioneer because actual pioneer had lot of extra rotation and extra steps kind of problem... on stage it was more smooth path than on actual pioneer... We calibrated lot of variables in movement related to exact positioning and used those error correction parameters in the code... &lt;br /&gt;&lt;br /&gt;so for example... while checking slope or distance from a point... we had to use some error value and anything lying between expected output - error value was taken as right value or condition fulfillment  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After all this.. our robot does not work correctly in all the scenarios but it executes the wall following well in most of the cases...&lt;br /&gt;&lt;br /&gt;Problem was also that there was never enough space to carry out this experiment. even if we take obstacle or wall detection distance to 1.0 meter then robot starting sensing other things because in the path their was alwyas things falling within that space...&lt;br /&gt;&lt;br /&gt;If we give less than that then robot some time gets too close to the wall and while rotating and moving further,  it collides with the wall.. &lt;br /&gt; &lt;br /&gt;Will post more difficulties later...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3624779633864958852?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3624779633864958852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/bug-algorithm-on-robot-difficulties-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3624779633864958852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3624779633864958852'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/bug-algorithm-on-robot-difficulties-on.html' title='Bug algorithm on robot... Difficulties on running on actual robot..'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6966191088765736664</id><published>2009-11-17T15:40:00.000-08:00</published><updated>2009-11-17T15:41:24.046-08:00</updated><title type='text'>Embedding anything into the web site</title><content type='html'>This seems to be really nice page...&lt;br /&gt;Informative too... read in detail some time...&lt;br /&gt;&lt;br /&gt;http://www.labnol.org/internet/how-to-embed-in-html-webpages/6365/&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6966191088765736664?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6966191088765736664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/embedding-anything-into-web-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6966191088765736664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6966191088765736664'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/embedding-anything-into-web-site.html' title='Embedding anything into the web site'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7322204600730289812</id><published>2009-11-17T15:17:00.000-08:00</published><updated>2009-11-17T15:22:08.909-08:00</updated><title type='text'>PHP  based login form code and style sheet issues</title><content type='html'>1. I was trying to setup login mechanism in my PHP based mechanism.&lt;br /&gt;for this, i thought of using direct code from internet.&lt;br /&gt;i found this code snippet to be really straightforward. &lt;br /&gt;&lt;br /&gt;http://www.phpeasystep.com/phptu/6.html&lt;br /&gt;&lt;br /&gt;2. This took my lot of time. I wanted to stretch my image in such a way that it fits to the window and on resizing, it should not create any issues.&lt;br /&gt;&lt;br /&gt;Idea was to create two div and use image tag in one of the div. set the z-index to -1&lt;br /&gt;Do the regular stuff in other div and set z-index as +1. there are few other things like padding and position that we need to take care so for that i copied the code from this site....&lt;br /&gt;http://www.quackit.com/html/codes/html_stretch_background_image.cfm&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7322204600730289812?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7322204600730289812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/php-based-login-form-code-and-style.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7322204600730289812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7322204600730289812'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/php-based-login-form-code-and-style.html' title='PHP  based login form code and style sheet issues'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8985317794878785864</id><published>2009-11-16T09:37:00.000-08:00</published><updated>2009-11-16T09:40:31.031-08:00</updated><title type='text'>php select problem...</title><content type='html'>First thing...&lt;br /&gt;if sql code is not working then wants to see the output then first go to php directory and from command line say some thing like this:&lt;br /&gt;&lt;br /&gt;php.exe &lt;php file name&gt;&lt;br /&gt;&lt;br /&gt;this will through the error and u can fix it accordingly...&lt;br /&gt;if we call from browser then there is no way to find the error message..&lt;br /&gt;&lt;br /&gt;second is:&lt;br /&gt;Use "" quotes while forming html string and '' while forming sql string. &lt;br /&gt;i am not sure if this is the rule that should be followed to fix my problem but this is the way it works...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8985317794878785864?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8985317794878785864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/php-select-problem.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8985317794878785864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8985317794878785864'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/php-select-problem.html' title='php select problem...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-5901581575443020936</id><published>2009-11-16T07:24:00.000-08:00</published><updated>2009-11-16T07:29:34.690-08:00</updated><title type='text'>WAMP setup</title><content type='html'>For a while i was struggling with wamp setup.&lt;br /&gt;The problem was that PHP-mysql connection was not working properly.&lt;br /&gt;&lt;br /&gt;I followed instruction on this page to set things up for me.&lt;br /&gt;http://www.devarticles.com/c/a/Apache/Installing-PHP-under-Windows/5/&lt;br /&gt;http://httpd.apache.org/docs/1.3/windows.html#down&lt;br /&gt;http://forums.mysql.com/read.php?52,69846,69846#msg-69846&lt;br /&gt;&lt;br /&gt;The problem was that i had not un-commented php-mysql connection lines in the php.ini file located in apache2.2 folder in program files..&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-5901581575443020936?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/5901581575443020936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/wamp-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5901581575443020936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5901581575443020936'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/wamp-setup.html' title='WAMP setup'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7030356803734299648</id><published>2009-11-15T14:46:00.000-08:00</published><updated>2009-11-15T14:56:18.402-08:00</updated><title type='text'>CEGUI skinning</title><content type='html'>I had this problem of not able to align text properly on top of button in vanilla skin of cegui. I decided to switch to taharezlook as it provides more options for windowing as well as text alignment property.&lt;br /&gt;&lt;br /&gt;This was seriously tricky. I was in no mood to read that tutorial so just jumped into data files to see what can be done.&lt;br /&gt;CEGUI follows a layering based approach for any widget. &lt;br /&gt;General CEGUI widget looknfeel looks likes this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;widgetname... few tags&gt;&lt;br /&gt;&lt;propertydefinition... few properties... each on separate line&gt;&lt;br /&gt;&lt;imagerysection name =" blah blah" &gt; &lt;br /&gt;&lt;/imagerysection&gt;&lt;br /&gt;&lt;imagerysection name =" blah blah" &gt; &lt;br /&gt;&lt;/imagerysection&gt;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;StateImagery name="Normal" controlProperties....&gt;&lt;br /&gt;&lt;layer&gt;&lt;br /&gt;&lt;section&gt; use the properties value &lt;/section&gt;&lt;br /&gt;&lt;/layer&gt;&lt;br /&gt;.&lt;br /&gt;more layers&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;/stateimagery&gt;&lt;br /&gt;&lt;/widgetlook&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;CEGUI also provides controlProperties which helps in hiding some of imagery section and make other accessible...&lt;br /&gt;&lt;br /&gt;By this way, i separated the logic of default image and custom image of button in taharez look and without using imagebutton thingy, i achieved "text on top of image acting as a button" functionality.&lt;br /&gt;&lt;br /&gt;Now i am starting with WAMP model.. my first major foray in PHP.. till now i used to work on j2ee....&lt;br /&gt;--Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7030356803734299648?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7030356803734299648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/cegui-skinning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7030356803734299648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7030356803734299648'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/cegui-skinning.html' title='CEGUI skinning'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7638229377249624049</id><published>2009-11-11T09:18:00.000-08:00</published><updated>2009-11-11T09:20:04.349-08:00</updated><title type='text'>Internal working of a router</title><content type='html'>This page explains the internal working of a router...&lt;br /&gt;I remember reading once but was not able to find the page... so here it is..&lt;br /&gt;http://www.erg.abdn.ac.uk/users/gorry/eg3567/inet-pages/router-opn.html&lt;br /&gt;&lt;br /&gt;Thoroughly explains the internals...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7638229377249624049?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7638229377249624049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/internal-working-of-router.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7638229377249624049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7638229377249624049'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/internal-working-of-router.html' title='Internal working of a router'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1967899761942827692</id><published>2009-11-08T15:39:00.001-08:00</published><updated>2009-11-08T15:39:56.827-08:00</updated><title type='text'>Interfaces vs abstarct classes</title><content type='html'>This page gives a very nice and detailed discussion on interfaces and abstract classes...&lt;br /&gt;&lt;br /&gt;http://mindprod.com/jgloss/interfacevsabstract.html&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1967899761942827692?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1967899761942827692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/interfaces-vs-abstarct-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1967899761942827692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1967899761942827692'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/interfaces-vs-abstarct-classes.html' title='Interfaces vs abstarct classes'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6279011036333416866</id><published>2009-11-06T22:53:00.000-08:00</published><updated>2009-11-06T22:57:23.119-08:00</updated><title type='text'>Color recognition using openCV</title><content type='html'>Nowdays, i am working on sonar sensors and color detection problem using openCV...&lt;br /&gt;For sonar sensors...&lt;br /&gt;-&gt; In built support for pioneer robots..&lt;br /&gt;-&gt; Problem at corners&lt;br /&gt;-&gt; Range generally 15-20 m &lt;br /&gt;-&gt; Use sound waves&lt;br /&gt;&lt;br /&gt;For OpenCV based image capturing and recognition ...&lt;br /&gt;I am still wondering on how to proceed on this... My sub task is to mount camera on robot, take pictures of object, trigger the color detection code and take appropriate action.&lt;br /&gt;&lt;br /&gt;Will post more on this as i learn more details...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6279011036333416866?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6279011036333416866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/color-recognition-using-opencv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6279011036333416866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6279011036333416866'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/11/color-recognition-using-opencv.html' title='Color recognition using openCV'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1029950138081070948</id><published>2009-10-30T16:59:00.000-07:00</published><updated>2009-10-30T17:48:31.736-07:00</updated><title type='text'>cegui ogre and theora plugin work</title><content type='html'>For past few days, i was struggling with cegui theora and ogre plugin work. Today i got it working with help from Vamsi...&lt;br /&gt;&lt;br /&gt;This documentation is for windows operating system. I specifically tried on window XP but i am not sure if this work on other versions or not. However if we have operating system compatible libraries for each required component of setup then we can hope that it'll work.&lt;br /&gt;&lt;br /&gt;First we should get OGRE installed on the machine. Set the (OGRE_HOME) variable. &lt;br /&gt;Get the CEGUI setup working on machine. So make sure that CEGUI and OGRE based dll and lib files are present on the system. If possible, try one CEGUI-OGRE based hello world kind of program.... This is an appropriate application to start and test OGRE and CEGUI... &lt;br /&gt;&lt;br /&gt;http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_7&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once we have CEGUI and OGRE working then open &lt;a href="http://www.ogre3d.org/wiki/index.php/TheoraVideoPlugin_Compiling"&gt;this page&lt;/a&gt; and try to compile the theora-videoplugin...&lt;br /&gt;&lt;br /&gt;The bad part about this video plug-in is that there is very less to no documentation available on internet...  &lt;br /&gt;&lt;br /&gt;For compiling.. Following points need to be kept in mind...&lt;br /&gt;1. Create a folder TheoraPluginThingy&lt;br /&gt;2. cd into the folder&lt;br /&gt;&lt;br /&gt;[...All steps in this "TheoraPluginThingy" directory...]&lt;br /&gt;1. Get libogg &lt;br /&gt;2. Get libtheora&lt;br /&gt;3. Get libvorbis&lt;br /&gt;4. Get ptypes&lt;br /&gt;5. Install tortoiseSVN [if you don't have] and get the Theora-Videoplugin code &lt;br /&gt;&lt;br /&gt;Start with libogg...&lt;br /&gt;Search for dynamic solution file and compile it... &lt;br /&gt;Check for the size of .dll created in output directory... This directory is set in properties... so check there...&lt;br /&gt;&lt;br /&gt;Now cd to libvorbis directory &lt;br /&gt;Search for dynamic solution file and compile it...&lt;br /&gt;There is a readme file so dont forget to read that..&lt;br /&gt;Also you may need to correctly specify the version of "libogg" that you use in file "libogg.vsprops".&lt;br /&gt;&lt;br /&gt;Now one problem here is with file vorbis.def...&lt;br /&gt;In this file you may need to modify one line...&lt;br /&gt;_analysis_always_output  One may need to put a semicolon before this line...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now cd to libtheora directory&lt;br /&gt;Search for dynamic solution file and compile it...&lt;br /&gt;Don't forget to read the readme file and set the versions of both libogg and libvorbis in the corresponding .vsprops files...&lt;br /&gt;&lt;br /&gt;Also one file lib/theora.def might be missing so get it from this location http://svn.xiph.org/trunk/theora/lib/theora.def &lt;br /&gt;&lt;br /&gt;Now enter the ptypes folder and create a static multi-threaded library...&lt;br /&gt;for this.. there are multiple solution files so pick ptypes_lib and compile and build it... Check for generated static lib in output folder...&lt;br /&gt;&lt;br /&gt;In project settings.. make sure that in configuration properties... it is set to static lib&lt;br /&gt;and C++/code generation is set to "multithreaded dll"&lt;br /&gt;&lt;br /&gt;Now follow the instruction on the "theoraplugin" compilation web page and copy all the includes, dll and lib files to appropriate locations...&lt;br /&gt;also copy ogremain.lib and ceguibase.lib files to appropriate folder in TheoraVideoPLugin folders lib directory...&lt;br /&gt;&lt;br /&gt;Now change the project setting and include the Ogre_home/include location as well...&lt;br /&gt;Mine looks like this... for all for solution files ....&lt;br /&gt;..\..\TheoraVideoPlugin\include;..\include;"$(OGRE_HOME)\include";"$(OGRE_HOME)\samples\include"&lt;br /&gt;&lt;br /&gt;Now theoraplugin dll will be ready after compiling....&lt;br /&gt;&lt;br /&gt;Now to run the demos in demos/player folder...&lt;br /&gt;Check the properties... &lt;br /&gt;Change the resources.cfg file.... put it at appropriate location..&lt;br /&gt;points to media folder at appropriate place...&lt;br /&gt;Change the plugins.cfg file and get TheoraVideoPlugin and other dlls like libogg, libhteora and libvorbis..&lt;br /&gt;Run the application... Debug a little and read the log files generated ...&lt;br /&gt;&lt;br /&gt;Hopefully this will make your things work....&lt;br /&gt;&lt;br /&gt;Will refine this draft later... SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1029950138081070948?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1029950138081070948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/cegui-ogre-and-theora-plugin-work.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1029950138081070948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1029950138081070948'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/cegui-ogre-and-theora-plugin-work.html' title='cegui ogre and theora plugin work'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-5097731153684271862</id><published>2009-10-28T16:19:00.000-07:00</published><updated>2009-10-28T16:22:10.550-07:00</updated><title type='text'>password problem for ubuntu</title><content type='html'>I remember once i forgot my ubuntu password and because i was not aware of hacking fixes so i had to reinstall my OS. I was thinking about that and found this useful forum page which explains in detail that how vulnerable are Unix and Windows machine to hackers.... and how important it is to set a grub password...&lt;br /&gt;&lt;br /&gt;http://ubuntuforums.org/archive/index.php/t-3609.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-5097731153684271862?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/5097731153684271862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/password-problem-for-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5097731153684271862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5097731153684271862'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/password-problem-for-ubuntu.html' title='password problem for ubuntu'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3399356694208900735</id><published>2009-10-27T16:43:00.000-07:00</published><updated>2009-10-27T16:44:24.634-07:00</updated><title type='text'>cl : Command line error D8003 : missing source filename</title><content type='html'>This error was coming because i misplaced a quote around library inclusion in the properties window of the project.&lt;br /&gt;Wasted my 35 precious mins...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3399356694208900735?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3399356694208900735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/cl-command-line-error-d8003-missing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3399356694208900735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3399356694208900735'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/cl-command-line-error-d8003-missing.html' title='cl : Command line error D8003 : missing source filename'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4718630744131739246</id><published>2009-10-25T18:03:00.000-07:00</published><updated>2009-10-25T18:05:47.646-07:00</updated><title type='text'>CEGUI OGRE THEORA</title><content type='html'>This link will help in cracking some of the issues that i am facing.&lt;br /&gt;http://www.wreckedgames.com/forum/index.php/topic,894.0.html&lt;br /&gt;&lt;br /&gt;This will also help in basic setup...&lt;br /&gt;http://www.cegui.org.uk/phpBB2/viewtopic.php?f=4&amp;t=154&amp;start=15&lt;br /&gt;&lt;br /&gt;Next thing is to download ogg, vorbis, theora, ptypes and theora video plugin...&lt;br /&gt;&lt;br /&gt;Do a static build for each of them in the order... and get basic theora set up ready..&lt;br /&gt;If this much work is done then i can focus on rest...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4718630744131739246?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4718630744131739246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/cegui-ogre-theora.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4718630744131739246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4718630744131739246'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/cegui-ogre-theora.html' title='CEGUI OGRE THEORA'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8198333748054187364</id><published>2009-10-25T08:13:00.000-07:00</published><updated>2009-10-25T08:16:40.948-07:00</updated><title type='text'>Stuck with OGRE-CEGUI-Theora plugin...</title><content type='html'>Nowdays i am stuck with OGRE-CEGUI and theora plugin....&lt;br /&gt;There is no explicit documentation available.... &lt;br /&gt;&lt;br /&gt;Seems to render the video, i need to extract the video texture and audio texture of the file... Once i have that then i need to load the material to render that texture...&lt;br /&gt;&lt;br /&gt;Once i render it, it should run... Will try once more and then will write the tutorial...&lt;br /&gt;&lt;br /&gt;till than njoy.... deadline... tomorrow... wuhuhuhuhu&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8198333748054187364?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8198333748054187364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/stuck-with-ogre-cegui-theora-plugin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8198333748054187364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8198333748054187364'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/stuck-with-ogre-cegui-theora-plugin.html' title='Stuck with OGRE-CEGUI-Theora plugin...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1625709824369423748</id><published>2009-10-22T22:57:00.001-07:00</published><updated>2009-10-23T16:09:28.674-07:00</updated><title type='text'>Some java concepts:</title><content type='html'>Purpose of defining the constructor private:&lt;br /&gt;&lt;br /&gt;1. To make the class singleton&lt;br /&gt;2. Making constructor private will not allow any other class to make object of this class or in other words, this class can not be sub classed...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1625709824369423748?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1625709824369423748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/some-java-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1625709824369423748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1625709824369423748'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/some-java-concepts.html' title='Some java concepts:'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4389835105206305940</id><published>2009-10-20T19:48:00.002-07:00</published><updated>2009-10-20T22:36:56.162-07:00</updated><title type='text'>Virtual memory</title><content type='html'>I found this link to be very concise and beutiful.&lt;br /&gt;http://williamstallings.com/Extras/OS-Notes/h9.html&lt;br /&gt;&lt;br /&gt;Read in detail sometime..&lt;br /&gt;&lt;br /&gt;Thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4389835105206305940?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4389835105206305940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/virtual-memory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4389835105206305940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4389835105206305940'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/virtual-memory.html' title='Virtual memory'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6699797488354358469</id><published>2009-10-12T20:38:00.000-07:00</published><updated>2009-10-12T20:44:11.878-07:00</updated><title type='text'>Problem fixes...</title><content type='html'>Nowdays i am not frequently logging all my problems...&lt;br /&gt;so lets do it now...&lt;br /&gt;&lt;br /&gt;1. .player file generated in player-client assignment of robotics class... &lt;br /&gt;    I worked with Makefile. Problem was that initially i was using eclipse C++ plugin to program all the stuff.. i had to put libraries for compilation and linking so i was not adding linker library or may be the path was wrong.. I tried many things and one of them worked.. Basically point was to look into all the properties of building and change some things in compile and linker... in compile i was supposed to add the path and same with linker .. somewhere i was also supposed to specify .so file name....&lt;br /&gt;&lt;br /&gt;Apart from this... i was supposed to find that where those files exists in the system so for that use of pkg-lib command was handy...&lt;br /&gt;&lt;br /&gt;Second .. once i removed ported my project to department machine then i was supposed to change entries in makefiles....&lt;br /&gt;so for that i used pkg-lib command to bring all the libraries...&lt;br /&gt;then i used -I flag in makefile compile thing....&lt;br /&gt;&lt;br /&gt;once i'll see it again.. i will recall exact syntax... &lt;br /&gt;&lt;br /&gt;Now i am stuck with CEGUI and OGRE work of my RA....&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6699797488354358469?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6699797488354358469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/problem-fixes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6699797488354358469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6699797488354358469'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/problem-fixes.html' title='Problem fixes...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-882852802360482429</id><published>2009-10-10T14:02:00.000-07:00</published><updated>2009-10-10T14:07:43.406-07:00</updated><title type='text'>Significance of virtual destructors...</title><content type='html'>Earlier i thought that virtual destructor are used to make sure that all the data pointers, memory blocks are freed when object gos out of scope...&lt;br /&gt;&lt;br /&gt;But the actual significance of virtual keyword is that it allows the derived classes to override the base class destructors... this way when we delete the object of derived class at the end of all our work then derived class destructor is also called...&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;This link explains this better...&lt;br /&gt;http://www.codersource.net/cpp_virtual_destructors.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-882852802360482429?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/882852802360482429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/significance-of-virtual-destructors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/882852802360482429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/882852802360482429'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/significance-of-virtual-destructors.html' title='Significance of virtual destructors...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8636669636228522636</id><published>2009-10-03T09:24:00.000-07:00</published><updated>2009-10-03T09:27:50.006-07:00</updated><title type='text'>Player - Stage work</title><content type='html'>I am totally stuck with this player/stage thingy...&lt;br /&gt;Trying to work on my assignment of robotics where i need to move a robot on a plane while avoiding all the obstacles...&lt;br /&gt;Just wondering how would i get the world information...&lt;br /&gt;&lt;br /&gt;1. May be some way to read from world file... but not able to find any API to read from world file or finding the obstacle information...&lt;br /&gt;&lt;br /&gt;2. Passing separate file which specify the environment... Logically this idea is offensive... so not possible...&lt;br /&gt;&lt;br /&gt;3. Using sensor... Dont know how would this work.. This seems to be the ideal solution to my problem...&lt;br /&gt;Let me try this...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8636669636228522636?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8636669636228522636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/player-stage-work.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8636669636228522636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8636669636228522636'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/player-stage-work.html' title='Player - Stage work'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-9091739073073468024</id><published>2009-10-02T15:45:00.000-07:00</published><updated>2009-10-24T23:02:23.526-07:00</updated><title type='text'>C++ vs Java</title><content type='html'>Java-- garbage collection..&lt;br /&gt;C++ no collection...&lt;br /&gt;&lt;br /&gt;Java-- No virtual keyword.. Java has equivalent final keyword but notion is opposite...&lt;br /&gt;i mean in java we have to explicitly say final but in C++ we explicitly say virtual....&lt;br /&gt;[credit.. Will]&lt;br /&gt;C++ Virtual keyword&lt;br /&gt;&lt;br /&gt;Java-- Package&lt;br /&gt;C++ Namespace&lt;br /&gt;&lt;br /&gt;Java-- No operator based polymorphism&lt;br /&gt;C++ Polymorphism&lt;br /&gt;&lt;br /&gt;Many other.... will write later... Tried a bit now...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-9091739073073468024?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/9091739073073468024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/c-vs-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/9091739073073468024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/9091739073073468024'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/10/c-vs-java.html' title='C++ vs Java'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7656660378417148946</id><published>2009-09-26T20:35:00.000-07:00</published><updated>2009-09-26T20:37:07.814-07:00</updated><title type='text'>Priority Queue discussion...</title><content type='html'>Priority queues are really important data structure in operating systems and network.&lt;br /&gt;In operating systems it is used in scheduler for scheduling process according to their priorities... while in networks in it used to schedule packets of different protocols for scheduling the packets...&lt;br /&gt;&lt;br /&gt;Priority Scheduling packet... http://en.wikipedia.org/wiki/Priority_queue&lt;br /&gt;&lt;br /&gt;Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7656660378417148946?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7656660378417148946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/priority-queue-discussion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7656660378417148946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7656660378417148946'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/priority-queue-discussion.html' title='Priority Queue discussion...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-2301636150026404720</id><published>2009-09-26T17:40:00.000-07:00</published><updated>2009-09-26T17:41:56.500-07:00</updated><title type='text'>Comprehensive list of Algos questions..</title><content type='html'>Apart from reading the list and question that you have already..&lt;br /&gt;Just look at these questions.. Some of them are good...&lt;br /&gt;&lt;br /&gt;http://inder-gnu.blogspot.com/2007/03/detecting-and-fixing-linked-lists-loops.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-2301636150026404720?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/2301636150026404720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/comprehensive-list-of-algos-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2301636150026404720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2301636150026404720'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/comprehensive-list-of-algos-questions.html' title='Comprehensive list of Algos questions..'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-303365925560932872</id><published>2009-09-26T17:01:00.000-07:00</published><updated>2009-09-26T17:10:01.189-07:00</updated><title type='text'>Get started with basic Latex</title><content type='html'>Recently i had to write a report in latex. &lt;br /&gt;Started as following:&lt;br /&gt;&lt;br /&gt;1. Installed latex on ubuntu...&lt;br /&gt;sudo apt-get install latex&lt;br /&gt;&lt;br /&gt;2. Installed a pdf reader on Ubuntu..&lt;br /&gt;i chose to install xpdf for this purpose.&lt;br /&gt;&lt;br /&gt;After this to test the latex thing..&lt;br /&gt;vi firstExercise.latex&lt;br /&gt;&lt;br /&gt;Opened up a file:&lt;br /&gt;\documentclass[11pt]{article}&lt;br /&gt;\begin{document}&lt;br /&gt;   This is the tex file...&lt;br /&gt;\end{document}&lt;br /&gt;&lt;br /&gt;&lt;ESC&gt;!wq&lt;br /&gt;&lt;br /&gt;To convert this latex to .pdf extension...&lt;br /&gt;&gt;&gt;latex firstExercise.latex&lt;br /&gt;This creates a .dvi file...&lt;br /&gt;&lt;br /&gt;&gt;&gt;dvips -Ppdf -G0 -f -o firstExercise.ps firstExercise.dvi&lt;br /&gt;This creates a .ps file...&lt;br /&gt;&lt;br /&gt;&gt;&gt;ps2pdf firstExercise.ps firstExercise.pdf&lt;br /&gt;This creates a .pdf file...&lt;br /&gt;&lt;br /&gt;Read this file using xpdf... &lt;br /&gt;We can view this file and feel happy and excited about putting our first step in Latex world... &lt;br /&gt;&lt;br /&gt;Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-303365925560932872?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/303365925560932872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/get-started-with-basic-latex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/303365925560932872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/303365925560932872'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/get-started-with-basic-latex.html' title='Get started with basic Latex'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7330175185431249302</id><published>2009-09-14T09:34:00.000-07:00</published><updated>2009-09-14T09:35:16.810-07:00</updated><title type='text'>Visual C++ application</title><content type='html'>'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'&lt;br /&gt;&lt;br /&gt;Solution to this is to change the character set to multi-byte character in project properties.&lt;br /&gt;&lt;br /&gt;I encountered this while trying to run some basic application on OGRE....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7330175185431249302?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7330175185431249302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/visual-c-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7330175185431249302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7330175185431249302'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/visual-c-application.html' title='Visual C++ application'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8199727253184481725</id><published>2009-09-13T09:14:00.000-07:00</published><updated>2009-09-13T09:16:58.870-07:00</updated><title type='text'>Arithmetic Operation allowed on pointer</title><content type='html'>Only arithmetic operation allowed on Pointers us:&lt;br /&gt;1. Addition of integers to array address&lt;br /&gt;2. Subtraction from another pointer&lt;br /&gt;&lt;br /&gt;No other operation is allowed. For instance division, Multiplication and addition is not allowed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8199727253184481725?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8199727253184481725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/arithmetic-operation-allowed-on-pointer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8199727253184481725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8199727253184481725'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/arithmetic-operation-allowed-on-pointer.html' title='Arithmetic Operation allowed on pointer'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4957744506410401135</id><published>2009-09-11T16:05:00.002-07:00</published><updated>2009-09-11T16:12:24.810-07:00</updated><title type='text'>Installtion of OGRE and Visual studio setup</title><content type='html'>1. Visual studio setup-08&lt;br /&gt;&lt;br /&gt;Go to dreamspark.com&lt;br /&gt;Create account&lt;br /&gt;Get the key&lt;br /&gt;Install download manager&lt;br /&gt;Download the Visual studio professional edition&lt;br /&gt;Run the "autorun.exe" utility &lt;br /&gt;&lt;br /&gt;I wasted my lot of time due to not using download manager.&lt;br /&gt;&lt;br /&gt;2. Download the prebuilt SDK of OGRE from their site. Run it and install at some file path which does not include spaces. &lt;br /&gt;&lt;br /&gt;3. Download OGRE wizard. This helps in some situations like having an OGRE SDK option on your "new project" link.&lt;br /&gt; Try running this. This might be useful.&lt;br /&gt;&lt;br /&gt;4. Setup a new project and run it. Be careful about the properties setting.&lt;br /&gt;&lt;br /&gt;Will post later...&lt;br /&gt;&lt;br /&gt;Will also try to install CEGUI thing tonight... so tonight is going to be the installation night... or may be tomorrow morning. &lt;br /&gt;Let's see what productive thing i can do today.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4957744506410401135?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4957744506410401135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/installtion-of-ogre-and-visual-studio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4957744506410401135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4957744506410401135'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/installtion-of-ogre-and-visual-studio.html' title='Installtion of OGRE and Visual studio setup'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6821679600472049571</id><published>2009-09-11T16:05:00.001-07:00</published><updated>2009-09-11T16:05:29.424-07:00</updated><title type='text'>OGRE, Visual studio and CEGUI</title><content type='html'>Today i spent whole day on setting up OGRE and Visual studio on my account.&lt;br /&gt;This was highly frustrating experience. I am a Java developer and usually prefer Eclipse as my IDE. Eclipse is really simple and intutive in its setting. I found Visual studio to be highly complex and ridiculous at some points.&lt;br /&gt;&lt;br /&gt;Just to mention, whenever i create a new project my old projects are automatically closed. If i want to keep both of them open then i need to put them in same solution scope which is poor. Moreover all the files are dumped in the same folder and i need to create folder in the actual disc location to put some structure to the application.&lt;br /&gt;I don't see the use of filters as they just get flat when i open the actual project location.&lt;br /&gt;&lt;br /&gt;Will keep you posted on this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6821679600472049571?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6821679600472049571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/ogre-visual-studio-and-cegui.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6821679600472049571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6821679600472049571'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/ogre-visual-studio-and-cegui.html' title='OGRE, Visual studio and CEGUI'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3232240587923876093</id><published>2009-09-11T16:04:00.001-07:00</published><updated>2009-09-11T16:04:54.597-07:00</updated><title type='text'>Cabinate files .. Invoking local files from Html page</title><content type='html'>I was stuck at work as i had to find some way so that i can execute local file system files from the application running in web browser.&lt;br /&gt;started googling and my collugue stumbled across the concept of .cab file and Object tag in html page. As brwoser just understands few mime-type so i was not sure if it can execute some exeutable present on file system. I thought it might have security concerns and brwoser might not support that MIME type but we found that browser has this octet-stream mime type which can be used to execute the .cab file.&lt;br /&gt;&lt;br /&gt;MSDN provide some platform SDK which can generate .cab file for set of executable. That can be used to generate .cab file. In order to run that file from browser, we need to change the browser's security settings. Browser's security settings can be changed or .cab file can be signed by using certificate generater program. One such program was also provided by microsoft MSDN library.&lt;br /&gt;&lt;br /&gt;Finally we were able to generate cab file and execute a local file system application from a button click on HTML page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3232240587923876093?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3232240587923876093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/cabinate-files-invoking-local-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3232240587923876093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3232240587923876093'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/cabinate-files-invoking-local-files.html' title='Cabinate files .. Invoking local files from Html page'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8521936575173504974</id><published>2009-09-08T08:38:00.000-07:00</published><updated>2009-09-08T08:39:03.833-07:00</updated><title type='text'>This explains the JSP and form processing well</title><content type='html'>http://www.j2ee.me/products/jsp/html/jspbasics.fm2.html&lt;br /&gt;&lt;br /&gt;Rest later&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8521936575173504974?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8521936575173504974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/this-explains-jsp-and-form-processing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8521936575173504974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8521936575173504974'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/this-explains-jsp-and-form-processing.html' title='This explains the JSP and form processing well'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7361882797906792522</id><published>2009-09-05T21:32:00.000-07:00</published><updated>2009-09-05T21:47:33.897-07:00</updated><title type='text'>Strut Spring Hibernate and delegation pattern</title><content type='html'>I am reading about delegation pattern today...&lt;br /&gt;Delegation pattern is used when a class A expresses some behavior or exposes some functionality using some API's but actual implementation is delegated to classes behind this class A. This enables putting one more layer between the classes.&lt;br /&gt;&lt;br /&gt;Class A also provides API's so the client code which uses instantiate class A can also choose which supporting class functionality it should choose.&lt;br /&gt;&lt;br /&gt;Wiki page has nice description on this with example:&lt;br /&gt;http://en.wikipedia.org/wiki/Delegation_pattern&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Second pattern that i was reading today was DAO pattern.&lt;br /&gt;This pattern allows independence of data access resource mechanism and client side code. In raw terms, if back end resource changes then client side code should not be modified. &lt;br /&gt;&lt;br /&gt;This page describes it best. http://java.sun.com/blueprints/patterns/DAO.html&lt;br /&gt;&lt;br /&gt;Rest later&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7361882797906792522?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7361882797906792522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/strut-spring-hibernate-and-delegation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7361882797906792522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7361882797906792522'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/strut-spring-hibernate-and-delegation.html' title='Strut Spring Hibernate and delegation pattern'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4875251056104963556</id><published>2009-09-03T08:43:00.000-07:00</published><updated>2009-09-03T08:47:50.853-07:00</updated><title type='text'>Internationalization in a web application</title><content type='html'>Two methods:&lt;br /&gt;First to have each page in all supported languages.&lt;br /&gt;Useful when whole web application needs to be internationalized.&lt;br /&gt;A Servlet controller will pick the right page after extracting the browser/request locale settings.&lt;br /&gt;&lt;br /&gt;Second is to use resource bundles where single page is maintained but part of page which needs to be internationalized is maintained as resource bundles..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4875251056104963556?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4875251056104963556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/internationalization-in-web-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4875251056104963556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4875251056104963556'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/09/internationalization-in-web-application.html' title='Internationalization in a web application'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3288824715494591732</id><published>2009-08-31T20:40:00.000-07:00</published><updated>2009-08-31T20:55:07.729-07:00</updated><title type='text'>Reading about XFS file system + AVL tree algo</title><content type='html'>XFS file system uses Journal file systems approach. Journal approach allows XFS to keep file consistent even in the event of crash...&lt;br /&gt;The main approach is to write all file update related operation in a circular buffer (Journal)... This journal will never be read during normal file read operations. If system crashes then we can use that jorunal memory to keep file system consistent.&lt;br /&gt;&lt;br /&gt;Second, AVL tree came into existance because in case of sorted data insertion in Binary search tree, it takes O(N) time... so balanced search tree approach was used so that O(logn) time insertion can be done...&lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3288824715494591732?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3288824715494591732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/reading-about-xfs-file-system-avl-tree.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3288824715494591732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3288824715494591732'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/reading-about-xfs-file-system-avl-tree.html' title='Reading about XFS file system + AVL tree algo'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3559122789994270829</id><published>2009-08-28T15:28:00.000-07:00</published><updated>2009-08-28T15:37:36.193-07:00</updated><title type='text'>List of some paper that i read recently.....</title><content type='html'>Related prof. jon weissman research:&lt;br /&gt;&lt;br /&gt;Resource Bundles: Using aggregation for statistical wide-area resource discovery and allocation&lt;br /&gt;&lt;br /&gt;SIP-based Voip traffic behavious profiling and its applications&lt;br /&gt;&lt;br /&gt;Practical techniques for eliminating storage of Deleted Data&lt;br /&gt;&lt;br /&gt;Exploiting Heterogenity for collecive data downloading in volunteer based networks&lt;br /&gt;&lt;br /&gt;Adaptive reputation-based scheduling on unreliable distributed infrastructure&lt;br /&gt;&lt;br /&gt;Ridge: Combining reliability and performance in open grid platforms&lt;br /&gt;&lt;br /&gt;Exploiting the throughput-fairness tradeoff of dealine scheduling oin heterogenous computing envieonments&lt;br /&gt;&lt;br /&gt;Co-designing the failure analysis and monitoring of large scale systems&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3559122789994270829?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3559122789994270829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/list-of-some-paper-that-i-read-recently.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3559122789994270829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3559122789994270829'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/list-of-some-paper-that-i-read-recently.html' title='List of some paper that i read recently.....'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8285115252071607540</id><published>2009-08-27T20:14:00.000-07:00</published><updated>2009-08-27T21:05:15.265-07:00</updated><title type='text'>Times now...</title><content type='html'>Presently i am facing the most exciting , challenging and uncertain phase of my career... &lt;br /&gt;In order to follow the heart, i am killing my opportunities, ignoring avenues...&lt;br /&gt;Lost in thoughts and time, i am &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Will complete it later...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8285115252071607540?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8285115252071607540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/times-now.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8285115252071607540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8285115252071607540'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/times-now.html' title='Times now...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6762011787686169241</id><published>2009-08-23T12:01:00.000-07:00</published><updated>2009-08-23T12:14:25.943-07:00</updated><title type='text'>KMP, Boyce moor and brute force</title><content type='html'>I was revising my concept on these algorithm....&lt;br /&gt;Once i was master of algo but after staying out of touch lately, i feel my algorithm skills have gone blunt....&lt;br /&gt;here i jump back...  &lt;br /&gt;KMP:&lt;br /&gt;Practical Use: In reading data from network streams and large files...&lt;br /&gt;               More fruitful when alphabates are small...&lt;br /&gt;               It is claimed to be faster if mismatch occurs later in the series...&lt;br /&gt;               Prefix-suffix approach. Each alphabate of pattern to be searched is just traversed once.&lt;br /&gt;&lt;br /&gt;Boyce moor:&lt;br /&gt;Practical Use: Faster when alphabates are large and slow when alphabates are small...&lt;br /&gt;               Back-traversal based appraoch.&lt;br /&gt;&lt;br /&gt;Brute force: &lt;br /&gt;Practical Use: Poor for binary usage...&lt;br /&gt;               just O(n*m) solution...&lt;br /&gt;&lt;br /&gt;Rabin carp:&lt;br /&gt;Practical Use: Hashing function based approach...&lt;br /&gt;               Efficiency depends on hash functions quality...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6762011787686169241?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6762011787686169241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/kmp-boyce-moor-and-brute-force.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6762011787686169241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6762011787686169241'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/kmp-boyce-moor-and-brute-force.html' title='KMP, Boyce moor and brute force'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6610278443617041277</id><published>2009-08-18T13:14:00.001-07:00</published><updated>2009-08-18T13:14:46.175-07:00</updated><title type='text'>This is my favorite read...</title><content type='html'>http://intellibriefs.blogspot.com/2007/06/indian-intelligence-another-sneak-peek.html&lt;br /&gt;&lt;br /&gt;Indian Intelligence...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6610278443617041277?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6610278443617041277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/this-is-my-favorite-read.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6610278443617041277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6610278443617041277'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/this-is-my-favorite-read.html' title='This is my favorite read...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1084683407964963748</id><published>2009-08-12T22:12:00.000-07:00</published><updated>2009-08-12T22:13:43.384-07:00</updated><title type='text'>Java vs C++ .. for programmers</title><content type='html'>http://www.javacoffeebreak.com/articles/thinkinginjava/comparingc++andjava.html&lt;br /&gt;&lt;br /&gt;This site lists detailed differences between java and c++&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1084683407964963748?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1084683407964963748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/java-vs-c-for-programmers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1084683407964963748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1084683407964963748'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/java-vs-c-for-programmers.html' title='Java vs C++ .. for programmers'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4080645342212060761</id><published>2009-08-12T21:33:00.000-07:00</published><updated>2009-08-12T21:50:30.877-07:00</updated><title type='text'>Footbal game design in Java</title><content type='html'>Classes:&lt;br /&gt;&lt;br /&gt;public class Player{&lt;br /&gt;&lt;br /&gt;   /**&lt;br /&gt;     Personal Information&lt;br /&gt;   */&lt;br /&gt;   protected String _name;&lt;br /&gt;   protected String _address;&lt;br /&gt;   protected String _bloodGroup;&lt;br /&gt;   protected String _age; &lt;br /&gt;   protected String _sex;&lt;br /&gt;&lt;br /&gt;   /**&lt;br /&gt;     Game related Information&lt;br /&gt;   */&lt;br /&gt;   protected Team _team;&lt;br /&gt;   protected Position _position;&lt;br /&gt;   protected Vector&lt;Player&gt; neighborList;&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class ball{ &lt;br /&gt;   protected Position _position;&lt;br /&gt;   protected Player _possesion;&lt;br /&gt;   &lt;br /&gt;   public void kickBall(force x, angle y){&lt;br /&gt;   &lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void changePosition(position x, position y){&lt;br /&gt;     // move from position x to position y &lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   public void drawTrajectory(){&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public boolean isGoal(){&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public boolean isValidGoal(){&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public void pass(Player x, Player Y){&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Think more on the API's of this game.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4080645342212060761?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4080645342212060761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/footbal-game-design-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4080645342212060761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4080645342212060761'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/footbal-game-design-in-java.html' title='Footbal game design in Java'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-2725453055742272757</id><published>2009-08-12T21:08:00.001-07:00</published><updated>2009-08-12T21:17:47.943-07:00</updated><title type='text'>When to use b tree and when b+ tree</title><content type='html'>B trees are specifically used when we need to seek the data... In case of b trees, frequently seeked data can be moved up in the tree so that next time less number of access or look ups would be required. &lt;br /&gt;&lt;br /&gt;B+ trees are used when we need to do full scan. Some other advantage of B+ trees is that high fanout, less seeks required as more pointers are available for data lookup which is in contrast to B tree where intermediate nodes stores data values which waste the look up pointer space.&lt;br /&gt;&lt;br /&gt;In B+ tree, leaf nodes are connected as linked list which makes it easier to traverse.&lt;br /&gt;Also in B+ tree, depth of the tree is small and a uniform implementation can be achieved as non-leaf nodes acts as indexes and leaf nodes acts as data holder...&lt;br /&gt;&lt;br /&gt;Practically... indexes can be placed in the cache while actual data can be placed in the hard disk.&lt;br /&gt;&lt;br /&gt;For detailed analysis:&lt;br /&gt;http://stackoverflow.com/questions/870218/b-trees-b-trees-difference&lt;br /&gt;&lt;br /&gt;Also look into wikipedia articles on addition, deletion of nodes...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-2725453055742272757?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/2725453055742272757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/when-to-use-b-tree-and-when-b-tree.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2725453055742272757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2725453055742272757'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/when-to-use-b-tree-and-when-b-tree.html' title='When to use b tree and when b+ tree'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8878968637142615831</id><published>2009-08-12T20:53:00.001-07:00</published><updated>2009-08-12T20:58:03.324-07:00</updated><title type='text'>Static binding vs Dynamic biding..</title><content type='html'>http://geekexplains.blogspot.com/2008/06/dynamic-binding-vs-static-binding-in.html&lt;br /&gt;&lt;br /&gt;This page explains the difference of static binding and dynamic binding in java...&lt;br /&gt;To summarize:&lt;br /&gt;All the instance method calls are resolved at runtime so that is dynamic binding.&lt;br /&gt;All the static method calls are resolved at compile time so it is static binding.&lt;br /&gt;&lt;br /&gt;As the static methods are resolved at the compile time so it is not possible to override them.&lt;br /&gt;As java does not allow polymorphism so all the member functions are resolved at compile time only.&lt;br /&gt;&lt;br /&gt;Similarly private methods are resolved at compile time only as they are never inherited..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8878968637142615831?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8878968637142615831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/static-binding-vs-dynamic-biding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8878968637142615831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8878968637142615831'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/static-binding-vs-dynamic-biding.html' title='Static binding vs Dynamic biding..'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-851570133505723584</id><published>2009-08-07T18:49:00.000-07:00</published><updated>2009-08-07T20:05:38.943-07:00</updated><title type='text'>JSP notes</title><content type='html'>Just now i cam across few of good JSP tags:&lt;br /&gt;&lt;br /&gt;1. &lt;jsp:include pagename flush="true" /&gt;&lt;br /&gt;2. &lt;jsp:forward pagename /&gt;&lt;br /&gt;3. &lt;%@ errorpage=pagename /&gt;&lt;br /&gt;4. &lt;%@ iserrorpage&gt;&lt;br /&gt;&lt;br /&gt;This page explains the basics of main jsp tags:&lt;br /&gt;http://www.geocities.com/srcsinc/java/java_tutorials/jsp_tutorials/jsp_tutorial_6.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-851570133505723584?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/851570133505723584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/jsp-notes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/851570133505723584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/851570133505723584'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/jsp-notes.html' title='JSP notes'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6425084609841165249</id><published>2009-08-07T13:13:00.000-07:00</published><updated>2009-08-07T13:14:13.563-07:00</updated><title type='text'>Using log4J class in your code...</title><content type='html'>This page describe th importance and usage of log4J library.&lt;br /&gt;It's a strong library with wonderful utility like logging levels and logging inside threads...&lt;br /&gt;&lt;br /&gt;http://www.avajava.com/tutorials/lessons/what-is-log4j-and-how-do-i-use-it.html?page=2&lt;br /&gt;&lt;br /&gt;Read this page for more details..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6425084609841165249?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6425084609841165249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/using-log4j-class-in-your-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6425084609841165249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6425084609841165249'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/using-log4j-class-in-your-code.html' title='Using log4J class in your code...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4507199317673875834</id><published>2009-08-04T14:34:00.000-07:00</published><updated>2009-08-04T14:39:26.826-07:00</updated><title type='text'>Make your code rebust and professional</title><content type='html'>I learned about how to divide code into components and how thinking little before coding helps in good design and fast work.  &lt;br /&gt;&lt;br /&gt;Using logger module and using separate error module in the system helps in making code good.&lt;br /&gt;Use a file like errorConstants and define all the error messages in a hashmap. &lt;br /&gt;&lt;br /&gt;Define this hashmap as a static object. Declare a custom exception and define some constructor &lt;br /&gt;&lt;br /&gt;To be completed later....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4507199317673875834?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4507199317673875834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/make-your-code-rebust-and-professional.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4507199317673875834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4507199317673875834'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/08/make-your-code-rebust-and-professional.html' title='Make your code rebust and professional'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1004532452690781093</id><published>2009-07-31T08:51:00.000-07:00</published><updated>2009-07-31T09:19:44.288-07:00</updated><title type='text'>Factory Pattern, Visitor pattern, Aspect oriented programming and spring framework</title><content type='html'>Today i read wikipedia articles about visitor pattern and factory pattern...&lt;br /&gt;&lt;br /&gt;Factory pattern is useful when u don't know the type of object that you are invoking..&lt;br /&gt;You separate the logic of identifying the object type and invoking the desired method on that object type in factory class. &lt;br /&gt;&lt;br /&gt;Basically term factory method means any method that creates objects. Whenever u wish to invoke the object, u create the factory class object and pass the information to this class which figures out and invoke appropriate object.&lt;br /&gt;&lt;br /&gt;Visitor pattern:&lt;br /&gt;Suppose there are four components in the system and all of them have common method like print or run or act... so instead of doing a implementation of common method in each of the subclass, a new interface is defined which declare common method for each component. A new class which extend to this interface implements the component specific functionality in class code. This way we separate the code of common method from sub classes. &lt;br /&gt;&lt;br /&gt;Aspect oriented programming: &lt;br /&gt;The piece of code on wiki gives a wonderful insight into this. Suppose u have bank transaction code. Here a method transfer money from one account to another. For sake of security and system services like logging and database transaction, a lot of checks will be introduced in the code. This is bad because in future if logging functionality changes or security changes then transaction code will have to be changed. This leads to cross cutting concerns. cross cutting means the logging module is cutting across other module so it creates problems. To avoid this aspectJ should be used. In this all the cross cutting code is specified in a separate file as aspect. This file defined the join point and point cuts which helps in separating code.&lt;br /&gt;&lt;br /&gt;Spring framework:&lt;br /&gt;Powerful framework with lot of features. Yet to understand it's role in j2ee applications fully. &lt;br /&gt;&lt;br /&gt;SJ&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1004532452690781093?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1004532452690781093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/factory-pattern-visitor-pattern-aspect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1004532452690781093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1004532452690781093'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/factory-pattern-visitor-pattern-aspect.html' title='Factory Pattern, Visitor pattern, Aspect oriented programming and spring framework'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-776718103995414439</id><published>2009-07-31T07:39:00.000-07:00</published><updated>2009-07-31T07:43:24.438-07:00</updated><title type='text'>Reading and writing files in java</title><content type='html'>I always forget the exact syntax of lines in java for reading and writing files...&lt;br /&gt;&lt;br /&gt;Reading files:&lt;br /&gt;Convert the file to inputstream or outstream and then read or write to the file using streamReader or streamWriter...&lt;br /&gt;&lt;br /&gt;Create the fileReader from the file and read that fileReader using bufferedReader&lt;br /&gt;&lt;br /&gt;Use scanner to read file by line by line...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-776718103995414439?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/776718103995414439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/reading-and-writing-files-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/776718103995414439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/776718103995414439'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/reading-and-writing-files-in-java.html' title='Reading and writing files in java'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3706145141995632097</id><published>2009-07-30T20:28:00.001-07:00</published><updated>2009-07-30T20:28:45.969-07:00</updated><title type='text'>Communication between JSP and Servlets</title><content type='html'>getServletConfig().getServletContext().getRequestDispatcher(”jspfilepathtoforward”).forward(request, response)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3706145141995632097?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3706145141995632097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/communication-between-jsp-and-servlets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3706145141995632097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3706145141995632097'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/communication-between-jsp-and-servlets.html' title='Communication between JSP and Servlets'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-209749271925478872</id><published>2009-07-30T20:12:00.001-07:00</published><updated>2009-07-30T20:24:23.556-07:00</updated><title type='text'>Deep copy vs Shallow copy</title><content type='html'>If the object is having any pointer then deep copy is preferred because in case of shallow copy, if pointer is changed or object is destroyed then dangling pointer problem may arise.&lt;br /&gt;&lt;br /&gt;Wonderful post on pass by reference and pass by value confusion of Java&lt;br /&gt;http://www.javaworld.com/javaworld/javaqa/2000-05/03-qa-0526-pass.html&lt;br /&gt;&lt;br /&gt;Values of reference is passed by address and reference itself is passed by value.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-209749271925478872?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/209749271925478872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/deep-copy-vs-shallow-copy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/209749271925478872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/209749271925478872'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/deep-copy-vs-shallow-copy.html' title='Deep copy vs Shallow copy'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8460041989595569214</id><published>2009-07-30T19:17:00.000-07:00</published><updated>2009-07-30T19:36:43.062-07:00</updated><title type='text'>Abstraction vs Interfaces</title><content type='html'>Abstraction: Default implementation of set of methods.&lt;br /&gt;             Compulsive use of extends variable and overriding of default functionality&lt;br /&gt;             Better to be used in application framework where a default implementation is required in case component does not implement their own. Like event handling service, Messaging service etc..&lt;br /&gt;             If variables changes often then use abstraction&lt;br /&gt;&lt;br /&gt;Interfaces: Abstract methods and final variable &lt;br /&gt;             Provide conceptual structure to whole application. &lt;br /&gt;             Allow Multiple inheritance&lt;br /&gt;             If methods are changed frequently then use interfaces.&lt;br /&gt;&lt;br /&gt;For example: Interfaces/ Need for multiple inheritance &lt;br /&gt;&lt;br /&gt;Two kind of people: actor / director ..&lt;br /&gt;for each of them we define one interface but now what if there is third kind for people who are both actors and directors.... &lt;br /&gt;&lt;br /&gt;In such scenario we need multiple inheritance... &lt;br /&gt;&lt;br /&gt;Need fr abstraction:&lt;br /&gt;&lt;br /&gt;Abstraction in big application framework to define default handling.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Inheritance vs. Abstraction&lt;br /&gt;When functionality is to be imposed on unrelated classes then use interfaces...&lt;br /&gt;When functionality is to be used on related classes then use abstraction..&lt;br /&gt;&lt;br /&gt;Related classes: GenericList singlelinklist doublelinklist... all have the similar properties and methods...&lt;br /&gt;&lt;br /&gt;Unrelated Classes: some function in interface which should be implemented by many component in the system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8460041989595569214?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8460041989595569214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/abstraction-vs-interfaces.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8460041989595569214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8460041989595569214'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/abstraction-vs-interfaces.html' title='Abstraction vs Interfaces'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-5972069045966797342</id><published>2009-07-19T12:32:00.000-07:00</published><updated>2009-07-19T12:50:44.419-07:00</updated><title type='text'>Tricky to see which process is using which port</title><content type='html'>http://www.mydigitallife.info/2008/12/03/how-to-check-and-identify-which-application-is-listening-or-opening-port-80-and-443-on-windows/&lt;br /&gt;&lt;br /&gt;First run netstat -o -n -a &lt;br /&gt;then find the process id and use this process id to find out process name and details...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-5972069045966797342?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/5972069045966797342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/tricky-to-see-which-process-is-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5972069045966797342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5972069045966797342'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/tricky-to-see-which-process-is-using.html' title='Tricky to see which process is using which port'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7052347983711001696</id><published>2009-07-17T18:03:00.000-07:00</published><updated>2009-07-17T18:04:00.498-07:00</updated><title type='text'>To setup netbeans on Ubuntu</title><content type='html'>http://www.javadesign.info/SystemsHardware/OS/Ubuntu/install-netbeans-on-ubuntu&lt;br /&gt;&lt;br /&gt;This page describes things wonderfully...&lt;br /&gt;Hope this helps...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7052347983711001696?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7052347983711001696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/to-setup-netbeans-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7052347983711001696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7052347983711001696'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/to-setup-netbeans-on-ubuntu.html' title='To setup netbeans on Ubuntu'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4438193409971815120</id><published>2009-07-17T08:05:00.000-07:00</published><updated>2009-07-17T08:11:31.678-07:00</updated><title type='text'>issues with my Eclipse and Jaxb setup</title><content type='html'>I was struggling a lot with my eclipse and jaxb setup.&lt;br /&gt;Ultimately it turned out to be eclipse java settings on Ubuntu.&lt;br /&gt;&lt;br /&gt;I was supposed to use sun java-6.0 but for some reason my eclipse configuration was picking up gcj-java.&lt;br /&gt;&lt;br /&gt;In the process, i used following tricks...&lt;br /&gt;&lt;br /&gt;Change eclipse java preferences in&lt;br /&gt;/etc/eclipse/java_home&lt;br /&gt;&lt;br /&gt;Change the by default installed JRE setting in eclipse&gt;window&gt;preferences...&lt;br /&gt;&lt;br /&gt;Checked the installed vm of eclipse by looking into eclipse&gt;help&gt;about eclipse platform&gt;configuration details&lt;br /&gt;&lt;br /&gt;Changed the default JRE that needs to be included in the project while creating the project...&lt;br /&gt;&lt;br /&gt;sudo update-alternatives --config java&lt;br /&gt;&lt;br /&gt;and somehow it worked for me...&lt;br /&gt;&lt;br /&gt;Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4438193409971815120?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4438193409971815120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/issues-with-my-eclipse-and-jaxb-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4438193409971815120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4438193409971815120'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/issues-with-my-eclipse-and-jaxb-setup.html' title='issues with my Eclipse and Jaxb setup'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-703126035421777216</id><published>2009-07-13T07:43:00.000-07:00</published><updated>2009-07-13T12:25:36.273-07:00</updated><title type='text'>JSP notes</title><content type='html'>http://www.jsptut.com/Declarations.jsp&lt;br /&gt;&lt;br /&gt;Understand the importance of&lt;br /&gt;&lt;%= %&gt;&lt;br /&gt; To embed single line expression in the code&lt;br /&gt;&lt;br /&gt;&lt;% %&gt;&lt;br /&gt;  To write a code block&lt;br /&gt;&lt;br /&gt;&lt;%! %&gt;&lt;br /&gt;   Declaration to enclose your declarations&lt;br /&gt;&lt;br /&gt;&lt;%@ %&gt;----&gt; Importing some java library &lt;br /&gt;   for example: &lt;%@ page language="java" import="java.sql.*" %&gt;&lt;br /&gt;&lt;br /&gt;Variables should not be declared as global otherwise there would be synchronization issues and performance will be hurt. Ideally all the variables should go into request or session object.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-703126035421777216?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/703126035421777216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/jsp-notes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/703126035421777216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/703126035421777216'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/jsp-notes.html' title='JSP notes'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1734890310551190137</id><published>2009-07-09T14:26:00.000-07:00</published><updated>2009-07-09T14:32:28.803-07:00</updated><title type='text'>Jetty deployment</title><content type='html'>For deploying on Jetty there are several ways...&lt;br /&gt;1. Download the binary zipped file from source forge...&lt;br /&gt;2. Extract the file and start it using general instruction of&lt;br /&gt;   java -jar start.jar etc/jetty.xml &amp;&lt;br /&gt;3. Create the war file.&lt;br /&gt;   inside war file.. &lt;br /&gt;4. Add a context file in contexts folder for hot deployment&lt;br /&gt;   For static deployment--&gt; check the jetty.xml page&lt;br /&gt;&lt;br /&gt;This link should help...&lt;br /&gt;http://docs.codehaus.org/display/JETTY/ContextDeployer&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1734890310551190137?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1734890310551190137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/jetty-deployment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1734890310551190137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1734890310551190137'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/jetty-deployment.html' title='Jetty deployment'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-1262765511739789063</id><published>2009-07-09T12:46:00.000-07:00</published><updated>2009-07-09T12:47:39.543-07:00</updated><title type='text'>This is the directory structure while deploying servlet on any servlet container</title><content type='html'>base directory/  (this is the name of your war file)&lt;br /&gt;    JSP files&lt;br /&gt;    image files&lt;br /&gt;    HTML files&lt;br /&gt;    CSS files&lt;br /&gt;    any subdirectories containing additional JSP, HTML, images, and CSS&lt;br /&gt;    WEB-INF/&lt;br /&gt;        struts-config.xml&lt;br /&gt;        web.xml&lt;br /&gt;        TLD files for various tag libraries&lt;br /&gt;        lib/     (various .jar files for libraries you used)&lt;br /&gt;        classes/ (compiled .class files for your actions and action forms)&lt;br /&gt;    META-INF/    (this is part of the .war file)&lt;br /&gt;        MANIFEST.MF (the manifest file from the .war file)&lt;br /&gt;&lt;br /&gt;Underneath the classes directory you would have compiled code for forms and actions. For example:&lt;br /&gt;&lt;br /&gt;com/&lt;br /&gt;    johnmunsch/&lt;br /&gt;        strutstest/&lt;br /&gt;            actions/&lt;br /&gt;                LoginAction.class&lt;br /&gt;                SearchAction.class&lt;br /&gt;            forms/&lt;br /&gt;                LoginForm.class&lt;br /&gt;                SearchForm.class&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-1262765511739789063?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/1262765511739789063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/this-is-directory-structure-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1262765511739789063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/1262765511739789063'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/this-is-directory-structure-while.html' title='This is the directory structure while deploying servlet on any servlet container'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-8670200176411166135</id><published>2009-07-09T12:11:00.001-07:00</published><updated>2009-07-09T12:12:51.000-07:00</updated><title type='text'>This is a wonderful page which tells about the services described Tomcat file structure and installation stuff</title><content type='html'>http://linux-sxs.org/internet_serving/c292.html&lt;br /&gt;&lt;br /&gt;Wonderful.. Wonderful&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-8670200176411166135?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/8670200176411166135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/this-is-wonderful-page-which-tells.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8670200176411166135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/8670200176411166135'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/this-is-wonderful-page-which-tells.html' title='This is a wonderful page which tells about the services described Tomcat file structure and installation stuff'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-5059735609866600859</id><published>2009-07-09T10:32:00.000-07:00</published><updated>2009-07-09T10:34:34.506-07:00</updated><title type='text'>Jetty server installation and running details...</title><content type='html'>This is the Jetty server page...&lt;br /&gt;Just download the jetty source from Jetty download page...&lt;br /&gt;Read the instructions in README.txt for details...&lt;br /&gt;&lt;br /&gt;Jetty is faster than tomcat or resin and easy to configure as well...&lt;br /&gt;&lt;br /&gt;This page describe the things better...&lt;br /&gt;http://helpme.morphexchange.com/jetty6/help/items/chapter_3_navigating_through_jetty6&lt;br /&gt;&lt;br /&gt;Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-5059735609866600859?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/5059735609866600859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/jetty-server-installation-and-running.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5059735609866600859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5059735609866600859'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/jetty-server-installation-and-running.html' title='Jetty server installation and running details...'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-9194402463232382670</id><published>2009-07-08T14:48:00.000-07:00</published><updated>2009-07-08T14:49:35.415-07:00</updated><title type='text'>Application server vs web app server</title><content type='html'>http://www.javaworld.com/javaqa/2002-08/01-qa-0823-appvswebserver.html?page=2&lt;br /&gt;&lt;br /&gt;This page describes the best scenarios in which application server and web app server are most suitable.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-9194402463232382670?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/9194402463232382670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/application-server-vs-web-app-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/9194402463232382670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/9194402463232382670'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/application-server-vs-web-app-server.html' title='Application server vs web app server'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7602082173367679365</id><published>2009-07-08T12:42:00.000-07:00</published><updated>2009-07-08T14:48:22.785-07:00</updated><title type='text'>Tomcat and Jetty</title><content type='html'>Now days i am trying to get jetty-spring-hibernate framework running...&lt;br /&gt;Here are the things that i find interesting....&lt;br /&gt;&lt;br /&gt;Apache:&lt;br /&gt;How to run apache on a different port?&lt;br /&gt;&lt;br /&gt;1. By default Apache runs on port 80.&lt;br /&gt;2. To change the port or add additional listening ports...&lt;br /&gt;     &lt;br /&gt;   nano /etc/apache2/ports.conf&lt;br /&gt;&lt;br /&gt;  -- change &lt;br /&gt;   listen 80&lt;br /&gt;  -- to&lt;br /&gt;   listen 80&lt;br /&gt;   listen 8080&lt;br /&gt;&lt;br /&gt;sudo /etc/init.d/apache2 restart&lt;br /&gt;This will make apache listen on 80 and 8080. You can make it listen any other port that you want.&lt;br /&gt;&lt;br /&gt;Tomcat:&lt;br /&gt;How to change the port number on which tomcat runs?&lt;br /&gt;&lt;br /&gt;Tomcat is a HTTP server and generally HTTP servers are related to port 80 so ideally tomcat should run on port 80 but default port for tomcat is 8080.&lt;br /&gt;The reason for this is that Tomcat is good for handling Java and Jsp / Servlets code but it is not efficient for static page serving and other server side languages. &lt;br /&gt;&lt;br /&gt;In some cases overhead of running tomcat on top of apache is poor so we can change default port of tomcat to 80.&lt;br /&gt;&lt;br /&gt;To change the port.. We need to server.xml file&lt;br /&gt;Also other way of port handling is to use kernel iptables to forward any request coming on port 80 to forward to port 8080.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7602082173367679365?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7602082173367679365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/tomcat-and-jetty.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7602082173367679365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7602082173367679365'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/07/tomcat-and-jetty.html' title='Tomcat and Jetty'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-5322226106763874136</id><published>2009-06-30T20:11:00.000-07:00</published><updated>2009-06-30T20:13:08.557-07:00</updated><title type='text'>Very Important page for linux and bsd related articles</title><content type='html'>http://www.scottro.net/&lt;br /&gt;&lt;br /&gt;It explains lot of things... Proper way of troubleshooting and setting up stuff on linux.&lt;br /&gt;&lt;br /&gt;Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-5322226106763874136?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/5322226106763874136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/very-important-page-for-linux-and-bsd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5322226106763874136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/5322226106763874136'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/very-important-page-for-linux-and-bsd.html' title='Very Important page for linux and bsd related articles'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-733319942728007775</id><published>2009-06-30T09:39:00.000-07:00</published><updated>2009-06-30T09:41:39.133-07:00</updated><title type='text'>Hosting files on apache..</title><content type='html'>Use this link... explains well&lt;br /&gt;http://www.debuntu.org/2006/02/22/7-virtual-hosting-using-apache-2&lt;br /&gt;&lt;br /&gt;1. Put files in var/www/ folder&lt;br /&gt;2. Create a file in sites-available folder&lt;br /&gt;3. Create a soft link in sites-enable folder&lt;br /&gt;4. Change the /etc/hosts file &lt;br /&gt;   like 127.0.1.1 &lt;alias name&gt;&lt;br /&gt;&lt;br /&gt;restart apache&lt;br /&gt;sudo /etc/init.d/apache2 restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-733319942728007775?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/733319942728007775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/hosting-files-on-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/733319942728007775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/733319942728007775'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/hosting-files-on-apache.html' title='Hosting files on apache..'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-6727574349685475361</id><published>2009-06-30T07:53:00.001-07:00</published><updated>2009-06-30T07:53:53.724-07:00</updated><title type='text'>What is factory pattern</title><content type='html'>The Factory Pattern promotes loose coupling by eliminating the need to bind application-specific classes into the code. &lt;br /&gt;The Factory method lets a class defer instantiation to subclasses" Thus, as defined by Gamma et al, "The Factory Method lets a class defer instantiation to subclasses.&lt;br /&gt;&lt;br /&gt;Will write about it later.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-6727574349685475361?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/6727574349685475361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/what-is-factory-pattern.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6727574349685475361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/6727574349685475361'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/what-is-factory-pattern.html' title='What is factory pattern'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3729444298407730871</id><published>2009-06-24T09:01:00.000-07:00</published><updated>2009-06-24T09:25:53.813-07:00</updated><title type='text'>leanring spring and hibernate</title><content type='html'>Today i'll start learning about spring and hibernate ... &lt;br /&gt;To become a full fledged expert in this field. i need to learn few prerequisite to these technologies... I'll try to implement small applications using all these technology and i hope it would extend my knowledge base.....&lt;br /&gt;&lt;br /&gt;Hibernate: Relational data modeling, transaction processing, relational database design&lt;br /&gt;Spring: Design patterns, dependency injection, application design, MVC, class and package dependency, application tiers, security and web standards&lt;br /&gt;&lt;br /&gt;Before doing all this...&lt;br /&gt;I am going to pursue this course and crack J2EE &lt;br /&gt;http://www.javapassion.com/j2ee/#Introduction_of_this_course&lt;br /&gt;&lt;br /&gt;Wonderful course...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3729444298407730871?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3729444298407730871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/leanring-spring-and-hibernate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3729444298407730871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3729444298407730871'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/leanring-spring-and-hibernate.html' title='leanring spring and hibernate'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3241818795954028120</id><published>2009-06-18T11:07:00.000-07:00</published><updated>2009-06-18T11:08:09.389-07:00</updated><title type='text'>Link for UML understanding of developers</title><content type='html'>http://edn.embarcadero.com/article/31863&lt;br /&gt;&lt;br /&gt;This link explains best the use of UML for developers perspective..&lt;br /&gt;&lt;br /&gt;Saurabh&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3241818795954028120?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3241818795954028120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/link-for-uml-understanding-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3241818795954028120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3241818795954028120'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/link-for-uml-understanding-of.html' title='Link for UML understanding of developers'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4303489948336678757</id><published>2009-06-04T12:08:00.000-07:00</published><updated>2009-06-04T12:12:57.037-07:00</updated><title type='text'>JavaScripting Namespacing</title><content type='html'>Best way of extending a namespace in javascript &lt;br /&gt;http://www.dustindiaz.com/namespace-your-javascript/&lt;br /&gt;&lt;br /&gt;var DED = function() {&lt;br /&gt; var private_var;&lt;br /&gt; function private_method() {&lt;br /&gt;  // do stuff here&lt;br /&gt; }&lt;br /&gt; return {&lt;br /&gt;  method_1 : function() {&lt;br /&gt;   // do stuff here&lt;br /&gt;  },&lt;br /&gt;  method_2 : function() {&lt;br /&gt;   // do stuff here&lt;br /&gt;  }&lt;br /&gt; };&lt;br /&gt;}();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4303489948336678757?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4303489948336678757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/javascripting-namespacing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4303489948336678757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4303489948336678757'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/06/javascripting-namespacing.html' title='JavaScripting Namespacing'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-2454008697252473865</id><published>2009-05-30T22:51:00.001-07:00</published><updated>2009-05-30T22:51:57.533-07:00</updated><title type='text'>Finding out version of ubuntu</title><content type='html'>Following commands helps in this:&lt;br /&gt;lsb_release -a&lt;br /&gt;&lt;br /&gt;cat /etc/issue&lt;br /&gt;&lt;br /&gt;This will tell which version of ubuntu are you using.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-2454008697252473865?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/2454008697252473865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/finding-out-version-of-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2454008697252473865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2454008697252473865'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/finding-out-version-of-ubuntu.html' title='Finding out version of ubuntu'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-7848545397802038448</id><published>2009-05-29T09:34:00.000-07:00</published><updated>2009-05-29T09:41:14.113-07:00</updated><title type='text'>Creating objects in javascript</title><content type='html'>http://javascriptkit.com/javatutors/object.shtml&lt;br /&gt;&lt;br /&gt;This will help in understanding the main concept of prototype chaining in Java-Script.&lt;br /&gt;This also explains the need to maintaining the correct order while writing the code.&lt;br /&gt;&lt;br /&gt;Prototype chaining helps in implementing concept of inheritance in javascript code.&lt;br /&gt;This web site explains this with the help of circle and sphere example. It explains that how circle class method and properties can be used in sphere class.&lt;br /&gt;&lt;br /&gt;function mySphere(x,y,z,r){ &lt;br /&gt;// DO SOME THING&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;mySphere.prototype = new circle();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-7848545397802038448?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/7848545397802038448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/creating-objects-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7848545397802038448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/7848545397802038448'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/creating-objects-in-javascript.html' title='Creating objects in javascript'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-755403700922288777</id><published>2009-05-29T09:25:00.000-07:00</published><updated>2009-05-29T09:28:45.480-07:00</updated><title type='text'>Creating a custom object in JavaScript</title><content type='html'>http://javascriptkit.com/javatutors/object.shtml&lt;br /&gt;&lt;br /&gt;This include three steps:&lt;br /&gt;1. creating custom object function&lt;br /&gt;2. adding properties &lt;br /&gt;3. adding methods &lt;br /&gt;&lt;br /&gt;&lt;script&gt;&lt;br /&gt;&lt;br /&gt;function hello(parameters){&lt;br /&gt;&lt;br /&gt;// variable declaration&lt;br /&gt;// method declaration&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function method1(){&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function method2(){&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;Go through the tutorial and you will understand the crux.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-755403700922288777?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/755403700922288777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/creating-custom-object-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/755403700922288777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/755403700922288777'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/creating-custom-object-in-javascript.html' title='Creating a custom object in JavaScript'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4937675464084749812</id><published>2009-05-29T08:45:00.000-07:00</published><updated>2009-05-29T09:12:17.425-07:00</updated><title type='text'>Ajax with jQuery</title><content type='html'>http://www.dreamdealer.nl/?action=viewTutorial&amp;id=67&lt;br /&gt;&lt;br /&gt;Using ajax with jQuery is simple.&lt;br /&gt;I see multiple methods on web. some call like &lt;br /&gt;$.ajax({&lt;br /&gt;   type: "POST|GET",&lt;br /&gt;   dataType: "json|xml|....",&lt;br /&gt;   url: "index.php|&lt;PERL&gt;|.....",&lt;br /&gt;   data: param{i guess name value pairs but i am not sure},      &lt;br /&gt;   success: function(data){&lt;br /&gt;    if(data.status==0){&lt;br /&gt;       // take action... In general programming practice,&lt;br /&gt;       // trueSuccess will be a function which will be called with data as argument.&lt;br /&gt;       // In this case, trueSuccess is an event which will be triggered .... &lt;br /&gt;       // This event is having some data as argument...&lt;br /&gt;      $("#"+listener).trigger('trueSuccess',[data]);&lt;br /&gt;    }else{&lt;br /&gt;     $("#"+listener).trigger('trueError',[data]);&lt;br /&gt;    }&lt;br /&gt;  },&lt;br /&gt;  error: function(){&lt;br /&gt;    data='An Unexpected error has occured. Please try again later.';&lt;br /&gt;    $("#"+listener).trigger('unexpectedError',[data]);&lt;br /&gt;  }&lt;br /&gt;})&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ajax another way:&lt;br /&gt;&lt;br /&gt; $.get("giveMeSomething.php", { number1: number1, number2: number2 },&lt;br /&gt;         function(data){&lt;br /&gt;           alert("Data Loaded: " + data);&lt;br /&gt;     });&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4937675464084749812?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4937675464084749812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/ajax-with-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4937675464084749812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4937675464084749812'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/ajax-with-jquery.html' title='Ajax with jQuery'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-4868439899266381090</id><published>2009-05-28T07:20:00.001-07:00</published><updated>2009-05-28T10:43:40.873-07:00</updated><title type='text'>Jquery: Random notes....</title><content type='html'>$ itself is an alias for the jQuery "class", therefore $() constructs a new jQuery object. &lt;br /&gt;&lt;br /&gt;find() function allows you to research the descendants of already selected elements. &lt;br /&gt;each iterates over all the elements applied to selected class or ID and do the further processing.&lt;br /&gt;&lt;br /&gt;$() aka jQuery(), is basically an implementation of the Factory&lt;br /&gt;Pattern, in which one object is responsible for the creation of other&lt;br /&gt;objects. Of course, it also follows the Prototype pattern; given that&lt;br /&gt;JS is a prototypal language and that the $()/jQuery() function extends&lt;br /&gt;itself into the new object that is created.&lt;br /&gt;&lt;br /&gt;More generally, the term factory method is often used to refer to any method whose main purpose is creation of objects. Factory methods are common in toolkits and frameworks where library code needs to create objects of types which may be subclassed by applications using the framework.&lt;br /&gt;&lt;br /&gt; $('#faq').find('dd').hide().end().find('dt').click(function() &lt;br /&gt;Here end will cancel the first find and second find will start from scratch.&lt;br /&gt;&lt;br /&gt;jQuery.fn is a shortcut for jQuery.prototype&lt;br /&gt;function($) {&lt;br /&gt;&lt;br /&gt;} .. here $ refers to jQuery object...&lt;br /&gt; &lt;br /&gt;http://simonwillison.net/2007/Aug/15/jquery/&lt;br /&gt;&lt;br /&gt;Difference between &lt;br /&gt;$().bind('click',fn) and $().click(fn)&lt;br /&gt; Two difference:&lt;br /&gt;bind can attach multiple function event to function name in a single statement.&lt;br /&gt;something like this: $("(DIV ID)").bind("mouseout focus", function(){&lt;br /&gt;&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;Bind can also attach the custom events with any UI element.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-4868439899266381090?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/4868439899266381090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/jquery-random-notes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4868439899266381090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/4868439899266381090'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/jquery-random-notes.html' title='Jquery: Random notes....'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3429595009371572107</id><published>2009-05-22T14:34:00.000-07:00</published><updated>2009-05-22T14:35:10.148-07:00</updated><title type='text'></title><content type='html'>http://www.24hourapps.com/2009/03/object-oriented-event-handling-in.html&lt;br /&gt;&lt;br /&gt;Something relevant to my work.....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3429595009371572107?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3429595009371572107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/httpwww.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3429595009371572107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3429595009371572107'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/httpwww.html' title=''/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-2296928888892424754</id><published>2009-05-22T09:20:00.000-07:00</published><updated>2009-05-22T09:21:45.253-07:00</updated><title type='text'>CSS selector tutorial</title><content type='html'>This tutorial will help in designing my web page in a better way...&lt;br /&gt;http://css.maxdesign.com.au/selectutorial/tutorial_step22.htm&lt;br /&gt;&lt;br /&gt;Use these styling rules....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-2296928888892424754?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/2296928888892424754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/css-selector-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2296928888892424754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/2296928888892424754'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/css-selector-tutorial.html' title='CSS selector tutorial'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-9211818830679454486</id><published>2009-05-20T14:27:00.000-07:00</published><updated>2009-05-20T14:29:57.531-07:00</updated><title type='text'>Mac OS: working with textedit</title><content type='html'>I was stuck for a minute with text/edit.&lt;br /&gt;Got confused that how can i save a file in html extension and get it properly displayed on browser:&lt;br /&gt;&lt;br /&gt;For this i did this:&lt;br /&gt;http://www.askdavetaylor.com/how_do_i_save_html_files_from_textedit.html&lt;br /&gt;&lt;br /&gt;I changed the format from rich text format to plain text format and it worked for me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-9211818830679454486?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/9211818830679454486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/mac-os-working-with-textedit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/9211818830679454486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/9211818830679454486'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/mac-os-working-with-textedit.html' title='Mac OS: working with textedit'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3169609112456792233.post-3017390358826214396</id><published>2009-05-20T14:06:00.000-07:00</published><updated>2009-05-20T14:11:59.464-07:00</updated><title type='text'>Internship Day 1: JQUERY resources</title><content type='html'>Event Driven Programming:&lt;br /&gt;&lt;br /&gt;http://www.mostlygeek.com/tech/event-driven-programming-with-jquery/&lt;br /&gt;&lt;br /&gt;Basic Jquery tutorial:&lt;br /&gt;&lt;br /&gt;http://ldeveloper.blogspot.com/2008/10/intro-to-jquery-basic-tutorial.html&lt;br /&gt;&lt;br /&gt;Excellent JQuery Examples:&lt;br /&gt;&lt;br /&gt;http://www.noupe.com/tutorial/51-best-of-jquery-tutorials-and-examples.html&lt;br /&gt;&lt;br /&gt;Something for designers:&lt;br /&gt;&lt;br /&gt;http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/&lt;br /&gt;&lt;br /&gt;15 minutes Jquery expert:&lt;br /&gt;&lt;br /&gt;http://www.webdevelopment2.com/give-15-minutes-jquery-expert/&lt;br /&gt;&lt;br /&gt;How JQUERY works:&lt;br /&gt;&lt;br /&gt;http://docs.jquery.com/How_jQuery_Works&lt;br /&gt;&lt;br /&gt;Few links for tomorrow reading:&lt;br /&gt;&lt;br /&gt;Advertiser Portal Documents ( check attached documents &amp; ppt ) &lt;br /&gt;http://tortoise.hq.reloadnyc.com/groups/piggypost/wiki/6d2ca/2.1.9_Detail_Design_of_Advertiser_User_Interface.html&lt;br /&gt;For the mockup -&gt; refer to the link (Reddhima's wiki ( UI Mockup ))&lt;br /&gt;P3 Portal ( Admin portal ) &lt;br /&gt;http://tortoise.hq.reloadnyc.com/groups/piggypost/wiki/0ce13/Admin_Portal.html&lt;br /&gt;Look for p3 portal link&lt;br /&gt;UI Common&lt;br /&gt;http://tortoise.hq.reloadnyc.com/groups/piggypost/wiki/253aa/User_Interface_Common.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3169609112456792233-3017390358826214396?l=saurabh-comps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saurabh-comps.blogspot.com/feeds/3017390358826214396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/internship-day-1-jquery-resources.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3017390358826214396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3169609112456792233/posts/default/3017390358826214396'/><link rel='alternate' type='text/html' href='http://saurabh-comps.blogspot.com/2009/05/internship-day-1-jquery-resources.html' title='Internship Day 1: JQUERY resources'/><author><name>Saurabh</name><uri>http://www.blogger.com/profile/00201413800388870670</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
