<?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>babinho&#039;s weblog</title>
	<atom:link href="http://babinho.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://babinho.net</link>
	<description></description>
	<lastBuildDate>Wed, 04 Apr 2012 12:45:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Importance of installing your own development machine</title>
		<link>http://babinho.net/2012/04/importance-of-installing-your-own-development-machine/</link>
		<comments>http://babinho.net/2012/04/importance-of-installing-your-own-development-machine/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 12:45:38 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=103</guid>
		<description><![CDATA[If you are a software developer like me, every once in awhile comes the opportunity to install your new development machine. Some of the causes can be a new job, new computer or just reinstalling your current computer. I am trying to emphasize the importance of installing your own machine, just like Jedi knights have [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a software developer like me, every once in awhile comes the opportunity to install your new development machine. Some of the causes can be a new job, new computer or just reinstalling your current computer.</p>
<p>I am trying to emphasize the importance of installing your own machine, just like Jedi knights have to build their own lightsabers, you should be competent enough to install the required software on your development machine.</p>
<p>I will try not to go into platform specific rants or anything, just a guideline on how to do it.</p>
<p>1. Know your OS &#8211; be it windows, linux or osx, please be familiar with the os you are planning to develop on, if you get stuck, search for some tutorials on the web. You should be very friendly with the command line, if you are planning to use linux, and even in some cases osx.</p>
<p>2. Know your platform &#8211; be it ruby, java, python, .net or anything else, learn how to install the basic tools to get you running, you have great video tutorials for just about anything, so go ahead and watch them.</p>
<p>3. Don&#8217;t be afraid to ask someone &#8211; take this one with caution, it is ok to ask for an advice, or if you get stuck, but never ask another developer to install some of the tools for you, as you then seem incompetent in their eyes.</p>
<p>And do try to follow some of the people creating the technology you are using on social networks, you can see some tips and tricks, update and version release announcements and everything else. Looking at a few cat pictures is sure worth it considering the knowledge you are getting from these people.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2012/04/importance-of-installing-your-own-development-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploying Rails applications on Windows</title>
		<link>http://babinho.net/2011/10/deploying-rails-applications-on-windows/</link>
		<comments>http://babinho.net/2011/10/deploying-rails-applications-on-windows/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 06:11:33 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[rails-on-windows]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=99</guid>
		<description><![CDATA[Due to some legacy issues, and HP workstations being shit that you can&#8217;t turn the hardware virtualization on, i had an issue with one client regarding speed and loading time of an application. My common deployment server is running Ubuntu on VMWare or Oracle VBox, passenger + nginx, or apache even. But, this &#8220;server&#8221; is [...]]]></description>
			<content:encoded><![CDATA[<p>Due to some legacy issues, and HP workstations being shit that you can&#8217;t turn the hardware virtualization on, i had an issue with one client regarding speed and loading time of an application. My common deployment server is running Ubuntu on VMWare or Oracle VBox, passenger + nginx, or apache even. But, this &#8220;server&#8221; is just a regular machine(people here don&#8217;t want to invest in real hardware, or just don&#8217;t have the money).</p>
<p>So i had to deploy the app on windows 7, and i will show you how.</p>
<p>First, there are few steps you have to take care of:</p>
<p>1. Install Ruby with the ruby installer <a href="http://rubyinstaller.org/downloads/">http://rubyinstaller.org/downloads/</a></p>
<p>2. Install Ruby DevKit from the same source(this will be needed for you to compile some native binaries)</p>
<p>3. Install Thin server(gem install thin)</p>
<p>4. Set up dropbox deployment for your application(i know this is monkeypatching as hell, but if it works&#8230;) as described on <a href="http://wekeroad.com/danger-danger/git-and-dropbox-sitting-in-a-tree" target="_blank">Rob Conery&#8217;s blog</a></p>
<p>5. Test the app and make sure everything is working ok, (run rails server), then thin start -e production, just to make sure everything is ok, and all of your gems work on windows(fix or replace the ones that don&#8217;t)</p>
<p>6. Set up the task scheduler(this is a fine piece of software on Win 7 and up) as described  <a href="http://unicornless.com/systems-administration/run-thin-as-windows-service" target="_blank">here</a>, to run rails application almost as a windows service( you start with &#8216;thin start -e production -p 80 -c &#8220;path_to_your_app&#8221; &#8216;)</p>
<p>7. Write a nifty batch script that will restart the server, run migrations, compile the assets and whatnot.</p>
<pre>

cd "path_to_your_app"

bundle exec rake db:migrate RAILS_ENV=production

bundle exec rake assets:precompile

schtasks /End /TN "name_of_your_task_in_scheduler"

schtasks /Run /TN "name_of_your_task_in_scheduler"
</pre>
<p>8. After you pull to your dropbox synced repository, login to the server and execute the batch file from there to almost automate the deployment process.</p>
<p>I know this is not capistrano, and cap deploy, and it is hacked as it can be, and also, it works, it&#8217;s a small client so i don&#8217;t expect much trouble with this.</p>
<p>Lesson here: Try as much as you can to deploy your rails server on a linux server, best in a virtual machine. But if HP messes with you and you have some shitty hardware running windows, this is the best way i have found. If anyone has anything better, put it into comments, i&#8217;m happy to make my life easier.</p>
<p>References:</p>
<p>1. <a href="http://wekeroad.com/danger-danger/git-and-dropbox-sitting-in-a-tree">http://wekeroad.com/danger-danger/git-and-dropbox-sitting-in-a-tree</a></p>
<p>2. <a href="http://unicornless.com/systems-administration/run-thin-as-windows-service">http://unicornless.com/systems-administration/run-thin-as-windows-service</a></p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/10/deploying-rails-applications-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preventing users from exiting a form on your website with JQuery</title>
		<link>http://babinho.net/2011/10/preventing-users-from-exiting-a-form-on-your-website-with-jquery/</link>
		<comments>http://babinho.net/2011/10/preventing-users-from-exiting-a-form-on-your-website-with-jquery/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 19:09:57 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=89</guid>
		<description><![CDATA[I have encountered a problem with users on a webapp that i co-created. The users would click back after entering data in a form, or close the current tab or something. They were so used to client-server workflow, with open connections to the database that prevented that kind of actions. So i got handed the [...]]]></description>
			<content:encoded><![CDATA[<p>I have encountered a problem with users on a webapp that i co-created. The users would click back after entering data in a form, or close the current tab or something. They were so used to client-server workflow, with open connections to the database that prevented that kind of actions. So i got handed the assignment to prevent the users from doing almost anything but submitting on a data entry form without a notice.</p>
<p>It seemed as a hell of a solution, but i managed to make a simple plugin that works on all major browsers, except Opera. Using window.onbeforeunload, we can prevent the user from doing anything that would hurt their unsaved data. you just load the javascript file, put a tag into your forms that you want to protect and it works out of the box with JQuery.</p>
<pre>
var isSubmitted = false;
window.onbeforeunload = function() {
  var message = "You could have unsaved changes!";
  if ($('form[data-validate-exit="true"]').length &gt; 0)
  {
    if (!isSubmitted)
    {
      return message;
    }
  }
}
document.ready = function() {
  $('form[data-validate-exit="true"]').find('button[type="submit"]').click(function() {
    window.isSubmitted = true;
  });
}
</pre>
<p>The message doesn&#8217;t show on firefox, but a convenient one will show, enough to warn the user on his actions.</p>
<p>The html code in your form should be like this:</p>
<pre>

&lt;form data-validate-exit="true"&gt;

Your html here

&lt;/form&gt;
</pre>
<p>One friendly suggestion if you follow this path, after you implement this on any of your web apps, use Opera for development, or comment the stuff out for your own sake, you will loose your mind clicking on the leave validations.</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/10/preventing-users-from-exiting-a-form-on-your-website-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speaking at a conference with no time to prepare</title>
		<link>http://babinho.net/2011/10/speaking-at-a-conference/</link>
		<comments>http://babinho.net/2011/10/speaking-at-a-conference/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 16:36:57 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=82</guid>
		<description><![CDATA[I was surprised to know that i am presenting a product this week at the oracle user conference HROUG.hr A colleague and me were supposed to hold a talk about creating our latest web app, a nursery management app created using Ruby on Rails and Oracle XE. As we thought, the talk was canceled and [...]]]></description>
			<content:encoded><![CDATA[<p>I was surprised to know that i am presenting a product this week at the oracle user conference <a title="Croatian Oracle User Group" href="http://www.hroug.hr" target="_blank">HROUG.hr</a></p>
<p>A colleague and me were supposed to hold a talk about creating our latest web app, a nursery management app created using Ruby on Rails and Oracle XE. As we thought, the talk was canceled and we were free of all obligation. But no, this saturday, 5 days before the talk, i was reviewing the agenda and found out the talk is on. So what can i do?</p>
<p>I will walk you through the steps, though they shouldn&#8217;t be used unless you are in a crunch, and it is not longer than an hour, luckily my talk is only half an hour.</p>
<p>1. Gather as much irrelevant info about the company and the client(our somewhat of a manager sorted that out)</p>
<p>2. If you are the developer, try to talk as much as you can about the technology and its integration( I love Rails so that is no problem )</p>
<p>3. Scrape out the basic workflow of the application you are presenting, user experience and why is something done in that way.</p>
<p>4. Take as much screenshots as it takes</p>
<p>5. Talk about details in the application, and finally leave at least 5 minutes for the audience to ask questions.</p>
<p>I managed to cramp all that into 30 minutes, i will update this post after i&#8217;m done thursday morning, to write how the talk went.</p>
<p>Lesson for everyone: Know your talking schedule at least one month before you are doing a talk, this way you can prepare and practice.</p>
<p>Update: The talk went surprisingly well, the hall was almost full, with 24 people listening. I haven&#8217;t got my reviews yet, but i feel they will be great for my first conference talk.</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/10/speaking-at-a-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.1 JQuery-UI</title>
		<link>http://babinho.net/2011/10/rails-3-1-jquery-ui/</link>
		<comments>http://babinho.net/2011/10/rails-3-1-jquery-ui/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 08:05:23 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[jquery-ui rails]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=77</guid>
		<description><![CDATA[If you are considering the upgrade to Rails 3.1.x and you wish to include the JQuery-UI in your web application follow these simple steps: Load jquery-ui in your app/assets/javascripts/application.js //= require jquery //= require jquery_ujs //= require jquery-ui //= require_tree . Pick and download a nice theme from: JQuery-UI themes site Copy jquery-ui-1.8.16.custom.css(version number could differ) [...]]]></description>
			<content:encoded><![CDATA[<p>If you are considering the upgrade to Rails 3.1.x and you wish to include the JQuery-UI in your web application follow these simple steps:</p>
<p>Load jquery-ui in your <em>app/assets/javascripts/application.js</em></p>
<pre>
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .
</pre>
<p>Pick and download a nice theme from: <a title="JQuery-UI themeroller" href="http://jqueryui.com/themeroller/" target="_blank">JQuery-UI themes site</a></p>
<p>Copy jquery-ui-1.8.16.custom.css(version number could differ) to your <em>vendor/assets/stylesheets</em> folder as <em>jquery-ui.css </em>(This will save you time later when you are updating or changing the theme) and include it in your <em>app/assets/stylesheets/application.css</em></p>
<pre>

*= require_self
*= require jquery-ui
*= require_tree .
</pre>
<p>Copy images from the images folder to <em>vendor/assets/images</em></p>
<p>Modify <em>vendor/assets/stylesheets/jquery-ui.css</em> and replace &#8220;images/&#8221; to &#8220;/assets/&#8221;</p>
<p>Now that you have everything set up and ready, go ahead and use the fancy JQuery-UI plugins</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/10/rails-3-1-jquery-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Readonly checkboxes with JQuery</title>
		<link>http://babinho.net/2011/10/readonly-checkboxes-with-jquery/</link>
		<comments>http://babinho.net/2011/10/readonly-checkboxes-with-jquery/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 06:16:07 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[rails jquery coffeescript]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=71</guid>
		<description><![CDATA[I have encountered a problem where i needed to disable some checkboxes on my forms. As you know, a disabled html item by design isn&#8217;t going to be posted back. So i needed to figure out another solution. So with the disabled tag, we have a readonly tag, which just blurs the checkbox, but lets [...]]]></description>
			<content:encoded><![CDATA[<p>I have encountered a problem where i needed to disable some checkboxes on my forms. As you know, a disabled html item by design isn&#8217;t going to be posted back. So i needed to figure out another solution. So with the disabled tag, we have a readonly tag, which just blurs the checkbox, but lets the user click on it and change the value(i was testing this in Chrome, i don&#8217;t know what happens in other browsers).</p>
<p>The solution is:</p>
<p>1. Make your checkboxes readonly by setting the readonly attribute to true</p>
<pre>
&lt;%= check_box_tag "some_id", :readonly =&gt; true %&gt;
</pre>
<p>2. Put this javascript in your document.load so the click will be overridden:</p>
<pre>
// Javascript:

$(':checkbox[readonly="readonly"]').click(function() {
return false;
});

// Coffeescript:

$(':checkbox[readonly="readonly"]').click -&gt;
false
</pre>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/10/readonly-checkboxes-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autocomplete fields in Rails 3.1 with JQuery-UI pt. 2</title>
		<link>http://babinho.net/2011/05/autocomplete-fields-in-rails-3-1-with-jquery-ui-pt-2/</link>
		<comments>http://babinho.net/2011/05/autocomplete-fields-in-rails-3-1-with-jquery-ui-pt-2/#comments</comments>
		<pubDate>Mon, 16 May 2011 21:05:49 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=64</guid>
		<description><![CDATA[As i have written in my previous post, i&#8217;m playing with autocompletion in my web app. I have found some new tricks, that will speed up the process. Never liked the find_by_name implementation, but as this example is derived from jquery.autocomplete plugin behavior, i had no other way. Did some more exploring today and here [...]]]></description>
			<content:encoded><![CDATA[<p>As i have written in my previous post, i&#8217;m playing with autocompletion in my web app. I have found some new tricks, that will speed up the process. Never liked the find_by_name implementation, but as this example is derived from jquery.autocomplete plugin behavior, i had no other way. Did some more exploring today and here is what i found out.<br />
Because you are using json response on the ajax controller, and JQuery-UI autocomplete handles it perfectly, you can create a hidden field, and put the user_id there, so you have one less request to the database whena you are saving your record.<br />
The improved model:</p>
<pre>
class Post < ActiveRecord::Base
  belongs_to :user
  attr_accessor :user_name
  def user_name
    user.name if user_id
  end
end
</pre>
<p>And the part in your view that i left out the last time, but this one is just better in my opinion:</p>
<pre>
&lt; %= f.label :user_name %&gt;&lt;br /&gt;
&lt; %= f.text_field :user_name %&gt;
&lt; %= f.hidden_field :user_id %&gt;
</pre>
<p>Also, you have to edit the CoffeScript that does the magic for you, so it will return the id into the hidden field:</p>
<pre>
$(document).ready ->
  $('#post_user_name').autocomplete
    source: "/ajax/users"
    select: (event,ui) ->
      $("#post_user_id").val(ui.item.id)
</pre>
<p>An easier way of doing it, and leaner on the database queries, at least one less.</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/05/autocomplete-fields-in-rails-3-1-with-jquery-ui-pt-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autocomplete fields in Rails 3.1 with JQuery-UI</title>
		<link>http://babinho.net/2011/05/autocomplete-fields-in-rails-3-1-with-jquery-ui/</link>
		<comments>http://babinho.net/2011/05/autocomplete-fields-in-rails-3-1-with-jquery-ui/#comments</comments>
		<pubDate>Fri, 13 May 2011 21:08:28 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=49</guid>
		<description><![CDATA[Almost every time you create a web application you will have to add at least one autocomplete field in your application. Here is one of the possible ways of doing it. I will be using Rails 3.1.beta1, JQuery-UI and CoffeScript to make it happen. I have two models in my app, post(title, body) and user(name, [...]]]></description>
			<content:encoded><![CDATA[<p>Almost every time you create a web application you will have to add at least one autocomplete field in your application. Here is one of the possible ways of doing it. I will be using Rails 3.1.beta1, JQuery-UI and CoffeScript to make it happen.</p>
<p>I have two models in my app, post(title, body) and user(name, email) and i want to select user with autocomplete when creating the post. As a prerequisite, i have created 100 users with <a title="Faker ruby gem" href="http://faker.rubyforge.org/" target="_blank">Faker</a> gem.</p>
<p>First, you have to add JQuery-UI to your <em>app/assets/javascripts/application.js</em> file so it will look like this:</p>
<pre>

//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require_tree .
</pre>
<p>Next, we set up an ajax controller with <em>rails g controller ajax users</em> to have a controller with users action and automatic route. I like to call the controller ajax, or autocomplete, to keep things organized for this. Here is the ajax controller with everything just rendered into json that suits JQuery-UI autocomplete format</p>
<pre>

class AjaxController &lt; ApplicationController
&nbsp;&nbsp;def users
&nbsp;&nbsp;&nbsp;&nbsp;if params[:term]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;like= "%".concat(params[:term].concat("%"))
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;users = User.where("name like ?", like)
&nbsp;&nbsp;&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;users = User.all
&nbsp;&nbsp;&nbsp;&nbsp;end
&nbsp;&nbsp;&nbsp;&nbsp;list = users.map {|u| Hash[ id: u.id, label: u.name, name: u.name]}
&nbsp;&nbsp;&nbsp;&nbsp;render json: list
&nbsp;&nbsp;end
end
</pre>
<p>Next we set up the post model with user_name attribute getter and setter</p>
<pre>

def user_name=(name)
&nbsp;&nbsp;user = User.find_by_name(name)
&nbsp;&nbsp;if user
&nbsp;&nbsp;&nbsp;&nbsp;self.user_id = user.id
&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;errors[:user_name] &lt;&lt; "Invalid name entered"
&nbsp;&nbsp;end
end
def user_name
&nbsp;&nbsp;User.find(user_id).name if user_id
end
</pre>
<p>After this, it&#8217;s all CoffeScript which i add to <em>app/assets/javascripts/application.js.coffee</em></p>
<pre>

$(document).ready -&gt;
&nbsp;&nbsp;$('#post_user_name').autocomplete({source: "/ajax/users"})
</pre>
<p>And that is everything needed for a nice autocomplete, be sure to include a suitable JQuery-UI theme in your <em>vendor/assets/stylesheets</em> folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/05/autocomplete-fields-in-rails-3-1-with-jquery-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.1 beta on Ubuntu</title>
		<link>http://babinho.net/2011/05/rails-3-1-beta-on-ubuntu/</link>
		<comments>http://babinho.net/2011/05/rails-3-1-beta-on-ubuntu/#comments</comments>
		<pubDate>Fri, 13 May 2011 19:01:29 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=43</guid>
		<description><![CDATA[As i have written before, i use Ubuntu for my rails development, and have been using it as my main OS last 10 months. I have been trying all the rails 3.1 beta hype and encountered a problem running 3.1 apps on my machine. The main problem is with CoffeScript and its compiling into &#8220;real&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>As i have written before, i use Ubuntu for my rails development, and have been using it as my main OS last 10 months. I have been trying all the rails 3.1 beta hype and encountered a problem running 3.1 apps on my machine.</p>
<p>The main problem is with CoffeScript and its compiling into &#8220;real&#8221; JavaScript. So here is an easy way to enable your machine for rails 3.1. You have to install Node.js on your machine( i have tried all other Javascript runtimes with no luck). All the instructions for other platforms are listed on the project&#8217;s <a title="Node.js GitHub" href="https://github.com/joyent/node/wiki/Installation" target="_blank">GitHub page</a>, i will include only the ubuntu procedure here.</p>
<pre>

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:jerome-etienne/neoip

sudo apt-get update

sudo apt-get install nodejs
</pre>
<p>And that is all, hope i have made your life easier at least a bit.</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/05/rails-3-1-beta-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving to WordPress</title>
		<link>http://babinho.net/2011/02/moving-to-wordpress/</link>
		<comments>http://babinho.net/2011/02/moving-to-wordpress/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 10:19:36 +0000</pubDate>
		<dc:creator>babinho</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://babinho.net/?p=38</guid>
		<description><![CDATA[I just moved my blog from DasBlog to WordPress. The main reason for this was the expiration of my Win hosting account, and me phasing  my development to opensource. I used DasBlog to BlogML converter for the conversion of posts, you have to download the whole folder and then point the tool at it. After [...]]]></description>
			<content:encoded><![CDATA[<p>I just moved my blog from DasBlog to WordPress. The main reason for this was the expiration of my Win hosting account, and me phasing  my development to opensource.</p>
<p>I used <a title="DasBlog to BlogML converter" href="http://merill.net/2008/03/dasblog-to-blogml-converter/" target="_blank">DasBlog to BlogML converter</a> for the conversion of posts, you have to download the whole folder and then point the tool at it.</p>
<p>After that, installed <a title="BlogML Importer" href="http://wordpress.org/extend/plugins/blogml-importer/" target="_blank">BlogML Importer</a> plugin for WordPress, and used that in the import script. I&#8217;m very happy that the process worked like a charm.</p>
<p>Now that everything works again, i can dedicate myself to my new love, Ruby and Rails development.</p>
]]></content:encoded>
			<wfw:commentRss>http://babinho.net/2011/02/moving-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

