Spain.rb


Mission

To break the language barrier and help promote the work of Spain-based Ruby(±Rails) developers by spreading the word about projects, gems, plugins, articles or other material created by its members, in the hope that they may find usefulness outside of the Spanish community.


blog posts

Ruby: DummyDropbox, mocking the Dropbox API calls. published 9 days ago by Fernando Guillén

Playing with the Dropbox API for an another experimental pet-project I needed to test how my mini-application was responding to different Dropbox contents. On the beginning I was configuring a real Dropbox account for testing but this was not agile and flexible. So this is because I decided to mock the dropbox ruby gem and this is because DummyDropbox has been [...]

continue reading >>


The definitive personal task manager (at least at the moment) published 14 days ago by Fernando Blat


How to generate a static version of a website using nanoc and nokogiri published 23 days ago by Jaime Iniesta



More than a year has passed since we organized EuRuKo 2009 on Barcelona, so we thought that it had come the time to shut down the Ruby on Rails web applications we used for its website (a custom registration app and a simplelog). We wanted to maintain an archive for them, but it had to be so simple that it required zero maintenance. So we thought, hey, let's just make a static H...

continue reading >>


Interviewed on Spanish Rails podcast published 26 days ago by Jaime Iniesta


Ruby on Rails has a large community of developers in Spain, which is growing day by day thanks in part to initiatives like Rails Hispano, a new Spanish podcast about Ruby on Rails.I was invited to participate on the latest episode, where I talked about my experience as a Ruby on Rails freelance. It was a pleasure to share the mic with Fernando Guillén, Raúl Murciano and Marcelino Lla...

continue reading >>


Ruby: FibberMailman, mocking the Net::POP3.start published about 1 month ago by Fernando Guillén

 
 
 
Lately I’m involved on projects that do a very intensive use of email accounts as input of information.
The use of mail in an automatic process is always a pain in the ass because of the huge casuistic and also for the difficulty to test it.
Nothing we can do with the first problem but for the second one here is my propose of a very simple Ruby Gem [...]

continue reading >>


Lightning Talk about the OneOfZombies project published about 1 month ago by Fernando Guillén

A few months ago I was on Krakow attending to the European Ruby Conference (aka EuRuKo).
There I had the opportunity to talk about one of my unfinished pet project OneOfZombies the Game.

continue reading >>


The importance of supporting native data types published about 1 month ago by Fernando Blat


Having fun with 37signals Draft published 2 months ago by Jaime Iniesta


Draft, the first 37signals app for the iPad lets you draw quick sketches and wireframes, using only your fingers. It's great, you only have two inks, white and red, and an eraser. Why more? You can also send your drawings to Campfire or by email. This is a great tool to quickly express your ideas, and I find that it's also very relaxing, just sit on the sofa and draw like a kid! Th...

continue reading >>


hashtag_retweet_bot published 2 months ago by Jaime Iniesta


hashtag_retweet_bot is a ruby bot that retweets all twits tagged by a certain hashtag. It's ideal for conferences, meetup groups, communities, etc. As an example, let's say you want to retweet every twit found with the hashtag #icecream every 5 minutes (300 seconds). This ruby gem will let you do it as easily as running: hashtag_retweet_bot icecream 300This bot was born as a ...

continue reading >>


hashtag_retweet_bot published 2 months ago by Jaime Iniesta


hashtag_retweet_bot is a ruby bot that retweets all twits tagged by a certain hashtag. It's ideal for conferences, meetup groups, communities, etc. As an example, let's say you want to retweet every twit found with the hashtag #icecream every 5 minutes (300 seconds). This ruby gem will let you do it as easily as running: hashtag_retweet_bot icecream 300This bot was born as a ...

continue reading >>


José Valim and Xavier Noria at Barcelona On Rails published 2 months ago by Jaime Iniesta


Permalink

| Leave a comment  »

continue reading >>


The Agile Samurai published 2 months ago by Jaime Iniesta



I've just finished reading The Agile Samurai (better said, the first 17 chapters that have been written as this book is still on beta), and I would like to share it with you as I think it's a nice book to read.
To be honest, I expected a bit more from a book with such a strong title, but I see that this book was intented for people who want to get a general idea of what the Agile de...

continue reading >>


Happy 4th birthday ASPgems published 2 months ago by Javier Ramírez

Four years ago I thought I was at the top of my career. The company I had co-founded was starting to look much like a nine to five job and I decided to resign and accept a great position as a post-sales engineer in FatWire, where I would have the chance to improve their content [...]

continue reading >>


United States, here we go published 3 months ago by Fernando Blat


