<?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>my two cents</title>
	<atom:link href="http://priteshjshah.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://priteshjshah.com</link>
	<description>yes I write regex and no I can&#039;t fix your computer :)</description>
	<lastBuildDate>Wed, 18 Aug 2010 06:09:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhone app for Public transit in San Francisco</title>
		<link>http://priteshjshah.com/?p=97</link>
		<comments>http://priteshjshah.com/?p=97#comments</comments>
		<pubDate>Tue, 03 Aug 2010 04:49:45 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[san francisco]]></category>
		<category><![CDATA[iphone app]]></category>
		<category><![CDATA[public transit]]></category>
		<category><![CDATA[transporter]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=97</guid>
		<description><![CDATA[I am new to San Francisco and have been using this really cool app called Transporter to find my way through the city. I learned that it is designed by two UC Berkeley students: Ljuba Miljkovic and Thejo Kote.
Apps like these make me pay $30/month for the iphone data plan. Totally worth it  
Great [...]]]></description>
			<content:encoded><![CDATA[<p>I am new to San Francisco and have been using this really cool app called <a href="http://www.transporterapp.net" target="_blank">Transporter</a> to find my way through the city. I learned that it is designed by two UC Berkeley students: Ljuba Miljkovic and Thejo Kote.</p>
<p>Apps like these make me pay $30/month for the iphone data plan. Totally worth it <img src='http://priteshjshah.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Great job guys! </p>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=97</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The power of less</title>
		<link>http://priteshjshah.com/?p=92</link>
		<comments>http://priteshjshah.com/?p=92#comments</comments>
		<pubDate>Tue, 01 Dec 2009 02:33:37 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[find text]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=92</guid>
		<description><![CDATA[Goal: I want to find some text called mytext within all php files in a directory. I also want to display all the matches and highlight them.
If this is what you want try this:
grep -Hin &#34;mytext&#34; *.php &#124; less +/mytext
]]></description>
			<content:encoded><![CDATA[<p><strong>Goal:</strong> I want to find some text called <strong>mytext</strong> within all php files in a directory. I also want to display all the matches and highlight them.<br />
If this is what you want try this:</p>
<pre class="brush: bash; gutter: false;">grep -Hin &quot;mytext&quot; *.php | less +/mytext</pre>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=92</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>find php syntax errors</title>
		<link>http://priteshjshah.com/?p=88</link>
		<comments>http://priteshjshah.com/?p=88#comments</comments>
		<pubDate>Tue, 01 Dec 2009 02:19:32 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[syntax error]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=88</guid>
		<description><![CDATA[To find syntax errors in all php pages within a directory called /var/www/html, use the following command:
find /var/www/html -name '*.php' -type f -exec php -l {} \;
]]></description>
			<content:encoded><![CDATA[<p>To find syntax errors in all php pages within a directory called /var/www/html, use the following command:</p>
<pre class="brush: bash; gutter: false;">find /var/www/html -name '*.php' -type f -exec php -l {} \;</pre>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=88</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sphinx search</title>
		<link>http://priteshjshah.com/?p=83</link>
		<comments>http://priteshjshah.com/?p=83#comments</comments>
		<pubDate>Mon, 16 Nov 2009 00:21:48 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sphinx]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=83</guid>
		<description><![CDATA[Have a big website with millions of records? Is MySQL full-text search letting you down? Sphinx search http://sphinxsearch.com by Andrew Aksyonoff is probably gonna solve your problems. It is an awesome product (and yes it&#8217;s open source) with less than a second search results on a data set with millions of records.
I had the opportunity [...]]]></description>
			<content:encoded><![CDATA[<p>Have a big website with millions of records? Is MySQL full-text search letting you down? Sphinx search <a href="http://sphinxsearch.com" target="_blank">http://sphinxsearch.com</a> by Andrew Aksyonoff is probably gonna solve your problems. It is an awesome product (and yes it&#8217;s open source) with less than a second search results on a data set with millions of records.<br />
I had the opportunity to author a sphinx based search engine for vBulletin. We use it for our huge forums at Internet Brands. A demo can be viewed here:</p>
<ul>
<li><a href="http://honda-tech.com/search.php" target="_blank">Honda-tech.com</a> (35+ million records)</li>
<li><a href="http://forums.corvetteforum.com/search.php" target="_blank">CorvetteForum</a></li>
<li><a href="http://www.flyertalk.com/forum/search.php" target="_blank">FlyerTalk</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=83</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>use watch command to WATCH :)</title>
		<link>http://priteshjshah.com/?p=78</link>
		<comments>http://priteshjshah.com/?p=78#comments</comments>
		<pubDate>Sun, 15 Nov 2009 23:23:46 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=78</guid>
		<description><![CDATA[From the man watch page: &#8220;The -d or &#45;&#45;differences flag will highlight the differences between successive  updates.&#8221;
Try 
watch -d -n 3 &#34;free -m&#34;
The above command would highlight the differences in memory consumption every 3 seconds.
]]></description>
			<content:encoded><![CDATA[<p>From the man watch page: &#8220;The -d or &#45;&#45;differences flag will highlight the differences between successive  updates.&#8221;<br />
Try </p>
<pre class="brush: bash; gutter: false;">watch -d -n 3 &quot;free -m&quot;</pre>
<p>The above command would highlight the differences in memory consumption every 3 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=78</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>slicehost vs rackspacecloud</title>
		<link>http://priteshjshah.com/?p=72</link>
		<comments>http://priteshjshah.com/?p=72#comments</comments>
		<pubDate>Thu, 05 Nov 2009 08:12:52 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[rackspacecloud]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=72</guid>
		<description><![CDATA[I tried a 256 MB slice (that&#8217;s what they call a cloud) with Slicehost, a rackspace company, and the guys are AWESOME! Shortly after that, rackspace came up with rackspacecloud.com (they had slicehost, why would they? who cares   ), and I have been a big big fan of rackspace. So, I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>I tried a 256 MB slice (that&#8217;s what they call a cloud) with Slicehost, a rackspace company, and the guys are AWESOME! Shortly after that, rackspace came up with rackspacecloud.com (they had slicehost, why would they? who cares <img src='http://priteshjshah.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), and I have been a big big fan of rackspace. So, I decided to give rackspacecloud.com a shot. Same memory, same disk space, same everything (well I haven&#8217;t really needed rackspacecloud.com support that often) and close to half the price.</p>
<p>256 MB on slicehost = $20 vs 256 MB on rackspacecloud.com = $11 approximately (for me atleast)</p>
<p>Doesn&#8217;t quite make sense to me <img src='http://priteshjshah.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=72</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to duplicate a file with the current date and time</title>
		<link>http://priteshjshah.com/?p=63</link>
		<comments>http://priteshjshah.com/?p=63#comments</comments>
		<pubDate>Tue, 29 Sep 2009 22:43:08 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[duplicate files]]></category>
		<category><![CDATA[timestamp]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=63</guid>
		<description><![CDATA[To duplicate (backup) a file as filename.unixtimestamp use
cp myfilename{,.`date +%s`}
You can change the date format as per your preference. Below would duplicate it as filename.yyyymmdd
cp myfilename{,.`date +%Y%m%d`}
]]></description>
			<content:encoded><![CDATA[<p>To duplicate (backup) a file as filename.unixtimestamp use</p>
<pre class="brush: bash; gutter: false;">cp myfilename{,.`date +%s`}</pre>
<p>You can change the date format as per your preference. Below would duplicate it as filename.yyyymmdd</p>
<pre class="brush: bash; gutter: false;">cp myfilename{,.`date +%Y%m%d`}</pre>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=63</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To find all files modified after a certain date and time</title>
		<link>http://priteshjshah.com/?p=58</link>
		<comments>http://priteshjshah.com/?p=58#comments</comments>
		<pubDate>Tue, 29 Sep 2009 22:24:16 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[find files]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=58</guid>
		<description><![CDATA[To find all files (regular files) modified after 12:00 AM today use

touch -t `date +%Y%m%d0000` /tmp/mintimestamp
find /path/to/search/for -type f -newer /tmp/mintimestamp
rm /tmp/mintimestamp

The trick is to timestamp /tmp/mintimestamp with the timestamp that we want to compare against.
So you would use the touch command below in the above set of commands to find all files modified after [...]]]></description>
			<content:encoded><![CDATA[<p>To find all files (regular files) modified after 12:00 AM today use</p>
<pre class="brush: bash;">
touch -t `date +%Y%m%d0000` /tmp/mintimestamp
find /path/to/search/for -type f -newer /tmp/mintimestamp
rm /tmp/mintimestamp
</pre>
<p>The trick is to timestamp /tmp/mintimestamp with the timestamp that we want to compare against.</p>
<p>So you would use the touch command below in the above set of commands to find all files modified after 12:00 AM on Jan 1, 2008:</p>
<pre class="brush: bash; gutter: false;">
touch -t `date 200801010000` /tmp/mintimestamp
</pre>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=58</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating website content is quick and easy</title>
		<link>http://priteshjshah.com/?p=51</link>
		<comments>http://priteshjshah.com/?p=51#comments</comments>
		<pubDate>Tue, 29 Sep 2009 01:31:02 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[migrate website content]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=51</guid>
		<description><![CDATA[Check out my post on migrating website content here: http://priteshjshah.com/?page_id=42
]]></description>
			<content:encoded><![CDATA[<p>Check out my post on migrating website content here: <a href="http://priteshjshah.com/?page_id=42">http://priteshjshah.com/?page_id=42</a></p>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=51</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>find everything except something using grep</title>
		<link>http://priteshjshah.com/?p=39</link>
		<comments>http://priteshjshah.com/?p=39#comments</comments>
		<pubDate>Mon, 28 Sep 2009 23:35:02 +0000</pubDate>
		<dc:creator>pshah</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[find text]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://priteshjshah.com/?p=39</guid>
		<description><![CDATA[the -v switch is used to return negative results. So, to find everything which does not contain &#8220;findme&#8221; use
cat filename &#124; grep -v &#34;findme&#34;
]]></description>
			<content:encoded><![CDATA[<p>the -v switch is used to return negative results. So, to find everything which does not contain &#8220;findme&#8221; use</p>
<pre class="brush: bash; gutter: false;">cat filename | grep -v &quot;findme&quot;</pre>
]]></content:encoded>
			<wfw:commentRss>http://priteshjshah.com/?feed=rss2&amp;p=39</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
