<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Question of the Day</title>
  <link>http://enigmastation.com:80/pebble/qotd/</link>
  <description>Interesting questions and answers on Java</description>
  <language>en</language>
  <copyright>Joseph Ottinger</copyright>
  <lastBuildDate>Wed, 12 Nov 2008 13:54:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Horrible JDBC Code and What&#039;s Wrong With It</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/11/12/1226498040000.html</link>
    
      
      
        <description>
          Ah, Efficiency: Thou art a goddess who deserves worship, adulation, sacrifice, but thou art also a goddess who gets said worship, adulation, and sacrifice in all the wrong ways. Here&#039;s some JDBC code validating a login, trying to be good code (I think!)... that gets it wrong in almost every way possible.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/11/12/1226498040000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Persistence</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/11/12/1226498040000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/11/12/1226498040000.html</guid>
    <pubDate>Wed, 12 Nov 2008 13:54:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Are JDBC statements portable across databases?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/11/10/1226318820000.html</link>
    
      
      
        <description>
          Ah, JDBC. Sometimes, people want to write JDBC code, because SQL is friendly and safe; then they discover that they actually don&#039;t want to deploy on MySQL after all, and they run into problems. The question is usually formed in this way: &#034;If I write my SQL in a prepared statement, is it going to work the same way in $OTHER_DATABASE?&#034;&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/11/10/1226318820000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Architecture</category>
    
    <category>Persistence</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/11/10/1226318820000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/11/10/1226318820000.html</guid>
    <pubDate>Mon, 10 Nov 2008 12:07:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Filtering characters from a Reader</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html</link>
    
      
      
        <description>
          It&#039;s an occasionally legitimate question: &#034;How do I filter content from a Reader?&#034; There&#039;re related questions for Streams, too. Here&#039;s an example of a simple Reader class that shows how to remove specific characters from a Reader.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/09/11/1221150300000.html</guid>
    <pubDate>Thu, 11 Sep 2008 16:25:00 GMT</pubDate>
  </item>
  
  <item>
    <title>How can I create a maintenance window for my web app?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/09/01/1220273580000.html</link>
    
      
      
        <description>
          Every so often, web applications need maintenance. Yes, even web applications. It&#039;s okay - no need to reach for your security blanket. The problem that&#039;s come up is: What&#039;s a good way to redirect requests during a maintenance window to an error page? As usual, there are multiple answers.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/09/01/1220273580000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Web</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/09/01/1220273580000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/09/01/1220273580000.html</guid>
    <pubDate>Mon, 01 Sep 2008 12:53:00 GMT</pubDate>
  </item>
  
  <item>
    <title>How can I automatically expire data from a database?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/30/1220106540000.html</link>
    
      
      
        <description>
          Another fairly common question: how can I expire data from a database? This is a case of applying lipstick to a pig: there are ways, to be sure, but the real problem is that you&#039;re using a database - a permanent datastore - to handle data that&#039;s short-lived.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/30/1220106540000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Architecture</category>
    
    <category>Persistence</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/30/1220106540000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/30/1220106540000.html</guid>
    <pubDate>Sat, 30 Aug 2008 14:29:00 GMT</pubDate>
  </item>
  
  <item>
    <title>My data structures have changed - how can I migrate my data model?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219954260000.html</link>
    
      
      
        <description>
          Sometimes, people design data structures, persisted entities, only to find that - &lt;strong&gt;gasp!&lt;/strong&gt; - their data structures are more fluid than they expected. When all of your data is transient - meaning that it can be destroyed safely - that&#039;s no big deal, because you just drop the tables in question (or the whole database) and start over. (Sound familiar, Rails fans?) Sometimes, that&#039;s not enough - so what do you do?&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/28/1219954260000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Architecture</category>
    
    <category>Persistence</category>
    
    <category>Serverside Coding</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219954260000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/28/1219954260000.html</guid>
    <pubDate>Thu, 28 Aug 2008 20:11:00 GMT</pubDate>
  </item>
  
  <item>
    <title>How do I send mail with Java?</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219947000000.html</link>
    
      
      
        <description>
          You send mail in Java with one of two APIs, basically: JavaMail and Commons-Email. People who use JavaMail fit in one of three categories: they don&#039;t know about Commons-Email, they are doing bulk mail and know what they&#039;re doing, or they&#039;re gluttons for punishment. Here&#039;s a class that shows how to send mail with both JavaMail and Commons-Email, for the case of sending to a single address.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/28/1219947000000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Serverside Coding</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219947000000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/28/1219947000000.html</guid>
    <pubDate>Thu, 28 Aug 2008 18:10:00 GMT</pubDate>
  </item>
  
  <item>
    <title>How do I parse or format dates? Dates are hard!</title>
    <link>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html</link>
    
      
      
        <description>
          Well, Barbie, dates are really pretty easy. Here&#039;s a class with a number of formatting and parsing examples.&lt;p&gt;&lt;a href=&#034;http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html&#034;&gt;Read more...&lt;/a&gt;&lt;/p&gt;
        </description>
      
    
    
    
    <category>Languages and JVM</category>
    
    <comments>http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html#comments</comments>
    <guid isPermaLink="true">http://enigmastation.com:80/pebble/qotd/2008/08/28/1219932960000.html</guid>
    <pubDate>Thu, 28 Aug 2008 14:16:00 GMT</pubDate>
  </item>
  
  </channel>
</rss>