theKidsArtGallery, the most awesome virtual Art Brut gallery published 3 months ago by Fernando Guillén

I have always loved the kind of paintings made for people that suppose don’t know how to paint, the drawings full of colors with aggressive strokes and absolutely non pretentious motive.
After a while I realized that there is a name for this kind of paintings: Art Brut, drawings made for people without art knowledge, the [...]

continue reading >>


Twitter must become in an open protocol published 4 months ago by Fernando Guillén

… if Twitter doesn’t do it, someone must to.
On a recent conversation with Raúl Murciano about the new improvements on the Twitter API I was defending the need of Twitter becoming an open protocol.
The first response could be “Why is this needed?, why don’t just use the Twitter platform?“, the answer is not easy to [...]

continue reading >>


How to use in-memory SQLite databse for Rails testing published 4 months ago by Emili Parreño


How to use in-memory SQLite database for Rails testing published 4 months ago by Emili Parreño


Desafío Abredatos 2010 published 4 months ago by Sergio Gil


Trinidad 0.8, gem extensions and database pooling published 4 months ago by David Calavera


Arduino: Phixter Visits, blinking a led each time your website receives a visit published 5 months ago by Fernando Guillén

PhixterVisits is a way to convert an user visit on your web site into a blinking led on your desktop.
I have received for my birthday present one of the most awesome presents a geek can received: an Arduino Workshop Kit.
The first experiment I did was, of course, a Hello World, and after that I build [...]

continue reading >>


SEO for developers published 5 months ago by Javier Ramírez

As a web developer, my work involves much more than just coding; many times I find myself covering topics such as user experience, scalability, reliability of the system, or metrics and analytics to track the acceptance of a site.
SEO is left many times on the hands of the marketing team, but there are many technical [...]

continue reading >>


Visibilidad de los métodos en Ruby published 5 months ago by Emili Parreño


iPhone Verb Conjugations published 6 months ago by Fernando Guillén

Attention: the iPhone Verb Conjugations is still not available on the AppStore, waiting for approval process.
VerbConjugations is simple iPhone application that tries to help the people that is learning Spanish to find out how a verb is conjugated.
With this application you can ask for any infinitive verb and you’ll obtain how this verb [...]

continue reading >>


Slides and video for my talk “La herramienta de desarrollo definitiva” in conferencia rails 2009 published 6 months ago by Javier Ramírez

I just realized I still hadn’t published in my blog the slides and video of my talk “La herramienta de desarrollo definitiva” in conferencia rails 2009, back in november.
My talk was a reflection about web development and the relative importance of the development tools. I was defending the idea of the individual with good practices [...]

continue reading >>


Links for 2010-02-17 [del.icio.us] published 6 months ago by Javier Ramírez

http://www.parkerfox.co.uk/labs/pixelperfect
Taps for Easy Database Transfers
Re: soap4r via https (ssl)

continue reading >>


Links for 2010-02-16 [del.icio.us] published 6 months ago by Javier Ramírez

FFFFOUND! | design work life - Part 2
FFFFOUND! | Raymond Biesinger - Illustrators & Artists Agents – Debut Art
FFFFOUND! | New DOOMDRIPS art print titled "DEFCON:DOOM" is now up at htt... on Twitpic
FFFFOUND! | this isn't happiness.™ Peter Nidzgorski, tumblr
FFFFOUND! | unione sarda : bomboland
FFFFOUND! | Raymond Biesinger - Illustrators & Artists Agents –...

continue reading >>


How many lentils are there in the jar? published 6 months ago by Fernando Guillén

Asking for a development estimation without minimal specification info is like guess how many lentils are there on a jar without even see it,
... offering specification info, then you can see the jar, and you have to guess how many lentils are there in it without open it
... let me the jar, and I’ll keep [...]

continue reading >>


Una nueva manera de ver los logs con Clarity published 7 months ago by Emili Parreño


Una nueva manera de ver los logs con Clarity published 7 months ago by Emili Parreño


Bye, bye Wordpress published 7 months ago by Emili Parreño


Bye, bye Wordpress published 7 months ago by Emili Parreño


IE cache for Ajax requests published 7 months ago by Javier Ramírez

A few days ago I ran into an issue that is now obvious but took me a while to figure out. I was programming a chat client and everything was working fine in Firefox and Chrome, but when I tested it on IE (6 and 8) things were not looking so good.
This chat is following [...]

continue reading >>


Adding other tools support in Hudson's rubyMetrics plugin published 8 months ago by David Calavera


Eclipse buttons not working on Ubuntu Karmic Koala published 8 months ago by Javier Ramírez

