<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2013-01-04T20:37:39Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>Screen-scrape ting device usage</title>
<issued>2013-01-04T20:37:39Z</issued>
<modified>2013-01-04T20:37:39Z</modified>
<id>https://emergent.unpythonic.net/01357331859</id>
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/01357331859"/>
<content type="text/html" mode="escaped">
&lt;a href=&quot;https://ting.com&quot;&gt;Ting&lt;/a&gt; offers great inexpensive cellphone service,
so when Ingrid's organization needed to provide a cellphone for an employee, I
naturally suggested she use them.  However, Ting doesn't presently have an API
to check usage.  So I put together a Python program that can screen-scrape this
information.</content>
</entry>
<entry>
<title>FTL (un)packer for Linux</title>
<issued>2012-10-09T02:30:33Z</issued>
<modified>2012-10-09T02:30:33Z</modified>
<id>https://emergent.unpythonic.net/01349749833</id>
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/01349749833"/>
<content type="text/html" mode="escaped">
&lt;div style=&quot;float:right;clear:right&quot;&gt;&lt;!-- ftl-hacked.png--&gt;&lt;div class=albumouter style=width:306px id=&gt;&lt;div class=albumimage style=&quot;width:306px;margin-left:0.0px;&quot;&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked-medium.jpg&quot; class=&quot;thickbox&quot; rel=&quot;album&quot; title=&quot;Really?  Twelve stuffs?  Now I can beat the rebels.&quot;&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked-small.jpg&quot; width=300 height=172&gt;&lt;/a&gt;&lt;div &gt;&lt;div style=&quot;float: right&quot; &gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked-medium.jpg&quot;&gt;(M)&lt;/a&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked.png&quot;&gt;(L)&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftl-hacked.png&quot;&gt;Really?  Twelve stuffs?  Now I can beat the rebels.&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Added some notes about what is in the various files in data.dat

&lt;p&gt;Recently I bought &lt;a href=&quot;http://www.ftlgame.com&quot;&gt;Faster Than Light&lt;/a&gt; (FTL),
a game which runs on Linux (and also on Mac and Windows).

&lt;p&gt;I noticed that there was a lot of stuff in two &amp;quot;.dat&amp;quot; files; the format of the
&amp;quot;.dat&amp;quot; files turned out to be very simple, and so I wrote a packer and unpacker:
&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01349749833/ftlpack.py&quot;&gt;ftlpack.py&lt;/a&gt;.</content>
</entry>
<entry>
<title>Source: USB Stacker for EOS Cameras</title>
<issued>2011-10-16T13:20:58Z</issued>
<modified>2011-10-16T13:20:58Z</modified>
<id>https://emergent.unpythonic.net/01318771258</id>
<link rel="alternate" type="text/html" href="https://emergent.unpythonic.net/01318771258"/>
<content type="text/html" mode="escaped">

I promised to post the code I wrote to do &lt;a href=&quot;https://emergent.unpythonic.net/01318303039&quot;&gt;focus
stacking&lt;/a&gt;.  Here it is, in the form of a patch to &lt;a href=&quot;http://code.google.com/p/pyptp/&quot;&gt;pyptp&lt;/a&gt;.

&lt;p&gt;The code is lightly tested on my Canon EOS 7D.

&lt;p&gt;It's necessary to change the shutter release button so that a half-press does
not autofocus. (this is somewhere in the C.Fn. menus)  If your camera doesn't
have this custom function, I don't think this code will work for you.

&lt;p&gt;Manually focus the lens at the far end of the range, set lens to autofocus,
plug in the usb cable, and run the program.  You may have to fiddle with the
&amp;quot;--stepsize=&amp;quot; argument in order to get an appropriate amount of movement
between each shot and of course &amp;quot;--count=&amp;quot; to capture enough frames to cover
your subject.  For a list of other other options, run 'python stack.py --help'.

&lt;p&gt;&lt;p&gt;&lt;b&gt;Files currently attached to this page:&lt;/b&gt;
&lt;table cellpadding=5 style=&quot;width:auto!important; clear:none!important&quot;&gt;&lt;col&gt;&lt;col style=&quot;text-align: right&quot;&gt;&lt;tr bgcolor=#eeeeee&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01318771258/pyptp-canon-stacker.patch&quot;&gt;pyptp-canon-stacker.patch&lt;/a&gt;&lt;/td&gt;&lt;td&gt;17.0kB&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;
</content>
</entry>
</feed>
