<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for bhaviksBlog</title>
	<atom:link href="http://bhaviksblog.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://bhaviksblog.com</link>
	<description></description>
	<lastBuildDate>Sat, 06 Mar 2010 00:03:09 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Stock Quotes on your Desktop with Conky by Ciaran</title>
		<link>http://bhaviksblog.com/02/stock-quotes-on-your-desktop-with-conky/comment-page-1/#comment-6678</link>
		<dc:creator>Ciaran</dc:creator>
		<pubDate>Sat, 06 Mar 2010 00:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://bhaviksblog.com/?p=235#comment-6678</guid>
		<description>Hey, I rearranged some stuff, and made the script a little more efficient by only connecting to Yahoo once to retrieve all stocks, then loop through them.  I&#039;m also using the UK url.  Hope it&#039;s useful.

import urllib2
import os
import sys

OUTPUT_FORMAT = &#039;%-8s  %-6s  %-6s  %-6s  %-7s  %-10s&#039;

def main():
  if len(sys.argv) &gt; 1:
    print OUTPUT_FORMAT % (&#039;Name&#039;,&#039;Value&#039;,&#039;Open&#039;,&#039;Change&#039;,&#039;Time&#039;, &#039;Date&#039;)
    stck_str = &#039;+&#039;.join(sys.argv[1:])
    try:
      csv = urllib2.urlopen(
          &#039;http://uk.old.finance.yahoo.com/&#039;
          &#039;d/quotes.csv?s=%s&amp;f=sl1d1t1c1ohgv&amp;e=.csv&#039; % stck_str)
    except urllib2.URLError, err:
      print &#039;Error getting data from Yahoo.&#039;
      sys.exit(1)
    data = csv.readlines()

    for line in data:
      cells = line.replace(&#039; &#039;, &#039;&#039;).replace(&#039;N/A,&#039;, &#039;&#039;).split(&#039;,&#039;)

      name, value, time, date, change, open_val = cells[0:6]
      print OUTPUT_FORMAT % (name, value, open_val, change, time, date)
  else:
    print &#039;You forgot to supply your stock quote as an arg&#039;
    print &#039;Example: python stocks.py goog&#039;

if __name__ == &#039;__main__&#039;:
  main()</description>
		<content:encoded><![CDATA[<p>Hey, I rearranged some stuff, and made the script a little more efficient by only connecting to Yahoo once to retrieve all stocks, then loop through them.  I&#8217;m also using the UK url.  Hope it&#8217;s useful.</p>
<p>import urllib2<br />
import os<br />
import sys</p>
<p>OUTPUT_FORMAT = &#8216;%-8s  %-6s  %-6s  %-6s  %-7s  %-10s&#8217;</p>
<p>def main():<br />
  if len(sys.argv) &gt; 1:<br />
    print OUTPUT_FORMAT % (&#8216;Name&#8217;,'Value&#8217;,'Open&#8217;,'Change&#8217;,'Time&#8217;, &#8216;Date&#8217;)<br />
    stck_str = &#8216;+&#8217;.join(sys.argv[1:])<br />
    try:<br />
      csv = urllib2.urlopen(<br />
          &#8216;http://uk.old.finance.yahoo.com/&#8217;<br />
          &#8216;d/quotes.csv?s=%s&amp;f=sl1d1t1c1ohgv&amp;e=.csv&#8217; % stck_str)<br />
    except urllib2.URLError, err:<br />
      print &#8216;Error getting data from Yahoo.&#8217;<br />
      sys.exit(1)<br />
    data = csv.readlines()</p>
<p>    for line in data:<br />
      cells = line.replace(&#8216; &#8216;, &#8221;).replace(&#8216;N/A,&#8217;, &#8221;).split(&#8216;,&#8217;)</p>
<p>      name, value, time, date, change, open_val = cells[0:6]<br />
      print OUTPUT_FORMAT % (name, value, open_val, change, time, date)<br />
  else:<br />
    print &#8216;You forgot to supply your stock quote as an arg&#8217;<br />
    print &#8216;Example: python stocks.py goog&#8217;</p>
<p>if __name__ == &#8216;__main__&#8217;:<br />
  main()</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stock Quotes on your Desktop with Conky by aqua</title>
		<link>http://bhaviksblog.com/02/stock-quotes-on-your-desktop-with-conky/comment-page-1/#comment-6463</link>
		<dc:creator>aqua</dc:creator>
		<pubDate>Tue, 23 Feb 2010 11:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://bhaviksblog.com/?p=235#comment-6463</guid>
		<description>hi, great script!!!
but i would ask you if there is a setting for getting the &quot;right&quot; time, because i live in Italy and I got the wrong time displayed

thanks :)</description>
		<content:encoded><![CDATA[<p>hi, great script!!!<br />
but i would ask you if there is a setting for getting the &#8220;right&#8221; time, because i live in Italy and I got the wrong time displayed</p>
<p>thanks <img src='http://bhaviksblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Login System Tutorial &#8211; Part 3 by Bhavik</title>
		<link>http://bhaviksblog.com/02/php-login-system-tutorial-part-3/comment-page-2/#comment-6440</link>
		<dc:creator>Bhavik</dc:creator>
		<pubDate>Mon, 22 Feb 2010 05:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://bhaviksblog.com/?p=151#comment-6440</guid>
		<description>Hey thanks for the comments! Im working on redoing this entire login system using a php framework (codeigniter or cakephp) to show a better/easier way of developing in php. This is going to take awhile though, very busy lately with work and school. This will address the security issues.</description>
		<content:encoded><![CDATA[<p>Hey thanks for the comments! Im working on redoing this entire login system using a php framework (codeigniter or cakephp) to show a better/easier way of developing in php. This is going to take awhile though, very busy lately with work and school. This will address the security issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Login System Tutorial &#8211; Part 3 by Zach</title>
		<link>http://bhaviksblog.com/02/php-login-system-tutorial-part-3/comment-page-2/#comment-6213</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Sat, 13 Feb 2010 12:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://bhaviksblog.com/?p=151#comment-6213</guid>
		<description>Thanks a bunch for this tutorial.
I&#039;m using it as a basis for a small file hosting app for some friends and family.
I&#039;m having some drama with adding password changing, ive messed around with the script and also the addition another user posted in the comments.
I can change the password, but for some reason, its not changing to the password I enter into the form.

All that aside, I am curious about the security aspects of the script, maybe that could be a topic for some more tutorials, I would really love to build on this script and you&#039;ve made it so easy to this point!

Keep up the good work, I look forward to more =)</description>
		<content:encoded><![CDATA[<p>Thanks a bunch for this tutorial.<br />
I&#8217;m using it as a basis for a small file hosting app for some friends and family.<br />
I&#8217;m having some drama with adding password changing, ive messed around with the script and also the addition another user posted in the comments.<br />
I can change the password, but for some reason, its not changing to the password I enter into the form.</p>
<p>All that aside, I am curious about the security aspects of the script, maybe that could be a topic for some more tutorials, I would really love to build on this script and you&#8217;ve made it so easy to this point!</p>
<p>Keep up the good work, I look forward to more =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Have Conky Check Your Email! by hecky</title>
		<link>http://bhaviksblog.com/03/have-conky-check-your-email/comment-page-1/#comment-6087</link>
		<dc:creator>hecky</dc:creator>
		<pubDate>Sat, 06 Feb 2010 23:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://bhaviksblog.com/?p=265#comment-6087</guid>
		<description>Hi...this is GREAT!!! it works for me, but i have a doubt!!!

How can i make to just with one click i&#039;m able to see the unseens mails??</description>
		<content:encoded><![CDATA[<p>Hi&#8230;this is GREAT!!! it works for me, but i have a doubt!!!</p>
<p>How can i make to just with one click i&#8217;m able to see the unseens mails??</p>
]]></content:encoded>
	</item>
</channel>
</rss>