Lately I was experiencing a strange behavior when working with Eclipse/RadRails. Some of the buttons didn’t work anymore. I could click on them, but they’d just appear as selected, without performing any actions. I had to use the enter key to actually click on the button.
Since I had run an update some days ago, I [...]

continue reading >>


Loading several Rails applications into a single Tomcat container with Trinidad published 8 months ago by David Calavera


git bisect published 10 months ago by Sergio Gil


The Atom Exerciser on Heroku published 10 months ago by David Calavera


Conferencia Rails 2009 published 10 months ago by Fernando Blat


Charla sobre GIT el 4 de noviembre en Leganés published 10 months ago by Sergio Gil


Pasting code into vi published 11 months ago by Javier Ramírez

Every time I try to paste a big chunk of code into vi, it gets all messed up because of the autoindent. Each line gets indented taking the previous one as a reference, so when I try to paste something like..

global $wp_query;
parse_str($args, $r);
if (!isset($r['current'])) [...]

continue reading >>


DRYing a little bit the translation of your views with I18n published 11 months ago by Fernando Blat


Character string processing for computer programmers published 11 months ago by Emili Parreño


Character string processing for computer programmers published 11 months ago by Emili Parreño


Character string processing for computer programmers published 11 months ago by Emili Parreño

After my talk in Conferencia Rails 2008, Balint Erdi sent me an email with a very interesting link about character string processing for computer programmers that I forgot to publish and I’ve just found it casually. Is the first of a three-part essay, titled Characters vs. Bytes

continue reading >>


Ruby on Rails on unofficial Chrome OS published 11 months ago by Javier Ramírez

update: I thought this Chrome OS distribution was THE google distro. I was wrong. It’s just someone who used SUSE Studio to make a customized version of Open SUSE around the Chromium theme. With the site being on a google site and the code on a google code repository, I thought this was it, but [...]

continue reading >>


Ruby on Rails in Google Chrome OS published 11 months ago by Javier Ramírez

Chrome OS is by now just a bit more than a curiosity. You can go and download it, but be warned, all you are going to get is an Open Suse distribution with Chromium installed and a blue theme with a cute logo.
Starting the virtual from VirtualBox is easy. You create a new virtual media [...]

continue reading >>


Multiple rubygems versions, GEM_HOME and GEM_PATH published 11 months ago by Javier Ramírez

Installing rubygems is failrly easy and it’s great to have a package manager so you can forget about manually installing and upgrading the components you use. After installing a gem, you can require it from any ruby script and use it hassle-free. Well, given your ruby interpreter can find it.
When you install rubygems, a lot [...]

continue reading >>


Conferencia Rails 2009, just around the corner published 11 months ago by Fernando Guillén

 
Another year, another conference, the conference that opened my eyes to the amazing word of Ruby, there on 2007, is just tuning the last details.
Conferencia Rails 2009, this year bigger, more impressive, with new venue, bigger organization team, more energy, and asking to the english spoken community  to meet us with talks.
This year I am [...]

continue reading >>


EuRuKo 2009 videos are now available! published 11 months ago by Emili Parreño

You can already see the EuRuKo 2009 videos on blip.tv
http://euruko.blip.tv/

continue reading >>


EuRuKo 2009 videos are now available! published 11 months ago by Emili Parreño


EuRuKo 2009 videos are now available! published 11 months ago by Emili Parreño


Improving JRuby 1.9 compatibility published 11 months ago by David Calavera


Request log analyzer published 11 months ago by Fernando Blat


Coding on New York City published 11 months ago by Fernando Guillén

It’s done, I’ll be traveling with my angel to New York City next October. It won’t be a very short visit: 3 months. All the Autumn on New York.
I’m very excited, very stressed and very nervous, I know not one of this sensations is a pleasure sensation, but this is my way, I am a [...]

continue reading >>


Conferencia Rails 2009, call for papers published 11 months ago by Fernando Blat


Trivial friendly URL system for Ruby on Rails published about 1 year ago by Álvaro Bautista

Back to the times I was programming in PHP (it hasn’t been that long but it feels like an eternity has passed), I worked in a company own made CMS. One of my biggest headaches was tuning and reimplementing the friendly URL generator.
Having the need to implement friendly URLs for a little and very specific [...]

continue reading >>


The Rails Rumble Experience published about 1 year ago by Fernando Guillén

The software development is a box of wonderful surprises and the community I have found around Ruby on Rails is the most passionate I have never meet.
The last crazy geek stuff I have been involved has been the RailsRumble. The RailsRumble is a conquest where small web development teams has to show what they are [...]

