<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kered.org/Blog</title>
	<atom:link href="http://kered.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://kered.org/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 26 Apr 2010 21:25:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Comcast and Bittorrent</title>
		<link>http://kered.org/blog/2010-04-10/comcast-and-bittorrent/</link>
		<comments>http://kered.org/blog/2010-04-10/comcast-and-bittorrent/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 14:25:56 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[political]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=216</guid>
		<description><![CDATA[Dear Diane Rehm,
I was just listening to Thursday&#8217;s show regarding Comcast and Bittorrent.  Unfortunately I was listening to the pod-cast after the fact, as I would have really liked to have called in.  I believe the discussion missed a very crucial element of the issue:
Comcast was not simply throttling Bittorrent traffic.  They were forging fake [...]]]></description>
			<content:encoded><![CDATA[<p id="_mcePaste">Dear Diane Rehm,</p>
<p id="_mcePaste">I was just listening to Thursday&#8217;s show regarding Comcast and Bittorrent.  Unfortunately I was listening to the pod-cast after the fact, as I would have really liked to have called in.  I believe the discussion missed a very crucial element of the issue:</p>
<p>Comcast was not simply throttling Bittorrent traffic.  They were forging fake data packets that appeared to come from machines on the Internet they did not originate from.</p>
<p>Consider a conversation via typed letters between myself and a friend, delivered by the USPS.  Now say the USPS is uncomfortable with the volume of letters my friend and I are exchanging, and decides to slow down delivery of some or all of these letters.  This would be throttling, and could prompt a reasonable &#8220;letter neutrality&#8221; debate.  Now instead the USPS decided to insert their own fake letters into the system, with my return address sent to my friend that said simply &#8220;stop sending me letters&#8221;.  (and vise-versa)  This would indeed be an efficient tactic to disrupt the conversation and reduce letter volume, but it would be quite clearly illegal.  (mail fraud)  This was the behavior of Comcast the FCC (and many others, myself included) so strongly objected to.</p>
<p>This was further compounded by Comcast&#8217;s initial and long-running denial of this behavior.  Which to me suggests they clearly knew the immorality (and likely illegality) of sending forged data packets.</p>
<p>This behavior by the way was confirmed by Google, the EFF, and I believe the FCC&#8217;s own study.</p>
<p id="_mcePaste">Multiple sources exist for this information.  Wikipedia contains a good writeup and many references:<br />
<a href="http://en.wikipedia.org/wiki/Comcast#Network_neutrality">http://en.wikipedia.org/wiki/Comcast#Network_neutrality</a></p>
<p id="_mcePaste">Thank you,<br />
Derek Anderson</p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2010-04-10/comcast-and-bittorrent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating PI</title>
		<link>http://kered.org/blog/2010-03-14/calculating-pi/</link>
		<comments>http://kered.org/blog/2010-03-14/calculating-pi/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 04:52:48 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[math]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=187</guid>
		<description><![CDATA[In honor of PI day, I thought I would recall a story of my wayward youth.  =P
In middle school (at JDMS), I was becoming decently proficient at everything BASIC.  (Apple II, TRS-80 and DOS 3.3)  One of my math teachers mentioned to me that you could approximate PI by filling one quarter of a circle with an ever increasing [...]]]></description>
			<content:encoded><![CDATA[<p>In honor of PI day, I thought I would recall a story of my wayward youth.  =P</p>
<p>In middle school (at <a href="http://maps.google.com/maps?ie=UTF8&amp;q=jamesville+dewitt+middle+school&amp;fb=1&amp;gl=us&amp;hq=dewitt+middle+school&amp;hnear=jamesville&amp;cid=0,0,12813749139930060848&amp;ei=PbqdS6b0B8KUtgeC75CHBg&amp;ved=0CAoQnwIwAA&amp;ll=43.032102,-76.084485&amp;spn=0.013081,0.026522&amp;z=15&amp;iwloc=A">JDMS</a>), I was becoming decently proficient at everything BASIC.  (Apple II, TRS-80 and DOS 3.3)  One of my math teachers mentioned to me that you could approximate PI by filling one quarter of a circle with an ever increasing number of rectangles of smaller and smaller widths.  And so I wrote a program to do just that.  Spent weeks running and rerunning it with different numbers of slices (and different methods of calculating the heights) and comparing the outputs to official known good values.  (and charting my accuracy)</p>
<p>I don&#8217;t remember exactly how accurate I finally got before they told me to stop running multi-day processes on the lab computers&#8230;  But suffice it to say: I was VERY nerdy.  =P</p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2010-03-14/calculating-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ad Revenue for A Small Free WebOS App</title>
		<link>http://kered.org/blog/2010-03-10/ad-revenue-for-a-small-free-webos-app/</link>
		<comments>http://kered.org/blog/2010-03-10/ad-revenue-for-a-small-free-webos-app/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 16:22:02 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[other]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=173</guid>
		<description><![CDATA[When I first considered submitting an app (Where&#8217;s My Car?) for the Palm Pre / Palm Pixi, I was somewhat turned off by the $50 app submission fee  (even for free apps).  This is a hobby for me, and I don&#8217;t really like the idea of paying money to give my work away for free.
So [...]]]></description>
			<content:encoded><![CDATA[<p>When I first considered submitting an app (<a href="http://developer.palm.com/appredirect/?packageid=org.kered.wheresmycar">Where&#8217;s My Car?</a>) for the Palm Pre / Palm Pixi, I was somewhat turned off by the $50 app submission fee  (even for free apps).  This is a hobby for me, and I don&#8217;t really like the idea of paying money to give my work away for free.</p>
<p>So I looked into putting an ad on my app to potentially recoup the submission fee, but I was unable to find any meaningful data regarding how long it would take, which left me on the fence as to whether or not it was worth the hassle.  Of course, this lack of public data is not that unexpected, as most companies doing this for profit would consider this a trade secret, but it was still disappointing.  So I justified to myself paying it as the cost of an experiment with a civil benefit:  Hopefully by publishing these numbers I can help either encourage or discourage future hobby developers as to whether or not it&#8217;s worth it to them to submit their own hobby apps.</p>
<p>Anyway, here are the numbers from ~24 hours after release: (<a href="http://www.admob.com/">AdMob</a> is the advertiser)</p>
<ul>
<li>Downloads: 7687</li>
<li>Ad Requests: 11,491</li>
<li>Ad Impressions: 11,456</li>
<li>Fill Rate: 99.70%</li>
<li>Click Through Rate (CTR): 3.26%</li>
<li>Estimated Revenue Per Thousand Impressions (eCPM): $1.11</li>
<li>Total Revenue: $12.68</li>
</ul>
<p>I will post updates to this entry as I pass other timeline milestones.  (one week and one month, at least)  I&#8217;m very curious as to if this will be a sustained daily trend, will grow, or if this is a one-day newness peak that will drop off a cliff tomorrow.  :)</p>
<p>BTW, I strongly encourage other hobby developers to publish their numbers as well.  (or even share with me privately or anonymously)  I would love to compare against a larger data set.</p>
<p>Daily total download counts: (recorded here because I don&#8217;t yet know how detailed Palm&#8217;s monthly reports are) 3/10/2010:7687, 3/11/2010:10242, 3/12/2010:11196, 3/13/2010:12057, 3/14/2010:13013, 3/15/2010:14019, 3/16/2010:14783, 3/17/2010:15422, 3/18/2010:15961, 3/19/2010:16786, 3/20/2010:18310, 3/21/2010:19843, 3/22/2010:20988, 3/23/2010:21729, 3/24/2010:22323, 3/25/2010:22848, 3/26/2010:23390, 3/27/2010:23783, 3/28/2010:24264, 3/29/2o1o:24776, 3/30/2010:25179, 3/31/2010:26339, 4/1/2010:26902, 4/2/2010:27249, 4/4/2010:27890, 4/6/2010:28501, 4/7/2010:28896, 4/8/2010:29300, 4/9/2010:31018, 4/11/2010:32683, 4/12/2010:33536, 4/13/2010:34230, 4/17/2010:36201, 4/26/2010:40149</p>
<p>Downloads for Public Radio: 3/27/2010:2904, 3/28/2010:6109, 3/29/2010:8514, 3/30/2010:10250, 3/31/2010:10641, 4/1/2010:11017, 4/2/2010:11321, 4/4/2010:11871, 4/6/2010:12309, 4/7/2010:12602, 4/8/2010:12872, 4/9/2010:14108, 4/11/2010:15511, 4/12/2010:16154, 4/13/2010:16655, 4/17/2010:18245, 4/26/2010:21467</p>
<p><strong>UPDATE:</strong> Version 1.3.0 is live as of 3/19/2010.</p>
<p><strong>WEEK 1 STATS:</strong></p>
<p>Well, it&#8217;ll probably eventually make enough to cover the submission fee, but not likely to be a real revenue generator.  :P</p>
<p><strong><a href="http://kered.org/blog/wp-content/uploads/2010/03/admob-week-1.png"><img class="alignnone size-full wp-image-191" title="admob - week 1" src="http://kered.org/blog/wp-content/uploads/2010/03/admob-week-1.png" alt="" width="499" height="405" /></a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2010-03-10/ad-revenue-for-a-small-free-webos-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where&#8217;s My Car? for Palm Pre/Pixi</title>
		<link>http://kered.org/blog/2010-03-04/wheres-my-car/</link>
		<comments>http://kered.org/blog/2010-03-04/wheres-my-car/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 03:14:15 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=149</guid>
		<description><![CDATA[I&#8217;ve submitted my first WebOS application to their App Store!
Where&#8217;s My Car? helps you find your car in a crowded parking lot. When you leave your car, simply open the application. (It will automatically get your current GPS location) Leave the application open, and when you&#8217;re done doing whatever it is you have to do, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve submitted my first WebOS application to their App Store!</p>
<blockquote><p>Where&#8217;s My Car? helps you find your car in a crowded parking lot. When you leave your car, simply open the application. (It will automatically get your current GPS location) Leave the application open, and when you&#8217;re done doing whatever it is you have to do, click &#8220;Take Me To It!&#8221; An arrow will show up (as well as a distance measurement). Simply walk in the direction of the arrow, and you&#8217;ll be quickly guided back to your car! BTW, I originally wrote this app as a present for my wife. <img src='http://kered.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;ve decided to place it on the App Store as a FREE app because I don&#8217;t see why the other apps that do the same thing charge $5 for such a simple feature. Let me know if you like it! <img src='http://kered.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p><strong>UPDATE:</strong> It has been approved/published!  To download, open the App Catalog.  Search for &#8220;car&#8221;.  Click the coins icon in the lower-right to show only FREE apps, and &#8220;Where&#8217;s My Car?&#8221; should be the first in the list!  :)</p>
<p><strong>UPDATE 2:</strong> Click here to download:  <a href="http://developer.palm.com/appredirect/?packageid=org.kered.wheresmycar">Where&#8217;s My Car?</a></p>
<p>Screenshots after the break&#8230;</p>
<p><span id="more-149"></span></p>
<p><a href="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_1.png"><img class="alignnone size-full wp-image-151" title="wheresmycar_1" src="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_1.png" alt="" width="320" height="480" /></a></p>
<p><a href="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_2.png"><img class="alignnone size-full wp-image-152" title="wheresmycar_2" src="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_2.png" alt="" width="320" height="480" /></a></p>
<p><a href="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_3.png"><img class="alignnone size-full wp-image-153" title="wheresmycar_3" src="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_3.png" alt="" width="320" height="480" /></a></p>
<p><a href="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_4.png"><img class="alignnone size-full wp-image-154" title="wheresmycar_4" src="http://kered.org/blog/wp-content/uploads/2010/03/wheresmycar_4.png" alt="" width="320" height="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2010-03-04/wheres-my-car/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dependency Injection: Coke with Lime</title>
		<link>http://kered.org/blog/2010-01-29/dependency-injection-coke-with-lime/</link>
		<comments>http://kered.org/blog/2010-01-29/dependency-injection-coke-with-lime/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 17:51:11 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=148</guid>
		<description><![CDATA[I have in the past expressed skepticism regarding the utility of Spring&#8217;s XML-based dependency injection configuration files.  A bit ago, in one of these conversations, I was pointed to Martin Fowler&#8217;s article on dependency injection.  I found it hilarious.

One of the interesting aspects of the academic side of computer science is the creation [...]]]></description>
			<content:encoded><![CDATA[<p>I have in the past expressed skepticism regarding the utility of Spring&#8217;s XML-based dependency injection configuration files.  A bit ago, in one of these conversations, I was pointed to Martin Fowler&#8217;s article on <a href="http://martinfowler.com/articles/injection.html">dependency injection</a>.  I found it hilarious.</p>
<p><span id="more-148"></span></p>
<p>One of the interesting aspects of the academic side of computer science is the creation if new terms for old ideas.  Take a well known concept, add a twist of lime, invent a new term, throw in a little obfuscation, and presto &#8211; an instant publishable paper (as long as you&#8217;re not submitting to a top-tier journal).  It&#8217;s publishable because it&#8217;s very hard to classify between these junk papers and complicated but genuinely new concepts.  (so hard in fact many journals don&#8217;t even try &#8211; even nonsensical papers can occasionally <a href="http://www.the-scientist.com/blog/display/55756/">sneak through</a>)  And since people are judged on how many papers they produce, this problem has become an epidemic.  The signal to noise ratio is currently mind-bogglingly low.</p>
<p>Dependency Injection I&#8217;m now certain is the corporate equivalent of this academic phenomenon.  While people many not have as much incentive without the threat of not getting tenure due to too few papers published, the fame of being the guy who invented The Next Big Thing(tm) is non-trivial.  And even if you don&#8217;t invent it yourself, being an early champaign of The Next Big Thing(tm) distinguishes yourself from your peers, helps you land new contracts, etc.  In a myriad of career enhancing ways it&#8217;s still a viable incentive.</p>
<p>Not to say it&#8217;s a con-job mind you.  Buzz-words are everywhere in this business.  It&#8217;s exciting to be on the cutting edge, and it&#8217;s hard to separate out the true leading fronts from the fake ones. It&#8217;s real easy to get swept up in the excitement.  (I&#8217;ve been guilty of it myself on more than one occasion)  But that doesn&#8217;t change the basic question.</p>
<p>So&#8230; Dependency Injection:  A new idea or Coke with Lime?</p>
<p>Let&#8217;s start with Martin&#8217;s own sample code.</p>
<pre><code>class MovieLister...
    private MovieFinder finder;
    public MovieLister() {
        finder = new ColonDelimitedMovieFinder("movies1.txt");
    }
    public Movie[] moviesDirectedBy(String arg) {
        List allMovies = finder.findAll();
        for (Iterator it = allMovies.iterator(); it.hasNext();) {
            Movie movie = (Movie) it.next();
            if (!movie.getDirector().equals(arg)) it.remove();
        }
        return (Movie[]) allMovies.toArray(new Movie[allMovies.size()]);
    }</code></pre>
<p>The method <code>moviesDirectedBy</code> uses an interface:</p>
<pre><code>public interface MovieFinder {
    List findAll();
}</code></pre>
<p>Look at the MovieListener constructor.  Martin argues that it&#8217;s a bad implementation because it ties the MovieListener class to a specific implementation of a MovieFinder.  And he&#8217;s absolutely right.  It&#8217;s pointless to have a MovieFinder interface if your code can only ever use one instance of it.</p>
<p>But this is not a new concept.  This is the very basis of object-oriented programming.  He may as well have called Dependency Injection &#8220;Non-Retarded Programming&#8221;.  A non-retard implementation would probably contain this:</p>
<pre><code>    public MovieLister(MovieFinder finder) {
        this.finder = finder;
    }</code></pre>
<p>Which, low and behold, is exactly what he recommends.  His example is nothing but a <a href="http://en.wikipedia.org/wiki/Straw_man">straw-man argument</a>.</p>
<p>So my question to you is this:  When did having a constructor that takes an argument become a new idea worthy of a new term?  I wrote Java programs in 1996 that did this.  C++ did it long before that.  I mean good god, this idea is as old as object-oriented programming itself.</p>
<p>Now if you&#8217;re using the Spring framework, you might write some controlling XML not unlike the following:</p>
<pre><code>&lt;bean id="ColonDelimitedMovieFinder" class="org.kered.ColonDelimitedMovieFinder"&gt;
    &lt;constructor-arg index="0" ref="movies1.txt"/&gt;
&lt;/bean&gt;
&lt;bean id="MovieLister" class="org.kered.MovieLister"&gt;
    &lt;constructor-arg index="0" ref="ColonDelimitedMovieFinder"/&gt;
&lt;/bean&gt;
</code></pre>
<p>And then the Spring controller would parse this XML, generate your objects, and offer some lookup service to some other code that uses MovieListener.  But I ask you this:  Why do you need a framework for that?  How is this XML any less complicated than actual Java code that does the same thing?  For example:</p>
<pre><code>
public class MyController {
  private static MovieFinder finder = new ColonDelimitedMovieFinder("movies1.txt");
  private static MovieListener listener = new MovieListener(finder);
  public static getMovieListener() { return listener; }
}
</code></pre>
<p>Presto &#8211; no framework needed!  Plus, you&#8217;ve not given up compile-time validity checking of your code.  (I love the &#8220;rename class&#8221; feature of Eclipse &#8211; too bad it breaks hard when all your inter-class ties are defined in XML configuration files.  Back to using grep on every rename&#8230;)</p>
<p>Now, one might argue that the XML configuration gives you run-time flexibility in your architecture.  That it allows non-programmers to configure your application in any way they please.  But this is a fallacy.  These XML configuration files *are* quasi-programming languages (interpreted ones at that).  All you&#8217;re saving is the compile.  You still have to be a programmer to modify them.  It is no simpler than modifying the Java source code directly (or the bash/bat script that launches it).  You&#8217;re simplifying nothing &#8211; only shifting the location of the complexity.</p>
<blockquote><p>Ok Derek, yes, I can&#8217;t have my users editing the spring application context files themselves.  But I still need to deploy multiple configurations of my architecture that vary significantly.  How do I do that when it&#8217;s statically compiled?</p></blockquote>
<p>Simple. Create multiple &#8220;controller&#8221; classes.  (in a 1-to-1 parallel to whatever XML you would have to write anyway)  Switch between them with runtime parameters, or a one-line configuration option.  Again, Programming 101.  And as a bonus, you get to fix the possible number of deployable configurations to a number that&#8217;s economically testable, and you prevent the setup of nonsensical configurations.</p>
<blockquote><p>But Derek, in your example, &#8220;movies1.txt&#8221; is hard-coded into your program.</p></blockquote>
<p>Yes, but &#8220;movies1.txt&#8221; is hard-coded into *both* examples.  No application is going to instruct the user to modify that blob of XML either.  Both systems would need an additional config file or gui somewhere to expose that option to the user.</p>
<p>To recap:  I&#8217;m not saying dependency injection is crap.  In fact I&#8217;ve apparently been programming it for over a decade.  I&#8217;m just saying it&#8217;s a vacant term that offers nothing new to the field of computer science.  And I&#8217;m saying that Spring&#8217;s XML configuration for dependency injection offers you virtually nothing in terms of ease of configuration (except for it being run-time interpreted, which you can get in a variety of simpler ways), and destroys one of Java&#8217;s greatest assets: strong compile time validity testing.  (And if you don&#8217;t care about that, why are you using Java?  Go learn Python!)</p>
<p><strong>Update:</strong>  Check out <a href="http://code.google.com/p/unsprung/">http://code.google.com/p/unsprung/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2010-01-29/dependency-injection-coke-with-lime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Brain-Dead</title>
		<link>http://kered.org/blog/2009-12-21/brain-dead/</link>
		<comments>http://kered.org/blog/2009-12-21/brain-dead/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 19:38:34 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=141</guid>
		<description><![CDATA[Java is somewhat brain-dead at times.  For instance:
while(c=System.in.read()>-1){
  System.out.print(backspaceChar);
}
Doesn&#8217;t do what you&#8217;d expect.  (hide console input)  It appears that System.in is being silently buffered.
So a little googling: http://java.sun.com/developer/technicalArticles/Security/pwordmask/
Sun&#8217;s recommendation is a busy-wait loop in a separate thread that constantly rewrites the previous character?!?  I mean, seriously, WTF?!?
Edit: It looks like [...]]]></description>
			<content:encoded><![CDATA[<p>Java is somewhat brain-dead at times.  For instance:</p>
<pre><code>while(c=System.in.read()>-1){
  System.out.print(backspaceChar);
}</code></pre>
<p>Doesn&#8217;t do what you&#8217;d expect.  (hide console input)  It appears that System.in is being silently buffered.</p>
<p>So a little googling: <a href="http://java.sun.com/developer/technicalArticles/Security/pwordmask/">http://java.sun.com/developer/technicalArticles/Security/pwordmask/</a></p>
<p>Sun&#8217;s recommendation is a busy-wait loop in a separate thread that constantly rewrites the previous character?!?  I mean, seriously, WTF?!?</p>
<p>Edit: It looks like Sun implemented a new API for non-echoing prompts in v1.6:  <a href="http://java.sun.com/javase/6/docs/api/java/io/Console.html">http://java.sun.com/javase/6/docs/api/java/io/Console.html</a></p>
<p>But this is still crappy.  Introducing a new API to partially work around the broken functionality of an old API is how you get bloated monstrosities to begin with.</p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2009-12-21/brain-dead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Food, Inc.</title>
		<link>http://kered.org/blog/2009-12-04/food-inc/</link>
		<comments>http://kered.org/blog/2009-12-04/food-inc/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 15:59:48 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[political]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=138</guid>
		<description><![CDATA[I watched Food, Inc. last night.  Was not impressed.  Yes, we mass-produce food.  Yes, it&#8217;s gross in parts.  But so was the small-scale chicken slaughtering the film touted.  Why is a smaller, open-air assembly line better than a larger, more environmentally controlled one?
Plus they played with the stats too much. [...]]]></description>
			<content:encoded><![CDATA[<p>I watched Food, Inc. last night.  Was not impressed.  Yes, we mass-produce food.  Yes, it&#8217;s gross in parts.  But so was the small-scale chicken slaughtering the film touted.  Why is a smaller, open-air assembly line better than a larger, more environmentally controlled one?</p>
<p>Plus they played with the stats too much.  &#8220;There used to be X thousand meat processing plants, but now 13 produce 80% of the meat in this country.&#8221;  This doesn&#8217;t tell me anything.  That last 20%, is that 2,000 smaller plants?  Or 3 other really huge ones?  What percentage did the top 13 used to produce?  Apples-to-oranges statistical comparisons make me distrust the source.</p>
<p>Not to say it was all bad.  The patenting of GMOs and the strong-arm tactics of their producers are definitively abusive, which I have ranted about before.</p>
<p>But overall, it seemed more anti-corporate, anti-science and hippy-ish than anything resembling a reasonable collection of recommendations on how to better our food production system.</p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2009-12-04/food-inc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XiMpLode</title>
		<link>http://kered.org/blog/2009-07-29/ximplode/</link>
		<comments>http://kered.org/blog/2009-07-29/ximplode/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:53:36 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=126</guid>
		<description><![CDATA[It has been said before, but it deserves repeating:  XML is overused.  And often, made unnecessarily over-complicated for the task.  Take for instance the example &#8220;A Simple Soap Client&#8220;.
Here is the request:
&#60;?xml version="1.0"?&#62;
&#60;SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" &#62;
  &#60;SOAP-ENV:Body&#62;
    &#60;calculateFibonacci
      xmlns="http://namespaces.cafeconleche.org/xmljava/ch3/"
     [...]]]></description>
			<content:encoded><![CDATA[<p>It has been said before, but it deserves repeating:  XML is overused.  And often, made unnecessarily over-complicated for the task.  Take for instance the example &#8220;<a href="http://www.cafeconleche.org/books/xmljava/chapters/ch03s05.html">A Simple Soap Client</a>&#8220;.</p>
<p>Here is the request:</p>
<pre><code>&lt;?xml version="1.0"?&gt;
&lt;SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" &gt;
  &lt;SOAP-ENV:Body&gt;
    &lt;calculateFibonacci
      xmlns="http://namespaces.cafeconleche.org/xmljava/ch3/"
      type="xsi:positiveInteger"&gt;10&lt;/calculateFibonacci&gt;
  &lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;</code></pre>
<p>Here is the response:</p>
<pre><code>&lt;?xml version="1.0"?&gt;
&lt;SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" /&gt;
  &lt;SOAP-ENV:Body&gt;
    &lt;Fibonacci_Numbers
      xmlns="http://namespaces.cafeconleche.org/xmljava/ch3/"&gt;
      &lt;fibonacci index="1"&gt;1&lt;/fibonacci&gt;
      &lt;fibonacci index="2"&gt;1&lt;/fibonacci&gt;
      &lt;fibonacci index="3"&gt;2&lt;/fibonacci&gt;
      &lt;fibonacci index="4"&gt;3&lt;/fibonacci&gt;
      &lt;fibonacci index="5"&gt;5&lt;/fibonacci&gt;
      &lt;fibonacci index="6"&gt;8&lt;/fibonacci&gt;
      &lt;fibonacci index="7"&gt;13&lt;/fibonacci&gt;
      &lt;fibonacci index="8"&gt;21&lt;/fibonacci&gt;
      &lt;fibonacci index="9"&gt;34&lt;/fibonacci&gt;
      &lt;fibonacci index="10"&gt;55&lt;/fibonacci&gt;
    &lt;/Fibonacci_Numbers&gt;
  &lt;/SOAP-ENV:Body&gt;
&lt;/SOAP-ENV:Envelope&gt;</code></pre>
<p>Dear $DEITY, why do we need to define a new data type to hold a list of integers?  And what in the world is that &#8220;index&#8221; attribute doing there?  IT&#8217;S A FUCKING LIST.  This is like a real-life example of the old XML binary encoding joke:</p>
<pre><code>&lt;data&gt;
  &lt;binary&gt;
    &lt;bit index="0"&gt;0&lt;/bit&gt;
    &lt;bit index="1"&gt;0&lt;/bit&gt;
    &lt;bit index="2"&gt;1&lt;/bit&gt;
    ...
    &lt;bit index="n"&gt;1&lt;/bit&gt;
  &lt;/binary&gt;
&lt;/data&gt;</code></pre>
<p>It&#8217;s just sad&#8230;</p>
<p>For the sake of it, let&#8217;s compare to a JSON-RPC version:  (not the epitome of efficiency mind you, but an order of magnitude better)</p>
<pre><code>--> { "method": "calculateFibonacci", "params": [10,], "id": 1}
<-- { "result": [1,1,2,3,5,8,13,21,34,55], "error": null, "id": 1}</code></pre>
<p>Which would you rather use?  <img src='http://kered.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2009-07-29/ximplode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Touchstone</title>
		<link>http://kered.org/blog/2009-07-21/touchstone/</link>
		<comments>http://kered.org/blog/2009-07-21/touchstone/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 14:15:30 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=123</guid>
		<description><![CDATA[I was originally quite sceptical about the value of the Palm Pre&#8217;s Touchstone wireless charger accessory, esp. at its ridiculously high advertised price.  However, now that I&#8217;ve had it for a week, I&#8217;m a total convert.  It&#8217;s so nice to be able to just plunk the thing down at night and pick it [...]]]></description>
			<content:encoded><![CDATA[<p>I was originally quite sceptical about the value of the <a href="http://www.palm.com/us/index.html">Palm Pre&#8217;s</a> <a href="http://www.palm.com/us/products/accessories/touchstone-bundle.html">Touchstone</a> wireless charger accessory, esp. at its ridiculously high advertised price.  However, now that I&#8217;ve had it for a week, I&#8217;m a total convert.  It&#8217;s so nice to be able to just plunk the thing down at night and pick it up again in the morning without having to fumble with cords or those crappy plastic covers every cell phone manufacturer seems to love these days.  Thanks Palm for coming back from the dead and giving Apple a good run for their money.  <img src='http://kered.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2009-07-21/touchstone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tent Stakes in Sand</title>
		<link>http://kered.org/blog/2009-07-02/tent-stakes-in-sand/</link>
		<comments>http://kered.org/blog/2009-07-02/tent-stakes-in-sand/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 15:36:14 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[outdoors]]></category>

		<guid isPermaLink="false">http://kered.org/blog/?p=116</guid>
		<description><![CDATA[My bivy tent is so low profile, I&#8217;ve never had a problem with wind when beach camping as long as I&#8217;ve had some oversized steel stakes ($2 for 4 at Walmart).  But my dome tent is more problematic, as Lingyan and I learned in South Padre over memorial day.
So a little googling led me [...]]]></description>
			<content:encoded><![CDATA[<p>My bivy tent is so low profile, I&#8217;ve never had a problem with wind when beach camping as long as I&#8217;ve had some oversized steel stakes ($2 for 4 at Walmart).  But my dome tent is more problematic, as Lingyan and I learned in South Padre over memorial day.</p>
<p>So a little googling led me to &#8220;deadman anchors&#8221;, which are basically anything buried in the ground.  A basic design is some angle iron and steel cable.  So a trip to Lowes and a few minutes assembly, and I have the following:</p>
<p><img src="http://lh6.ggpht.com/_0Go4AxG8-6U/SkzTbbRkd2I/AAAAAAAAAls/WRnKGar-msk/s400/Photo-0307.jpg" alt="deadman anchors" /></p>
<p>1 4ft piece of aluminium angle iron, cut into 4 6&#8243; sections.  4 3ft sections of 1/16&#8243; steel braded cable.  4 eye loops, and 4 pairs of cable crimps.  <$15 total.</p>
<p>We&#8217;re beaching camping again this weekend at Mustang Island.  Will update with how well they worked.</p>
]]></content:encoded>
			<wfw:commentRss>http://kered.org/blog/2009-07-02/tent-stakes-in-sand/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
