Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under ruby...

imon says...

ruby -e '%x[uname -i].sub!("\n", "")'

Filed under: ruby

Top 50 Guides for Beginning Web Developers

A long list of resources covering nearly all aspects of web development, from different languages up to usability, design and marketing.

Filed under: CSS, Design, HTML, Java, Ruby, Tutorial, Usability, Webdevelopment

riduidel says...

Comme je le disais dans mon précédent message, j'ai perdu un des ordinateurs que j'utilisais à la maison.
Il s'agissait d'un portable Sony, pour être précis, un VGN-FE31Z qui m'avait été gracieusement fourni par mon employeur, lequel a choisi de m'en interdire l'usage.
Du coup, je suis retourné sur mon iBook. Cet iBook, j'ai essayé de le moderniser avec un passage à Leopard. Las, les 512 Mo de RAM de ce vieil engin ne suffisent plus à faire tourner l'OS. Donc, je crois que je vais le revendre, et l'échanger contre un portable encore plus petit (mais nettement moins cher) : Un Acer Aspire One 751.
Alors vous vous demandez sans doute pourquoi je vais prendre une telle brouette.
La réponse tient en un mot : Wii.
En effet, comme tout utilisateur de loisirs numériques, ma quête de puissance informatique était liée uniquement à des besoins vidéo-ludiques.
Maintenant que j'ai une console parfaite pour cet usage, le portable ne me servira plus qu'à lancer Opera et faire du développement avec Eclipse. Et pour ça, je sais d'expérience qu'il faut beaucoup moins de puissance que ce qu'on croit ... Puisque j'ai longtemps utilisé Eclipse sur un PIII 933 !

Filed under: bureau, mac, portable, ruby

riduidel says...

Suite à des circonstances que je vais sans doute prochainement détailler, j'ai perdu l'un des ordinateurs que j'utilisais à la maison.

J'ai dû tenter de faire passer certains services de cet ordinateur vers mon portable "historique" : un vieux iBook G4 (bon, vieux, pour de l'informatique).
Je dis vieux même si Tiger, à l'époque, m'avait paru le comble de la branchitude. Hélas, ce que je n'avais pas prévu, c'est ce que Jeff Artwood appelle le côté dongle d'un mac. Enfin, avec une certaine nuance. En effet, s'il parle du matériel, le problème tient pour moi au logiciel, et surtout au système : le jour où le monde Mac est passé à Leopard, beaucoup de choses se sont mises, discrètement d'abord, et de plus en plus vite ensuite, à marcher moins bien.
Il y a d'abord eu Qicksilver, puis les logiciels iLife (ce qui n'était pas vraiment gênant). Maintenant, c'est Ruby et Eclipse qui ne supportent plus ma brouette. Et là, c'est rédhibitoire. Sans ça, je ne peux plus faire grand chose : mon lifestream s'appuie sur webgen, qui est passé à Ruby 1.8.5 là où mon iBook n'a que le 1.8.2, et Eclipse réclame à corps et à cris Leopard.
Il ne me reste donc plus beaucoup de solutions (deux, en fait) :
  1. Me passer de tout ça et trouver des alternatives
  2. Trouver un CD de Leopard et faire la mise à jour