continue reading >>


Video of my talk “Jruby On Rails” at the Sun Open Communities Forum published about 1 year ago by Javier Ramírez

I just knew the video of my talk about JRuby on Rails at the Sun Open communities Forum is already online. Funny how a google alert let me know this video has been published even before the official web page of the event was updated.
The talk is in Spanish and the slides I used [...]

continue reading >>


They don't understand published about 1 year ago by Sergio Gil


Using Facebooker with jQuery published about 1 year ago by Emili Parreño

Facebooker is a great plugin/gem for Rails which allows to connect Feacebook, use your API and build applications, but…. only works with Prototype.
Don’t worry, you can use Facebooker with jQuery easily. Find this code line in your layout
<%= init_fb_connect('XFBML') %>
and replace with
<%= init_fb_connect('XFBML', :js => :jquery) %>
And that’s all! Now Faceboo...

continue reading >>


Using Facebooker with jQuery published about 1 year ago by Emili Parreño


Using Facebooker with jQuery published about 1 year ago by Emili Parreño


OneOfZombies a brutal stupid 2D game published about 1 year ago by Fernando Guillén

OneOfZombies is an experiment proyect.
Don’t come here looking for game development knowledge or very pretty Ruby code design. This is just me playing with Ruby and with Gosu.
After a few weeks working and studding on my free time I can show you this brutal stupid 2D game.

This is not a quality project, this is not [...]

continue reading >>


Do You Believe In Magic? published about 1 year ago by Sergio Gil


How to use in_place_editor in Rails 2.x published about 1 year ago by Emili Parreño

Install the plugin
./script/plugin install git://github.com/rails/in_place_editing.git
We supose that we have a “State” model with a “name” attribute and we want to edit it “in place”. Add in your controller

class StatesController < ApplicationController
in_place_edit_for :state, :name
end

This method adds an action called “set_state_name” which updates t...

continue reading >>


How to use in_place_editor in Rails 2.x published about 1 year ago by Emili Parreño


How to use in_place_editor in Rails 2.x published about 1 year ago by Emili Parreño


It's not the framework, it's you published about 1 year ago by Sergio Gil


it’s not the framework, it’s you published about 1 year ago by Javier Ramírez

I’m getting tired already of the hype about Ruby on Rails and how it is better than any other framework past, present or future.
Sure Rails is a cute piece of software, and Ruby is a gorgeous language (supposing you are into programming languages, that is), but if you take a critical look at Rails, you [...]

continue reading >>


Rails load balancing with Apache and Trinidad published about 1 year ago by David Calavera


Jeweler vs rubyforge published about 1 year ago by David Calavera


jQuery: deleting the last word from textarea’s cursor published about 1 year ago by Fernando Guillén

Following with the completor suggestor I was playing, I had the need to delete the last word from cursor before the completor writes the suggestion selected.
Thanks to the previous function textarea.lastWord() it was  very easy:

