(Jul 1)
For those of you who are wondering if Ruby is enterprise worthy, then eRubyCon is for you. The speaker list is a "Who's who" of Ruby development and a stellar slate for any conference.
If you're into Ruby or Rails, I strongly encourage you to check out this event.
eRubyCon.com
Category: Ruby
(Nov 20)
I needed to pull some statistics and information out of TextMate but they don't have a formal API. Then a co-worker spotted this project
http://blog.ardes.com/2007/9/14/os-x-textmate-user-free-time-tracker-matewatch
which has an example of the RubyOSA bridge that exposes the Apple events that an application makes available. That is to say, I can get access to tons of applications (including iTunes and TextMate) from a Ruby app.
RubyOSA is easy to use. Here's a quick example that shows the list of your TextMate documents.
require 'rubygems'
require 'rbosa'
tm = OSA.app("Textmate")
tm.documents.each{|doc|
puts doc.name
}
Another scriptable application is iTunes. You can just as easily type
iTunes = OSA.app('iTunes')
iTunes.pause
iTunes.play
But the question you'll immediately have is what methods are availabe for iTunes or TextMate? For that you'll see the bundled rdoc-osa.
rdoc-osa will generate an HTML document (rdoc style) of the interfaces for any particular application. To create the TextMate documentation, just type:
rdoc-osa --name TextMate
Then look in the doc folder for your index.html.
Also, be sure you install the RubyOSA gem first.
sudo gem install rubyosa
For more information, see RubyOSA on Rubyforge or this page on the Apple Developer site.
Update: Thanks to reader Botond Orban for pointing out that the documentation command is rdoc-osa, not doc-osa. I'm not sure what I was thinking when I typed that! -jrr
Category: Ruby
(Aug 28)
Enjoy! From Chad and Marcel's charity workshop on Rails testing to Ezra on Merb to me on C/Ruby/Rails integration, it's all free under the Creative Commons. :)
Hoedown Videos
Alan Hoffler, communication guru likes to say that watching yourself on video is a humbling thing... and he's right. Watching me talk and throw candy for the first five minutes of the talk, I feel obligated to tell everyone that the entire time, my new MacBook Pro was rebooting... and hanging. Watch the blank overhead screen in the background. I suspect it was running a disk check during the boot. But that was the last good boot I got out of the machine! After the talk, it locked up tight and never came back. It's been replaced with a rock solid MacBook Pro, but I feel very fortunate to have been able to finish that talk.
I could've pulled my slides out of Subversion, and the code was there as well, but it would've been interesting to see if I could've done things like install the InlineC gems live in front of the audience. :)
That sort of thing doesn't happen often, but it does make things a bit more interesting. Enjoy the talk, but also enjoy watching me 'sing and dance' while trying to decide if my Mac would actually boot or not.
Category: Ruby
(Aug 15)
They've got Marcel's keynote posted here.
Category: Ruby
(Aug 1)
If you were considering signing up for the regional Ruby conference in North Carolina, the Ruby Hoedown, you'd better move quick. This is the mail I received this evening.
The Ruby Hoedown is less than two weeks away, and we couldn't be
more excited about it! A top-notch charity workshop, a line up of
seven great talks, lots of hallway time for meeting fellow
Rubyists, and some really sweet t-shirts add up to a great,
Southern-style conference. What, you're not registered yet? Well,
it so happens we have a few seats left, so proceed to
http://rubyhoedown.com/ post-haste and grab yours before we sell
out! And, if you have any questions, please don't hesitate to
send them to organizers AT rubyhoedown.com - we're glad to help out
however we can.
See ya'll real soon now,
The Ruby Hoedown Organizers
This conference will have some great speakers (including me!) and a great crowd. Our local Ruby crowd has a lot of very talented software folk. Although the Hoedown is the first of it's type we've had here in Raleigh, I know several of the speakers and the organizers. I expect it to be top notch, so come out and join us!
Category: Ruby
(Jul 28)
I just read another classic post by Martin Fowler. Among other things, he's pointing out the distinction between when it's appropriate to go learn a new language and when you should re-use the one you already know... and there's a bit of why people like Ruby as well.
Should we strive to only have one language in our development efforts?
A few gems from the posting:
...many frameworks resort to configuration files, which are effectively external DomainSpecificLanguages written in XML - which adds a jigger of 80 proof ugliness to them...
For many developers, the one-language notion is a sign of lack of professionalism....
Time and time again I hear experienced Java and C# developers report they are more effective in Ruby - which is why I've been encouraging Ruby. It wouldn't surprise me if similar reports appear in the next few years about other languages too...
Enjoy!
Category: Ruby
(Jul 28)
My blog entry on my OSCON talk had a spike in visitors, so I looked at my logs and found this:
http://www.rubyist.net/~matz/20070711.html
Cool.
Category: Ruby
(Jun 15)
This picture on Dave Thomas' flickr stream just sums it all up. I wish I could read Matz' addition!
RubyKaigi2007_59
If you can't say this about your programming language (or your career for that matter!), you're doing it wrong.
Category: Ruby
(May 25)
I'm always hearing people say that they want to have local docs like the ones at the Ruby Rdoc page. I've also wanted this and looked all over for a way to download these docs and haven't found them. Everyone says "Use Rdoc" but nothing more. I've only used rdoc on my own project and just didn't get what they were suggesting.
With Rdoc, it takes a few minutes to generate them, but you can make your own local copy of any Ruby docs. I think 90% of the Ruby/Rails world knows this already, but those of weren't in the secret, try this.
cd into your local directory that holds your Ruby/Rails code. This could be your own project code, /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 (to generate your Active Record docs), or /usr/local/lib/ruby/1.8 (to build your own core Ruby docs). Since Ruby is interpreted, you've got all the system code right there on your own box.
Create a directory in your home folder called rdoc (or whatever you'll remember).
type rdoc -o ~/rdoc/activerecord or rdoc -o ~/rdoc/ruby or so on. Rdoc wants to create that last directory itself, so don't help it out by having it in place already.
When you're done, you'll have a nice, very fast, local copy of the docs. More importantly, you've created docs that match exactly what's installed on your machine.
It does take a few minutes to generate your own copy of the Ruby core docs, but the rest run fairly quickly.
Category: Ruby
|