<?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://gamma.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2009-03-09T23:04:45Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>Ingredients Fail</title>
<issued>2009-03-09T23:04:45Z</issued>
<modified>2009-03-09T23:04:45Z</modified>
<id>https://gamma.unpythonic.net/01236639885</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01236639885"/>
<content type="text/html" mode="escaped">
Thanks to Chris for noticing this one!

&lt;p&gt;Bottle of organic lemon juce is labeled &amp;quot;contains juice from turkey&amp;quot;
&lt;span class=&quot;album&quot;&gt;&lt;!-- ingredientsfail.jpg--&gt;&lt;div class=albumouter style=width:206px id=x0&gt;&lt;div class=albumimage style=&quot;width:206px;margin-left:0.0px;&quot;&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01236639885/ingredientsfail-medium.jpg&quot; class=&quot;thickbox&quot; rel=&quot;album&quot; title=&quot;Ingredients Fail&quot;&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01236639885/ingredientsfail-small.jpg&quot; width=200 height=300&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/01236639885/ingredientsfail-medium.jpg&quot;&gt;(M)&lt;/a&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01236639885/ingredientsfail.jpg&quot;&gt;(L)&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01236639885/ingredientsfail.jpg&quot;&gt;Ingredients Fail&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/span&gt;


</content>
</entry>
<entry>
<title>Math is hard (even for google)!</title>
<issued>2008-01-23T16:36:44Z</issued>
<modified>2008-01-23T16:36:44Z</modified>
<id>https://gamma.unpythonic.net/01201106204</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01201106204"/>
<content type="text/html" mode="escaped">
Breaking down 47.000000 degrees into degrees, minutes, and seconds, google
comes up with the bizarre &amp;quot;59 minute and 60 seconds of a degree&amp;quot;.
Floating-point round-off somewhere?  Probably.  &lt;b&gt;Update&lt;/b&gt;, March 24, 2008:
The bug is half-fixed.  Today, Google displays +47° 0' 0.00&amp;quot;, -119° 59'
60.00&amp;quot; as the coordinates of this location.

&lt;p&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01201106204/math-is-hard.png&quot;&gt;
</content>
</entry>
<entry>
<title>Collate this!</title>
<issued>2007-12-28T21:24:58Z</issued>
<modified>2007-12-28T21:24:58Z</modified>
<id>https://gamma.unpythonic.net/01198877098</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01198877098"/>
<content type="text/html" mode="escaped">
Turns out that when you don't &lt;tt&gt;LC_COLLATE=C; export LC_COLLATE&lt;/tt&gt;, you'll
eventually get bitten in the ass by the way character ranges in shell globs
are treated:
&lt;blockquote&gt;&lt;pre&gt;
$ (unset LC_COLLATE; bash)
$ touch A a B b Z z; echo [A-Z]; echo [a-z]
A b B z Z
a A b B z
&lt;/pre&gt;&lt;/blockquote&gt;
In this case, my friend discovered the interesting behavior after executing
'&lt;tt&gt;rm [a-z]*&lt;/tt&gt;', apparently hoping to keep files which started with
uppercase letters.  Whoops!
</content>
</entry>
<entry>
<title>As seen in hell....</title>
<issued>2007-12-21T21:28:00Z</issued>
<modified>2007-12-21T21:28:00Z</modified>
<id>https://gamma.unpythonic.net/01198272480</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01198272480"/>
<content type="text/html" mode="escaped">
At the office, we have a saying:  If your function takes more than 5
arguments, you forgot one.  You can see the results of that mindset in
this error message:
&lt;blockquote&gt;&lt;pre&gt;
trade_secret.c: In function 'void f()':
trade_secret.h:187: error: too few arguments to function
    'void trade_secret(int, int, int, double, double, int, int, int,
        int, double, double, double, double, int, double, double,
        double, double, double, double, double, double, double, double,
        double, double, double, double, double, int, double, double*,
        double*, int*, int*, int*, int*, int*, double*, int*, int*,
        double*, double*, double*, int*, double*, double*, double*,
        double*, int*, int*, int*, int*, int*, int)'
