<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>A little pause…a scarce moment of pause, which I feel is allowed to spend away with little hesitation and sore self-infliction, is the time while my coffee is being ready on the stove.</description><title>Ian S. Yune</title><generator>Tumblr (3.0; @iansyune)</generator><link>http://iansyune.tumblr.com/</link><item><title>&amp; cj…</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_m4v5285Qoi1rt7dsxo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&amp; cj…&lt;/p&gt;</description><link>http://iansyune.tumblr.com/post/24100418105</link><guid>http://iansyune.tumblr.com/post/24100418105</guid><pubDate>Wed, 30 May 2012 21:20:32 -0400</pubDate></item><item><title>HTML Parsing</title><description>&lt;p&gt;&lt;strong&gt;Reference&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;&amp;#8220;HOWTO Fetch Internet Resources Using the Urllib Package&amp;#8221; - &lt;/strong&gt;file:///Library/Frameworks/Python.framework/Versions/3.2/Resources/English.lproj/Documentation/howto/urllib2.html?highlight=urlopen&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&amp;#8220;Python and HTML Processing&amp;#8221;&lt;/strong&gt; - http://www.boddie.org.uk/python/HTML.html (version 2.x)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Fetching URLs&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;urllib.request&lt;/span&gt;

&lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'http://www.voidspace.org.uk'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;&lt;span class="highlighted"&gt;urlopen&lt;/span&gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;the_page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;</description><link>http://iansyune.tumblr.com/post/21185979535</link><guid>http://iansyune.tumblr.com/post/21185979535</guid><pubDate>Sun, 15 Apr 2012 21:27:00 -0400</pubDate><category>python</category><category>parsing</category><category>html</category></item><item><title>Changing IDLE default path</title><description>&lt;p&gt;/Applications/Python 3.x/IDLE.app/Contents/Resources&lt;/p&gt;
&lt;p&gt;os.chdir(os.path.expanduser(&amp;#8216;&lt;strong&gt;~/Desktop/CWD&lt;/strong&gt;&amp;#8217;))&lt;/p&gt;
&lt;p&gt;&lt;em&gt;When this cause IDLE to crash with some idiotic message, this is because some file(s) in the folder you set as the default path, contains &amp;#8220;&lt;strong&gt;import pickle&lt;/strong&gt;&amp;#8221;. Delete this file!&lt;/em&gt;&lt;/p&gt;</description><link>http://iansyune.tumblr.com/post/20904015766</link><guid>http://iansyune.tumblr.com/post/20904015766</guid><pubDate>Wed, 11 Apr 2012 10:36:00 -0400</pubDate><category>python</category><category>IDLE</category><category>crash</category></item><item><title>Python: Module Distribution &amp; Importation</title><description>&lt;p&gt;&lt;strong&gt;Definition&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A module - &amp;#8216;a text file that contains Python code&amp;#8217;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sequences&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. Don&amp;#8217;t forget to &lt;strong&gt;comment&lt;/strong&gt; the code: module comment &amp;amp; function comment on the function itself and the argument positions.&lt;/p&gt;
&lt;p&gt;2. &lt;strong&gt;Create&lt;/strong&gt; the Folder of &amp;lt;&lt;strong&gt;namespace&lt;/strong&gt;&amp;gt;.&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Save the function as &amp;#8216;sth.py&amp;#8217; in the namespace.&lt;/li&gt;
&lt;li&gt;Create &amp;#8216;setup.py&amp;#8217; &lt;/li&gt;
&lt;/ol&gt;</description><link>http://iansyune.tumblr.com/post/20499204305</link><guid>http://iansyune.tumblr.com/post/20499204305</guid><pubDate>Wed, 04 Apr 2012 21:02:38 -0400</pubDate><category>python</category><category>module</category></item></channel></rss>
