<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for damniel</title><link>http://disqus.com/people/damniel/</link><description></description><language>en</language><lastBuildDate>Thu, 18 Dec 2008 14:02:52 -0000</lastBuildDate><item><title>Re: Python: Simple File Read and Write</title><link>http://damniel.disqus.com/python_simple_file_read_and_write/#comment-4486043</link><description>Well, &lt;br&gt;I would argue that the input is a list already. If you are wanting to return a subset of the GeneCode list, I would do the following.  There are more graceful ways to achieve this, but this method shows you the logic involved.&lt;br&gt;&lt;br&gt;x = [0,1,2,3]&lt;br&gt;GeneCode = ['AAAA','AAAC','AAAG','AAAT']&lt;br&gt;&lt;br&gt;def Li_to_GC(x):&lt;br&gt;	newList = [GeneCode[i] for i in x]&lt;br&gt;	return newList&lt;br&gt;&lt;br&gt;print Li_to_GC(x)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;In this case, you can then pass any numeric list to LI_to_GC and get the corresponding Genecodes list back.&lt;br&gt;I would check out this great List comprehension article here, and you can learn more. &lt;a href="http://effbot.org/zone/python-list.htm" rel="nofollow"&gt;http://effbot.org/zone/python-list.htm&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Thu, 18 Dec 2008 14:02:52 -0000</pubDate></item><item><title>Re: Breathe new life into Fedora Core 4</title><link>http://damniel.disqus.com/breathe_new_life_into_fedora_core_4/#comment-4485751</link><description>Looks like they moved to more permanent hosting. The new uri looks like &lt;a href="http://rpms.famillecollet.com/remi-release-4.rpm" rel="nofollow"&gt;http://rpms.famillecollet.com/remi-release-4.rpm&lt;/a&gt;.&lt;br&gt;Thanks for the heads up.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Thu, 18 Dec 2008 13:48:42 -0000</pubDate></item><item><title>Re: Python: Simple File Read and Write</title><link>http://damniel.disqus.com/python_simple_file_read_and_write/#comment-4464933</link><description>Thank you Daniel, another problem: &lt;br&gt;x = [0,1,2,3]&lt;br&gt;GeneCode = ['AAAA','AAAC','AAAG','AAAT']&lt;br&gt;def Li_to_GC(x):&lt;br&gt;    for i in x:&lt;br&gt;            print GeneCode[i],&lt;br&gt;Li_to_GC(x)&lt;br&gt;&lt;br&gt;How can convert the result to the list or string?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reza</dc:creator><pubDate>Wed, 17 Dec 2008 14:53:07 -0000</pubDate></item><item><title>Re: Colorado Ski/Snow Report</title><link>http://damniel.disqus.com/colorado_skisnow_report/#comment-4059302</link><description>I am currently out of the office. I will have limited access to email over the next 48 hours.&lt;br&gt;If this is an urgent issue, contact &lt;a href="mailto:info@lijit.com" rel="nofollow"&gt;info@lijit.com&lt;/a&gt; .</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Sat, 29 Nov 2008 03:12:28 -0000</pubDate></item><item><title>Re: Python: Simple File Read and Write</title><link>http://damniel.disqus.com/python_simple_file_read_and_write/#comment-4053496</link><description>All you need to do is specify the location of the file you want to save to.&lt;br&gt;&lt;br&gt;So when opening the second file, specify the directory then. &lt;br&gt;Example on win32:&lt;br&gt;file = open("my_dir\\newfile.txt","w") &lt;br&gt;Example on *nix :&lt;br&gt;file = open("my_dir/newfile.txt","w")&lt;br&gt;&lt;br&gt;This will create the new file in the directory "my_dir" assuming the directory exists in the same folder as your python script. You can also specify an absolute file path as well.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Fri, 28 Nov 2008 14:55:59 -0000</pubDate></item><item><title>Re: Python: Simple File Read and Write</title><link>http://damniel.disqus.com/python_simple_file_read_and_write/#comment-4053148</link><description>I am currently out of the office. I will have limited access to email over the next 48 hours.&lt;br&gt;If this is an urgent issue, contact &lt;a href="mailto:info@lijit.com" rel="nofollow"&gt;info@lijit.com&lt;/a&gt; .</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Fri, 28 Nov 2008 14:09:30 -0000</pubDate></item><item><title>Re: Python File Read Write with Urllib2</title><link>http://damniel.disqus.com/python_file_read_write_with_urllib2/#comment-2521291</link><description>Hey daonb,&lt;br&gt;&lt;br&gt;the only reason I could see an issue with large files, is if the socket connection times out.&lt;br&gt;If you see this happening, check out the socket module. You can import it within this function, and set temporary timeout settings.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Mon, 22 Sep 2008 12:11:52 -0000</pubDate></item><item><title>Re: Boulder Happy Hour Gmaps Mashup</title><link>http://damniel.disqus.com/boulder_happy_hour_gmaps_mashup/#comment-2448657</link><description>I am currently out of the office.&lt;br&gt;Please contact &lt;a href="mailto:support@lijit.com" rel="nofollow"&gt;support@lijit.com&lt;/a&gt; for technical assistance.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Fri, 19 Sep 2008 19:21:09 -0000</pubDate></item><item><title>Re: Lijit Wordpress Plugin Revamped</title><link>http://damniel.disqus.com/lijit_wordpress_plugin_revamped/#comment-1518765</link><description>I am a ninja in my spare time, you got that right.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Sat, 16 Aug 2008 11:31:33 -0000</pubDate></item><item><title>Re: Lijit Wordpress Plugin Revamped</title><link>http://damniel.disqus.com/lijit_wordpress_plugin_revamped/#comment-1480126</link><description>I am "a" ninja . Damn typo killed the comedy.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Fri, 15 Aug 2008 16:46:32 -0000</pubDate></item><item><title>Re: Lijit Wordpress Plugin Revamped</title><link>http://damniel.disqus.com/lijit_wordpress_plugin_revamped/#comment-1480105</link><description>I am ninja in my spare time. That part of your comment is totally accurate.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Fri, 15 Aug 2008 16:44:12 -0000</pubDate></item><item><title>Re: Social Network Effect</title><link>http://damniel.disqus.com/social_network_effect/#comment-459325</link><description>Trying out Disqus on my blog. Yahoo.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">damniel</dc:creator><pubDate>Tue, 13 May 2008 19:40:45 -0000</pubDate></item></channel></rss>