<?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 Bradley Froehle</title>
	<atom:link href="http://bfroehle.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://bfroehle.com</link>
	<description>PhD Candidate, UC Berkeley</description>
	<lastBuildDate>Mon, 13 May 2013 17:56:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Debugging MPI + Python by Bradley Froehle</title>
		<link>http://bfroehle.com/2011/09/debugging-mpi-python/#comment-5258</link>
		<dc:creator>Bradley Froehle</dc:creator>
		<pubDate>Mon, 13 May 2013 17:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://bfroehle.com/?p=78#comment-5258</guid>
		<description><![CDATA[I just found out that newer versions of gdb have an &lt;code&gt;-ex&lt;/code&gt; flag which can be used to pass commands for gdb to run without creating a file.

So these days I&#039;m often using:
&lt;code&gt;mpirun -np 8 xterm -e gdb -ex run --args python script.py&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>I just found out that newer versions of gdb have an <code>-ex</code> flag which can be used to pass commands for gdb to run without creating a file.</p>
<p>So these days I&#8217;m often using:<br />
<code>mpirun -np 8 xterm -e gdb -ex run --args python script.py</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RealVNC on Ubuntu 13.04 Raring Ringtail by Bradley Froehle</title>
		<link>http://bfroehle.com/2013/04/realvnc-on-ubuntu-13-04-raring-ringtail/#comment-4997</link>
		<dc:creator>Bradley Froehle</dc:creator>
		<pubDate>Mon, 29 Apr 2013 20:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://bfroehle.com/?p=159#comment-4997</guid>
		<description><![CDATA[To &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/skype/+bug/1155327&quot; rel=&quot;nofollow&quot;&gt;get Skype working&lt;/a&gt;, download and install &lt;a href=&quot;https://launchpad.net/ubuntu/+source/skype/4.1.0.20.0-0ubuntu0.13.04.1&quot; rel=&quot;nofollow&quot;&gt;the new packages&lt;/a&gt; from raring-proposed, and add a line &lt;code&gt;skype-binary=1&lt;/code&gt; to &lt;code&gt;/etc/xdg/sni-qt.conf&lt;/code&gt;.  See &lt;a href=&quot;https://bugs.launchpad.net/sni-qt/+bug/863190&quot; rel=&quot;nofollow&quot;&gt;#863190&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>To <a href="https://bugs.launchpad.net/ubuntu/+source/skype/+bug/1155327" rel="nofollow">get Skype working</a>, download and install <a href="https://launchpad.net/ubuntu/+source/skype/4.1.0.20.0-0ubuntu0.13.04.1" rel="nofollow">the new packages</a> from raring-proposed, and add a line <code>skype-binary=1</code> to <code>/etc/xdg/sni-qt.conf</code>.  See <a href="https://bugs.launchpad.net/sni-qt/+bug/863190" rel="nofollow">#863190</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RealVNC on Ubuntu 13.04 Raring Ringtail by Bradley Froehle</title>
		<link>http://bfroehle.com/2013/04/realvnc-on-ubuntu-13-04-raring-ringtail/#comment-4995</link>
		<dc:creator>Bradley Froehle</dc:creator>
		<pubDate>Mon, 29 Apr 2013 19:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://bfroehle.com/?p=159#comment-4995</guid>
		<description><![CDATA[I&#039;ve had some issues with ParaView in this configuration.  See the &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/paraview/+bug/1174420&quot; rel=&quot;nofollow&quot;&gt;bug report&lt;/a&gt; I filed which does include a workaround.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve had some issues with ParaView in this configuration.  See the <a href="https://bugs.launchpad.net/ubuntu/+source/paraview/+bug/1174420" rel="nofollow">bug report</a> I filed which does include a workaround.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple Timer using Python&#8217;s With Statement by Aaron Meurer</title>
		<link>http://bfroehle.com/2011/07/simple-timer/#comment-1138</link>
		<dc:creator>Aaron Meurer</dc:creator>
		<pubDate>Sat, 22 Sep 2012 01:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://bfroehle.com/?p=46#comment-1138</guid>
		<description><![CDATA[I think a better characterization of a with statement is as a try, finally block.  So the open example is actually the same as (I hope WordPress doesn&#039;t kill my indentation)

try:
    f = open(&#039;/tmp/workfile&#039;, &#039;r&#039;)
    read_data = f.read()
finally:
    f.close()

The important thing being that the f.close() is *always* run, even if some unexpected exception is raised.  You can even call &quot;return&quot; and it will still be called.  It&#039;s the same with __exit__ in a context manager.

And by the way, if you want to use the with statement in Python 2.5, you have to add &quot;from __future__ import with_statement&quot; to the top of the file (or type that out if you&#039;re running interactively).]]></description>
		<content:encoded><![CDATA[<p>I think a better characterization of a with statement is as a try, finally block.  So the open example is actually the same as (I hope WordPress doesn&#8217;t kill my indentation)</p>
<p>try:<br />
    f = open(&#8216;/tmp/workfile&#8217;, &#8216;r&#8217;)<br />
    read_data = f.read()<br />
finally:<br />
    f.close()</p>
<p>The important thing being that the f.close() is *always* run, even if some unexpected exception is raised.  You can even call &#8220;return&#8221; and it will still be called.  It&#8217;s the same with __exit__ in a context manager.</p>
<p>And by the way, if you want to use the with statement in Python 2.5, you have to add &#8220;from __future__ import with_statement&#8221; to the top of the file (or type that out if you&#8217;re running interactively).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python Capsules by Boost.Python and Boost.Function, II &#124; High Order</title>
		<link>http://bfroehle.com/2011/07/python-capsules/#comment-4</link>
		<dc:creator>Boost.Python and Boost.Function, II &#124; High Order</dc:creator>
		<pubDate>Mon, 18 Jul 2011 22:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://bfroehle.com/?p=27#comment-4</guid>
		<description><![CDATA[[...] two previous posts we showed how to call C functions from other modules and Python methods from within a Boost.Python module.  Here we&#8217;ll show that the techniques [...]]]></description>
		<content:encoded><![CDATA[<p>[...] two previous posts we showed how to call C functions from other modules and Python methods from within a Boost.Python module.  Here we&#8217;ll show that the techniques [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Calling Python from C++ by Boost.Python and Boost.Function, II &#124; High Order</title>
		<link>http://bfroehle.com/2011/07/boost-python-and-boost-function/#comment-3</link>
		<dc:creator>Boost.Python and Boost.Function, II &#124; High Order</dc:creator>
		<pubDate>Mon, 18 Jul 2011 22:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://bfroehle.com/?p=39#comment-3</guid>
		<description><![CDATA[[...] two previous posts we showed how to call C functions from other modules and Python methods from within a Boost.Python module.  Here we&#8217;ll show that the techniques are easily combined [...]]]></description>
		<content:encoded><![CDATA[<p>[...] two previous posts we showed how to call C functions from other modules and Python methods from within a Boost.Python module.  Here we&#8217;ll show that the techniques are easily combined [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python Capsules by Calling Python from C++ &#124; High Order</title>
		<link>http://bfroehle.com/2011/07/python-capsules/#comment-2</link>
		<dc:creator>Calling Python from C++ &#124; High Order</dc:creator>
		<pubDate>Mon, 18 Jul 2011 21:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://bfroehle.com/?p=27#comment-2</guid>
		<description><![CDATA[[...] Post navigation &#8592; Previous [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Post navigation &larr; Previous [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
