<?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-7176430855099171158</id><updated>2011-11-27T15:31:37.221-08:00</updated><category term='PROPFIND'/><category term='proxy'/><category term='error'/><category term='commit'/><category term='svn'/><title type='text'>Blank Mindedness !!!</title><subtitle type='html'>There is a poetry in everything beautiful. Arts overwhelm science, but in the end the best state is void.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-5165749772939870628</id><published>2011-09-13T13:49:00.000-07:00</published><updated>2011-09-13T13:49:51.859-07:00</updated><title type='text'>Ways to import a python module with differences.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I was always confused between the&amp;nbsp;subtleties&amp;nbsp;of&lt;br /&gt;&lt;br /&gt;import X&lt;br /&gt;&lt;br /&gt;from X import *&lt;br /&gt;&lt;br /&gt;import X as Y&lt;br /&gt;&lt;br /&gt;__import__("X")&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.effbot.org/zone/import-confusion.htm"&gt;This (by effbot)&lt;/a&gt;&amp;nbsp;is a nice link which explains the intricacies.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-5165749772939870628?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/5165749772939870628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=5165749772939870628' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5165749772939870628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5165749772939870628'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2011/09/ways-to-import-python-module-with.html' title='Ways to import a python module with differences.'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-4851114005544999655</id><published>2011-04-02T00:09:00.000-07:00</published><updated>2011-04-02T00:11:54.678-07:00</updated><title type='text'>Reversing a singly linked list using recursion aka Recursively link reversal</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;The code to reverse a singly linked list using iteration is trivial, using the three pointer method. Lets have a look at the method to reverse a linked list recursively. Not only this is fast, but clears your pointer concepts if you think it cleanly.&lt;br /&gt;&lt;br /&gt;Lets define the function.&lt;br /&gt;&lt;br /&gt;It would be something like this:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;Node* reverseList(Node** head)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;This means we are passing the address of the pointer pointing to the head node. We do so, because this is where we want to store the return address. Every time we recurse, we do the following:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;1. store the current head in a new variable called now.&lt;/span&gt;&lt;br /&gt;2. check if we are at the end of list&lt;br /&gt;3. if we are, we just return&lt;br /&gt;4. if we arent, we collect the newhead from the rest of the list&lt;br /&gt;5. we point the now-&amp;gt;next-&amp;gt;next &amp;nbsp;(now which we stored in 1) to now.&lt;br /&gt;6. we make now-&amp;gt;next = NULL.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;Node* reverseList(Node **head) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if (*head == NULL)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;return NULL;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Node *now = *head;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Node *newhead = NULL;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if((*head)-&amp;gt;next == NULL)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;return *head;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;newhead = reverseList(&amp;amp;((*head)-&amp;gt;next));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;now-&amp;gt;next-&amp;gt;next = now;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;now-&amp;gt;next = NULL;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;return newhead;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Lets consider an example&lt;b&gt;&lt;i&gt; 1-&amp;gt;2-&amp;gt;3-&amp;gt;4-&amp;gt;NULL&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Call 1:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;*head points to 1&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;saved *head into now, so now points to 1&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;newhead = NULL&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;enter the else, recurse, i.e. reverseList(2)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Call 2&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;/span&gt;*head points to 2&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;saved *head into now, so now points to 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;newhead = NULL&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;enter the else, recurse, i.e.&amp;nbsp;&lt;/span&gt;reverseList(3)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Call 3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;*head points to 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;saved *head into now, so now points to 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;newhead = NULL&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;enter the else, recurse, i.e.&amp;nbsp;&lt;/span&gt;reverseList(4)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Call 4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;*head points to 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;saved *head into now, so now points to 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;head-&amp;gt;next = NULL&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;enter the if, return from Call 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Return into Call 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;newhead now stores *head = 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now = 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next = 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next-&amp;gt;next = now &amp;nbsp;means we set &amp;nbsp;&lt;i&gt;&lt;b&gt;3 &amp;lt;- 4&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next = NULL &amp;nbsp;means we set &lt;i&gt;&lt;b&gt;NULL &amp;lt;- 3 &amp;lt;- 4&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;return newhead, i.e. 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Return into Call 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;newhead now stores &amp;nbsp;4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now = 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next = 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next-&amp;gt;next = now &amp;nbsp;means we set &amp;nbsp;&lt;i&gt;&lt;b&gt;2 &amp;lt;- 3 &amp;lt;- 4&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next = NULL &amp;nbsp;means we set &lt;i&gt;&lt;b&gt;NULL &amp;lt;- 2 &amp;lt;- 3 &amp;lt;- 4&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Return into Call 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;newhead now stores &amp;nbsp;4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now = 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next = 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next-&amp;gt;next = now &amp;nbsp;means we set &amp;nbsp;&lt;i&gt;&lt;b&gt;1 &amp;lt;- 2 &amp;lt;- 3 &amp;lt;- 4&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;now-&amp;gt;next = NULL &amp;nbsp;means we set &lt;i&gt;&lt;b&gt;NULL &amp;lt;- 1 &amp;lt;- 2 &amp;lt;- 3 &amp;lt;- 4&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;we return newhead&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-4851114005544999655?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/4851114005544999655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=4851114005544999655' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4851114005544999655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4851114005544999655'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2011/04/reversing-singly-linked-list-using.html' title='Reversing a singly linked list using recursion aka Recursively link reversal'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-5736414362047947205</id><published>2011-03-03T14:25:00.000-08:00</published><updated>2011-03-03T14:25:21.545-08:00</updated><title type='text'>Arrow keys not working properly on terminal</title><content type='html'>Arrow keys did not seem to be doing what they were supposed to with a few applications. With cscope it wasn't going up and down the menu items. Instead when I pressed the keys, it was giving a whole lot of control characters. With yast2, the arrow keys wouldn't simply make the cursor move. The system was a Suse Linux Enterprise Edition box. I was trying to figure out what makes it move on Ubuntu(my other box) and not on SLES.&lt;br /&gt;&lt;br /&gt;The fix was simple. Found out that its the way different terminals handle arrow keys.&lt;br /&gt;&lt;br /&gt;If you try echo $TERM on your shell, it showed me something like, xtermc. I replaced the value like below:&lt;br /&gt;&lt;br /&gt;export $TERM="vt100"&lt;br /&gt;&lt;br /&gt;This simply worked. Now my arrow keystrokes are identified properly. More on text based terminals &lt;a href="http://linux.about.com/od/ttl_howto/a/hwtttl03t02.htm"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-5736414362047947205?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/5736414362047947205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=5736414362047947205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5736414362047947205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5736414362047947205'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2011/03/arrow-keys-not-working-properly-on.html' title='Arrow keys not working properly on terminal'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-4470401460035274592</id><published>2011-02-24T12:00:00.000-08:00</published><updated>2011-03-01T09:20:06.802-08:00</updated><title type='text'>Interview Questions - 3</title><content type='html'>&lt;b&gt;Google Interview Questions.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Interview Type: Telephonic&lt;br /&gt;Interview Duration: 30 mins&lt;br /&gt;&lt;br /&gt;1. What is the default signal generated by &lt;i&gt;kill&lt;/i&gt; command ?&lt;br /&gt;&lt;br /&gt;2. What is a sticky bit ?&lt;br /&gt;&lt;br /&gt;3. Given a path, which system call returns the information about the inode ?&lt;br /&gt;&lt;br /&gt;4. Given 10000 16 bit integers, and unlimited memory, what is the quickest way to count the total number of bits set in the array.&lt;br /&gt;&lt;br /&gt;5. Given four operations&lt;br /&gt;a. Read from CPU reg&lt;br /&gt;b. Disk Seek&lt;br /&gt;c. Context switch&lt;br /&gt;d. Read from main memory&lt;br /&gt;&lt;br /&gt;Rank them in order of speed.&lt;br /&gt;&lt;br /&gt;6. Average case and worst case running time for quick sort.&lt;br /&gt;&lt;br /&gt;7. What is the opposite of malloc in C.&lt;br /&gt;&lt;br /&gt;8. Value of "a"[3 &gt;&gt; 1]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-4470401460035274592?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/4470401460035274592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=4470401460035274592' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4470401460035274592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4470401460035274592'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2011/02/interview-questions-3.html' title='Interview Questions - 3'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-5641688511442145679</id><published>2011-02-23T01:22:00.000-08:00</published><updated>2011-02-23T01:22:52.289-08:00</updated><title type='text'>Interview Questions - 2</title><content type='html'>Some more questions:&lt;br /&gt;&lt;br /&gt;Type: Data Structures&lt;br /&gt;Company Type: Web, Software, e-Commerce&lt;br /&gt;&lt;br /&gt;1. Given is a linked list, in which the Node data is the address of another node (e.g. Data of node 3 is storing address of node 5, data of node 5 is storing address of node 2, etc). How can you copy this linked list ?&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Catch is when you copy memory changes, hence the data should change accordingly.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2. Given a Directed Graph, design an algorithm which can detect if there is a loop or not.&lt;br /&gt;&lt;br /&gt;3. Given a Binary tree, where each node stores a certain value, find the average at the node.&lt;br /&gt;&lt;br /&gt;4. Given an unsorted array, a number 'k', find how many pairs in the array sum up to the value 'k' in the most efficient way. Time complexity should be O(n).&lt;br /&gt;&lt;br /&gt;5. Given 2 sorted arrays, and 1 array big enough to accomodate the other array [enough empty space], write a program to get the final array in O(m+n).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-5641688511442145679?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/5641688511442145679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=5641688511442145679' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5641688511442145679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5641688511442145679'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2011/02/interview-questions-2.html' title='Interview Questions - 2'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-3306986184435290061</id><published>2011-02-22T01:17:00.000-08:00</published><updated>2011-02-22T01:17:28.274-08:00</updated><title type='text'>Interview Questions - 1</title><content type='html'>Interview Month: February&lt;br /&gt;Interview Position: Software Engineer&lt;br /&gt;Interview Duration: About 30 minutes&lt;br /&gt;Interview Company Type: Networking&lt;br /&gt;&lt;br /&gt;1. Whats the library used for threading in C on Unix based systems ?&lt;br /&gt;&lt;br /&gt;2. What is the pthread library call used to create a new thread and the parameters to the call?&lt;br /&gt;&lt;br /&gt;3. How do you think the pthread_lock() is implemented ?&lt;br /&gt;&lt;br /&gt;4. Will this work for multi processor/core systems also ? {This question asked in many interviews}&lt;br /&gt;&lt;i&gt;Dont know a proper answer to this question yet. Any links would be helpful.&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;5. What is malloc? System call or Library Call? Why?&lt;br /&gt;&lt;br /&gt;6. At what times does malloc invoke a system call? Does it always invoke? &lt;br /&gt;&lt;i&gt;Answer is something regarding maintaining buckets. Check out malloc implementation details&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;7. What is a hash-map data structure? How does it store data?&lt;br /&gt;&lt;br /&gt;8. Advantages and disadvantages of using a hashmap. Give examples of systems where you would not use 1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-3306986184435290061?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/3306986184435290061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=3306986184435290061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/3306986184435290061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/3306986184435290061'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2011/02/interview-questions-1.html' title='Interview Questions - 1'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-8966814022092487934</id><published>2011-02-18T18:55:00.000-08:00</published><updated>2011-02-18T18:55:35.627-08:00</updated><title type='text'>And I am back....</title><content type='html'>The desire to key my thoughts couldn't keep me away from here. &lt;br /&gt;&lt;br /&gt;Hey everyone, look I am back.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-8966814022092487934?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/8966814022092487934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=8966814022092487934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/8966814022092487934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/8966814022092487934'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2011/02/and-i-am-back.html' title='And I am back....'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-672118804281544889</id><published>2010-07-22T17:58:00.001-07:00</published><updated>2010-07-22T18:00:04.649-07:00</updated><title type='text'>Bloody Hell</title><content type='html'>I have been trying to give it a thought, but I am tired now. I need some1 to design a proper looking frontpage for &lt;a href="http://ameetnanda.com"&gt;my website&lt;/a&gt; which has a lot of space and holds absolutely nothing. Bah !!&lt;br /&gt;&lt;br /&gt;Rain ideas, good Lord.&lt;br /&gt;&lt;br /&gt;Oh yeah, I plan to post my Bahamas pics there. :D&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-672118804281544889?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/672118804281544889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=672118804281544889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/672118804281544889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/672118804281544889'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2010/07/bloody-hell.html' title='Bloody Hell'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-2061881620029844533</id><published>2010-07-22T17:48:00.001-07:00</published><updated>2010-07-22T17:57:32.710-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='commit'/><category scheme='http://www.blogger.com/atom/ns#' term='error'/><category scheme='http://www.blogger.com/atom/ns#' term='PROPFIND'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><category scheme='http://www.blogger.com/atom/ns#' term='proxy'/><title type='text'>SVN problems over the web</title><content type='html'>The other day I was configuring my SVN over Apache for my Lab server. I had almost set it up and it was almost looking perfect when it failed to commit. So everytime i tried to commit it would give me this strange looking error.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;svn: Commit failed (details follow):&lt;br /&gt;svn: Server sent unexpected return value (500 Internal Server Error) in response to MKACTIVITY request for '/repos/testrep/!svn/act/b5cf039a-95ed-11df-a9f1-a38cb1af4ec0'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I am running SLES 11 and my web server runs on a virtual host and this was my subversion.conf file [relevant section] located at /etc/apache2/conf.d/subversion.conf :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;IfModule mod_dav_svn.c&gt;&lt;br /&gt;&lt;location /repos&gt;&lt;br /&gt;        DAV svn&lt;br /&gt;        SVNParentPath /srv/svn/repos/&lt;br /&gt;        SVNListParentPath On&lt;br /&gt;        &lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;&lt;br /&gt;                AuthType Basic&lt;br /&gt;                AuthName "Commiting to repository requires a password"&lt;br /&gt;                AuthUserFile /srv/svn/user_access/svn_passwdfile&lt;br /&gt;                Require valid-user&lt;br /&gt;        &lt;/LimitExcept&gt;&lt;br /&gt;&lt;/location&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So after a lot of trial and error and in an attempt not to make a fool of myself before the professor, I tried changing the line in my subversion.conf to this:&lt;br /&gt;&lt;br /&gt;&lt;LimitExcept GET PROPFIND DELETE OPTIONS REPORT&gt;&lt;br /&gt;&lt;br /&gt;The old error was gone, but a new error showed up&lt;br /&gt;&lt;br /&gt;So my final modified line ended up looking like this.&lt;br /&gt;&lt;br /&gt;&lt;LimitExcept GET PROPFIND CHECKOUT PROPPATCH PUT MERGE DELETE MKACTIVITY OPTIONS REPORT&gt;&lt;br /&gt;&lt;br /&gt;And then it worked like cream.&lt;br /&gt;&lt;br /&gt;How I came up with the idea? It was after I read stuff from &lt;a href="http://subversion.apache.org/faq.html#proxy"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-2061881620029844533?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/2061881620029844533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=2061881620029844533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/2061881620029844533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/2061881620029844533'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2010/07/svn-problems-over-web.html' title='SVN problems over the web'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-5204351992541182940</id><published>2009-01-16T04:19:00.000-08:00</published><updated>2009-01-16T04:25:53.449-08:00</updated><title type='text'>Man !!</title><content type='html'>It was a bright sunny day. I was drowsing, on my chair, with my head swaying from left to right like a pendulum with a frequency much slower than of a grandpa clock pendulum.&lt;br /&gt;&lt;br /&gt;Suddenly I dreamt of coding. Wham !! I woke up, got my coffee and sat to work.&lt;br /&gt;&lt;br /&gt;Damn. I was supposed to write some network shit. I realized I had swallowed the taste of network system calls. So I issued a man command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Wabbit@ubuntu:~$ man accept&lt;/span&gt;&lt;br /&gt;No manual entry for accept&lt;br /&gt;&lt;br /&gt;What the fuck man ?&lt;br /&gt;&lt;br /&gt;If you face such a problem, download and put the manpages-dev package&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;root@ubuntu:~# aptitude install manpages-dev&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;And it was done !!&lt;br /&gt;&lt;br /&gt;Ahem!! So I coded.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-5204351992541182940?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/5204351992541182940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=5204351992541182940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5204351992541182940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5204351992541182940'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2009/01/man.html' title='Man !!'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-1561646275315628064</id><published>2008-09-09T13:22:00.001-07:00</published><updated>2008-09-09T13:37:22.609-07:00</updated><title type='text'>gdm was not starting on bootup</title><content type='html'>I had a sudden problem, I dunno how I came to it, but my gdm never started up when my laptop was booting.So the login process was not only long but damn boring as well, which included, inputting your password thrice :)&lt;br /&gt;&lt;br /&gt;So I decided to change it. What I did was opened the dir /etc/rc5.d and edited the shell script named S30gdm and changed the value of &lt;br /&gt;&lt;br /&gt;HEED_DEFAULT_DISPLAY_MANAGER=false (from true)&lt;br /&gt;&lt;br /&gt;Then it worked for me ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-1561646275315628064?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/1561646275315628064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=1561646275315628064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/1561646275315628064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/1561646275315628064'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/09/gdm-was-not-starting-on-bootup_09.html' title='gdm was not starting on bootup'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-6477449133301247271</id><published>2008-09-09T13:22:00.000-07:00</published><updated>2008-09-09T13:37:21.190-07:00</updated><title type='text'>gdm was not starting on bootup</title><content type='html'>I had a sudden problem, I dunno how I came to it, but my gdm never started up when my laptop was booting.So the login process was not only long but damn boring as well, which included, inputting your password thrice :)&lt;br /&gt;&lt;br /&gt;So I decided to change it. What I did was opened the dir /etc/rc5.d and edited the shell script named S30gdm and changed the value of &lt;br /&gt;&lt;br /&gt;HEED_DEFAULT_DISPLAY_MANAGER=false (from true)&lt;br /&gt;&lt;br /&gt;Then it worked for me ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-6477449133301247271?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/6477449133301247271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=6477449133301247271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/6477449133301247271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/6477449133301247271'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/09/gdm-was-not-starting-on-bootup.html' title='gdm was not starting on bootup'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-4990517487440696337</id><published>2008-08-31T11:44:00.000-07:00</published><updated>2008-08-31T12:03:51.431-07:00</updated><title type='text'>Problem with Flash Player in Firefox 3.0, Ubuntu 8.04</title><content type='html'>Well there was a small problem with my Firefox, I had installed some flash player, which asked me to click the flash video in the page to enable it. I had installed libflashplayer.so as well, but it was always running the other library for flash-shockwave, i.e. libswfdecmozilla.so  . Well I got it working.&lt;br /&gt;&lt;br /&gt;Steps I followed are quite simple. I ran &lt;span style="font-weight:bold;"&gt;about:plugins&lt;/span&gt; on the firefox address bar, looked for the names of the &lt;span style="font-weight:bold;"&gt;.so&lt;/span&gt; player for playing flash and shockwave. I found the files in my system and removed all of them except , &lt;span style="font-weight:bold;"&gt;libflashplayer.so&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Usually you can find the .so files in&lt;span style="font-weight:bold;"&gt; /usr/lib&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Not it rocks&lt;br /&gt;&lt;br /&gt;- Wabbit&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-4990517487440696337?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/4990517487440696337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=4990517487440696337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4990517487440696337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4990517487440696337'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/08/problem-with-flash-player-in-firefox-30.html' title='Problem with Flash Player in Firefox 3.0, Ubuntu 8.04'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-4954176791988439158</id><published>2008-06-24T12:53:00.000-07:00</published><updated>2008-06-24T13:17:06.096-07:00</updated><title type='text'>Syntax highlighting on VIM</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Well wont you love to have the syntax/color highlighted in VI editor. Be it a C program or HTML, vim is a classy editor and of course we would love to have syntax highlighted on it.&lt;br /&gt;&lt;br /&gt;Aint it ??&lt;br /&gt;&lt;br /&gt;How to go ahead and achieve it. &lt;br /&gt;&lt;br /&gt;The easiest way -  in vim press&lt;span style="font-weight:bold;"&gt; :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the type '&lt;span style="font-weight:bold;"&gt;syntax on&lt;/span&gt;'&lt;br /&gt;&lt;br /&gt;To do it everytime the editor comes up automatically.&lt;br /&gt;&lt;br /&gt;Search for a file called vimrc.&lt;br /&gt;Generally it would be somewhere like /etc/vim/vimrc&lt;br /&gt;&lt;br /&gt;Open the file and uncomment the line &lt;br /&gt;&lt;br /&gt;"syntax on&lt;br /&gt;to&lt;br /&gt;syntax on [remove whatever is before that]&lt;br /&gt;&lt;br /&gt;Play around, make changes, then next time vim is started, syntax is highlighted.&lt;br /&gt;&lt;br /&gt;Follow: http://www.ph.unimelb.edu.au/~ssk/vim/syntax.html for actual documentation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Chao.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-4954176791988439158?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/4954176791988439158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=4954176791988439158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4954176791988439158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4954176791988439158'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/06/syntax-highlighting-on-vim.html' title='Syntax highlighting on VIM'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-7032855370354031563</id><published>2008-06-20T23:21:00.000-07:00</published><updated>2008-06-20T23:23:16.239-07:00</updated><title type='text'>Uncle Larry says..</title><content type='html'>&lt;embed id='single' width='320' height='260' flashvars='file=http://edcorner.stanford.edu/1076.ply&amp;showdownload=true&amp;usecaptions=true&amp;usefullscreen=false&amp;width=320&amp;height=260&amp;rotatetime=2&amp;linkfromdisplay=true&amp;linktarget=_blank&amp;showicons=false&amp;showdigits=false' src='http://edcorner.stanford.edu/swf/mediaplayer.swf' type='application/x-shockwave-flash'&gt;&lt;/embed&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-7032855370354031563?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/7032855370354031563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=7032855370354031563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/7032855370354031563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/7032855370354031563'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/06/uncle-larry-says.html' title='Uncle Larry says..'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-3993708147187368151</id><published>2008-06-02T22:30:00.000-07:00</published><updated>2008-06-03T01:31:43.338-07:00</updated><title type='text'>How to export X display using Cygwin</title><content type='html'>Hi.&lt;br /&gt;For most of those who would want to connect from a Windows machine on to a Linux/Solaris/Unix server and have the display imported, here is the method.&lt;br /&gt;&lt;br /&gt;1. Download and install cygwin on windows.&lt;br /&gt;2. After the installation is complete, run a cygwin bash shell.&lt;br /&gt;3. type the following commands there&lt;br /&gt;&lt;br /&gt;x -multiwindow&amp;&lt;br /&gt;export DISPLAY=[IP of ur machine]:0.0  [for me it was export DISPLAY=10.114.55.119:0.0]&lt;br /&gt;xhost +&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Telnet to the remote machine and set the DISPLAY variable with your machine's IP&lt;br /&gt;export DISPLAY=[IP of local machine]:0.0&lt;br /&gt;&lt;br /&gt;5. start any application in the background.&lt;br /&gt;firefox&amp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-3993708147187368151?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/3993708147187368151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=3993708147187368151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/3993708147187368151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/3993708147187368151'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/06/how-to-export-x-display-using-cygwin.html' title='How to export X display using Cygwin'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-4552271119830922272</id><published>2008-05-26T08:07:00.000-07:00</published><updated>2008-05-26T08:08:24.354-07:00</updated><title type='text'>Steps for configuring Apache HTTP Daemon on Solaris x86</title><content type='html'>- Get the source code and untar it and then enter the directory.&lt;br /&gt;- run configure&lt;br /&gt;- run make&lt;br /&gt;- run make install &lt;br /&gt;- become super user&lt;br /&gt;- export the binary path [ /usr/local/apache2/bin ]&lt;br /&gt;- export the libraries path [ /usr/local/lib and /usr/lib]&lt;br /&gt;- edit the Group# from Group# -1 to Group# 0 [ for root ] in /usr/local/apache2/conf/httpd.conf&lt;br /&gt;- edit the Username from nobody to ‘smoke’ in the same file, although leaving this untouched does not cause any problem [ It is recommended by the online manual to create a new user to run the server , and not to set the user as root ]&lt;br /&gt;- run apachectl start&lt;br /&gt;- run firefox and open the link http://localhost which tells about the status of the server.&lt;br /&gt;- for logs look into /usr/local/apache2/logs&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-4552271119830922272?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/4552271119830922272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=4552271119830922272' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4552271119830922272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4552271119830922272'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/05/steps-for-configuring-apache-http.html' title='Steps for configuring Apache HTTP Daemon on Solaris x86'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-5338702292423324416</id><published>2008-02-14T06:13:00.000-08:00</published><updated>2008-02-14T06:18:39.429-08:00</updated><title type='text'>Starting an App with GNOME Startup</title><content type='html'>There are times when you would like to start certain app when GNOME&lt;br /&gt;starts up. This is just like the Windows Startup program. In Windows&lt;br /&gt;[Win XP] we used to place the links to the programs in the Startup&lt;br /&gt;Folder.&lt;br /&gt;&lt;br /&gt;On my machine I have Fedora Core 7 and Ubuntu 7.10 (Gutsy Gib). Now I&lt;br /&gt;tried this on FC7 , worked perfectly.&lt;br /&gt;&lt;br /&gt;Steps.&lt;br /&gt;&lt;br /&gt;1. Open a terminal and login as root.&lt;br /&gt;&lt;br /&gt;2. Now locate the file read by GNOME when it starts a default session.&lt;br /&gt;The file is named as "default.session" and for me its path was&lt;br /&gt;"/usr/share/gnome/default.session". If for you the file does not exist&lt;br /&gt;there, you can look for the file by using the command&lt;br /&gt;"find / -name default.session". The file will be stored under a&lt;br /&gt;directory named gnome.&lt;br /&gt;&lt;br /&gt;3. Once you get the file open it with a text editor.&lt;br /&gt;&lt;br /&gt;4. It will be something like this:&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# This is the default session that is launched if the user doesn't&lt;br /&gt;# already have a session.&lt;br /&gt;# The RestartCommand specifies the command to run from the $PATH.&lt;br /&gt;# The Priority determines the order in which the commands are started&lt;br /&gt;# (with Priority = 0 first) and defaults to 50.&lt;br /&gt;# The id provides a name that is unique within this file and passed to&lt;br /&gt;the&lt;br /&gt;# app as the client id which it must use to register with gnome-session.&lt;br /&gt;# The clients must be numbered from 0 to the value of num_clients - 1.&lt;br /&gt;&lt;br /&gt;[Default]&lt;br /&gt;num_clients=6&lt;br /&gt;0,id=default0&lt;br /&gt;0,Priority=60&lt;br /&gt;0,RestartCommand=pam-panel-icon --sm-client-id default0&lt;br /&gt;1,id=default1&lt;br /&gt;1,Priority=10&lt;br /&gt;1,RestartCommand=gnome-wm --default-wm gnome-wm --sm-client-id default1&lt;br /&gt;2,id=default2&lt;br /&gt;2,Priority=40&lt;br /&gt;2,RestartCommand=gnome-panel --sm-client-id default2&lt;br /&gt;3,id=default3&lt;br /&gt;3,Priority=40&lt;br /&gt;3,RestartCommand=nautilus --no-default-window --sm-client-id default3&lt;br /&gt;4,id=default4&lt;br /&gt;4,Priority=40&lt;br /&gt;4,RestartCommand=gnome-volume-manager --sm-client-id default4&lt;br /&gt;5,id=default5&lt;br /&gt;5,Priority=41&lt;br /&gt;5,RestartCommand=evolution&lt;/span&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;Now on everything is pretty simple. OK the entries.&lt;br /&gt;&lt;br /&gt;num_clients=6 - It is the number of clients that would start once the&lt;br /&gt;default session starts/&lt;br /&gt;&lt;br /&gt;The numbers 0,1,2,3,4,5 are the application numbers. These along with&lt;br /&gt;the id are used to mark an application.&lt;br /&gt;&lt;br /&gt;Priority=[Num]. Each application has a different priority numbers which&lt;br /&gt;states the criticality of the app. The point to be noted here is higher&lt;br /&gt;the priority number is, the lesser critical the app is. In most systems&lt;br /&gt;the highest priority is set to be 0 where as the minimum priority is 50.&lt;br /&gt;&lt;br /&gt;e.g. I added evolution to startup. This was simple, I changed the&lt;br /&gt;num_clients to 6 from 5, then added the last 3 lines to the file and&lt;br /&gt;saved it. The next time I restarted GNOME, "Lo. Evolution was up :D"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-5338702292423324416?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/5338702292423324416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=5338702292423324416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5338702292423324416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/5338702292423324416'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2008/02/starting-app-with-gnome-startup.html' title='Starting an App with GNOME Startup'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7176430855099171158.post-4104356540078382774</id><published>2007-09-17T01:52:00.000-07:00</published><updated>2007-09-17T02:21:41.018-07:00</updated><title type='text'>JEEEEEeeeezzzz!!!!</title><content type='html'>The good things, the bad things, the should things, the shouldnot things, the 'did' things, the 'didnot' things, the small things, the BIG things and the  GGRRREEEEAAATT things. Counsellings, enlightenments, hopes, frustration, you, me. The mothaf***in posts in the mothaf***in blogs.&lt;br /&gt;Jeeeeeeeeezzz!!&lt;br /&gt;&lt;br /&gt;What crap we all deal with man.&lt;br /&gt;&lt;br /&gt;My first attempt to write something good, something technical, something scientific. To build the path to know the unknown, to add my two grains to the bridge abridging humanity and completeness, eternity, the good Lord, my attempt to unravel one more mystery in time, add to at least one person's intellect in some way, to open someone's eye.&lt;br /&gt;&lt;br /&gt;My purpose unraveled, my destination unknown, my path undetermined and my  approach unstated. Rise and contribute to the community of knowledge, to the community of free thinkers, before you and your children and their children stand on the brink of complete annihilation.&lt;br /&gt;&lt;br /&gt;----------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;"You were never taught how to breathe, even when you are put underwater, you will find out a way to breathe. So no point in discussing about life and its whereabouts, you will continue to live, you will continue to suck. Continue living, continue sucking."&lt;br /&gt;-&lt;br /&gt;Devil_Nax0r&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7176430855099171158-4104356540078382774?l=iamnotthe1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iamnotthe1.blogspot.com/feeds/4104356540078382774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7176430855099171158&amp;postID=4104356540078382774' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4104356540078382774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7176430855099171158/posts/default/4104356540078382774'/><link rel='alternate' type='text/html' href='http://iamnotthe1.blogspot.com/2007/09/jeeeeeeeeezzzz.html' title='JEEEEEeeeezzzz!!!!'/><author><name>Ameet</name><uri>http://www.blogger.com/profile/09891852335255149998</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://2.bp.blogspot.com/_DX2qmLyzGsw/TEjqSTr-gjI/AAAAAAAAFB8/bndm92flSVo/S220/_DSC0245.jpg'/></author><thr:total>3</thr:total></entry></feed>
