<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for damniel</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#usercomments-336c07d1" type="application/json"/><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://www.techniqal.com/blog/2005/05/17/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://www.techniqal.com/blog/2008/01/30/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://www.techniqal.com/blog/2005/05/17/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 File Read Write with Urllib2</title><link>http://www.techniqal.com/blog/2008/07/31/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: Lijit Wordpress Plugin Revamped</title><link>http://www.techniqal.com/blog/2008/08/15/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: Social Network Effect</title><link>http://www.techniqal.com/blog/2008/05/08/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>