<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Connecting the dots...</title>
	<atom:link href="http://blog.rajatpandit.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web and Personal Development</description>
	<pubDate>Sat, 15 Nov 2008 15:34:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Skype audio playback and capture problem on ubuntu 8.10</title>
		<link>http://blog.rajatpandit.com/2008/11/15/skype-audio-playback-and-capture-problem-on-ubuntu-810/</link>
		<comments>http://blog.rajatpandit.com/2008/11/15/skype-audio-playback-and-capture-problem-on-ubuntu-810/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 15:34:47 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=83</guid>
		<description><![CDATA[posting a quick note about the problem that I had after upgrading from Hardy Heron to ubuntu 8.10 with skype. There seemed to be a problem with the pulseaudio service and skype, everything worked fine with the audio i.e. playing and recording however using skype, i would get the error.&#8221;Problem with audio capture&#8221; and &#8220;Problem [...]]]></description>
			<content:encoded><![CDATA[<p>posting a quick note about the problem that I had after upgrading from Hardy Heron to ubuntu 8.10 with skype. There seemed to be a problem with the pulseaudio service and skype, everything worked fine with the audio i.e. playing and recording however using skype, i would get the error.&#8221;Problem with audio capture&#8221; and &#8220;Problem with audio playback&#8221;. It turns out that skype works fine with esound instead so running the following commands resolved the problem.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">killall</span> pulseaudio
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove pulseaudio
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> esound
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>Xsession.d<span style="color: #000000; font-weight: bold;">/</span>70pulseaudio</pre></div></div>




Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F11%2F15%2Fskype-audio-playback-and-capture-problem-on-ubuntu-810%2F&amp;title=Skype%20audio%20playback%20and%20capture%20problem%20on%20ubuntu%208.10%20" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F11%2F15%2Fskype-audio-playback-and-capture-problem-on-ubuntu-810%2F&amp;title=Skype%20audio%20playback%20and%20capture%20problem%20on%20ubuntu%208.10%20" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F11%2F15%2Fskype-audio-playback-and-capture-problem-on-ubuntu-810%2F&amp;title=Skype%20audio%20playback%20and%20capture%20problem%20on%20ubuntu%208.10%20" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F11%2F15%2Fskype-audio-playback-and-capture-problem-on-ubuntu-810%2F&amp;title=Skype%20audio%20playback%20and%20capture%20problem%20on%20ubuntu%208.10%20" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F11%2F15%2Fskype-audio-playback-and-capture-problem-on-ubuntu-810%2F&amp;t=Skype%20audio%20playback%20and%20capture%20problem%20on%20ubuntu%208.10%20" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F11%2F15%2Fskype-audio-playback-and-capture-problem-on-ubuntu-810%2F&amp;title=Skype%20audio%20playback%20and%20capture%20problem%20on%20ubuntu%208.10%20" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/11/15/skype-audio-playback-and-capture-problem-on-ubuntu-810/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FOWA 2008</title>
		<link>http://blog.rajatpandit.com/2008/10/13/fowa-2008/</link>
		<comments>http://blog.rajatpandit.com/2008/10/13/fowa-2008/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 15:48:27 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=81</guid>
		<description><![CDATA[
Had pretty interesting two days at the event, must say it was very well organizied and had the best speakers. My summary of the event available here.



Share and Enjoy:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" src="http://farm4.static.flickr.com/3147/2304721552_4e9b6669d7_o.jpg" alt="" width="307" height="205" /></p>
<p>Had pretty interesting two days at the event, must say it was very well organizied and had the best speakers. My summary of the event available <a href="http://developer.yahoo.net/blog/archives/2008/10/the_future_of_w.html">here</a>.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F10%2F13%2Ffowa-2008%2F&amp;title=FOWA%202008" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F10%2F13%2Ffowa-2008%2F&amp;title=FOWA%202008" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F10%2F13%2Ffowa-2008%2F&amp;title=FOWA%202008" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F10%2F13%2Ffowa-2008%2F&amp;title=FOWA%202008" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F10%2F13%2Ffowa-2008%2F&amp;t=FOWA%202008" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F10%2F13%2Ffowa-2008%2F&amp;title=FOWA%202008" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/10/13/fowa-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GIT - version control system</title>
		<link>http://blog.rajatpandit.com/2008/09/14/git-version-control-system/</link>
		<comments>http://blog.rajatpandit.com/2008/09/14/git-version-control-system/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 13:15:29 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[cvs]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[git]]></category>

		<category><![CDATA[svn]]></category>

		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=76</guid>
		<description><![CDATA[Having used CVS, SVN and GIT, GIT clearly seems like my preferred choice of version control system, esp for my symfony projects, its amazing how fast it is and how easy it is to use for most of the basic operations and even for other slightly complex operations like branching and merging. I have previous [...]]]></description>
			<content:encoded><![CDATA[<p>Having used CVS, SVN and GIT, GIT clearly seems like my preferred choice of version control system, esp for my symfony projects, its amazing how fast it is and how easy it is to use for most of the basic operations and even for other slightly complex operations like branching and merging. I have previous covered cvs commands <a href="http://blog.rajatpandit.com/2008/08/02/cvs-term-soup/">here</a> , <a href="http://blog.rajatpandit.com/2008/08/02/branching-and-merging-code-in-cvs/">here</a> and <a href="http://blog.rajatpandit.com/2008/06/03/recursively-adding-files-to-cvs/">here</a> so it seemed fair to have the git commands documented as well, its just much easier to have it all in one place as a quick start primer for anyone who is interested in playing around with it.</p>
<p>Download Information available at:<br />
<a href="http://git.or.cz/#download">http://git.or.cz/#download</a></p>
<p>Before you start, set some git variables.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># set your name and email, used for commit messages</span>
$ git config <span style="color: #660033;">--global</span> user.name <span style="color: #ff0000;">&quot;&quot;</span>
$ git config <span style="color: #660033;">--global</span> user.email <span style="color: #ff0000;">&quot;&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># enable nice colorful output</span>
$ git config <span style="color: #660033;">--global</span> color.diff auto
$ git config <span style="color: #660033;">--global</span> color.status auto
$ git config <span style="color: #660033;">--global</span> color.branch auto</pre></div></div>

<p>You can see the other configuration settings using the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git config <span style="color: #660033;">-l</span></pre></div></div>

<p>Assuming you are in your working directory, initialize the repository using the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git init</pre></div></div>

<p>and you should see the following echoed back to the screen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">Initialized empty Git repository <span style="color: #000000; font-weight: bold;">in</span> .git<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Now you can add all your current files to the repository using the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git add .</pre></div></div>

<p>This is now saved in a temporary staging area which git calls the &#8216;index&#8217;, this can be made permanent by calling the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git commit</pre></div></div>

<p>Now you have a functional repository which you can use to track your changes. The following the basic commands for your usual daily actions.</p>
<p>Adding files to the repository:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git add file1 file2 file3</pre></div></div>

<p>To see the status of the current files, modified or un added files.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git status</pre></div></div>

<p>You can also see the difference in the modified files.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git <span style="color: #c20cb9; font-weight: bold;">diff</span> <span style="color: #660033;">--cached</span></pre></div></div>

<p>Commit the file automatically (adding new files and then committing them to the index can be done using the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git commit <span style="color: #660033;">-a</span></pre></div></div>

<p>And here are the most interesting bits, the ease of branching and merging that might make you fall in love with this.<br />
Creating a new branch:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git branch wacky_idea</pre></div></div>

<p>Listing all the current branches</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git branch
&nbsp;
wacky_idea
<span style="color: #000000; font-weight: bold;">*</span> master</pre></div></div>

<p>If you now want to work on the new branch you need to set the mode to the new branch by checking out the branch.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git checkout wacky_idea</pre></div></div>

<p>Modify and commit your files using the standard <code>$git commit -a</code> and then you can merge it back into master by first checking out master and then doing the merge.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ git checkout master
$ git merge wacky_idea</pre></div></div>

<p>it will show you the summary in case of no conflicts or give you an opportunity to fix them before doing the merge. You obviously would need to do a <code>git commit -a</code> to add your changes to the index and then if you want to remove the branch run <code>git branch -d wacky_idea</code></p>
<p>There are loads of other interesting features that I will post back to the blog but its surely an interesting version control system. The reason I like this so much is because I do a lot of my development during travelling and by far this is the only CMS that I am aware of that allows you to work offline and online as well. There are always work around to run your repo locally on cvs but that doesn&#8217;t serve the purpose of code centralization.</p>
<p>Some interesting links for further reading:</p>
<ul>
<li><a href="http://git.or.cz/">http://git.or.cz/</a></li>
<li><a href="http://www.kernel.org/pub/software/scm/git/docs/everyday.html">http://www.kernel.org/pub/software/scm/git/docs/everyday.html</a></li>
<li><a href="http://jonas.nitro.dk/git/quick-reference.html">http://jonas.nitro.dk/git/quick-reference.html</a></li>
<li> <a href="http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html">http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html</a></li>
</ul>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F14%2Fgit-version-control-system%2F&amp;title=GIT%20-%20version%20control%20system" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F14%2Fgit-version-control-system%2F&amp;title=GIT%20-%20version%20control%20system" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F14%2Fgit-version-control-system%2F&amp;title=GIT%20-%20version%20control%20system" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F14%2Fgit-version-control-system%2F&amp;title=GIT%20-%20version%20control%20system" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F14%2Fgit-version-control-system%2F&amp;t=GIT%20-%20version%20control%20system" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F14%2Fgit-version-control-system%2F&amp;title=GIT%20-%20version%20control%20system" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/09/14/git-version-control-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tabbed interface using a single image</title>
		<link>http://blog.rajatpandit.com/2008/09/02/tabbed-interface-using-a-single-image/</link>
		<comments>http://blog.rajatpandit.com/2008/09/02/tabbed-interface-using-a-single-image/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 22:07:26 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=64</guid>
		<description><![CDATA[I had to recently do a tabbed interface and I looked up for various implementations for tabbed interface mostly including one big image with a space in the middle or two different images one for the left section of the tab and one for the right tab. The solution that I eventually used was implementing [...]]]></description>
			<content:encoded><![CDATA[<p>I had to recently do a tabbed interface and I looked up for various implementations for tabbed interface mostly including one big image with a space in the middle or two different images one for the left section of the tab and one for the right tab. The solution that I eventually used was implementing it with just one image but it didnt have the white space in it and also was sprited to show both active and inactive tabs.</p>
<p><strong>Advantages:</strong></p>
<ul>
<li>Smaller image size</li>
<li>Since the tabs (active and inactive) are sprited hence just one http call would get the required images</li>
<li>Add a class &#8220;tabs&#8221; to any list item and mark anchor with class &#8220;active&#8221; to show active tab</li>
</ul>
<p><strong>Preview:</strong><br />
<a href="http://blog.rajatpandit.com/wp-content/uploads/2008/09/tabs.png"><img src="http://blog.rajatpandit.com/wp-content/uploads/2008/09/tabs.png" alt="Final tabs" title="tabs" width="500" height="34" class="size-full wp-image-72" /></a></p>
<p><strong>Markup:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;ul id=&quot;p-profile-menu&quot; class=&quot;tabs&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;/fe_dev.php/user/basicprofile&quot; class=&quot;&quot;&gt;&lt;span&gt;Basic&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a class=&quot;active&quot; href=&quot;/fe_dev.php/user/physicalprofile&quot;&gt;&lt;span&gt;Physical Details&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/fe_dev.php/user/socialprofile&quot;&gt;&lt;span&gt;Social Profile&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;/fe_dev.php/user/otherprofile&quot;&gt;&lt;span&gt;Other Aspects&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></td></tr></table></div>

<p><strong>CSS</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #6666ff;">.tabs</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span>;
  <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-1px</span>;
  <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#46A7D5</span>;
  <span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span>;
<span style="color: #00AA00;">&#125;</span>
  <span style="color: #6666ff;">.tabs</span> li <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inline</span>;
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span>0 <span style="color: #933;">1px</span>;
  <span style="color: #00AA00;">&#125;</span>
    <span style="color: #6666ff;">.tabs</span> li a <span style="color: #00AA00;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span>;
      <span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span>;
      <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span>;
      <span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span>;
      <span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">transparent</span> </span>url<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'/images/details-tabs.png'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> 0 <span style="color: #933;">-105px</span>;
      <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span>;
    <span style="color: #00AA00;">&#125;</span>
    <span style="color: #6666ff;">.tabs</span> li a span <span style="color: #00AA00;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span>;
      <span style="color: #000000; font-weight: bold;">padding-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span>;
      <span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span>;
      <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span>;
      <span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">transparent</span> </span>url<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'/images/details-tabs.png'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;">-105px</span>;
    <span style="color: #00AA00;">&#125;</span>
    <span style="color: #6666ff;">.tabs</span> li a<span style="color: #6666ff;">.active</span> <span style="color: #00AA00;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span>;
      <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span>;
      <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span>0 <span style="color: #933;">0px</span>;
    <span style="color: #00AA00;">&#125;</span>
    <span style="color: #6666ff;">.tabs</span> li a<span style="color: #6666ff;">.active</span> span <span style="color: #00AA00;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span> <span style="color: #933;">0px</span>;
    <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>and the image used was:<br />
<div id="attachment_65" class="wp-caption aligncenter" style="width: 464px"><a href="http://blog.rajatpandit.com/wp-content/uploads/2008/09/details-tabs.png"><img src="http://blog.rajatpandit.com/wp-content/uploads/2008/09/details-tabs.png" alt="Spritied Image for tabs" title="details-tabs" width="454" height="200" class="size-full wp-image-65" /></a><p class="wp-caption-text">Spritied Image for tabs</p></div></p>
<p>Disclaimer: I am sure someone somewhere must have done this before, I am not claiming any credit for this, the idea for this post is to document this solution for anyone to use later.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F02%2Ftabbed-interface-using-a-single-image%2F&amp;title=Tabbed%20interface%20using%20a%20single%20image" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F02%2Ftabbed-interface-using-a-single-image%2F&amp;title=Tabbed%20interface%20using%20a%20single%20image" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F02%2Ftabbed-interface-using-a-single-image%2F&amp;title=Tabbed%20interface%20using%20a%20single%20image" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F02%2Ftabbed-interface-using-a-single-image%2F&amp;title=Tabbed%20interface%20using%20a%20single%20image" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F02%2Ftabbed-interface-using-a-single-image%2F&amp;t=Tabbed%20interface%20using%20a%20single%20image" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F09%2F02%2Ftabbed-interface-using-a-single-image%2F&amp;title=Tabbed%20interface%20using%20a%20single%20image" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/09/02/tabbed-interface-using-a-single-image/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Relying on javascript for form validation</title>
		<link>http://blog.rajatpandit.com/2008/08/31/relying-on-javascript-for-form-validation/</link>
		<comments>http://blog.rajatpandit.com/2008/08/31/relying-on-javascript-for-form-validation/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 22:33:03 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/2008/08/31/relying-on-javascript-for-form-validation/</guid>
		<description><![CDATA[There is always loads to be said about why NOT to rely on javascript for validation but what&#8217;s better than an example. 
Disable javascript on your browser and then go to http://www.geni.com/ and hit login, it will not only log you in but also say you have a 20% complete profile.  The only saving [...]]]></description>
			<content:encoded><![CDATA[<p>There is always loads to be said about why NOT to rely on javascript for validation but what&#8217;s better than an example. </p>
<p>Disable javascript on your browser and then go to <a href="http://www.geni.com/login/out">http://www.geni.com/</a> and hit login, it will not only log you in but also say you have a 20% complete profile.  The only saving grace is of-course it says the site requires flash and javascript!</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Frelying-on-javascript-for-form-validation%2F&amp;title=Relying%20on%20javascript%20for%20form%20validation" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Frelying-on-javascript-for-form-validation%2F&amp;title=Relying%20on%20javascript%20for%20form%20validation" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Frelying-on-javascript-for-form-validation%2F&amp;title=Relying%20on%20javascript%20for%20form%20validation" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Frelying-on-javascript-for-form-validation%2F&amp;title=Relying%20on%20javascript%20for%20form%20validation" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Frelying-on-javascript-for-form-validation%2F&amp;t=Relying%20on%20javascript%20for%20form%20validation" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Frelying-on-javascript-for-form-validation%2F&amp;title=Relying%20on%20javascript%20for%20form%20validation" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/08/31/relying-on-javascript-for-form-validation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Progressively enhanced connected selects</title>
		<link>http://blog.rajatpandit.com/2008/08/31/progressively-enhanced-connected-selects/</link>
		<comments>http://blog.rajatpandit.com/2008/08/31/progressively-enhanced-connected-selects/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 22:03:40 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=56</guid>
		<description><![CDATA[I am currently working on yet another pet project http://panditg.com (currenty underconstruction, there is a beta url if you want to try it out) its an Indian matrimonial website, in case you dont understand what that means read more here http://en.wikipedia.org/wiki/Marriage_websites .
Anyway that&#8217;s not the reason why this blog post was written as the post&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently working on yet another pet project <a href="http://panditg.com">http://panditg.com</a> (currenty underconstruction, there is a beta url if you want to try it out) its an Indian matrimonial website, in case you dont understand what that means read more here <a href="http://en.wikipedia.org/wiki/Marriage_websites">http://en.wikipedia.org/wiki/Marriage_websites</a> .</p>
<p>Anyway that&#8217;s not the reason why this blog post was written as the post&#8217;s title suggests. I wanted to have a drop down for two items item1 and item2 and based on the selection of item1, item2 would change. I needed to have it working n the non javascript environment and also not make use of ajax to populate the second select box.</p>
<p>As always when I am trying to look for interesting solutions before I start thinking I somehow end up on <a href="http://www.wait-till-i.com/">this mans website</a> <img src='http://blog.rajatpandit.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> So chris posted a really interesting solution but since I am using jquery for this project (and that i am fairly new to it) i decided to implement the same in jquery. I am sure it can be written in a better way as other jquery gurus can suggest, feel free to leave a comment.</p>
<p>Markup:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">    &lt;select name=&quot;quicksearch[religion]&quot; id=&quot;quicksearch_religion&quot;&gt;
              &lt;optgroup label=&quot;Hindu(Any Caste)&quot;&gt;
                    &lt;option value=&quot;Hindu(Any Caste)_1&quot;&gt;Adi Dravida&lt;/option&gt;
                    &lt;option value=&quot;Hindu(Any Caste)_2&quot;&gt;Aggarwal&lt;/option&gt;
                    &lt;option value=&quot;Hindu(Any Caste)_3&quot;&gt;Agri&lt;/option&gt;
                    &lt;option value=&quot;Hindu(Any Caste)_4&quot;&gt;Ambalavasi&lt;/option&gt;
              &lt;/optgroup&gt;
... more markup
              &lt;optgroup label=&quot;Jain&quot;&gt;
                      &lt;option value=&quot;Jain_258&quot;&gt;Digamber&lt;/option&gt;
                      &lt;option value=&quot;Jain_259&quot;&gt;Shwetamber&lt;/option&gt;
                      &lt;option value=&quot;Jain_260&quot;&gt;Others&lt;/option&gt;
                  &lt;/optgroup&gt;
              &lt;optgroup label=&quot;Parsi&quot;&gt;
                     &lt;option value=&quot;Parsi_261&quot;&gt;Not Applicable&lt;/option&gt;
                 &lt;/optgroup&gt;
              &lt;optgroup label=&quot;Jewish&quot;&gt;
                     &lt;option value=&quot;Jewish_262&quot;&gt;Not Applicable&lt;/option&gt;
              &lt;/optgroup&gt;
              &lt;optgroup label=&quot;Buddhist&quot;&gt;
                                &lt;option value=&quot;Buddhist_265&quot;&gt;Not Applicable&lt;/option&gt;
              &lt;/optgroup&gt;
              &lt;optgroup label=&quot;Other&quot;&gt;
                  &lt;option value=&quot;Other_266&quot;&gt;Not Applicable&lt;/option&gt;
              &lt;/optgroup&gt;
          &lt;/select&gt;</pre></td></tr></table></div>

<p>This select box is inside a form tag ofcourse and each form element is a list item, the last list item being the submit button etc. Someday when i have more time I would make this function more generic or make a plugin out of it. For now just as a note (#frm-quicksearch is the form and #quicksearch_religion is the select box)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/**
* jquery to convert the large select into changed selects
* to read from one master select item and make two different selects
*/</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;li&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">insertBefore</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#frm-quicksearch &gt; ol li:last'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;select name=&quot;quicksearch_religion&quot; class=&quot;religion&quot;&gt;'</span><span style="color: #009900;">&#41;</span>;
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;li&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">insertBefore</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#frm-quicksearch &gt; ol li:last'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;select name=&quot;quicksearch&quot; class=&quot;cast&quot;&gt;'</span><span style="color: #009900;">&#41;</span>;
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'select.cast'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'none'</span><span style="color: #009900;">&#41;</span>;  
&nbsp;
  <span style="color: #006600; font-style: italic;">// hide the parent select box</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#quicksearch_religion'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'none'</span><span style="color: #009900;">&#41;</span>;
&nbsp;
  <span style="color: #006600; font-style: italic;">// popular the religion one</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#quicksearch_religion&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;optgroup&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'select.religion'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;option&gt;'</span> <span style="color: #339933;">+</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">label</span> <span style="color: #339933;">+</span>  <span style="color: #3366CC;">'&lt;/option&gt;'</span><span style="color: #009900;">&#41;</span>;
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
  <span style="color: #006600; font-style: italic;">// attach a handler</span>
  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'select.religion'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">change</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">// empty all select options</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'select.cast'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'option'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'display'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'block'</span><span style="color: #009900;">&#41;</span>;
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#quicksearch_religion &gt; optgroup[@label='</span> <span style="color: #339933;">+</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">']'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'option'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'select.cast'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;option value=&quot;'</span> <span style="color: #339933;">+</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">value</span> <span style="color: #339933;">+</span>  <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">text</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/option&gt;'</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>; 
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>;</pre></td></tr></table></div>

<p>This script has the following differences</p>
<ul>
<li> This only works for two level of selects, but not very difficult to add another level or make it generic for that matter</li>
<li> Unlike the example <a href="http://icant.co.uk/sandbox/splitselect.html">http://icant.co.uk/sandbox/splitselect.html</a> there is only one select box for the second level, the options are just removed and updated with the new options, not sure how fast it would be for larger list but it worked well for my requirements.</li>
<li>If you are looking for <a href="http://icant.co.uk/sandbox/splitselectpreselect.html">pre-selected chained result see here</a> or <a href="http://icant.co.uk/sandbox/multilevel.html">preselected select boxes with unlimited levels see here</a>.</li>
</ul>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Fprogressively-enhanced-connected-selects%2F&amp;title=Progressively%20enhanced%20connected%20selects" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Fprogressively-enhanced-connected-selects%2F&amp;title=Progressively%20enhanced%20connected%20selects" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Fprogressively-enhanced-connected-selects%2F&amp;title=Progressively%20enhanced%20connected%20selects" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Fprogressively-enhanced-connected-selects%2F&amp;title=Progressively%20enhanced%20connected%20selects" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Fprogressively-enhanced-connected-selects%2F&amp;t=Progressively%20enhanced%20connected%20selects" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F31%2Fprogressively-enhanced-connected-selects%2F&amp;title=Progressively%20enhanced%20connected%20selects" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/08/31/progressively-enhanced-connected-selects/feed/</wfw:commentRss>
		</item>
		<item>
		<title>First post from the iphone</title>
		<link>http://blog.rajatpandit.com/2008/08/12/first-post-from-the-iphone/</link>
		<comments>http://blog.rajatpandit.com/2008/08/12/first-post-from-the-iphone/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 12:09:39 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[iphone wordpress native app]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/2008/08/12/first-post-from-the-iphone/</guid>
		<description><![CDATA[I recently updated my iPhone to 2.0.1 and played around with some apps from the app store. This native wordpress app is so cool I can now blog on the go



Share and Enjoy:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>I recently updated my iPhone to 2.0.1 and played around with some apps from the app store. This native wordpress app is so cool I can now blog on the go</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F12%2Ffirst-post-from-the-iphone%2F&amp;title=First%20post%20from%20the%20iphone" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F12%2Ffirst-post-from-the-iphone%2F&amp;title=First%20post%20from%20the%20iphone" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F12%2Ffirst-post-from-the-iphone%2F&amp;title=First%20post%20from%20the%20iphone" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F12%2Ffirst-post-from-the-iphone%2F&amp;title=First%20post%20from%20the%20iphone" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F12%2Ffirst-post-from-the-iphone%2F&amp;t=First%20post%20from%20the%20iphone" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F12%2Ffirst-post-from-the-iphone%2F&amp;title=First%20post%20from%20the%20iphone" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/08/12/first-post-from-the-iphone/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hudson</title>
		<link>http://blog.rajatpandit.com/2008/08/03/hudson/</link>
		<comments>http://blog.rajatpandit.com/2008/08/03/hudson/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 20:06:02 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[build process]]></category>

		<category><![CDATA[CI]]></category>

		<category><![CDATA[continous integration]]></category>

		<category><![CDATA[hudson]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=50</guid>
		<description><![CDATA[Hudson monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current Hudson focuses on the following two jobs:

   1. Building/testing software projects continuously, just like CruiseControl or DamageControl. In a nutshell, Hudson provides an easy-to-use so-called continuous integration system, making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. The automated, continuous build increases the productivity.
   2. Monitoring executions of externally-run jobs, such as cron jobs and procmail jobs, even those that are run on a remote machine. For example, with cron, all you receive is regular e-mails that capture the output, and it is up to you to look at them diligently and notice when it broke. Hudson keeps those outputs and makes it easy for you to notice when something is wrong.
]]></description>
			<content:encoded><![CDATA[<p>Recently I have been hearing a lot about <a href="http://hudson.gotdns.com/wiki/display/HUDSON/Meet+Hudson">Hudson</a>, with a friendly web based interface for building / testing and monitoring of processes and it runs on it owns web server and serves pages with clean hackable urls and rss feeds. For anyone who is interesting knowing more about it, the slides below explain what it  does, it seems quite promising especially considering how easy it was to install it using java web start all under less then 3mins.</p>
<div style="width:425px;text-align:left" id="__ss_139405"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/carlo.bonamico/continuous-integration-with-hudson?src=embed" title="Continuous Integration With Hudson">Continuous Integration With Hudson</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=continuous-integration-with-hudson-1192801285234240-2&#038;stripped_title=continuous-integration-with-hudson" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=continuous-integration-with-hudson-1192801285234240-2&#038;stripped_title=continuous-integration-with-hudson" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">view <a style="text-decoration:underline;" href="http://www.slideshare.net/carlo.bonamico/continuous-integration-with-hudson?src=embed" title="View Continuous Integration With Hudson on SlideShare">presentation</a> (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/torino">torino</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/javaday">javaday</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/juggenova">juggenova</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/jug">jug</a>)</div>
</div>
<p>Some other interesting links are:</p>
<ul>
<li><a href="http://hudson.gotdns.com/wiki/display/HUDSON/Meet+Hudson">http://hudson.gotdns.com/wiki/display/HUDSON/Meet+Hudson</a></li>
<li><a href="http://hudson.gotdns.com/wiki/display/HUDSON/Use+Hudson">http://hudson.gotdns.com/wiki/display/HUDSON/Use+Hudson</a></li>
<li><a href="http://hudson.gotdns.com/wiki/display/HUDSON/Hudson+Best+Practices">http://hudson.gotdns.com/wiki/display/HUDSON/Hudson+Best+Practices</a></li>
</ul>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F03%2Fhudson%2F&amp;title=Hudson" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F03%2Fhudson%2F&amp;title=Hudson" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F03%2Fhudson%2F&amp;title=Hudson" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F03%2Fhudson%2F&amp;title=Hudson" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F03%2Fhudson%2F&amp;t=Hudson" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F03%2Fhudson%2F&amp;title=Hudson" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/08/03/hudson/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CVS Term Soup</title>
		<link>http://blog.rajatpandit.com/2008/08/02/cvs-term-soup/</link>
		<comments>http://blog.rajatpandit.com/2008/08/02/cvs-term-soup/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 13:54:20 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=44</guid>
		<description><![CDATA[
I keep getting confused with terms with CVS esp. when I have to start doing some stuff that I usually don&#8217;t have to do on a regular basis. So writing it here  so that I can refer to it later.
Trunk: The trunk is the mainline code base. Its similar to a branch with no [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.rajatpandit.com/wp-content/uploads/2008/08/cvstree.png"><img src="http://blog.rajatpandit.com/wp-content/uploads/2008/08/cvstree-300x299.png" alt="CVS Tree" title="cvstree" width="300" height="299" class="size-medium wp-image-42" style="background-color:#fff;padding:10px"/></a></p>
<p>I keep getting confused with terms with CVS esp. when I have to start doing some stuff that I usually don&#8217;t have to do on a regular basis. So writing it here  so that I can refer to it later.<br />
<strong>Trunk</strong>: The trunk is the mainline code base. Its similar to a branch with no name, so by default all the commits go to this nameless branch.</p>
<p><strong>Branch</strong>: Its an alternate place on the codebase where the commits go other than the trunk. The idea behind is when developers want to work on fixes for a particular release where as other set of developers work on the next release. Then doing a branch is useful. <a href="http://blog.rajatpandit.com/2008/08/02/branching-and-merging-code-in-cvs/">My previous post Branching and Merging Code in CVS</a> has more details on how to use it.</p>
<p><strong>Working Directory</strong>: Working directory is the current directory where the code was checked out.</p>
<p><strong>Tag</strong>: A tag identifies a set of revisions of files in the repository. There are two kinds of tags: static and branch.</p>
<p><strong>Sticky</strong>: The term &#8217;sticky&#8217; in CVS has two somewhat different meanings depending on the context. If you have checked out from a static tag, then those files in your working dir will be &#8217;stuck&#8217; to that tag - and you won&#8217;t be able to commit changes to them until you &#8216;unstick&#8217; them. This is because there may not be a place for that change to go. For example the tag may identify revision 1.5 of a file which already has a revision 1.6. Since there already is a revision 1.6, you can&#8217;t make a new revision 1.6 (unless of course you make a branch&#8230;)</p>
<p>Branches on the other hand, are implemented in CVS by being &#8217;sticky&#8217; to a branch tag where commits are allowed and go into that branch rather than the Trunk. In this sense a branch tag is also known as a &#8217;sticky tag&#8217;. So if you have a branch based at the above file&#8217;s 1.5 revision you can now make a commit to that branch. The new file will have revision number similar to 1.5.1 meaning it is the first revision based on revision 1.5. This is a completely different revision of the file from 1.6 as it is on the &#8216;1.5 branch&#8217; of that file.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fcvs-term-soup%2F&amp;title=CVS%20Term%20Soup" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fcvs-term-soup%2F&amp;title=CVS%20Term%20Soup" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fcvs-term-soup%2F&amp;title=CVS%20Term%20Soup" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fcvs-term-soup%2F&amp;title=CVS%20Term%20Soup" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fcvs-term-soup%2F&amp;t=CVS%20Term%20Soup" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fcvs-term-soup%2F&amp;title=CVS%20Term%20Soup" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/08/02/cvs-term-soup/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Branching and Merging Code in CVS</title>
		<link>http://blog.rajatpandit.com/2008/08/02/branching-and-merging-code-in-cvs/</link>
		<comments>http://blog.rajatpandit.com/2008/08/02/branching-and-merging-code-in-cvs/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 08:58:42 +0000</pubDate>
		<dc:creator>rp</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=39</guid>
		<description><![CDATA[CVS has never been a configuration management system of my choice but none the less there are times when it doesn&#8217;t come down to my choice, I recently had to branch some code as I had to start on a new set of developments where as the previous development hadn&#8217;t been released so I had [...]]]></description>
			<content:encoded><![CDATA[<p>CVS has never been a configuration management system of my choice but none the less there are times when it doesn&#8217;t come down to my choice, I recently had to branch some code as I had to start on a new set of developments where as the previous development hadn&#8217;t been released so I had to save the snapshot of the code and carry on with the development for the next release. Not ideal! but that was the case.</p>
<p>Documenting this for now so that I can refer to it later and for anyone else who might find it useful.</p>
<p><strong>DISCLAIMER</strong>: I have always found working with CVS very daunting and hence I am always extra careful in running the commands. The following instructions work for me and I cannot guarantee how it will work for you. So execute the commands only if you understand the instructions and are sure what you are doing.</p>
<p>Go to working directory and make sure you have the most recent version of the code:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cvs</span> up <span style="color: #660033;">-A</span></pre></div></div>

<p>Do a cvs stat on any file to ensure that you do have any sticky bits set, from a previous branch etc.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cvs</span> <span style="color: #c20cb9; font-weight: bold;">stat</span> stuff.xml
============================================================ 
File: project.xml       Status: Up-to-date
Working revision:    <span style="color: #000000;">1.19</span>
Repository revision: <span style="color: #000000;">1.19</span>     <span style="color: #000000; font-weight: bold;">/</span>code-monkey<span style="color: #000000; font-weight: bold;">/</span>confi<span style="color: #000000; font-weight: bold;">/</span>stuff.xml,v
Sticky Tag:          <span style="color: #7a0874; font-weight: bold;">&#40;</span>none<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Sticky Date:         <span style="color: #7a0874; font-weight: bold;">&#40;</span>none<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Sticky Options:      <span style="color: #7a0874; font-weight: bold;">&#40;</span>none<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Ensure that the working and repository directory are the same.</p>
<p>Tag the current set of files as one save point. Which means you can later refer all those various versions of files stringed together for one tag.</p>

<div class="wp_syntax"><div class="code"><pre class="cvs" style="font-family:monospace;">$ cvs tag CODEBASE_2008_08_30</pre></div></div>

<p>Once tagged, you are ready to branch the code based on that tag.</p>

<div class="wp_syntax"><div class="code"><pre class="cvs" style="font-family:monospace;">$ cvs tag -r CODEBASE_2008_08_30  -b CODEBASE_BRANCH_2008_08_30</pre></div></div>

<p>This creates a branch of your code now called CODEBASE_BRANCH_2008_08_30</p>
<p>Now you can switch to the branch code using the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="cvs" style="font-family:monospace;">$ cvs up -r CODEBASE_BRANCH_2008_08_30</pre></div></div>

<p>Now you can confirm as well which branch you are on by using the stat command on the same file.</p>

<div class="wp_syntax"><div class="code"><pre class="cvs" style="font-family:monospace;">$ cvs stat stuff.xml
===================================================================
File: project.xml       Status: Up-to-date
Working revision:    1.9
Repository revision: 1.9     /code/stuff.xml,v
Sticky Tag:          CODEBASE_BRANCH_2008_08_30 (branch: 1.9.1)
Sticky Date:         (none)
Sticky Options:      (none)</pre></div></div>

<p><strong><br />
Working on the branch</strong>:<br />
Working isn&#8217;t any different from working on the trunck. All the code that you commit while you are on the branch goes straight into the branch.</p>
<p><strong>Merging the branch to the trunk</strong>:<br />
The important thing to remember is before merging you need to switch back to trunck.</p>
<p>You can now verify using <code>cvs stat command as explained above.</code></p>
<p>Doing the actual merge</p>

<div class="wp_syntax"><div class="code"><pre class="base" style="font-family:monospace;">cvs up -j CODEBASE_BRANCH_2008_08_30</pre></div></div>

<p>Now examine the output for any conflicts etc and then fixing them. Its worth at this point of time to run the application and check everything is working fine, run your test suites etc. Once confirmed everything is working fine, its time to check stuff back into the cvs.</p>
<p>You can now either do a full commit of your working directory which is not a good idea or identify which files had to be merged and check those only. To get to know the state of the current working directory run the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cvs</span> <span style="color: #660033;">-nq</span> up</pre></div></div>

<p>and it will show you all the files with their status&#8217;. The files starting with M are the once which have been modified and the once with C are conflicts, resolve them as usual and then you can check files marked as M back into cvs with the comment that they have been merged from the branch.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fbranching-and-merging-code-in-cvs%2F&amp;title=Branching%20and%20Merging%20Code%20in%20CVS" title="Digg"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fbranching-and-merging-code-in-cvs%2F&amp;title=Branching%20and%20Merging%20Code%20in%20CVS" title="del.icio.us"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fbranching-and-merging-code-in-cvs%2F&amp;title=Branching%20and%20Merging%20Code%20in%20CVS" title="Google"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fbranching-and-merging-code-in-cvs%2F&amp;title=Branching%20and%20Merging%20Code%20in%20CVS" title="Sphinn"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/sphinn.gif" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fbranching-and-merging-code-in-cvs%2F&amp;t=Branching%20and%20Merging%20Code%20in%20CVS" title="Facebook"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fblog.rajatpandit.com%2F2008%2F08%2F02%2Fbranching-and-merging-code-in-cvs%2F&amp;title=Branching%20and%20Merging%20Code%20in%20CVS" title="Mixx"><img src="http://blog.rajatpandit.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/08/02/branching-and-merging-code-in-cvs/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
