<?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-3370623880686051754</id><updated>2011-06-24T16:38:28.959-07:00</updated><category term='ubuntu macbook gutsy gibbon'/><category term='terracotta fc6 macbook mac'/><category term='cosmo chandlerserver osafoundation git webdav'/><category term='amazon interview job telephonic'/><category term='linux fedora fc6 mac macbook'/><category term='git macbook git-svn tiger'/><title type='text'>Open Source, Technology and Life</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-1863924297232899143</id><published>2011-06-24T16:34:00.000-07:00</published><updated>2011-06-24T16:38:28.976-07:00</updated><title type='text'>Spam me!</title><content type='html'>Yeah I want your spam! Spam me at &lt;br /&gt;vgopal@zzz-best.com&lt;br /&gt;&lt;br /&gt;The more spam I get - the happier I will be. I am not a honeypot, but rather I will look at your spam and read it! Just kidding ;) - i am in search of getting more spam in to my mailbox to see the effectiveness of our spam filter and test other components that I work on!&lt;br /&gt;&lt;br /&gt;If anyone knows any way of spamming yourself I will be happy to hear about it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-1863924297232899143?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/1863924297232899143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=1863924297232899143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1863924297232899143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1863924297232899143'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2011/06/spam-me.html' title='Spam me!'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-671489249282071588</id><published>2011-05-09T00:10:00.000-07:00</published><updated>2011-05-09T00:12:22.902-07:00</updated><title type='text'>Google IO 2011</title><content type='html'>I will be going to Google IO 2011 and I am pretty excited about it!&lt;br /&gt;&lt;br /&gt;&lt;script src="http://www.google.com/events/io/2011/static/js/iobadge.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-671489249282071588?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/671489249282071588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=671489249282071588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/671489249282071588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/671489249282071588'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2011/05/google-io-2011.html' title='Google IO 2011'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-1360834955313134122</id><published>2008-12-22T00:17:00.000-08:00</published><updated>2009-01-11T21:40:42.820-08:00</updated><title type='text'>Best  wireless router which can be flashed with Linux</title><content type='html'>Two years earlier if I had thought about buying a router that can be easily flashed with a Linux distribution (ddwrt, openwrt, etc) - I would have blindly bought Linksys WRT54GL the router of choice for open source enthusiasts and hobbyists. Two years and nothing much has changed.&lt;br /&gt;There are a few better versions of WRT54GL but they are hard to find and I would prefer them if I can find them :).&lt;br /&gt;&lt;br /&gt;There are now more routers and more confusing standards - but none of them seem to have good reviews and the right hardware for flashing it with ddwrt or openwrt. Some of the netgear model claims open source support - but mostly has bad reviews and I stayed away from them. Linksys has so many models to choose from and choosing the right one that can be flashed was a long process. Each model has different versions and only the older versions of the model has more Flash and more RAM which is ideal for ddwrt or anything else - so if you get them (mostly used ones through ebay or elsewhere) - you can build a more powerful wireless router than the WRT 54GL.&lt;br /&gt;I also wanted to try out the 300+ N series (300N, 310N, etc, and the 350N with the fastest processor in low end linksys models) but almost all them had bad reviews in most websites mostly with the default firmware - there were one or two reviews with ddwrt and looked good. &lt;a href="http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT300N"&gt;OpenWrt description&lt;/a&gt; of 300N series was very promising to me with Redboot as the boot loader and seeing your Linux boot from the scratch. I really wanted to check it out. I have worked with Redboot and the Intel XScale processors which has a separate processor for encryption. It is usually useful when you want to use VPN's and leverage the encryption hardware of the XScale. New 300+N routers costed atleast $85 and the advantages were&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;better range&lt;/li&gt;&lt;li&gt;newer n standard with higher speeds&lt;/li&gt;&lt;li&gt;more ram and flash memory&lt;/li&gt;&lt;li&gt;Better processor&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;no. 3 and no.4 was the most tempting of all. I am not even sure if no.1 and no.2 are true - some reviews said that the speed was worse than g and range was almost similar or worse. I would wait for some more time for the n standard to take off and the prices to come down. Till then I am happy with 54GL and hoping to see more powerful routers which can run Linux.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source: Wikipedia - (http://en.wikipedia.org/wiki/Linksys_WRT54G_series)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-1360834955313134122?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/1360834955313134122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=1360834955313134122' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1360834955313134122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1360834955313134122'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2008/12/best-wireless-router-which-can-be.html' title='Best  wireless router which can be flashed with Linux'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-6085299857578043425</id><published>2007-11-13T17:28:00.000-08:00</published><updated>2007-11-13T18:54:27.318-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cosmo chandlerserver osafoundation git webdav'/><title type='text'>Using Cosmo (Chandlerserver) as a Git Server</title><content type='html'>I wanted my local Git to be updated to a server and came up across  &lt;a href="http://wiki.dreamhost.com/Git"&gt;Git on Dreamhost&lt;/a&gt;. A nice link which talks on how Dreamhost with WebDAV can be used as a git remote repository. So any WebDAV server should work. I thought I will use Cosmo to host itself - A really cool idea! I have never used Cosmo for anything other than calendars or address book (which I worked on :) ) and had to dig the documentation to find the way to create a collection. I used Cadaver client to create the collection&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;# sudo port install cadaver&lt;installs&gt;&lt;br /&gt;&lt;/installs&gt;&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;#cadaver http://osaf.us/cosmo/dav/vinu&lt;br /&gt;&lt;entered&gt;&lt;br /&gt;dav:/cosmo/dav/vinu&gt; ls&lt;br /&gt;&lt;listed&gt;dav:/cosmo/dav/vinu&gt; MKCOL git&lt;br /&gt;&lt;/listed&gt;&lt;/entered&gt;&lt;/pre&gt;&lt;br /&gt;In Mac OS X Tiger I used finder to connect to the server. I entered the URL as http://osaf.us/cosmo/dav/vinu/git - entered the username, password  and it mounted :). But when I tried to put any file on this server it failed :(. After hanging out in IRC for some time I figured out Cosmo (Chandlerserver) does not implement locking yet and Mac OS X Finder expects the server to implement locking :(. I tried searching for a client like finder - but none of them had a way to put a complete folder into the collection.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;I tried  to copy the git repository using a Windows XP desktop I had - I created a web folder with the url http://osaf.us/cosmo/dav/vinu/git. I then copied my bare git repository from my Mac to Windows and from there to the webdav server (Cosmo). It partially failed with a message saying some files could not be copied :(&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Links&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;http://wiki.dreamhost.com/Git&lt;/li&gt;&lt;li&gt;https://osaf.us&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-6085299857578043425?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/6085299857578043425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=6085299857578043425' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/6085299857578043425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/6085299857578043425'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/11/using-cosmo-chandlerserver-as-git.html' title='Using Cosmo (Chandlerserver) as a Git Server'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-1346999446875144146</id><published>2007-11-11T23:46:00.000-08:00</published><updated>2007-11-12T00:15:25.873-08:00</updated><title type='text'>Interview Questions</title><content type='html'>After attending a lot of interviews I found that most interviewers are obsessed with Hashmap and like to test your understanding on the algorithm complexity and how hashmap reduces the complexity to O(n). The list problem shown below is an interesting problem.&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;The List Problem&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Its a search problem where you need to find if a small list is contained in a bigger list. The example below shows the goal of the problem.&lt;br /&gt;Say you have two lists:&lt;br /&gt;&lt;br /&gt;smallList = "red", "green";&lt;br /&gt;largeList = "red", "green", "blue";&lt;br /&gt;&lt;br /&gt;smallList is contained in largeList for the above data.&lt;br /&gt;&lt;br /&gt;If you change the smallList like&lt;br /&gt;smallList = "red", "green", "green";&lt;br /&gt;smallList is not contained in largeList. The order of the strings does not matter. What is the best way to implement a function which will return a boolean value indicating if the smallList is contained in largeList.&lt;br /&gt;&lt;br /&gt;Solution 1: worst case implementation&lt;br /&gt;for (int i=0; i &lt; smallList.size;i++) {&lt;br /&gt;    found = false;&lt;br /&gt;    for (int j=0;j &lt; largeList.size;j++) {&lt;br /&gt;        if (smallList[i] == largeList[j]) {&lt;br /&gt;            largeList.remove(i);&lt;br /&gt;            found = true;&lt;br /&gt;            // slight improvement would be&lt;br /&gt;            // break; here&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    if (found == false) {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;return true;&lt;br /&gt;&lt;br /&gt;Complexity is O(n pow 2)&lt;br /&gt;memory usage is good - since it just uses a boolean variable called found&lt;br /&gt;&lt;br /&gt;Solution 2: Similar to solution 1 - if the method largeList.remove is not available&lt;br /&gt;largeListMatches = new boolean[largeList.size]; //assume all the values are initialized to false&lt;br /&gt;&lt;br /&gt;for (int i=0; i &lt; smallList.size;i++) {&lt;br /&gt;    found = false;&lt;br /&gt;    for (int j=0;j &lt; largeList.size;j++) {&lt;br /&gt;        if (smallList[i] == largeList[j]) {&lt;br /&gt;            if (largeListMatches[j] == true) {&lt;br /&gt;                continue;&lt;br /&gt;            }&lt;br /&gt;            largeListMatches[j] = true;&lt;br /&gt;            found = true;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    if (found == false) {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;return true;&lt;br /&gt;&lt;br /&gt;Complexity will be the same - around O(n pow 2). Memory usage will be more since an array of boolean (of size largeArray) is used. So the memory required will be sizeof LargeArray + sizeof smallArray + 1byte * length of LargeArray + 1 byte for the boolean found variable&lt;br /&gt;&lt;br /&gt;Solution 3: Use a hash map to hash the large list&lt;br /&gt;for (int j=0;j &lt; largeList.size;j++) {&lt;br /&gt;    if (value = largeHash.get(largeList[j])) {&lt;br /&gt;        largeHash.set(largeList[j], ++value);&lt;br /&gt;    } else {&lt;br /&gt;        largeHash.set(largeList[j], 1);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;for (int i=0; i &lt; smallList.size;i++) {&lt;br /&gt;    if (value = largeHash.get(smallList[i])) {&lt;br /&gt;        if (value == 0) {&lt;br /&gt;            return false;&lt;br /&gt;        } else {&lt;br /&gt;            largeHash.set(largeList[j], --value);&lt;br /&gt;        }&lt;br /&gt;    } else {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;}&lt;br /&gt;return false;&lt;br /&gt;&lt;br /&gt;Complexity will be reduced to O(n) + O(n) which is O(n). Memory usage will be really high. For an array list of high value like 10000, etc this method will be infeasible. This is the most efficient algorithm - but assumes the system has a high amount of memory&lt;br /&gt;Memory required is 2*(sizeof LargeList) + sizeof (smallList) + integer array of length largeList&lt;br /&gt;&lt;br /&gt;Solution 4: Use binary search to find the elements. the largeList has to be sorted first. Any of the sorts like quick sort or merge sort can be used - complexity of O(nlogn). Binary search has a complexity of O(logn) - but it is for each element of small list. O(m*logn)&lt;br /&gt;Overall complexity is O(nlogn) + O(m*logn) = O(nlogn)&lt;br /&gt;Memory usage is equal to the size of largeList + smallList&lt;br /&gt;&lt;br /&gt;quicksort(largeList); //or mergesort(largeList);&lt;br /&gt;for (int i=0; i &lt; smallList.size;i++) {&lt;br /&gt;    if (binarySearch(smallList[i], largeList) == true) {&lt;br /&gt;        largeList.remove(smallList[i]);&lt;br /&gt;    } else {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;return true;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Tree problem &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I don't remember the exact question - but here it is:&lt;br /&gt;You have a class called Data Node.&lt;br /&gt;class DataNode {&lt;br /&gt;    int id;&lt;br /&gt;    int parentId;&lt;br /&gt;   &lt;br /&gt;    DataNode parentNode;&lt;br /&gt;    DataNode[] childNodes;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Define an efficient method called&lt;br /&gt;public DataNode updateTree(DataNode[] dataNodes)&lt;br /&gt;which will update all the parentNode and childNodes assuming that the id and parentId of all the nodes are already set. The parentId of the root node is set to zero.&lt;br /&gt;&lt;br /&gt;Though the question is designed badly asking you to write a method inside a node - it was interesting otherwise.  An example will things make more clear&lt;br /&gt;&lt;br /&gt;Suppose you have a tree like&lt;br /&gt;&lt;br /&gt;     18&lt;br /&gt;  5       3&lt;br /&gt;&lt;br /&gt;The DataNodes array will have&lt;br /&gt;18, 0,NULL, NULL&lt;br /&gt;5, 18, NULL, NULL&lt;br /&gt;3,18, NULL, NULL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The goal of the question is to update the references parentNode and childNodes. So instead of NULL you will be able to navigate the tree structure.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;The O(n pow 2) solution is easy to design. The other solution is something to do with the thing I said in the top of the article :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-1346999446875144146?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/1346999446875144146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=1346999446875144146' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1346999446875144146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1346999446875144146'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/11/interview-questions.html' title='Interview Questions'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-300093425741697175</id><published>2007-11-03T03:12:00.000-07:00</published><updated>2007-11-03T03:14:46.678-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu macbook gutsy gibbon'/><title type='text'>Ubuntu on Macbook</title><content type='html'>Was thinking of installing Linux but seems that Bootcamp beta license is not valid after Oct - so i could not find a link to the beta and all the sites were updated to point to Leapord. The options I had was to either buy Bootcamp or rather upgrade to Leopord. I had no intension to do any of that. I just wanted a OSS operating system and charging to install an OSS is like loosing freedom! The other option was to use rEFit.&lt;br /&gt;I had used reFIT before and I thought I will just use rEFit (refit.org) and parted to resize the partition. reFIT is a nice boot manager which shows the list of operating system during boot, includes booting from DVD/CD media. I installed rEFit and downloaded Ubuntu Gutsy Gibbon (the code name for the latest 7.10 version). I had purchased some Kodak CD -R media from Staples and thought I will use them to burn this image. To my surprise I tried it three times and could not verify the burnt image and so gave up for now. I think the CD -R has some issues or there is some compatibility issue between my Mac and CD -R. I suspect that the former one is true - probably some manufacturing defect or something.&lt;br /&gt;&lt;br /&gt;Still waiting and hoping to find an option to install! Fedora 8 is scheduled to be released on 8th of November. I may rather install Fedora 8 if I don't get a resolution for the CD media issue.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-300093425741697175?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/300093425741697175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=300093425741697175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/300093425741697175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/300093425741697175'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/11/ubuntu-on-macbook.html' title='Ubuntu on Macbook'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-4808044221805107545</id><published>2007-10-31T19:22:00.000-07:00</published><updated>2007-11-03T03:18:27.715-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='git macbook git-svn tiger'/><title type='text'>Git/git-svn on Mac OS X Tiger (Macbook)</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;Though Git is complex to use I hope it will solve most of my version merge problems. I have used svk (a distributed version tool written in perl built on top of SVN and the SVN perl bindings)  before and it is easy to use after creating a basic workflow (which may be slightly hard for a novice svn or CVS user). Unfortunately it dies with complex merge situations. It happens mainly if there is too much reorganization in the main trunk compared to your local branch. For example I worked/work (i try to work whenever I can but always get stupefied by the merge issues.) on an open source project called Cosmo - now renamed as Chandler server - it is actively developed and the trunk undergoes a huge change quite often. The merge interface of svk was really nice and I used it to keep merging changes from the trunk to my local branch. I also had my local branch merged to my own svn sandbox so that if my system crashes I can restore using my svn sandbox :). My entire workflow is documented at&lt;br /&gt;http://chandlerproject.org/bin/view/Journal/SvkUsage&lt;br /&gt;&lt;br /&gt;Now I got my almost new Macbook (repaired using Apple support) without any Linux (as of now) - I thought I will have most of the unix OSS goodies using Macports and Fink :).  Git was one of my most wanted  tool and I thought of installing it soon to get started with a few projects. As some of the websites pointed git install did not work using fink.&lt;br /&gt;I did&lt;br /&gt;# fink install git&lt;br /&gt;and was greeted with some dependency error messages. I also tried&lt;br /&gt;#fink selfupdate&lt;br /&gt;asking me a lot of questions and taking a lot of time :(&lt;br /&gt;&lt;br /&gt;#fink install git&lt;br /&gt;again some dependency error message :(.&lt;br /&gt;&lt;br /&gt;I always heard of Macports and wanted to give it a try. But installing Macports required installing XCode available through ADC, which requires a login. I first installed Macports without installing XCode hoping that it will work, but later realized that Macports needs a compiler as does any port based system. I have used Gentoo port based system and understood that everything is built using source and thus will require a compiler.&lt;br /&gt;&lt;br /&gt;I downloaded the 3.0 version of XCode, but found that XCode 3.0 does not work with OS X 10.4 Tiger and is meant for leopard. I then downloaded the 2.5 version (around 1 GB download size) and installed it successfully. I could then issue port commands :)&lt;br /&gt;&lt;br /&gt;# sudo port selfupdate&lt;br /&gt;&lt;br /&gt;#sudo port install git-core&lt;br /&gt;&lt;br /&gt;printed lot of stuff like downloading, building, etc taking a lot of time for the compilation&lt;br /&gt;and Installation was a success :)&lt;br /&gt;&lt;br /&gt;Happy with the success I typed&lt;br /&gt;# git&lt;br /&gt;it showed me the usage&lt;br /&gt;I then typed&lt;br /&gt;#git-svn&lt;br /&gt;It said the command could not be found :(. A google search of git-svn on Mac showed me to use the command:&lt;br /&gt;#sudo port install git +svn&lt;br /&gt;&lt;br /&gt;That fetched a few more files, did some compilations, installations taking lots of time and I got an error that git-core is already installed. Obviously! But I wished the system was smarter and just installed git-svn.&lt;br /&gt;I tried&lt;br /&gt;#git-svn&lt;br /&gt;and was greeted with the same command not found error.&lt;br /&gt;I did see that the port system had two entries for git and I had to uninstall all git-core&lt;br /&gt;# sudo port uninstall git-core @1.5.3.4_0+doc_svn&lt;br /&gt;# sudo port uninstall git-core&lt;br /&gt;&lt;br /&gt;Then I did a&lt;br /&gt;#sudo port install git +svn&lt;br /&gt;&lt;br /&gt;I tried&lt;br /&gt;#git-svn&lt;br /&gt;and yes I did see it was installed but the perl module had some missing dependencies. The module called Error.pm. I searched that package in port - but it was of no use and so I tried CPAN.&lt;br /&gt;# sudo perl -MCPAN -e 'install Error'&lt;br /&gt;&lt;br /&gt;It asked me a lot of questions - some missing programs which I installed either using fink or port. Both taking a lot of time and thus patience.&lt;br /&gt;# sudo port install lynx&lt;br /&gt;# sudo fink install wget&lt;br /&gt;The path for port based installations was /opt/local - so I had to specify /opt/local/bin for the path of lynx binary.&lt;br /&gt;For fink the path is /sw/ - so I had to specify /sw/bin for the path of wget binary. &lt;br /&gt;&lt;br /&gt;You could use a single package management system to install the packages. I tried fink thinking that it was more like apt-get - but no it was getting all the deb's but I think they are source debs since I could see the output of configure, make.&lt;br /&gt;&lt;br /&gt;The other package required by CPAN was ncftpget - both fink and ports did not have those packages :(. I just skipped that step.&lt;br /&gt;Then I needed ncftp - ports had the package - So I did a&lt;br /&gt;# sudo port install ncftp&lt;br /&gt;and the next one&lt;br /&gt;# sudo port install gpg-agent&lt;br /&gt;But that did not give me the gpg binary and there was no gpg package in the default macports :(. I just skipped all the questions by pressing enter continuously. I got the Error.pm module installed :).&lt;br /&gt;I then got an SVN/Core.pm not found error when I tried to run git-svn.&lt;br /&gt;&lt;br /&gt;I first tried setting the PERL5LIB to my macports version of svn perl library and I got some weird error regarding some core bundler dependency. After struggling a bit I finally removed all git and svn from both Macports and fink. Downloaded git from kernel.org - compiled and installed it the unix way :)&lt;br /&gt;# wget http://kernel.org/pub/software/scm/git/git-1.5.3.5.tar.bz2&lt;br /&gt;# tar -jxvf  git-1.5.3.5.tar.bz2&lt;br /&gt;# cd git-1.5.3.5&lt;br /&gt;# ./configure --prefix=/usr&lt;br /&gt;# make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I followed http://speirs.org/2007/07/22/getting-git-svn-working-on-the-mac/ and downloaded the svn package precompiled with all the language binding. After installing the dmg file, I had to set PERL5LIB to &lt;code&gt;/usr/local/lib/svn-perl.&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;I got git-svn working finally :).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I still miss the apt-get based installation in Debian systems which just installs the binary and is very fast. Ofcourse port based system has its own benefits like better optimized binary, etc - but it would be really frustrating to wait for 1-2 hours for a program to be installed :(.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-4808044221805107545?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/4808044221805107545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=4808044221805107545' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/4808044221805107545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/4808044221805107545'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/10/git-on-mac-os-x-tiger-macbook.html' title='Git/git-svn on Mac OS X Tiger (Macbook)'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-5851709487130856160</id><published>2007-10-31T14:41:00.000-07:00</published><updated>2007-11-27T11:12:54.699-08:00</updated><title type='text'>Apple support</title><content type='html'>I recently had some issues with my Macbook and I am impressed with apple support - only disappointment was they had to ship my Macbook to Apple factory and get my Macbook repaired. I had to register for some Geniusbar appointment in Apple website and had to drive to the store. I went to Palo Alto apple store which is the nearest Apple store for me and I was greeted by a good support staff. I found the support guys to be really smart and very crisp compared to any other support I have dealt with. They immediately found out the issue is not resolvable by them and they have to send the Macbook to the factory for repair. I was told that it will take 10 days for the entire process and everything will be covered under waranty :). They replaced my hard drive, RAM and the case which was broken slightly. I handle my Macbook with great care and still the case developed a small hole by itself :(. Thanks to Apple support they replaced my case with a new one and I am happy about that :). They also replaced my Airport network card for some reasons - don't know why - it was working perfectly! Their online tracking system also updates me on the status of the repair and told me when it was shipped overnight.&lt;br /&gt;Overall I am happy that my Macbook is working again now :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-5851709487130856160?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/5851709487130856160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=5851709487130856160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/5851709487130856160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/5851709487130856160'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/10/apple-support.html' title='Apple support'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-8757626747265453636</id><published>2007-08-26T23:52:00.000-07:00</published><updated>2007-09-07T11:34:46.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='amazon interview job telephonic'/><title type='text'>My Amazon interview experience</title><content type='html'>I was surprised to receive a mail from Amazon asking me for an interview. I had just applied to Amazon at the Dice career fair at Linux world and I did not expect a call from them after the initial talk I had with the software development manager at the fair. All excited with the email, I scheduled my interview for the nearest possible date. After some initial confusion I got a surprise call on my mobile - while I was in my friends car and in the middle of a traffic light! I had to reschedule my interview to some other day and again I made the mistake of scheduling it for the nearest possible date. I had no preparation and I was still doing my internship at Verisign. I scheduled my interview for the next day after my last day in Verisign and so I had only one evening to prepare for the interview :(. With so little time I managed to grab a book on Data structures to revise a few data structure fundamentals. After going through a few concepts I was bored and wished for more time! I then thought of revising a few of my Java concepts and grabbed a Java book which I had never touched before. The book was Practical Java and seemed to be really nice. I went through a few concepts like pass by value in Java and a detailed discussion about that including . After saturating myself with a few Java concepts I thought I will do a context switch and listen to some data structure lecture from Berkeley webcast. Unfortunately some of the streams lacked quality audio and I had to skip a few lectures. Then listening to some lecture and just slept off. I woke up at 11 am and was greeted by an engineer from Amazon. He started with some basic Java questions and I was happy that I could answer them...but then I had to deal with questions I did not know or did not remember :(. Here is the complete interview for everyone else searching for a job and preparing for an interview:&lt;br /&gt;&lt;br /&gt;Question1: What is a final class in Java?&lt;br /&gt;Answer: I was delighted to hear this question and gave this answer - A final class&lt;br /&gt;cannot be inherited. The final keyword is overloaded in Java - a final class cannot be extended, a final method cannot be overridden and a final variable cannot be changed.&lt;br /&gt;&lt;br /&gt;Question2: Difference between Abstract class and interface:&lt;br /&gt;Answer: I said interface can have only method declaration whereas an abstract class can also have a method definition. The interviewer extended the question and asked me what  is the difference between a pure abstract class which cannot have method definitions and an interface - I gave him the generic difference between an interface and class saying that multiple inheritance is possible with interface and not with a class.  The interviewer again asked me if there is any other difference. Not able to think well at that time I said I don't know and said that I will prefer interface for my implementation.&lt;br /&gt;&lt;br /&gt;Quesion 3: Difference between HashMap and Hashtable&lt;br /&gt;Answer: I thought about it and said I know both are the same since I have used Properties which is a Hashtable and it is similar to HashMap.&lt;br /&gt;After googling  I saw that the difference is Hashtable is not synchronized and it supports null for key values.&lt;br /&gt;&lt;br /&gt;Question 4: Difference between ArrayList and Vector&lt;br /&gt;Answer: ArrayList is not thread safe and Vector is thread safe.&lt;br /&gt;&lt;br /&gt;Question 5: What is the value of i in int i = 5/3&lt;br /&gt;I said 1 since it takes the floor in Java and rounds off. He asked me the answer for float i=5/3 and I gave the answer(wrong) as 1.667. The correct answer is 1.0.&lt;br /&gt;&lt;br /&gt;Question 6: How do you create a thread in Java.&lt;br /&gt;Answer:  Since I did not revise that section of Java, I could not answer this question well :(. I just said that there are two ways to create a thread. One is by extending the Thread class and the other is implementing the Runnable interface and overriding the run method.  The interviewer asked me how do you start the thread? I answered that it can be started using the start method - but said I don't remember it that well since I did not use it recently.&lt;br /&gt;&lt;br /&gt;Question 7: If you have a really  big array - how do you find all the pairs whose sum is 50.&lt;br /&gt;Answer: I gave a worst case complexity of adding all the elements in all possible ways to find the sum and see if it is 50. He tried going more in depth - but I declined to answer :(&lt;br /&gt;&lt;br /&gt;Question 8: This was a tricky question and it took the interviewer some time to explain the question!. Given a number n, How do you find two numbers whose product is one of n+1 or n+2. In case both n+1 and n+2 have multiples - how do you find the multiples whose difference is really less. Eg: Take a number say 5. The two numbers n+1 and n+2 are 6 and 7. 6 has a multiple and 3,2 is the solution to the problem.&lt;br /&gt;Take another number say 7. 8 and 9 are the two numbers. 4,2 and 3,3 are the two solutions to the problem. But since 3-3=0 is less - 3,3 is the correct answer to the problem....&lt;br /&gt;My Answer:&lt;br /&gt;Understanding the question was itself a big exercise for me and I think  part of the question was an answer to the problem. But then he asked me how do you find  a multiple of a number - I said we could divide it by 2, 4, etc. Then he asked me at what point you stop dividing and I said its n/2. So in case the number 8 - I will divide it by 4, etc. The second part of the question was how do you find the optimal pair (pair whose difference is less) - I had to take a wild guess and say that one way is to see if n has a root. So 9. 16, etc with pairs (3,3), (4, 4) will be the answer for n  like 7,8 or 14,15.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Question 9: What happens when you type  Amazon.com in your web browser?&lt;br /&gt;I gave a really long answer on how DNS works. He also wanted the details about the hierarchical nature of DNS. So I explained about the root servers and the caching that happens in between. So the root server responds with the authoritative server for COM and then a DNS query is sent to COM server asking for the authoritative server for AMAZON.com. Finally the Amazon.com nameserver responds with the real ip of the machine hosting Amazon.com. There are some HTTP requests and response between the server and client. A successful response is usually a 200 OK status message followed by the complete HTML body.&lt;br /&gt;The client renders the HTML and shows the page to the user. He asked me if there are multiple requests for getting the different images in a page and I said yes ofcourse.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-8757626747265453636?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/8757626747265453636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=8757626747265453636' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/8757626747265453636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/8757626747265453636'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/08/my-amazon-interview-experience.html' title='My Amazon interview experience'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-4316312398460076337</id><published>2007-04-24T12:43:00.000-07:00</published><updated>2007-04-25T19:03:01.219-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='terracotta fc6 macbook mac'/><title type='text'>Terracotta on FC6</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:verdana;"&gt;Terracota makes clustering simpler by providing a shared VM concept, where the application programmer need not worry about any kind of clustering API's and assume that her code will be executed across multiple JVMs. Its a novel approach for clustering any application without the need of changing much code.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Its driven by a XML based configuration file called tc-config.xml file which can control the classes you want to share across multiple JVM. By sharing it is not the usual serialized way of sharing, instead Terracotta sends the difference between the objects and thus is more efficient.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The sample applications provided with Terracotta are very neat and show the power of Terracotta and it just works out of the box. While I was trying to download Terracotta on my Mac, I did not see any Mac binaries in the download page. I remember seeing the demos in different videos &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://video.google.com/videoplay?docid=7660457673499305140"&gt;[1]&lt;/a&gt;&lt;span style="font-family:verdana;"&gt; used Mac. Ofcourse it is based on Java and it will work on Mac, but I was annoyed to see only three links when I clicked on the download link. Later I found out that it has been fixed with the new version 2.3-stable1 build which is a generic build and can be used in most  unix like platform. Its available as a separate tab in the download page and was hard to notice. I did download the generic 2.3-stable version and got it working without any problems. I had to set my JAVA_HOME to /System/Library/Frameworks/JavaVM.framework/Home/&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I dual boot Mac and Linux FC6  - unfortunately I have a few issues in Linux (battery, hibernate and sound related) and have to boot in Mac quite often. But being a Linux fan and with Terracotta giving me a reason to boot into my Linux again, I booted in FC6 got all the Linux binaries - the three binaries listed in the download site (DSO, Spring and Session). Untarred them to a terrocotta directory and ran the demos. For a start DSO is good and untarring that alone would be better.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;#bash# cd terracotta/terracotta&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;-2.2.1/dso/bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;" &gt;#bash# ./tc-welcome.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;FC6 has some issues with 3d Desktop effects and swing. The swing applications like JTable demo did not show up and it was not because of Terracotta - any swing application in FC6 did not work. I thought it was related to gcj java and I tried to remove all the gcj related packages. While removing gcj, I had to loose almost all the important packages like eclipse and open office which are dependent on libgcj. After loosing all my good applications, I tried running Terracotta again and still saw the same blank JTable frame. Then I had to google to find the solution to the problem and then I discovered that it was the 3d desktop effects (XGL) that was causing the problem. I was using Jdk 1.6 and it seems that the issue has been fixed in a newer jdk. For now I am happy running my swing applications without the 3d desktop! The JTable application and the Shared editor application worked just as shown in the video &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://video.google.com/videoplay?docid=7660457673499305140"&gt; [1]&lt;/a&gt;&lt;span style="font-family:verdana;"&gt; and the introductory video at Terracotta.com.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Overall I was really impressed by the product. As with any rapidly developed open source (or commercial product) the documentation was really scattered around and there were lot of things to read.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;[1] &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://video.google.com/videoplay?docid=7660457673499305140"&gt;Google Video - Terracotta presentation&lt;/a&gt;&lt;br /&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/3370623880686051754-4316312398460076337?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/4316312398460076337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/4316312398460076337'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/04/terracotta-on-fc6.html' title='Terracotta on FC6'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3370623880686051754.post-1700662360160835446</id><published>2007-03-12T03:37:00.000-07:00</published><updated>2007-05-05T01:51:31.993-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux fedora fc6 mac macbook'/><title type='text'>Macbook and Linux</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;I got the latest Macbook Core 2 duo (Mar 2007) and really liked the new OS with the speed of Intel Core 2 Duo processors. At first I found it hard to use OS X, mainly with the keyboard layout and new shortcuts, but I liked a few things about Mac.  Few of the UI things were really mind blowing, but then I was lost trying to find a few things. I am more of a Linux fan, but Mac OS X seems to be a better alternative to the more dominant Windows. I found the Mac experience better compared to Linux, since most of the things work straight out of the box. I know Linux requires a bit more work in that area, but I am sure it will catch up soon.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;Being a hard core Linux fan, I thought of installing Linux in my Macbook.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;I had used bootcamp to partition the drive, but unfortunately I pressed OK somewhere and created only a 5GB Linux partition :(. I had also installed reFit for dual booting OS X and Linux.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;I managed to install Fedora Core 6 64 bit version on this 5GB parition, but I was not able to boot  because of some partition synchnozation issues. MacBook uses the new EFI partition. Many of the Linux tools like parted, etc is aware of this partitioning scheme, the Linux installers does not work straight out of the box :(. I had to do a few reboots and do synchronization using reFit.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;I was impressed by the new effects in FC6. The cube effect and other desktop effects were really cool.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;The new wireless card is not supported yet (Mar 2007) and I had to use the wired network to browse the internet. I saw Flash 9 was available, but could not have it working because of my 64 bit version. I could use ndiswrapper to make the wifi card work, but it required a 32 bit OS.  I also had a 5GB linux partition, which was not enough by any means. I wanted to increase the partition and thought about installing different Linux versions in Macbook. Then I had some issues resizing and I had to completely remove the Linux partition and start from scratch. I did not want to install OS X again, so I had a 40GB OS X partition which I did not touch. I wanted to install various Linux versions and with the new EFI partitioning, there was a limitation of the number of partitions you can have. I wish there was something like extended partition to satisfy my ambitious goal of installing multiple Linux distribution. In my previous IBM thinkpad I had 3 Linux distributions and one other OS. (MS Windows which I rarely used). I found that one way I could achieve that in my Macbook is to use LVM and dynamically resize the partitions and create new partitions for new distributions that I want to install. Unfortunately Ubuntu at that time (or maybe even now) did not have support for LVM and Gentoo live CD did not work that well - X did not start and I tried running some install scripts from command line which failed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;   I downloaded FC6 32bit version now and I burned a DVD. I booted using the FC6 DVD and created LVM partitions. So I had four partitions now - two of them were the EFI partition and the MAC hfs+ partition which I did not touch. I had to create a boot partition of 100+MB, since boot partition cannot reside on LVMs. I then created  few partitions inside LVM - one of them was the / partition and others were partitions like /home and /opt. /home will be shared with all the distributions once I have more distributions installed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;  After installing I got the basic rpm's like mplayer, flash which are not there by default. I was forced to use Yum, though I am not a big fan of Yum. I like apt-get and I am aware of the apt-get port for rpm, but recently I have been using the defaults provided by the distribution. With Ubuntu apt-get is the default since its debian based and I really like that command :). I have used Smart with OpenSuse - which was not bad.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;    I used ndiswrapper with a binary driver for some time and was irritated by the frequent kernel crash. I had no choice but to use this driver or stay near a wired network :(. I was constantly tracking ticket 1001 in madwifi and finally one fine day there was an announcement that support for the card with device id 024 is finally available. I checked out the madwifi branch and everything worked fine with an access point without encryption. But with WEP  it did not work and &lt;strike&gt;I am now tracking ticket number 1243 and hoping to have WEP support soon!&lt;/strike&gt;&lt;/span&gt;&lt;/span&gt; WEP support is finally available (Yay and thanks to all those developers who made this possible) for device id 024 ( the one that comes with Macbook). To compile the madwifi drivers, get the following branch of madwifi:&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;#bash#&lt;/span&gt; svn co http://svn.madwifi.org/branches/madwifi-hal-0.9.30.13 madwifi-wep&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;#bash# &lt;/span&gt;cd madwifi-wep&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;#bash# &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;make &amp;&amp;amp; make install&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;#bash# &lt;/span&gt;modprobe ath_pci&lt;br /&gt;(also added the following entry in modprobe.conf &lt;br /&gt;alias wifi0 ath_pci&lt;br /&gt;)&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;/span&gt;NetworkManager in Fedora did not detect the card even after restarting it several times. May be it was some issue with uninstalling the previous version of madwifi driver that I had installed. I had to reboot (I have never done that in Linux, except for Kernel upgrades) to find that NetworkManager worked perfectly and I was just able to connect to a WEP based network using this new driver.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;   I do have issues with hibernation and suspend. It does suspend or hibernate properly, but after restoring, X behaves strangely. The mouse pointer sometime vanishes or the mouse pointer gets caught in a small area in the top left corner of the screen. I will have to kill X to get a usable desktop.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;font-size:100%;"  &gt; Microphone issues: &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;The soundcard works fine, but the microphone does not work.  I discovered that when I was trying to call someone in Skype and the other person was not able to hear anything. I am yet to apply the mactel patches to get the microphone working.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:verdana;font-size:100%;"  &gt;Battery Usage&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;: I noticed my battery gets drained very fast in Fedora and so I usually have my power cord connected while using Linux.  I tried stopping a few services but that did not help. I think I have to remove some modules and that may increase the battery life.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3370623880686051754-1700662360160835446?l=gvinu.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gvinu.blogspot.com/feeds/1700662360160835446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3370623880686051754&amp;postID=1700662360160835446' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1700662360160835446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3370623880686051754/posts/default/1700662360160835446'/><link rel='alternate' type='text/html' href='http://gvinu.blogspot.com/2007/03/macbook-and-linux.html' title='Macbook and Linux'/><author><name>Vinubalaji Gopal</name><uri>http://www.blogger.com/profile/18295251305088526008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