D'accord, la seconde méthode est moins honnête, et va faire du mal à ma brouette, mais je vais quand même la tenter. Si ça ne marche pas, tant pis, je passerais à un dual boot avec un quelconque Linux me permettant d'utiliser mes jouets favoris !
Mais avant, opération d'urgence : je dois exporter ma bibliothèque photo pour éviter qu'elle ne soit mangée lors du déménagement (ce qui me permettra par ailleurs de la remettre au carré question IPTC/WMP/...

Filed under: java, mac, ruby

Rosalind says...

 

 
I think I shall send a lovely photo of my ruby-colour Cavalier King Charles Spaniel puppy Rollo, for my first post using posterous! Here he is!
 
 

 

Filed under: animal, cavalier, cavalier king charles spaniel, disapprove, disapproves, disapproving, dog, dogs, king charles, pet, pets, pup, puppeh, puppehs, puppies, puppy, ruby, spaniel


Agile Debugging Rails is an ongoing effort to document problems you can encounter whilst building a Ruby on Rails application and possible solutions. It's free and welcomes any contributions (fork away).

Following my last post, I decided to upgrade my little gist into a full git repository http://github.com/matthewford/agile_debugging_rails/.

Filed under: debugging, rails, ruby

2296789407_20eb4c7eee.jpg?v=0

I've been re-factoring / debugging a 'legacy' Rails application, trying to bring it up to scratch and along the way I'll be keeping tabs on what to look out for in this gist: http://gist.github.com/130110 (fork away)

Hopefully it'll grow into a nice collection of common debugging tips. I've been hanging in #rubyonrails and time and time again the same problems keep cropping up, so hopefully this will be useful to someone.

Filed under: rails, ruby

teeparham says...

A couple months ago I posted Ruby Editor War: Textmate vs Netbeans. It turns out I like JetBrains' RubyMine better than either Textmate or Netbeans.

I've used C# for years, and I'm comfortable with the visual conventions similar to the Visual Studio IDE with JetBrains' awesome Resharper add-on. RubyMine's layout, especially the test/debug pane feels natural to me. The overwhelming benefit of RubyMine to me was the total ease of integrated debugging in a visual environment. It's simple to:

  • Set breakpoints
  • Easily run or debug individual test methods by right-clicking
  • Step over/into code

Other big wins:

  • Navigate to the declaration of a method
  • Code completion is better than Netbeans
  • The search/find tool is the best of the 3. I easily created and saved a custom search profile that ignored the log directory and other project files.

There are a lot of other features, and using the IDE is well documented, including handy keymap sheets for Windows and Mac.

Tip: before installing RubyMine, make sure you have the ruby-debug-ide gem installed:

sudo gem install ruby-debug-ide

Filed under: ruby, rubymine

riduidel says...

Ce matin, par des chemins détournés, je suis tombés sur ce message d'un gusse qui refait un système de blog utilisant un gestionnaire de sources distribué comme outil de gestion d'historique.
J'allais me mettre à penser que c'était une bonne idée, quand je me suis rappelé que Rui Carno, avec Yaki, fait la même chose en Python, et depuis bien plus longtemps. En même temps, je ne suis pas certain que la fonctionnalité soit aussi intégrée dans Yaki.
N'empêche, ça m'a donné des idées pour une réécriture future de mon bazar webgen.
Parce que je ne suis pas du tout satisfait du site web généré chez moi, et que j'aimerais vraiment obtenir quelque chose de fiable, et surtout qui résiste à la fin du monde !
Dans le même ordre di'dée, ce serait peut-être malin que je mette un cron sur mon Mac pour qu'il regénère mon site automatiquement ...

Filed under: blog, python, ruby

Every Rails developer has their favorite gems and plug ins they always use, and here is the Bit Zesty Ruby on Rails Template *.

# zesty.rb ## Bit Zesty default rails stack

# Delete unnecessary files
run "rm README"
run "rm doc/README_FOR_APP"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
run 'rm -f public/javascripts/*' #add your fav js lib here

# Set up git repository
git :init
 
# Copy database.yml for distribution use
run "cp config/database.yml config/database.yml.example"
 
# Set up .gitignore files
run %{find . -type d -empty | xargs -I xxx touch xxx/.gitignore}
file '.gitignore', <<-END
.DS_Store
coverage/*
log/*.log
lib/tasks/rspec.rake
lib/tasks/cucumber.rake
db/*.db
db/*.sqlite3
db/schema.rb
db/sphinx
tmp/**/*
doc/api
doc/app
config/database.yml
config/*.sphinx.conf
coverage/*
END

git :add => '.', :commit => '-am Rails'
 
# Install plugins as git submodules
plugin 'acts_as_taggable_redux', :git => 'git://github.com/geemus/acts_as_taggable_redux.git', :submodule => true
plugin 'hoptoad_notifier', :git => "git://github.com/thoughtbot/hoptoad_notifier.git", :submodule => true
plugin 'asset_packager', :git => 'git://github.com/sbecker/asset_packager.git', :submodule => true
plugin 'authlogic', :git => 'git://github.com/binarylogic/authlogic.git', :submodule => true
plugin 'thinking-sphinx',     :git => 'git://github.com/freelancing-god/thinking-sphinx'

## Initialize submodules
git :submodule => "init"
 
# Install gems
gem 'mislav-will_paginate', :lib => 'will_paginate',  :source => 'http://gems.github.com'
gem 'thoughtbot-factory_girl', :lib => 'factory_girl',  :source => 'http://gems.github.com'
gem 'thoughtbot-paperclip', :lib => 'paperclip',  :source => 'http://gems.github.com'

file '.testgems',
%q{config.gem 'rspec'
config.gem 'rspec-rails'
config.gem 'webrat'
config.gem 'cucumber'
}
run 'cat .testgems >> config/environments/test.rb && rm .testgems'

rake 'gems:install', :sudo => true
rake 'gems:install', :sudo => true, :env => 'test'

# Tests
generate 'rspec'
generate 'cucumber'

# Capify and create production environment.rb
run 'capify .'
run 'mkdir config/deploy'
run 'touch config/deploy/production.rb'

# Static controller
file 'app/controllers/static_controller.rb',
%q{class StaticController < ApplicationController
end} 
run("mkdir app/views/static") 
file 'app/views/static/index.html',
%q{
<p>I am in <code>app/views/static/index.html.erb</code></p>
}
route "map.resource :static, :controller => 'static'"
route "map.root :controller => 'static'"

#Finally
git :add => '.', :commit => "-am 'Plug-ins, Gems and basic Config'"
puts "*" * 80
puts "Zing!" 

* Work in progress, will probably be split up into sub-templates soon. Gist: http://gist.github.com/127624

Filed under: rails, ruby