<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for {:life =&gt; "cs"}</title>
	<atom:link href="http://cslife.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://cslife.wordpress.com</link>
	<description>Himanshu's life in Computer Science</description>
	<lastBuildDate>Tue, 01 Dec 2009 01:39:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Save Vim syntax highlighting to HTML by booloo-booloo</title>
		<link>http://cslife.wordpress.com/2008/12/01/save-vim-syntax-highlighting-to-html/#comment-109</link>
		<dc:creator>booloo-booloo</dc:creator>
		<pubDate>Tue, 01 Dec 2009 01:39:15 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=52#comment-109</guid>
		<description>It is also possible to make the work and retrun immediatly to the command line as if it was a command line tool, like this:

 vim -c &#039;:TOhtml&#039; -c &#039;:w&#039; -c &#039;:q&#039; -c &#039;:q&#039;  sample_code.ml

from there you can also define an alias in your ~/.bashrc to call this command more easily:

 alias vimsyn=&quot;vim -c &#039;:TOhtml&#039; -c &#039;:w&#039; -c &#039;:q&#039; -c &#039;:q&#039; &quot;

then just:
 vimsyn sample_code.ml</description>
		<content:encoded><![CDATA[<p>It is also possible to make the work and retrun immediatly to the command line as if it was a command line tool, like this:</p>
<p> vim -c &#8216;:TOhtml&#8217; -c &#8216;:w&#8217; -c &#8216;:q&#8217; -c &#8216;:q&#8217;  sample_code.ml</p>
<p>from there you can also define an alias in your ~/.bashrc to call this command more easily:</p>
<p> alias vimsyn=&#8221;vim -c &#8216;:TOhtml&#8217; -c &#8216;:w&#8217; -c &#8216;:q&#8217; -c &#8216;:q&#8217; &#8221;</p>
<p>then just:<br />
 vimsyn sample_code.ml</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Some Project Euler solutions in Ruby one-liners by James</title>
		<link>http://cslife.wordpress.com/2009/02/09/some-project-euler-solutions-in-ruby-one-liners/#comment-104</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 11 Sep 2009 18:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=83#comment-104</guid>
		<description>puts (2**1000).to_s.split(&quot;&quot;).inject(0) { &#124;sum,n&#124; sum+n.to_i}</description>
		<content:encoded><![CDATA[<p>puts (2**1000).to_s.split(&#8220;&#8221;).inject(0) { |sum,n| sum+n.to_i}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getters / Setters in Java VS Ruby by mayclinnileaf</title>
		<link>http://cslife.wordpress.com/2008/11/06/getters-setters-in-java-vs-ruby/#comment-92</link>
		<dc:creator>mayclinnileaf</dc:creator>
		<pubDate>Thu, 04 Jun 2009 02:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=42#comment-92</guid>
		<description>Sweet blog. I never know what I am going to come across next. I think you should do more posting as you have some pretty intelligent stuff to say.

I&#039;ll be watching you &lt;a title=&quot;roulette strategy&quot; href=&quot;http://www.roulettesniper.com&quot; rel=&quot;nofollow&quot;&gt;.&lt;/a&gt; &lt;a title=&quot;blackjack strategy&quot; href=&quot;http://www.blackjacksniper.com&quot; rel=&quot;nofollow&quot;&gt;:)&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Sweet blog. I never know what I am going to come across next. I think you should do more posting as you have some pretty intelligent stuff to say.</p>
<p>I&#8217;ll be watching you <a title="roulette strategy" href="http://www.roulettesniper.com" rel="nofollow">.</a> <a title="blackjack strategy" href="http://www.blackjacksniper.com" rel="nofollow"> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bruteforcing md5 in python by l</title>
		<link>http://cslife.wordpress.com/2008/01/27/bruteforcing-md5-in-python/#comment-85</link>
		<dc:creator>l</dc:creator>
		<pubDate>Fri, 22 May 2009 22:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=9#comment-85</guid>
		<description>import md5
words = [word.strip() for word in file(&#039;/usr/share/dict/words&#039;)]
hashes = [md5.new(word).hexdigest() for word in words]
hash = raw_input(&quot;Enter Hash:&quot;)
word =  words[hashes.index(hash)] if hash in hashes else &quot;Not Found.&quot;
print word

---

would do the same. With lesser memory if you used () instead of []. 

- ~l</description>
		<content:encoded><![CDATA[<p>import md5<br />
words = [word.strip() for word in file('/usr/share/dict/words')]<br />
hashes = [md5.new(word).hexdigest() for word in words]<br />
hash = raw_input(&#8220;Enter Hash:&#8221;)<br />
word =  words[hashes.index(hash)] if hash in hashes else &#8220;Not Found.&#8221;<br />
print word</p>
<p>&#8212;</p>
<p>would do the same. With lesser memory if you used () instead of []. </p>
<p>- ~l</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Some Project Euler solutions in Ruby one-liners by Project Euler #1</title>
		<link>http://cslife.wordpress.com/2009/02/09/some-project-euler-solutions-in-ruby-one-liners/#comment-82</link>
		<dc:creator>Project Euler #1</dc:creator>
		<pubDate>Wed, 25 Mar 2009 13:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=83#comment-82</guid>
		<description>[...] Ruby (from csLife) [...]</description>
		<content:encoded><![CDATA[<p>[...] Ruby (from csLife) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Some Project Euler solutions in Ruby one-liners by Himanshu</title>
		<link>http://cslife.wordpress.com/2009/02/09/some-project-euler-solutions-in-ruby-one-liners/#comment-72</link>
		<dc:creator>Himanshu</dc:creator>
		<pubDate>Tue, 17 Feb 2009 06:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=83#comment-72</guid>
		<description>You are right about the solution for problem 16 being less of a one liner than just packing everything in a single line kind of code!

Also, thanks for sharing the link to your ruby-poker gem. I will definitely check it out.</description>
		<content:encoded><![CDATA[<p>You are right about the solution for problem 16 being less of a one liner than just packing everything in a single line kind of code!</p>
<p>Also, thanks for sharing the link to your ruby-poker gem. I will definitely check it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Some Project Euler solutions in Ruby one-liners by Rob Olson</title>
		<link>http://cslife.wordpress.com/2009/02/09/some-project-euler-solutions-in-ruby-one-liners/#comment-71</link>
		<dc:creator>Rob Olson</dc:creator>
		<pubDate>Tue, 17 Feb 2009 06:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=83#comment-71</guid>
		<description>Cool, however I have to say that I&#039;m sure its a true &quot;one liner&quot; if you use semicolons.

Check out my Ruby gem, ruby-poker, for solving problem #54: http://github.com/robolson/ruby-poker</description>
		<content:encoded><![CDATA[<p>Cool, however I have to say that I&#8217;m sure its a true &#8220;one liner&#8221; if you use semicolons.</p>
<p>Check out my Ruby gem, ruby-poker, for solving problem #54: <a href="http://github.com/robolson/ruby-poker" rel="nofollow">http://github.com/robolson/ruby-poker</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getters / Setters in Java VS Ruby by Himanshu</title>
		<link>http://cslife.wordpress.com/2008/11/06/getters-setters-in-java-vs-ruby/#comment-70</link>
		<dc:creator>Himanshu</dc:creator>
		<pubDate>Tue, 03 Feb 2009 12:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=42#comment-70</guid>
		<description>Indeed many programmers seems to be unaware of how cool and efficient it is. I think these days Rails is gaining popularity but then that is only *one* killer application of Ruby...there are a lot of other awesome open source projects powered by Ruby!</description>
		<content:encoded><![CDATA[<p>Indeed many programmers seems to be unaware of how cool and efficient it is. I think these days Rails is gaining popularity but then that is only *one* killer application of Ruby&#8230;there are a lot of other awesome open source projects powered by Ruby!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getters / Setters in Java VS Ruby by Deelip K</title>
		<link>http://cslife.wordpress.com/2008/11/06/getters-setters-in-java-vs-ruby/#comment-69</link>
		<dc:creator>Deelip K</dc:creator>
		<pubDate>Tue, 03 Feb 2009 12:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=42#comment-69</guid>
		<description>Thats, so sexy about ruby. 
I&#039;ve recently started working on ruby. What the hell all the programmers were think till now? I mean, why ruby hasn&#039;t been popular before outside of Japan?</description>
		<content:encoded><![CDATA[<p>Thats, so sexy about ruby.<br />
I&#8217;ve recently started working on ruby. What the hell all the programmers were think till now? I mean, why ruby hasn&#8217;t been popular before outside of Japan?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Save Vim syntax highlighting to HTML by CK</title>
		<link>http://cslife.wordpress.com/2008/12/01/save-vim-syntax-highlighting-to-html/#comment-68</link>
		<dc:creator>CK</dc:creator>
		<pubDate>Thu, 29 Jan 2009 14:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://cslife.wordpress.com/?p=52#comment-68</guid>
		<description>Great post! 

If you&#039;re doing this more than once, probably easiest to just had these things into the _VIMRC or .VIMRC VIM/GVIM configuration file. 

For example, I added the following to the bottom of my file. 

&quot;Export to XHTML Customizations
:let html_number_lines = 0
:let use_xhtml = 1
:let html_use_css = 1

If you have access to a MS Windows machine, Tomas Restrepo has a Windows Powershell script which will convert a color scheme to a CSS file so you can separate the content. It works pretty well and can probably be tweaked as needed. 

http://winterdom.com/weblog/2008/08/01/StylingCodeForBlogVim2Css.aspx</description>
		<content:encoded><![CDATA[<p>Great post! </p>
<p>If you&#8217;re doing this more than once, probably easiest to just had these things into the _VIMRC or .VIMRC VIM/GVIM configuration file. </p>
<p>For example, I added the following to the bottom of my file. </p>
<p>&#8220;Export to XHTML Customizations<br />
:let html_number_lines = 0<br />
:let use_xhtml = 1<br />
:let html_use_css = 1</p>
<p>If you have access to a MS Windows machine, Tomas Restrepo has a Windows Powershell script which will convert a color scheme to a CSS file so you can separate the content. It works pretty well and can probably be tweaked as needed. </p>
<p><a href="http://winterdom.com/weblog/2008/08/01/StylingCodeForBlogVim2Css.aspx" rel="nofollow">http://winterdom.com/weblog/2008/08/01/StylingCodeForBlogVim2Css.aspx</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
