10 Places left for the rails rumble
The rails rumble team inform us (on their blog) that they manage to open more Rails Rumble seat.
There are now 10 seat left. Hurry up.
The rails rumble team inform us (on their blog) that they manage to open more Rails Rumble seat.
There are now 10 seat left. Hurry up.

Use Git and GitHub on Netbeans (image source : http://www.flickr.com/photos/boboroshi/2591305062/ )
For three months now I’ve managed to migrate my project on the Git version control system.
Just found, yesterday night, a Git plug in for Netbeans. It’s the first version, not all the commands are implemented, but, you will have the commit one, the diff one and the update. For the branches and the tag, you will need to wait a little.
Why use a version control :
A version control is a must have for every kind of project development.
A version control will help you to :
And more and more and more …
The most commonly used in companies are : CVS or his fork Subversion (svn), Mercurial, Git.
You can find a good review about seven different version control systems on Smashing Magazine.
What is Git :
Git is a distributed version control system. It means that every developer of the team own a copy of the repository on their disk.
This is the one chosen by the Ruby on Rails core team development and now a lot of rails plugins (Before it was SVN).
Pro :
Cons :
You can find a Git cheat sheet here and the official website is here.
What’s GitHub :
GitHub is an ‘easy to open’ and cheap Git server repository provider.
Instead of managing a repository server (and the data backup/security/cost … who come with) you can open an account with GitHub and manage free public repositories.
If you need to have some private projects, you can sign up for a pay monthly account from 7$ a month.
It’s really easy to use, and if you’ve already used another version control system the ‘learning curve’ will be very short.
Your repository will be on safe hands, and will be backup on two others servers, and pushing code is only allowed if you give them your SSH keys.
So, and this Netbeans Git plugins :
Netbeans 6.5 comes with some source control plugins, but there ISN’T ANY for Git.
This issue is corrected with the NBGit plugin, purposed by Jonas.
You can find the plugin here and the git repository here. The official website is on http://nbgit.org.
For the moment there are only the basic operations like Commit/Update and Diff, but I hope branches and tags will come quickly.
I tried it yesterday night, it worked fine for me. Perhaps this plugins will help me to decide definitively between my Gedit a la Textmate and Netbeans.
To develop on Ruby on Rails on my Linux platform, I use to code with NetBeans 6.1.
This editor is absolutely fantastic and powerful. Today the 6.5 is out, it’s just installed on my computer.
All my projects were imported, my config files also (if you have the textmate color plugin, you’ll have color problems ..).
There are some improvement also on the PHP side and the JavaScript side, so lets give a look.
Clik here to see the official announcement and the download page
Edit :
This is a fact, Ruby on Rails 2.1 rocks …
But there has been a lot of evolutions since the 1.x versions, and the problem is that a lot of Rails tutorials available on the Internet are for the 1.x.
So here is a quick collection on how-to begin with Rails 2.x, and what documents you should have a look at:
You can now see what my Rails bibliography looks like. I also have other pdf titles and pdf tutorials that I’ll share with you later.
Rails 2.1 is really good, but if you want to be aware of its power, you need to spend some time on reading books … don’t be blind by the scaffold :D.
I have been looking for 3 days how to search on Wikipedia with Ruby.
After having found the solution, this is really simple :
1. I found MediaCloth
MediaCloth is a MediaWiky syntax parser. You feed it with a media wiki syntax and it’s supposed to return a correct html.
It works, it’s not perfect but it works.
There is a gem so : gem install mediacloth will do the job.
2. MediaCloth were working, so let’s code an ugly solution
def ugly feed_url = 'http://en.wikipedia.org/w/api.php?action=opensearch&search=avignon' output = "Avignon" open(feed_url) do |http| response = http.read output += response end @result = MediaCloth::wiki_to_html(output) end
It was working, nearly, but it was very ugly.
3. The Wikipedia Client
After that I found the Wikipedia Client (google source code website).
Install it like every plugin : ruby script/plugin install http://wikipedia-client.googlecode.com/svn/trunk/wikipedia
If you try to run the example now, it will crash, you need to install the json gem : gem install json
Then try
def pretty
page = Wikipedia.find('peanut')
@title = MediaCloth::wiki_to_html(page.title)
@content = MediaCloth::wiki_to_html(page.content)
end
And now, everything is working like a charm.
Just be careful that the MediaWiki api solution is in beta for the moment. So don’t use it in production ![]()