<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.6" -->
<rss version="0.92">
<channel>
	<title>Admoo Labs</title>
	<link>http://blog.admoolabs.com</link>
	<description>Bringing fun back to the web.</description>
	<lastBuildDate>Sun, 07 Mar 2010 13:45:19 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>JRuby, WAR, and Paperclip</title>
		<description>If you deploy a jruby on rails application as a war file, the file structure is different from a normal rails application.

[bash light="true"]
&#124;-- 404.html
&#124;-- 422.html
&#124;-- 500.html
&#124;-- WEB-INF
&#124;   &#124;-- app
&#124;   &#124;-- config
&#124;   &#124;-- gems
&#124;   &#124;-- lib
&#124;   &#124;-- log
&#124;   &#124;-- ...</description>
		<link>http://blog.admoolabs.com/jruby-war-and-paperclip/</link>
			</item>
	<item>
		<title>Running Glassfish in Server Mode</title>
		<description>[bash light="true"]
jruby --server -S glassfish -e production -p 4400
[/bash]

Glassfish doesn't accept an option to run in server mode, but jruby does, so instead of using glassfish -e production, use jruby -S glassfish and add --server. </description>
		<link>http://blog.admoolabs.com/glassfish-server-mode/</link>
			</item>
	<item>
		<title>JRuby and the Glassfish Gem</title>
		<description>The glassfish gem is another way to run a rails application in jruby. Before glassfish, I was using jruby script/server.

Using glassfish is simple. Install the gem and run jruby -S glassfish. However, I got a "missing gem" error.

[bash light="true"]
$ sudo jgem install glassfish
Successfully installed glassfish-1.0.2-universal-java
1 gem installed

$ jruby -S glassfish
Starting ...</description>
		<link>http://blog.admoolabs.com/jruby-glassfish-ge/</link>
			</item>
	<item>
		<title>Bundler and Rubygems Again</title>
		<description>On my previous post, I showed you how to use bundler with rails 2.3.5. Bundler is used to install the gems, and rubygems is used to load the gems. Bundler as of version 0.9.4 doesn't work with rails 2.3.5.

Since rubygems is used to load the gems, you might still encounter ...</description>
		<link>http://blog.admoolabs.com/bundler-rubygems-again/</link>
			</item>
	<item>
		<title>Using Bundler 0.9.4 with Rails 2.3.5</title>
		<description>Bundler works well with rails 3 beta but it doesn't work with rails 2.3.5 yet. Here's a simple way to use the gems installed by bundler.

Let's create a rails app named labs.

[bash light="true" autolinks="false"]
$ rails labs
$ cd labs
$ ./script/console
Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your ...</description>
		<link>http://blog.admoolabs.com/using-bundler-0-9-4-with-rails-2-3-5/</link>
			</item>
	<item>
		<title>How I Use Bundler</title>
		<description>You probably heard that rails 3 beta is out and you want to try it. The instructions tell you to install the gems

[bash light="true" autolinks="false"]
gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n
gem install rails --pre
[/bash]

Here, I'll give you an alternative to installing rails 3 ...</description>
		<link>http://blog.admoolabs.com/how-i-use-bundler/</link>
			</item>
	<item>
		<title>uninitialized constant PGconn</title>
		<description>I'm successfully using Postgres for development. My stack includes ruby 1.8.7, rails 2.3.4, and pg 0.8.0. One day, I get an error

[code light="true"]
NameError: uninitialized constant ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::PGconn
[/code]

I didn't update Postgres or the pg gem so I don't see a reason for it to stop working. Then I remember that I installed ...</description>
		<link>http://blog.admoolabs.com/uninitialized-constant-activerecord-connectionadapters-postgresqladapter-pgconn/</link>
			</item>
	<item>
		<title>Capistrano 2.5.11 Latest Release Workaround</title>
		<description>A recent commit in Capistrano broke some of the deploys. The latest_release directory becomes the oldest release instead of the most recent. Some of the effects I've seen are: 1) rake db:migrate is run on the oldest release 2) deploy:cleanup deletes the most recent releases.

When you deploy, and the number ...</description>
		<link>http://blog.admoolabs.com/capistrano-2-5-11-latest-release-workaround/</link>
			</item>
	<item>
		<title>Installing Nginx with Passenger on Snow Leopard Using MacPorts</title>
		<description>Install MacPorts if you don't have it. 

Download and install the Portfile
[bash light="true" autolinks="false"]
git clone git://github.com:crigor/admoolabs-ports.git ports
cd ports/nginx-0.7.64-passenger-2.2.8
sudo port -v install
[/bash]

You need to have ruby installed to compile passenger. In case you don't have ruby, you can also get it from macports. 
[bash light="true"]sudo port -v install ruby[/bash]

If you have ...</description>
		<link>http://blog.admoolabs.com/nginx-passenger-snow-leopard-macports/</link>
			</item>
	<item>
		<title>Install PHP 5.2 on Ubuntu Dapper</title>
		<description>The repositories on Ubuntu Dapper don't have php 5.2. To install php 5.2, I added the hardy repositories.


vi /etc/apt/sources.list


add the repositories

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted


then run

sudo apt-get update
sudo apt-get install php5


This tried to install and upgrade a lot of packages including apache. I really needed php ...</description>
		<link>http://blog.admoolabs.com/install-php-52-ubuntu-dapper/</link>
			</item>
</channel>
</rss>
