<?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>Vijay&#039;s log</title>
	<atom:link href="http://blog.vijay.name/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vijay.name</link>
	<description>my experiences, thoughts, pain and happiness towards 42 :)</description>
	<lastBuildDate>Mon, 06 Feb 2012 08:22:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dotnet developers reference to Xcode, iOS, iPhone development</title>
		<link>http://blog.vijay.name/index.php/2012/02/05/dotnet-developers-reference-to-xcode-ios-iphone-development/</link>
		<comments>http://blog.vijay.name/index.php/2012/02/05/dotnet-developers-reference-to-xcode-ios-iphone-development/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 07:04:42 +0000</pubDate>
		<dc:creator>vijay</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://blog.vijay.name/?p=46</guid>
		<description><![CDATA[Been working on an iPhone app for our organization, and being a full-time DotNet based developer working on Xcode and iOS development had its quirks. I am documenting my experience on the first few runs so that others can benefit on the same. Adding existing project to a local GIT repository Terminal to the folder [...]]]></description>
			<content:encoded><![CDATA[<p>Been working on an iPhone app for our organization, and being a full-time DotNet based developer working on Xcode and iOS development had its quirks. I am documenting my experience on the first few runs so that others can benefit on the same.</p>
<h2>Adding existing project to a local GIT repository</h2>
<p>Terminal to the folder where the root of the project is and give the following commands</p>
<pre class="brush: bash; title: ; notranslate">
git init
git add .
git commit -m &quot;Initial Commit&quot;
</pre>
<p>Tip from <a href="http://ashfurrow.com/2011/03/how-to-create-git-repos-for-existing-xcode-projects/" target="_blank">http://ashfurrow.com/2011/03/how-to-create-git-repos-for-existing-xcode-projects/</a></p>
<h2>Setting conditional breakpoints in Xcode</h2>
<p>Add a normal breakpoint and then <code>Ctrl+Click</code> on the breakpoint and select <code>Edit Breakpoint</code>. Here you can give the condition under which the breakpoint activates.<br />
Tip from <a href="http://stackoverflow.com/a/989815" target="_blank">http://stackoverflow.com/a/989815</a></p>
<h2>Stepping through code</h2>
<p>Once you have hit the breakpoint, to step through the code find the controllers in the debug area (normally next to the output window). This area would have the buttons for <code>Continue</code>,<code>Step over</code>,<code>Step into</code>, <code>Step out</code>.</p>
<h2>Remove all breakpoints in Xcode</h2>
<p>Well there&#8217;s a two-step way:</p>
<ol>
<li>Press CMD(⌘)+ALT+B to show all breakpoints. UPDATE:In Xcode4 pres CMD(⌘)+6</li>
<li>Select all breakpoints and delete them, like deleting text, with backspace.</li>
</ol>
<p>Tip from <a href="http://stackoverflow.com/a/1665772" target="_blank">http://stackoverflow.com/a/1665772</a></p>
<p>Planning to update this post as I keep discovering new ways of doing old things, do keep checking back.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vijay.name/index.php/2012/02/05/dotnet-developers-reference-to-xcode-ios-iphone-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The City Dark</title>
		<link>http://blog.vijay.name/index.php/2012/02/03/the-city-dark/</link>
		<comments>http://blog.vijay.name/index.php/2012/02/03/the-city-dark/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 07:00:14 +0000</pubDate>
		<dc:creator>vijay</dc:creator>
				<category><![CDATA[Leisure]]></category>

		<guid isPermaLink="false">http://blog.vijay.name/?p=44</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://blog.vijay.name/index.php/2012/02/03/the-city-dark/"><img src="http://img.youtube.com/vi/mT64q0L7Djc/2.jpg" alt="" /></a></span>
]]></content:encoded>
			<wfw:commentRss>http://blog.vijay.name/index.php/2012/02/03/the-city-dark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notable freeware lists</title>
		<link>http://blog.vijay.name/index.php/2012/01/31/notable-freeware-lists/</link>
		<comments>http://blog.vijay.name/index.php/2012/01/31/notable-freeware-lists/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 02:21:24 +0000</pubDate>
		<dc:creator>vijay</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[list]]></category>

		<guid isPermaLink="false">http://blog.vijay.name/?p=25</guid>
		<description><![CDATA[Some of the best freeware lists for your needs: Gizmos freeware reviews: Provides useful comparison of various freeware tools sorted by reviewers rating. MakeUseOf &#8211; Windows, Linux, Mac: Another great collection of useful software (not necessarily freeware). Do check out their site for other categories like Android, iPhone, iPhone and such Addictivetips: A great blog [...]]]></description>
			<content:encoded><![CDATA[<p>Some of the best freeware lists for your needs:</p>
<ul>
<li><a href="http://www.techsupportalert.com/" title="Gizmos freeware reviews" target="_blank">Gizmos freeware reviews</a>: Provides useful comparison of various freeware tools sorted by reviewers rating.</li>
<li>MakeUseOf &#8211; <a href="http://www.makeuseof.com/pages/best-windows-software" title="MAKEUSEOF - Best Windows Software" target="_blank">Windows</a>, <a href="http://www.makeuseof.com/pages/best-linux-software" title="Best Linux Software" target="_blank">Linux</a>, <a href="http://www.makeuseof.com/pages/best-mac-apps" title="Best Mac Apps" target="_blank">Mac</a>: Another great collection of useful software (not necessarily freeware). Do check out their site for other categories like Android, iPhone, iPhone and such</li>
<li><a href="http://www.addictivetips.com/" title="Addictive tips" target="_blank">Addictivetips</a>: A great blog with information related to useful software and tweaks.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.vijay.name/index.php/2012/01/31/notable-freeware-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Email validation using regex</title>
		<link>http://blog.vijay.name/index.php/2012/01/30/email-validation-using-regex/</link>
		<comments>http://blog.vijay.name/index.php/2012/01/30/email-validation-using-regex/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 05:40:55 +0000</pubDate>
		<dc:creator>vijay</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[email validation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[rta]]></category>

		<guid isPermaLink="false">http://blog.vijay.name/?p=13</guid>
		<description><![CDATA[I believe using regular expression is a very bad idea for validating an email address. The main issue seems to stem from the fact that regex is primitive tool to validate the complexity in email grammar, as specified in RFC 5322. Recently I tried registering for an account at the RTA mobile site at http://www.mpark.rta.ae, [...]]]></description>
			<content:encoded><![CDATA[<p>I believe using regular expression is a very bad idea for validating an email address. The main issue seems to stem from the fact that regex is primitive tool to validate the complexity in email grammar, as specified in <a href="http://www.ietf.org/rfc/rfc5322.txt" target="_blank">RFC 5322</a>.</p>
<p>Recently I tried registering for an account at the RTA mobile site at <a title="http://www.mpark.rta.ae" href="http://www.mpark.rta.ae" target="_blank">http://www.mpark.rta.ae</a>, all went fine except for the fact that my valid email account which I have been using since 2006 is not recognized as a valid one.</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="RTA" src="http://blog.vijay.name/wp-content/uploads/2012/01/RTA.png" alt="RTA Registration Form" width="544" height="414" border="0" /></p>
<p>I tried to find out the mechanism they are using to validate the mail, and as expected it was based on a regular expression located <a title="RTA Common JavaScript page" href="http://www.mpark.rta.ae/js/common.js" target="_blank">as part of their script repo.</a> The script we are interested is located in a JavaScript function called <code>isValidEmail</code> which goes in the following way:</p>
<pre class="brush: jscript; highlight: [3]; title: common.js, isValidEmail function; notranslate">function isValidEmail(str) {
   //var re=/^.+\@.+\..+$/;
   var re=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
   return re.test(str);
}</pre>
<p>As it is visible from the above code the regex used will not validate my 4 letter TLD. This is a bad practice and if you are a client facing website, it will sure put off potential clients.</p>
<p>For the RTA site, I simply set a break-point on the return statement and reassigned the variable <code>re</code> to <code>/./</code>, this allowed me to bypass that validation and proceed with the registration.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vijay.name/index.php/2012/01/30/email-validation-using-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life</title>
		<link>http://blog.vijay.name/index.php/2012/01/29/life/</link>
		<comments>http://blog.vijay.name/index.php/2012/01/29/life/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 17:11:39 +0000</pubDate>
		<dc:creator>vijay</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[quote]]></category>

		<guid isPermaLink="false">http://blog.vijay.name/?p=6</guid>
		<description><![CDATA[Life, is to remember and let go&#8230; ~Lost]]></description>
			<content:encoded><![CDATA[<p><em>Life, is to remember and let go&#8230;</em><br />
~Lost</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vijay.name/index.php/2012/01/29/life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

