<?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>Rahul Vaidya's Blog &#187; development</title>
	<atom:link href="http://www.rvaidya.com/blog/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rvaidya.com/blog</link>
	<description>Development, Tech, Whatever.</description>
	<lastBuildDate>Wed, 16 Sep 2009 00:33:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Step-by-step quick installation of Redmine + SVN on Windows</title>
		<link>http://www.rvaidya.com/blog/ruby/2009/09/15/step-by-step-quick-installation-of-redmine-svn-on-windows/</link>
		<comments>http://www.rvaidya.com/blog/ruby/2009/09/15/step-by-step-quick-installation-of-redmine-svn-on-windows/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 00:31:11 +0000</pubDate>
		<dc:creator>Rahul</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[mongrel]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.rvaidya.com/blog/?p=63</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Through trial and error, I have done a quick setup of Redmine + SVN on Windows.&nbsp; This does not use Apache and WebDAV.&nbsp; The Ruby on Rails webserver, Mongrel, is used, and SVN is accessed through svnserve (svn://).&nbsp; If you need a full deployment of Redmine, with automatic generation of SVN repositories and SVN accounts, this can be a starting point (let me know how you got it to work!).&nbsp; If you want a quick and dirty setup, this may be the only guide you need!</p>
<p>Here are the steps:</p>
<ol style="margin-left: 0.3902in; direction: ltr; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11pt;">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"> <span style="font-family: Calibri; font-size: 11pt;">Go to </span><a href="http://rubyonrails.org/download" target="_blank"><span style="font-family: Calibri; font-size: 11pt;">http://rubyonrails.org/<wbr></wbr>download</span></a></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"> <span style="font-family: Calibri; font-size: 11pt;">Install Ruby</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Install RubyGems</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ gem install rails ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"> <span style="font-family: Calibri; font-size: 11pt;">Run [ gem install mysql      ]<span>&nbsp; </span>(in case we want to use mysql as      db, sqlite is fine though)</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ gem install rake ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"> <span style="font-family: Calibri; font-size: 11pt;">Run [ gem install      sqlite3-ruby ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Extract redmine (I extracted      to C:\Ruby\redmine-0.8.4)</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Browse to redmine      folder/config</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Copy database.yml.example to      database.yml</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Set database options for      production:</span>
<ol style="margin-left: 0.375in; direction: ltr; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11pt;" type="a">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"> <span style="font-family: Calibri; font-size: 11pt;">In production:</span>
<ol style="margin-left: 0.375in; direction: ltr; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11pt;" type="i">
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">adapter: sqlite3</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"> <span style="font-family: Calibri; font-size: 11pt;">dbfile: db/prod.db</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">host: localhost</span></li>
</ol>
</li>
</ol>
</li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Get sqlite3.dll from sqlite 3      distribution (<a href="http://www.sqlite.org" target="_blank">http://www.sqlite.org</a>) and put in Ruby/bin directory</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Browse to Redmine directory in command prompt<br />
</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ rake db:migrate      RAILS_ENV="production" ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ rake      redmine:load_default_data RAILS_ENV="production" ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ gem install mongrel ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ gem install      mongrel_service ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ mongrel_rails      service::install -N Redmine_Server -D "Redmine Server on      Mongrel" -e "production" ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Start service and set to      &#8220;Automatic&#8221;</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Username: admin Password:      admin</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Refer to </span><a href="http://www.redmine.org/wiki/redmine/RedmineInstall" target="_blank"><span style="font-family: Calibri; font-size: 11pt;">http://www.redmine.org/wiki/<wbr></wbr>redmine/RedmineInstall</span></a><span style="font-family: Calibri; font-size: 11pt;"> for SMTP config (If you want      emails generated for tickets, etc.)</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Install CollabNet SVN as      svnservice (WebDAV not needed), svn root C:\svn_repository</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Start service &#8220;CollabNet      Subversion svnserve&#8221;</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Run [ svnadmin create      c:\svn_repository ]</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Uncomment anon-access = read,      auth-access = write, password-db = passwd in svnserve.conf</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Add users to Redmine, have      user change password to whatever they want it to</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Add users to passwd (same      username), all plaintext, so create random passwords for each user and      have them record it (cannot be changed unless requested by admin, and      admin will know what pw is)</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Restart Redmine_Server      service</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Create subfolders for      projects, and trunk/tags/branches for each project</span></li>
<li style="margin-top: 0pt; margin-bottom: 0pt; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Add      svn://localhost/projectname as project root for each project in Redmine</span></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.rvaidya.com/blog/ruby/2009/09/15/step-by-step-quick-installation-of-redmine-svn-on-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Wrapper classes for using SQLite on iPhone/Cocoa</title>
		<link>http://www.rvaidya.com/blog/iphone/2009/02/14/wrapper-classes-for-using-sqlite-on-iphonecocoa/</link>
		<comments>http://www.rvaidya.com/blog/iphone/2009/02/14/wrapper-classes-for-using-sqlite-on-iphonecocoa/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 00:28:47 +0000</pubDate>
		<dc:creator>Rahul</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.rvaidya.com/blog/?p=19</guid>
		<description><![CDATA[Information on using SQLite for local storage on Cocoa isn&#8217;t all that easy to find. The best resource, as always, is Google, and you can find a few tutorials with step by step instructions and code samples on how to use it. Well, here&#8217;s another basic step by step set of instructions, but rather than [...]]]></description>
			<content:encoded><![CDATA[<p>Information on using SQLite for local storage on Cocoa isn&#8217;t all that easy to find.  The best resource, as always, is Google, and you can find a few tutorials with step by step instructions and code samples on how to use it.  Well, here&#8217;s another basic step by step set of instructions, but rather than including code samples, I have written a couple of wrapper classes for creating databases, making queries, and getting results.</p>
<p>Steps:</p>
<p>1: Include the SQLite framework in your project.  It&#8217;s usually located somewhere like &#8220;/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/libsqlite3.0.dylib&#8221; (why is developer in there twice?)</p>
<p>2: Create a base sqlite database file, and modify SQLite.m so that the filename method refers to it.  Place it in your main resource path.  This will be copied out of your bundle into your application&#8217;s Documents directory.  If you need help on creating one of these and managing it, there is a fantastic <a href="https://addons.mozilla.org/en-US/firefox/addon/5817" target="_blank">FireFox extension</a> that does it for you!</p>
<p>3: Add the source files to your project.</p>
<p>Usage can be as simple as:</p>
<p><!--DEVFMTCODE--><pre class="devcodeblock" title="Objective-C"><div class="devcodeoverflow"><ol><li></li><li>SQLiteResult <span style="color: #002200;">*</span>result <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>SQLite query<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;SELECT * from test;&quot;</span><span style="color: #002200;">&#93;</span>;</li><li><span style="color: #400080;">NSArray</span> <span style="color: #002200;">*</span>row <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>result.rows objectAtIndex<span style="color: #002200;">:</span>0<span style="color: #002200;">&#93;</span>;</li><li><span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>firstValue <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>row objectAtIndex<span style="color: #002200;">:</span>0<span style="color: #002200;">&#93;</span>;</li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
<p>NSArray columnNames contains NSStrings of all the names.<br />
NSArray columnTypes contains NSStrings of all the types.<br />
NSArray rows contains NSArrays, where each of these contains NSStrings of all the row values in that row.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rvaidya.com/blog/iphone/2009/02/14/wrapper-classes-for-using-sqlite-on-iphonecocoa/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