jQuery.fn.deleteLastWord = function() {
this.each(function(){
if (this.selectionStart || this.selectionStart == '0'&#...

continue reading >>


jQuery: returning the last word from textarea’s cursor published about 1 year ago by Fernando Guillén

I was enjoying trying to develop a kind of completor suggestor on a textarea, I wanted it to jump when the tab key was pressed, that what easy with capturing the keydown event and the help of event.preventDefault.
But the thing what wasn’t such easy was the capturing the last word on the textarea from the [...]

continue reading >>


Tomcat-rails is now called Trinidad published about 1 year ago by David Calavera


it’s the end of the e-world as we know it published about 1 year ago by Javier Ramírez

Five years
I’ve been working for companies that didn’t last for so long. I’ve never been working in a company for so long come to think of it ;). I’ve had best friends that didn’t last for so long either and I’ve seen plenty of marriages finishing much earlier than that.
Living on the world we live, [...]

continue reading >>


sudo: rake: command not found published about 1 year ago by Javier Ramírez

I hate it when it happens, don’t you?
And it’s not only rake, but some other utilities too.
Bottom line is, in Ubuntu sudo is by default set to use a secure path. You can change the secure path if you are compiling from source, but we are talking Ubuntu here, the windows for the rest of [...]

continue reading >>


No SQL published about 1 year ago by Fernando Blat


Fixing fieldWithErrors behavior published about 1 year ago by Emili Parreño

Dealing with errors in Rails forms can be a hard task. When a form field has errors, ActionView wraps the input in a div of class “fieldWithErrors”. The result is something like this

<p><div class="fieldWithErrors"><input id="user_name" name="user[name]" type="text" value="" /></div></p>

A div inside a paragraph ?¿?¿? This behavoir can be very annoying and isn&...

continue reading >>


Fixing fieldWithErrors behavior published about 1 year ago by Emili Parreño


Fixing fieldWithErrors behavior published about 1 year ago by Emili Parreño


Show me where am I published about 1 year ago by Fernando Guillén

puts lambda {}

continue reading >>


Show me what is inside you published about 1 year ago by Fernando Guillén

puts class << self; self; end

continue reading >>


Modeling entity relationships in a non-relational scenario published about 1 year ago by Fernando Blat


My slides for “Jruby on Rails: Ruby on Rails sobre la JVM” published about 1 year ago by Javier Ramírez

It was interesting to be at the Sun Open Communities Forum and meet people I used to work with (or even teach to) as back in time as in 1996.
It was also interesting to have the opportunity to introduce Ruby and Ruby on Rails to Java developers and show them how they could use [...]

continue reading >>


Tomcat-rails, develop rails app within tomcat published about 1 year ago by David Calavera


Forcing I18n locale in a block published about 1 year ago by Fernando Blat


Tomcat-rails, develop rails app within tomcat published about 1 year ago by David Calavera


Speaking about JRuby on Rails at the Sun Open Communities Forum published about 1 year ago by Javier Ramírez

I’ve been invited to speak about JRuby on Rails at the Sun Open Communities Forum. This event is the evolution of the former editions of OpenJavaDay/OpenSolarisDay, revamped to include more Open Source communities.
Apart from the predictable “all-things-java” sessions, this year there are some interesting labs and talks about MySQL Scalability, REST, AJAX, the cloud, [...]

continue reading >>


Ruby: Handling fixed string lengths and UTF-8 published about 1 year ago by Sam Lown

Until Ruby 1.9 is supported by your favorite plugins and gems, proper UTF-8 support in your ruby code is a serious challenge. If, like me, you don’t have time to wait, the following really simple code snippet should help you to at least fix the sprintf problem of fixing the lengths of strings with unicode characters.

# UTF-8 safe operations for setting a string width
# Aligns to lef...

continue reading >>


install nokogiri and libxml on ubuntu published about 1 year ago by Javier Ramírez

a quick one..
the scenario:
you want to install nokogiri on ubuntu but you cannot get the gem to install because of unmet dependencies
the solution:
sudo apt-get install libxml2 libxml2-dev libxslt1-dev
sudo gem install nokogiri
the end

continue reading >>


Define index lengths in your migrations published about 1 year ago by Emili Parreño

Defining an index length is a common practice in order to avoid large data indexes, and improve performance. Some time ago, I sent a patch to Rails core, wich added the functionality to define index lengths in the migrations. For example:
add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :limit => 10)
While I wait a decission from Rails [...]

continue reading >>


Define index lengths in your migrations published about 1 year ago by Emili Parreño


Define index lengths in your migrations published about 1 year ago by Emili Parreño


Migrating to acts_as_taggable_on from acts_as_taggable_on_steroids published about 1 year ago by Sam Lown

The Acts As Taggable On Steroids plugin for Rails has certainly been around the block a few times, I indeed have been using it in many of my projects for a few years. Now the time has come however where the lack of named_scope support is more than a minor irritation, and its time to move on: Acts As Taggable On is a fine replacement with all the named scope magic and additional context support ...

continue reading >>


How to import data from CSV files in Rails published about 1 year ago by Emili Parreño

CSV is commonly used to import data from an external source. You can populate your Rails applications with emails, user names, phone numbers etc. from other applications, databases, excel files…
Let me show you an example.

#users.csv
kevin, kevin@gmail.com
Jhon, jhon@gmail.com

require 'csv'
CSV.open('users.csv', 'r').each do |row|
User.create(:username => row[0], :email =>...

continue reading >>


How to import data from CSV files in Rails published about 1 year ago by Emili Parreño


How to import data from CSV files in Rails published about 1 year ago by Emili Parreño


EuRuKo 2009 is over! published about 1 year ago by Emili Parreño

The European Ruby Conference is over. As a member of the organizing team, I would like to thank you for coming, and for contributing to the success of Euruko 2009.
We’ve worked hard the lasts few months to organize a successful event, and it has been fantastic to read your positive comments, and confirming that you [...]

continue reading >>


EuRuKo 2009 is over! published about 1 year ago by Emili Parreño




Contact

The best way to contact the members of Spain.rb is through our twitters or blogs. You can also find us at most ruby-related mailing lists and irc channels.


Proudly powered by Planetoid