<?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>Amit Kothari</title>
	<atom:link href="http://amitkothari.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://amitkothari.com</link>
	<description></description>
	<lastBuildDate>Sat, 30 Jul 2011 13:23:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Use IntelliJ for iPhone development using Titanium</title>
		<link>http://amitkothari.com/2011/intellij-for-iphone-development-using-titanium/</link>
		<comments>http://amitkothari.com/2011/intellij-for-iphone-development-using-titanium/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 13:09:28 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Titanium]]></category>
		<category><![CDATA[IntelliJ]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://amitkothari.com/?p=506</guid>
		<description><![CDATA[Since I wrote the post about setting up Eclipse for iPhone development using Titanium, Appcelerator has acquired Aptana. Titanium studio built on top of Aptana studio is the best supported IDE for mobile and desktop application development using Titanium. I &#8230; <a href="http://amitkothari.com/2011/intellij-for-iphone-development-using-titanium/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since I wrote the post about <a href="http://amitkothari.com/2010/setting-up-eclipse-for-iphone-development-using-titanium/" target="_blank">setting up Eclipse for iPhone development using Titanium</a>, Appcelerator has acquired <a href="http://www.aptana.com/" target="_blank">Aptana</a>. <a href="http://www.appcelerator.com/products/download/" target="_blank">Titanium studio</a> built on top of Aptana studio is the best supported IDE for mobile and desktop application development using Titanium.</p>
<p>I use <a href="http://www.jetbrains.com/idea/" target="_blank">IntelliJ</a> for Java development and just out of curiosity wanted to try developing Titanium applications using it.</p>
<p>Enabling code completion in IntelliJ is very simple and straight forward. All we need is to add the JavaScript header file based on <a href="http://developer.appcelerator.com/apidoc/mobile/1.7.2/api.json" target="_blank">Titanium API JSON file</a> to the project source directory.</p>
<p>I have used the <a href="http://jamesdlow.googlecode.com/svn/trunk/Eclipse/Aptana/Titanium/titanium.php" target="_blank">PHP script</a> provided by James Low on his <a href="http://jameslow.com/2010/05/31/titanium-autocomplete-eclipse/" target="_blank">blog</a> to generate the JavaScript header file.</p>
<p><a href="http://amitkothari.com/wp-content/uploads/titanium-mobile.js">Download JavaScript header file for Titanium Mobile 1.7.2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://amitkothari.com/2011/intellij-for-iphone-development-using-titanium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Backup:: WP Time Machine</title>
		<link>http://amitkothari.com/2010/wordpress-backup-wp-time-machine/</link>
		<comments>http://amitkothari.com/2010/wordpress-backup-wp-time-machine/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 10:16:01 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://amitkothari.com/?p=386</guid>
		<description><![CDATA[WP Time Machine is a nice plugin to backup sites running on wordpress and copy the data to remote storage servers like Dropbox and Amazon’s AWS S3. It creates an archive of the site content including all uploaded files and copy &#8230; <a href="http://amitkothari.com/2010/wordpress-backup-wp-time-machine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://wptimemachine.com/">WP Time Machine</a> is a nice plugin to backup sites running on wordpress and copy the data to remote storage servers like <a href="http://dropbox.com">Dropbox</a> and <a href="https://s3.amazonaws.com">Amazon’s AWS S3</a>. It creates an archive of the site content including all uploaded files and copy it to the remote server.</p>
<p>Dropbox&#8217;s basic plan offers 2GB of space for free.</p>
]]></content:encoded>
			<wfw:commentRss>http://amitkothari.com/2010/wordpress-backup-wp-time-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install git on shared host</title>
		<link>http://amitkothari.com/2010/install-git-on-shared-host/</link>
		<comments>http://amitkothari.com/2010/install-git-on-shared-host/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 13:51:55 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://amitkothari.com/?p=131</guid>
		<description><![CDATA[Git is a distributed revision control system developed by Linus Torvalds for Linux kernel development. I have heard a lot about git regarding its speed and flexible workflow and decided to install git on my shared host, just to get a feel &#8230; <a href="http://amitkothari.com/2010/install-git-on-shared-host/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="Linux kernel" href="http://wiki/git" target="_blank">Git</a> is a distributed revision control system developed by <a title="Linus Torvalds" href="http://wiki/Linus_Torvalds" target="_blank">Linus Torvalds</a> for <a title="Linux kernel" href="http://wiki/Linux_kernel" target="_blank">Linux kernel</a> development. I have heard a lot about git regarding its speed and flexible workflow and decided to install git on my shared host, just to get a feel of it.</p>
<p>The good news is that git is very easy to install, but before you start, you need ssh access to your shared host.</p>
<p># Make new directory for git<br />
$mkdir git<br />
$cd git</p>
<p># Download latest version of git from distribution website<br />
$wget http://kernel.org/pub/software/scm/git/git-1.6.0.4.tar.gz</p>
<p>#Uncompress source<br />
$gunzip git-1.6.0.4.tar.gz, tar -xf git-1.6.0.4.tar</p>
<p>#Configure and compile git<br />
$cd git-1.6.0.4<br />
$./configure &#8211;prefix=$HOME/git<br />
$make &amp;&amp; make install</p>
<p># Update .bashrc file by adding following line and source it<br />
export PATH=$HOME/git/bin/:$HOME/git/lib/libexec/git-core/:$PATH<br />
$source ~/.bashrc</p>
<p>Test your installation<br />
$git &#8211;version</p>
<p>if there is no error then you are good to go.</p>
<p>Thanks <a href="http://hostmonsterforum.com/showthread.php?4589-HOWTO-install-Git-on-Hostmonster" target="_blank">marlio3</a> for all the instructions</p>
]]></content:encoded>
			<wfw:commentRss>http://amitkothari.com/2010/install-git-on-shared-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Eclipse for iPhone development using Titanium</title>
		<link>http://amitkothari.com/2010/setting-up-eclipse-for-iphone-development-using-titanium/</link>
		<comments>http://amitkothari.com/2010/setting-up-eclipse-for-iphone-development-using-titanium/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 10:30:59 +0000</pubDate>
		<dc:creator>Amit</dc:creator>
				<category><![CDATA[Titanium]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://amitkothari.com/?p=126</guid>
		<description><![CDATA[Working as a Java developer, I enjoy the flexibility which the platform offers. It allows me to develop on/for different platforms, using IDE, framework and application server that suits my requirements and I am comfortable with. Apple on the other &#8230; <a href="http://amitkothari.com/2010/setting-up-eclipse-for-iphone-development-using-titanium/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Working as a Java developer, I enjoy the flexibility which the platform offers. It allows me to develop on/for different platforms, using IDE, framework and application server that suits my requirements and I am comfortable with.</p>
<p>Apple on the other hand has a more restrictive system with their own development platform, SDKs and recommend development tools. The advantage of having their own platform means they can change the hardware or add new features which will be directly available to the developers. Although all iPhone apps have their own unique functionality and interface, having one single platform offers a uniformity in the interface and thus a better user experience.</p>
<p>Having different platform is working well for apple but for developers this means learning new programming language and getting familiar with new development tools. This is where platforms like appcelerator comes into play. Appcelerator Titanium is a platform that allows development of cross platform mobile and desktop applications using common web technologies like javascript. Although I still need Mac OS X and iPhone SDK but I can write code in javascript which titanium will compile to work on different platforms including iPhone. All I need is Titanium developer which comes with its own mobile and desktop sdk. Titanium developer can be used to create new projects, edit project details if required and run/deploy projects on the device or phone emulator.</p>
<p>One thing missing in Titanium developer is an integrated IDE, I can create a project but then I have to use my own code editor to write code. However, this also means that I am free to select my own development tool for writing code. One issue with this approach is that I have to switch between applications. I have to use my IDE to write code and then use Titanium developer to run the application. After doing some research online I found some quick ways to solve my problem and give a better development experience.</p>
<p>Solution to my problem was using Eclipse external tools feature. External tools allow us to configure and run external programs, scripts etc. We can save these external tool configurations to run them later when required.<br />
So to run applications from Eclipse, all we need is to add a new external tool configuration to run a program with following details:</p>
<p>Location: <strong>/usr/bin/python</strong> (Location where python is installed)</p>
<p>Working Directory: <strong>${project_loc}</strong> (Use variable to define project location as working directory)</p>
<p>Arguments: <strong>&#8220;/Library/Application Support/Titanium/mobilesdk/osx/1.3.2/iphone/builder.py&#8221; simulator &#8220;4.0&#8243; ${project_loc} com.mydomain.${project_name} &#8220;${project_name}&#8221;</strong></p>
<p>I am using Titanium mobilesdk 1.3.2 and iPhone SDK 4.0, the arguments need to be updated if using different SDKs.  I am using reverse domain name as application id, so if my application is myapp and domain name mydomain.com, my application id is com.mydomain.myapp. I am using variable ${project_name} to construct my application id with com.mydomain as a prefix.</p>
<p><a href="http://amitkothari.com/wp-content/uploads/2010/08/external-tool-screnshot1.png"><img class="size-medium wp-image-158 alignnone" title="External tool configuration" src="http://amitkothari.com/wp-content/uploads/2010/08/external-tool-screnshot1-300x238.png" alt="" width="300" height="238" /></a></p>
<p><a href="http://amitkothari.com/wp-content/uploads/2010/08/external-tool-screenshot2.png"><img class="size-medium wp-image-157 alignnone" title="external-tool-screenshot2" src="http://amitkothari.com/wp-content/uploads/2010/08/external-tool-screenshot2-300x238.png" alt="" width="300" height="238" /></a></p>
<p>Next thing which I was missing was auto code completion and I found a solution <a href="http://jameslow.com/?p=784">here</a>. We need to install Aptana plugin for eclipse. Aptana is a web development tool for use with programming language like javascript, PHP etc.</p>
<p>Details on how to install Aptana eclipse plugin can be found on this <a href="http://docs.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration" target="_blank">link</a>.</p>
<p>Once aptana plugin is install, switch to aptana perspective in eclipse (Goto Window -&gt; Open perspective -&gt; Aptana).</p>
<p>Next thing needs to be done is change default editor for javascript file (.js) using Eclipse preferences (Preferences -&gt; General -&gt; Editors -&gt; File Associations) .</p>
<p>Now you need to download this <a href="http://amitkothari.com/wp-content/uploads/TiApi.js">javascript file</a> and add into your file references (Goto Window -&gt; Show Aptana View -&gt; References, Create new profile and add file reference).  For more details on how to create this javascript header file on <a href="http://jameslow.com/2010/05/31/titanium-autocomplete-eclipse/" target="_blank">James blog</a>.</p>
<p>Now create a new project and use the project previously created using Titanium developer.</p>
<p>See this video from James David Low for more details:</p>
<p><a href="http://www.youtube.com/watch?v=d10j2-tEgVY&amp;feature=player_embedded#!">Eclipe auto code completion for iPhone development using Appecelerator Titanium</a></p>
]]></content:encoded>
			<wfw:commentRss>http://amitkothari.com/2010/setting-up-eclipse-for-iphone-development-using-titanium/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

