<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Nelz&#039;s Blog</title>
	<atom:link href="http://nelz.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://nelz.net</link>
	<description>Ruminations on Development</description>
	<lastBuildDate>Fri, 05 Mar 2010 20:33:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='nelz.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/b1e8ad2c035555285ea1c88e99d66b4d?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nelz&#039;s Blog</title>
		<link>http://nelz.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nelz.net/osd.xml" title="Nelz&#039;s Blog" />
	<atom:link rel='hub' href='http://nelz.net/?pushpress=hub'/>
		<item>
		<title>Google App Engine in Maven + IntelliJ</title>
		<link>http://nelz.net/2010/03/05/google-app-engine-in-maven-intellij/</link>
		<comments>http://nelz.net/2010/03/05/google-app-engine-in-maven-intellij/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 20:33:55 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=423</guid>
		<description><![CDATA[At Widgetbox, I sometimes get to play around with interesting technologies that are outside of our regular stack. A couple of weeks ago, I was asked to use Google App Engine&#8217;s Java environment (GAE/J) to prototype a resizing image proxy.
At first, I just developed the prototype in the default GAE/J Eclipse environment until I could [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=423&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://www.widgetbox.com/" target="_blank">Widgetbox</a>, I sometimes get to play around with interesting technologies that are outside of our regular stack. A couple of weeks ago, I was asked to use <a href="http://code.google.com/appengine/" target="_blank">Google App Engine</a>&#8217;s Java environment (GAE/J) to prototype a resizing image proxy.</p>
<p>At first, I just developed the prototype in the default GAE/J Eclipse environment until I could deliver a functional <a href="http://en.wikipedia.org/wiki/Proof_of_concept" target="_blank">POC</a>. After finding the GAE/J capabilities more than adequate for what we wanted to do, I was challenged to bring the project into our standard <a href="http://www.jetbrains.com/idea/" target="_blank">IntelliJ</a> + <a href="http://maven.apache.org/" target="_blank">Maven</a> development environment. For the rest of this post, I&#8217;ll share a couple of tips and tricks for getting your GAE/J project to operate in this environment.</p>
<h3>Basic POM File</h3>
<p>There&#8217;s some funny business and frustration around the Maven community&#8217;s adoption of GAE/J, but I&#8217;ll skip that part of the story for right now. What I found is that the <a href="http://code.google.com/p/maven-gae-plugin/" target="_blank">maven-gae-plugin</a> project is the best place to go to for help Mavenizing a GAE/J build.</p>
<p>I have to say that it&#8217;s not &#8216;use the archetype&#8217; easy (their archetype failed for me), but with a bit of elbow-grease and rummaging through their documentation I was able to get a decent and functional POM file built. Here it is (with some of our proprietary information scrubbed to protect innocent servers):</p>
<pre><a name="line1">  1</a> &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<a name="line2">  2</a>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
<a name="line3">  3</a>   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
<a name="line4">  4</a>   &lt;groupId&gt;com.widgetbox&lt;/groupId&gt;
<a name="line5">  5</a>   &lt;artifactId&gt;image-proxy-webapp&lt;/artifactId&gt;
<a name="line6">  6</a>   &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
<a name="line7">  7</a>   &lt;name&gt;Widgetbox :: Image-Proxy :: Webapp&lt;/name&gt;
<a name="line8">  8</a>   &lt;packaging&gt;war&lt;/packaging&gt;
<a name="line9">  9</a>   &lt;properties&gt;
<a name="line10"> 10</a>     &lt;gae.version&gt;1.3.0&lt;/gae.version&gt;
<a name="line11"> 11</a>     &lt;gae.app.name&gt;qa-image-proxy&lt;/gae.app.name&gt;
<a name="line12"> 12</a>   &lt;/properties&gt;
<a name="line13"> 13</a>   &lt;dependencies&gt;
<a name="line14"> 14</a>     &lt;dependency&gt;
<a name="line15"> 15</a>       &lt;groupId&gt;javax.jdo&lt;/groupId&gt;
<a name="line16"> 16</a>       &lt;artifactId&gt;jdo2-api&lt;/artifactId&gt;
<a name="line17"> 17</a>       &lt;version&gt;2.3-eb&lt;/version&gt;
<a name="line18"> 18</a>       &lt;exclusions&gt;
<a name="line19"> 19</a>         &lt;exclusion&gt;
<a name="line20"> 20</a>           &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
<a name="line21"> 21</a>           &lt;artifactId&gt;transaction-api&lt;/artifactId&gt;
<a name="line22"> 22</a>         &lt;/exclusion&gt;
<a name="line23"> 23</a>       &lt;/exclusions&gt;
<a name="line24"> 24</a>     &lt;/dependency&gt;
<a name="line25"> 25</a>     &lt;dependency&gt;
<a name="line26"> 26</a>       &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
<a name="line27"> 27</a>       &lt;artifactId&gt;jta&lt;/artifactId&gt;
<a name="line28"> 28</a>       &lt;version&gt;1.1&lt;/version&gt;
<a name="line29"> 29</a>     &lt;/dependency&gt;
<a name="line30"> 30</a>     &lt;dependency&gt;
<a name="line31"> 31</a>       &lt;groupId&gt;com.google.appengine.orm&lt;/groupId&gt;
<a name="line32"> 32</a>       &lt;artifactId&gt;datanucleus-appengine&lt;/artifactId&gt;
<a name="line33"> 33</a>       &lt;version&gt;1.0.4.1&lt;/version&gt;
<a name="line34"> 34</a>     &lt;/dependency&gt;
<a name="line35"> 35</a>     &lt;dependency&gt;
<a name="line36"> 36</a>       &lt;groupId&gt;org.datanucleus&lt;/groupId&gt;
<a name="line37"> 37</a>       &lt;artifactId&gt;datanucleus-core&lt;/artifactId&gt;
<a name="line38"> 38</a>       &lt;version&gt;1.1.5&lt;/version&gt;
<a name="line39"> 39</a>       &lt;exclusions&gt;
<a name="line40"> 40</a>         &lt;exclusion&gt;
<a name="line41"> 41</a>           &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
<a name="line42"> 42</a>           &lt;artifactId&gt;transaction-api&lt;/artifactId&gt;
<a name="line43"> 43</a>         &lt;/exclusion&gt;
<a name="line44"> 44</a>       &lt;/exclusions&gt;
<a name="line45"> 45</a>     &lt;/dependency&gt;
<a name="line46"> 46</a>     &lt;dependency&gt;
<a name="line47"> 47</a>       &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
<a name="line48"> 48</a>       &lt;artifactId&gt;datanucleus-jpa&lt;/artifactId&gt;
<a name="line49"> 49</a>       &lt;version&gt;1.1.5&lt;/version&gt;
<a name="line50"> 50</a>       &lt;scope&gt;runtime&lt;/scope&gt;
<a name="line51"> 51</a>     &lt;/dependency&gt;
<a name="line52"> 52</a>     &lt;dependency&gt;
<a name="line53"> 53</a>       &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
<a name="line54"> 54</a>       &lt;artifactId&gt;geronimo-jpa_3.0_spec&lt;/artifactId&gt;
<a name="line55"> 55</a>       &lt;version&gt;1.1.1&lt;/version&gt;
<a name="line56"> 56</a>       &lt;scope&gt;runtime&lt;/scope&gt;
<a name="line57"> 57</a>     &lt;/dependency&gt;
<a name="line58"> 58</a>     &lt;dependency&gt;
<a name="line59"> 59</a>       &lt;groupId&gt;com.google.appengine&lt;/groupId&gt;
<a name="line60"> 60</a>       &lt;artifactId&gt;appengine-api-1.0-sdk&lt;/artifactId&gt;
<a name="line61"> 61</a>       &lt;version&gt;${gae.version}&lt;/version&gt;
<a name="line62"> 62</a>     &lt;/dependency&gt;
<a name="line63"> 63</a>   &lt;/dependencies&gt;
<a name="line64"> 64</a>   &lt;build&gt;
<a name="line65"> 65</a>     &lt;plugins&gt;
<a name="line66"> 66</a>       &lt;plugin&gt;
<a name="line67"> 67</a>         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
<a name="line68"> 68</a>         &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
<a name="line69"> 69</a>         &lt;version&gt;2.0.2&lt;/version&gt;
<a name="line70"> 70</a>         &lt;configuration&gt;
<a name="line71"> 71</a>           &lt;source&gt;1.6&lt;/source&gt;
<a name="line72"> 72</a>           &lt;target&gt;1.6&lt;/target&gt;
<a name="line73"> 73</a>         &lt;/configuration&gt;
<a name="line74"> 74</a>       &lt;/plugin&gt;
<a name="line75"> 75</a>       &lt;plugin&gt;
<a name="line76"> 76</a>         &lt;groupId&gt;net.kindleit&lt;/groupId&gt;
<a name="line77"> 77</a>         &lt;artifactId&gt;maven-gae-plugin&lt;/artifactId&gt;
<a name="line78"> 78</a>         &lt;version&gt;0.5.3&lt;/version&gt;
<a name="line79"> 79</a>       &lt;/plugin&gt;
<a name="line80"> 80</a>       &lt;plugin&gt;
<a name="line81"> 81</a>         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
<a name="line82"> 82</a>         &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
<a name="line83"> 83</a>         &lt;version&gt;2.1-beta-1&lt;/version&gt;
<a name="line84"> 84</a>         &lt;configuration&gt;
<a name="line85"> 85</a>           &lt;filters&gt;
<a name="line86"> 86</a>             &lt;filter&gt;${project.build.directory}/version.properties&lt;/filter&gt;
<a name="line87"> 87</a>           &lt;/filters&gt;
<a name="line88"> 88</a>           &lt;webResources&gt;
<a name="line89"> 89</a>             &lt;resource&gt;
<a name="line90"> 90</a>               &lt;directory&gt;src/main/external&lt;/directory&gt;
<a name="line91"> 91</a>               &lt;targetPath&gt;WEB-INF&lt;/targetPath&gt;
<a name="line92"> 92</a>               &lt;filtering&gt;true&lt;/filtering&gt;
<a name="line93"> 93</a>             &lt;/resource&gt;
<a name="line94"> 94</a>           &lt;/webResources&gt;
<a name="line95"> 95</a>         &lt;/configuration&gt;
<a name="line96"> 96</a>       &lt;/plugin&gt;
<a name="line97"> 97</a>       &lt;plugin&gt;
<a name="line98"> 98</a>         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
<a name="line99"> 99</a>         &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
<a name="line100">100</a>         &lt;version&gt;1.3&lt;/version&gt;
<a name="line101">101</a>         &lt;executions&gt;
<a name="line102">102</a>           &lt;execution&gt;
<a name="line103">103</a>             &lt;phase&gt;compile&lt;/phase&gt;
<a name="line104">104</a>             &lt;configuration&gt;
<a name="line105">105</a>               &lt;tasks&gt;
<a name="line106">106</a>                 &lt;echo file="${project.build.directory}/version.properties"&gt;
<a name="line107">107</a>                     friendlyversion=${project.version}
<a name="line108">108</a>                 &lt;/echo&gt;
<a name="line109">109</a>                 &lt;replace file="${project.build.directory}/version.properties" token="." value="-"/&gt;
<a name="line110">110</a>                 &lt;replace file="${project.build.directory}/version.properties" token="SNAPSHOT" value="snapshot"/&gt;
<a name="line111">111</a>               &lt;/tasks&gt;
<a name="line112">112</a>             &lt;/configuration&gt;
<a name="line113">113</a>             &lt;goals&gt;
<a name="line114">114</a>               &lt;goal&gt;run&lt;/goal&gt;
<a name="line115">115</a>             &lt;/goals&gt;
<a name="line116">116</a>           &lt;/execution&gt;
<a name="line117">117</a>         &lt;/executions&gt;
<a name="line118">118</a>       &lt;/plugin&gt;
<a name="line119">119</a>     &lt;/plugins&gt;
<a name="line120">120</a>   &lt;/build&gt;
<a name="line121">121</a>   &lt;repositories&gt;
<a name="line122">122</a>     &lt;repository&gt;
<a name="line123">123</a>       &lt;id&gt;maven-gae-plugin-repo&lt;/id&gt;
<a name="line124">124</a>       &lt;name&gt;maven-gae-plugin repository&lt;/name&gt;
<a name="line125">125</a>       &lt;url&gt;http://maven-gae-plugin.googlecode.com/svn/repository&lt;/url&gt;
<a name="line126">126</a>     &lt;/repository&gt;
<a name="line127">127</a>   &lt;/repositories&gt;
<a name="line128">128</a>   &lt;pluginRepositories&gt;
<a name="line129">129</a>     &lt;pluginRepository&gt;
<a name="line130">130</a>       &lt;id&gt;maven-gae-plugin-repo&lt;/id&gt;
<a name="line131">131</a>       &lt;name&gt;maven-gae-plugin repository&lt;/name&gt;
<a name="line132">132</a>       &lt;url&gt;http://maven-gae-plugin.googlecode.com/svn/repository&lt;/url&gt;
<a name="line133">133</a>     &lt;/pluginRepository&gt;
<a name="line134">134</a>   &lt;/pluginRepositories&gt;
<a name="line135">135</a> &lt;/project&gt;
</pre>
<p>(FYI, we&#8217;re not actively using any datastore functionality just yet, so if you are going to use this template please forgive me if those dependencies are a little bit wonky.)</p>
<p>Since Google hasn&#8217;t (<a href="http://code.google.com/p/googleappengine/issues/detail?id=1296" target="_blank">yet</a>) decided to publish their development environment in a Maven-friendly way, there&#8217;s a bit of dependency wonkiness involved in getting the maven-gae-plugin to work. I included the repository information required by the plugin (lines 121 &#8211; 134), but if you use a repository manager (like <a href="http://nexus.sonatype.org/" target="_blank">Nexus</a>), you&#8217;ll want to remove those lines from the POM and add a proxy for the maven-gae-plugin&#8217;s repository.</p>
<p>To get the development environment working the plugin also requires access to the unzipped SDK as packaged by Google. The plugin tries to help you set this up (&#8220;gae:unpack&#8221;) but that failed for me. I was able to get stuff working by manually unzipping the SDK artifact downloaded directly from Google to the following directory:</p>
<pre>~/.m2/repository/com/google/appengine/appengine-java-sdk/1.3.0/appengine-java-sdk-1.3.0</pre>
<h3>Incremental Improvments</h3>
<p>Initially, I had kept the appengine-web.xml within the WEB-INF directory, but I realized I could make our Release Manager&#8217;s life a bit easier if I added a bit of build-time substitution.</p>
<p>Here&#8217;s our appengine-web.xml:</p>
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;appengine-web-app xmlns="http://appengine.google.com/ns/1.0"&gt;
	&lt;application&gt;${gae.app.name}&lt;/application&gt;
	&lt;version&gt;${friendlyversion}&lt;/version&gt;
	&lt;system-properties&gt;
		&lt;property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/&gt;
	&lt;/system-properties&gt;
&lt;/appengine-web-app&gt;</pre>
<p><a href="http://nelznet.files.wordpress.com/2010/03/picture-1.png"><img class="size-full wp-image-424 alignright" title="Directory Structure" src="http://nelznet.files.wordpress.com/2010/03/picture-1.png?w=370&#038;h=154" alt="Directory Structure" width="370" height="154" /></a></p>
<p>And you&#8217;ll see that I put it into a new source directory called &#8216;external&#8217;:</p>
<p>At build time, I use the <a href="http://maven.apache.org/plugins/maven-antrun-plugin/" target="_blank">AntRun</a> plugin (lines 97-118) to create a small file under the target directory that holds a &#8217;sanitized&#8217; version of the standard Maven version. (I.e. &#8220;1.0-SNAPSHOT&#8221; becomes GAE-friendly &#8220;1-0-snapshot&#8221;.) I then use the Maven filter functionality available in the WAR plugin (lines 80-96) to copy the appengine-web.xml into its proper directory with the version substituted in.</p>
<p>You&#8217;ll also notice in our appengine-web.xml that we substitute in our application name. By default this comes from the properties section of the pom.xml file (line 11). I did this because we&#8217;ve actually got 2 different applications up on GAE&#8217;s servers, the QA version and the Production version. By default we build using the QA server&#8217;s application name, but when our Release Manager is building to upload to Production, all that is needed is an additional command-line argument of &#8220;-Dgae.app.name=&lt;prod-name&gt;&#8221;.</p>
<h3>Running, Debugging, and Deploying</h3>
<p>The two most valuable targets that maven-gae-plugin provide are &#8220;gae:run&#8221; and &#8220;gae:debug&#8221;. These will assemble your code in the standard Maven webapp target directories and run your app. (Note: &#8220;gae:debug&#8221; didn&#8217;t actually work for me until the 0.5.3 version of the plugin.)</p>
<p>There is also a &#8220;gae:deploy&#8221; target that is supposed to invoke the Google-supplied shell script that will upload your application to the Google servers, but it failed for me several time. Since then, I&#8217;ve defaulted to using the shell script directly to deploy my app once it has been built:</p>
<pre>~/.m2/repository/com/google/appengine/appengine-java-sdk/1.3.0/appengine-java-sdk-1.3.0/bin/appcfg.sh \
    update \
    ./target/myApp-1.0-SNAPSHOT
</pre>
<h3>Results</h3>
<p>So, this is how we got up and running with GAE/J in our standard development environment. Hopefully this post ends up helping people out to reduce their bootstrap time when evaluating/investigating GAE/J for their own uses.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/423/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=423&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2010/03/05/google-app-engine-in-maven-intellij/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>

		<media:content url="http://nelznet.files.wordpress.com/2010/03/picture-1.png" medium="image">
			<media:title type="html">Directory Structure</media:title>
		</media:content>
	</item>
		<item>
		<title>Interesting Blogging Coming Out of Twitter</title>
		<link>http://nelz.net/2010/02/11/interesting-blogging-coming-out-of-twitter/</link>
		<comments>http://nelz.net/2010/02/11/interesting-blogging-coming-out-of-twitter/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 23:17:00 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=414</guid>
		<description><![CDATA[&#8220;Why I Love Everything You Hate about Java&#8220;: It&#8217;s nice to see Java getting some love as a language.
&#8220;The Anatomy of a Whale&#8220;: A nice write up on problem-finding and -solving within a large-scale operation.

       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=414&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>&#8220;<a href="http://magicscalingsprinkles.wordpress.com/2010/02/08/why-i-love-everything-you-hate-about-java/">Why I Love Everything You Hate about Java</a>&#8220;: It&#8217;s nice to see Java getting some love as a language.</p>
<p>&#8220;<a href="http://engineering.twitter.com/2010/02/anatomy-of-whale.html" target="_blank">The Anatomy of a Whale</a>&#8220;: A nice write up on problem-finding and -solving within a large-scale operation.</p>
<p><a href="http://magicscalingsprinkles.wordpress.com/2010/02/08/why-i-love-everything-you-hate-about-java/"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/414/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=414&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2010/02/11/interesting-blogging-coming-out-of-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Embedded Job Posting?</title>
		<link>http://nelz.net/2010/01/21/embedded-job-posting/</link>
		<comments>http://nelz.net/2010/01/21/embedded-job-posting/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 19:43:26 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=412</guid>
		<description><![CDATA[So, I&#8217;m doing some stuff at work that has me looking at HTTP headers. As a reference, I looked at the feed URL for this blog, and I noticed the following header:
X-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.

I think this is a pretty cute [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=412&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m doing some stuff at work that has me looking at HTTP headers. As a reference, I looked at the feed URL for this blog, and I noticed the following header:</p>
<pre>X-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.
</pre>
<p>I think this is a pretty cute and subtle way of looking for technically adept potential employees.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/412/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/412/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=412&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2010/01/21/embedded-job-posting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>More Maven Angst</title>
		<link>http://nelz.net/2010/01/19/more-maven-angst/</link>
		<comments>http://nelz.net/2010/01/19/more-maven-angst/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 22:20:28 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=408</guid>
		<description><![CDATA[I don&#8217;t want to just jump on Maven-bashing bandwagon here, but a casual perusal of my previous posts will show that I talk about Maven a lot. This is going to be another one of those posts.
I&#8217;ve been starting to play with Google App Engine, both for personal projects and at work. Since most of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=408&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t want to just jump on <a href="http://maven.apache.org/" target="_blank">Maven</a>-bashing <a href="http://www.naildrivin5.com/daveblog5000/?p=111" target="_blank">bandwagon</a> here, but a casual perusal of my previous posts will show that I talk about Maven a lot. This is going to be another one of <em>those</em> posts.</p>
<p>I&#8217;ve been starting to play with <a href="http://code.google.com/appengine/" target="_blank">Google App Engine</a>, both for personal projects and at work. Since most of my environments are Maven-based, I thought I&#8217;d go out and find a Maven Archetype or some kind of a POM file to bring these projects into my environment. I did find several blog posts trying to help: <a href="http://twelves.blogspot.com/2009/04/google-appengine-maven-pom.html" target="_blank">here</a>, <a href="http://www.salientpoint.com/blog/?p=480" target="_blank">here</a>, etc&#8230; The annoying thing you&#8217;ll notice on those blog posts is that <a href="http://www.sonatype.com/people/brian" target="_blank">Brian Fox ((formerly?) of Sonatype)</a> posts a comment pointing towards Jason van Zyl&#8217;s post <a href="http://www.sonatype.com/people/2009/04/mavenizing-the-appengine-sdk/" target="_blank">describing his efforts to Maven-ize the GAE SDK</a>.</p>
<p>That would be all well and good if things had actually progressed. If you look at JvZ&#8217;s post, you&#8217;ll see he ends with &#8220;hopefully I’ll be able to get this out for Maven users by the end of the week!&#8221; What happens after that? Bupkis, nil, nothing, NADA!</p>
<p>There&#8217;s comments as late as Dec &#8216;09 expressing interest to use and/or help with the effort. But, there is NO RESPONSE from anyone at Sonatype.</p>
<p>I just find it galling that Sonatype would go on an all-out publicity spree talking people out of working on their own because JvZ himself was going to bring his skills to bear on the problem, only to completely fizzle out. I suspect the community at large would have been better off if those 4 or 5 early Maven + GAE adopters had continued on their own path, even if JvZ had succeeded.</p>
<p>Again: my patience with Maven/JvZ is waning. I&#8217;m eager to see what comes along next to take its place.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/408/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=408&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2010/01/19/more-maven-angst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Book Review: Apache Maven 2 Effective Implementation</title>
		<link>http://nelz.net/2009/12/19/book-review-apache-maven-2-effective-implementation/</link>
		<comments>http://nelz.net/2009/12/19/book-review-apache-maven-2-effective-implementation/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 22:04:01 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=404</guid>
		<description><![CDATA[A few months ago, I was approached by a representative from Packt Publishing to do a review of their book &#8220;Apache Maven 2 Effective Implementation&#8221;, presumably because of my frequent posts about Maven.
They gave me an electronic copy of the book to read, and asked for a 300 &#8211; 350 word review about the book. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=404&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A few months ago, I was approached by a representative from <a href="http://www.packtpub.com/" target="_blank">Packt Publishing</a> to do a review of their book &#8220;Apache Maven 2 Effective Implementation&#8221;, presumably because of my frequent posts about Maven.</p>
<p>They gave me an electronic copy of the book to read, and asked for a 300 &#8211; 350 word review about the book. I&#8217;ve gotten it mostly to the point of &#8216;completion&#8217;, and any more changes would just fall under the category of &#8216;tinkering&#8217;.</p>
<blockquote><p>Maven. I hate the word, as I hate hell, all Montagues, and MAKE.</p>
<p>Maven is a powerful Open Source build system which is becoming a de facto standard in Java development circles. Like any powerful tool, Maven has its own proponents and detractors, benefits and drawbacks. For example, one of the consistent issues that plagues the Maven ecosystem is a dearth of quality documentation.</p>
<p>When I heard about &#8220;Apache Maven 2 Effective Implementation&#8221;, I had hoped that it would be the One Book to rule them all, the One Book to find them, the One Book to bring them all and in the darkness bind them. Unfortunately, this is not that One Book.</p>
<p>&#8220;Apache Maven 2 Effective Implementation&#8221; is yet another effort by a Maven contributor to provide some clarity to Maven&#8217;s user community about how exactly to use Maven correctly. But much like the rest of the Maven documentation ecosystem, this book provides the type of documentation that only its author could love.</p>
<p>The author is obviously knowledgeable, however I can&#8217;t recommend this book as anything more than an incremental addition to the Maven user&#8217;s arsenal. Having been a Maven &#8216;believer&#8217; since the late 1.x days, I would say that ALL the documentation I&#8217;ve seen on the subject has been no better than incremental. In most cases, like this one, the authors falls into a classical trap of technical documentation by explaining <em>what</em> to do, but rarely explaining <em>why.</em> (Nor, more importantly, explaining <em>how</em> to figure these things out for yourself).</p>
<p>I did find a few helpful tidbits of new information in the book. However, I&#8217;m not sure I would have been able to quickly find them again in a reference situation because the logical flow was all over the place. Example: Chapter 4 had ten pages of fundamental reporting information, which is great information to have; but maybe Chapter 5, which was titled &#8220;Reporting and Checks&#8221;, is where that information rightly should have resided.</p>
<p>Unlike some of the best technical books I&#8217;ve read, my ability to stay awake while reading this book was challenged because it is so very dry. I had no delusions of it being as compelling as the &#8220;Encyclopedia Galactica&#8221;, but the prose was completely wooden. This blandness and the previously mentioned problems render the book altogether forgettable.</p></blockquote>
<p>I actually had a couple of people help me with the editing and/or proofreading of my review, and I&#8217;d like to thank <a href="http://twitter.com/gingerbourbon" target="_blank">Jennie-Sue</a>, <a href="http://twitter.com/10_9" target="_blank">Eli</a>, and <a href="http://twitter.com/starchy" target="_blank">Starchy</a> for their offers of help.</p>
<p>If you haven&#8217;t noticed, I have ZERO advertising on my site. It only costs me a couple of bucks a year to keep this site going, and I didn&#8217;t want to spoil the relationship with my readers by trying to commodify their viewing. So, when I was approached to do the review, I was very specific that I would not pull any punches just because they gave me a free book. Packt also tried to sign me up with an affiliate link to the book, which you&#8217;ll notice is nowhere in this (or any) post.</p>
<p>As you can tell, I really didn&#8217;t use the kid gloves with this review. I&#8217;m not very happy with the general quality of Maven documentation (<a href="http://nelz.net/2009/08/20/maven-tomcat-plugin/" target="_self">as I&#8217;ve noted before</a>), and I wasn&#8217;t going to give this book high marks for being just as bad as the rest.</p>
<p>I did manage to sneak in (or are they clumsily manhandled?) 3 different literary fiction references, which I hope spices up the review and adds a bit of character. Let me know if you can name them.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/404/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=404&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/12/19/book-review-apache-maven-2-effective-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Motorcycle Diary</title>
		<link>http://nelz.net/2009/10/27/motorcycle-diary/</link>
		<comments>http://nelz.net/2009/10/27/motorcycle-diary/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 03:13:25 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=383</guid>
		<description><![CDATA[As I mentioned in a previous post, I recently took a &#8220;where the wind blows me&#8221; vacation in France, and I&#8217;m gonna tell you about that wind.
I started out my trip in Bordeaux, where I found a pretty nice hotel to be my &#8216;base of operations&#8217; whilst I tried to work out my motorcycle rental. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=383&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://farm3.static.flickr.com/2638/3908783701_baf9a71033.jpg" alt="Scenic bike picture." width="500" height="375" />As I mentioned in a <a href="http://nelz.net/2009/08/26/leavin-on-a-jet-plane/" target="_self">previous post</a>, I recently took a &#8220;where the wind blows me&#8221; vacation in France, and I&#8217;m gonna tell you about that wind.</p>
<p>I started out my trip in Bordeaux, where I found a pretty nice hotel to be my &#8216;base of operations&#8217; whilst I tried to work out my motorcycle rental. I managed to find the website and then the physical location of <a href="http://www.bordeauxscooters.com" target="_blank">Bordeaux Scooters</a>, and this is where I rented the motorcycle for one whole week.</p>
<p>For the first day, I just rode around the city of Bordeaux a very little bit, trying to accustom myself to the <a href="http://www.flickr.com/photos/nelz9999/3909561352/in/set-72157622336899754/" target="_blank">Yamaha Fazer 650</a> (since I normally ride a <a href="http://www.flickr.com/photos/nelz9999/2356370443/" target="_blank">Kawasaki Ninja 500</a>).</p>
<p>On my first full day on the bike, I got out of Bordeaux and hit a bunch of secondary (C and D) roads. I hit places like <a href="http://www.flickr.com/photos/nelz9999/3908780739/in/set-72157622336899754/" target="_blank">Biscarosse</a>(-en-Plage), Mimizan, and Léon, before I stopped for the night in Hasparren where I stayed at a <a href="http://www.flickr.com/photos/nelz9999/3908781319/in/set-72157622336899754/" target="_blank">cute</a> <em>Hôtes de Chambre</em> (Bed &amp; Breakfast). I was feeling pretty good and confident, both in my motorcycling ability and my language ability to operate in the hinterlands of France.</p>
<p>For my second day of riding, I figured I&#8217;d take some more scenic roads, and even cross over the Spanish border for a bit. I made it through <a href="http://www.flickr.com/photos/nelz9999/3908783135/in/set-72157622336899754/" target="_blank">the border</a> just fine, and was cheerfully enjoying the nice big sweeping roads on the way to Elizondo, and then turned on the road towards Erratzu to make my way back into France near Saint-Etienne-de-Baïgorry.</p>
<p>It was just after a hairpin turn, not more than 1km from the French border and the summit of the hill. I noticed the old stone barn on the left side of the road, then I looked uphill and contemplated that I should be careful because of all the mountain mist that was probably making the road slippery. I brought my attention back to the road, and was alarmed to find that I had drifted close to the side of the road. <em>I started to panic.</em> I was so worried about the side of the road that I couldn&#8217;t look away, and <a href="http://www.tac.vic.gov.au/jsp/content/NavigationController.do?areaID=1&amp;tierID=2&amp;navID=ECE1C03B7F00000100944DBDF51F4039&amp;navLink=null&amp;pageID=359" target="_blank">motorcyclists know</a> that&#8217;s exactly where I ended up.</p>
<p>Now that I was on the edge of the road, I made a snap decision to bite the bullet and take the bike off the road and try to stop before anything untoward happened. Something untoward happened. The mist I had been worrying about mere milliseconds before was coating the grass I was on and the front tire slipped sideways, dumping me and the bike onto our left sides.</p>
<p>I am lucky because I had just recently come out of a tight turn and I wasn&#8217;t going all that fast. I landed face down with my torso on the pavement, and did only about 1 1/2 horizontal pirouettes before I came to a rest. While the helmet I was wearing was scraping across the pavement, I remember thinking &#8220;Boy, a helmet is a <strong>really</strong> good idea!&#8221;</p>
<p>I was up in an instant, just in time to see that the hard case (holding most of my possessions) rolling down the hill. In my adrenaline-addled mind, I decided that I really needed to get my stuff back. So, I went careening down the side of the mountain in my full gear. I found the case 1 1/2 switchbacks down. I brought it up to the road (1 full switchback below the motorcycle) and only then did I decide to take off some of my gear and inspect for damage. Other than a little bit of <a href="http://www.flickr.com/photos/nelz9999/3909567104/in/set-72157622336899754/" target="_blank">scuffed up skin</a>, I was actually fine.</p>
<p>As I was walking back up to inspect the bike, a younger French guy in a car stopped to give me a hand. He helped me turn the bike over, and point it away from downhill. He told me he expected insurance (<em>assurance</em> in French) could be found in any town, and that they&#8217;d have me set back up in no time. I thanked him for his help and advice, and sent him on his way, while I figured out what I needed to do.</p>
<p>After I got all my stuff assembled, and <a href="http://www.flickr.com/photos/nelz9999/3909566938/in/set-72157622336899754/" target="_blank">took</a> a <a href="http://www.flickr.com/photos/nelz9999/3908784999/in/set-72157622336899754/" target="_blank">couple</a> of <a href="http://www.flickr.com/photos/nelz9999/3908784729/in/set-72157622336899754/" target="_blank">pictures</a>, I sat down and tried to call the rental shop. I ended up calling <a href="http://www.flickr.com/photos/nelz9999/3908777057/in/set-72157622336899754/" target="_blank">Ryan</a> (in the U.K) for some research help because I didn&#8217;t know what the country-code is for France. After we got that figured out, I realized the rental shop was on their stated lunch break until 2PM. (It had just turned about 12:30PM.) I sat there for a bit trying to keep myself calm and counting my lucky stars. After I changed into some less-sweaty and warmer clothes, I decided that I should try to get to &#8216;civilization&#8217;, preferably on the French side of the border since the motorcycle was rented from France.</p>
<p>Eventually a nice (German?) couple on motorcycles stopped to give me a hand. We were formulating an elaborate me-plus-my-stuff-on-their-bikes plan, when I realized it was a bit soon for me to be riding on a motorcycle again. I got them to help me flag down a passing carpenter, who agreed to take me and my stuff in his truck to the mechanic&#8217;s in Saint-Etienne-de-Baïgorry. The local mechanic was of no help, other than trying to help me call the rental shop again, which I knew was still closed. After he basically told me to go away because he didn&#8217;t deal with motorcycles and he was on <em>his</em> lunch break, I walked towards town center and sat on the steps of a hotel/brasserie that was also closed for lunch. I decided to wait out the remaining hour or so until the rental shop opened up by chilling out and reading my Kindle on those steps.</p>
<p>Once I did get the rental shop on the phone, they told me that I needed to get the bike transported back to Bordeaux (250km) by whatever means necessary. The shop owner offered to see if he could find someone to do it, and I said I&#8217;d look around at my end. After our conversation, I had no idea if I would be stuck in the town of Saint-Etienne-de-Baïgorry overnight, but I figured I&#8217;d check into the hotel until things settled, and if I had to leave early, I could just lump one night&#8217;s charge.</p>
<p>As I was checking into <img style="border:0 none;position:absolute;left:0;top:0;width:12px;height:12px;cursor:pointer;z-index:10000;display:none;margin:0;padding:0;" src="http://maps.gstatic.com/intl/en_us/mapfiles/iw_plus.gif" alt="" /><a style="position:absolute;left:0;top:0;text-decoration:none;white-space:nowrap;display:none;" href="void(0)"><img style="border:0 none;position:relative;left:0;top:0;width:15px;height:12px;cursor:pointer;z-index:10000;display:none;vertical-align:top;margin:0;padding:0;" src="http://maps.gstatic.com/intl/en_us/mapfiles/iw_fullscreen.gif" alt="" /><span style="overflow:hidden;font-size:small;padding-left:5px;position:relative;top:-1px;text-decoration:underline;">Full-screen</span></a><img style="border:0 none;position:absolute;left:0;top:0;width:12px;height:12px;cursor:pointer;z-index:10000;display:none;margin:0;padding:0;" src="http://maps.gstatic.com/intl/en_us/mapfiles/iw_minus.gif" alt="" /><a href="http://bit.ly/1l7v0R" target="_blank">Hotel Juantorena</a>, I mentioned (or whined) to Mélanie (who I later found out was one of the owners) that I had just been in a motorcycle accident and needed to find a truck to bring the broken motorcycle back to Bordeaux. She said that her husband might be able to help me out. Bixente came out from the kitchen, and called around to some truck services in Biarritz, and found me a quote of €1,200. I thanked him and said I would call back to Bordeaux to see if the rental place had found me a better quote. The rental place said to call back in a couple of hours because the friend they were going to ask was out at the moment and it would be a while before they got an answer.</p>
<p>It turns out that Bixente is also a motorcyclist, and offered to take me (after he finished setting up his kitchen for the evening) to pick up the motorcycle on his motorcycle trailer to bring it down (the 10 km) to his hotel parking lot. I was kind of amazed at this, but just went with it after the day I was having. About a 1/2 hour later, after I had washed off some of my road rash, he called me down to the front of the hotel where he, his truck, and his motorcycle trailer were waiting for me. He drove me up to the crash spot where we loaded up the wreck, and brought it back to the hotel.</p>
<p>The ride up and back could have been horrible. But after figuring out my French skills needed just a bit of annunciation and a slower pace, Bixente actually took the time to get to know me. We had a really nice conversation, and I&#8217;ve come to look back upon that conversation as one of the nicest moments during my time in France.</p>
<p>After getting back to the hotel, I called the rental shop to tell them that the bike was now in the parking lot. In addition to the location of the bike, we had some (mis-)communication where I thought they said to wait several more hours to verify that the truck from Bordeaux would be interested in the job. So, I took a little nap, then read some more whilst having a beer in the bar. I was <em>really</em> surprised when Bixente told me the truck driver was at the other end of town and would be arriving soon. (Evidently, when I thought the rental shop was telling me that I was waiting for confirmation, they were actually telling me that I was waiting for the arrival of the truck.)</p>
<p>The truck driver, myself, and Bixente loaded up the bike into the truck. It was now about 8 or 9PM, and the driver hadn&#8217;t eaten, and neither had I, so we had dinner at the restaurant. The driver was kind of gruff, and not all that friendly, but I managed to get some small-talk in. After dinner, using Bixente as a patient go-between, we established that it was best if I went with the truck driver back to Bordeaux with the bike. (I didn&#8217;t realize there was more for me to do there.) So, I checked out of the hotel. I tried to convince Mélanie to keep my room charge, but she wouldn&#8217;t hear of it. She insisted that if I weren&#8217;t staying overnight they wouldn&#8217;t even think about keeping my money.</p>
<p>The driver brought be back to Bordeaux, and dropped me off at midnight at a hotel right near the rental shop. The next day, I went to the rental shop to find out that we were waiting for a verdict from the motorcycle repair shop. When I remembered that I hadn&#8217;t yet paid the driver from the evening before, the rental shop owner called him for the price. Since I was paying in cash for the truck ride, it only came out to €500, which is a <em>great</em> deal compared to the other quotes I had received.</p>
<p>Later that afternoon, the verdict came down that the bike&#8217;s frame was bent and therefore &#8220;totaled&#8221;. I went back over to the rental shop to sign the credit card slip for the €1800 security deposit that I had now forfeited. And thus ends my motorcycle adventure in France.</p>
<h4>Looking Back</h4>
<p>Now, people say all sorts of horrible things about the French. In general, I can tell you that much of this is wrong. In specific, I can tell you that Mélanie and Bixente are some of the warmest and most caring people I&#8217;ve ever run into in my travels. They took the time to patch up and help this stupid American with bad French and even worse motorcycle skills, and not ask for <em>anything</em> in exchange, other than an email greeting at some time in the future. I hugged Mélanie and Bixente fiercely, and I left their hotel with tears in my eyes because I felt really fortunate to have met these beautiful people.</p>
<p>I realize that I directly benefited from what I refer to as the Motorcyclist (a.k.a. Motard) Fraternity. Without knowing me, but because I spend time on two wheels like they spend time on two wheels, both the German couple and Bixente went <em>way</em> out of their ways to make sure I was taken care of. I guess it&#8217;s a similar thread amongst motorcyclists to help out your fellow motorcyclists.</p>
<h4>Doing Them A Solid</h4>
<p>In addition to adding Mélanie and Bixente to my Xmas card list, I have decided to send as many people as I can to them. So, if any of you readers are ever interested in a quaint village in the beautiful Basque region of France, might I suggest Hotel Juantorena? Also, spreading this info to motorcyclists far &amp; wide would be much appreciated.</p>
<p>(I will try to scan in their pamphlet, but in the mean time, here&#8217;s their contact info:) t</p>
<p>Hotel Restaurant Juantorena</p>
<p>64430, Baigorry</p>
<p>Pyrénées-Atlantiques, Aquitaine, France</p>
<p>Lat/Long: <a href="http://bit.ly/4bfxhq" target="_blank">43.17405, -1.34875</a></p>
<p>Phone: 05 59 37 40 78</p>
<p>Email: hotel.juantorena@orange.fr</p>
<p>Their pamphlet shows that they have a website (<a href="http://www.hotelrestaurantjuantorena.fr" target="_blank">http://www.hotelrestaurantjuantorena.fr)</a> but it doesn&#8217;t seem to be working?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=383&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/10/27/motorcycle-diary/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2638/3908783701_baf9a71033.jpg" medium="image">
			<media:title type="html">Scenic bike picture.</media:title>
		</media:content>

		<media:content url="http://maps.gstatic.com/intl/en_us/mapfiles/iw_plus.gif" medium="image" />

		<media:content url="http://maps.gstatic.com/intl/en_us/mapfiles/iw_fullscreen.gif" medium="image" />

		<media:content url="http://maps.gstatic.com/intl/en_us/mapfiles/iw_minus.gif" medium="image" />
	</item>
		<item>
		<title>Widgetbox Rocks!</title>
		<link>http://nelz.net/2009/10/27/widgetbox-rocks/</link>
		<comments>http://nelz.net/2009/10/27/widgetbox-rocks/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 02:47:48 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=390</guid>
		<description><![CDATA[On a lark, I recently submitted a request to the Widgetbox HR person, Brittany, to see if I could get the company to allow me to attend the &#8220;Random Hacks of Kindness&#8221; event in mid-November. I was considering taking a PTO day, but I&#8217;m still at a negative balance after my recent European adventure, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=390&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>On a lark, I recently submitted a request to the <a href="http://widgetbox.com/" target="_blank">Widgetbox</a> HR person, Brittany, to see if I could get the company to allow me to attend the &#8220;<a href="http://randomhacksofkindness.eventbrite.com/" target="_blank">Random Hacks of Kindness</a>&#8221; event in mid-November. I was considering taking a PTO day, but I&#8217;m still at a negative balance after my recent European adventure, and I thought it&#8217;d be nice if I could get Widgetbox to support my efforts in what <a href="http://twitter.com/brady" target="_blank">Brady Forest</a> called a &#8216;Disaster Relief Code Jam&#8217;.</p>
<p>I was <em>blown away</em> today when I got an email from Brittany saying that not only will Widgetbox management support me in this endeavor, but they are going to add a 1 day per year allowance to our policies for all the employees to pursue similar efforts. <strong>Wow!</strong></p>
<p>This just cements for me that I am totally working with the right set of people in a company that is just the right size for me. I feel appreciated, listened to, and respected, even when I bring forth crazy ideas like sending me off on our investors&#8217; dime to save the world.</p>
<p>Yeah, my life: it doesn&#8217;t suck! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/390/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/390/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/390/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=390&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/10/27/widgetbox-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Precompile JSPs for Tomcat 6</title>
		<link>http://nelz.net/2009/10/20/precompile-jsps-for-tomcat-6/</link>
		<comments>http://nelz.net/2009/10/20/precompile-jsps-for-tomcat-6/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 23:34:11 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=385</guid>
		<description><![CDATA[At the day job, we are working to upgrade our Tomcat from 5.5.X to 6.0.Y. The biggest problem I found when running our app against Tomcat 6 was that a bunch of JSPs used some quote escaping patterns that the later version of the compile considered to be syntax errors.
To get a feel for how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=385&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>At the day job, we are working to upgrade our Tomcat from 5.5.X to 6.0.Y. The biggest problem I found when running our app against Tomcat 6 was that a bunch of JSPs used some quote escaping patterns that the later version of the compile considered to be syntax errors.</p>
<p>To get a feel for how many of these problems existed (after I just-in-time fixed the individual JSPs that crossed my path), the boss wanted me to run a precompile against our whole JSP codebase.</p>
<p>I found the <a href="http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html" target="_blank">instructions on the Tomcat site</a>, which proved to be incomplete and/or incorrect (of course).</p>
<p>Here is what I ended up with:</p>
<pre>&lt;project name="Webapp Precompilation" default="all" basedir="."&gt;
   &lt;import file="${tomcat.home}/bin/catalina-tasks.xml"/&gt;
   &lt;target name="jspc"&gt;
       &lt;jasper
             validateXml="false"
             uriroot="${webapp.path}"
             webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
             outputDir="${webapp.path}/WEB-INF/src"
             compilerTargetVM="1.5"
             compilerSourceVM="1.5"
             failOnError="false" /&gt;
  &lt;/target&gt;

  &lt;target name="compile"&gt;
    &lt;mkdir dir="${webapp.path}/WEB-INF/classes"/&gt;
    &lt;mkdir dir="${webapp.path}/WEB-INF/lib"/&gt;
    &lt;javac destdir="${webapp.path}/WEB-INF/classes"
           optimize="off"
           debug="on" failonerror="false"
           srcdir="${webapp.path}/WEB-INF/src"
           source="1.5"
           target="1.5"
           excludes="**/*.smap"&gt;
      &lt;classpath&gt;
        &lt;pathelement location="${webapp.path}/WEB-INF/classes"/&gt;
        &lt;fileset dir="${webapp.path}/WEB-INF/lib"&gt;
          &lt;include name="*.jar"/&gt;
        &lt;/fileset&gt;
        &lt;pathelement location="${tomcat.home}/lib"/&gt;
        &lt;fileset dir="${tomcat.home}/lib"&gt;
          &lt;include name="*.jar"/&gt;
        &lt;/fileset&gt;
        &lt;fileset dir="${tomcat.home}/bin"&gt;
          &lt;include name="*.jar"/&gt;
        &lt;/fileset&gt;
      &lt;/classpath&gt;
      &lt;include name="**" /&gt;
      &lt;exclude name="tags/**" /&gt;
    &lt;/javac&gt;
  &lt;/target&gt;

  &lt;target name="all" depends="jspc,compile"&gt;&lt;/target&gt;

  &lt;target name="cleanup"&gt;
        &lt;delete&gt;
        &lt;fileset dir="${webapp.path}/WEB-INF/src"/&gt;
        &lt;fileset dir="${webapp.path}/WEB-INF/classes/org/apache/jsp"/&gt;
        &lt;/delete&gt;
  &lt;/target&gt;
&lt;/project&gt;
</pre>
<p>The real stroke of luck is this piece:</p>
<pre>             compilerTargetVM="1.5"
             compilerSourceVM="1.5"
</pre>
<p>Their document said stuff about adding some parameters (<code>source="1.5" target="1.5"</code>) to the &#8220;javac&#8221; target, but they neglected the &#8220;jasper&#8221; target. The error messages complained about the above two parameters being set to 1.4, so as an experiment I plugged them into the ANT target with 1.5&#8217;s and the compilation ran correctly!</p>
<p>Another word of note, the &#8220;showSuccess&#8221; directive did <strong>not</strong> work as their documentation states, but the &#8220;failOnError&#8221; directive does.</p>
<p>I hope this helps others!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/385/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/385/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/385/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=385&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/10/20/precompile-jsps-for-tomcat-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Facebook Connect: Nonconsensual Privacy Leak</title>
		<link>http://nelz.net/2009/09/26/facebook-connect-nonconsensual-privacy-leak/</link>
		<comments>http://nelz.net/2009/09/26/facebook-connect-nonconsensual-privacy-leak/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 00:57:37 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=375</guid>
		<description><![CDATA[The Problem
I do not like Facebook. I do not like it one bit. I want nothing to do with Facebook at all, and I&#8217;ve been very adamant about not signing up for an account despite the urging of everyone and their brother.
So, when I recently gained an understanding of how Facebook Connect works, I got [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=375&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<h3>The Problem</h3>
<p>I do not like Facebook. I do not like it one bit. I want nothing to do with Facebook at all, and I&#8217;ve been very adamant about not signing up for an account despite the urging of everyone and their brother.</p>
<p>So, when I recently gained an understanding of how Facebook Connect works, I got a bit upset. Let me show you why with an example.</p>
<p>Let&#8217;s say I want to create an account at <a href="http://www.mapmyrun.com/" target="_blank">MapMyRun.com</a> which implements Facebook Connect, I will use my primary email address of &#8220;nelz@example.xxx&#8221;. After my account gets created MapMyRun then encrypts my email address with a one-way hash, which for the sake of argument looks like &#8220;BIGBADHASH&#8221;, and sends this hash to Facebook. &#8220;So what?&#8221; you think. Sure, they can&#8217;t figure out anything about me from a single one-way-hash of my email address, right?</p>
<p>Well, then let&#8217;s say I register for an account at <a href="http://io9.com/" target="_blank">io9</a>, again with my primary email address &#8220;nelz@example.xxx&#8221;. Since io9 also implements Facebook Connect, they also hash my email address and send it to Facebook. Guess what? The resulting string, &#8220;BIGBADHASH&#8221;, is <strong>the exact same</strong> as what MapMyRun just sent them.</p>
<p>Now, Facebook knows that someone with an email address that hashes to &#8220;BIGBADHASH&#8221; has an account on both MapMyRun and io9. Again you think &#8220;So what?&#8221; That one-way-hash protects my identity from being associated with any of these specific behaviors, right? <em>Au contraire, mon frère.</em></p>
<p>Now one of my well-meaning friends, who doesn&#8217;t know how much I loathe Facebook, tells Facebook that they want to connect with someone at the address &#8220;nelz@example.com&#8221;.</p>
<p>This was the last piece of the puzzle that Facebook needed. Facebook need only apply the one-way-hash to the plaintext email that my friend just provided them with, and they get &#8220;BIGBADHASH&#8221;. Then, they look up in their database where they&#8217;ve seen that hash before, and now they know that a user with an email address of &#8220;nelz@example.com&#8221; has an account on both MapMyRun and io9.</p>
<p>Now I, who has never <strong>ever</strong> logged into Facebook, am getting tracked by Facebook whether I like it or not.</p>
<h3>External Remediation</h3>
<p>Okay. So what can we do about this?</p>
<p>I looked on Facebook.com, and I found a Privacy Policy. But everything on there requires that you have an account on Facebook. I guess I could create an account, then delete it, but <strong>I don&#8217;t want an account</strong> on Facebook! What Facebook really needs is some web form for non-members that says &#8220;Forget anything you have, or will, ever collect about email XYZ&#8221;. But, that&#8217;s not likely to happen.</p>
<p>What about the end-points, the sites that are implementing Facebook Connect? Personally, during their sign-up processes, I&#8217;d like to see a check box that says &#8220;Don&#8217;t sell me out to Facebook.&#8221; Again, that&#8217;s not likely to happen.</p>
<h3>Personal Remediation</h3>
<p>Now, don&#8217;t get me wrong, I&#8217;m not a n00b. I realize there are all sorts of sites tracking my footprints across the digital landscape every day. (<a href="http://www.quantcast.com/" target="_blank">Quantcast</a>, <a href="http://www.doubleclick.com/" target="_blank">DoubleClick</a>, etc&#8230;) For most of them, if I were paranoid and technical enough I could purge their cookies or set up a proxy that doesn&#8217;t let my browser connect to those URLs.</p>
<p>But this Facebook thing is different, because it&#8217;s highly likely that the communication back to Facebook is not coming from my browser, but from the servers of sites like io9 and MapMyRun. And I have no way to stop it.</p>
<p>How about using a different email address for each site. Sure, that <strong>could</strong> work. If I had my own mail server, I could create &#8220;io9@nelzserver.xxx&#8221; for io9 and &#8220;mapmyrun@nelzserver.xxx&#8221; for MapMyRun, but how many people will have access or technical ability for something like that?</p>
<p><a href="http://gmail.com" target="_blank">Gmail</a> has a feature that could help out here. If I have an email address like &#8220;example@gmail.com&#8221;, I will still get the mail if it is sent to &#8220;example+io9@gmail.com&#8221; or &#8220;example+mapmyrun@gmail.com&#8221;. I found two challenges with this pattern: 1. it can break the &#8220;Forgot My Password&#8221; functionality if you forget what email you signed up with, and 2. emails with &#8220;+&#8221; in them don&#8217;t always pass the (incorrect) <a href="http://en.wikipedia.org/wiki/Regular_expression" target="_blank">regex</a>&#8217;s sites use to validate emails.</p>
<h3>Conclusion</h3>
<p>As <a href="http://nelz.net/2008/04/06/a_conflagration_of_random_musings/" target="_self">I have said before</a>, I am living life pretty openly on the internet. And like I said above, I know there are countless other companies doing much more specific tracking and profiling of me.</p>
<p>But Facebook&#8217;s hegemonic desires to run the internet frustrate me, and I don&#8217;t want to be a part of it. And it pisses me off that there&#8217;s nothing I can do to extract myself.</p>
<p><strong>Update</strong>: Found this interesting blog post &#8211; &#8220;<a href="http://pjf.id.au/blog/?position=590" target="_blank"><strong>Dark Stalking on Facebook</strong></a>&#8220;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/375/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/375/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/375/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=375&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/09/26/facebook-connect-nonconsensual-privacy-leak/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Rock In Life</title>
		<link>http://nelz.net/2009/09/21/how-to-rock-in-life/</link>
		<comments>http://nelz.net/2009/09/21/how-to-rock-in-life/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 01:50:38 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=372</guid>
		<description><![CDATA[Somewhere I found a link to this blog post: &#8220;How to Ensure Your Life is a Bull Run&#8220;. I found it amusing how they couched the whole conversation in financial market terms, but otherwise I really liked it, mostly just from a bullet-point list perspective.
So, here is the short version:

Have Rocking Goals
Be Ambitious
Invest In Yourself
Healthy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=372&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Somewhere I found a link to this blog post: &#8220;<a href="http://www.dumblittleman.com/2009/09/how-to-ensure-your-life-is-bull-run.html" target="_blank">How to Ensure Your Life is a Bull Run</a>&#8220;. I found it amusing how they couched the whole conversation in financial market terms, but otherwise I really liked it, mostly just from a bullet-point list perspective.</p>
<p>So, here is the short version:</p>
<ol>
<li>Have Rocking Goals</li>
<li>Be Ambitious</li>
<li>Invest In Yourself</li>
<li>Healthy Lifestyle</li>
<li>Be Responsible</li>
<li>Patience Is The key</li>
<li>Never Give Up</li>
<li>Learn From Failures</li>
<li>Remain Positive</li>
<li>Celebrate Success</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/372/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/372/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=372&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/09/21/how-to-rock-in-life/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Leavin&#8217; on a jet plane&#8230;</title>
		<link>http://nelz.net/2009/08/26/leavin-on-a-jet-plane/</link>
		<comments>http://nelz.net/2009/08/26/leavin-on-a-jet-plane/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 07:35:42 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=366</guid>
		<description><![CDATA[I am taking a vacation. w00t!
Normally at this time of year, I would be in full-on packing mode for Burning Man. Alas, my best friend from college decided to get married on the day the Man burns (in the U.K.). Then, to top it all off, my brother decided to get married on the 18th [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=366&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I am taking a vacation. <strong>w00t</strong>!</p>
<p>Normally at this time of year, I would be in full-on packing mode for Burning Man. Alas, my best friend from college decided to get married on the day the Man burns (in the U.K.). Then, to top it all off, my brother decided to get married on the 18th of September in Boston. This left me with little to no obligations from the 7th to the 17th of September, so I decided that I was going to rent a motorcycle and tour around the south of France.</p>
<p>What does a techie do when they plan a trip? They buy tech gadgets of course!</p>
<p>My first purchase was a netbook. I got an <a href="http://eeepc.asus.com/global/product901.html" target="_blank">Asus EeePC 901</a> (Linux). I opted for the white model, because there was a $300 (100%) &#8216;black tax&#8217;. I opted to get some scull vinyl stickers ($13) instead. I dumped the default <a href="http://www.xandros.com/" target="_blank">Xandros</a> OS and installed <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>.</p>
<p>My original thought was that I didn&#8217;t want to be tempted to work on work or side projects while I was traipsing around Europe, so I got a solid netbook that could provide me with email/Twitter/basic web surfing, but would lend itself to opening up an IDE. After a while, I realized that I should reserve my vacation for things I *want* to do, even if it includes working on a software<br />
project. So, I&#8217;ve decided to forget the netbook and take my home laptop, a 15&#8243; <a href="http://www.apple.com/macbook/" target="_blank">MacBook</a>. (If you are reading this and want the netbook I described above, I have one for a decent price if you&#8217;d like it.)</p>
<p>The second bit of tech that I purchased was a <a href="http://www.amazon.com/dp/B00154JDAI" target="_blank">Kindle</a> (2nd gen, non-DX). I do enjoy &#8216;personal&#8217; reading, but rarely take the personal time for it (except on vacations) because I&#8217;m usually caught up in some technical book. My usage of it has waxed and waned since my purchase, but it definitely addresses my criteria of reducing the amount of &#8217;stuff&#8217; that I am carrying whilst on-motorcycle in France. I do plan to put some entertaining books on my Kindle before I leave. (&#8220;Necronomicon&#8221; anyone?)</p>
<p>So, I&#8217;m down to my Kindle and my MacBook. What about my <a href="http://www.t-mobileg1.com/" target="_blank">G1</a> mobile phone? Well, the surprising thing is that I&#8217;ll probably just stick to my current provider (<a href="http://www.t-mobile.com/" target="_blank">T-Mobile</a>). I was aghast when I heard their prices (something like: $0.99/min of phone usage, $0.35 per sent text message, free received text message, $0.35 &#8216;connection charge&#8217; [for every time the phone checks for messages?], $15.00 <strong>per Megabyte of data</strong>), but in my subsequent research that&#8217;s about par for the course for prepaid SIM cards. I don&#8217;t like it, and I&#8217;m dubious that this is as good as it gets, but I don&#8217;t have the time or the inclination to fight<br />
it too hard. I just have to accept that my <a href="http://twitter.com/nelz9999" target="_blank">Twitter</a> addiction may cost me some. One of the positives though, is that when I told T-Mobile that I was considering using GSM cards purchased abroad they offered to help me unlock my phone. That should be a boon for me when I decide to replace it in the future and want to sell it.</p>
<p>I&#8217;m not planning on taking a camera, other than my G1 and my laptop. I am kind of hoping to take some videos using my MacBook&#8217;s built-in camera, but we&#8217;ll see if that even happens, because for most of my life I&#8217;ve been a forgetful and shitty photodocumentarian, and I don&#8217;t see that magically changing for this trip.</p>
<p>During my &#8216;where the wind blows&#8217; tour of France, I&#8217;ll probably use <a href="http://www.couchsurfing.org/" target="_blank">CouchSurfing.org</a> to meet people, or possibly even find shelter if I can plan that far in advance, but I&#8217;m purposly keeping my schedule unplanned so I don&#8217;t know if I&#8217;ll want to subject CouchSurfing hosts to my slapdash planning. The housing may just end up being, in order of preference: couches, hostels, B&amp;B&#8217;s, or hotels. Like I said, I going *very* unplanned. I think I should be okay, because the annual French<br />
holiday season is mostly done by the beginning of September. If not, it&#8217;ll be an exercise in creativity, right?</p>
<p>I&#8217;ve got 3 projects to work on while travelling. Firstly, I have visions of a <a href="http://code.google.com/p/simple-spring-memcached/" target="_blank">Simple-Spring-Memcached</a> v2, and I&#8217;ve already made a bit of progress starting that. Next, there is my as-yet-unannounced <a href="http://rubyonrails.org/" target="_blank">Ruby-on-Rails</a>, Twitter based web service. And thirdly, I&#8217;ve decided that I want to do a presentation at <a href="http://www.siliconvalley-codecamp.com/" target="_blank">Silicon Valley Code Camp</a> in October about Simple-Spring-Memcached, and I can work on <a href="http://www.siliconvalley-codecamp.com/Sessions.aspx?ForceSortBySessionTime=true&amp;id=262" target="_blank">that presentation</a> for a bit if I&#8217;m bored.</p>
<p>So, that&#8217;s my story. If I <em>do</em> get around to photodocumenting (or videodocumenting) any of my trip, I&#8217;ll be sure to post a link here.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/366/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/366/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/366/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=366&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/08/26/leavin-on-a-jet-plane/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven Tomcat Plugin</title>
		<link>http://nelz.net/2009/08/20/maven-tomcat-plugin/</link>
		<comments>http://nelz.net/2009/08/20/maven-tomcat-plugin/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 17:28:25 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=363</guid>
		<description><![CDATA[Maven. It is both fantastic, and stress-inducing. And more than just Maven itself, there is a whole community of Maven plugins which are just as frustrating.
Take the Maven Tomcat Plugin for example. It sounds so nice to just type &#8220;mvn tomcat:run&#8221; in your webapp module, and have it automagically run, dynamically loading any JSP changes. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=363&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://maven.apache.org" target="_blank">Maven</a>. It is both fantastic, and stress-inducing. And more than just Maven itself, there is a whole community of Maven plugins which are just as frustrating.</p>
<p>Take the <a href="http://mojo.codehaus.org/tomcat-maven-plugin/" target="_blank">Maven Tomcat Plugin</a> for example. It sounds so nice to just type &#8220;mvn tomcat:run&#8221; in your webapp module, and have it automagically run, dynamically loading any JSP changes. But, if you have a non-trivial webapp, you probably need to send in some system properties.</p>
<p>Let&#8217;s pretend that I require the following command-line parameters passed to Tomcat on the command line:</p>
<pre>-Dexample.value.1=alpha -Dexample.value.2=beta</pre>
<p>How would I send that in to the Tomcat plugin? Well, <a href="http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html#systemProperties" target="_blank">the documentation</a> says there is a &#8220;systemProperties&#8221; element where you can sent them in. But what is the format?</p>
<p>Is the format perhaps like the <a href="http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html" target="_blank">Surefire Plugin</a>?</p>
<pre>&lt;systemProperties&gt;
  &lt;property&gt;
    &lt;name&gt;example.value.1&lt;/name&gt;
    &lt;value&gt;alpha&lt;/value&gt;
  &lt;/property&gt;
  &lt;property&gt;
    &lt;name&gt;example.value.2&lt;/name&gt;
    &lt;value&gt;beta&lt;/value&gt;
  &lt;/property&gt;
&lt;/systemProperties&gt;
</pre>
<p>Or perhaps the format is like that of the <a href="http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-sysprops" target="_blank">Jetty Plugin</a>?</p>
<pre>&lt;systemProperties&gt;
  &lt;systemProperty&gt;
    &lt;name&gt;example.value.1&lt;/name&gt;
    &lt;value&gt;alpha&lt;/value&gt;
  &lt;/systemProperty&gt;
  &lt;systemProperty&gt;
    &lt;name&gt;example.value.2&lt;/name&gt;
    &lt;value&gt;beta&lt;/value&gt;
  &lt;/systemProperty&gt;
&lt;/systemProperties&gt;
</pre>
<p>Nope. The format is like neither of those. It&#8217;s like this:</p>
<pre>&lt;systemProperties&gt;
  &lt;example.value.1&gt;alpha&lt;/example.value.1&gt;
  &lt;example.value.2&gt;beta&lt;/example.value.2&gt;
&lt;/systemProperties&gt;
</pre>
<p>I&#8217;ll admit that this format is a bit less verbose. But why, <em>in the name of all that is holy</em>, does it have to have it&#8217;s own 1-off syntax?!? And can you find this documented anywhere else? I was sure challenged finding it.</p>
<p>This is the kind of non-documentation and irregularity that gives Maven a bad name and keeps my blood pressure high.</p>
<p><strong>UPDATE</strong> (1 Nov 09): As she says in the comments, <a href="http://nelz.net/2009/08/20/maven-tomcat-plugin/#comment-191" target="_self">Kathy</a> actually took the time to submit a ticket to the Maven Tomcat Plugin maintainers, rather than going with my tactic of passively bitching. And today I get notified by <a href="http://nelz.net/2009/08/20/maven-tomcat-plugin/#comment-216" target="_self">herion</a> that the suggestion was taken and there is now <a href="http://mojo.codehaus.org/tomcat-maven-plugin/examples/add-system-properties.html" target="_blank">public documentation</a> added about these properties.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/363/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/363/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/363/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=363&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/08/20/maven-tomcat-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Code 2 HTML</title>
		<link>http://nelz.net/2009/07/30/code-2-html/</link>
		<comments>http://nelz.net/2009/07/30/code-2-html/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 06:13:46 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=359</guid>
		<description><![CDATA[For all the code samples that I put into my blog, I&#8217;ve been using this handy-dandy online tool to convert from code to HTML:
http://www.palfrader.org/code2html/code2html.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=359&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>For all the code samples that I put into my blog, I&#8217;ve been using this handy-dandy online tool to convert from code to HTML:</p>
<p><a href="http://www.palfrader.org/code2html/code2html.html" target="_blank">http://www.palfrader.org/code2html/code2html.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/359/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=359&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/07/30/code-2-html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven, TestNG, and SeleniumRC</title>
		<link>http://nelz.net/2009/07/30/maven-testng-and-seleniumrc/</link>
		<comments>http://nelz.net/2009/07/30/maven-testng-and-seleniumrc/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 06:01:45 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=350</guid>
		<description><![CDATA[Today, I set up a Maven module to run SeleniumRC (Java) tests via TestNG. It wasn&#8217;t a straightforward or easy task, so I thought I&#8217;d share some of what I found with you.
We opt to have all of our modules stay in lock-step version-wise, so we keep a pretty large structure in our SVN trunk. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=350&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Today, I set up a <a href="http://maven.apache.org" target="_blank">Maven</a> module to run <a href="http://seleniumhq.org/projects/remote-control/" target="_blank">SeleniumRC</a> (Java) tests via <a href="http://testng.org/" target="_blank">TestNG</a>. It wasn&#8217;t a straightforward or easy task, so I thought I&#8217;d share some of what I found with you.</p>
<p>We opt to have all of our modules stay in lock-step version-wise, so we keep a pretty large structure in our SVN <em>trunk</em>. We include/exclude modules for compilation by using Maven <em>profiles</em>, so we don&#8217;t have to build the whole structure if we are only changing one small component. Our top-level <strong>pom.xml</strong> file looks similar to this:</p>
<pre>&lt;project&gt;
  &lt;groupId&gt;...
  &lt;artifactId&gt;...
  &lt;version&gt;...
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;modules&gt;
    &lt;module&gt;baseModule&lt;/module&gt;
  &lt;/modules&gt;
  &lt;profiles&gt;
    &lt;profile&gt;
      &lt;id&gt;all&lt;/id&gt;
      &lt;modules&gt;
        &lt;module&gt;otherModule&lt;/module&gt;
        ...
        &lt;module&gt;web-test&lt;/module&gt;
      &lt;/modules&gt;
    &lt;/profile&gt;
    &lt;profile&gt;
      &lt;id&gt;web-test&lt;/id&gt;
      &lt;modules&gt;
        &lt;module&gt;web-test&lt;/module&gt;
      &lt;/modules&gt;
    &lt;/profile&gt;
  &lt;/profiles&gt;
&lt;/project&gt;</pre>
<p>As you can see, running &#8220;mvn clean install&#8221; at this top level would only end up building the <em>baseModule</em>. To get all the modules, we run &#8220;mvn clean install -Pall&#8221; which builds <em>baseModule</em> along with <em>otherModule</em> and <em>web-test</em> and anything else as represented by the ellipse. The <em>web-test</em> module is the one we will be interested in.</p>
<p>For our heavy-weight tests (non-unit tests, like functional or web testing), we like to have the module compile, but not run unless we specifically trigger the tests. To achieve this, we create a <strong>pom.xml</strong> (for the <em>web-test</em> module) that looks something like this:</p>
<pre>&lt;project&gt;
  &lt;parent&gt;...
  &lt;artifactId&gt;web-test&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;build&gt;
    &lt;testSourceDirectory&gt;src/it/java&lt;/testSourceDirectory&gt;
    &lt;testResources&gt;
      &lt;testResource&gt;
        &lt;directory&gt;src/it/resources&lt;/directory&gt;
      &lt;/testResource&gt;
    &lt;/testResources&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.0.2&lt;/version&gt;
        &lt;configuration&gt;
          &lt;source&gt;1.5&lt;/source&gt;
          &lt;target&gt;1.5&lt;/target&gt;
        &lt;/configuration&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;goals&gt;
              &lt;goal&gt;testCompile&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.4.2&lt;/version&gt;
        &lt;configuration&gt;
          &lt;testSourceDirectory&gt;src/it/java&lt;/testSourceDirectory&gt;
          &lt;excludedGroups&gt;web-test&lt;/excludedGroups&gt;
        &lt;/configuration&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;phase&gt;integration-test&lt;/phase&gt;
            &lt;goals&gt;
              &lt;goal&gt;test&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
&lt;/project&gt;</pre>
<p>This pom has several features:</p>
<ul>
<li>It sets up <strong>src/it/java</strong> as the location holding the source code for the tests</li>
<li>It sets the <em>surefire</em> plugin (which runs your tests) to only run at the <em>integration-test</em> part of the Maven lifecycle</li>
<li>It says to ignore any tests in the TestNG &#8220;web-test&#8221; group</li>
<li>Note the packaging says this module is of the type &#8220;pom&#8221;. I found that if this is set to &#8220;jar&#8221;, the tests run twice for some unknown reason</li>
</ul>
<p>Now, if you had tests in <strong>src/it/java</strong> (that were all annotated as &#8220;web-test&#8221;) and you ran &#8220;mvn clean install&#8221;, you&#8217;d see that zero tests ran. This is what we want! Now, we have to get the tests running if we pass a specific profile in. To achieve this, I added the following profile definition to the <em>web-test</em> <strong>pom.xml</strong>.</p>
<pre>&lt;profiles&gt;
    &lt;profile&gt;
      &lt;id&gt;run-web-test&lt;/id&gt;
      &lt;build&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4.2&lt;/version&gt;
            &lt;configuration&gt;
              &lt;suiteXmlFiles&gt;
                &lt;suiteXmlFile&gt;src/it/resources/testng.xml&lt;/suiteXmlFile&gt;
              &lt;/suiteXmlFiles&gt;
              &lt;!--&lt;groups&gt;web-test&lt;/groups&gt;--&gt;
              &lt;!--&lt;forkMode&gt;always&lt;/forkMode&gt;--&gt;
            &lt;/configuration&gt;
            &lt;executions&gt;
              &lt;execution&gt;
                &lt;phase&gt;integration-test&lt;/phase&gt;
                &lt;goals&gt;
                  &lt;goal&gt;test&lt;/goal&gt;
                &lt;/goals&gt;
              &lt;/execution&gt;
            &lt;/executions&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/build&gt;
    &lt;/profile&gt;
  &lt;/profiles&gt;</pre>
<p>This profile is invoked when you run &#8220;mvn clean install -Prun-web-test&#8221;. There are several things I&#8217;d like to point out here:</p>
<ul>
<li>At runtime, this overrides the previously-declared <em>surefire</em> plugin configuration, but only when invoking the profile.</li>
<li>Originally, I was mostly getting stuff to work without the &lt;suiteXmlFiles /&gt; section, but with the &lt;groups /&gt; and &lt;forkMode /&gt; sections&#8230; But it was running every single test class as it&#8217;s own TestSuite.</li>
<li>To fix the multiple TestSuite (and <strong>@Before*</strong>, <strong>@After*</strong> problems that I&#8217;ll discuss later), I ended creating my own <strong>testng.xml</strong> file. Having this file and using the &lt;suiteXmlFiles /&gt; element made things a whole lot easier for configuring my TestNG executions than trying to configure the tests through the clumsy interference of the <em>surefire</em> plugin.</li>
<li>As much as I like Maven, I have to say that the lack of documentation and general obfuscation that happens when using their plugins can really drive a person BATTY!</li>
</ul>
<p>Now, I need to start integrating the stuff I need for using SeleniumRC. I found some decent help on <a href="http://wiki.openqa.org/display/SRC/Selenium-RC+and+Continuous+Integration" target="_blank">how to start up and shut down the selenium-server</a>, however I disagree with using a <em>post-integration-test</em> phase to shut down the server, because if the tests fail in the <em>integration-test</em>, Maven won&#8217;t progress to the next phase and you&#8217;ll be left with a spuriously running selenium-server. The client API&#8217;s do have access to the command that the was being run to shut the server down, so it is just a matter of having some TestNG <strong>@AfterSuite</strong> or <strong>@AfterGroup</strong> method issue the <strong>Selenium.shutDownSeleniumServer()</strong> command.</p>
<p>This brings me to some of the TestNG wonkiness I saw. I decided to use a Singleton <a href="http://testng.org/doc/documentation-main.html#parameters-dataproviders" target="_blank">Data Provider</a> (named  <strong>SeleniumFactory</strong>) to deliver the <strong>Selenium</strong> objects to the individual tests. (<strong>Selenium</strong> objects are time-expensive to create, so I wanted to only create 1 for the duration of the entire test suite.) I wanted to initialize the <strong>SeleniumFactory</strong> object in a <strong>@BeforeGroup</strong> method, deliver the <strong>Selenium</strong> object as a Data Provider, and then tear the <strong>SeleniumFactory</strong> down in a <strong>@AfterGroup</strong> method. (At first, I was fighting Maven&#8217;s handling of each test as its own test suite which was giving me sequence issues, which is why I ended up defining my own <strong>testng.xml</strong> file, as I stated above.) Let me start with some code to show you what I mean:</p>
<pre><strong>public</strong> <strong>class</strong> <span style="color:#2040a0;">SequenceEndsTest</span> <span style="color:#4444ff;"><strong>{</strong></span>
    @<span style="color:#2040a0;">BeforeGroups</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#2040a0;">groups</span> <span style="color:#4444ff;">=</span> <span style="color:#4444ff;"><strong>{</strong></span><span style="color:#008000;">"web-test"</span><span style="color:#4444ff;"><strong>}</strong></span><span style="color:#4444ff;"><strong>)</strong></span>
    <strong>public</strong> <strong>void</strong> <span style="color:#2040a0;">startupSelenium</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#4444ff;"><strong>)</strong></span> <span style="color:#4444ff;"><strong>{</strong></span>
        <span style="color:#2040a0;">System</span>.<span style="color:#2040a0;">out</span>.<span style="color:#2040a0;">println</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#008000;">"-- &gt; Called startup."</span><span style="color:#4444ff;"><strong>)</strong></span><span style="color:#4444ff;">;</span>
    <span style="color:#4444ff;"><strong>}</strong></span>
    @<span style="color:#2040a0;">AfterGroups</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#2040a0;">groups</span> <span style="color:#4444ff;">=</span> <span style="color:#4444ff;"><strong>{</strong></span><span style="color:#008000;">"web-test"</span><span style="color:#4444ff;"><strong>}</strong></span>, <span style="color:#2040a0;">alwaysRun</span> <span style="color:#4444ff;">=</span> <strong>true</strong><span style="color:#4444ff;"><strong>)</strong></span>
    <strong>public</strong> <strong>void</strong> <span style="color:#2040a0;">cleanupSelenium</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#4444ff;"><strong>)</strong></span> <span style="color:#4444ff;"><strong>{</strong></span>
        <span style="color:#2040a0;">System</span>.<span style="color:#2040a0;">out</span>.<span style="color:#2040a0;">println</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#008000;">"-- &gt; Called cleanup."</span><span style="color:#4444ff;"><strong>)</strong></span><span style="color:#4444ff;">;</span>
    <span style="color:#4444ff;"><strong>}</strong></span>
<span style="color:#4444ff;"><strong>}</strong></span>
<strong>public</strong> <strong>class</strong> <span style="color:#2040a0;">SeleniumFactory</span> <span style="color:#4444ff;"><strong>{</strong></span>
    @<span style="color:#2040a0;">DataProvider</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#2040a0;">name</span> <span style="color:#4444ff;">=</span> <span style="color:#008000;">"selenium"</span><span style="color:#4444ff;"><strong>)</strong></span>
    <strong>public</strong> <strong>static</strong> <span style="color:#2040a0;">Object</span><span style="color:#4444ff;"><strong>[</strong></span><span style="color:#4444ff;"><strong>]</strong></span><span style="color:#4444ff;"><strong>[</strong></span><span style="color:#4444ff;"><strong>]</strong></span> <span style="color:#2040a0;">getSelenium</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#4444ff;"><strong>)</strong></span> <span style="color:#4444ff;"><strong>{</strong></span>
        <span style="color:#2040a0;">System</span>.<span style="color:#2040a0;">out</span>.<span style="color:#2040a0;">println</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#008000;">"-- &gt; Called data provider."</span><span style="color:#4444ff;"><strong>)</strong></span><span style="color:#4444ff;">;</span>
        <strong>return</strong> <strong>new</strong> <span style="color:#2040a0;">Object</span><span style="color:#4444ff;"><strong>[</strong></span><span style="color:#4444ff;"><strong>]</strong></span><span style="color:#4444ff;"><strong>[</strong></span><span style="color:#4444ff;"><strong>]</strong></span> <span style="color:#4444ff;"><strong>{</strong></span> <strong>new</strong> <span style="color:#2040a0;">Object</span><span style="color:#4444ff;"><strong>[</strong></span><span style="color:#4444ff;"><strong>]</strong></span> <span style="color:#4444ff;"><strong>{</strong></span><strong>null</strong><span style="color:#4444ff;"><strong>}</strong></span><span style="color:#4444ff;"><strong>}</strong></span><span style="color:#4444ff;">;</span>
    <span style="color:#4444ff;"><strong>}</strong></span>
<span style="color:#4444ff;"><strong>}</strong></span>
<strong>public</strong> <strong>class</strong> <span style="color:#2040a0;">SequenceTest</span> <span style="color:#4444ff;"><strong>{</strong></span>
    @<span style="color:#2040a0;">Test</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#2040a0;">groups</span><span style="color:#4444ff;">=</span><span style="color:#4444ff;"><strong>{</strong></span><span style="color:#008000;">"web-test"</span><span style="color:#4444ff;"><strong>}</strong></span>,
            <span style="color:#2040a0;">dataProvider</span> <span style="color:#4444ff;">=</span> <span style="color:#008000;">"selenium"</span>, <span style="color:#2040a0;">dataProviderClass</span> <span style="color:#4444ff;">=</span> <span style="color:#2040a0;">SeleniumFactory</span>.<strong>class</strong><span style="color:#4444ff;"><strong>)</strong></span>
    <strong>public</strong> <strong>void</strong> <span style="color:#2040a0;">testSomething</span><span style="color:#4444ff;"><strong>(</strong></span><strong>final</strong> <span style="color:#2040a0;">Selenium</span> <span style="color:#2040a0;">selenium</span><span style="color:#4444ff;"><strong>)</strong></span> <span style="color:#4444ff;"><strong>{</strong></span>
        <span style="color:#2040a0;">System</span>.<span style="color:#2040a0;">out</span>.<span style="color:#2040a0;">println</span><span style="color:#4444ff;"><strong>(</strong></span><span style="color:#008000;">"-- &gt; Called test."</span><span style="color:#4444ff;"><strong>)</strong></span><span style="color:#4444ff;">;</span>
    <span style="color:#4444ff;"><strong>}</strong></span>
<span style="color:#4444ff;"><strong>}</strong></span></pre>
<p>This is what I expected to see after running this code:</p>
<pre>-- &gt; Called startup.
-- &gt; Called data provider.
-- &gt; Called test.
-- &gt; Called cleanup.</pre>
<p>But this is what I *actually* saw:</p>
<pre><strong>-- &gt; Called data provider.</strong>
-- &gt; Called startup.
-- &gt; Called test.
-- &gt; Called cleanup.</pre>
<p>I would have assumed that an <strong>@BeforeGroup</strong> method got called before a data provider method, but I guess my assumption is wrong, eh? After I figured out this order-of-method-calls business, I was able to adapt my <strong>SeleniumFactory</strong> accordingly.</p>
<p>&#8230; And that is my story. To summarize: each of these tools could be better documented, but at the end of the day I <em>was</em> able to get a Maven module up and running SeleniumRC tests via TestNG. Now, on to the test-writing!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/350/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=350&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/07/30/maven-testng-and-seleniumrc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Working With Amazon SimpleDB</title>
		<link>http://nelz.net/2009/07/14/working-with-amazon-simpledb/</link>
		<comments>http://nelz.net/2009/07/14/working-with-amazon-simpledb/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 05:56:49 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=341</guid>
		<description><![CDATA[At Widgetbox I&#8217;ve been playing with Amazon SimpleDB to implement some features that we&#8217;ll be releasing soon. I wanted to share some of my impressions with you, but another blogger has already posted a great writeup at http://www.royans.net/arch/2009/02/28/experimenting-with-simpledb-flagthiscom/. However, I&#8217;ll add my $.02 contribution to what he posted.
#1 (&#8220;Its not a relational database.&#8221;) is very, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=341&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://www.widgetbox.com" target="_blank">Widgetbox</a> I&#8217;ve been playing with <a href="http://aws.amazon.com/simpledb/" target="_blank">Amazon SimpleDB</a> to implement some features that we&#8217;ll be releasing soon. I wanted to share some of my impressions with you, but another blogger has already posted a great writeup at <a href="http://www.royans.net/arch/2009/02/28/experimenting-with-simpledb-flagthiscom/" target="_blank">http://www.royans.net/arch/2009/02/28/experimenting-with-simpledb-flagthiscom/</a>. However, I&#8217;ll add my $.02 contribution to what he posted.</p>
<p>#1 (&#8220;Its not a relational database.&#8221;) is very, very important. You&#8217;ve really got to stretch your brain a bit to get out of the RDBMS headspace to see how it can be beneficial. <em>Everything</em> is stored as a string, so if you want to any kind of sorting with regards to numbers or dates, you have to format the values to be sorted lexicographically. (This reminds me of when <a href="http://nelz.net/2007/10/09/lucene-ranged-numerical-search/" target="_self">I was working with Lucene</a>.)</p>
<p>In addition to not having any kind of auto-increment (as mentioned in that blogs #5 point), there is no concept of an &#8220;increment&#8221; operation on a field. At first I was tempted to try for a Read-Increment-Update pattern, but if you think of how that would interact with Amazon&#8217;s concept of <a href="http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/EventualConsistencySummary.html" target="_blank">Eventual Consistency</a> (which, for some inexplicable reason, I find absolutely hilarious), you will realize this is a sub-optimal pattern for data integrity. (The pattern I ended up using lends itself only to the specific interaction patterns I am designing for, so I won&#8217;t bore you with the details.)</p>
<p>Though there is no auto-increment, many blog posts have been published recommending UUID&#8217;s, which seems to be working for me as well.</p>
<p>As for that blogs #8 point, there is now a offered called <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1137&amp;categoryID=149" target="_blank">Javascript Scratchpad for Amazon SimpleDB</a>, which is just a small set of HTML/JS pages that you save locally and run in a browser. I think it&#8217;s actually a pretty cool lightweight and simple GUI tool to offer.</p>
<p>Looking at the price list, you might think that SimpleDB could get expensive fast. But, if you read carefully you&#8217;ll see the following: &#8220;Data transferred between Amazon SimpleDB and other Amazon Web Services within the same region is free of charge (i.e., $0.00 per GB).&#8221; That&#8217;s pretty cool. As long as whatever is hitting your SimpleDB instance resides on the Amazon cloud (in the same region), you don&#8217;t pay for data transfer.</p>
<p>I also gotta comment on the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1132" target="_blank">Java client provided by Amazon</a>. Yeah, it <em>works</em>, but working with it is fairly &#8220;meh&#8221;. You get the source an everything for it, but it&#8217;s not Open Source and they definitely don&#8217;t give the impression that they&#8217;re looking for any contributions. I would&#8217;ve submitted a couple of lines of documentation for some of the methods at the very least.</p>
<p>I&#8217;ve heard some good things about the <a href="http://code.google.com/p/typica/" target="_blank">typica</a> library, specifically that the interaction patterns with the library are nicer than the Amazon-provided library. There only seems to be one (maybe two?) developer working on it, but at least it&#8217;s hosted on Google Code so, unlike Amazon, maybe the developer would welcome contributions.</p>
<p>I haven&#8217;t used typica myself yet, but since I&#8217;m not too far down the other path, maybe I&#8217;ll check it out.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/341/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=341&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/07/14/working-with-amazon-simpledb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>The New Nelz.net</title>
		<link>http://nelz.net/2009/06/28/the-new-nelz-net/</link>
		<comments>http://nelz.net/2009/06/28/the-new-nelz-net/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 20:12:18 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelz.net/?p=316</guid>
		<description><![CDATA[Welcome to the new and improved Nelz.net!
Background
I started this blog way back in the beginning of 2007. At the time, I wanted more than just a blog host, I wanted a host where I could deploy other Java webapps if I felt the need. (For other side projects, y&#8217;know.) Following the lead of Matt Raible, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=316&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to the new and improved Nelz.net!</p>
<h3><strong>Background</strong></h3>
<p>I started this blog way back in the beginning of 2007. At the time, I wanted more than just a blog host, I wanted a host where I could deploy other Java webapps if I felt the need. (For other side projects, y&#8217;know.) Following the lead of <a href="http://raibledesigns.com/rd/page/about" target="_blank">Matt Raible</a>, I chose <a href="http://www.kgbinternet.com/" target="_blank">KGBInternet</a> to host a <a href="http://roller.apache.org" target="_blank">Roller</a> (which wasn&#8217;t then, but is now an Apache project) blog instance. Keith, the proprietor of KGBInternet, is incredibly responsive and I&#8217;d have to say that his service was a great $20/month host where you get full command-line access and control over your JVM/Tomcat instances.</p>
<p>A couple of months ago, I decided to critically look how I use my different online providers.</p>
<p>I had been maintaining a cheap, $5/month <a href="http://geekisp.com/" target="_blank">GeekISP</a> account for personal data <a href="http://subversion.tigris.org/" target="_blank">SVN</a> hosting/backup. Since most of my projects are Open Source (and usually hosted on <a href="http://code.google.com/hosting/" target="_blank">Google Code</a>), I realized I wasn&#8217;t really using my account, so I dropped it.</p>
<p>And when I critically looked at my usage of KGBInternet, I realized that I was <em>only</em> using it for maintaining my blog. That&#8217;s $240 (Candian) bucks per year for blog hosting, which could be done for <em>much</em> less by another provider. So, I decided to drop that account.</p>
<h3><strong>Getting Data Out Of Roller</strong></h3>
<p>The biggest problem I had was trying to get my blog content out of Roller. There is no &#8220;Export&#8221; functionality, which frustrated me to no end. I found a posts with a tutorial on <a href="http://codex.wordpress.org/Importing_From_Roller" target="_blank">how to export directly from the database</a>, but that wouldn&#8217;t work from me because 1) I didn&#8217;t want to go through a PHP export process, and 2) my db entries are all in <a href="http://www.jspwiki.org/" target="_blank">JSPWiki</a> markup (via the <a href="http://wiki.java.net/bin/view/Javanet/OptionalPluginsForRoller" target="_blank">Roller JSPWiki plugin</a>). I found another post showing <a href="http://http://nullpointer.debashish.com/migrating-a-roller-blog-to-wordpress" target="_blank">how to get my data out using Roller templates</a>, but that wasn&#8217;t going to specifically work for me, since I wasn&#8217;t going to be hosting my own <a href="http://wordpress.org/" target="_blank">WordPress</a> install. However, the <a href="http://www.jroller.com/kame/entry/export_and_backup_your_jroller" target="_blank">concept of using the built-in Roller template</a> capabilities had a bunch of potential.</p>
<p>At this point, I wasn&#8217;t yet sure if I was going to end up using <a href="http://wordpress.com" target="_blank">WordPress.com</a> or <a href="http://blogger.com" target="_blank">Blogger</a>. My investigations proved that Blogger only likes to <a href="http://bloggerindraft.blogspot.com/2008/06/new-feature-import-and-export.html" target="_blank">import/export in their own format</a>, for which I could find no documentation. WordPress however has several import capabilities, so I figured I&#8217;d target WordPress, and maybe use some of the community WordPress -&gt; Blogger converters if I needed to move my stuff over to there.</p>
<p>WordPress has its own WordPress eXtended RSS (WXR) syntax, but it&#8217;s <a href="http://en.forums.wordpress.com/topic/can-i-get-the-extended-rss-schema?replies=5" target="_blank">not easy to get a definitive format</a> information. WordPress will import from a <a href="http://www.movabletype.org/" target="_blank">MoveableType</a> export file, which is actually <a href="http://www.movabletype.org/documentation/appendices/import-export-format.html" target="_blank">very well-documented</a>. This is what basically decided me on moving to WordPress, at least for the time being&#8230;</p>
<p>By referring to both the MoveableType documentation and the <a href="http://roller.apache.org/download.cgi" target="_blank">Roller templating guide</a>, I was able to create the following template:</p>
<pre> 1  #set($pager = $model.getWeblogEntriesPager())
 2  #set($map = $pager.getEntries())
 3  #foreach( $day in $map.keySet())
 4  #set($entries = $map.get($day))
 5  #foreach( $entry in $entries )
 6  TITLE: $entry.title
 7  AUTHOR: nelz9999
 8  DATE: $utils.formatDate($entry.pubTime, "MM/dd/yyyy HH:mm:ss")
 9  CATEGORY: $entry.category.name
 10  -----
 11  BODY:
 12  $entry.transformedText
 13  #foreach( $comment in $entry.comments )
 14  -----
 15  COMMENT:
 16  #if ("$comment.name" != "")
 17  AUTHOR: $comment.name
 18  #end
 19  DATE: $utils.formatDate($comment.postTime, "MM/dd/yyyy HH:mm:ss")
 20  #if ("$comment.email" != "")
 21  EMAIL: $comment.email
 22  #end
 23  #if ("$comment.url" != "")
 24  URL: $comment.url
 25  #end
 26  $comment.content
 27  -----
 28  #end        
 29  --------
 30  #end
 31  #end</pre>
<p>One of the keys in the above template is Line #12. Instead of using &#8220;$entry.text&#8221;, I use &#8220;$entry.transformedText&#8221;, which applies all the JSPWiki formatting. (And, if you&#8217;re copy/pasting this template, be sure to update the &#8220;AUTHOR:&#8221; tag on Line #7 to something appropriate for you&#8230;) Keep in mind that this gets you <em>one page</em> of (published, not draft) content at a time, as defined by the &#8220;<em>Number of entries to display on weblog</em>&#8221; parameter in the <strong>Preferences -&gt; Settings </strong>tab. You get to later pages of data by appending &#8220;?page=X&#8221; (0 being the default) to the URL: &#8220;http://nelz.net/roller/nelz/page/moveabletype.tmpl?page=1&#8243;.</p>
<p>It is then a simple matter of doing a &#8220;wget&#8221; for each page: &#8220;wget http://nelz.net/roller/nelz/page/moveabletype.tmpl?page=1 -O page1.txt&#8221;. If you have lots of posts, I&#8217;d recommend upping your entries/page setting, so you have less individual files to manage, but also beware of your file sizes getting too big&#8230; I left my entries/page setting at 10, and I ended up managing 14 files. Had I set it to 50 entries/page, it would have been only 3 files.</p>
<p>But, now you&#8217;ve got most of your content (not images and stuff tho) in a portable format!</p>
<h3>Getting Data Into WordPress</h3>
<p>After creating my WordPress.com account, it was pretty simple to get the data in, via the <strong>Tools -&gt; Import </strong>menu. Now, I had 138 posts in Draft status. I tried using the bulk edit -&gt; publish tool, but for some reason that wasn&#8217;t working for me. I published a couple by hand, but then I remembered back to something Neil Ford <a href="http://nelz.net/2007/05/09/selenium-rocks-even-harder-and-other-notes-from-the-session-i-went-to/" target="_self">said at a conference I attended</a>: &#8220;our computers get together and laugh at us at night because we keep doing their (repetitive task) jobs for them…&#8221; Well, I&#8217;ll be damned if I let my computer laugh at me!!</p>
<p>So, I popped open <a href="http://seleniumhq.org/projects/ide/" target="_blank">SeleniumIDE</a>, and created a quick little automation to approve all the drafts in my queue, a single iteration of which looks like this:</p>
<pre>&lt;tr&gt;
 &lt;td&gt;open&lt;/td&gt;
 &lt;td&gt;/wp-admin/edit.php?post_status=draft&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;click&lt;/td&gt;
 &lt;td&gt;link=Quick Edit&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;select&lt;/td&gt;
 &lt;td&gt;_status&lt;/td&gt;
 &lt;td&gt;label=Published&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;click&lt;/td&gt;
 &lt;td&gt;link=Update Post&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
 &lt;td&gt;waitForText&lt;/td&gt;
 &lt;td&gt;//img[@alt='More stats']&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;</pre>
<p>This worked swimmingly, and in 30 minutes or so, I published nearly 140 posts &#8220;by hand&#8221;. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<h3>Getting to know Wordrpress</h3>
<p>Things that I like about WordPress:</p>
<ul>
<li>It is a <em>much</em> better interface than Roller</li>
<li>&#8220;Pages&#8221;. I also use my blog as a place to keep an online version of my resume, and Pages allow me to exactly do that without having to use a &#8216;regular&#8217; blog post that I update over time.</li>
<li>WordPress auto<em>magic</em>ally figures out how to map the old Roller URLs to the new ones. I was getting quite a few links to some of my recent posts, and I really happy that the links floating around the web-o-sphere will still work. (E.g. &#8220;<a href="http://nelz.net/roller/nelz/entry/velocity_conference_recap" target="_blank">http://nelz.net/roller/nelz/entry/velocity_conference_recap</a>&#8221; ends up on the page &#8220;<a href="http://nelz.net/2009/06/25/velocity-conference-recap/" target="_self">http://nelz.net/2009/06/25/velocity-conference-recap/</a>&#8220;.)</li>
<li>Setting up my own domain was <em>absolutely painless</em>.</li>
</ul>
<p>Things that I haven&#8217;t yet decided on:</p>
<ul>
<li>You can&#8217;t use <a href="http://google.com/analytics" target="_blank">Google Analytics</a> <a href="http://faq.wordpress.com/2006/08/03/can-i-use-google-analytics/" target="_blank">on a WordPress.com blog</a>, but they do provide some of their own stats (and there are <a href="http://faq.wordpress.com/2006/07/28/can-i-have-a-statcounter-on-my-blog/" target="_blank">several other options</a> as well). I haven&#8217;t yet decided if it&#8217;s better to have the stats easily available in my blog admin, or if I&#8217;d have preferred to keep all my analytics stuff together in Google.</li>
<li>I haven&#8217;t yet purchase the $30/yr no ads upgrade. I haven&#8217;t seen any ads on my site as it is, so I&#8217;m not sure if I will actually need it?</li>
<li>No specific control over robots.txt. Whereas I want 99% of my blog public, I want to prohibit Google from picking up my resume, &#8216;cuz I kinda hate cold-calls from recruiters (but maybe I&#8217;m just being silly).</li>
</ul>
<h3>To Do</h3>
<ul>
<li>Some of the formatting (especially on the preformatted code sections) got lost in the migration&#8230; I&#8217;ll try to go back to the most used ones to reformat.</li>
<li>I gotta update that resume of mine.</li>
<li>Once I&#8217;ve been up on WordPress for a week or two, I&#8217;ll actually cancel my account with KGBInternet.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/316/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=316&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/06/28/the-new-nelz-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Velocity Conference Recap</title>
		<link>http://nelz.net/2009/06/25/velocity-conference-recap/</link>
		<comments>http://nelz.net/2009/06/25/velocity-conference-recap/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 00:05:33 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=5</guid>
		<description><![CDATA[These are the notes I collected (and found interesting) during my day at the Velocity Conference.
General Themes

 I had never heard of it before, but almost every single presenter referenced Ganglia as a de-facto monitoring system.
 It got presented a bunch of different ways, but basically all the big sites that presented stuff today all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=5&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>These are the notes I collected (and found interesting) during my day at the <a class="external" href="http://en.oreilly.com/velocity2009">Velocity Conference</a><img class="outlink" src="images/out.png" alt="" />.</p>
<h4>General Themes</h4>
<ul>
<li> I had never heard of it before, but almost every single presenter referenced <a class="external" href="http://ganglia.info/">Ganglia</a><img class="outlink" src="images/out.png" alt="" /> as a de-facto monitoring system.</li>
<li> It got presented a bunch of different ways, but basically all the big sites that presented stuff today all use on and off (or dial-able) configurations for features. This is not just for release-time of new features, but this can also help them manage their capacity if something is going wrong.</li>
<li> Many of these talks are available online: <a class="external" href="http://velocityconference.blip.tv/">http://velocityconference.blip.tv/</a><img class="outlink" src="images/out.png" alt="" /></li>
</ul>
<h4>&#8220;Image Weight Loss Clinic&#8221; at <a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/9375">Ignite Velocity</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> Stop using GIFs. Use PNGs.</li>
<li> Use data strippers/filters on JPGs. There is a lot of &#8216;extra&#8217; data included in JPG that aren&#8217;t necessary.</li>
<li> There are bunches of PNG optimizers out there. We should use at least one, if not all of them. (The suggestion was to build a serial pipeline for them.)</li>
<li> Using the <a class="external" href="http://en.oreilly.com/velocity2009">Velocity</a><img class="outlink" src="images/out.png" alt="" /> page as an example, the presenter was able to reduce the page weight by 30% following these suggestions.</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/8523">The User and Business Impact of Server Delays, Additional Bytes, and HTTP Chunking in Web Search</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> A lot of people loved the empirical data showing that slower sites cost you users, even for differences as small as 200ms. Brady Forrest wrote up a great digestion of this talk: &#8220;<a class="external" href="http://radar.oreilly.com/2009/06/bing-and-google-agree-slow-pag.html">Bing and Google Agree: Slow Pages Lose Users</a><img class="outlink" src="images/out.png" alt="" />&#8220;</li>
<li> The technique that I pulled outta the whole deal is to use HTTP 1.1 Chunked data. This enables a site to deliver the easy-to-compute stuff first (static header?), and the harder-to-compute stuff later.</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/7479">Fixing Twitter: Improving the Performance and Scalability of the World&#8217;s Most Popular Micro-blogging Site</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> Uses <a class="external" href="http://www.nttamerica.com/products/hosting/managed_hosting/index.php">NTT America</a><img class="outlink" src="images/out.png" alt="" /> managed hosting</li>
<li> Put Google Analytics on 503 (Fail Whale) and 500 (Robot) pages. Use Google Analytics for failure metrics.</li>
<li> Configuration Management: Do it ASAP, early &amp; often, &#8216;cuz you&#8217;re gonna need it eventually</li>
<li> Even their Ops stuff is checked into SVN, and they require code reviews on all their stuff, enforced by SVN pre-commit hooks and using <a class="external" href="http://www.review-board.org/">Review Board</a><img class="outlink" src="images/out.png" alt="" /></li>
<li> Send emails (or ANYTHING ELSE POSSIBLE) asynchronously</li>
<li> They recommend using &#8220;<a class="external" href="http://mtop.sourceforge.net/">mkill</a><img class="outlink" src="images/out.png" alt="" />&#8220;, which monitors for long-running queries and kills them, before the queries kill your site.</li>
<li> Instrument EVERYTHING for timing/performance.</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/7538">2 Years Later, Loving and Hating the Cloud</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> Presented by an engineer from <a class="external" href="http://www.picnik.com/">Picnik</a><img class="outlink" src="images/out.png" alt="" />. They run a hybrid (part-cloud, part managed) site.</li>
<li> Queues scale nicely in AWS. (I.e. if you are falling behind processing your queue, it is nigh trivial to just bring up another box to deal with the queue.</li>
<li> In the cloud, you can plan for your average usage, and scale up/down as needed easily. (You don&#8217;t need to keep the 6th box at 1% utilization up, do you?)</li>
<li> Buy hardware in batches, it gives you flexibility. No scrambling if you need a new box when there are extras around. Also waiting for good deals on price fluctuations on hardware.</li>
<li> If you don&#8217;t have a good deletion plan on S3, it can end up costing you $$</li>
<li> Being in the cloud enables you to ignore the S3 space problem, operationally at least, until it is too expensive (leaving you opportunity to work on other low-hanging fruit)</li>
<li> Whereas you can get some nice SLA&#8217;s when dealing within your own network, latency should be treated as a complete unknown in the cloud.</li>
<li> Be prepared for some difficult and juicy debugging when using the cloud.</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/10137">Page Speed</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> Twitter is a fantastic feedback mechanism, more so than Google Groups / wikis / forums (me: lower barrier for commentary?)</li>
<li> Browser Tool like Firebug</li>
<li> Someone (on Twitter?) made a very apt comment that it&#8217;s kinda sad to see Google (Page Speed) and Yahoo! (YSlow) shepherding similar projects, without trying to combine them.</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/7641">10+ Deploys Per Day: Dev and Ops Cooperation at Flickr</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> Websites pretty much always ship trunk. Having versions and point releases are vestigial remnants from old shrink-wrapped product lifecycles.</li>
<li> &#8220;Dark launches&#8221;, where you use the on/off/variable conditionals to exercise the new backend before it becomes mission/feature-critical.</li>
<li> Have all deployments notify IRC/IM/Twitter (to internal teams only) so EVERYONE knows what&#8217;s going on. Also, keep it around w/timestamps, and make it searchable</li>
<li> Give ALL developers (at least read-only) access to the prod machines. It helps them help you (Ops) better.</li>
<li> If there is an outage, EVERYONE stops working on new work. Even they aren&#8217;t directly responsible, JR engineers should be working to understand why something is broken. This is a good time for them to learn these diagnostic skills.</li>
<li> AUTOMATE your INFRASTRUCTURE!!</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/7375">Scaling for the Expected and Unexpected</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> &#8216;Planned Degradation&#8217; &#8211; switch off functionality, this can lighten the load on the back end</li>
<li> If you hit high (un)expected load it is usually on a single/few page(s), route to a static copy of that page, regenerate every X minutes.</li>
<li> The simple act of using a proxy server between your appServer and the outside world, even if it is not caching (like Squid/Varnish), is that the appServer is just delivering to a network neighbor, reducing its thread pool contention. This simple fact can have a great positive effect on your server performance.</li>
<li> Watch out for cache stampedes.</li>
<li> 3rd Party Resources &#8211; Load last, place at bottom of page, in an iframe. If sales doesn&#8217;t like it, tell them to go to hell. (Me: whoa.)</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/8324">Infrastructure in the Cloud Era</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> (Me: There were some great slides here, I hope they post them publicly.)</li>
<li> With provisioning becoming so quick (minutes), we need a quicker way to get these provisioned machines up and running quickly to realize those benefits.</li>
<li> The real benefit of the cloud is not $$, it is TIME (which you can turn into $$).</li>
<li> Definition &#8211; meatcloud: the humans that run your cloud presence. Noticeably difficult and slow to provision a new resource in your meatcloud.</li>
<li> A bit of operational philosophy &#8211; once you get your provisioning/setup all automated and quick, if a service is misbehaving have a bias towards killing it and recreating an instance, rather than trying to &#8216;recover&#8217; the problem box.</li>
<li> When you&#8217;ve got Command &amp; Control systems in place, they also need an on/off switch, because sometimes you *do* need to do some manual stuff.</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/7094">Ajax Performance</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> Modify your nodes before you attach them to the DOM. Modifying them after can trigger cascading re-parsing by the browser.</li>
<li> While most languages have Optimizers, JavaScript doesn&#8217;t. You should remove your own common subexpressions / loop invariants / etc.</li>
<li> Prefer &#8220;[array, of, strings].join()&#8221; over &#8220;array + of + strings&#8221; because the &#8220;+&#8221; operator builds lots of spurious interstitial objects</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/7637">Building OpenDNS Stats</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> This talk was about a High-Write environment, which isn&#8217;t as applicable to Gallery, but is applicable to our Metrics app</li>
<li> Don&#8217;t use auto-increment in a high-write environment, as it does a table_lock</li>
</ul>
<h4><a class="external" href="http://en.oreilly.com/velocity2009/public/schedule/detail/7681">Load Balancing Roundup</a><img class="outlink" src="images/out.png" alt="" /></h4>
<ul>
<li> This presenter is a committer for <a class="external" href="http://www.danga.com/perlbal/">Perlbal</a><img class="outlink" src="images/out.png" alt="" /> and was very up-front that this talk would be heavy on the praise for it.</li>
<li> Graphs that look at load every 30 seconds or more DON&#8217;T give you enough info about load on your server. Presenter suggests you watch &#8220;top -d 0.5&#8243; for a while to get an idea of your server&#8217;s load.</li>
<li> Presenter and audience agreed that <a class="external" href="http://haproxy.1wt.eu/">HAProxy</a><img class="outlink" src="images/out.png" alt="" /> doesn&#8217;t work with &#8220;keep-alive&#8221;</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=5&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/06/25/velocity-conference-recap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />
	</item>
		<item>
		<title>Ignite Velocity 2009</title>
		<link>http://nelz.net/2009/06/24/ignite-velocity-2009/</link>
		<comments>http://nelz.net/2009/06/24/ignite-velocity-2009/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 22:59:36 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=6</guid>
		<description><![CDATA[My good friend Jesse asked me to consider doing an Ignite talk at the Velocity conference. I hemmed and hawed for a while, but after being assured that I could do a talk on a non-technical subject, I agreed.
I submitted the talk &#34;Adopting SF Prankster Culture &#8211; One geek’s 10-year journey to find an outlet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=6&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>My good friend <a class="external" href="http://twitter.com/jesserobbins">Jesse</a><img class="outlink" src="images/out.png" alt="" /> asked me to consider doing an <a class="external" href="http://ignite.oreilly.com/">Ignite</a><img class="outlink" src="images/out.png" alt="" /> talk at the <a class="external" href="http://en.oreilly.com/velocity2009">Velocity conference</a><img class="outlink" src="images/out.png" alt="" />. I hemmed and hawed for a while, but after being assured that I could do a talk on a non-technical subject, I agreed.</p>
<p>I submitted the talk &quot;Adopting SF Prankster Culture &#8211; One geek’s 10-year journey to find an outlet for his social creativity.&quot; I have <a class="external" href="http://www.slideshare.net/nelz9999/adopting-sf-prankster-culture">posted the slides</a><img class="outlink" src="images/out.png" alt="" />, but unfortunately those slides don&#8217;t convey a lot of information without my running commentary. I would have posted a video, but there was some problem with the video recording at the event, so I don&#8217;t think I&#8217;ll have access .
</p>
<p>It was a really fun time. I did get a bit nervous ahead of time, but I just had to remind myself that I had just jumped out of a plane two days earlier. With that perspective, I was able to take the stage pretty confidently.
</p>
<p>I did have a bit of a false start though, because the slides that were on the monitors right when I started were for another presenter. I did my best to bullshit my way through a slide or two until the organizers figured out the glitch. I think this actually softened up the audience with a bit of humor, which got them ready for my talk which I gave one deck later.
</p>
<p>Doing the talk had some unexpected benefits too&#8230; For the whole next day that I was at the Velocity conference sessions, people would come up to me in the hallways and congratulate me for my presentation. I felt kinda like a geek rock star!
</p>
<p>So if you have a chance, I would totally recommend doing an Ignite talk. I&#8217;m glad I got to &#8216;cut my teeth&#8217; doing a talk on a social concept as practice in case I end up making a presentation on any of my other more technical projects.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=6&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/06/24/ignite-velocity-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />
	</item>
		<item>
		<title>The Life of a boolean</title>
		<link>http://nelz.net/2009/05/28/the-life-of-a-boolean/</link>
		<comments>http://nelz.net/2009/05/28/the-life-of-a-boolean/#comments</comments>
		<pubDate>Thu, 28 May 2009 23:59:46 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=7</guid>
		<description><![CDATA[Java booleans came up in conversation today, and I wanted to point out a couple of things that I&#8217;ve noticed.
Firstly, when talking about (capital &#8216;B&#8217;) Booleans, it is possible to achieve a trinary state object: TRUE/FALSE/null. However, it is not recommended. In fact, I&#8217;d go so far as to recommend breaking the fingers of anyone [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=7&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Java <tt>boolean</tt>s came up in conversation today, and I wanted to point out a couple of things that I&#8217;ve noticed.</p>
<p>Firstly, when talking about (capital &#8216;B&#8217;) <tt>Boolean</tt>s, it is <i>possible</i> to achieve a trinary state object: <tt>TRUE</tt>/<tt>FALSE</tt>/<tt>null</tt>. However, it is not recommended. In fact, I&#8217;d go so far as to recommend <i>breaking the fingers</i> of anyone who tried to perpetrate this horrible pattern in your code.
</p>
<p>Secondly, I&#8217;d like to discuss <tt>boolean</tt>s in your model objects. I agree that it frequently seems like a good idea to include one in your model object. However, I have seen so many occurrences where, over time, it becomes necessary to add a third (or fourth, or fifth) state. Even the RDBMSes are hedging their bets by storing <tt>boolean</tt> flags as <tt>TINYINT</tt>s. I would suggest that you seriously consider using an <tt>Enum</tt> to represent your two states as they exist at the beginning of their lifecycle&#8230; This way you won&#8217;t get stuck with a bunch of <tt>isXXX()</tt> accessors that all have to be refactored as soon as you add a third state.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=7&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/05/28/the-life-of-a-boolean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple-Spring-Memcached Reached RC1!!!</title>
		<link>http://nelz.net/2009/05/20/simple-spring-memcached-reached-rc1/</link>
		<comments>http://nelz.net/2009/05/20/simple-spring-memcached-reached-rc1/#comments</comments>
		<pubDate>Wed, 20 May 2009 20:28:31 +0000</pubDate>
		<dc:creator>nelz9999</dc:creator>
				<category><![CDATA[Simple-Spring-Memcached]]></category>

		<guid isPermaLink="false">http://nelznet.wordpress.com/?p=8</guid>
		<description><![CDATA[Over the past 8 months or so, I have been working on a side project at Project Hosting on Google Code, called Simple-Spring-Memcached.
The inspiration came to me while working with memcached and the spymemcached client for Widgetbox.

I have gotten the code to the point where I feel it is good enough for prime time, so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=8&subd=nelznet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Over the past 8 months or so, I have been working on a side project at <a class="external" href="http://code.google.com/projecthosting/">Project Hosting on Google Code</a><img class="outlink" src="images/out.png" alt="" />, called <a class="external" href="http://code.google.com/p/simple-spring-memcached">Simple-Spring-Memcached</a><img class="outlink" src="images/out.png" alt="" />.</p>
<p>The inspiration came to me while working with <a class="external" href="http://www.danga.com/memcached/">memcached</a><img class="outlink" src="images/out.png" alt="" /> and the <a class="external" href="http://code.google.com/p/spymemcached/">spymemcached client</a><img class="outlink" src="images/out.png" alt="" /> for <a class="external" href="http://www.widgetbox.com/">Widgetbox</a><img class="outlink" src="images/out.png" alt="" />.
</p>
<p>I have gotten the code to the point where I feel it is good enough for <i>prime time</i>, so tonight I cut a 1.0.0-RC1 branch.
</p>
<p>I&#8217;m not going to go into great detail here, as it would be a repeat of what I put up as the projects documentation. But please feel free to visit the <a class="external" href="http://code.google.com/p/simple-spring-memcached">project page</a><img class="outlink" src="images/out.png" alt="" /> and let me know what you think!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelznet.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelznet.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelznet.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelznet.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelznet.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelznet.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelznet.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelznet.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelznet.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelznet.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelz.net&blog=8173157&post=8&subd=nelznet&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://nelz.net/2009/05/20/simple-spring-memcached-reached-rc1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f992f247f63ba6ca6e0e0c3fa5726f72?s=96&#38;d=monsterid&#38;r=G" medium="image">
			<media:title type="html">nelz9999</media:title>
		</media:content>

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />

		<media:content url="images/out.png" medium="image" />
	</item>
	</channel>
</rss>