<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1230215522075772904</id><updated>2011-07-28T14:42:58.794+02:00</updated><category term='jcr'/><category term='technote hst component xpath'/><category term='hippo'/><category term='hippoonrails'/><category term='rubyonrails'/><category term='rails'/><category term='dav import export technote'/><title type='text'>Shane Smith</title><subtitle type='html'>Notes from the trenches</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shane-hippo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shane-hippo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>shane smith</name><uri>http://www.blogger.com/profile/08045433542488317341</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1230215522075772904.post-6405429447259042975</id><published>2009-08-20T10:48:00.001+02:00</published><updated>2009-08-20T10:51:17.510+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='technote hst component xpath'/><title type='text'>Looking for parameters settings on a hst component</title><content type='html'>Finding all components with a certain parameter setting,&lt;br /&gt;You can use in cms/repository:&lt;br /&gt;//*[@hst:parametervalues='value']&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230215522075772904-6405429447259042975?l=shane-hippo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shane-hippo.blogspot.com/feeds/6405429447259042975/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://shane-hippo.blogspot.com/2009/08/looking-for-parameters-settings-on-hst.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/6405429447259042975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/6405429447259042975'/><link rel='alternate' type='text/html' href='http://shane-hippo.blogspot.com/2009/08/looking-for-parameters-settings-on-hst.html' title='Looking for parameters settings on a hst component'/><author><name>shane smith</name><uri>http://www.blogger.com/profile/08045433542488317341</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230215522075772904.post-1334337348443254853</id><published>2009-08-19T15:59:00.001+02:00</published><updated>2009-08-19T16:01:50.653+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dav import export technote'/><title type='text'>Removing meta files</title><content type='html'>Note:&lt;br /&gt;Removing meta.xml files for a gallery import from a dav export:&lt;br /&gt;&lt;code&gt;find . -iname '*.meta.xml' -exec rm '{}' \;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230215522075772904-1334337348443254853?l=shane-hippo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shane-hippo.blogspot.com/feeds/1334337348443254853/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://shane-hippo.blogspot.com/2009/08/removing-meta-files.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/1334337348443254853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/1334337348443254853'/><link rel='alternate' type='text/html' href='http://shane-hippo.blogspot.com/2009/08/removing-meta-files.html' title='Removing meta files'/><author><name>shane smith</name><uri>http://www.blogger.com/profile/08045433542488317341</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230215522075772904.post-5237105354448544724</id><published>2009-08-05T22:40:00.015+02:00</published><updated>2009-08-07T10:36:17.412+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jcr'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='hippoonrails'/><category scheme='http://www.blogger.com/atom/ns#' term='hippo'/><category scheme='http://www.blogger.com/atom/ns#' term='rubyonrails'/><title type='text'>HippoOnRails: Experiment 2</title><content type='html'>&lt;h2&gt;Introduction&lt;/h2&gt;&lt;br /&gt;In this experiment I'll show you how you can set up your own application within 15 minutes, with Hippo on Rails.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Prerequisite&lt;/h2&gt;&lt;br /&gt;For this to work you will need to have set up a working &lt;a href="http://shane-hippo.blogspot.com/2009/07/hippo-on-rails.html"&gt;HippoOnRails example project&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Start up&lt;/h2&gt;&lt;br /&gt;Start the cms:&lt;code&gt; mvn jetty:run-war&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Open up the console and add another node to the root node, call it ToDos&lt;br /&gt;&lt;br /&gt;Start the ruby server: &lt;code&gt;jruby script/server&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Next open up a console and generate the code with the normal ruby scaffold:&lt;br /&gt;&lt;code&gt;jruby -S script/generate scaffold todo deadline:date title:string description:text&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Open up the model and extend the todo model from the jcr, add the columns (plus id column) and the table name, it should end up looking link this:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YddoVdVB_fc/Snnxk4nC8xI/AAAAAAAAAAk/k6OH59t_tVk/s1600-h/todo_model.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 264px;" src="http://1.bp.blogspot.com/_YddoVdVB_fc/Snnxk4nC8xI/AAAAAAAAAAk/k6OH59t_tVk/s320/todo_model.png" alt="" id="BLOGGER_PHOTO_ID_5366586046962397970" border="0" /&gt;&lt;/a&gt;The set_new_record method is necessary to edit the node values, instead of creating new values each time. This is a result of the hack were using to set up this experiment.&lt;br /&gt;&lt;br /&gt;Don't forget to ad an &lt;span style="font-weight: bold; font-style: italic;"&gt;id&lt;/span&gt; column, rails needs this to create the urls for your model.&lt;br /&gt;&lt;br /&gt;Now fire up your webbrowser once again, point it to http://localhost:3000/todos, and see your results.&lt;br /&gt;&lt;br /&gt;This is it, it's &lt;strong&gt;&lt;em&gt;this easy&lt;/em&gt;&lt;/strong&gt; to set up a very basic application in HippoOnRails.&lt;br /&gt;&lt;br /&gt;If you have any problems setting this up, don't hesitate to &lt;a href="http://forge.onehippo.org/forum/forum.php?forum_id=128"&gt;ask for help with your HippoOnRails experiment&lt;/a&gt; on our forum.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230215522075772904-5237105354448544724?l=shane-hippo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shane-hippo.blogspot.com/feeds/5237105354448544724/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://shane-hippo.blogspot.com/2009/08/hor-experiment-2.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/5237105354448544724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/5237105354448544724'/><link rel='alternate' type='text/html' href='http://shane-hippo.blogspot.com/2009/08/hor-experiment-2.html' title='HippoOnRails: Experiment 2'/><author><name>shane smith</name><uri>http://www.blogger.com/profile/08045433542488317341</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_YddoVdVB_fc/Snnxk4nC8xI/AAAAAAAAAAk/k6OH59t_tVk/s72-c/todo_model.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230215522075772904.post-8017100106823621323</id><published>2009-07-28T07:00:00.027+02:00</published><updated>2009-08-07T10:36:44.562+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jcr'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='hippoonrails'/><category scheme='http://www.blogger.com/atom/ns#' term='hippo'/><category scheme='http://www.blogger.com/atom/ns#' term='rubyonrails'/><title type='text'>Hippo on rails</title><content type='html'>&lt;div style="text-align: right;"&gt;&lt;span style="font-size:85%;"&gt;an experiment  &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;    &lt;br /&gt;&lt;h2&gt;Intro&lt;/h2&gt;&lt;p&gt;My employer, &lt;a href="http://www.onehippo.com/"&gt;onehippo&lt;/a&gt;, challenged me to create a &lt;em&gt;Ruby on Rails&lt;/em&gt; demo connecting to the &lt;em&gt;Hippo JCR repository&lt;/em&gt;. So I took the two examples from &lt;a href="http://dev.day.com/microsling/content/blogs/main.html?category=dynamic%20languages"&gt;day.com&lt;/a&gt; and tweaked them into one file until I had a working example.&lt;/p&gt;&lt;h2&gt;Preparation&lt;/h2&gt;&lt;p&gt;To run the example application you will need to install &lt;em&gt;jruby&lt;/em&gt; and some java library files, the &lt;em&gt;onehippo&lt;/em&gt; cms and the &lt;em&gt;hippoonrails&lt;/em&gt; example application.&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To download and install jruby and rubyonrails, &lt;a href="http://kenai.com/projects/jruby/pages/GettingStarted"&gt;follow this tutorial&lt;/a&gt;.&lt;/li&gt; &lt;li&gt;You will also need some of &lt;a href="http://forge.onehippo.org/frs/download.php/11/jrubyhippojars.zip"&gt;these jars&lt;/a&gt; in your jruby/lib dir.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;If you don't have a hippo repository, then download the &lt;a href="http://www.onehippo.org/cms7/delve_into/quickstart.html"&gt;hippo quickstart&lt;/a&gt; war file.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;code&gt;svn checkout http://forge.onehippo.org/svn/hippoonrails/tags/phonebook_1_0_1/ &lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Getting everything to work probably took some time. If you have any questions or need some help, don't hesitate to ask them on the &lt;a href="http://forge.onehippo.org/forum/forum.php?forum_id=128"&gt;hippoonrails forum&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you are still here, then the next few steps should be a breeze. :-)&lt;/p&gt;&lt;br /&gt;&lt;h2&gt; &lt;a href="http://forge.onehippo.org/svn/hippoonrails/tags/phonebook_1_0_0/"&gt;The example hippoonrails application&lt;/a&gt;&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;First go to your cms (quickstart) directory and run it with: &lt;code&gt;mvn jetty:run-war&lt;/code&gt;&lt;/p&gt;Go to your cms console (&lt;a href="http://localhost:8080/cms/console"&gt;http://localhost:8080/cms/console&lt;/a&gt;) select the root node and add the node people (nt:unstructured) needed for the example application&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YddoVdVB_fc/SnSnVCQB00I/AAAAAAAAAAM/8fj-M4hD-4M/s1600-h/create_people_node.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://4.bp.blogspot.com/_YddoVdVB_fc/SnSnVCQB00I/AAAAAAAAAAM/8fj-M4hD-4M/s320/create_people_node.png" alt="" id="BLOGGER_PHOTO_ID_5365097035928294210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Next go to your hippoonrails example application and start the webbrick server: jruby -S script/server&lt;br /&gt;Then fire up your webbrowser and go to &lt;a href="http://localhost:3000/people"&gt;http://localhost:3000/people&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You should be able to create a new person, edit and delete it.&lt;br /&gt;&lt;br /&gt;That was easy now, wasn't it?&lt;br /&gt;Next stop, &lt;a href="http://shane-hippo.blogspot.com/2009/08/hor-experiment-2.html"&gt;set up your experiment with scaffold and the basewithouttables/jcr connector hack&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230215522075772904-8017100106823621323?l=shane-hippo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shane-hippo.blogspot.com/feeds/8017100106823621323/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://shane-hippo.blogspot.com/2009/07/hippo-on-rails.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/8017100106823621323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230215522075772904/posts/default/8017100106823621323'/><link rel='alternate' type='text/html' href='http://shane-hippo.blogspot.com/2009/07/hippo-on-rails.html' title='Hippo on rails'/><author><name>shane smith</name><uri>http://www.blogger.com/profile/08045433542488317341</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_YddoVdVB_fc/SnSnVCQB00I/AAAAAAAAAAM/8fj-M4hD-4M/s72-c/create_people_node.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
