<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>garyhodgson.github.com</title>
 <link href="http://garyhodgson.github.com/atom.xml" rel="self"/>
 <link href="http://garyhodgson.github.com/"/>
 <updated>2013-10-17T04:44:33-07:00</updated>
 <id>http://garyhodgson.github.com/</id>
 <author>
   <name>Gary Hodgson</name>
   <email>contact@garyhodgson.com</email>
 </author>

 
 <entry>
   <title>Accessing git via git-cvsserver via eclipse</title>
   <link href="http://garyhodgson.github.com/2010/09/21/accessing-git-via-git-cvsserver-via-eclipse.html"/>
   <updated>2010-09-21T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2010/09/21/accessing-git-via-git-cvsserver-via-eclipse</id>
   <content type="html">&lt;h2&gt;Accessing git via git-cvsserver via eclipse&lt;br /&gt;
&lt;br/&gt;&lt;/h2&gt;
&lt;p&gt;Recently I wanted to set up git-cvsserver for some git repositories and a couple of points tripped me up, particularly when trying to access the repositories via eclipse.  It all seems obvious with 20:20 hindisight, but i&amp;#8217;m posting this in the hope it saves others some time.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;One thing I didn&amp;#8217;t immediately realise, is that there doesn&amp;#8217;t have to be a &amp;#8220;git-cvsserver&amp;#8221; process running on the server if you plan on accessing the repos over ssh via ext&lt;/li&gt;
	&lt;li&gt;The git repository has to be &lt;strong&gt;bare&lt;/strong&gt; and have the following entry in the &lt;strong&gt;config&lt;/strong&gt; file: &lt;br /&gt;
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;[gitcvs]
   enabled = 1&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;You should be able to checkout the git repo using something similar to the following cvs command:&lt;br /&gt;
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;cvs -d &quot;:ext;CVS_SERVER=git \
	cvsserver:username@server/path/to/repo.git&quot; co master&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;Checking out a repo via eclipse (as detailed in the &lt;a href=&quot;http://www.kernel.org/pub/software/scm/git/docs/git-cvsserver.html&quot;&gt;git-cvsserver manual&lt;/a&gt;) didn&amp;#8217;t work.  The response from the server always timed out.  After trying several permutations it transpires I needed to setup ssh key access between my client and the server. So the steps would be:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;In eclipse (SSH2 Section), or using &lt;strong&gt;ssh-keygen&lt;/strong&gt;, generate a ssh2 key pair&lt;br /&gt;
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;ssh-keygen -t rsa&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;/images/GitCvsServer/1.png&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/GitCvsServer/1.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Manually copy, or use &lt;strong&gt;ssh-copy-id&lt;/strong&gt;, to copy the &lt;em&gt;public&lt;/em&gt; key to server (in the ~/.ssh/authorized_keys file)&lt;br /&gt;
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;ssh-copy-id -i ~/.ssh/id_rsa.pub username@server&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;In eclipse (Ext Connection Method Section) set the &lt;strong&gt;CVS_SERVER&lt;/strong&gt; parameter to: &lt;code&gt;git cvssserver&lt;/code&gt;&lt;br /&gt;
&lt;a href=&quot;/images/GitCvsServer/2.png&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/GitCvsServer/2.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br&gt;
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To import a project:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Choose &lt;strong&gt;import project&lt;/strong&gt; &amp;#8594; &lt;strong&gt;Projects from &lt;span class=&quot;caps&quot;&gt;CVS&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
	&lt;li&gt;Create a new repository location&lt;/li&gt;
	&lt;li&gt;Enter the server details, select &lt;strong&gt;Connection type&lt;/strong&gt;: &lt;code&gt;ext&lt;/code&gt;&lt;br /&gt;
&lt;br&gt;
&lt;a href=&quot;/images/GitCvsServer/3.png&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/GitCvsServer/3.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br&gt;&lt;/li&gt;
	&lt;li&gt;Either enter the branch name directly (e.g. master) or choose from the list (this will connect to the server and so test whether the connection is valid)&lt;br /&gt;
&lt;br&gt;
&lt;a href=&quot;/images/GitCvsServer/4.png&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/GitCvsServer/4.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br&gt;&lt;/li&gt;
	&lt;li&gt;Choose to checkout the project using the New Project Wizard, or directly name the project&lt;br /&gt;
&lt;br&gt;
&lt;a href=&quot;/images/GitCvsServer/5.png&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/GitCvsServer/5.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br&gt;&lt;/li&gt;
	&lt;li&gt;Choose a workspace to save the project and click Finish&lt;br /&gt;
&lt;br&gt;
&lt;a href=&quot;/images/GitCvsServer/6.png&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/GitCvsServer/6.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br&gt;
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;</content>
 </entry>
 
 <entry>
   <title>CaptainCasa with Netbeans and Glassfish v3</title>
   <link href="http://garyhodgson.github.com/2010/03/15/captaincasa-with-netbeans-and-glassfish-v3.html"/>
   <updated>2010-03-15T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2010/03/15/captaincasa-with-netbeans-and-glassfish-v3</id>
   <content type="html">&lt;h2&gt;CaptainCasa with Netbeans and Glassfish v3&lt;br /&gt;
&lt;br/&gt;&lt;/h2&gt;
&lt;h3&gt;Initial Steps&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Start CaptainCasa Development Tools&lt;/li&gt;
	&lt;li&gt;Create Project in CaptainCasa
	&lt;ul&gt;
		&lt;li&gt;Recommended to create project in directory with no spaces, as later the unit test tool has a problem with paths that contain spaces.&lt;/li&gt;
		&lt;li&gt;For now leave the server details as default.&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/001_CreateProject.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/001_CreateProject.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Choose project in CaptainCasa Editor&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/002_ChooseProject.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/002_ChooseProject.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Create &lt;span class=&quot;caps&quot;&gt;JSP&lt;/span&gt; File
	&lt;ul&gt;
		&lt;li&gt;Note: When opening the test page an error will display because the server is not running.&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/003_CreateJSP.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/003_CreateJSP.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Start Netbeans&lt;/li&gt;
	&lt;li&gt;Create a new Project: Java Web Application with Existing Sources
	&lt;ul&gt;
		&lt;li&gt;Choose the location of the project created by CaptainCasa above&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/004_CreateNetbeansProject.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/004_CreateNetbeansProject.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;Choose Glassfish v3  server (you may have to install and configure this if you have not already done so)&lt;/li&gt;
	&lt;/ul&gt;&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/005_CreatNetbeansProject_2.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/005_CreatNetbeansProject_2.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;Netbeans should pick up the correct folder structure&lt;/li&gt;
	&lt;/ul&gt;&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/006_CreatNetbeansProject_3.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/006_CreatNetbeansProject_3.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/007_CreatNetbeansProject_4.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/007_CreatNetbeansProject_4.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Build and Deploy the app from within Netbeans.  This will create the Netbeans build directory structure and ensure the app can be deployed on Glassfish. The &lt;b&gt;build&lt;/b&gt; directory should be created, and the application successfully deployed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/008_BuildDeployApponGlassfish.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/008_BuildDeployApponGlassfish.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Return to CaptainCasa Editor, and open the Project Setup Configuration Options&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/009_ConfigureCaptainCasaProject.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/009_ConfigureCaptainCasaProject.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;Set &lt;code&gt;webhostport&lt;/code&gt; to the Glassfish host and port&lt;/li&gt;
		&lt;li&gt;Set &lt;code&gt;webcontentdeploydirectory&lt;/code&gt; to the &lt;code&gt;web&lt;/code&gt; directory within the Glassfish build directory&lt;/li&gt;
		&lt;li&gt;Set &lt;code&gt;reloadwebapp&lt;/code&gt; to &lt;b&gt;false&lt;/b&gt;&lt;/li&gt;
		&lt;li&gt;Set &lt;code&gt;copywebapp&lt;/code&gt; to &lt;b&gt;false&lt;/b&gt;&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;Important:&lt;/b&gt; Choose &amp;#8216;Refresh&amp;#8217; from the Project menu&lt;/li&gt;
	&lt;li&gt;Reload the &lt;span class=&quot;caps&quot;&gt;JSP&lt;/span&gt; file in the CaptainCasa Editor, and the jsp preview should display&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/010_ReloadProjectAndPreview.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/010_ReloadProjectAndPreview.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Keeping the build environment clean&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;The CaptainCasa Editor creates a temporary version of each &lt;span class=&quot;caps&quot;&gt;JSP&lt;/span&gt; for the preview (indicated by the filename containing &amp;#8216;&lt;span class=&quot;caps&quot;&gt;ZZZZZZ&lt;/span&gt;&amp;#8217; and a timestamp (e.g. testPage_ZZZZZ_1268477933315.jsp).  This should be removed from the build directory before packaging the app for distribution.&lt;/li&gt;
	&lt;li&gt;The CaptainCasa Editor expects to find the classes of ManagedBeans in the following location: &lt;code&gt;TestProject\webcontent\WEB-INF\classes&lt;/code&gt;, however Netbeans stores these in the following location: &lt;code&gt;TestProject\build\web\WEB-INF\classes&lt;/code&gt;.  Therefore we add a task to the Ant build script to copy these files across after each build command.&lt;/li&gt;
	&lt;li&gt;Sometimes the CaptainCasa Editor classes are out of sync with the state in Netbeans, so add an explicit command to copy across the classes.&lt;/li&gt;
	&lt;li&gt;Add to build.xml, after &lt;code&gt;&amp;lt;import file=&quot;nbproject/build-impl.xml&quot;/&amp;gt;&lt;/code&gt;:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;white&quot;&gt;
	
	
&amp;lt;!-- Removes temporary CaptainCasa JSPs and classes located in the webcontent
     directory before creating the war file for distribution --&amp;gt;
&amp;lt;target name=&quot;-pre-dist&quot;&amp;gt;
    &amp;lt;delete includeEmptyDirs=&quot;true&quot; quiet=&quot;true&quot;&amp;gt;
        &amp;lt;fileset dir=&quot;${build.web.dir}&quot; includes=&quot;*_ZZZZZ_*.jsp&quot;/&amp;gt;
    &amp;lt;/delete&amp;gt;
    &amp;lt;delete dir=&quot;${webinf.dir}/classes&quot;/&amp;gt;
&amp;lt;/target&amp;gt;

&amp;lt;!-- Removes temporary CaptainCasa classes --&amp;gt;
&amp;lt;target name=&quot;-post-clean&quot;&amp;gt;
    &amp;lt;delete dir=&quot;${webinf.dir}/classes&quot;/&amp;gt;
&amp;lt;/target&amp;gt;

&amp;lt;!-- Copies temporary classes for use by CaptainCasa Editor --&amp;gt;
&amp;lt;target name=&quot;-post-run-deploy&quot;&amp;gt;
    &amp;lt;copy todir=&quot;${webinf.dir}/classes&quot;&amp;gt;
        &amp;lt;fileset dir=&quot;${build.web.dir}/WEB-INF/classes&quot;/&amp;gt;
    &amp;lt;/copy&amp;gt;
&amp;lt;/target&amp;gt;

&amp;lt;!-- Explicitely copies temporary classes for use by CaptainCasa Editor --&amp;gt;
&amp;lt;target depends=&quot;-init-project&quot; name=&quot;sync-captain-casa&quot;&amp;gt;
    &amp;lt;copy todir=&quot;${webinf.dir}/classes&quot;&amp;gt;
        &amp;lt;fileset dir=&quot;${build.web.dir}/WEB-INF/classes&quot;/&amp;gt;
    &amp;lt;/copy&amp;gt;
&amp;lt;/target&amp;gt;


&lt;/pre&gt;
&lt;h3&gt;Opening the page in Glassfish&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Create some content in the &lt;span class=&quot;caps&quot;&gt;JSP&lt;/span&gt; using the Editor (I found I had to add at least one item to the &lt;span class=&quot;caps&quot;&gt;JSP&lt;/span&gt; in order for the page to display when deployed on Glassfish in later steps, otherwise it threw a Null Pointer Exception on startup).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/011_CreateContentInJSP.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/011_CreateContentInJSP.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;Save the project&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;Create the starter file
	&lt;ul&gt;
		&lt;li&gt;Under &amp;#8216;Tools&amp;#8217; menu of &lt;span class=&quot;caps&quot;&gt;JSP&lt;/span&gt; editor, select &amp;#8216;Create Applet &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt;/&lt;span class=&quot;caps&quot;&gt;JNLP&lt;/span&gt;&amp;#8217;&lt;/li&gt;
		&lt;li&gt;Give the name &lt;b&gt;index&lt;/b&gt; and make any choices as needed by the project.  Any name is allowed, but &lt;b&gt;index&lt;/b&gt; is usually the default for web servers.&lt;/li&gt;
		&lt;li&gt;Press &amp;#8216;Create Applet / &lt;span class=&quot;caps&quot;&gt;JNLP&lt;/span&gt;&amp;#8217; to create the file&lt;/li&gt;
	&lt;/ul&gt;&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/012_CreateStarterPage.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/012_CreateStarterPage.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;In Netbeans, clean and redeploy the application (it may also be required to restart the server)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/013_DeployApplicationToGlassfish.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/013_DeployApplicationToGlassfish.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Open the application in a browser&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/014_OpenAppInBrowser.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/014_OpenAppInBrowser.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Creating a ManagedBean&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Ensure the application is compiled and deployed via Netbeans.&lt;/li&gt;
	&lt;li&gt;In CaptainCasa Editor open the &lt;b&gt;Bean Browser&lt;/b&gt;.  A ManagedBean called &lt;code&gt;d&lt;/code&gt; of type &lt;b&gt;Dispatcher&lt;/b&gt; should be visible. (This helper class allows beans to be added without having to modify &lt;code&gt;face-config.xml&lt;/code&gt;, see the developer documentation).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/015_BeanBrowser.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/015_BeanBrowser.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Right-click on the &lt;code&gt;d&lt;/code&gt; bean and select &lt;b&gt;Create Bean&lt;/b&gt;&lt;/li&gt;
	&lt;li&gt;Give the bean a name, and press &lt;b&gt;Create Class&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/016_CreateManagedBean.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/016_CreateManagedBean.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The &lt;b&gt;Code Generator&lt;/b&gt; tool is opened and this can be used to create properties and methods.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/017_AddPropertiesAndMethods.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/017_AddPropertiesAndMethods.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Properties and methods can be dragged and dropped onto component attributes within the editor.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/018_DragAndDropPropertiesAndMethodsToComponents.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/018_DragAndDropPropertiesAndMethodsToComponents.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;b&gt;Note:&lt;/b&gt; Explicitly deploy the application in order to copy the class files to the webcontent directory for the CaptainCasa Editor.&lt;/li&gt;
	&lt;li&gt;When viewing the ManagedBean in Netbeans, the imports have to be added (Shift-Ctrl-O)&lt;/li&gt;
	&lt;li&gt;ManagedBeans can also be created directly in Netbeans directly&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/019_CreatingManagedBeanInNetbeans.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/019_CreatingManagedBeanInNetbeans.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;Again, remember to deploy the application to refresh the webcontent classes folder&lt;/li&gt;
	&lt;/ul&gt;&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/020_EnsureWebContentDirIsUpToDate.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/020_EnsureWebContentDirIsUpToDate.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;When created, press the refresh icon in the CaptainCasa Editor to show the bean.&lt;/li&gt;
	&lt;/ul&gt;&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/021_ManagedBeansInCaptainCasaEditor.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/021_ManagedBeansInCaptainCasaEditor.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Misc. Notes&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;Setting the logging level to write to console is useful, but makes the deploy and runtime process slow down considerably.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;/images/CCinNBHowTo/n001_LoggingToConsole.JPG&quot; target=&quot;_blank&quot;&gt;&lt;img width=&quot;75%&quot; src=&quot;/images/CCinNBHowTo/n001_LoggingToConsole.JPG&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Reference post for old Ubiquity Commands</title>
   <link href="http://garyhodgson.github.com/2010/03/14/reference-post-for-old-ubiquity-commands.html"/>
   <updated>2010-03-14T00:00:00-08:00</updated>
   <id>http://garyhodgson.github.com/2010/03/14/reference-post-for-old-ubiquity-commands</id>
   <content type="html">&lt;h2&gt;Reference post for old Ubiquity Commands&lt;br /&gt;
&lt;br/&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://garyhodgson.github.com/ubiquity-rtm-api&quot;&gt;Remember The Milk&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://gist.github.com/24258&quot;&gt;Remember The Milk &amp;#8211; Bookmarklet Version&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://gist.github.com/19959&quot;&gt;Amazon Local &amp;#8211; Blended Search&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://gist.github.com/24257&quot;&gt;Google Bookmarks&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://gist.github.com/24256&quot;&gt;Oracle Documentation&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://gist.github.com/17245&quot;&gt;TiddlyWiki&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://gist.github.com/20103&quot;&gt;Bit.ly&lt;/a&gt;&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Cessation of RTM Ubiquity development</title>
   <link href="http://garyhodgson.github.com/2009/10/28/cessation-of-rtm-ubiquity-development.html"/>
   <updated>2009-10-28T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2009/10/28/cessation-of-rtm-ubiquity-development</id>
   <content type="html">&lt;h2&gt;Cessation of &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity development&lt;br /&gt;
&lt;br/&gt;&lt;/h2&gt;
&lt;p&gt;It&amp;#8217;s become painfully obvious that development of Ubiquity &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; has slowed to a trickle.  This is largely because I have stopped using Firefox, and also to a lesser extent, &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt;.  I am also finding that other projects are taking up much more of my time.&lt;/p&gt;
&lt;p&gt;Consequently further development of Ubiquity &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; by myself is unlikely.  I shall keep the github project available for forking, and I will also endeavor to reply to emails should people have questions about the code and design.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>RTM Smart Add accessible through RTM Ubiquity</title>
   <link href="http://garyhodgson.github.com/2009/09/08/smart-add-accessible-through-rtm-ubiquity.html"/>
   <updated>2009-09-08T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2009/09/08/smart-add-accessible-through-rtm-ubiquity</id>
   <content type="html">&lt;h2&gt;&lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Smart Add accessible through &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity&lt;br /&gt;
&lt;br/&gt;&lt;/h2&gt;
&lt;h3&gt;Smart Add&lt;/h3&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; today &lt;a href=&quot;http://blog.rememberthemilk.com/2009/09/introducing-smart-add-a-smarter-way-to-add-your-tasks&quot;&gt;announced&lt;/a&gt; a new feature called Smart Add.&lt;/p&gt;
&lt;p&gt;This allows you to specify the following all on one line:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;list&lt;/li&gt;
	&lt;li&gt;due date&lt;/li&gt;
	&lt;li&gt;tags&lt;/li&gt;
	&lt;li&gt;location&lt;/li&gt;
	&lt;li&gt;priority&lt;/li&gt;
	&lt;li&gt;url&lt;/li&gt;
	&lt;li&gt;repeatability&lt;/li&gt;
	&lt;li&gt;time estimate&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This functionality is also available through the &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;, and &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity will happily process Smart Adds.&lt;/p&gt;
&lt;p&gt;For example, the following entry would create a task called &amp;#8220;do something&amp;#8221; in the Inbox for today, with priority 3, a tag, url and location:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;add task do something today !3 #Inbox #tag1 @home http://google.com&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;http://blog.rememberthemilk.com/2009/09/introducing-smart-add-a-smarter-way-to-add-your-tasks/&quot;&gt;&lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; blog post&lt;/a&gt; gives full details.&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity Improvements&lt;/h3&gt;
&lt;p&gt;This feature from the &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; team is ideally suited for the Ubiquity interface, and it means it is easier to add more task details.&lt;/p&gt;
&lt;p&gt;The existing code already handles Smart Add, but I plan on taking some time out from developing the main branch to add some additional features to complement Smart Add, such as hints on which symbols correspond to which attribute, and trying to mirror the autocomplete functionality that is available on the &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; site directly.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Version 0.4.1 of RTM Ubiquity released</title>
   <link href="http://garyhodgson.github.com/2009/08/31/version-0-4-1-of-rtm-ubiquity-released.html"/>
   <updated>2009-08-31T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2009/08/31/version-0-4-1-of-rtm-ubiquity-released</id>
   <content type="html">&lt;h2&gt;Version 0.4.1 of &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity released&lt;br /&gt;
&lt;br/&gt;&lt;/h2&gt;
&lt;h3&gt;About&lt;/h3&gt;
&lt;p&gt;This &lt;a href=&quot;http://garyhodgson.github.com/ubiquity-rtm-api/&quot;&gt;release&lt;/a&gt; fixes &lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/13&quot;&gt;issue #13&lt;/a&gt; whereby the browser will hang whilst calls are made to the &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; servers to collect smart list data.&lt;/p&gt;
&lt;h3&gt;Changes&lt;br /&gt;
&lt;br/&gt;&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/13&quot;&gt;Issue #13&lt;/a&gt; : Firefox hang when making synchronous calls to collect smart list data&lt;/li&gt;
	&lt;li&gt;Added names for each command without the hyphens.  The original names also remain for backward compatibility.  &lt;br /&gt;
&lt;br/&gt;&lt;/li&gt;
&lt;/ul&gt;</content>
 </entry>
 
 <entry>
   <title>Status Update</title>
   <link href="http://garyhodgson.github.com/2009/08/04/status-update.html"/>
   <updated>2009-08-04T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2009/08/04/status-update</id>
   <content type="html">&lt;h2&gt;Status Update&lt;/h2&gt;
&lt;p&gt;At the moment there are a few problems with version 0.4 of the &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity command.  The most urgent one being that the call to determine tasks belonging to smart lists hangs the browser completely until it is finished.  This is detailed in &lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues#issue/13&quot;&gt;Issue 13&lt;/a&gt;).  A solution is underway, but this has hit a further problem whereby the smart lists are not fully updated.  See &lt;a href=&quot;http://groups.google.com/group/rememberthemilk-api/browse_thread/thread/f727fb64d65414d2&quot;&gt;this &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; group post&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;As soon as I have a working version I will release it.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Version 0.4 of RTM Ubiquity released</title>
   <link href="http://garyhodgson.github.com/2009/07/07/version-0-4-rtm-ubiquity-released.html"/>
   <updated>2009-07-07T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2009/07/07/version-0-4-rtm-ubiquity-released</id>
   <content type="html">&lt;h2&gt;Version 0.4 of &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity released&lt;br /&gt;
&lt;br/&gt;&lt;/h2&gt;
&lt;h3&gt;About&lt;/h3&gt;
&lt;p&gt;This &lt;a href=&quot;http://garyhodgson.github.com/ubiquity-rtm-api/&quot;&gt;release&lt;/a&gt; consists of several fixes, plus a pre-emptive modification for the upcoming 0.5 release of Ubiquity.&lt;/p&gt;
&lt;h3&gt;Changes&lt;br /&gt;
&lt;br/&gt;&lt;/h3&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/3&quot;&gt;Issue #3&lt;/a&gt; : Can&amp;#8217;t Complete Tasks with &amp;#8220;Every &amp;#8230;&amp;#8221; Repetitions&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/4&quot;&gt;Issue #4&lt;/a&gt; : remove scrollbar from view tasks&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/9&quot;&gt;Issue #9&lt;/a&gt; : Tasks not added when default list is a smart list&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/11&quot;&gt;Issue #11&lt;/a&gt; : Upcoming Ubiquity 0.5 release will break all &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; commands&lt;/li&gt;
	&lt;li&gt;I have also refactored some of the code which I belive makes it more robust, and less prone to errors when initially loading tasks and task lists.  &lt;br /&gt;
&lt;br/&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Notes&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;http://www.azarask.in/blog/post/ubiquity-05-conondrum/&quot;&gt;upcoming release](https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.5_Release_Notes) of Ubiquity makes some pretty major changes and consequently it breaks compatibility with previous commands.  You can read more [here&lt;/a&gt;)  In order to handle this break without having to manage multiple releases of the commands (hey, it&amp;#8217;s supposed to be easy to author commands right? I have modified the commands to recognise if the new parser is in effect, and if so to use the new commands, otherwise to use the older version.&lt;/p&gt;
&lt;p&gt;For the most part the commands should remain the same, however there is one change in the new parser which directly affects the user: the name of some of the parameters will change with parser 2.  For example, &amp;#8220;rtm-view-tasks in list&amp;#8221; is now &amp;#8220;rtm-view-tasks from list&amp;#8221;.  This is pretty confusing, and frustrating, and I have raised the problem in the &lt;a href=&quot;http://groups.google.com/group/ubiquity-firefox/browse_thread/thread/d57bedce5b3261eb/76f88838ee216709#76f88838ee216709&quot;&gt;ubiquity group&lt;/a&gt;, but there seems nothing that can be done about at the moment.  And so all I can recommend is to take care with entering commands after the upgrade.&lt;/p&gt;
&lt;p&gt;Of course you can decide not to upgrade to the new version of Ubiquity, or upgrade and then turn off the new parser (under &amp;#8216;settings&amp;#8217; at &lt;about:ubiquity&gt;), until everything is running smoothly.  I have made previous versions of the &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity command available under the &lt;a href=&quot;http://garyhodgson.github.com/ubiquity-rtm-api/version.html?version=0.3.8&quot;&gt;&amp;#8216;releases&amp;#8217;](http://garyhodgson.github.com/ubiquity-rtm-api/#Releases) section of the documentation.  The last (pre 0.5) version is available [here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Just to make matters worse I will be on holiday until August (and will be nowhere near a computer), but as the Ubiquity release is imminent, and will definitely break the commands, I wanted to get this out beforehand.  I suggest any issues are either tracked via the &lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues&quot;&gt;github page&lt;/a&gt;, or via email.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Test Version of RTM Ubiquity 0.3.9 Available</title>
   <link href="http://garyhodgson.github.com/2009/07/01/test-version-rtm-ubiquity.html"/>
   <updated>2009-07-01T00:00:00-07:00</updated>
   <id>http://garyhodgson.github.com/2009/07/01/test-version-rtm-ubiquity</id>
   <content type="html">&lt;h2&gt;Test Version of &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity 0.3.9 Available&lt;/h2&gt;
&lt;p&gt;A new version of the upcoming &lt;span class=&quot;caps&quot;&gt;RTM&lt;/span&gt; Ubiquity command is available for beta testing: &lt;a href=&quot;http://gist.github.com/138132&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The issues addressed are listed &lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/closed#label/0.4&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The main reason for the release will be to mitigate the breakage that the forthcoming Ubiquity release (0.5) &lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/11&quot;&gt;will cause&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also worth noting, the documentation will be slightly out of date with this release. Fixing that is on the &lt;a href=&quot;http://github.com/garyhodgson/ubiquity-rtm-api/issues/#issue/12&quot;&gt;to-do list&lt;/a&gt;.&lt;/p&gt;</content>
 </entry>
 
 
</feed>