<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ranlak Web Dev</title>
	<atom:link href="http://www.ranlak.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ranlak.net</link>
	<description>Carving your ideas on to the Web!</description>
	<lastBuildDate>Tue, 21 Sep 2010 22:09:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Version Control using SubVersion</title>
		<link>http://www.ranlak.net/2010/09/22/version-control-using-subversion/</link>
		<comments>http://www.ranlak.net/2010/09/22/version-control-using-subversion/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 21:58:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SubVersion]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Notepad++]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Subversion Clients]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[TortoiseSVN]]></category>
		<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://www.ranlak.net/?p=23</guid>
		<description><![CDATA[Its only lately that I stepped up to use Version Control for my Projects. The need was there, but being self taught, there are limitations to what one can formulate to search on Google. I hope that made sense&#8230; So I was introduced to Subversion or SVN, as my friends call it. Its a Version Control package that is Open Source, but maintained and customized by several companies and clients. Its released for many platforms and more details are found at subversion.tigris.org My main aim in writing this post is to iron out some confusing issues I encountered while installing<a href="http://www.ranlak.net/2010/09/22/version-control-using-subversion/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p><a title="111/365 Subversion #01: The future of war" href="http://flickr.com/photos/22539747@N06/4541113447"><img class="alignleft" src="http://farm5.static.flickr.com/4017/4541113447_803f0a1b0f_m.jpg" alt="" width="240" height="189" /></a>Its only lately that I stepped up to use Version Control for my Projects. The need was there, but being self taught, there are limitations to what one can formulate to search on Google. <img src='http://www.ranlak.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I hope that made sense&#8230; <img src='http://www.ranlak.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So I was introduced to Subversion or SVN, as my friends call it. Its a Version Control package that is Open Source, but maintained and customized by several companies and clients. Its released for many platforms and more details are found at <a href="http://subversion.tigris.org/" target="_blank">subversion.tigris.org</a></p>
<p>My main aim in writing this post is to iron out some confusing issues I encountered while installing Subversion on a <span style="text-decoration: underline;">Windows</span> (XP SP3) box. Plus my intention and lateness of using &#8220;Version Control&#8221; is cheifly because I develop usually alone. Thus having no fancy LAN to share my projects with, all I was looking for is Version Control on my trustworthy Windows box.</p>
<p>I use <a href="http://notepad-plus-plus.org/" target="_blank">Notepad++</a> all the time, because through experience I dislike Dreamweaver, and similar IDE&#8217;s. Notepad++, being open source, having similar features to many IDE&#8217;s, yet retaining the good ol&#8217; windows notepad feeling, was my tool all this time. Yet, while at a Job interview recently, I was amazed at the features of <a href="http://www.eclipse.org/pdt/" target="_blank">Eclipse PDT</a>, a Java IDE for PHP. So much for the interview I guess&#8230;.</p>
<p>Eclipse supported SVN and <a href="http://en.wikipedia.org/wiki/Concurrent_Versions_System" target="_blank">CVS</a> (the not so much used, kinda old Versioning System). So I set out to install Eclipse, SVN and <a href="http://tortoisesvn.net/" target="_blank">TortoiseSVN</a> (which is a cool windows interface for SVN). Later I found out that Notepad++ could also in conjunction with TortoiseSVN and another plugin deliver version control.</p>
<p>Let me explain what all these are for, as newbies out there must be getting swirly.</p>
<ul>
<li>To install Subversion all you need is one package from the several mentioned in the windows section of <a href="http://subversion.apache.org/packages.html#windows" target="_blank">subversion.apache.org</a>. I prefer <a href="http://www.sliksvn.com/en/download" target="_blank">SilkSvn</a> which is just plain Subversion. Other Packages have Apache servers built into them, with extra doodles. Subversion has its own server software called svnserve.exe, but as Apache is very extendable, SVN can work super well with Apache.</li>
<li>Eclipse PDT &#8211; PHP IDE needs a plugin called <a href="http://subclipse.tigris.org/" target="_blank">Subclipse</a> to handle Subversion. Both open source.</li>
<li>TortoiseSVN &#8211; really cool Windows Client for SVN. Needed if you are going to use SVN with Notepad. Also open source.</li>
<li>If your using NotePad++ you will need this Notepad plugin, <a href="http://www.switchonthecode.com/tech-news/notepadplusplus-subversion-plugin">Notepad++ SVN</a> to interface with TortoiseSVN</li>
</ul>
<p>That&#8217;s all the software you need. Now installation. I&#8217;m assuming that you have either Eclipse or Notepad++ already installed. If not you should do so now. If you have Eclipse or are installing Eclipse, install Subclipse as well. If you have Notepad++ or installing it, install its SVN plugin too.</p>
<p>Installation of SilkSvn is pretty straight forward. It even adds its parent directory name to %PATH%, so that you can access it from anywhere. After installing SilkSVN install TortoiseSVN. After rebooting you will see, that Tortoise has neatly been integrated into the windows context menu (the one you get when you right click your mouse).</p>
<p>Now a little bit into using SVN. Subversion stores your project file in a file Repository. You can keep track of any individual file you commit to the repository. E.g. when you have modified a source file and &#8220;commit&#8221; the file to the repository, Subversion analysis the file with its latest copy (or &#8220;head&#8221; copy). If truly modified, SVN asks you for a comment, and saves both new file and comment in its repository with a new version number.</p>
<p>The beauty lies in the fact that you can recall back later any version of that source file you have committed! E.g. Current &#8220;head&#8221; version is 10, and there are versions 2, 6 and 8 of the same file. (Subversion sequentially numbers files, in the order they were committed. So this particular file was committed 4 times from the start.) You can retrieve version 2 and start off in a new direction of development. This is called &#8220;branching&#8221;. You can switch between branches, by changing files in your &#8220;Working Copy&#8221; with the relevant branches in your repository. You can even &#8220;merge&#8221; a branch into your main branch &#8211; the &#8220;trunk&#8221;. When you need to get a snapshot of a branch, you can &#8220;tag&#8221; the branch and explore the code.</p>
<p>The <a href="http://svnbook.red-bean.com/en/1.5/svn-book.html" target="_blank">Subversion Manual</a> &amp; TortoiseSVN help file was great in both understanding the concepts of Subversion and TortoiseSVN.</p>
<p>So on with making a repository (repo):</p>
<ul>
<li>if you have TortoiseSVN, just make a folder in your intended drive (better to not use network drives&#8230; more chance of data getting corrupted), right click on it and choose TortoiseSVN &gt;&gt; Create Repository here.
<div id="attachment_24" class="wp-caption aligncenter" style="width: 401px"><a href="http://www.ranlak.net/wp-content/uploads/2010/09/create_repo.png" rel="lightbox[23]"><img class="size-full wp-image-24 " title="create_repo" src="http://www.ranlak.net/wp-content/uploads/2010/09/create_repo.png" alt="create repository" width="391" height="450" /></a><p class="wp-caption-text">Create repository woth TortoiseSVN</p></div></li>
<li>Otherwise, just click &#8220;Run&#8221; in your start menu, type &#8220;cmd&#8221; and press enter. You will get the Windows command prompt. At the prompt type</li>
</ul>
<pre>svnadmin create drive:\folder\
E.g: C:\&gt;svnadmin create c:\repo\</pre>
<p>As you see, TortosieSVN is much easier&#8230;.</p>
<p><div id="attachment_41" class="wp-caption alignright" style="width: 152px"><a rel="attachment wp-att-41" href="http://www.ranlak.net/2010/09/22/version-control-using-subversion/repo_files/"><img class="size-full wp-image-41" title="repo_files" src="http://www.ranlak.net/wp-content/uploads/2010/09/repo_files.png" alt="" width="142" height="174" /></a><p class="wp-caption-text">Repo Contents</p></div>
<ul>
<li>Either way, inside the folder sits the new repository, which consists of 4 folders and 2 files. This structure will not change even when you start adding files.</li>
<li>You should make sure nothing damages this folder structure. As good practice you should back this up ever so often and keep the backups separate from the working repo.</li>
<li>Its generally a good idea to not store the repo on the same drive that has the operating system, i.e Windows installed on. Obviously, if your operation system, or disk were to crash the boot drive has greater chances of being damaged. (I always partition my Hard drive into several drives, and install Windows  in one of them.)</li>
</ul>
<p>Adding files to your Repo:</p>
<ul>
<li>Ideally, create a new folder. Name it something like &#8220;new&#8221;, temporarily. Inside it create 3 folders called &#8220;trunk&#8221;, &#8220;branches&#8221; &amp; &#8220;tags&#8221;.</li>
<li>Copy all the files of your project to the &#8220;trunk&#8221; folder.</li>
<li>Now, click on the folder &#8220;new&#8221; and right click mouse and click TortoiseSVN &gt;&gt; Import. A dialog pops up and asks for your repository URL, and a comment. Type in a comment. For URL we will use Subversion &#8216;file:///&#8217; protocol.
<pre>file:///drive:/repo folder/
E.g: file:///C:/repo</pre>
</li>
<li>Clicking ok, will start adding your files to the repository.
<p><div id="attachment_44" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.ranlak.net/wp-content/uploads/2010/09/import.png" rel="lightbox[23]"><img class="size-medium wp-image-44 " title="import" src="http://www.ranlak.net/wp-content/uploads/2010/09/import-300x225.png" alt="TortoiseSVN Import Dialog" width="300" height="225" /></a><p class="wp-caption-text">TortoiseSVN Import Dialog</p></div></li>
<li>Once this is done, go to the drive where your repo is and right click the repo folder and choose TortoiseSVN &gt;&gt; Repo-Browser, to see the newly added contents.
<p><div id="attachment_47" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.ranlak.net/wp-content/uploads/2010/09/repo_browser.png" rel="lightbox[23]"><img class="size-medium wp-image-47 " title="repo_browser" src="http://www.ranlak.net/wp-content/uploads/2010/09/repo_browser-300x231.png" alt="Repository Browser" width="300" height="231" /></a><p class="wp-caption-text">Repository Browser</p></div></li>
<li>Now your repo is made and filled with version 1 of your software. To easily make changes and update version, you have to make a &#8220;Checkout&#8221;. To do this click the specific drive you want and right click the mouse and choose SVN Checkout. A dialog pops up asking the repo URL and and Checkout folder destination, how many levels of subdirectory&#8217;s to output and what version. Usually, we can output the &#8220;HEAD&#8221; version which is the latest of all the files. Successful execution of this, creates a folder in the drive you chose.</li>
<li>Now you can make any new changes to files inside this folder, whenever you want. TortoiseSVN would detect any modifications and accordingly change the  icon of the corresponding file. You may right click on either individual files or the whole folder and choose SVN Commit, and the file(s_) would be updated to the repo, with incremental version. All this means is whichever files had modifications would now have a version number one higher than they did.</li>
<li>Best of all, you can retrieve all versions of each file. You can use any version of these files to branch of in other directions of your development plan.</li>
</ul>
<p>This is a bare usage guide and an in depth usage tutorial is beyond this posts scope. Perhaps in a another post&#8230;.</p>
<p>If you set up the SVN server [svnserve.exe], you can enjoy SVN services over the &#8220;svn://&#8221; protocol. The major benefits of the &#8220;svn://&#8221; protocol over the &#8220;file://&#8221; protocol are</p>
<ul>
<li>you can limit access to specific usernames with password and other configurable rules.</li>
<li>Faster access to repo through LAN, provided you punch a hole for port: 3690 in your router / firewall</li>
</ul>
<p>to start SVNserve, just visit the command prompt and type:</p>
<pre>C:\&gt;svnserve -d</pre>
<p>Don&#8217;t close the window because it may seem like nothings happening and svnserve.exe got hung. Actually that is how it is and svnserve is ready to serve! Just open the repo browser and type in for repo url:</p>
<pre>svn://localhost/repo folder name
E.g. svn://localhost/repo</pre>
<p>And voila! I hope&#8230;</p>
<p>For those whom the open window becomes a nag just create a windows service like:</p>
<pre>C:/&gt;sc create svnserver binpath= "c:\svn\bin\svnserve.exe --service -r c:\svn\repository" displayname= "Subversion" depend= Tcpip start= auto</pre>
<p>Then just this once you will have to start the service manually, by typing the following:</p>
<pre>C:/&gt;net start svnserve</pre>
<p>Next reboot onwards svnserver will be automatically loaded and be available all the time without any nagging command prompt windows.</p>
<p>Happy Subversioning!</p>
<div class="shr-publisher-23"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ranlak.net/2010/09/22/version-control-using-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Plugins</title>
		<link>http://www.ranlak.net/2010/09/19/wp-plugins/</link>
		<comments>http://www.ranlak.net/2010/09/19/wp-plugins/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 11:36:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Tag]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[World Wide Web]]></category>

		<guid isPermaLink="false">http://www.ranlak.net/?p=8</guid>
		<description><![CDATA[WordPress certainly has a way with Plugins. That said, while checking out several new plugins I cam across an Auto Tag plugin, that&#8217;s connected to the Calais network. Thus what better way to check it out other than write a post. I have been let down by previous plugins promising ever so much, but I&#8217;m optimistic here. So I&#8217;m not tagging this post, so tags you see were put in by the plugin (if any&#8230;) Oh and the plugin is called WP-Auto Add Tags Edit: Well.. round #1 and no tags&#8230;. But the Document Viewer at Calais, shows many tags<a href="http://www.ranlak.net/2010/09/19/wp-plugins/">&#160;&#160;[ Read More ]</a>]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p><a title="New Game :) What does a Scrabble game you played in tell about yourself?" href="http://flickr.com/photos/12596956@N06/3290901509"><img class="alignleft" src="http://farm4.static.flickr.com/3485/3290901509_52157b7f89_m.jpg" alt="" width="240" height="166" /></a>WordPress certainly has a way with Plugins. That said, while checking out several new plugins I cam across an Auto Tag plugin, that&#8217;s connected to the <a href="http://www.opencalais.com" target="_blank">Calais</a> network.</p>
<p>Thus what better way to check it out other than write a post. I have been let down by previous plugins promising ever so much, but I&#8217;m optimistic here. So I&#8217;m not tagging this post, so tags you see were put in by the plugin (if any&#8230;)</p>
<p>Oh and the plugin is called <a href="http://www.autowordpress.biz/" target="_blank"><strong>WP-Auto Add Tags</strong></a></p>
<p>Edit: Well.. round #1 and no tags&#8230;. But the <a href="http://viewer.opencalais.com/" target="_blank">Document Viewer</a> at Calais, shows many tags for my text&#8230; problem in the script?</p>
<p>Edit2: Snooping around the Calais website got me searching for other WordPress plugins using Calais&#8230; and guess what?, there is a Calais Plugin for auto tagging posts called <a href="http://tagaroo.opencalais.com/" target="_blank">Tagaroo</a></p>
<p>It has super functionality! While you type tags are updated on the fly AND also searches flickr for pics with those tags!</p>
<div class="shr-publisher-8"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ranlak.net/2010/09/19/wp-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://www.ranlak.net/2010/09/19/hello-world/</link>
		<comments>http://www.ranlak.net/2010/09/19/hello-world/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 08:14:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[Start]]></category>
		<category><![CDATA[To blog or not to blog?]]></category>

		<guid isPermaLink="false">http://ranlak.net/?p=1</guid>
		<description><![CDATA[Yes Hello World Indeed! So I&#8217;ve decided to give blogging another go. Just that last time it didn&#8217;t go so well, hasn&#8217;t quenched my desire to write. This time around I thought of perhaps being more &#8220;teaching&#8221; than &#8220;telling&#8221; is what I want to try out. So lets see. Have tons of other pages to make too&#8230;]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p>Yes Hello World Indeed!</p>
<p>So I&#8217;ve decided to give blogging another go. Just that last time it didn&#8217;t go so well, hasn&#8217;t quenched my desire to write. This time around I thought of perhaps being more &#8220;teaching&#8221; than &#8220;telling&#8221; is what I want to try out.</p>
<p>So lets see. Have tons of other pages to make too&#8230;</p>
<div class="shr-publisher-1"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ranlak.net/2010/09/19/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

