Archive for the 'Programming' Category

More Ruby/Git Greatness

I’m really excited to see how well the Ruby (on Rails) community have received Git. A big reason is probably the awesome service GitHub but there are several other goodies coming out from the Rubyists.

Yesterday I blogged about the GitCasts and today I learned about Gitjour. It’s a tool to announce and make available repositories over Bonjour so that you can list and clone repositories available on the local network.

To serve a repository simply call:

$ gitjour serve
Registered gringo.  Starting service.

You can then list and clone it with:

$ gitjour list
Gathering for up to 5 seconds...
=== gringo on Tabasco.local. ===
  gitjour clone gringo

GitCasts — Screencasts about using Git

Stumbled over the site GitCasts which publishes regular screencasts about using Git. Should be worth a look for anyone who which to learn more about Git.

http://www.gitcasts.com/

Using Twitter4R on Mac OS X

Was playing around a bit with the Twitter4R library the other day and realized that in order to make it to work on Mac OS X (Leopard) you need to also require ‘time’. Or you will get an error similar to lib/twitter/model.rb:268:in `init’: undefined method `parse’ for Time:Class (NoMethodError).

A small snippet to display my public tweets:

require 'rubygems'
gem('twitter4r', '0.3.0')
require 'twitter'

# Required on Mac OS X Leopard
require 'time'

twitter = Twitter::Client.new

hallski_timeline = twitter.timeline_for(:user, :id => 'hallski')

hallski_timeline.each do |status|
  puts status.text
end

« Previous PageNext Page »

Close
E-mail It