<?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>Fedora &#187; Rails</title>
	<atom:link href="http://gofedora.com/archives/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://gofedora.com</link>
	<description>How Tos, Tutorials, Tips and Tricks</description>
	<lastBuildDate>Thu, 17 May 2012 04:44:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Summer Hacking</title>
		<link>http://gofedora.com/summer-hacking/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=summer-hacking</link>
		<comments>http://gofedora.com/summer-hacking/#comments</comments>
		<pubDate>Fri, 11 May 2012 20:03:17 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Bootstrap]]></category>
		<category><![CDATA[CoffeeScript]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SCSS]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Summer Hacking]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=1121</guid>
		<description><![CDATA[Summer has already started and we (a small group of current and ex-IIITians in Hyderabad) are planning to have some fun digging into Ruby on Rails and related technologies. If you are also interested in utilizing your summer in a productive and fun way, you can join us and share your knowledge while learning from [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/summer-hacking/' addthis:title='Summer Hacking '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p></p><p>Summer has already started and we (a small group of current and ex-IIITians in Hyderabad) are planning to have some fun digging into Ruby on Rails and related technologies. If you are also interested in utilizing your summer in a productive and fun way, you can join us and share your knowledge while learning from the rest of the members at the same time.</p>
<p>Assuming that all of us know at least one programming language (C/C++/Python), below is the list of things we are planning to learn.</p>
<ol>
<li>Ruby</li>
<ul>
<li>If you already know a programming language, it&#8217;ll not be difficult for you to pick up Ruby.</li>
<li>In case you happen to know Python, you&#8217;ll feel at home.</li>
<li>Spend a good half an hour on <a href="http://www.ruby-lang.org/en/documentation/quickstart/" target="_blank">Ruby In Twenty Minutes</a> and you&#8217;ll know how simple and beautiful Ruby is.</li>
<li>Once you are done with Ruby quick-starter, you can <a href="http://tryruby.org/levels/1/challenges/0" target="_blank">try ruby in your browser</a> and have some fun.</li>
<li>Please go through <a href="https://github.com/styleguide/ruby" target="_blank">Ruby Style Guide</a> to see how to write beautiful and easy to understand Ruby code.</li>
</ul>
<li>Rails</li>
<ul>
<li>If you have worked with any MVC framework in past, you&#8217;ll pickup rails quite easily.</li>
<li>If you have worked with Web2py, then go through this <a href="http://www.slideshare.net/jonromero/rails-vs-web2py" target="_blank">Rails vc Web2py presentation</a> which tries to show similarities among both frameworks.</li>
<li><a href="http://guides.rubyonrails.org/" target="_blank">RailsGuides</a> is one of best and complete documentation for getting started with Ruby on Rails. It may look like a lot of content to beginners. If that&#8217;s the case with you, you can skip the guides in Digging Deeper section.</li>
<li><a href="http://railscasts.com/?type=free" target="_blank">RailsCasts</a> is  like a sea of quality Ruby on Rails screencasts. Watch a few on topics where you may have doubts.</li>
</ul>
<li>jQuery</li>
<ul>
<li>We&#8217;ll be learning <a href="http://jquery.com/" target="_blank">jQuery</a> assuming that all of us are already familiar with JavaScript.</li>
<li>We&#8217;ll learn only basics initially and explore more as we start using it in a Rails project.</li>
</ul>
<li>CoffeeScript</li>
<ul>
<li><a href="http://coffeescript.org/" target="_blank">CoffeeScript</a> is a language that compiles to JavaScript but it&#8217;s way more beautiful to look at and easier to read and understand.</li>
<li>We&#8217;ll not write JavaScript code for our Rails app. Instead, we&#8217;ll be writing CoffeeScript!</li>
</ul>
<li>SCSS</li>
<ul>
<li><a href="http://sass-lang.com/" target="_blank">SCSS</a> is an extension of CSS3. It&#8217;s fun to write stylesheets using SCSS as it brings in additional features like variables, nested rules etc.</li>
<li>SCSS will ultimately be compiled to CSS.</li>
<li>Again, there is not much to do here. Half an hour to familiarize yourself with the syntax and you are ready to roll.</li>
</ul>
<li>Twitter Bootstrap</li>
<ul>
<li><a href="http://twitter.github.com/bootstrap/" target="_blank">Bootstrap</a> is a super simple and crazy awesome CSS and JavaScript toolkit developed by twitter.</li>
<li>We&#8217;ll be using bootstrap to power our Rails apps which we&#8217;ll build at a later stage.</li>
<li>Nothing much to learn here. It&#8217;s more about getting familiar with commonly used classes.</li>
</ul>
<li>Git and GitHub</li>
<ul>
<li>We&#8217;ll be using <a href="http://git-scm.com/" target="_blank">Git</a> for tracking code while building our apps.</li>
<li>We&#8217;ll learn about basic Git functions like cloning a repository, committing code, pushing code to a remote repository, working in different branches etc.</li>
<li>Go through <a href="http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" target="_blank">Git Basics</a> and we can learn more as we start using it full time.</li>
<li>We&#8217;ll be using <a href="http://github.com/" target="_blank">GitHub</a> to host all our code. If you don&#8217;t have an account already, get one.</li>
</ul>
</ol>
<p>We&#8217;ll learn these technologies while working regularly at our work places. Once in a while, we&#8217;ll meet and share our experiences and knowledge. The plan is to spend one or two weeks to go through basic stuff in all the topics. After that we can start a dummy rails project and learn more as we go.</p>
<p>If you are not in Hyderabad and still want to join, just start exploring and we can connect online! Happy Hacking!!!</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/summer-hacking/' addthis:title='Summer Hacking '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/summer-hacking/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TIP: Simple Regular Expression for Email Validation</title>
		<link>http://gofedora.com/tip-simple-regular-expressi-email-validation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tip-simple-regular-expressi-email-validation</link>
		<comments>http://gofedora.com/tip-simple-regular-expressi-email-validation/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 20:09:57 +0000</pubDate>
		<dc:creator>Kulbir Saini</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Email Validation]]></category>
		<category><![CDATA[Regex]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://gofedora.com/?p=667</guid>
		<description><![CDATA[I was playing around with Ruby on Rails and needed an email field for some application. I thought of validating the email address before actually saving it. Googled for same and got tons of results, but none of them was perfect. Few were somewhat exhaustive but horribly difficult to understand and those which were simple [...]<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/tip-simple-regular-expressi-email-validation/' addthis:title='TIP: Simple Regular Expression for Email Validation '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p></p><p>I was playing around with Ruby on Rails and needed an email field for some application. I thought of validating the email address before actually saving it. Googled for same and got tons of results, but none of them was perfect. Few were somewhat exhaustive but horribly difficult to understand and those which were simple were  not exhaustive enough for practical use. I thought I&#8217;ll just write the regex myself and came up with the following. I have tested it for few weird cases like an email hosted on a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.exmaple.com (a subdomain deep down the hierarchy) etc.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">^<span style="color: #7a0874; font-weight: bold;">&#91;</span>A-Za-z0-<span style="color: #000000;">9</span>._<span style="color: #000000; font-weight: bold;">%</span>+-<span style="color: #7a0874; font-weight: bold;">&#93;</span>+<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>A-Za-z0-<span style="color: #000000;">9</span>-<span style="color: #7a0874; font-weight: bold;">&#93;</span>+\.<span style="color: #7a0874; font-weight: bold;">&#41;</span>+<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>A-Za-z0-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">|</span>museum<span style="color: #7a0874; font-weight: bold;">&#41;</span>$</pre></div></div>

<p>I hope it&#8217;ll be of help. And don&#8217;t forget to pen down your suggestions via comments.</p>
<p><a href="http://gofedora.com/">Fedora Tutorials</a> by <a href="http://saini.co.in/">Kulbir Saini</a>.</p>
<div class="addthis_toolbox addthis_default_style " addthis:url='http://gofedora.com/tip-simple-regular-expressi-email-validation/' addthis:title='TIP: Simple Regular Expression for Email Validation '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://gofedora.com/tip-simple-regular-expressi-email-validation/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

