<?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-1769678566817975300</id><updated>2011-04-21T11:49:27.999-07:00</updated><category term='wi-fi'/><category term='Python'/><category term='Unix'/><category term='nix to windows'/><category term='emacs'/><category term='JSP'/><category term='My undedrstanding'/><category term='Gmail'/><category term='Ubuntu'/><category term='Shell Scripting'/><category term='Java'/><category term='broadcom'/><category term='Ant'/><category term='Servlet'/><category term='Programming'/><category term='networks'/><category term='Web Technology'/><title type='text'>blog of someone who never forgets to forget</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-6515967647571818251</id><published>2009-03-12T07:39:00.000-07:00</published><updated>2009-03-12T07:54:59.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Making ubuntu LiveUD</title><content type='html'>If U have to install Ubuntu and you do not have CD drive .You can make a LiveUsbDisk to install ubuntu from your usb disk.&lt;br /&gt;&lt;br /&gt;&lt;a class="http" href="http://unetbootin.sourceforge.net/"&gt;UNetbootin&lt;/a&gt; is a cool util with which U can do it. They have well documented how to make it in their wiki so there is no point in repeating it here.&lt;br /&gt;&lt;br /&gt;I installed ubuntu 8.10 through it haven't really tried other linus distros.But they offer the option of many other distros.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-6515967647571818251?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/6515967647571818251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2009/03/making-ubuntu-liveud.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/6515967647571818251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/6515967647571818251'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2009/03/making-ubuntu-liveud.html' title='Making ubuntu LiveUD'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-7082575205181268798</id><published>2009-02-26T07:24:00.000-08:00</published><updated>2009-02-26T07:51:00.843-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nix to windows'/><title type='text'>rsync for windows</title><content type='html'>Transition from *nix to windows platform is hard..it's high time someone writes "*nix to *dos for dummies". Last day I had to sync two folders and I was searching something similar to rsync in unix.Usually most of my search for tools in windows ends up in a free trail installers.Luckily this time i was blessed. Although not so feature rich as rsync it does the work done .I am talking od xcopy command in windows command promt.&lt;br /&gt;&lt;br /&gt;enough of bla bla bla tell how do we sync to folders..&lt;br /&gt;&lt;blockquote style="color: rgb(51, 0, 153);"&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;xcopy &lt;/span&gt;&lt;source folder=""&gt;&lt;destination folder=""&gt;&lt;span style="font-style: italic; color: rgb(51, 102, 255);"&gt;[source] [destination] \s \d&lt;/span&gt;&lt;br /&gt;&lt;/destination&gt;&lt;/source&gt;&lt;/blockquote&gt;&lt;source folder=""&gt;&lt;destination folder=""&gt;&lt;br /&gt;\s   : for subdirectories (similar to -r in *nix)&lt;br /&gt;\d  : for copying just the folder differences&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/destination&gt;&lt;/source&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-7082575205181268798?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/7082575205181268798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2009/02/rsync-for-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/7082575205181268798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/7082575205181268798'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2009/02/rsync-for-windows.html' title='rsync for windows'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-4112966277943776935</id><published>2008-10-29T20:29:00.000-07:00</published><updated>2008-10-29T22:32:13.401-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='JSP'/><title type='text'>onsubmit attribute of the html form</title><content type='html'>Last day my friend had a problem...she had to do some extra work with the submit button other than embedding the parameter values to HTTP request. She had to clear the form contents before the form get submitted. So the basic question comes down to...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How do we change the behavior of Submit button of the HTML form ?? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;HTML form tag contains an  &lt;a href="http://www.w3.org/TR/REC-html40/interact/scripts.html#scripts"&gt;intrinsic event attribute&lt;/a&gt; called &lt;a href="http://www.w3.org/TR/REC-html40/interact/scripts.html#adef-onsubmit"&gt;onsubmit&lt;/a&gt;. The &lt;samp&gt;onsubmit&lt;/samp&gt; event is fired on the click of the submit button. And the form does not get submitted if the expression returns a false (it gets submitted on all the other cases...whatever scrap U write in the expression)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So the only way to stop the html form from embedding the parameters to the HTTP request is to return a false from onsubmit event function   should look something like the code below or something which does the same.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;&lt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(0, 0, 0);font-size:78%;" &gt;`&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;form action="were_is_the_next_page.jsp" onsubmit="return false;" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Remember &lt;span style="font-style: italic;"&gt;return false&lt;/span&gt; do not &lt;span style="font-style: italic;"&gt;assign false&lt;/span&gt; ... Advise from someone who already fell into the pit..it was too dark out there.. :)&lt;br /&gt;&lt;br /&gt;Typical example of using onsubmit button.&lt;br /&gt;&lt;br /&gt;I want to reset the form after submitting the data.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;resetFormSubmit = function(formObj)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;  formObj.submit();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;  formObj.reset();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;  return false();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;&lt;&lt;span style="color: rgb(0, 0, 0);font-size:78%;" &gt;`&lt;/span&gt;form action="something.jsp" onsubmit="resetFormSubmit(this)" &gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;  &lt;&lt;span style="color: rgb(0, 0, 0);font-size:78%;" &gt;`&lt;/span&gt;input type="text"  name="myVal" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;  &lt;&lt;span style="color: rgb(0, 0, 0);font-size:78%;" &gt;`&lt;/span&gt;input type=submit value="Submit"/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;&lt;&lt;span style="color: rgb(0, 0, 0);font-size:78%;" &gt;`&lt;/span&gt;/form&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Now what role does the return false do here...Try the code with no return false U will see that the request parameters gets filled with resetted value. Its because the form values get embedded to HTTP request twice..Once on the call of &lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;formObj.submit() &lt;/span&gt;and the second time after it comes out of the &lt;span style="font-style: italic; color: rgb(153, 153, 255);"&gt;resetFormSubmit &lt;/span&gt;button.Thus the next page get called with resetted values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-4112966277943776935?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/4112966277943776935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/10/onsubmit-attribute-of-html-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/4112966277943776935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/4112966277943776935'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/10/onsubmit-attribute-of-html-form.html' title='onsubmit attribute of the html form'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-1136868066064053202</id><published>2008-09-24T03:10:00.000-07:00</published><updated>2008-09-26T04:00:47.964-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servlet'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Technology'/><category scheme='http://www.blogger.com/atom/ns#' term='JSP'/><category scheme='http://www.blogger.com/atom/ns#' term='My undedrstanding'/><title type='text'>My understanding of sessions in web application.</title><content type='html'>Most often in web applications we might need to manage information over a series of requests or over a user session. Lets take the classic example of adding 2 numbers.  In an ordinary scenarios we will use a form to get the 2 numbers ,send it to the server which adds the no and sends it back to the user as response.  The above mentioned computation consists of only one request and response.  Now we want the interactions in different way. Instead of sending the first number and second number in a single page we want the first page sending the first number and second page sending the second number and a third page showing the results.  These series of request can be called as user session.  Now the issue with this design is that the computation spans over 3 request-response round trip.  As HTTP is a stateless protocol, second request does not have any relation to the first request for the server.  So now the question is how do we build this relation or how do we make the server aware that a series of request comes under one user session.&lt;br /&gt;&lt;br /&gt;There are many ways through which the state information over a series of requests can be stored.  It can be done by storing the information in the client side(cookies),in the server side(sessions,continuations) carry it with the request and response headers(hidden form fields).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Session management in servlet container&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The container maintains memory space for each session which is identified by an id.  All the information we need to keep over a session are maintained in this memory space and are maintained as java objects.  The unique id known as session id is used to identify which session a particular request belongs to.  So obviously session id has to be carried along with the request. The container allots the session object according to session id of the request.&lt;br /&gt;&lt;br /&gt;Now its time to get our hands wet...We shall create 3 JSP pages&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;firstpage.jsp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;html&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;head&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;title&gt; The first page&lt; /title &gt;&lt;br /&gt;&lt; /head &gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;body&gt;&lt;br /&gt;&lt; &lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;form action="secondpage.jsp" method="get"&gt;&lt;br /&gt; First no :&lt;br /&gt; &lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;input type="text" name="firstno" value="0"&gt;  &lt;&gt;&lt;br /&gt; &lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;input type="submit" value="Next"&gt;&lt;br /&gt;&lt; /form &gt;&lt;br /&gt;&lt; /body &gt;&lt;br /&gt;&lt; /html &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  This page serves as interface to get the 1st no from the user.  The page gets the no and puts it in the request object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;secondpage.jsp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;html&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;head&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;title&gt; The Second page&lt; /title &gt;&lt;br /&gt;&lt; /head &gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;body&gt;&lt;br /&gt;&lt; %         String a = request.getParameter("firstno");         session.setAttribute("firstno",a);       % &gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;form action="resultpage.jsp" method="get"&gt;&lt;br /&gt;Second no :&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;input type="text" name="secondno" value="0"&gt;  &lt;&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;input type="submit" value="Next"&gt;&lt;br /&gt;&lt; /form &gt;&lt;br /&gt;&lt; /body &gt;&lt;br /&gt;&lt; /html &gt;&lt;br /&gt;&lt;br /&gt;  Similar to the first page this page receives the 2nd no puts it in the request object. In addition, it also adds the value of the 1st no to the session object so that it can be retrieved later.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;resultpage.jsp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;html&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;head&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;title&gt; Result Page&lt; /title &gt;&lt;br /&gt;&lt; /head &gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;body&gt;&lt;br /&gt;&lt; %    int b=Integer.parseInt(request.getParameter("secondno"));    int a=Integer.parseInt(session.getAttribute("firstno").toString());      out.println(a+b);   % &gt;&lt;br /&gt;&lt; /body &gt;&lt;br /&gt;&lt; /html &gt;&lt;br /&gt;&lt;br /&gt;This page processes the input values and gives the result. It retrieves the second number from the previous request object and the first number from the session object.&lt;br /&gt;&lt;br /&gt;The above web application should run without any problem in a simple jsp/Tomcat setup.  OK if you were success full in running the above web application we can continue with the&lt;br /&gt;discussion.  Now we have used session object to store our values in it.&lt;br /&gt;&lt;br /&gt;One question which used to bother me when I did session programming is how does the request carry the session id. HTTP spec does not contain any information on session, so HTTP has no clue what a session is. So the container have to implement some way to pass the session id from one page to the next.  This is what Apache Tomcat a jsp/servlet container&lt;br /&gt;does. It checks a parameter with key JSESSIONID in cookie values as well as request URL ,if it finds one it picks up the session object corresbonding to that particular session-id.&lt;br /&gt;&lt;br /&gt;My professor use to teach me web technology by doing postmortem on HTTP request/response packets.  I have found itthe best way to learn web technology of any level.So lets see the HTTP request headers of our small web application.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;HTTP request headers of the first page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Host localhost:8080&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;User-Agent Mozilla/5.0 Gecko/2008070208 Firefox/3.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept-Language en-us,en;q=0.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept-Encoding gzip,deflate&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Keep-Alive 300&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Connection keep-alive&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Cookie JSESSIONID=DF88F04F5D2574711121214DD4AC9FA7&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Nothing intresting in HTTP response. But if you see the HTTP request you can see teh cookie parameters send to the server with t he first request&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Cookie&lt;/span&gt;  &lt;span style="font-style: italic;"&gt;JSESSIONID=DF88F04F5D2574711121214DD4AC9FA7 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is how the session managment is done is using cookies. But we are not using sessions in our first page then why do it pass the session id. Its because JSP by default checks weather there is a session existing for that request if it does not exit it creates a session and sets its id in the cookie parameter. That's why we see session id from the first page request. Now lets scan the second pages request and response headers.&lt;br /&gt;&lt;br /&gt;HTTP request headers of the second page&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Host localhost:8080&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;User-Agent Mozilla/5.0 Gecko/2008070208 Firefox/3.0.1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept-Language en-us,en;q=0.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept-Encoding gzip,deflate&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Keep-Alive 300&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Connection keep-alive&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Referer http://localhost:8080/httpsession/firstpage.jsp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Cookie JSESSIONID=DF88F04F5D2574711121214DD4AC9FA7&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you look at the JSESSIONID value in the cookie header of the request you will find the the same session id value.  So the container keeps the session id in the cookie till the session gets destroyed. Now the third request header will also have a similar cookie header parameter. This is how sessions are implemented over cookies. Now try to disable cookies in&lt;br /&gt;your browser, you will find that your web application does not work. So how do we do session management when cookies are disabled we can see in the later discussion.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Ohhh...Cookies are disabled..! URL rewritting for yor rescue :) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So what you do when cookies are disabled.You have to find some other way of transferring the session id. I have mentioned in the earlier discussion that Tomcat looks in the cookie as well as request parameters for JSESSIONID parameter. So we have to embed session id in the request URL. Lets try it out.&lt;br /&gt;&lt;br /&gt;There won't be any change to the first and the result page they will the same.  Remember we do not have problem in adding and removing values to and from the session object but our&lt;br /&gt;problem is how do we pass on the session id between two requests. That's why there is no change in the result page.&lt;br /&gt;&lt;br /&gt; &lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;head&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;html&gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;title&gt; The Second page&lt; /title &gt;&lt;br /&gt;&lt; /head &gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;body&gt;&lt;br /&gt;&lt; %            String a = request.getParameter("firstno");            session.setAttribute("firstno",a);            String url =response.encodeURL("resultpage.jsp");           % &gt;&lt;br /&gt;&lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;form action="&lt;"&gt;  method="get" &gt;&lt;br /&gt;  Second no : &lt; type="text" name="secondno" vlaue="0"&gt;  &lt;&gt;&lt;br /&gt;  &lt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;form type="submit" value="Next"&gt;&lt;br /&gt;&lt; /form &gt;&lt;br /&gt;&lt; /body &gt;&lt;br /&gt;&lt; /html &gt;&lt;br /&gt;&lt;br /&gt;Here we generate the form action URL from the through encodeURL method.  encodeURL first checks whether it could add the session-id in the cookies ,if it cannot add it to the&lt;br /&gt;cookies it rewrites the URL adding the session id to the request URL.  So if the cookies are disabled in the browser the URL string which is replaced at the form.  Lets us examine&lt;br /&gt;the request headers of resultpage.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Host localhost:8080&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; User-Agent Mozilla/5.0 Gecko/2008091620 Firefox/3.0.2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Accept-Language en-us,en;q=0.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Accept-Encoding gzip,deflate&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Keep-Alive 300&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Connection keep-alive&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; Referer http://localhost:8080/httpsession/secondpage.jsp?firstno=34&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can notice that there is no cookie header in this particular request.So it is obvious that session id is not passed through cookies.  Now if we see the URL at the address bar of the page it would be something like this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;      http://localhost:8080/httpsession/resultpage.jsp;jsessionid=B5EB1435EDF939B65A20148187884DE8?secondno&lt;/span&gt;=45&lt;br /&gt;&lt;br /&gt;You can do the same thing by using this code instead of using encodeURL&lt;br /&gt;&lt;br /&gt; String url="resultpage.jsp;jsessionid="+request.getSession().getId();&lt;br /&gt;&lt;br /&gt;But it won't check whether cookies are enabled or not.&lt;br /&gt;&lt;br /&gt;So encodeURL rewrites the URL to embed the session-id parameter to it.  The container identifies which session a particular request belongs to by looking at the jsessionid value in the request URL. You might have noticed that unlike the request parameter the jsessionid is embedded in to the URL using a ; delimiter. So jsessionid is not a request parameter in the request.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-1136868066064053202?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/1136868066064053202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/09/my-understanding-of-sessions-in-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/1136868066064053202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/1136868066064053202'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/09/my-understanding-of-sessions-in-web.html' title='My understanding of sessions in web application.'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-2575125480531002038</id><published>2008-09-14T21:04:00.000-07:00</published><updated>2008-09-14T21:05:29.062-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Enable Smooth fonts on Ubuntu Linux</title><content type='html'>How to enable smooth fonts in ubuntu...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.howtogeek.com/howto/ubuntu/enable-smooth-fonts-on-ubuntu-linux/"&gt;http://www.howtogeek.com/howto/ubuntu/enable-smooth-fonts-on-ubuntu-linux&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-2575125480531002038?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/2575125480531002038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/09/enable-smooth-fonts-on-ubuntu-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/2575125480531002038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/2575125480531002038'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/09/enable-smooth-fonts-on-ubuntu-linux.html' title='Enable Smooth fonts on Ubuntu Linux'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-8744587477952582374</id><published>2008-08-29T21:15:00.000-07:00</published><updated>2008-09-23T05:39:35.894-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='networks'/><title type='text'>TCP/IP and Indian postel system</title><content type='html'>&lt;span style="font-style: italic;"&gt;(Disclaimer: Thes are not my thoughts but was told by Amarnath Raja ,InApp CEO to us during network class...I found it so good that I am writing it down)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;IP is an unreliable protocol .It takes its best effort to take the packets to wherever its destined to ...that's it..&lt;br /&gt;&lt;br /&gt;We could compare IP to Indian postal system.We send a post mail and we hopes it will reach the receiver (let's assume the  postal system takes its best efforts to take it to the receiver).And the postal system works because its unreliable.Lets say tomorrow government decides to make the Indian postal system reliable..Then ,if I have to send a postal mail...I won't be putting the mail in the mail box, but I will be handing over to a person and he should give a receipt of receival for it,then the  same procedure  has to be followed in each  point of  transfer  of  the mail..and there would be at least 5 points where the mail information has to be logged.Think of our postal employees doing the same for the huge no: of mails each day. The system will fail miserable. Just the same way if IP protocol had to made sure reliability in each point of its transfer it would have been a failure.&lt;br /&gt;&lt;br /&gt;Now we can see how reliability is attained by using TCP over unreliable IP protocol. Consider I am writing a book consisting of 25 chapters  (wow! I am writing a book with 25 chapters..really funny) .I find a publisher and he agrees to print it. We agrees that the content will be sent chapter by chapter over post. I wrote the 1st chapter sends it by post writes the second sends it and does the same for 3,4,5,6 and the publisher receives it (put he doesn't tell me he have got it..why to waste money ). Now something mysterious happens to the  7th  packet. I  completes the 7th chapter and send to the publisher, but he doesn't receives it.The publisher who is well aware of Indian postal system ignores it and doesn't  bother to inform me. While I kept on sending 8th,9th,10th chapters.The publisher receives  all these  chapters  and also receives the missing 7th chapter which he happily keeps it in the correct position .If he had called me for informing the missing of 7th packet he would have wasted a phone call and extra effort of resending the chapter. Now the procedure continues in which 14th chapters gets missed again. The publisher ignores it as usual and continues to recieve other chapters till 20th, now the publisher feels that chapter 14 might have vanished to the black hole of Indian postal system.  So he calls me up and tells to send chapter 14 again and sends it. During these time he receives rest of the chapters .When he recieves chapter 14 he puts it in his position . Thus a reliable system of transfer is attained over unreliable postal system. TCP does the same thing. It makes sure the transfer of IP packets in an end to end basis.Inshort it does'nt care about the whareabout of each packets when they are send, but at the end of the session (and even inbetween) checks for missing packets and acts according to it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-8744587477952582374?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/8744587477952582374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/08/tcpip-and-indian-postel-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/8744587477952582374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/8744587477952582374'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/08/tcpip-and-indian-postel-system.html' title='TCP/IP and Indian postel system'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-8906074864706604269</id><published>2008-08-29T20:52:00.000-07:00</published><updated>2008-08-29T20:54:45.497-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>emacs:spellcheck</title><content type='html'>to check for spelling in emacs.press ctrl-space and drag to select the  area to be spell checked then give ispell command(M-x ispell).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-8906074864706604269?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/8906074864706604269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/08/emacsspellcheck.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/8906074864706604269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/8906074864706604269'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/08/emacsspellcheck.html' title='emacs:spellcheck'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-3615718660043242769</id><published>2008-08-29T19:48:00.000-07:00</published><updated>2008-08-29T19:51:02.135-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>emacs: preview html page in browser</title><content type='html'>If you want to preview an html page editing in emacs press&lt;br /&gt;ctrl-c ctrl-v&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-3615718660043242769?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/3615718660043242769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/08/emacs-preview-html-page-in-browser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/3615718660043242769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/3615718660043242769'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/08/emacs-preview-html-page-in-browser.html' title='emacs: preview html page in browser'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-5716330638669277286</id><published>2008-04-02T05:06:00.000-07:00</published><updated>2008-04-02T05:10:43.790-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Setting java path in ubuntu</title><content type='html'>To set the java path in ubuntu you need to edit the profile file&lt;br /&gt;&lt;br /&gt;# vi /etc/profile&lt;br /&gt;&lt;br /&gt;add these lines into the file&lt;br /&gt;&lt;br /&gt;JAVA_HOME=/usr/lib/jdk1.6.0_03&lt;br /&gt;export JAVA_HOME&lt;br /&gt;PATH=${JAVA_HOME}/bin:${PATH}&lt;br /&gt;export PATH&lt;br /&gt;&lt;br /&gt;the java_home path should be the path were your jvm is located&lt;br /&gt;usually it will be in the above location.&lt;br /&gt;&lt;br /&gt;(this is only one of the several available solution)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-5716330638669277286?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/5716330638669277286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/04/setting-java-path-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/5716330638669277286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/5716330638669277286'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/04/setting-java-path-in-ubuntu.html' title='Setting java path in ubuntu'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-7012084931153796286</id><published>2008-03-26T21:41:00.000-07:00</published><updated>2008-03-27T23:40:12.486-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Gmail'/><title type='text'>gmail-notifier in ubuntu</title><content type='html'>For getting Thunderbird like mail-notification for gmail... in Ubuntu...&lt;br /&gt;&lt;br /&gt;U can use checkgmail package for it...&lt;br /&gt;&lt;br /&gt;For installation add these repos in the aptitude source list&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;$ gedit /etc/apt/sources.list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;add the lines&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;deb http://asher256-repository.tuxfamily.org dapper main dupdate french&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; deb http://asher256-repository.tuxfamily.org ubuntu main dupdate french&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;now update the aptitude and install checkgmail&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;$ aptitude update&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;$ aptitude install checkgmail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;we can invoke the application from command prompt..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;checkgmail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;If there is no luck with first command try this&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;$ checkgmail -no_cookies&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;(google has disabled cookies for security reasons it seems...I had to give the -no_cookies to work in my system)&lt;br /&gt;&lt;br /&gt;Now you can fill in the account details and other option in the interface which comes up...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If there is a proxy you may need to set the https proxy also before running the command&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;export https_proxy = https://[proxyadress]:[port]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;U might get a better explanation at&lt;br /&gt;&lt;br /&gt;http://www.debianadmin.com/gmail-notifier-for-ubuntu.html&lt;br /&gt;&lt;br /&gt;&lt;proxyaddress:port&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/proxyaddress:port&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-7012084931153796286?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/7012084931153796286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/03/gmail-notifier-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/7012084931153796286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/7012084931153796286'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/03/gmail-notifier-in-ubuntu.html' title='gmail-notifier in ubuntu'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-521549240081212155</id><published>2008-03-05T20:49:00.000-08:00</published><updated>2008-09-23T05:42:08.327-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><title type='text'>Setting proxy for shell environment through script</title><content type='html'>I was fed up of writing long commands for setting http_proxy.So thought putting it as a script and invoking it whenever needed.&lt;br /&gt;&lt;br /&gt;This was the one and only line in the script&lt;br /&gt;&lt;span style="font-style: italic;"&gt;export http_proxy=&lt;ip&gt;http://[ip address]:[port no]&lt;proxy&gt;&lt;br /&gt;&lt;/proxy&gt;&lt;/ip&gt;&lt;/span&gt;&lt;br /&gt;I tried to invoke the script as normal&lt;br /&gt;sh proxy.sh&lt;br /&gt;&lt;br /&gt;The scripts works fine but the proxy settings does'nt change.&lt;br /&gt;After lot of googling I found that it will work if we invoke in some other way.&lt;br /&gt;&lt;br /&gt;. proxy.sh&lt;br /&gt;([space] [dot] &lt;space&gt;proxy.sh)&lt;br /&gt;&lt;br /&gt;It worked...&lt;br /&gt;I don't know what does dot&lt;space&gt; stands for.I don't know anything of shell scripting...But planning to learn it....Hope to reply this post later..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/space&gt;&lt;/space&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-521549240081212155?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/521549240081212155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/03/setting-proxy-for-shell-environment.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/521549240081212155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/521549240081212155'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/03/setting-proxy-for-shell-environment.html' title='Setting proxy for shell environment through script'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-3830296919832179920</id><published>2008-02-26T20:04:00.000-08:00</published><updated>2008-02-26T20:11:40.290-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ant'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><title type='text'>Ant JVM proxy configuration</title><content type='html'>I don't know much about apache ant.Last day I was trying to build a project and the build failed.Because there was an error while downloading a package from the net.After hours of battle it was figured out that there is a proxy configuration setting for Ant's JVM.We can set proxy with&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;export ANT_OPTS="-Dhttp.proxyHost=&lt;proxy&gt; -Dhttp.proxyPort=&lt;proxy&gt;"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;eg:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;export ANT_OPTS="-Dhttp.proxyHost=192.168.0.2 -Dhttp.proxyPort=8080"&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-3830296919832179920?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/3830296919832179920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/02/ant-jvm-proxy-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/3830296919832179920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/3830296919832179920'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/02/ant-jvm-proxy-configuration.html' title='Ant JVM proxy configuration'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-713899233169118086</id><published>2008-02-09T22:43:00.000-08:00</published><updated>2008-02-09T23:00:53.771-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><title type='text'>To copy,paste between emacs and other applications....</title><content type='html'>By default U can't copy from an application say Firefox to emacs...&lt;br /&gt;(a difficult situation for somebody like me who tweak on others code)&lt;br /&gt;&lt;br /&gt;Copy pasting from emacs to aother applications are also not supported...&lt;br /&gt;&lt;br /&gt;U can get it done by adding just two lines to your .emacs file..&lt;br /&gt;(U can't copy paste it if U R using emacs for editing .emacs file...)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;(setq x-select-enable-clipboard t)&lt;br /&gt;(setq interprogram-paste-function&lt;br /&gt;                 'x-cut-buffer-or-selection-value)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Done...&lt;br /&gt;&lt;br /&gt;Now copy something to your clipboard from an application say firefox and&lt;br /&gt;click C-y in emacs it gets copied....&lt;br /&gt;&lt;br /&gt;Now do C-k(kill) a line a try C-v in any other application  say gedit..it gets&lt;br /&gt;pasted...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-713899233169118086?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/713899233169118086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/02/to-copypaste-between-emacs-and-other.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/713899233169118086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/713899233169118086'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/02/to-copypaste-between-emacs-and-other.html' title='To copy,paste between emacs and other applications....'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-7987295180227451597</id><published>2008-02-07T00:01:00.000-08:00</published><updated>2008-02-07T01:15:35.694-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Adding themes to emacs</title><content type='html'>U can add cool themes with a single command in ubuntu..&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;span style="font-weight: bold;"&gt;aptitude install emacs-goodies-el&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Themes are installed...&lt;br /&gt;&lt;br /&gt;Now start emacs and try&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;M-x color-theme-select&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;U will get menu list of themes.Select one from the list by pressing RET.&lt;br /&gt;&lt;br /&gt;U have a new theme for Ur emacs....&lt;br /&gt;&lt;br /&gt;The theme will stay only for that session of emacs...&lt;br /&gt;&lt;br /&gt;If U want the theme to stay across sessions...add this code to the .emacs file&lt;br /&gt;in the home directory.U should have .themesettings and .curTheme file in ur home&lt;br /&gt;director(I was not having .themesettings I had to create it for this tweak)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;(require ‘color-theme)&lt;br /&gt;(setq theme-load-from-file t)&lt;br /&gt;(defun my-onload()&lt;br /&gt;       (setq filename (concat (expand-file-name "~") "/.themesettings"))&lt;br /&gt;   (if (file-exists-p filename)&lt;br /&gt;       (progn&lt;br /&gt;           (load-file filename)&lt;br /&gt;           (if (equalp theme-load-from-file t)&lt;br /&gt;               (progn&lt;br /&gt;                   (setq filename&lt;br /&gt;                       (concat (expand-file-name "~") "/.curTheme"))&lt;br /&gt;                   (if (file-exists-p filename)&lt;br /&gt;                       (progn&lt;br /&gt;                           (message "selecting theme from .curTheme")&lt;br /&gt;                           (load-file filename)&lt;br /&gt;                           (color-theme-install (my-color-theme))&lt;br /&gt;                )))&lt;br /&gt;               (funcall theme-default)&lt;br /&gt;       ))&lt;br /&gt;       (message "selecting theme from color-theme-standard")&lt;br /&gt;   (color-theme-install(color-theme-standard)&lt;br /&gt;   )))&lt;br /&gt;  &lt;br /&gt;   (defun my-kill-saves()&lt;br /&gt;       (if (equalp theme-load-from-file t)&lt;br /&gt;           (progn&lt;br /&gt;               (color-theme-print)&lt;br /&gt;               (write-file (concat (expand-file-name "~") "/.curTheme"))&lt;br /&gt;   )))&lt;br /&gt;  &lt;br /&gt;   (add-hook 'after-init-hook 'my-onload)&lt;br /&gt;   (add-hook 'kill-emacs-hook 'my-kill-saves)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now the selected theme will stay if we restart emacs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-7987295180227451597?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/7987295180227451597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/02/adding-themes-to-emacs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/7987295180227451597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/7987295180227451597'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/02/adding-themes-to-emacs.html' title='Adding themes to emacs'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-5692558566134500309</id><published>2008-01-31T21:26:00.000-08:00</published><updated>2008-01-31T21:32:21.628-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>Problem with python-mode.el in emacs22.1</title><content type='html'>When I tried to get into python-mode in emacs 22.1 I got this error:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; Cannot open load file: python-mode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Solution to this problem:&lt;br /&gt;Entering the following command in the command line solved my problem.Don't know&lt;br /&gt;why it came and how the command solved my problem but did a quick fix...&lt;br /&gt; &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;dpkg --purge python-mode&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-5692558566134500309?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/5692558566134500309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/01/problem-with-python-modeel-in-emacs221.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/5692558566134500309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/5692558566134500309'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/01/problem-with-python-modeel-in-emacs221.html' title='Problem with python-mode.el in emacs22.1'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-3069118511514630069</id><published>2008-01-13T21:57:00.000-08:00</published><updated>2008-01-13T22:02:58.956-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Modifieng partitions through LiveCD</title><content type='html'>Sometimes U may need to modify,resize,or move the partions...&lt;br /&gt;U can do it using Ubuntu Live CD&lt;br /&gt;&lt;br /&gt;First Boot up the system using Live Cd&lt;br /&gt;&lt;br /&gt;Open the application gparted (GUI based partition modifier which comes packed with Live CD)&lt;br /&gt;&lt;br /&gt;In the terminal give this command with root&lt;br /&gt;&lt;br /&gt;&gt; sudo gparted&lt;br /&gt;&lt;br /&gt;now U can use the GUI tool to edit the partitions...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-3069118511514630069?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/3069118511514630069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/01/modifieng-partitions-through-livecd.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/3069118511514630069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/3069118511514630069'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/01/modifieng-partitions-through-livecd.html' title='Modifieng partitions through LiveCD'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-2316681033699977126</id><published>2008-01-09T04:23:00.001-08:00</published><updated>2008-01-09T04:24:52.825-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>To install nxml-mode in emacs using aptitude</title><content type='html'>aptitude install nxml-mode&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-2316681033699977126?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/2316681033699977126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/01/to-install-nxml-mode-in-emacs-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/2316681033699977126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/2316681033699977126'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/01/to-install-nxml-mode-in-emacs-using.html' title='To install nxml-mode in emacs using aptitude'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-6591090327251169876</id><published>2008-01-09T04:23:00.000-08:00</published><updated>2008-09-23T05:42:34.688-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='emacs'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>To install nxml-mode in emacs using aptitude</title><content type='html'>aptitude install nxml-mode&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-6591090327251169876?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/6591090327251169876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/01/to-install-nxml-mode-in-emacs-using_09.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/6591090327251169876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/6591090327251169876'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/01/to-install-nxml-mode-in-emacs-using_09.html' title='To install nxml-mode in emacs using aptitude'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-6083203675523636629</id><published>2008-01-08T01:14:00.000-08:00</published><updated>2008-01-08T01:52:48.304-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wi-fi'/><category scheme='http://www.blogger.com/atom/ns#' term='broadcom'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Wi-Fi fix for UBUNTU on Braodcom network card</title><content type='html'>This link give a 5 minute solution to Broadcom Chipset problem in ubuntu...&lt;br /&gt;&lt;br /&gt;&lt;a href="https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx/Feisty_No-Fluff"&gt;Broadcom Chipset  fix in ubuntu 5 minute solution&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If U really want to know what U R doing...&lt;br /&gt;&lt;br /&gt;&lt;a href="https://help.ubuntu.com/community/WifiDocs/Device/Broadcom_BCM4311_rev_01_(ndiswrapper)"&gt;Broadcom Chipset  fix in ubuntu 5 minute solution detailed solution&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-6083203675523636629?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/6083203675523636629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/01/wi-fi-fix-for-ubuntu-on-braodcom.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/6083203675523636629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/6083203675523636629'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/01/wi-fi-fix-for-ubuntu-on-braodcom.html' title='Wi-Fi fix for UBUNTU on Braodcom network card'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769678566817975300.post-5984263345470835382</id><published>2008-01-02T20:55:00.000-08:00</published><updated>2008-01-02T21:12:57.985-08:00</updated><title type='text'>To install javascript-mode.el on emacs</title><content type='html'>&lt;code&gt;C-h v load-path will give path were U need to put the javascript-mode.el file&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;code&gt;Include this in the .emacs file&lt;br /&gt;(if there is no .emacs file make one in the home directory)&lt;br /&gt;&lt;br /&gt;;; for javascript files&lt;br /&gt;(autoload 'javascript-mode "javascript-mode" "JavaScript mode" t)&lt;br /&gt;(setq auto-mode-alist (append '(("\\.js$" . javascript-mode))&lt;br /&gt;                             auto-mode-alist))&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This should work....&lt;br /&gt;&lt;br /&gt;Its explained in more detailed way at&lt;br /&gt;http://www.divmod.org/trac/attachment/wiki/DivmodNevow/Athena/Emacs/Files/javascript-mode.el&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1769678566817975300-5984263345470835382?l=blog4gng.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog4gng.blogspot.com/feeds/5984263345470835382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog4gng.blogspot.com/2008/01/to-install-javascript-modeel-on-emacs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/5984263345470835382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769678566817975300/posts/default/5984263345470835382'/><link rel='alternate' type='text/html' href='http://blog4gng.blogspot.com/2008/01/to-install-javascript-modeel-on-emacs.html' title='To install javascript-mode.el on emacs'/><author><name>Girish N Gopal</name><uri>http://www.blogger.com/profile/03230308298273140258</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_FgLTP7EBH88/S2PE6UMrYEI/AAAAAAAAClE/OGD5YKhk4-U/S220/profile.jpg'/></author><thr:total>0</thr:total></entry></feed>