trade_secret.c:9: error: at this point in file&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;</content>
</entry>
<entry>
<title>As seen on the internet</title>
<issued>2007-11-19T16:38:26Z</issued>
<modified>2007-11-19T16:38:26Z</modified>
<id>https://gamma.unpythonic.net/01195490306</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01195490306"/>
<content type="text/html" mode="escaped">
&lt;pre&gt;
void URLDecoder::getAsDec(char* hex) {
    char tmp = tolower(hex[0]);
    if(tmp == 'a') {
        strcpy(hex,&quot;10&quot;);
    }else if(tmp == 'b') {
        strcpy(hex,&quot;11&quot;);
    }else if(tmp == 'c') {
        strcpy(hex,&quot;12&quot;);
    }else if(tmp == 'd') {
        strcpy(hex,&quot;13&quot;);
    }else if(tmp == 'e') {
        strcpy(hex,&quot;14&quot;);
    }else if(tmp == 'f') {
        strcpy(hex,&quot;15&quot;);
    }else if(tmp == 'g') {
        strcpy(hex,&quot;16&quot;);
    }
} 
&lt;/pre&gt;
&lt;a href=&quot;http://files.codes-sources.com/fichier.aspx?id=31681&amp;amp;f=web.cpp&quot;&gt;I
am not making this up&lt;/a&gt;.
</content>
</entry>
<entry>
<title>Acronym of the day: STEWD</title>
<issued>2006-12-06T16:00:01Z</issued>
<modified>2006-12-06T16:00:01Z</modified>
<id>https://gamma.unpythonic.net/01165420801</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01165420801"/>
<content type="text/html" mode="escaped">
&lt;a href=&quot;http://www.codinghorror.com/blog/archives/000571.html&quot;&gt;STEWD: Security Through Endless Warning Dialogs&lt;/a&gt;.  A phrase that will
apparently become much more common when everyone is forced to buy a copy of
Vista with new PCs, sometime early next year.

</content>
</entry>
<entry>
<title>The stupidest thing I saw today....</title>
<issued>2006-08-26T00:48:59Z</issued>
<modified>2006-08-26T00:48:59Z</modified>
<id>https://gamma.unpythonic.net/01156553339</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01156553339"/>
<content type="text/html" mode="escaped">
From http://www.joinfear.com/main, and presented without further comment:
&lt;br&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01156553339/my-language.png&quot;&gt;
</content>
</entry>
<entry>
<title>Whine!!!!!!!&amp;exclam;</title>
<issued>2006-05-02T23:08:59Z</issued>
<modified>2006-05-02T23:08:59Z</modified>
<id>https://gamma.unpythonic.net/01146611339</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01146611339"/>
<content type="text/html" mode="escaped">
&lt;div style=&quot;float:right;clear:right&quot;&gt;&lt;!-- duhsssl.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/01146611339/duhsssl.png&quot; class=&quot;thickbox&quot; rel=&quot;album&quot; title=&quot;Terrible HTML documentation&quot;&gt;&lt;img src=&quot;https://media.unpythonic.net/emergent-files/01146611339/duhsssl-small.png&quot; width=300 height=178&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/01146611339/duhsssl.png&quot;&gt;&lt;img class=zoom src=&quot;https://media.unpythonic.net/emergent-files/default/zoom.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01146611339/duhsssl.png&quot;&gt;Terrible HTML documentation&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
Having recently tried to write some documentation, I'm a bit struck by how
much all the alternatives I'm aware of suck.  All I want is to get a nice HTML
and PDF output of a document with a few tables.  Some signs pointed towards
this thing called &amp;quot;openjade&amp;quot;, which is a &amp;quot;document style semantics and
specification language&amp;quot; (I guess).

&lt;p&gt;Imagine how unimpressed was when I got a look at the documentation they had
produced&amp;mdash;If anybody is going to have good-looking documentation it
should be the people making the &amp;quot;document style&amp;quot; software!  At first I thought
of blaming myself because I had a wide screen, but it's even bad on a maximized
window on a 1024x768 monitor, with its black text over a terrible dithered dark
blue background.

&lt;p&gt;I guess I'll go back to writing HTML by hand and using &amp;quot;File &amp;gt; Print&amp;quot; to
produce PDF.  Or maybe I'll write LaTeX again and berate people who don't
seem to know how to use xpdf.

&lt;p&gt;</content>
</entry>
</feed>
