<?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>Learning is an Art &#187; Programming</title>
	<atom:link href="http://www.singhvishwajeet.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.singhvishwajeet.com</link>
	<description>My experiences</description>
	<lastBuildDate>Thu, 10 Jun 2010 22:19:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing PostgreSQL on Centos/RHEL</title>
		<link>http://www.singhvishwajeet.com/2010/05/07/installing-postgresql-on-centosrhel/</link>
		<comments>http://www.singhvishwajeet.com/2010/05/07/installing-postgresql-on-centosrhel/#comments</comments>
		<pubDate>Thu, 06 May 2010 20:13:13 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[database server]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=380</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-3616637514641870";
/* 728x90, created 4/30/10 */
google_ad_slot = "2350940629";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><p>To install latest version of postgresql we first we need to add pgdg repository to list of repositories open terminal and fire following commands, you need to be root.</p>
<div class="codesnip-container" >
<p>wget http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-redhat-8.4-1.noarch.rpm<br />rpm -Uhv pgdg-redhat-8.4-1.noarch.rpm</div>
</p>
<p>Once repository is installed properly use yum to install postgresql as shown below</p>
<div class="codesnip-container" >
<p>yum install postgresql<br />yum install postgresql-server</div>
</p>
<p>You can do above in a single line choice is yours.</p>
<p>Initialize the database</p>
<div class="codesnip-container" >
<p>initdb -D /usr/local/pgsql/data</p>
</div>
<p>Start the database server</p>
<div class="codesnip-container" >
<p>pg_ctl start -D /usr/local/pgsql/data</p>
</div>
<p>Voila your database server is setup and ready to use.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2010/05/07/installing-postgresql-on-centosrhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP to Get Stock Quotes from Yahoo Finance</title>
		<link>http://www.singhvishwajeet.com/2009/06/25/using-php-to-get-stock-quotes-from-yahoo-finance/</link>
		<comments>http://www.singhvishwajeet.com/2009/06/25/using-php-to-get-stock-quotes-from-yahoo-finance/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 16:26:14 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[stock quote]]></category>
		<category><![CDATA[yahoo finance]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=115</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p>Few months back I wrote this module for some product which I was working that didn&#8217;t work out so I thought I will make it available to people to use.</p>
<p>This is very simple PHP API for fetching stock quotes from yahoo finance. I hope people find it useful. How to use it is mentioned in the PHP file itself. In case you have some queries regarding same ; do let me know.</p>
<p>You can download the PHP file from this link <a href="http://www.singhvishwajeet.com/wp-content/uploads/2009/06/ystock.zip">ystock</a></p>
<p>Any feedbacks are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/06/25/using-php-to-get-stock-quotes-from-yahoo-finance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python Easter Eggs</title>
		<link>http://www.singhvishwajeet.com/2009/04/15/python-ester-eggs/</link>
		<comments>http://www.singhvishwajeet.com/2009/04/15/python-ester-eggs/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 17:25:29 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[xkcd.com]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=73</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p>The Python interpreter contains few easter eggs which expresses sentiments of Python developer by and large I will listing them down if you know more kindly let me know</p>
<p>1. If you open a Python interpreter, and type
<div class="codesnip-container" >import this</div>
<p>, it outputs the following:</p>
<p><em>The Zen of Python, by Tim Peters</em></p>
<p><em>Beautiful is better than ugly.<br />
Explicit is better than implicit.<br />
Simple is better than complex.<br />
Complex is better than complicated.<br />
Flat is better than nested.<br />
Sparse is better than dense.<br />
Readability counts.<br />
Special cases aren&#8217;t special enough to break the rules.<br />
Although practicality beats purity.<br />
Errors should never pass silently.<br />
Unless explicitly silenced.<br />
In the face of ambiguity, refuse the temptation to guess.<br />
There should be one&#8211; and preferably only one &#8211;obvious way to do it.<br />
Although that way may not be obvious at first unless you&#8217;re Dutch.<br />
Now is better than never.<br />
Although never is often better than *right* now.<br />
If the implementation is hard to explain, it&#8217;s a bad idea.<br />
If the implementation is easy to explain, it may be a good idea.<br />
Namespaces are one honking great idea &#8212; let&#8217;s do more of those!</em></p>
<p>2. On python interpreter typing from __future__ import braces</p>
<p>it prints the output as follows <em>Traceback (SyntaxError: <strong>not a chance </strong>(&lt;interactive input&gt;, line 1)</em></p>
<p>3. On python interpreter type import __hello__</p>
<p>this outputs <em>Hello world&#8230;</em></p>
<p>Those were few easter eggs which were there in Python pre-3000 release</p>
<p>An <em>antigravity</em> module is added to Python 3.0. Importing the module opens a web browser to an <a title="Python xkcd" href="http://xkcd.com/353/" target="_blank">xkcd</a> comic that portrays Python having an antigravity module</p>
<p>Kindly let me know if you know any more easter eggs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/04/15/python-ester-eggs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add Jira Quick Search to FireFox Search Provider</title>
		<link>http://www.singhvishwajeet.com/2009/03/09/how-to-add-jira-quick-search-to-firefox-search-provider/</link>
		<comments>http://www.singhvishwajeet.com/2009/03/09/how-to-add-jira-quick-search-to-firefox-search-provider/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 16:50:24 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Firefox Plugin]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[jira]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=65</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p>I am to used to searching everything from Firefox search providers box on the left hand side; I was getting fed up when I type some issue id for my local jira and not getting any results so I decided to develop a search provider for jira quick search and to my surprise it was easier than I expected; hence I put ins some effort in working it out and I want to save effort of people who might be interested in doing same.<br />
We will create an xml file based on following page <tt><a title="open search plugin for firefox" href="https://developer.mozilla.org/en/Creating_OpenSearch_plugins_for_Firefox" target="_blank">creating open search plugin for Firefox</a></tt></p>
<div class="codesnip-container" >
<div class="xml codesnip" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;OpenSearchDescription</span> <span class="re0">xmlns</span>=<span class="st0">&quot;http://a9.com/-/spec/opensearch/1.1/&quot;</span><span class="re0">xmlns:moz</span>=<span class="st0">&quot;http://www.mozilla.org/2006/browser/search/&quot;</span><span class="re2">&gt;</span></span><br />
<span class="sc3"><span class="re1">&lt;ShortName<span class="re2">&gt;</span></span></span>Jira<span class="sc3"><span class="re1">&lt;/ShortName<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;Description<span class="re2">&gt;</span></span></span>My Personal Jira<span class="sc3"><span class="re1">&lt;/Description<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;InputEncoding<span class="re2">&gt;</span></span></span>UTF-8<span class="sc3"><span class="re1">&lt;/InputEncoding<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;Image</span> <span class="re0">width</span>=<span class="st0">&quot;16&quot;</span> <span class="re0">height</span>=<span class="st0">&quot;16&quot;</span><span class="re2">&gt;</span></span>My Image URl<span class="sc3"><span class="re1">&lt;/Image<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;Url</span> <span class="re0">type</span>=<span class="st0">&quot;text/html&quot;</span> <span class="re0">method</span>=<span class="st0">&quot;post&quot;</span> <span class="re0">template</span>=<span class="st0">&quot;http://vishy:8080/jira/secure/QuickSearch.jspa&quot;</span><span class="re2">&gt;</span></span><br />
<span class="sc3"><span class="re1">&lt;Param</span> <span class="re0">name</span>=<span class="st0">&quot;searchString&quot;</span> <span class="re0">value</span>=<span class="st0">&quot;{searchTerms}&quot;</span><span class="re2">/&gt;</span></span><br />
<span class="sc3"><span class="re1">&lt;Param</span> <span class="re0">name</span>=<span class="st0">&quot;ei&quot;</span> <span class="re0">value</span>=<span class="st0">&quot;UTF-8&quot;</span><span class="re2">/&gt;</span></span><br />
<span class="sc3"><span class="re1">&lt;/Url<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;SearchForm<span class="re2">&gt;</span></span></span>http://vishy:8080/jira/secure/QuickSearch.jspa<span class="sc3"><span class="re1">&lt;/SearchForm<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;/OpenSearchDescription<span class="re2">&gt;</span></span></span></div>
</div>
<p>Edit the fields in bold according to your setup and save the file in your &lt;Firefox installation directory&gt;\searchplugins\jira.xml</p>
<p>Restart your browser and check the list of search providers; you will see a new search provider with name you specified in tag short name.</p>
<p>The above concept can be extended for searching any other intranet side through Firefox.</p>
<p>Enjoy searching Jira issues; post me back if you have some issue getting it working. <img src='http://www.singhvishwajeet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/03/09/how-to-add-jira-quick-search-to-firefox-search-provider/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ballmer Peak</title>
		<link>http://www.singhvishwajeet.com/2009/01/01/ballmer-peak/</link>
		<comments>http://www.singhvishwajeet.com/2009/01/01/ballmer-peak/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 20:18:33 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ballmers Peak]]></category>
		<category><![CDATA[xkcd.com]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=43</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 662px"><a href="http://xkcd.com/323/"><img title="Ballmer Peak" src="http://imgs.xkcd.com/comics/ballmer_peak.png" alt="Ballmer Peak" width="652" height="592" /></a><p class="wp-caption-text">Ballmer Peak</p></div>
<p>I agree with Ballmer&#8217;s Peak; personal experience if you have proper quantity of alcohol and than do coding you are highly efficient but have no comments on whats that quantity as when I try I am not able to reach to that level but some time it happens on its own.</p>
<p>So alcohol is good for programmers; just kidding. <img src='http://www.singhvishwajeet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2009/01/01/ballmer-peak/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting Started with Perl on Windows</title>
		<link>http://www.singhvishwajeet.com/2008/08/12/getting-started-with-perl-on-windows/</link>
		<comments>http://www.singhvishwajeet.com/2008/08/12/getting-started-with-perl-on-windows/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 17:51:31 +0000</pubDate>
		<dc:creator>Vishwajeet Singh</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.singhvishwajeet.com/?p=8</guid>
		<description><![CDATA[ [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Perl?</strong>Perl is a programming language referred <em>as<strong> P</strong>ractical <strong>E</strong>xtraction and <strong>R</strong>eporting <strong>L</strong>anguage</em> written by Larry Wall. It was written with a motto TMTOWTDI i.e.</p>
<p><strong>T</strong>here&#8217;s <strong>M</strong>ore <strong>T</strong>han <strong>O</strong>ne <strong>W</strong>ay <strong>T</strong>o <strong>D</strong>o <strong>I</strong>t.</p>
<p><strong>Perl Properties</strong></p>
<ul type="disc">
<li>Interpreted Language</li>
<li>&#8220;Object-Oriented&#8221;</li>
<li>Cross-platform</li>
<li>Extensible, rich set of libraries</li>
<li>Used for Web Programming</li>
</ul>
<p><strong>What do you need?</strong></p>
<ul type="disc">
<li><a href="http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca">Active state Perl</a> or any other standard Perl interpreter</li>
<li>Any text editor such as notepad</li>
</ul>
<p>You can download Perl installer from <a href="http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca">ActiveState download website</a>, you will get a list of installers there, download installer for windows.</p>
<p>Install ActiveState Perl, it does not takes much, simply double click on msi installer file and it will guide you through the rest of installation process.</p>
<p>Now that your installation is over simply go to windows command prompt and do the following</p>
<div class="codesnip-container" >perl -v</div>
<p>You should get the result as below</p>
<div class="codesnip-container" >This is perl, v5.8.8 built for MSWin32-x86-multi-thread<br />
(with 50 registered patches, see perl -V for more detail)</div>
<p>If you get these lines on command prompt, it means that Perl is successfully installed on your machine.</p>
<p><strong>My First program</strong></p>
<p>Just open your favorite editor and type the following lines</p>
<div class="codesnip-container" >#this is my first program<br />
print &#8220;Hell World this is my first program&#8221;;</div>
<p>Your hello world program is ready save it as <em>&#8220;helloworld.pl&#8221;</em> in any directory you feel like.</p>
<p>Go to command prompt and change the current directory to directory where you have saved your <em>&#8220;helloworld.pl&#8221;</em> and type on command line</p>
<div class="codesnip-container" >perl helloworld.pl</div>
<p>You will get output as:
<div class="codesnip-container" >Hell World this is my first program</div>
<p><strong>Key things to notice:</strong></p>
<ul>
<li>Everything that starts with a hash is a comment in perl</li>
<li>Perl statement ends with a semicolon</li>
</ul>
<p>Perl is a lot more than this hello world program, this was just to give you taste of Perl.</p>
<p>I will be back soon with more elaborate articles on Perl, please keep checking this place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.singhvishwajeet.com/2008/08/12/getting-started-with-perl-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
