<?xml version="1.0" encoding="utf-8"?>
<!-- generator="wordpress/1.5.2" -->
<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/"
>

<channel>
	<title>vetula: chris kelley's blog</title>
	<link>http://vetula.com/blog</link>
	<description>an american web developer living in pretoria, south africa</description>
	<pubDate>Sun, 04 May 2008 20:18:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>
	<language>en</language>

		<item>
		<title>Save jPod (TV Series)</title>
		<link>http://vetula.com/blog/archives/2008/05/04/save-jpod-tv-series/</link>
		<comments>http://vetula.com/blog/archives/2008/05/04/save-jpod-tv-series/#comments</comments>
		<pubDate>Sun, 04 May 2008 20:17:26 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2008/05/04/save-jpod-tv-series/</guid>
		<description><![CDATA[A community built around renewing a TV show?]]></description>
			<content:encoded><![CDATA[	<p>As of May 4 2008, the search query &#8220;jPod (TV Series)&#8221; returns about 230,000 hits in Google. Pretty good for a canceled TV show that only lasted one season. There is alot of love for <a href="http://www.cbc.ca/jpod/">jPod</a> - even a website devoted to saving the show, which was recently marked for cancellation by the Canadian Broadcasting Centre: <a href="http://savejpod.ca/">http://savejpod.ca/</a> .</p>
	<p>Since I live in South Africa and jPod is not available here, my friend Bit Torrent lent me the series. I had a bit of history w/ the jPod concept since I loved Douglas Coupland&#8217;s <a href="http://en.wikipedia.org/wiki/Microserfs">Microserfs </a> and enjoyed the follow-up book <a href="http://www.jpod.info/">jPod</a>. I&#8217;m also a programmer so I appreciate the culture behind jPod, even though compromises have been made to suit TV. That&#8217;s OK with me.  I hope the community that has sprung up around the apparent loss of this TV show portends a new direction for entertainment companies - perhaps a way for <em>them </em> to make a profit and for <em>us </em> to get some enjoyable entertainment - and perhaps even some interaction. </p>
	<p>CBC: Embrace the power of the <a href="http://en.wikipedia.org/wiki/The_Long_Tail">Long Tail</a> and listen to this community. Please renew jPod! Everyone else: Sign the <a href="http://savejpod.ca/petition/">petition</a>!
</p>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2008/05/04/save-jpod-tv-series/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Java profiling with HAT</title>
		<link>http://vetula.com/blog/archives/2006/06/04/java-profiling-with-hat/</link>
		<comments>http://vetula.com/blog/archives/2006/06/04/java-profiling-with-hat/#comments</comments>
		<pubDate>Sun, 04 Jun 2006 21:38:45 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
	<category>Java</category>
		<guid>http://vetula.com/blog/archives/2006/06/04/java-profiling-with-hat/</guid>
		<description><![CDATA[Java profiling with HAT, The Java Heap Analysis Tool]]></description>
			<content:encoded><![CDATA[	<p>I&#8217;m doing some Java profiling of a Tomcat 5.5 webapp with HAT, The Java Heap Analysis Tool. Here&#8217;s some steps to make it work:</p>
	<ul>
	<li>Download HAT from <a href="http://hat.dev.java.net/">http://hat.dev.java.net/</a>.</li>
	<li>Open the Tomcat Monitor app, click configure, Java tab, and add the following line to Java Options:  -Xrunhprof:file=dump.hprof,format=b,heap=all</li>
	<li>You may need to add more memory to Tomcat as well (Maximum memory pool). </li>
	<li>To launch it on the command-line:<br />
java -jar hat.jar -port 7002 &#8220;C:\Program Files\Apache Software Foundation\Tomcat 5.5\dump.hprof&#8221;</li>
	<li>If you run into memory problems w/ hat, give it more: <br />
java -XX:PermSize=128m -XX:MaxPermSize=128M  -Xms700M -Xmx700M -jar hat.jar -port 7002 &#8220;C:\Program Files\Apache Software Foundation\Tomcat 5.5\dump.hprof&#8221;
</li>
	<li>View the Hat webapp at http://localhost:7002/</li>
	<li>The docs included w/ the HAT download outline the capabilities of the HAT app pretty well.</li>
	</ul>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2006/06/04/java-profiling-with-hat/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Upgrading from Struts template to tiles</title>
		<link>http://vetula.com/blog/archives/2006/05/25/upgrading-from-struts-template-to-tiles/</link>
		<comments>http://vetula.com/blog/archives/2006/05/25/upgrading-from-struts-template-to-tiles/#comments</comments>
		<pubDate>Thu, 25 May 2006 11:36:36 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2006/05/25/upgrading-from-struts-template-to-tiles/</guid>
		<description><![CDATA[Here's a list of changes I had to make when upgrading from Struts template to tiles.]]></description>
			<content:encoded><![CDATA[	<p>I recently upgraded Struts and instrantly ran into errors relating to using the template tag, which is now deprecated. Here&#8217;s a list of changes I had to make when upgrading from Struts template to tiles. </p>
	<ul>
	<li>Add the tiles-related files from the struts distro.</li>
	<li>Replace < %@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %> with <br />
< %@ taglib uri='/WEB-INF/struts-tiles.tld' prefix='template' %>
</li>
	<li>Add  direct=&#8217;true&#8217; to all of my template:put  lines. - this solves a NullPointerException issue.</li>
	<li>If one of the items you&#8217;ve named in your template is not in it&#8217;s referred jsp file, struts will throw the following error:<br />
<code>The requested resource (/zeprs/WEB-INF/templates/whatever) is not available</code><br />
 Try the following:</p>
	<ul>
	<li>Add ignore=&#8221;true&#8221; to the template:get tag</li>
	<li>If this does not solve the problem, add an empty tag to your jsp page:<br />
<code>template:put name='header' direct='true'</code>
</li>
	</ul>
	</li>
	</ul>
	<p>So far it&#8217;s been a pretty smooth transition. Yeah!</p>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2006/05/25/upgrading-from-struts-template-to-tiles/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Baylor Gay Purge Extends To Grads</title>
		<link>http://vetula.com/blog/archives/2005/11/09/baylor-gay-purge-extends-to-grads/</link>
		<comments>http://vetula.com/blog/archives/2005/11/09/baylor-gay-purge-extends-to-grads/#comments</comments>
		<pubDate>Wed, 09 Nov 2005 07:22:13 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2005/11/09/baylor-gay-purge-extends-to-grads/</guid>
		<description><![CDATA[Baylor University is becoming as embarrassing to its (liberal and/or gay) alumni as Doonesbury's Walden.]]></description>
			<content:encoded><![CDATA[	<p><a href="http://www.365gay.com/newscon05/11/110805baylor.htm">Baylor Gay Purge Extends To Grads</a>: <a href="http://www.baylor.edu">Baylor University</a> is becoming as embarrassing to its (admittedly few liberal and/or gay) alumni as <a href="http://en.wikipedia.org/wiki/Doonesbury">Doonesbury&#8217;s</a> Walden. Seems like it is crossing over to <a href="http://en.wikipedia.org/wiki/Bob_Jones_University">Bob Jones University</a> territory&#8230;
</p>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2005/11/09/baylor-gay-purge-extends-to-grads/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Unit testing datasources without hibernate</title>
		<link>http://vetula.com/blog/archives/2005/06/21/unit-testing-datasources-without-hibernate/</link>
		<comments>http://vetula.com/blog/archives/2005/06/21/unit-testing-datasources-without-hibernate/#comments</comments>
		<pubDate>Tue, 21 Jun 2005 13:33:26 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
	<category>Java</category>
		<guid>http://vetula.com/blog/archives/2005/06/21/unit-testing-datasources-without-hibernate/</guid>
		<description><![CDATA[How did I get unit testing to work?]]></description>
			<content:encoded><![CDATA[	<p>I&#8217;ve got some code in my current project that uses JDBC rather than Hibernate. I&#8217;m using datasources, so using  simple JDBC connection was not going to work. Most of the datasource-related code for junit that I&#8217;ve found on the web assumes hibernate, so it was a bit difficult to solve this problem. I found a good solution: <a href="http://www.springframework.org/">Spring framework</a>&#8217;s DriverManagerDataSource, which creates a simple datasource on-the-fly:<br />
<code><br />
 try {<br />
            Context init = new InitialContext();<br />
            Context ctx = null;<br />
            ctx = (Context) init.lookup("java:comp/env");<br />
            dataSource = (DataSource) ctx.lookup("jdbc/myDB");<br />
        } catch (NamingException e) {<br />
            DriverManagerDataSource ds = new DriverManagerDataSource();<br />
            ds.setDriverClassName("com.mysql.jdbc.Driver");<br />
            ds.setUrl("jdbc:mysql://localhost/myProject");<br />
            ds.setUsername("username");<br />
            ds.setPassword("password");<br />
            dataSource = ds;<br />
        }<br />
</code></p>
	<p>I&#8217;m not using Spring for this project but I simply added spring.jar to my classpath, and Bob&#8217;s yer uncle. Works fine!</p>
	<p>On a related manner, logging was not working - I was getting a FileNotFoundException. Here&#8217;s my log4j.properties entry for the logfile:</p>
	<p><code>log4j.appender.R.File=${catalina.home}/logs/my.log</code></p>
	<p>${catalina.home} was not getting initialized, so I simply set the path manually:</p>
	<p><code>log4j.appender.R.File=/tomcat/logs/my.log</code></p>
	<p>When I get a chance, I&#8217;ll figure out how to declare that variable manually so I don&#8217;t have to change my log4j when I deploy.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2005/06/21/unit-testing-datasources-without-hibernate/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>How do independent developers stay on our radar?</title>
		<link>http://vetula.com/blog/archives/2005/02/24/how-do-independent-developers-stay-on-our-radar/</link>
		<comments>http://vetula.com/blog/archives/2005/02/24/how-do-independent-developers-stay-on-our-radar/#comments</comments>
		<pubDate>Thu, 24 Feb 2005 07:58:58 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2005/02/24/how-do-independent-developers-stay-on-our-radar/</guid>
		<description><![CDATA[I've decided to become one of the micropatrons of Jason Kottke,  who has quit his job to do kottke.org as a full-time job.]]></description>
			<content:encoded><![CDATA[	<p>I&#8217;ve decided to become one of the micropatrons of Jason Kottke, who has <a href="http://www.kottke.org/05/02/kottke-micropatron">quit his job to do kottke.org as a full-time job</a>. Although I don&#8217;t visit his site very often, when I do, I learn alot. I really like what he&#8217;s doing, and I believe that just as I support compelling theatre/movies/art, I should support outstanding web developers as well.  (Actually, it&#8217;s been a long time since I&#8217;ve seen any cutting edge theatre or art, but I did see <a href="http://imdb.com/title/tt0419279/">Yesterday </a>this past weekend&#8230;) </p>
	<p>I hope that Jason manages to keep the love flowing - managing his community of supporters. There&#8217;s so much competing for my attention. How do independent developers stay on our radar? I&#8217;m OK with an occasional update via e-mail, in case I&#8217;ve lost his site in the long list of rss feeds to which I subscribe. Some sort of community like <a href="https://www.linkedin.com/">Linked In</a> would be fine as well. Perhaps something like <a href="http://beta.plazes.com/home/">plazes</a>, which features a geographically-dispersed community? It will be interesting to see how Jason maintains his  network of supporters. </p>
	<p>I wish Jason all the best!
</p>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2005/02/24/how-do-independent-developers-stay-on-our-radar/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>DWR/Ajax</title>
		<link>http://vetula.com/blog/archives/2005/02/23/dwrajax/</link>
		<comments>http://vetula.com/blog/archives/2005/02/23/dwrajax/#comments</comments>
		<pubDate>Wed, 23 Feb 2005 09:10:57 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2005/02/23/dwrajax/</guid>
		<description><![CDATA[Asynchronous communications in web development]]></description>
			<content:encoded><![CDATA[	<p>A new acronym came into my vocabulary: Ajax. The name is shorthand for Asynchronous JavaScript + XML. Ajax describes the technology behind many of Googles&#8217; web apps, in which data on the web page is updated without having to submit/refresh the whole page.  From the article, <a href="http://www.adaptivepath.com/publications/essays/archives/000385.php">Ajax: A New Approach to Web Applications</a>, by Jesse James Garrett: </p>
	<blockquote><p>
 Ajax incorporates:</p>
	<ul>
	<li>standards-based presentation using XHTML and CSS;</li>
	<li>dynamic display and interaction using the Document Object Model;</li>
	<li>data interchange and manipulation using XML and XSLT;</li>
	<li>asynchronous data retrieval using XMLHttpRequest;</li>
	<li>and JavaScript binding everything together.</li>
	</ul></blockquote>
	<p>I&#8217;m currently implementing Ajax functionality in my projects, thanks to <a href="http://eireneh.thorubio.org/dwr/">dwr</a> (direct web remoting). dwr is pretty easy to implement - kudos to the fellas working on it. Right now I&#8217;m simply using dwr to help check if the user has entered an id that already exists the the database; however, I&#8217;m planning to use dwr to make long, complex forms alot easier (and fault-tolerant). This is a really nice item to add to a web developer&#8217;s toolkit!
</p>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2005/02/23/dwrajax/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Xforms Samples</title>
		<link>http://vetula.com/blog/archives/2005/02/05/xforms-samples/</link>
		<comments>http://vetula.com/blog/archives/2005/02/05/xforms-samples/#comments</comments>
		<pubDate>Sat, 05 Feb 2005 08:46:37 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2005/02/05/xforms-samples/</guid>
		<description><![CDATA[While testing out the new Mozilla XForms beta, I needed some samples.]]></description>
			<content:encoded><![CDATA[	<p><strong>Update</strong>: The <a href="http://www.mozilla.org/projects/xforms/">XForms site</a> now includes much better support - thanks folks!</p>
	<p>After seeing the <a href="http://www.mozilla.org/press/mozilla-2005-02-02.html">announcement of XForms beta in Firefox</a>, I decided to test it out. First I picked up a<a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2005-02-04-07-trunk/"> zip for the latest firefox nightly</a>, unzipped it in my Program Files dir, and launched firefox.exe.Then I installed the XForms extension, <a href="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2005-02-04-07-trunk/windows-xpi/">, xforms.xpi</a>. Unfortunately, there are not many pointers to samples or working examples, so here is my current list:</p>
	<ul>
	<li><a href="http://www.w3.org/MarkUp/Forms/Test/">XForms 1.0 Test Suite</a> - Not very useful - the Firefox implementation may not be up to the spec yet.</li>
	<li><a href="http://www.w3.org/MarkUp/Forms/">XForms - The Next Generation of Web Forms</a> - alotta links to form demos and XForms-related news, courtesy of the W3C.</li>
	<li><a href="http://www.mozilla.org/projects/xforms/calc.xhtml">XForms calculator demo</a> - Works!</li>
	<li><a href="http://www.mozilla.org/projects/xforms/sample1.xhtml">XForms tax form example</a> - Works!</li>
	<li><a href="http://www.formsplayer.com/community/samples/">XForms Samples</a> - these require <a href="http://www.formsplayer.com/">formsPlayer</a>; however, I bet they can be modified to work w/ Firefox. Some useful javascript examples.</li>
	</ul>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2005/02/05/xforms-samples/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>First we take Manhattan, then we take Berlin</title>
		<link>http://vetula.com/blog/archives/2004/11/14/first-we-take-manhattan-then-we-take-berlin/</link>
		<comments>http://vetula.com/blog/archives/2004/11/14/first-we-take-manhattan-then-we-take-berlin/#comments</comments>
		<pubDate>Sun, 14 Nov 2004 09:01:42 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2004/11/14/first-we-take-manhattan-then-we-take-berlin/</guid>
		<description><![CDATA[	What&#8217;s the next step for the Democratic Party? Dan Savage has an interesting proposal:
	We can secede emotionally, however, by turning our backs on the heartland. We can focus on our issues, our urban issues, and promote our shared urban values. We can create a new identity politics, one that transcends class, race, sexual orientation, and [...]]]></description>
			<content:encoded><![CDATA[	<p>What&#8217;s the next step for the Democratic Party? Dan Savage has <a href="http://www.portlandmercury.com/2004-11-11/feature.html">an interesting proposal</a>:</p>
	<blockquote><p>We can secede emotionally, however, by turning our backs on the heartland. We can focus on our issues, our urban issues, and promote our shared urban values. We can create a new identity politics, one that transcends class, race, sexual orientation, and religion, one that unites people living in cities with each other and with other urbanites in other cities. The Republicans have the federal government&#8211;for now. But we&#8217;ve got Seattle, Portland, San Francisco, Chicago, Los Angeles, San Diego, New York City (Bloomberg is a Republican in name only), and every college town in the country. We&#8217;re everywhere any sane person wants to be. Let them have the shitholes, the Oklahomas, Wyomings, and Alabamas. We&#8217;ll take Manhattan.</p></blockquote>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2004/11/14/first-we-take-manhattan-then-we-take-berlin/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Lancet report - Iraq civilian toll: 100,000 and rising?</title>
		<link>http://vetula.com/blog/archives/2004/10/29/lancet-report-iraq-civilian-toll-100000-and-rising/</link>
		<comments>http://vetula.com/blog/archives/2004/10/29/lancet-report-iraq-civilian-toll-100000-and-rising/#comments</comments>
		<pubDate>Fri, 29 Oct 2004 17:48:13 +0000</pubDate>
		<dc:creator>Chris Kelley</dc:creator>
		
	<category>General</category>
		<guid>http://vetula.com/blog/archives/2004/10/29/lancet-report-iraq-civilian-toll-100000-and-rising/</guid>
		<description><![CDATA[	I saw a story about this Lancet report on Iraqi civilian casualties on BBC World on Friday, and was shocked at the number - 100,000! This should be a core issue of the US Presidential campaign - not dithering over how many munitions have been lost.  Also, here&#8217;s a similar article from the Guardian.. [...]]]></description>
			<content:encoded><![CDATA[	<p>I saw <a href="http://news.bbc.co.uk/1/hi/world/middle_east/3962969.stm">a story about this Lancet report on Iraqi civilian casualties</a> on BBC World on Friday, and was shocked at the number - 100,000! This should be a core issue of the US Presidential campaign - not dithering over how many munitions have been lost.  Also, here&#8217;s a <a href="http://www.guardian.co.uk/Iraq/Story/0,2763,1338749,00.html">similar article</a> from the Guardian.. Why isn&#8217;t this front-page news yet?</p>
	<p>Update: 11/14/2004 - The Economist has an article that digs a little deeper into the <a href="http://www.economist.com/science/displayStory.cfm?story_id=3352814">statistical analysis behind the Lancet study</a>.</p>
]]></content:encoded>
			<wfw:commentRSS>http://vetula.com/blog/archives/2004/10/29/lancet-report-iraq-civilian-toll-100000-and-rising/feed/</wfw:commentRSS>
	</item>
	</channel>
</rss>
