Nick Sieger: Tag gorucotag:blog.nicksieger.com,2005:TypoTypo2007-08-31T17:44:56+00:00Nick Siegerurn:uuid:f6e673ec-89f8-4b0d-8794-da41e3934d4a2007-03-24T04:41:00+00:002007-08-31T17:44:56+00:00Gig: Speaking at Gotham Ruby Conference 2007<p>Hey! I’ve been so excited and busy at the same time I forgot to mention I’ll be <a href="http://goruco.com/speakers/">speaking</a> at the <a href="http://goruco.com/">Gotham Ruby Conference</a> on April 21st in NYC located at the Googleplex in Chelsea. Hopefully you’ve got your ticket by now, as last I heard there were only a couple of tickets left. You’ll hear me giving the JRuby pitch: Ruby on the best VM on the planet, performance updates, deploying Rails by <a href="http://drnicwilliams.com/2007/03/23/drop-rails-into-tomcat-and-it-just-works-ola-bini-on-jruby-presentation/">dropping a file in a Java webserver</a>, and more. Looking forward to carousing with the fine Rubyists in the Tri-State Metro area! Manhattan was my provenance in 1997-1999, where I had my first programming gig out of college, so I feel like I’m coming back to where I got started, in a way.</p>
<p>Only downer – I’ll miss the second incarnation of <a href="http://barcamp.org/MinneBar">Minnebar</a>, which was a blast <a href="/articles/tag/minnebar">last year</a>. If you’re near the Twin Cities that weekend you owe it to yourself to <a href="http://groups.google.com/group/MinneBar/browse_thread/thread/82e63ae53f17bd8a">attend</a>.</p>Nick Siegerurn:uuid:67ef6ad5-9935-4d0f-b8c7-fcc1c69288e32007-04-20T15:01:08+00:002007-08-31T18:00:10+00:00Gig: Double-stacked Conferences in One Weekend<p>So, on somewhat late notice due to a miscommunication, I’ve been asked to step in and give a talk on JRuby at the <a href="http://www.sdforum.org/SDForum/Templates/Level1.aspx?pid=10241&sid=3">SDForum Silicon Valley Ruby Conference</a> this Sunday the 22nd. This, in addition to my already-scheduled <a href="/articles/2007/03/24/gig-speaking-at-gotham-ruby-conference-2007">talk at GoRuCo</a>! JRuby makes an appearance on both coasts in a single busy weekend!</p>
<p>Due to schedule shuffling, I’ll be sharing a 75-minute time slot in the morning with <a href="http://blogs.sun.com/tor/">Tor Norbye</a>, who will be giving a talk on Ruby tooling featuring <a href="/articles/tag/netbeans">NetBeans</a>.</p>Nick Siegerurn:uuid:33e6c919-f861-49c7-a95c-8e722eac2afb2007-05-10T16:16:06+00:002007-08-31T18:00:15+00:00GoRuCo Materials Available<p>Busy times! My apologies for the post-conference talk delay. So, before this stuff becomes completely irrelevant, here are <a href="http://dist.codehaus.org/jruby/talks/JRuby-GoRuCo-2007.pdf">my slides</a> and <a href="http://dist.codehaus.org/jruby/talks/JRuby-GoRuCo-2007-demos.tar.gz">my demos</a> from my talk at <a href="/articles/2007/03/24/gig-speaking-at-gotham-ruby-conference-2007">GoRuCo</a> a couple weekends ago. Please let me know if you download the demos and have any problems with them.</p>
<p>From the README included in the demo bundle:</p>
<h1>JRuby GoRoCo 2007 Demos</h1>
<p>Nick gave these demos at his GoRuCo talk in NYC on April 21, 2007 and at SDForum Silicon Valley Ruby Conference on April 22, 2007.</p>
<h2>Requirements</h2>
<p>JRuby 0.9.9, Tomcat 5.5.23, RSpec 0.8.2, the MySQL JDBC connector as well as all the demo applications are included with this package. The only prerequisite (other than a Java VM) is that you should have a MySQL database running on localhost, with a password-less root user. If you need to change the user/password for the database server, make the changes in the mephisto/config/database.jruby.yml file.</p>
<h2>Setup</h2>
<p>Source init.sh or init.bat in your environment to set paths to JRuby.</p>
<pre><code>$ . init.sh
> init.bat
</code></pre>
<h2>JRBuilder</h2>
<p>These examples emphasize the conciseness and structure of Ruby DSLs as a GUI assembly language. Run the following:</p>
<pre><code>$ jrake jrb:hello
$ jrake jrb:tabs
</code></pre>
<p>View the source for these (and others) in jrbuilder/examples.</p>
<h2>RSpec</h2>
<p>This shows a simple RSpec example that exercises a Java ArrayList. The initial specs fails, but is easily fixed.</p>
<pre><code>$ jrake rspec:run
</code></pre>
<h2>Mephisto</h2>
<p>This example shows building and deploying a .war file containing the <a href="http://mephistoblog.com/">Mephisto blog engine</a>. It uses a snapshot of the Rails Integration plugin just before version 1.1.1.</p>
<p>MySQL is required for the database. As noted above, the database configuration assumes a password-less root user. If you need to change that assumption, edit the production section of the file mephisto/config/database.jruby.yml.</p>
<p>Several targets are available:</p>
<pre><code>$ jrake meph:clean # Clean Mephisto database and war file
$ jrake meph:database # Setup Mephisto database
$ jrake meph:war # Create Mephisto war
</code></pre>
<p>Before you can run the example, the mephisto database must be created.</p>
<pre><code>$ jrake meph:database
</code></pre>
<p>Next, create the war file. This target creates the war file and copies it into the Tomcat webapps directory.</p>
<pre><code>$ jrake meph:war
</code></pre>
<p>Next, run the Tomcat web container, and observe the war file getting deployed.</p>
<pre><code>$ tomcat/bin/catalina.sh run
</code></pre>
<p>Finally, visit http://localhost:8080/ in a web browser, and see Mephisto running in a Java web container.</p>
<p>More information on the Rails Integration plugin (now renamed “Goldspike”) can be found at the <a href="http://www.headius.com/jrubywiki/index.php/Rails_Integration">JRuby wiki</a>.</p>