<?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>DEV_MEM.dump_to(:blog) - Multimedia systems blog &#187; Rails</title>
	<atom:link href="http://blog.mmediasys.com/category/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mmediasys.com</link>
	<description>Compartiendo fragmentos de código con el mundo.</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:32:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mongrel_service 0.4.beta3 released</title>
		<link>http://blog.mmediasys.com/2010/03/07/mongrel_service-0-4-beta3-released/</link>
		<comments>http://blog.mmediasys.com/2010/03/07/mongrel_service-0-4-beta3-released/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 14:15:26 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/?p=334</guid>
		<description><![CDATA[This is a followup to my previous post
I&#8217;ve pushed to RubyGems a version 0.4.beta3, you can access it from here
What&#8217;s new?
Bugsfixes, thanks to sinclair that fixed a couple of regressions due the refactoring and removal of win32-service dependency.
Please read the previous post about install and usage instructions. Thank you.
]]></description>
			<content:encoded><![CDATA[<p>This is a followup to <a href="http://blog.mmediasys.com/2010/01/01/mongrel_service-0-4-beta2-released">my previous post</a></p>
<p>I&#8217;ve pushed to <a href="http://rubygems.org/">RubyGems</a> a version <strong>0.4.beta3</strong>, you can access it from <a href="http://rubygems.org/gems/mongrel_service/versions/0.4.beta3">here</a></p>
<h3>What&#8217;s new?</h3>
<p>Bugsfixes, thanks to <a href="http://github.com/sinclair">sinclair</a> that fixed a couple of regressions due the refactoring and removal of win32-service dependency.</p>
<p>Please read the previous post about install and usage instructions. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmediasys.com/2010/03/07/mongrel_service-0-4-beta3-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mongrel_service 0.4.beta2 released</title>
		<link>http://blog.mmediasys.com/2010/01/01/mongrel_service-0-4-beta2-released/</link>
		<comments>http://blog.mmediasys.com/2010/01/01/mongrel_service-0-4-beta2-released/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 22:15:08 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/?p=326</guid>
		<description><![CDATA[I think nobody expected this project hit the 4 years mark&#8230; guess I didn&#8217;t expected it either!

I just pushed to official gem repositories (Gemcutter) the newer version of mongrel_service
What&#8217;s new?
A few outstanding bugs has been fixed. A few patches from Daniel Gies and papillon and other stuff:
Removed win32-service dependency
Since win32-service used SEH, something only present [...]]]></description>
			<content:encoded><![CDATA[<p>I think nobody expected this project hit the 4 years mark&#8230; guess I didn&#8217;t expected it either!</p>
<p><span id="more-326"></span></p>
<p>I just <a href="http://gemcutter.org/gems/mongrel_service/versions/0.4.beta2">pushed</a> to official gem repositories (Gemcutter) the newer version of <a href="http://github.com/fauna/mongrel_service">mongrel_service</a></p>
<h3>What&#8217;s new?</h3>
<p>A few outstanding bugs has been fixed. A few patches from Daniel Gies and <a href="http://github.com/papillon">papillon</a> and other stuff:</p>
<h4>Removed win32-service dependency</h4>
<p>Since win32-service used <acronym title="Structured Exception Handling">SEH</acronym>, something only present in Visual C, newer builds of Ruby made with <span class="caps">GCC </span>cannot use it.</p>
<p>This change will make possible to depend on even less external stuff.</p>
<p><em>Remember</em>: you still need administrative privileges to install or remove Windows Services.</p>
<h4>Mongrel log files are written to the path specified by &#8211;log option</h4>
<p>Yes, log files used to be written all in Ruby bin folder, this has now changed, thanks to Daniel Gies contribution.</p>
<p>This will happen automatically with the upgraded exectuable.</p>
<h4>Workaround Windows 2008 process detection</h4>
<p>It is now possible execute the service on any account besides <code>LocalSystem</code>. Contribution by Daniel Gies and papillon.</p>
<h4>Wait longer for child process terminate properly</h4>
<p>There are times some pending database connections are slow. With this change these will terminate smoothly now.</p>
<h4>Nitty gritty</h4>
<p>I took the time to cleanup the repository, folder structure and build process to make it more easy update this project in the future. Thanks <a href="http://seattlerb.rubyforge.org/hoe/">Hoe</a> and <em>my own experience</em> working with Rake.</p>
<h3>How to install it?</h3>
<p>Since this is a prerelease gem, you need to indicate the option during gem installation:</p>
<p><code>gem install mongrel_service --prerelease</code></p>
<p>Once installed, you can now install new services.</p>
<p>If you already have a service installed for your application, you will need to remove it and install it again for it to update the executable and adjust the service registry information.</p>
<p>The expected commands are <code>mongrel_rails service::remove --name MyService</code> and after issue <code>mongrel_rails service::install --name MyService ...</code></p>
<h3>Report bugs</h3>
<p>If you find any problem with this newer build, please use GitHub <a href="http://github.com/fauna/mongrel_service/issues">issues</a> since current Mongrel tracker is full of spam.</p>
<p>Please include <code>servicefb.log</code>, <code>mongrel_service.log</code> and <code>mongrel.log</code> generated when attempts to start or stop the service failed.</p>
<h3>When to expect a final release</h3>
<p>If no serious bug appears, expect a final 0.4 release next weekend.</p>
<p>Thanks all for the contributions and happy new year!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmediasys.com/2010/01/01/mongrel_service-0-4-beta2-released/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>RubyInstaller: Getting Started with Rails and MySQL</title>
		<link>http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/</link>
		<comments>http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 22:48:24 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/?p=250</guid>
		<description><![CDATA[This is a follow up instruction set from previous post, but this time, using MySQL

Update: Gems are not officially released, no need to add --source anymore.
Getting Ruby
These steps are the same for Ruby 1.9 or Ruby 1.8, please feel free to download the installer from here
For this guide I&#8217;m going to use Ruby 1.9.1-p129, since [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow up instruction set from <a href="http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-sqlite3/">previous post</a>, but this time, using MySQL</p>
<p><span id="more-250"></span></p>
<p><strong>Update:</strong> Gems are not officially released, no need to add <code>--source</code> anymore.</p>
<h3>Getting Ruby</h3>
<p>These steps are the same for Ruby 1.9 or Ruby 1.8, please feel free to download the installer <a href="http://rubyinstaller.org/downloads">from here</a></p>
<p>For this guide I&#8217;m going to use Ruby 1.9.1-p129, since it the coolest new version that all the guys are playing with <img src='http://blog.mmediasys.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now, start a Command prompt with Ruby (under start menu, inside Ruby 1.9.1-p129).</p>
<p><img src="http://blog.mmediasys.com/wp-content/uploads/2009/07/prompt.png" alt="Command Prompt with Ruby 1.9" title="Command Prompt with Ruby 1.9" width="515" height="365" class="alignnone size-full wp-image-238" /></p>
<h3>Getting the right MySQL version</h3>
<p>While building the MySQL/Ruby bindings, we found that mixing versions of the bindings with different versions of MySQL installations ended on undesired results (abnormal program termination, weird errors, etc.)</p>
<p>For this guide, and because we are going to use binary gems, we are going to stick to MySQL version <strong>5.0.83</strong>. </p>
<p>Now is time to download MySQL. For this guide, I&#8217;m going to install the <em>essentials</em> version, which contains only MySQL and command line tools, no Query Builder or any other administrative tool.</p>
<p>Please go to <a href="http://dev.mysql.com/downloads/mysql/5.0.html#win32">this page</a> and download <em>Windows Essentials (x86)</em>. Once downloaded you will end with <code>mysql-essential-5.0.83-win32.msi</code> file. Execute it and install with defaults.</p>
<h3>Configure MySQL</h3>
<p>If you&#8217;re an advanced and savvy MySQL user, you can skip the following steps. For the sake of this guide, I&#8217;m going to list the simple options you must follow when installing it.</p>
<p>Once you installed MySQL, the installer should have started the <em>Configuration Wizard</em> page.</p>
<p>Inside of it, please apply the following options:</p>
<table>
<tr>
<th>Option/Screen</th>
<th>Value</th>
</tr>
<tr>
<td>Configuration Type</td>
<td>Detailed configuration</td>
</tr>
<tr>
<td>Server type</td>
<td>Developer Machine</td>
</tr>
<tr>
<td>Database usage</td>
<td>Transactional Database only</td>
</tr>
<tr>
<td>InnoDB datafile</td>
<td><em>Your option or leave defaults</em></td>
</tr>
<tr>
<td>Number of connections</td>
<td>Decision Support</td>
</tr>
<tr>
<td>Networking options</td>
<td>Check <em>Add firewall exceptions</em></td>
</tr>
<tr>
<td>Character set</td>
<td>Best support for Multilingualism (UTF8)</td>
</tr>
<tr>
<td>Windows Options</td>
<td>Add to <span class="caps">PATH </span>if you want <em>mysql</em> available on every prompt</td>
</tr>
<tr>
<td>Security Options</td>
<td>Uncheck if you want <em>root</em> password be blank</td>
</tr>
</table>
<p>Once done with all this, on the summary screen, please click <em>Execute</em> to complete the configuration of MySQL Server.</p>
<p>Under some system, starting of MySQL server will fail during this wizard, but don&#8217;t be afraid, most of the times, this can be safely ignored.</p>
<p>To check everything was properly installed, please go to the Start Menu, and inside <em>MySQL Server 5.0</em>, click on <em>MySQL Command Line Client</em></p>
<p>If you changed the <em>root</em> password, or, like me, leaved it unchecked, you can simply press enter when asked for the password and see that the server is running!</p>
<p><img src="http://blog.mmediasys.com/wp-content/uploads/2009/07/mysql-client.png" alt="MySQL Console Client" title="MySQL Console Client" width="566" height="353" class="alignnone size-full wp-image-253" /></p>
<p>If you decided to add MySQL to the <span class="caps">PATH, </span>you will require to restart your computer so the <span class="caps">PATH </span>change is available to the system.</p>
<p>If you decided not to add MySQL to the <span class="caps">PATH, </span>please go, with Explorer to the location where you installed MySQL Server and copy <code>libmySQL.dll</code> into <code>C:\Ruby19\bin</code></p>
<p>In my case, I found this file in <code>C:\Program Files\MySQL\MySQL Server 5.0\bin</code></p>
<p>Now, it is time to install the bindings.</p>
<h3>Getting MySQL/Ruby</h3>
<p>For this version of Ruby, there is no official binary gems for both Ruby 1.8 and 1.9. So we are going to install the specially built version from RubyInstaller gems repository. </p>
<p>At the <em>Command Prompt with Ruby</em>, please enter the following command:</p>
<pre>gem install mysql</pre>
<p>This is going to install the special version of MySQL bindings. This version works with Ruby 1.8 and 1.9, since bundles <em>fat binaries</em>. You should expect a similar output like this:</p>
<pre>Successfully installed mysql-2.8.1.1-x86-mingw32
1 gem installed</pre>
<h3>Getting Rails</h3>
<p>Now is time to install Rails and build our application. At the same command prompt, please enter the following command:</p>
<pre>gem install rails</pre>
<p>This is going to take a bit, since Rails and it&#8217;s dependencies takes around 2MB or so, and need to be downloaded and installed.</p>
<p>Once done, expect see at the screen something like this:</p>
<pre>Successfully installed activesupport-2.3.2
Successfully installed activerecord-2.3.2
Successfully installed actionpack-2.3.2
Successfully installed actionmailer-2.3.2
Successfully installed activeresource-2.3.2
Successfully installed rails-2.3.2
6 gems installed</pre>
<h3>Creating a Rails application</h3>
<p>Let&#8217;s name our application <code>mysqlapp</code></p>
<pre>rails mysqlapp --database=mysql</pre>
<p>The <code>--database</code> option indicates to Rails that we want to use MySQL instead of the default database adapter (SQLite3).</p>
<p>Rails will output a lot of lines when creating your application structure, just an excerpt of what to see:</p>
<pre>
...
      create  config/database.yml
      create  config/routes.rb
      create  config/locales/en.yml
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/new_rails_defaults.rb
      create  config/initializers/session_store.rb
      create  config/environment.rb
...
</pre>
<h3>Configuring our Database</h3>
<p>Now Rails have configured for us the name of the database we want to use, and you can verify it in <code>config\database.yml</code></p>
<p>Rails will try to connect to <code>mysqlapp_development</code>, but that database do not exist in our fresh new MySQL server.</p>
<p>So, let&#8217;s create it:</p>
<pre>cd mysqlapp
rake db:create</pre>
<p>Just that, simple <code>db:create</code> is going to connect to our MySQL server, and create the database for us.</p>
<p>Keep in mind that if you changed root password or want to use other MySQL user to connect to the database, you need to edit <code>database.yml</code> to reflect those changes.</p>
<p>Let&#8217;s verify that everything is in place, using the following command:</p>
<pre>ruby script\about</pre>
<p>And you should see something like this as result:</p>
<pre>About your application's environment
Ruby version              1.9.1 (i386-mingw32)
RubyGems version          1.3.4
Rack version              1.0 bundled
Rails version             2.3.2
Active Record version     2.3.2
Action Pack version       2.3.2
Active Resource version   2.3.2
Action Mailer version     2.3.2
Active Support version    2.3.2
Application root          C:/Users/Luis/mysqlapp
Environment               development
Database adapter          mysql
Database schema version   0</pre>
<p>Now is up to you to create your models, controllers and views!</p>
<h3>Some notes and considerations</h3>
<p>On other post I&#8217;m going to guide you with steps on building the bindings against MySQL 5.1.36, since you will need to install the Ruby Development Kit and the development headers for MySQL.</p>
<p>If you find something wrong with the Ruby Installer, please report it <a href="http://rubyforge.org/tracker/?atid=715&amp;group_id=167&amp;func=browse">here</a>, but issues with your code, Rails or other are not responsability of RubyInstaller.</p>
<p>The binary gems provided at <code>gems.rubyinstaller.org</code> are based on our forks of mysql bindings, which can be cloned and explored <a href="http://github.com/luislavena/mysql-gem">here</a> at GitHub.</p>
<p>Keep in mind that some gems would not work under Ruby 1.9, or you will need a compiler (DevKit) for it. See previous post with details how to get those from our download page.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>RubyInstaller: Getting Started with Rails and SQLite3</title>
		<link>http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-sqlite3/</link>
		<comments>http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-sqlite3/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:09:20 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/?p=233</guid>
		<description><![CDATA[A few folks asked this over the past weeks, and since I released preview1 version of RubyInstaller, wouldn&#8217;t be awesome I write a guide for it?
So, here we go

Update: Gems are not officially released, no need to add --source anymore.
First, Getting Ruby
Please download from here one of the preview1 installers for Ruby.
For this demonstration, I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>A few folks asked this over the past weeks, and since I <a href="http://blog.mmediasys.com/2009/06/28/rubyinstaller-preview1-released/">released preview1</a> version of RubyInstaller, wouldn&#8217;t be awesome I write a guide for it?</p>
<p>So, here we go</p>
<p><span id="more-233"></span></p>
<p><strong>Update:</strong> Gems are not officially released, no need to add <code>--source</code> anymore.</p>
<h3>First, Getting Ruby</h3>
<p>Please download <a href="http://rubyinstaller.org/downloads/">from here</a> one of the preview1 installers for Ruby.</p>
<p>For this demonstration, I&#8217;m going to use Ruby 1.9.1-p129. Downloaded, executed and installed to it&#8217;s default location <code>C:\Ruby19</code></p>
<p>Now, start a Command prompt with Ruby (under start menu, inside Ruby 1.9.1-p129).</p>
<p><img src="http://blog.mmediasys.com/wp-content/uploads/2009/07/prompt.png" alt="Command Prompt with Ruby" title="Command Prompt with Ruby" width="515" height="365" class="alignnone size-full wp-image-238" /></p>
<h3>Getting <span class="caps">SQL</span>ite3</h3>
<p>As you may know, Windows do not came out of the box with libraries like <span class="caps">SQL</span>ite3. For this, we are going to download it from Internet.</p>
<p>Going to <a href="http://sqlite.org/download.html"><span class="caps">SQL</span>ite downloads</a>, under <em>Precompiled binaries for Windows</em>, download <code>sqlitedll-3_6_16.zip</code> and <code>sqlite-3_6_16.zip</code>. Those two packages contains the <span class="caps">DLL </span>(sqlite3.dll) and the command line executable for <span class="caps">SQL</span>ite (sqlite3.exe).</p>
<p>Please extract those contents inside <code>C:\Ruby19\bin</code></p>
<p>Now, let&#8217;s get the Ruby bindings for <span class="caps">SQL</span>ite3</p>
<h3>Getting <span class="caps">SQL</span>ite3/Ruby bindings</h3>
<p>As you may know, the preferred way to distribute Ruby libraries is using Gems. Users on other platforms usually compile themselves these components, using the mechanisms provided by the operating system distribution.</p>
<p>We are going to avoid the compilation process using pre-compiled binaries that has been <em>cooked</em> for us.</p>
<p>So, back to the Command Prompt with Ruby, let&#8217;s install the sqlite3 bindings:</p>
<pre>gem install sqlite3-ruby</pre>
<p>Adding <code>--source</code> help us indicate a non-standard location from where gems are going to be installed. RubyInstaller team has built and packaged special versions of these gems that we hope get published soon into RubyForge, the official place for gem distribution.</p>
<p>Once installed, you should see something like this at the screen:</p>
<pre>Successfully installed sqlite3-ruby-1.2.4.1-x86-mingw32
1 gem installed</pre>
<p>These special version of the gem are <em>fat binaries</em>, which means these can be safely installed on Ruby 1.8.6 or 1.9.1.</p>
<h3>Getting Rails</h3>
<p>Now it&#8217;s time to install and build a Rails application. First, let&#8217;s install the rails gem:</p>
<pre>gem install rails</pre>
<p>That command is going to take a bit, since is a 2MB or so download, and will install several of the Rails dependencies (ActiveRecord, ActionPack, ActiveSupport, etc). You should expect similar output to this:</p>
<pre>Successfully installed activesupport-2.3.2
Successfully installed activerecord-2.3.2
Successfully installed actionpack-2.3.2
Successfully installed actionmailer-2.3.2
Successfully installed activeresource-2.3.2
Successfully installed rails-2.3.2
6 gems installed</pre>
<p>Let&#8217;s build our application now.</p>
<h3>Creating a Rails application.</h3>
<p>Let&#8217;s call the application <code>railsapp</code></p>
<pre>rails railsapp</pre>
<p>An excerpt of the output you should get:</p>
<pre>      create
      create  app/controllers
      create  app/helpers
      create  app/models
      create  app/views/layouts
      create  config/environments
      create  config/initializers
      create  config/locales
      create  db
...</pre>
<p>Rails 2.3.2 defaults it&#8217;s database format to <span class="caps">SQL</span>ite3, so there is no need for us to tweak anything.</p>
<p>Checking if everything is ok, using <code>script\about</code>:</p>
<pre>cd railsapp
ruby script\about</pre>
<p>And the output should be something like this:</p>
<pre>About your application's environment
Ruby version              1.9.1 (i386-mingw32)
RubyGems version          1.3.4
Rack version              1.0 bundled
Rails version             2.3.2
Active Record version     2.3.2
Action Pack version       2.3.2
Active Resource version   2.3.2
Action Mailer version     2.3.2
Active Support version    2.3.2
Application root          C:/Users/Luis/railsapp
Environment               development
Database adapter          sqlite3
Database schema version   0</pre>
<p>Now, it&#8217;s up to you create your models, controllers and everything.</p>
<h3>Some notes and considerations.</h3>
<p>At the time of this writing, Mongrel has not been updated to build and install properly either on 1.9 or MinGW versions of Ruby.</p>
<p>As part of Mongrel development team, I&#8217;m going to work on a solution for this in the upcoming days.</p>
<p>If you find something wrong with the Ruby Installer, please report <a href="http://rubyforge.org/tracker/?atid=715&amp;group_id=167&amp;func=browse">here</a>, but issues with your code, Rails or other are not responsability of RubyInstaller.</p>
<p>The binary gems provided at <code>gems.rubyinstaller.org</code> are based on our forks of sqlite3-ruby, which can be cloned and explored <a href="http://github.com/luislavena/sqlite3-ruby">here</a> at GitHub.</p>
<p>Keep in mind that some gems would not work under Ruby 1.9, or you will need a compiler (DevKit) for it. See previous post with details how to get those from our download page.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-sqlite3/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Ruby: This is what I call a community</title>
		<link>http://blog.mmediasys.com/2009/01/13/ruby-this-is-what-i-call-a-community/</link>
		<comments>http://blog.mmediasys.com/2009/01/13/ruby-this-is-what-i-call-a-community/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 23:50:14 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/?p=121</guid>
		<description><![CDATA[I&#8217;ll like to say this is what I like of Ruby: it&#8217;s community.
No matter if you&#8217;re running on Windows, Linux, OSX, an esoteric version of Unix, you can still count with support1

Well, skipping for a second the zealots of platforms, I&#8217;ll like to comment on two things that happened in the past days.
Pure-Ruby Zlib
Daniel Berger [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll like to say this is what I like of Ruby: it&#8217;s community.</p>
<p>No matter if you&#8217;re running on Windows, Linux, <span class="caps">OSX, </span>an esoteric version of Unix, you can still count with support<sup class="footnote"><a href="#fn1">1</a></sup></p>
<p><span id="more-121"></span></p>
<p>Well, skipping for a second the zealots of platforms, I&#8217;ll like to comment on two things that happened in the past days.</p>
<h4>Pure-Ruby Zlib</h4>
<p>Daniel Berger started a bounty to workaround a issue with zlib building and working with Visual C++ 8.0</p>
<p>The full thread is <a href="http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/a6966f6fc1424f61">here</a> at ruby-talk.</p>
<p>While his work on getting a working Ruby on <span class="caps">VC8 </span>overlaps our work on MinGW build, the bounty will not only benefit him in the quest but the whole Ruby community.</p>
<p>A couple of days, when I thought the bounty was not attracting attention, 2 participants showed interest.</p>
<p>Both developers came with different approaches to the problem and one goal: contribute back.</p>
<p>To quote Charles own words:</p>
<blockquote><p>Thanks Luis, but never mind, it was more about the challenge, and also supporting the effort to ease problems on windows. I primarily use ruby on windows, and make use of the fruits of your (one click installer), and daniel berger&#8217;s (win32 process, sys-*, et al) labors every day (at work that is <img src='http://blog.mmediasys.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Props to you guys for making ruby on windows usable&#8230;</p>
</blockquote>
<p>I don&#8217;t need to add anything else, or should I?</p>
<h4>Keep trying Windows configurations.</h4>
<p>I know, I know, this can be a bit biased (hint: I use Windows), but Fabio Akita did it again: </p>
<p><a href="http://akitaonrails.com/2009/1/13/the-best-environment-for-rails-on-windows">The Best Environment for Rails on Windows</a></p>
<p>First he published that in Portuguese, and after several comments he got convinced there was a market for a translation.</p>
<p>The tips for gVim setup are great, which is a nice way to share with the community how you can get productive without dumping your whole setup, going to a memory and wallet blown <span class="caps">IDE </span>or dumping your computer for a Mac.</p>
<h5>What is the point?</h5>
<p>I know Fabio and he is a Mac user. Even so, he is pretty aware that there are users that cannot afford get a Mac, or cannot switch to Linux environments. He took the time to write not one but <strong>two</strong> posts covering details on how you can be productive on Windows for doing Ruby and Rails development.</p>
<p>This is the example on how the community is great around the language, and that a few opinionated developers and their statements are not the way to measure the attitude of the community.</p>
<p>Got it?</p>
<h4>Closing</h4>
<p>And for those who complain about gems not install properly on Windows, send the gem author to <a href="http://github.com/luislavena/rake-compiler">rake-compiler</a> and tell them they no longer have an excuse.</p>
<p class="footnote" id="fn1"><sup>1</sup> ruby-talk support, ruby-core still shows some communication problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmediasys.com/2009/01/13/ruby-this-is-what-i-call-a-community/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problems with RubyGems? Find here some handy tips</title>
		<link>http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/</link>
		<comments>http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 22:47:42 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/?p=35</guid>
		<description><![CDATA[Some Rails update force you to upgrade RubyGems? Welcome to the pain (or not quite) of solving those small annoyances with RubyGems&#8230; at least on Windows  

&#8216;gem update &#8211;system&#8217; is not really updating?
Sometimes RubyGems, like any software, get confused. Help him find it&#8217;s way. Becca Girl at ruby-talk found this problem (read it here).
I [...]]]></description>
			<content:encoded><![CDATA[<p>Some Rails update force you to upgrade RubyGems? Welcome to the pain (or not quite) of solving those small annoyances with RubyGems&#8230; at least on Windows <img src='http://blog.mmediasys.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><span id="more-35"></span></p>
<h4>&#8216;gem update &#8211;system&#8217; is not really updating?</h4>
<p>Sometimes RubyGems, like any software, get confused. Help him find it&#8217;s way. <em>Becca Girl</em> at ruby-talk found this problem (read it <a href="http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/4610c99f893d5b9d/7e48230b11797c08">here</a>).</p>
<p>I suggest that, if after a gem update you get some weird errors or the same old version when query for <code>gem -v</code>, don&#8217;t waste your time and proceed with the following:</p>
<ol>
<li>Download latest rubygems source package from <a href="http://rubyforge.org/frs/?group_id=126">here</a> (zip format recommended).</li>
<li>Extract the package contents somewhere (a new folder close to your root C:/ or D:/ will be a good option).</li>
<li>Jump into the command line and disable <span class="caps">RUBYOPT </span>(<code>set RUBYOPT=</code>)</li>
<li>cd into the folder you extracted RubyGems and run <code>ruby setup.rb install</code></li>
<li>Done!.</li>
</ol>
<p>Now you should have the updated version of RubyGems (check with <code>gem -v</code>).</p>
<h4>What about &#8216;rake.bat:24: undefined method&#8217; errors or something like that?</h4>
<p>If you updated from a release of RubyGems previous 0.9.4, you will see that some of your previous gems will show these problems, mostly due some deprecations and changes in the way batch files are generated.</p>
<p>An advice: sweep your gems! <img src='http://blog.mmediasys.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<ol>
<li>Remove offending gem: <code>gem uninstall rake</code></li>
<li>confirm removal of <code>rake</code> executable</li>
<li>Install gem again: <code>gem install rake</code></li>
</ol>
<p>Starting from RubyGems 1.1 and enhanced in 1.2, perform updates and install of new gems is faster, so thank all the RubyGems team for making you have more tiem to actual coding instead of performing updates!</p>
<h4>And what about mongrel?</h4>
<p>Jumping form 0.9.4 to 1.1 version of RubyGems broke binaries of mongrel in Windows (as commented in previous post <a href="http://blog.mmediasys.com/2007/12/19/latest-rubygems-and-rails-is-a-deadly-combo">here</a>)</p>
<p>At this time you should have no problems, but if still find them, don&#8217;t hesitate to search mongrel-users mailing list (using <a href="http://www.ruby-forum.com/forum/28">Ruby-Forum</a>) to find or post if new issues.</p>
<h4>Two in distress makes sorrow less</h4>
<p>Even I know there is no consolation in saying that Windows users are not the only one facing problems with RubyGems, I can only conclude that no matter which OS is your preference, each one will have it&#8217;s own <em>glitches</em> that will make you love or hate your platform.</p>
<p>Anyway, enough for today.</p>
<p>PS: Are you ready for <a href="http://www.locaweb.com.br/railssummit/">Rails Summit Latin America</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Latest RubyGems and Rails is a deadly combo</title>
		<link>http://blog.mmediasys.com/2007/12/19/latest-rubygems-and-rails-is-a-deadly-combo/</link>
		<comments>http://blog.mmediasys.com/2007/12/19/latest-rubygems-and-rails-is-a-deadly-combo/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 21:50:28 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/2007/12/19/latest-rubygems-and-rails-is-a-deadly-combo/</guid>
		<description><![CDATA[2007-12-20: RubyGems 1.0.0 is out, including mswin32 fixes. There is a problem specific on how gem_plugin search for gems and their platforms, that makes mongrel_service gem fail.

The recommended update procedure will be:

Update RubyGems using gem update --system
Go into your lib/ruby/gems/1.8/gems and rename mongrel_service-0.3.3-mswin32 to mongrel_service-0.3.3-x86-mswin32 (note the x86 addition).
Star mongrel_rails normally.

The problem is related to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>2007-12-20</strong>: RubyGems 1.0.0 is out, including <strong>mswin32</strong> fixes. There is a problem specific on how gem_plugin search for gems and their platforms, that makes <code>mongrel_service</code> gem fail.</p>
<p><span id="more-25"></span></p>
<p>The recommended update procedure will be:</p>
<ol>
<li>Update RubyGems using <code>gem update --system</code></li>
<li>Go into your <code>lib/ruby/gems/1.8/gems</code> and rename mongrel_service-0.3.3-mswin32 to mongrel_service-0.3.3-x86-mswin32 (note the x86 addition).</li>
<li>Star mongrel_rails normally.</li>
</ol>
<p>The problem is related to <code>gem_plugin</code> and how it determines de platform path. Also, reinstalling the gem shows other problems with dependencies trying to get compiled. I&#8217;ll solve them and do a proper release later today.</p>
<h3>Back to the informative post</h3>
<p>It seems a lot of folks are upgrading their <a href="http://www.rubyonrails.org/">Rails</a> installation. For the Windows-only guys out there: <strong>please wait</strong>.</p>
<p>I just hope all the Ruby folks on Windows don&#8217;t get mad at me<sup class="footnote"><a href="#fn1">1</a></sup>.</p>
<p>My fingers start hurting replying mails and closing duplicate tickets about this, so, making a short list of it:</p>
<ol>
<li>Rails 2.0.x forces you update to RubyGems 0.9.5</li>
<li>RubyGems 0.9.5 is broken for platforms that provides pre-built gems.</li>
<li>Mongrel provides a pre-built gem for those who don&#8217;t have a compiler under Windows (90% of the cases).</li>
<li>Even you get Rails installed, it wouldn&#8217;t <em>boot</em>, since it couldn&#8217;t get Mongrel running.</li>
<li>Folks start yelling at ruby-talk, mongrel-users and other places about this.</li>
</ol>
<h3>Please, hold your anxiety a bit</h3>
<ul>
<li>Rails guys did fix this (changeset <a href="http://dev.rubyonrails.org/changeset/8438">8438</a>)</li>
<li>A new Rails release (2.0.3 maybe?) is comming soon.</li>
<li>A new RubyGems version that fix this scenario is comming soon too (1.0)</li>
<li>Mongrel and all the gems related to it (mongrel, mongrel_service and fastthread) are being fixed to solve further issues with this <em>bad behavior</em></li>
</ul>
<h3>Why this chaos?</h3>
<p>Chaos is everywhere, and some times is good. <img src='http://blog.mmediasys.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>But honestly, this global <em>break</em> is a necessity: upcoming version of Ruby (1.9.1) will ship with RubyGems bundled. Part of this decision required automatic handling of platforms &#8212; remember the 6 or more listed gems for platforms you don&#8217;t care about? &#8212; the same is gone for good.</p>
<p>Automatic platform handling to cover all the platforms, OS and compilers Ruby run is complex. Some gems developers (including myself) were using the wrong platform to identify native pre-built gems. This also covers others gems like sqlite, mysql and ruby-debug to name a few.</p>
<p>This should have been fixed before, but 9K gems rubyforge provides is kind of difficult to track which one will break, don&#8217;t you think?</p>
<p>Anyway, just a simple summary of the situation.</p>
<p class="footnote" id="fn1"><sup>1</sup> Is not <strong>all</strong> my fault, ok?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mmediasys.com/2007/12/19/latest-rubygems-and-rails-is-a-deadly-combo/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Dise&#241;o Ventiuno &#8211; El producto de un buen equipo</title>
		<link>http://blog.mmediasys.com/2007/07/23/disenio-ventiuno-el-producto-de-un-buen-equipo/</link>
		<comments>http://blog.mmediasys.com/2007/07/23/disenio-ventiuno-el-producto-de-un-buen-equipo/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 17:18:45 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://blog.mmediasys.com/2007/07/23/diseo-ventiuno-el-producto-de-un-buen-equipo/</guid>
		<description><![CDATA[Hace un tiempo que no publico nada aqu&#195;&#173;, asi que aprovecho para comentar mi experiencia sobre Design 21: Social Design Network.

Los primeros d&#195;&#173;as de marzo, Manuel Aristar&#195;&#161;n y Michel Martens me contactaron para invitarme a participar en un proyecto que Area 17 &#8212; la agencia de dise&#195;&#177;o interactivo francesa con la cual realizaron Madame Figaro [...]]]></description>
			<content:encoded><![CDATA[<br />
<b>Fatal error</b>:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4864 bytes) in <b>/home/mmediasy/public_html/blog/wp-content/plugins/textile-2/class/Textile.php(3245) : runtime-created function</b> on line <b>1</b><br />
