<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>①ne is 3 (Posts about Python)</title><link>https://www.oneis3.com/</link><description></description><atom:link href="https://www.oneis3.com/categories/python.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2018 &lt;a href="mailto:mpr@oneis3.com"&gt;Michael Rabbitt&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/2.5/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://licensebuttons.net/l/by-nc-sa/2.5/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Fri, 16 Feb 2018 07:10:26 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Fun with Sikuli and Baldur's Gate</title><link>https://www.oneis3.com/posts/fun-with-sikuli-and-baldurs-gate.html</link><dc:creator>Michael Rabbitt</dc:creator><description>&lt;div&gt;&lt;p&gt;A few months ago I was playing &lt;a href="http://www.baldursgate.com"&gt;Baldur's Gate: Enhanced Edition (BGEE)&lt;/a&gt;, and going through the character creation process.  The game chooses the character's initial statistics by simulated random dice rolls.  You can re-distribute points between different attributes as you desire, but you can only increase the total number of points by re-rolling.  You can re-roll as many times as you want, hoping to get a higher total number of points.  You can also "store" and "recall" a single roll.&lt;/p&gt;
&lt;p&gt;The lazy programmer in me saw this as an a task begging for automation.&lt;/p&gt;
&lt;p&gt;I spent the next several hours developing a &lt;a href="http://sikuli.org"&gt;Sikuli&lt;/a&gt; script which automates the process of re-rolling until a desired total roll is reached.  I've finally gotten around to cleaning up the code and releasing it on github as &lt;a href="https://github.com/mrabbitt/BGEE_Sikuli_auto_roller"&gt;BGEE_Sikuli_auto_roller&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here's a video demo (painfully edited in iMovie) of &lt;code&gt;BGEE_Sikuli_auto_roller&lt;/code&gt; in action:&lt;/p&gt;
&lt;iframe width="420" height="315" src="//www.youtube.com/embed/K-0nRvz3z4I" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;

&lt;p&gt;Happy dungeon/code hacking!&lt;/p&gt;&lt;/div&gt;</description><category>Games</category><category>GitHub</category><category>Python</category><category>Sikuli</category><guid>https://www.oneis3.com/posts/fun-with-sikuli-and-baldurs-gate.html</guid><pubDate>Mon, 16 Sep 2013 00:55:24 GMT</pubDate></item><item><title>Python Markdown Extension for Inline Gist</title><link>https://www.oneis3.com/posts/python-markdown-extension-for-inline-gist.html</link><dc:creator>Michael Rabbitt</dc:creator><description>&lt;div&gt;&lt;p&gt;As discussed in &lt;a href="https://groups.google.com/d/topic/nikola-discuss/ScaJGcTGBBY/discussion"&gt;this thread on the Nikola forum&lt;/a&gt;, I'd wanted a way add a custom inline "gist" directive to Nikola which I could use in my markdown posts to include the full contents of the gist in a &lt;code&gt;&amp;lt;noscript&amp;gt;&lt;/code&gt; tag.  This makes gist contents available in the site RSS feed and when viewing the site with Javascript disabled.  Here's a gist (of course) with the Python Markdown extension that makes this possible:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.oneis3.com/posts/python-markdown-extension-for-inline-gist.html"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>GitHub</category><category>Markdown</category><category>Nikola</category><category>Python</category><guid>https://www.oneis3.com/posts/python-markdown-extension-for-inline-gist.html</guid><pubDate>Mon, 04 Mar 2013 00:23:36 GMT</pubDate></item><item><title>Python Script to download Splunk Documentation PDFs</title><link>https://www.oneis3.com/posts/python-script-to-download-splunk-documentation-pdfs.html</link><dc:creator>Michael Rabbitt</dc:creator><description>&lt;p&gt;&lt;a href="https://www.oneis3.com/posts/python-script-to-download-splunk-documentation-pdfs.html"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;</description><category>cli</category><category>migrated_from_tumblr</category><category>Python</category><category>Splunk</category><guid>https://www.oneis3.com/posts/python-script-to-download-splunk-documentation-pdfs.html</guid><pubDate>Tue, 20 Nov 2012 16:33:00 GMT</pubDate></item></channel></rss>