<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Nuclear Bunny Blog &#187; Software Development</title>
	<atom:link href="http://blog.nuclearbunny.org/category/technology/software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nuclearbunny.org</link>
	<description></description>
	<lastBuildDate>Tue, 27 Dec 2011 01:19:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Robustness in the Midst of Chaos</title>
		<link>http://blog.nuclearbunny.org/2011/04/29/robustness-in-the-midst-of-chaos/</link>
		<comments>http://blog.nuclearbunny.org/2011/04/29/robustness-in-the-midst-of-chaos/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 17:50:17 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[chaos]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[netflix]]></category>
		<category><![CDATA[scale]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=747</guid>
		<description><![CDATA[I&#8217;ve been catching up on technology news this week, after a few months of completely ignoring it. One of my favorites so far has been Netflix&#8217;s brief post on 5 Lessons We&#8217;ve Learned Using AWS. Within, they discuss the importance of testing your systems ability to survive failure in a infrastructure that is inherently chaotic [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been catching up on technology news this week, after a few months of completely ignoring it. One of my favorites so far has been Netflix&#8217;s brief post on <a href="http://techblog.netflix.com/2010/12/5-lessons-weve-learned-using-aws.html">5 Lessons We&#8217;ve Learned Using AWS</a>. Within, they discuss the importance of testing your systems ability to survive failure in a infrastructure that is inherently chaotic and prone to failure (a fundamental characteristic of massively scalable clouds).</p>
<p>One way Netflix has tested their ability to survive failure is to constantly <em class="em rangy_2">force</em> failure within their system. They built a system component named ChaosMonkey that randomly kills part of their architecture to ensure that the rest of it can survive and continuing offering service to customers. I love this approach. Not only does it show a lot of maturity within the Netflix engineering team about what systems failure really means, but also shows that they understand the importance of constantly ensuring that failures are expected and recoverable; I still see too many enterprises today that have yet to learn that important lesson. </p>
<p>ChaosMonkey reminds me greatly of what I used to do, albeit manually, when I was in charge of systems architecture at a company in the early a part of my career. We had a wonderfully horizontally scalable system architecture, back in an era when most enterprises would only use mainframes for systems of such size and importance. It was a critical part of our ability to provide high levels of service and performance at a relatively low cost. We did a good job of giving our operations team plenty of opportunity to test system failure and ensure that we could survive catastrophic failure, but I found it was never quite enough as the system grew more complex. </p>
<p>About the time we began implementing RAID drive subsystems for our database nodes, I began a systematic approach to destroy parts of our architecture on a regular basis. At first, it was a way to make sure the RAID subsystem would act appropriately in a degraded state &#8211; and they did, but we had plenty of software modifications to make to allow our systems to perform better in such a state. My experiments quickly became a little more aggressive&#8230; a few times a week, I would randomly pull drives out of their carriers, or kill processes on production nodes, or even cause an entire system crash. </p>
<p>Remarkably, it was rare when any of this activity would even be noticed. Our architecture was so good at surviving single points of failure that the operations team would often not even notice that anything at all had happened. When they did, it was usually a sign of a weak-point in our architecture that needed to be fixed. Occasionally, hardware actually failed from my little experiments, and I always felt bad about that, but the reality is that same hardware would have failed at a much more inconvenient time. </p>
<p>Alas, once our company was purchased by a publicly-traded company, development was no longer allowed access to the data center. For the most part, this was a very positive thing, but it also prevented people like myself from twiddling with the system to make sure it would work well. Our operations staff was good however, and many of the lessons development learned over the years were picked up by them. Today&#8217;s trend of dev-ops is a welcome return to some of that way of thinking, as it really does show that you need developer mindsets when running your operations.</p>
<p>I can distill my experiences doing dev-ops work in the past into some key points:</p>
<ol>
<li>Build your systems with the assumption that failure happens, and happens regularly. </li>
<li>You must test your ability to fail and recover, and do it constantly. </li>
<li>Hardware &#038; software solutions for vertical scaling are inherently inflexible and likely much more expensive in the long run. This was true in the 1980s, and even more true today now that more shops understand the nature of horizontal scalability. </li>
<li>Beware of the mindset that wants high uptime for individual systems. It&#8217;s cool for your server at home, but in an operations scenario that system represents one that might not startup properly if it does fail. Inability for a system to startup properly was, and remains, a hugely common problem. Reboot all of your systems regularly.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2011/04/29/robustness-in-the-midst-of-chaos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You Don&#8217;t Need Flash for Rich Graphs on a Web Page</title>
		<link>http://blog.nuclearbunny.org/2010/04/11/you-dont-need-flash-for-rich-graphs-on-a-web-page/</link>
		<comments>http://blog.nuclearbunny.org/2010/04/11/you-dont-need-flash-for-rich-graphs-on-a-web-page/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 21:35:33 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[graphs]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[ria]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=593</guid>
		<description><![CDATA[Adobe&#8217;s Flash has a lot of uses, but one of the most impressive to me has been the the creation of interactive graphs on a web page. One just has to visit Google Finance to see a great example of this in action; it&#8217;s fast, effective and fits seemlessly within the rest of the page. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.adobe.com/flashplatform/">Adobe&#8217;s Flash</a> has a lot of uses, but one of the most impressive to me has been the the creation of interactive graphs  on a web page. One just has to visit <a href="http://www.google.com/finance?q=NASDAQ:GOOG" target="_blank">Google Finance</a> to see a great example of this in action; it&#8217;s fast, effective and fits seemlessly within the rest of the page.</p>
<p>Many times, however, Flash isn&#8217;t an appropriate technology to use. If you&#8217;re an open-source product like Zenoss, Flash presents a licensing issue. If you&#8217;re targeting mobile platforms like the <a href="http://www.apple.com/iphone/">iPhone</a>, Flash isn&#8217;t available. And, sometimes, you may just not like Flash; it does have it&#8217;s own security problems and overhead, for example. What&#8217;s a web developer to do? Enter HTML5 to the rescue&#8230;</p>
<p><a href="http://en.wikipedia.org/wiki/Html5" target="_blank">HTML5</a> is not yet an approved standard, but it&#8217;s well on its way and surprisingly well-supported by the browser community already. One of the nice new features provided in HTML5 is the <a href="http://en.wikipedia.org/wiki/Canvas_element" target="_blank">canvas element</a> which allows for two-dimensional drawing functionality. Between this new feature and JavaScript, we should be able to create a rich graph display.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2010/04/11/you-dont-need-flash-for-rich-graphs-on-a-web-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Zenoss Development Environment &#8211; Part 3</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-3/</link>
		<comments>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-3/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 22:01:01 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=545</guid>
		<description><![CDATA[In Part 1 of this series we discussed getting an initial Zenoss environment checked out and running on a Mac OS X or Ubuntu system. In Part 2 we discussed how to configure Eclipse to use the Zenoss source. In this part, we&#8217;ll discuss how to handle day-to-day operations such as branch management and working [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="../2009/10/22/my-zenoss-development-environment-part-1/" target="_blank">Part 1</a> of this series we discussed getting an initial <a href="http://www.zenoss.com/" target="_blank">Zenoss</a> environment checked out and running on a <a href="http://www.apple.com/macosx/" target="_blank">Mac OS X </a>or <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> system. In <a href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/" target="_self">Part 2</a> we discussed how to configure <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> to use the Zenoss source. In this part, we&#8217;ll discuss how to handle day-to-day operations such as branch management and working with multiple versions.</p>
<h2>Branch-Based Development</h2>
<p>At Zenoss we do all development, including bug fixes and small maintenance tasks, in a private development branch within the subversion repository. This allows us to independently work-on changes, check-them into the repository for safe-keeping, and then perform code reviews with team members without having to share files or using <a href="http://pastebin.com/" target="_blank">pastebin</a> style tools (even though we do both at times).</p>
<ol>
<li>Create a branch within your user&#8217;s sandbox. In this example, I&#8217;ve decided to name the sandbox <code>new-widget</code> to identify what I&#8217;m working on. If I were fixing a defect, I&#8217;d use the defect number from the defect tracking system. Create the branch by copying the trunk folder to the sandbox branch. In Subversion this is a low-overhead operation and doesn&#8217;t actually copy files.<code><br />
svn copy http://dev.zenoss.org/svn/trunk http://dev.zenoss.org/svn/sandboxen/cgibbons/new-widget -m " * Copying trunk to sandbox branch."<br />
</code></li>
<li>Switch your working directory to use the new sandbox branch. You can do this either from the command-line or using Eclipse. From the command line, you&#8217;d do the following:<code><br />
cd $HOME/zenoss/core<br />
svn switch http://dev.zenoss.org/svn/sandboxen/cgibbons/new-widget<br />
</code>From within Eclipse, secondary-click on the <code>core</code> project and choose <em>Switch to Another Branch/Tag/Revision&#8230;</em> option from the Team menu. On the dialog that appears, enter in the sandbox URL. After switching, your Eclipse will show the new location next to the core project item.<br />
<a rel="attachment wp-att-549" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-3/picture-8/"><img class="aligncenter size-full wp-image-549" title="svn switch" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-8.png" alt="svn switch" width="670" height="491" /></a></li>
</ol>
<p>Once your development environment has been switched, you can make changes and commit to the Subversion repository as desired. If you&#8217;re unsure if you are in the right branch, you can always use the <code>svn info</code> command to see which directory is being used.</p>
<h2>Merging Branches</h2>
<p>Once you have completed changes in a branch and have had them reviewed by a peer, it is time to merge them into trunk (or another branch, if using a maintenance release). Merging can be tricky, but a consistent process can make it much easier to handle.</p>
<ol>
<li>Change your working directory to a checked-out and clean version of the branch you want to merge into. For example, I keep a <code>$HOME/zenoss/clean-trunk</code> directory that I never make changes to, except for merging.</li>
<li>Determine the base working revision of your working branch. There are a variety of ways to do this, but one of the best is to view the revision log graph within the Trac system directly. For example, for the branch discussed above we can browse to <a href="http://dev.zenoss.org/trac/log/sandboxen/cgibbons/new-widget" target="_blank">http://dev.zenoss.org/trac/log/sandboxen/cgibbons/new-widget/</a> and see that revision <strong>15513</strong> is the base.</li>
<li>Perform a dry-run on the merge to get a general idea of what the changes into the branch will be. You should see your expected changes, plus any conflicts from changes to the other branch while you have been working in the sandbox branch.<code><br />
svn merge --dry-run --revision <strong>15513</strong>:HEAD <strong>http://dev.zenoss.org/svn/sandboxen/cgibbons/new-widget</strong> .<br />
</code></li>
<li>If the merge results look satisfactory, rerun the command without the dry-run argument.</li>
<li>Look at the final merge results using <code>svn status</code> and <code>svn diff</code>, and once you&#8217;re ready, issue an <code>svn commit</code>.</li>
</ol>
<h2>Multiple Branches and Zenoss Configuration</h2>
<p>As you switch between branches you will often render your Zenoss configuration useless.  Resetting your database after each branch switch is usually a good practice, and being able to quickly recreate any test data you may need makes this process less painful.</p>
<p>After switching a branch, my process is usually the following:</p>
<ol>
<li>Shutdown zenoss and restart only zeo.<code><br />
zenoss stop<br />
zeoctl start</code></li>
<li>Run the zenwipe script from the inst source directory.<code><br />
$HOME/zenoss/inst/zenwipe.sh --no-prompt</code></li>
<li>Run <code>zenmigrate</code> to install any database changes available within the current branch.</li>
</ol>
<p>Depending upon the task at hand, I may install additional ZenPacks and add new devices through the command-line if those are needed. Helper scripts, such as <code>install-windows.sh</code> to install of the Windows ZenPacks and create several local test devices in the instance, are useful tools to have for your typical configurations.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Zenoss Development Environment &#8211; Part 2</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/</link>
		<comments>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 19:26:36 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=511</guid>
		<description><![CDATA[In Part 1 of this series we discussed getting an initial Zenoss environment checked out and running on a Mac OS X or Ubuntu system. In this part, we&#8217;ll discuss configuring Eclipse to use this environment. Mac OS X Prerequisites Install Eclipse Classic 3.5.x Mac Cocoa 32-bit. Ubuntu Prerequisites Install the Sun Java JDK. Why? [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/" target="_blank">Part 1</a> of this series we discussed getting an initial <a href="http://www.zenoss.com/" target="_blank">Zenoss</a> environment checked out and running on a <a href="http://www.apple.com/macosx/" target="_blank">Mac OS X </a>or <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> system. In this part, we&#8217;ll discuss configuring <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> to use this environment.</p>
<h2>Mac OS X Prerequisites</h2>
<ol>
<li>Install <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse Classic</a> 3.5.x Mac <a href="http://blog.zvikico.com/2009/06/eclipse-galileo-for-mac-cocoa-or-carbon.html" target="_blank">Cocoa 32-bit</a>.</li>
</ol>
<h2>Ubuntu Prerequisites</h2>
<ol>
<li>Install the Sun Java JDK. <strong>Why?</strong> Eclipse is a Java application and requires a full-fledged Java environment to run properly.<code><br />
sudo apt-get -y install sun-java6-jdk<br />
</code></li>
<li>Install <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse Classic</a> 3.5.x Linux 32-bit.</li>
</ol>
<h2>Eclipse Configuration</h2>
<ol>
<li>In part one, we created a Zenoss root project directory of <code>$HOME/zenoss</code> &#8211; use that directory, or the one you created, for the rest of these steps.</li>
<li>Launch Eclipse and configure it to use the Zenoss root project directory. <strong>Why?</strong> Eclipse needs a workspace directory to keep track of configuration settings for a group of related projects. By placing the workspace directory inside of the Zenoss root workspace, we can separate the requirements for a Zenoss workspace from other projects you may be using.<a rel="attachment wp-att-484" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/eclipse-workspace-2/"><img title="eclipse-workspace" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/eclipse-workspace1.png" alt="eclipse-workspace" width="677" height="324" /></a></li>
<li>Install the <a href="http://pydev.org/" target="_blank">PyDev</a> plug-in for Eclipse. <strong>Why?</strong> PyDev provides Python language support to Eclipse.
<ol>
<li>Go to the Help Menu and choose<em> Install New Software</em>.</li>
<li>In the Available Software dialog, choose <em>Add</em> and enter in <code>http://pydev.org/updates/</code> as the Location and close the dialog. Eclipse will return to the Available Software dialog.<a rel="attachment wp-att-498" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/picture-5/"><img title="PyDev" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-5.png" alt="PyDev" width="555" height="260" /></a></li>
<li>Software matching PyDev will appear in the dialog; pick the <em>PyDev</em> option but do not pick <em>PyDev Mylyn Integration</em>. Click <em>Next</em> and install the plug-in.</li>
</ol>
<p><a rel="attachment wp-att-500" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/picture-6-2/"><img title="PyDev" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-61.png" alt="PyDev" width="725" height="643" /></a></li>
<li>Install the <a href="http://subclipse.tigris.org/" target="_blank">Subclipse</a> plug-in. <strong>Why?</strong> Subclipse allows you to work with the Subversion version control system directly from within Eclipse.
<ol>
<li>In the Available Software dialog add the Subclipse plug-in update site: <code>
<p>http://subclipse.tigris.org/update_1.6.x</p>
<p></code></li>
<li>In the Available Software dialog, choose the <em>Subclipse</em>, <em>Subversion Client Adapter</em>, <em>Subversion JavaHL Native Library Adapter</em> and the <em>Subversion Revision Graph </em>items.<a rel="attachment wp-att-553" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/picture-5-2/"><img class="aligncenter size-full wp-image-553" title="Subclipse" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-51.png" alt="Subclipse" width="798" height="742" /></a></li>
</ol>
</li>
<li>Go to the Window menu, choose Open Perspective and then SVN Repository Exploring (you may have to choose Other&#8230; to see this option).</li>
<li>Choose the New Repository Location button in the SVN Repositories panel. Add the Zenoss SVN site at <code>http://dev.zenoss.org/svn</code></li>
<li>Open the SVN repository and select the <code>trunk</code> folder. Secondary-click the folder and choose the <em>Checkout&#8230; </em>option. Be sure to change the Depth option to be <em>Only this item</em> so that we don&#8217;t check out any of the sub-folders of trunk just yet (many of the folders within trunk are not needed for development, but we want to keep the directory structure). In the next dialog you will be asked to choose a Project Wizard. Open the Pydev tree item and select the <em>Pydev Project</em> option.<a rel="attachment wp-att-554" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/picture-6-3/"><img class="aligncenter size-full wp-image-554" title="svn checkout" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-62.png" alt="svn checkout" width="605" height="556" /></a></li>
<li>Create the project in the Pydev Project dialog:
<ol>
<li>Use <code>core</code> as the project name and use the default location. This should create a core project at <code>$HOME/zenoss/core</code>.</li>
<li>Make sure the <em>Python</em> project type is selected.</li>
<li>Select<em> 2.4</em> as the Python Grammar version.</li>
<li>Uncheck the <em>Create default &#8216;src&#8217; folder..</em>. option.</li>
<li>Click the Click here to <em>configure an interpreter not listed&#8230;</em> option in order to add the python interpreter built by the Zenoss installation scripts.
<ol>
<li>In the Preferences Dialog, choose the Interpreter &#8211; Python item underneath Pydev and select the <em>New&#8230;</em> button to add a new Python interpreter.</li>
<li>Browse to the <code>$ZENHOME/bin</code> directory and choose the <code>python2.4</code> executable from that directory.</li>
<li>Name the interpreter <code>python-2.4</code>, <code>zenoss-python</code> or some other variant.</li>
<p><a rel="attachment wp-att-529" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/picture-13/"><img class="aligncenter size-full wp-image-529" title="Picture 13" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-13.png" alt="Picture 13" width="632" height="303" /></a>After the new Python interpreter has been added, return to the Pydev Project dialog and choose that interpreter from the list and then click <em>Finish</em> to create the project.</ol>
</li>
<li>Update the <code>core</code> folder from the command-line SVN client so you can selectively pull the sub-folders of the core project and not all of them:<code><br />
cd $HOME/zenoss/core<br />
svn update Products<br />
</code></li>
<li>Move the Products directory the installation checked out and create a symbolic link to the one updated above. <strong>Why?</strong> This allows the Products source tree to be worked on from Eclipse and then also used by the Zenoss run-time.<code><br />
cd $ZENHOME<br />
mv Products Products.old<br />
ln -s $HOME/zenoss/core/Products Products</code></li>
<li>Return to Eclipse and choose the <em>Refresh</em> option from the File menu so that Eclipse notices the updated directory and builds necessary dependencies.</li>
<li>Secondary-click on the core project folder in Eclipse and choose <em>Properties</em>. Choose the <em>PyDev &#8211; PYTHONPATH</em> item and add source folders so PyDev can reference the project from within itself.
<ol>
<li>In the Source Folders tab choose the <em>Add source folder</em> button and pick the root <code>core</code> folder from the provided list.<a rel="attachment wp-att-532" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/picture-2/"><img class="aligncenter size-full wp-image-532" title="Picture 2" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-2.png" alt="Picture 2" width="860" height="617" /></a></li>
<li>In the External Libraries tab choose the <em>Add source folder</em> button and choose the <code>$ZENHOME/lib/python</code> directory.<a rel="attachment wp-att-533" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/picture-3/"><img class="aligncenter size-full wp-image-533" title="Picture 3" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-3.png" alt="Picture 3" width="860" height="617" /></a></li>
</ol>
</li>
</ol>
<p>At this point, your Eclipse project should allow you to navigate between dependencies within the Zenoss project. You can also simultaneously switch between using the Team feature within Eclipse to update and manage Subversion or do so using the command-line svn client.</p>
<h2>Next&#8230;</h2>
<p>In <a href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-3/" target="_blank">Part 3</a> of this series, we&#8217;ll discuss how to manage day-to-day activities such as creating sandbox branches for changes and dealing with multiple versions are done from within the same environment.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Zenoss Development Environment &#8211; Part 1</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/</link>
		<comments>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 17:05:46 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469</guid>
		<description><![CDATA[Over the past 18 months the developers at Zenoss have used a variety of development environments and methods to productively work with Zenoss, but there are a lot of best practices that have emerged out of this diversity. I develop Zenoss primarily on Mac OS X, with some work done on Ubuntu when necessary. I [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past 18 months the developers at <a href="http://www.zenoss.com/" target="_blank">Zenoss</a> have used a variety of development environments and methods to productively work with Zenoss, but there are a lot of best practices that have emerged out of this diversity.</p>
<p>I develop Zenoss primarily on <a href="http://www.apple.com/macosx/" target="_blank">Mac OS X</a>, with some work done on <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a> when necessary. I normally use <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> as my development editor, although I&#8217;ll often just use <a href="http://www.vim.org/" target="_blank">vim</a> when doing quick changes or bug fixes. In either case, careful setup of the Zenoss environment is key to being able to productively work with both the new development version and with the shipping versions that require maintenance.</p>
<p>The environment you get by default when you check out the source version of Zenoss from the source repository, or from a source tarball, is not necessarily setup in the best way to develop productively using tools like Eclipse.</p>
<p>The rest of this post will document how both my Mac OS X and Ubuntu environments are initially configured so that a working source Zenoss installation is realized.</p>
<h2>Mac OS X Prerequisites</h2>
<p>These prerequisite instructions assume Mac OS X 10.5 Leopard; 10.6 Snow Leopard will not be able to compile Zenoss&#8217;s third-party dependencies, so an additional work-around is required for that platform until Zenoss moves to <a href="http://www.python.org/download/releases/2.6/" target="_blank">Python 2.6</a>.</p>
<ol>
<li>Install <a href="http://developer.apple.com/technology/xcode.html" target="_blank">Xcode</a>. <strong>Why?</strong> Installs the GNU C/C++ compiler and other command-line development tools needed to build dependencies used by Zenoss.</li>
<li>Install <a href="http://www.open.collab.net/downloads/community/" target="_blank">Universal Subversion 1.6.x from CollabNet Community</a>.<strong>Why?</strong> Leopard only comes with Subversion 1.4.x. This version is not compatible with the Subclipse plug-in for Eclipse that will be used later. In order to be able to use both the command-line and Eclipse Subversion versions simultaneously on the same checked our source, the release of subversion should match. This installation will place the Subversion binaries in <code>/opt/subversion</code> and should automatically add it to your <code>PATH</code>.</li>
<li> Install <a href="http://dev.mysql.com/downloads/" target="_blank">MySQL Community Edition 5.1 32-bit</a>. <strong>Why?</strong> Zenoss needs MySQL for storage of event data.</li>
</ol>
<h2>Ubuntu Prerequisites</h2>
<p>These prerequisite instructions assume Ubuntu 9.04 32-bit Desktop Edition. Installing the server edition or one with different options may require additional prerequisites to be installed.</p>
<ol>
<li>Install Subversion. <strong>Why?</strong> Working with the Zenoss product in source form requires Subversion to access the source repositories (it is also possible to build directly from a source tarball, but this is not discussed here).<br />
<code>sudo apt-get -y install subversion<br />
</code></li>
<li>Install MySQL. <strong>Why?</strong> Zenoss needs MySQL for storage of event data.<br />
<code>sudo apt-get -y install mysql-client mysql-server libmysqlclient15-dev<br />
</code></li>
<li>Install additional development environment tools. <strong>Why?</strong> Zenoss third-party dependencies require several binaries to be built from source.<br />
<code>sudo apt-get -y install patch make vim gcc g++ autoconf</code></li>
<li>Install SNMP support. <strong>Why</strong>? Zenoss requires SNMP libraries for monitoring, and having a local SNMP agent is useful for testing.<code><br />
sudo apt-get -y install libsnmp-base snmp snmpd</code></li>
<li>Install Liberation TrueType fonts. <strong>Why?</strong> Graphs generated by RRDtool will not contain the correct glyphs without this font package.<code><br />
sudo apt-get -y install ttf-liberation</code></li>
</ol>
<h2>Environment Configuration</h2>
<p>Configuring Eclipse will require determining where you want to work with your Zenoss installation, and installing Eclipse plug-ins to provide the features required for Python and Subversion support.</p>
<ol>
<li>Create your Zenoss root directory:<code><br />
mkdir $HOME/zenoss<br />
</code></li>
<li>Create and run a <code>setup.sh</code> script that will configure needed environment variables for zenoss. This script can be started from your log in profile if desired.<code><br />
cd $HOME/zenoss<br />
cat &gt; zenoss-config.sh &lt;&lt;EOF<br />
ZENHOME=$HOME/zenoss/zenhome<br />
PYTHONPATH=$ZENHOME/lib/python<br />
PATH=\$ZENHOME/bin:\$PATH<br />
export ZENHOME PYTHONPATH PATH<br />
EOF<br />
chmod +x zenoss-config.sh<br />
. zenoss-config.sh<br />
mkdir $ZENHOME<br />
</code></li>
<li>Checkout the Zenoss source installation tree. <strong>Why?</strong> This tree is used to bootstrap the installation from the source repository and create a running Zenoss installation. We&#8217;ll need this before we modify it to fit the needs of our development environment.<code><br />
svn co http://dev.zenoss.org/svn/trunk/inst inst<br />
</code></li>
<li>Run the installation script to checkout, compile, and configure a zenoss environment. If you need to customize your MySQL configuration at all do not use the <code>--no-prompt</code> argument.<code><br />
cd inst<br />
./install.sh --no-prompt<br />
</code></li>
<li>Modify the <code>zensocket</code> file to be setuid root. <strong>Why?</strong> Some of the Zenoss daemons use a privileged port and making the file owned by root and accessible by the Zenoss user allows the daemons to be run as a non-priviledged user but still use the privileged port.<code><br />
sudo chown root:`id -g` $ZENHOME/bin/zensocket<br />
sudo chmod 04750 $ZENHOME/bin/zensocket<br />
</code></li>
</ol>
<p>At this point, you should have running zeo and zope processes and be able to log on to the local Zenoss instance. Your Zenoss root directory should look similar to the following:<br />
<a rel="attachment wp-att-491" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/picture-4/"><img class="aligncenter size-full wp-image-491" title="zenoss workspace" src="http://blog.nuclearbunny.org/wp-content/uploads/2009/10/Picture-4.png" alt="zenoss workspace" width="492" height="393" /></a></p>
<h2>Next&#8230;</h2>
<p>In <a title="Part 2" href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-2/" target="_self">Part 2</a> of this series, we&#8217;ll download and configure the Eclipse IDE.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>IcyBee needs a new maintainer</title>
		<link>http://blog.nuclearbunny.org/2009/09/03/icybee-needs-a-new-maintainer/</link>
		<comments>http://blog.nuclearbunny.org/2009/09/03/icybee-needs-a-new-maintainer/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 23:16:05 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=472</guid>
		<description><![CDATA[The IcyBee project is a client for the ICB chat network with a graphical user interface and written in the Java language for cross-platform portability. The current version of the software has several years of stability behind it and few user requests, but there is always more work to do. The project is currently hosted [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.nuclearbunny.org/icybee/" target="_blank">IcyBee project</a> is a client for the <a href="http://www.icb.net/" target="_blank">ICB chat network</a> with a graphical user interface and written in the Java language for cross-platform portability. The current version of the software has several years of stability behind it and few user requests, but there is always more work to do. The project is currently hosted on <a href="http://sourceforge.net/projects/icybee/" target="_blank">SourceForge</a> and all of the source is already available.</p>
<p>I&#8217;m looking for a maintainer that will take the reins of the project from me and give the project some much needed love as time and platforms march on. If interested, drop a comment on this post and we can discuss the possibility.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/09/03/icybee-needs-a-new-maintainer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to Apple Push Notification Services using Python &amp; Twisted</title>
		<link>http://blog.nuclearbunny.org/2009/05/11/connecting-to-apple-push-notification-services-using-python-twisted/</link>
		<comments>http://blog.nuclearbunny.org/2009/05/11/connecting-to-apple-push-notification-services-using-python-twisted/#comments</comments>
		<pubDate>Mon, 11 May 2009 15:34:01 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apns]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[twisted]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=384</guid>
		<description><![CDATA[One of the exciting features of the upcoming iPhone 3.0 operating system is the ability for a device to receive a notification message from your own application that is relayed by Apple&#8217;s network cloud. This feature allows the iPhone to channel all out-of-band communication into a narrow channel that is low impact on the device [...]]]></description>
			<content:encoded><![CDATA[<p>One of the exciting features of the upcoming <a href="http://www.apple.com/iphone/preview-iphone-os/" target="_blank">iPhone 3.0</a> operating system is the ability for a device to receive a notification message from your own application that is relayed by Apple&#8217;s network cloud. This feature allows the iPhone to channel all out-of-band communication into a narrow channel that is low impact on the device from a power, security and usability point-of-view.</p>
<p>As an application developer, you are responsible for two pieces to make this new notification service work: the actual application that runs on the iPhone OS, and a provider service that both communicates with the device and directly to Apple&#8217;s cloud.</p>
<p>In a typical flow, the application on an iPhone device issues an API call to request notifications for the identifier that the developer has assigned to the application. In response to that API call, Apple&#8217;s servers provide the device with a binary token value that uniquely identifies the device &amp; installation combination (for security reasons, the device token is reset if the device is reset, so it is not a one-to-one mapping to the actual hardware). Next, the application must connect to the developer&#8217;s provider servers and provide it with the device token it has received from apple. The provider can now use the device token when communicating back to the <a href="http://developer.apple.com/iphone/program/sdk/apns.html" target="_blank">Apple Push Notification Service (APNS)</a> cloud.</p>
<p>A provider implementation has very little work to do to inform APNS of a device update. Most of the effort in a provider will be in the actual framework of the application itself, and managing what information should be sent to a device. A common implementation will be for a provider to both communicate with the APNS server cloud and also to the application&#8217;s own network services and effectively become a protocol translator. Such a heavily network based application like that is a perfect match for the <a href="http://www.python.org/" target="_blank">Python</a> language and the <a href="http://twistedmatrix.com/" target="_blank">Twisted</a> framework.</p>
<p>A provider to APNS link is very simple: a secure-socket connection (SSL) is made to a APNS server and then simple messages are sent by the provider whenever a notification needs to be sent to the device. The APNS server does not respond or acknowledge the message. Every so often (Apple recommends once an hour), the provider server should connect to a web server that will dump a list of device tokens that are no longer valid (as in the device has uninstalled the application). This is the provider&#8217;s only feedback mechanism outside of communicating directly with a device.</p>
<p>The first step is to setup an SSL connection to the APNS servers. By following the directions on Apple&#8217;s developer portal, you can create a certificate and private key that are assigned to your application identifier. This certificate &amp; private key must then be used when connecting to the APNS servers as an authentication mechanism.</p>
<p>One caveat  - the Mac OS X Keychain Access application does not directly export certificates and private keys in Private Enhanced Mail (.pem)  format, which is what the <a href="http://www.openssl.org/" target="_blank">OpenSSL</a> implementation we use with Twisted will want, but luckily there&#8217;s an easy mechanism to convert if you export the files as Personal Information Exchange (.p12) format. The following two commands can be used to convert the .p12 files into .pem files using the built-in openssl command on Mac OS X or most Linux distributions:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl pkcs12 <span style="color: #660033;">-in</span> cred.p12 <span style="color: #660033;">-out</span> certkey.pem <span style="color: #660033;">-nodes</span> <span style="color: #660033;">-clcerts</span>
openssl pkcs12 <span style="color: #660033;">-in</span> pkey.p12 <span style="color: #660033;">-out</span> pkey.pem <span style="color: #660033;">-nodes</span> <span style="color: #660033;">-clcerts</span></pre></div></div>

<p>Now that we have our SSL files in the proper format, we can build our <code>ClientContextFactory</code> object that will be used by Twisted to initiate a connection to the APNS servers:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">class</span> APNSClientContextFactory<span style="color: black;">&#40;</span>ClientContextFactory<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> <span style="color: #0000cd;">__init__</span><span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
        <span style="color: #008000;">self</span>.<span style="color: black;">ctx</span> = SSL.<span style="color: black;">Context</span><span style="color: black;">&#40;</span>SSL.<span style="color: black;">SSLv3_METHOD</span><span style="color: black;">&#41;</span>
        <span style="color: #008000;">self</span>.<span style="color: black;">ctx</span>.<span style="color: black;">use_certificate_file</span><span style="color: black;">&#40;</span>APNS_SSL_CERTIFICATE_FILE<span style="color: black;">&#41;</span>
        <span style="color: #008000;">self</span>.<span style="color: black;">ctx</span>.<span style="color: black;">use_privatekey_file</span><span style="color: black;">&#40;</span>APNS_SSL_PRIVATE_KEY_FILE<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> getContext<span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #008000;">self</span>.<span style="color: black;">ctx</span></pre></div></div>

<p>We&#8217;ll also need a <code>ClientFactory</code> object that will be used to build the <code>Protocol</code> object whenever a connection is established to a server:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">class</span> APNSClientFactory<span style="color: black;">&#40;</span>ClientFactory<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> buildProtocol<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, addr<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Connected to APNS Server %s:%u&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>addr.<span style="color: black;">host</span>, addr.<span style="color: black;">port</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">return</span> APNSProtocol<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">def</span> clientConnectionLost<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, connector, reason<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Lost connection. Reason: %s&quot;</span> <span style="color: #66cc66;">%</span> reason
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">def</span> clientConnectionFailed<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, connector, reason<span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Connection failed. Reason: %s&quot;</span> <span style="color: #66cc66;">%</span> reason</pre></div></div>

<p>Next, we&#8217;ll need the actual <code>Protocol</code> object that will format messages and queue them to the server. For APNS, we don&#8217;t receive any responses so that half of the protocol goes unused.</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">class</span> APNSProtocol<span style="color: black;">&#40;</span>Protocol<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> sendMessage<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, deviceToken, payload<span style="color: black;">&#41;</span>:
        <span style="color: #808080; font-style: italic;"># notification messages are binary messages in network order</span>
        <span style="color: #808080; font-style: italic;"># using the following format:</span>
        <span style="color: #808080; font-style: italic;"># &amp;lt;1 byte command&amp;gt; &amp;lt;2 bytes length&amp;gt; &amp;lt;2 bytes length&amp;gt;</span>
&nbsp;
        fmt = <span style="color: #483d8b;">&quot;!cH32sH%ds&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>payload<span style="color: black;">&#41;</span>
        command = <span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\x</span>00'</span>
        msg = <span style="color: #dc143c;">struct</span>.<span style="color: black;">pack</span><span style="color: black;">&#40;</span>fmt, command, <span style="color: #ff4500;">32</span>, deviceToken,
                          <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>payload<span style="color: black;">&#41;</span>, payload<span style="color: black;">&#41;</span>
        <span style="color: #008000;">self</span>.<span style="color: black;">transport</span>.<span style="color: black;">write</span><span style="color: black;">&#40;</span>msg<span style="color: black;">&#41;</span></pre></div></div>

<p>And finally, we&#8217;ll need the main code to kick everything off for the test:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">'__main__'</span>:
    reactor.<span style="color: black;">connectSSL</span><span style="color: black;">&#40;</span>APNS_SERVER_HOSTNAME,
                       APNS_SERVER_PORT,
                       APNSClientFactory<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>,
                       APNSClientContextFactory<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    reactor.<span style="color: black;">run</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>From here, the Python and Twisted combination can be easily extended to handle multiple protocols and convert between them as needed. For example, one of the commonly expected use cases of the new push feature will be instant messaging (IM) clients that will need to provide a proxy between the device and the IM servers and the APNS servers in order to notify a device of outstanding messages.</p>
<p>The full Python script containing the above excerpts can be downloaded here:</p>
<p><a rel="attachment wp-att-455" href="http://blog.nuclearbunny.org/2009/05/11/connecting-to-apple-push-notification-services-using-python-twisted/test-apns-blog/">test-apns-blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/05/11/connecting-to-apple-push-notification-services-using-python-twisted/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>One Year at Zenoss</title>
		<link>http://blog.nuclearbunny.org/2009/04/08/one-year-at-zenoss/</link>
		<comments>http://blog.nuclearbunny.org/2009/04/08/one-year-at-zenoss/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 02:13:31 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SCRUM]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=331</guid>
		<description><![CDATA[Yesterday marked my one-year anniversary at Zenoss. When I decided to take the job at Zenoss I knew it would be a challenging position, and time has proven this assumption correct. The new (to me, anyway) technology, the remote work environment and the realities of a startup company with limited resources have all added their [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday marked my one-year anniversary at <a title="Zenoss, Inc. corporate web site" href="http://www.zenoss.com/" target="_blank">Zenoss</a>. When I decided to take the job at Zenoss I knew it would be a challenging position, and time has proven this assumption correct. The new (to me, anyway) technology, the remote work environment and the realities of a startup company with limited resources have all added their own challenges to the job.</p>
<p>I found the Zenoss product itself to be more mature than I had expected. While it still has plenty of rough edges, especially in the user interface, it is a rather feature-rich application with a very large user base in both the free community and paid enterprise versions. There is a tremendous amount of work left to do on the application, but with each version we see a significant step forward and an expanded user interest because of the changes.</p>
<p>When I came to Zenoss, my new co-workers and I brought with us a culture of using agile development methodologies and processes to the company. We expected, and were asked by company management, to implement those processes at Zenoss. Over the past year, we have seen the right things happen from this shift in engineering culture:</p>
<ul>
<li>development time has become more predictable</li>
<li>planning and priority selection take a much more important role than ever before, and not just in engineering (in fact, most importantly not in engineering, but at the executive level)</li>
<li>quality assurance is now a fundamental part of the engineering process, not a luxury for later</li>
<li>code and design quality has improved dramatically as the engineering team begins to understand how much control they really do have over the process</li>
</ul>
<p>There still remain many challenges, but these are the same ones I have seen with all teams that struggle with the discipline needed for agile methodologies. Effectively breaking down large development tasks into two-week iterations remains a hurdle; I suspect at a fundamental level many of the developers do not fully believe this is possible, which is a long, long discussion. There was also a reluctance, until recently, to fully engage with teammates on performing effective code and design reviews. These will both improve over time as the team matures.</p>
<p>When I first started at Zenoss there were 5 developers in Annapolis, 2 developers in Austin and me , usually working remote in Houston. Since then, the team dynamics have changed so that I and one other developer are remote most of the time, 3 developers are full-time in Austin and 1 in Annapolis. This team dynamic change has made the infrastructure needed to support remote development much more important, but at the same time it has made the remote developers somewhat more isolated since a bit more now happens only in one location. Since I travel to Austin frequently I can avoid the worst of this unavoidable trend, but it will likely always remain a challenge as long as we have remote employees.</p>
<p>On a personal level, working remotely full-time for this long has been much more difficult than I expected. I last did this much remote work in the mid-90s, and it was difficult to do then, as well. On the surface, I spend all of my work hours focused on some problem on the computer, but in reality much of my job is very social and without face time it starts to wear on me very quickly. Frequent visits to Austin help tremendously, but in reality this will likely always be an issue until I relocate.</p>
<p>I&#8217;ve encountered almost all of the traditional problems people have while working at home, but especially keeping focus and balancing the time spent between work and home life. Focus is purely a self-discipline issue, but it is remarkable how much of this is provided by the routine of commuting to an office. Maintaining a good work-life balance is also tremendously hard when working at home, unless you dedicate a specific place in the house for work. It took a few months to really learn this lesson but eventually I bought a second desk and made myself an office separate from my normal home office. Before then, I found it way too easy to bring my laptop into the living room and I&#8217;d continue to check e-mail and work on problems throughout the evening. Sometimes, I still do, but not at least it is not a mindless occurrence.</p>
<p>Zenoss is a very small company, and naturally we have very limited resources. Of course, today&#8217;s economic environment makes this true for almost every single company. But more specifically, I find ourselves working around what effectively is a lack of resources in our IT department. I often have to build my own virtual machines at home, or buy little widgets to help productivity because I am remote. At some level, I don&#8217;t mind this, since it&#8217;s nice being able to actually work somewhere you <em>can</em> do this, rather than being told you can&#8217;t.</p>
<p>After a year, I&#8217;m still not a huge fan of the <a href="http://www.python.org/" target="_blank">Python</a> programming language, but I&#8217;ve come to accept it and I can be productive with it. Working with it feels a whole lot like I stepped back in time 15 years, and saying that is a great way to start an argument, so I&#8217;ll just leave it at that.</p>
<p>One great surprise from the past year is that I became the guru for Zenoss&#8217;s Windows monitoring technology. We have a custom implementation of <a href="http://en.wikipedia.org/wiki/MSRPC" target="_blank">MS-RPC</a> that is based upon the <a href="http://wiki.samba.org/index.php/Samba4" target="_blank">Samba 4</a> source tree. On top of this layer, we have provided our own implementations of the <a href="http://msdn.microsoft.com/en-us/library/ms809340.aspx" target="_blank">DCOM</a>, <a href="http://msdn.microsoft.com/en-us/library/ms809340.aspx" target="_blank">WMI</a>, and <a href="http://msdn.microsoft.com/en-us/library/ms809340.aspx" target="_blank">Windows registry</a> interfaces so we can call these services directly on any Windows device. This is a great feature, as it allows us to communicate directly to Windows devices from our Linux based product, without requiring a Windows device to be running our software just to provide Windows-based connectivity, unlike some other systems management products.</p>
<p>Over the next few months I will be taking on more and more of the implementation of the new Zenoss user interface, which is a great project that should dramatically improve the user acceptance of quality of the application. It also gives me more time to work on user interfaces, which is always an area of software development I enjoy but rarely get a chance to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/04/08/one-year-at-zenoss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Secure Windows Monitoring with Zenoss</title>
		<link>http://blog.nuclearbunny.org/2009/04/07/secure-windows-monitoring-with-zenoss/</link>
		<comments>http://blog.nuclearbunny.org/2009/04/07/secure-windows-monitoring-with-zenoss/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 23:50:06 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[DCOM]]></category>
		<category><![CDATA[msrpc]]></category>
		<category><![CDATA[RPC]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=334</guid>
		<description><![CDATA[Starting with version 2.3.x, Zenoss can monitor computers running Microsoft Windows with a variety of data collection protocols: SNMP, WMI over DCOM/MS-RPC and Perfmon over MS-RPC. In Zenoss Core, the status of Windows services and the Windows Event Log are monitored using Windows Management Instrumentation (WMI) queries over the DCOM/MS-RPC protocol. In the implementation of [...]]]></description>
			<content:encoded><![CDATA[<p>Starting with version 2.3.x, <a title="Zenoss, Inc. corporate web site" href="http://www.zenoss.com/" target="_blank">Zenoss</a> can monitor computers running Microsoft Windows with a variety of data collection protocols: SNMP, WMI over DCOM/MS-RPC and Perfmon over MS-RPC.</p>
<p>In Zenoss Core, the status of Windows services and the Windows Event Log are monitored using <a title="Windows Management Instrumentation" href="http://msdn.microsoft.com/en-us/library/aa394582.aspx">Windows Management Instrumentation (WMI)</a> queries over the DCOM/MS-RPC protocol. In the implementation of MS-RPC that Zenoss is based upon, authentication credentials are sent to the remote server using the <a title="Microsoft NTLM" href="http://msdn.microsoft.com/en-us/library/aa378749.aspx" target="_blank">Windows Challenge / Response (NTLM) mechanism</a>. Using this authentication mechanism, the actual password is never sent across the network, but rather the server produces a &#8220;challenge&#8221; value that the client must calculate using the password rather than sending it across the network.</p>
<p>NTLM authentication is the same mechanism that Windows devices themselves use for client/server communications, such as file sharing and remote administration.</p>
<p>Starting with version 2.3.x, Zenoss Enterprise gathers Perfmon data using the remote Windows registry API over the MS-RPC protocol. This technique is both more efficient and secure than the previous one. The same authentication mechanism used by Zenoss&#8217;s WMI library is used here, providing the same level of security.</p>
<p>Prior to version 2.3.x, Zenoss Enterprise used a different mechanism to collect Perfmon data from Windows devices. This mechanism used a utility known as <a title="winexe homepage :)" href="http://eol.ovh.org/winexe/" target="_blank">winexe</a> to remotely execute commands on the Windows device (in this case, the typeperf.exe Windows utility). Unfortunately, the winexe utility sends the username and password used for authentication across the network in clear text, providing a less than ideal configuration for security.</p>
<p>Zenoss users monitoring Windows devices should be running version 2.3.3 or newer for the best possible security when communicating with those devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/04/07/secure-windows-monitoring-with-zenoss/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>new MacBook setup</title>
		<link>http://blog.nuclearbunny.org/2009/03/17/new-macbook-setup/</link>
		<comments>http://blog.nuclearbunny.org/2009/03/17/new-macbook-setup/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 03:07:37 +0000</pubDate>
		<dc:creator>chadwick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Zenoss]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=284</guid>
		<description><![CDATA[I bought another Mac today, a nice 2.4 GHz 13-inch unibody MacBook. I had planned on buying a 17-inch unibody MacBook Pro, and very nearly did, but luckily sanity won out and I remembered how much of a hassle it was to carry around those giant things, even if they are only &#8220;only&#8221; 6.6 lbs. [...]]]></description>
			<content:encoded><![CDATA[<p>I bought another Mac today, a nice 2.4 GHz 13-inch unibody MacBook. I had planned on buying a 17-inch unibody MacBook Pro, and very nearly did, but luckily sanity won out and I remembered how much of a hassle it was to carry around those giant things, even if they are only &#8220;only&#8221; 6.6 lbs.</p>
<p>I had a 2.0 GHz 13-inch MacBook a couple of years ago when the first Intel-based models came out and I do remember the screen resolution, while not abundant, was more than adequate for browsing, e-mail and even development. And, the unibody model is only 4.5 lbs, so 2 lbs lighter will be a lot nicer to carry around. I also sprung for a spare battery to try and help get a little closer to the awesome battery life of the 17-inch model.</p>
<p>Of course, the obvious question is why buy another laptop when I&#8217;ve already got a nice 15-inch MacBook Pro that work provides? The answer there is easy: I don&#8217;t want to do anything personal, even development, on the work provided machine.</p>
<p>Now, on to the actual system setup, documented here for posterity.</p>
<ol>
<li>After account creation, run software update and get all the latest updates installed first.</li>
<li>Create an applecare account with an easy, but secure, password. This way the Apple store geeks can have that account should there need to be any repair work done.</li>
<li>Change the battery lifetime display with Show -&gt; <strong>Time</strong>.</li>
<li>Secure the screensaver by using System Preferences -&gt; Security -&gt; General and checking the <strong>Require password to wake this computer from sleep or screen saver</strong> option.</li>
<li>Disable the Front Row remote by using System Preferences -&gt; Security -&gt; General and checking the <strong>Disable remote control infrared receiver</strong> option.</li>
<li>Disable the Front Row keyboard shortcut by using System Preferences -&gt; Keyboard &amp; Mouse -&gt; Keyboard Shortcuts and disabling the <strong>Hide and show Front Row shortcut</strong>.</li>
<li>Enable full keyboard shortcuts by checking the <strong>All controls</strong> option in the bottom of the same Keyboard Shortcuts screen.</li>
<li>Enable the <strong>Use secure virtual memory</strong> option in System Preferences -&gt; Security -&gt; General.</li>
<li>Encrypt my home directory with System Preferences -&gt; Security -&gt; FileVault.</li>
<li>Install Growl 1.1.4 from <a title="Growl" href="http://growl.info/" target="_blank">http://growl.info/</a>
<ol>
<li>Install the GrowlSafari extra package.</li>
<li>Install the HardwareGrowler extra package.
<ol>
<li>Drag HardwareGrowler.app to /Applications</li>
<li>Disable the HardwareGrowler dock icon by following the instructions at <a title="HardwareGrowler documentation" href="http://growl.info/documentation/hardwaregrowler.php" target="_blank">http://growl.info/documentation/hardwaregrowler.php</a></li>
<li>Add HardwareGrowler to the start at login list by using System Preferences -&gt; Accounts -&gt; Login Items and dragging HardwareGrowler to the list.</li>
</ol>
</li>
<li>Enable Growl starting at login with System Preferences -&gt; Growl and enabling the <strong>Start Growl at login</strong> option.</li>
</ol>
</li>
<li>Remove unused printer drivers by deleting the appropriate folders in /Library/Printers folder (everything but Brother, hp and PPDs in my case).</li>
<li>Install the XcodeTools package from the Installation DVD&#8217;s Optional Installs directory.</li>
<li>Drag Xcode to the dock by going to /Developer/Applications and dragging the icon to the dock.</li>
<li>Add Activity Monitor to the dock by going to /Applications/Utilities and dragging the icon to the dock. Seondary-click on the icon and enable <strong>Open at Login</strong>.</li>
<li>Add Terminal to the dock by going to /Applications/Utilities and dragging the icon to the dock.
<ol>
<li>Change the default Terminal settings by starting Terminal.app, selecting Preferences (Cmd-,) and then changing the &#8220;new window with settings&#8221; to Pro.</li>
<li>Select the Pro scheme in the Settings tab and click default.</li>
<li>Choose the Window tab with the Pro scheme selected, click the Background color chooser and set the opacity level to 90%.</li>
<li>Change the window size to 80 columns and 36 rows.</li>
</ol>
</li>
<li>Customize vim by creating ~/.vimrc with the following content:<br />
<code><br />
:color elflord<br />
:syntax enable<br />
:set shiftwidth=4<br />
:set expandtab<br />
:set autoindent<br />
:set cindent<br />
:set enc=utf-8<br />
:set nu<br />
:set showmatch<br />
:set laststatus=2<br />
:set nocompatible<br />
:set gfn=Monaco:h15:a<br />
</code></li>
<li>Enable color highlighting for ls by adding the following lines to /etc/bashrc:<br />
<code><br />
alias ls='ls -CFG'<br />
alias dir='ls -FGlas'<br />
</code></li>
<li>Install the Safari 4 beta from <a title="Apple Safari download" href="http://www.apple.com/safari/download" target="_blank">http://www.apple.com/safari/download</a></li>
<li>Install Firefox 3 from <a title="Firefox download" href="http://getfirefox.com/" target="_blank">http://getfirefox.com/</a> and drag it to the dock.</li>
<li>Install iStat pro from <a title="iStat pro" href="http://www.islayer.com/apps/istatpro/" target="_blank">http://www.islayer.com/apps/istatpro/</a></li>
<li>Install MySQL 5.1 x86 community edition from <a title="MySQL 5.1 community downloads" href="http://dev.mysql.com/downloads/mysql/5.1.html" target="_blank">http://dev.mysql.com/downloads/mysql/5.1.html</a> be sure to install the StartupItem package as well as the preference pane.</li>
<li>Add MySQL to the shell profile by appending the following to /etc/bashrc:<br />
<code><br />
export PATH=/usr/local/mysql/bin:$PATH</code></li>
<li>Install EverNote from <a title="EverNote" href="http://www.evernote.com/">http://www.evernote.com/</a></li>
<li>Install DropBox from <a title="Get DropBox!" href="http://www.getdropbox.com/" target="_blank">http://www.getdropbox.com/</a></li>
<li>Install the Windows Media Components for QuickTime from <a title="Windows Media Components for QuickTime" href="http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx" target="_blank">http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx</a></li>
<li>Install Twitterrific from <a title="Twitterrific" href="http://iconfactory.com/software/twitterrific" target="_blank">http://iconfactory.com/software/twitterrific</a></li>
<li>Disable automatic synchronization for iPhones and iPods since this won&#8217;t be the primary iTunes machine by going to iTunes Preferences and enabling <strong>Disable automatic syncing for iPhones and iPods</strong> on the Devices tab.</li>
<li>Install the iPhone SDK from <a title="Apple Developer Portal" href="http://developer.apple.com/" target="_blank">http://developer.apple.com/</a></li>
<li>Party! Or maybe just nap.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.nuclearbunny.org/2009/03/17/new-macbook-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

