ruby

my .gemrc for Hanna

%userprofile%\.gemrc for Hanna template:

gem: --no-ri  
# Needs --inline-source, otherwise uninitialized constant Doc::Generator::HTML::HANNA::SRC_PAGE
rdoc:  --inline-source --format=html --template=hanna   

Remove RI docs

  1. # Remove ri - many many files I never use.
  2. require 'find'
  3. require 'rubygems'
  4. require 'fileutils'
  5. Find.find(Gem.dir + '/doc') do |path|
  6. next unless path =~ /\/ri$/
  7. puts path
  8. FileUtils.rm_rf(path)
  9. end

bdoc - Great gem doc helper

One way to access the ruby gem documentation quickly is gem server which starts a http server at http://localhost:8808. This does not work on my Vista laptop, which prefers http://127.0.0.1:8808/. What disturbs me is another busy server console along the rails console and 5 others which I keep open. Recently I came accross the bdoc gem, which links to my rdocs on the fly using jQueried html.

Algodoo/Phun generator in Ruby

I played a bit with a fun physics simulator Algodoo. After just a few simulations I bought the thing to support the briliant idea. There is also free Phun which lags behing the commercial version.
Julia created a shower simulation:

Syndicate content