From mghaught at gmail.com Thu May 4 22:14:08 2006 From: mghaught at gmail.com (Marty Haught) Date: Thu, 4 May 2006 20:14:08 -0600 Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - May Meeting Message-ID: <57f29e620605041914g5f788c02s59bd3f8b2925467@mail.gmail.com> Hey Everyone, We've been fairly busy since our last meeting but we have our May meeting scheduled. We'll hold it Wednesday, May 24th starting at 6pm at the Mobius building (directions below). Instead of our usual two presentation format we're going to dig into a coding challenge. The night's topic with focus on DRb. Many of you will want to bring your laptops ready to tackle the code. Others can either pair up or simply follow along. Be prepared to roll up your sleeves. I'll have more details on the meeting in another email closer to the date. Cheers, Marty Directions: Mobius Building 100 Superior Plaza Way, Suite 200 Superior, CO 80027 URL to google maps: http://tinyurl.com/dc9be Enter through the door between the Superior Liquor store and Super Joe Coffee (marked Mobius/Return Path). Notice, this door is locked after hours. We'll have a phone number posted on the door that you can call on your cell if you'll be late. The gathering will be up the stairs and it's the first conference room on your right, marked "Demonstration Room". From nshb at inimit.com Sat May 6 20:05:20 2006 From: nshb at inimit.com (Nathaniel Brown) Date: Sat, 6 May 2006 17:05:20 -0700 Subject: [Boulder-Denver Ruby Group] Canada on Rails presents.. Riding the Rails Workshop - May 27th & 28th Message-ID: <0e8c13d550999d2c41f6eb79e059e961@newsletter.osevents.com> Canada on Rails presents, Riding the Rails Workshop on May 27th and 28th. This is a two day intensive workshop for those eager to get into Ruby on Rails. Alex will drive you through the principles behind Ruby on Rails, such as MVC, convention over configuration, Code Generators, and the other core principles driving Ruby on Rails to be the most celebrated technology advancement in web development. This course is meant for those who have not yet worked with Rails, and want to get comfortable with the basic functionality. These core areas will be covered in this workshop: * Comprehensive list of Ruby and Rails resources * Installing and configuring your first Ruby on Rails application * Ruby on Rails Opinions * Using the code generators * Understanding Model-View-Controller (MVC) architecture * Customizing your Rails MVC * Introduction to Gems, Plug-in?s, and Engines Registration, and additional information is available online at: http://store.osevents.com/product_info.php?products_id=5 For any questions about this workshop, please direct them to Nathaniel Brown, nshb at inimit.com, or by calling 1-877-446-4648 toll free within North America, or 604-724-6624 internationally. -- Powered by Toolbawks, www.toolbawks.com -- From mghaught at gmail.com Mon May 22 17:58:52 2006 From: mghaught at gmail.com (Marty Haught) Date: Mon, 22 May 2006 15:58:52 -0600 Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - May 24th Message-ID: <57f29e620605221458m5fa5a2d2lcbd14cd3d33443ed@mail.gmail.com> The Boulder-Denver Ruby group will hold its next meeting on Wednesday, May 24th starting at 6pm at the Mobius building (directions below). Ara Howard will be running a Ruby challenge focusing on DRb. Plan to either bring your ruby-enabled laptop or look over someone's shoulder. The challenge will center around the power and simplicity that DRb offers Ruby programs. The goal is to create a SETI-like DRb servant which can submit and run jobs from a loosely coupled cluster of hetro-geneous nodes. It should be interesting to see how we do. We'll have our regular break for food and chatting after we get the challenge underway. No knowledge of DRb is necessary as we'll be covering the basics before diving into the code. For those of you who haven't been coming down, we do have some table space with electrical outlets for your laptops but you'll want to come early as those spots fill up quickly. There is wireless and wired access available. I look forward to seeing you all there. Cheers, Marty Directions: Mobius Building 100 Superior Plaza Way, Suite 200 Superior, CO 80027 URL to google maps: http://tinyurl.com/dc9be Enter through the door between the Superior Liquor store and Super Joe Coffee (marked Mobius/Return Path). Notice, this door is locked after hours. We'll have a phone number posted on the door that you can call on your cell if you'll be late. The gathering will be up the stairs and it's the first conference room on your right, marked "Demonstration Room". From mghaught at gmail.com Thu May 25 12:43:20 2006 From: mghaught at gmail.com (Marty Haught) Date: Thu, 25 May 2006 10:43:20 -0600 Subject: [Boulder-Denver Ruby Group] Contractor Position: Agile Developer Message-ID: <57f29e620605250943y3ec23641v488ef88603c8989@mail.gmail.com> Hey Everyone, My company, Razorstream, is looking for someone interested in contracting to help us with our current application. Our ideal candidate would be a well-rounded programmer with 2+ years of agile development experience in either the Ruby on Rails or Java spaces. Strong html/css/javascript knowledge is as vital. The current application is built on top of Zimbra and makes heavy use of AJAX/javascript for client side UI manipulation. We use a Ruby on Rails proxy with a Java back end. Future applications will be mostly in Ruby on Rails. We'll be most interested in candidates willing to join us full-time going forward. The team is currently working remotely so you'd need to work from home. Our eventually office location would be in the Longmont-Boulder area but we're not sure when we'll need an office in Colorado. Please email me at marty at razorstream.com if this sounds interesting and we'll discuss further details. If you're interested and only meet part of the ideal candidate skill set, you're still welcome to contact me and we can go from there. Cheers, Marty Haught marty at razorstream.com Razorstream, LLC From mghaught at gmail.com Thu May 25 12:56:04 2006 From: mghaught at gmail.com (Marty Haught) Date: Thu, 25 May 2006 10:56:04 -0600 Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - May meeting follow-up Message-ID: <57f29e620605250956j5cf37d7g3d424478d299ab19@mail.gmail.com> Thanks to everyone that came out last night. I had a blast and found it very enlightening. Hopefully, Ara won't get into too much trouble with textdrive! For anyone not there or still needing the urls to Ara's presentation/source use either of the following links: primary http://fortytwo.merseine.nu/presentations/ backup http://codeforpeople.com/presentations/ I want to quickly mention that we'll have our next meeting on June 14th at 6pm. We're having a bit earlier in the month due to Rails Conf. Bruce Williams will be doing a talk on YAML. We'll post a more complete description on the meeting as we get closer. Cheers, Marty From kevwil at gmail.com Thu May 25 23:31:23 2006 From: kevwil at gmail.com (Kevin Williams) Date: Thu, 25 May 2006 21:31:23 -0600 Subject: [Boulder-Denver Ruby Group] client mode errors in rc_sc.rb Message-ID: <683a886f0605252031s45e2ecfey63c3e01dee7802e0@mail.gmail.com> Could someone please help me with Ruby on Mac? I'm still getting this: /opt/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo:No address associated with nodename (SocketError) from /opt/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any' from /opt/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server' from /opt/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server' from /opt/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server' from /opt/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize' from /opt/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service' from rc_sc.rb:323:in `client' from rc_sc.rb:427:in `client' from rc_sc.rb:408:in `run' from rc_sc.rb:447 I just got this mac last week - my first mac. It's OS X 10.4.6 withall the latest updates. I first installed ruby from source - that'swhat I had at the meeting. After that, I went home and installed rubyfrom DarwinPorts. I still get this error. I've disabled ipv6, disabledmy firewall, and triple-checked my network communication for all otherapps like mail and Skype. I just upgraded to Xcode 2.3 from 2.1 andrecompiled my ports - no change. I can run it in server mode, as long as I use my IP, and othermachines can connect to it. But it always fails in client mode. I was impressed by drb and tuplespace, so I'd like to experiment withit on my new mac. Any suggestions? (I know this isn't a help forum, but other mac users weren't havingtroubles running the same code, so I decided to beg publically. ;) -- Cheers, Kevin From ara.t.howard at noaa.gov Fri May 26 00:34:51 2006 From: ara.t.howard at noaa.gov (ara.t.howard at noaa.gov) Date: Thu, 25 May 2006 22:34:51 -0600 (MDT) Subject: [Boulder-Denver Ruby Group] client mode errors in rc_sc.rb In-Reply-To: <683a886f0605252031s45e2ecfey63c3e01dee7802e0@mail.gmail.com> References: <683a886f0605252031s45e2ecfey63c3e01dee7802e0@mail.gmail.com> Message-ID: On Thu, 25 May 2006, Kevin Williams wrote: > Could someone please help me with Ruby on Mac? I'm still getting this: > /opt/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo:No > address associated with nodename (SocketError) from > /opt/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any' > from /opt/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server' from > /opt/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server' from > /opt/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server' from > /opt/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize' from > /opt/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service' from > rc_sc.rb:323:in `client' from rc_sc.rb:427:in `client' from > rc_sc.rb:408:in `run' from rc_sc.rb:447 > > I just got this mac last week - my first mac. It's OS X 10.4.6 withall the > latest updates. I first installed ruby from source - that'swhat I had at the > meeting. After that, I went home and installed rubyfrom DarwinPorts. I still > get this error. I've disabled ipv6, disabledmy firewall, and triple-checked > my network communication for all otherapps like mail and Skype. I just > upgraded to Xcode 2.3 from 2.1 andrecompiled my ports - no change. I can > run it in server mode, as long as I use my IP, and othermachines can connect > to it. But it always fails in client mode. I was impressed by drb and > tuplespace, so I'd like to experiment withit on my new mac. Any suggestions? > (I know this isn't a help forum, but other mac users weren't havingtroubles > running the same code, so I decided to beg publically. ;) try this patch --- ./rc_sc.rb.org 2006-05-25 21:51:12.000000000 -0600 +++ ./rc_sc.rb 2006-05-25 22:23:42.000000000 -0600 @@ -125,6 +125,7 @@ def run system cmd + @exitstatus = $?.exitstatus end def to_yaml(*a, &b) @@ -262,7 +263,6 @@ if hired job = hired[1] job.run - job.exitstatus = $?.exitstatus hired[1] = job invoiced = servant.invoice hired debug{ " job_hunter_thread: <#{ invoiced.inspect }>" } @@ -319,9 +319,9 @@ servant = new *a, &b end - def self.client uri, cmd, *a, &b - DRb.start_service - servant = DRbObject.new nil, uri + def self.client uri_c, uri_s, cmd, *a, &b + DRb.start_service uri_c + servant = DRbObject.new nil, uri_s end def submit job @@ -346,8 +346,10 @@ def invoice hired tuple = ts.take hired + job = hired[1] if tuple tuple[0] = 'invoiced' + tuple[1] = job ts.write tuple tuple else @@ -406,6 +408,8 @@ server when %r/^c/i client + when %r/^h/i + help else die "bad mode <#{ @mode }>" end @@ -423,8 +427,8 @@ end def client - msg, *@argv = @argv - @client = Servant.client @uri, 'logger' => @logger + uri_s, msg, *@argv = @argv + @client = Servant.client @uri, uri_s, 'logger' => @logger y send("client_#{ msg }") end @@ -439,6 +443,22 @@ def client_list @client.list @argv end + + def help + program = File.basename $0 + usage = <<-usage + #{ program } mode [args]+ + + server mode: + #{ program } s[erver] this_servant_uri other_servant_uri [other_servant_uris]* + + client mode: + #{ program } c[lient] this_servant_uri other_servant_uri (submit|list) [args]* + usage + indent = ' ' * usage[%r/^\s*/].size + usage.gsub! %r/^#{ indent }/, '' + puts usage + end #--}}} end # class Main #--}}} or simply download the script here http://fortytwo.merseine.nu/presentations/drb/rc_sc.rb note that i also added a help message and fixed the exitstatus bug. also note that the client usage has changed a little. here's an example from my machine: start server a: fortytwo :/var/www/html/presentations/drb > ./rc_sc.rb s druby://localhost.localdomain:4242 druby://localhost.localdomain:4243 start server b: fortytwo :/var/www/html/presentations/drb > ./rc_sc.rb s druby://localhost.localdomain:4243 druby://localhost.localdomain:4242 submit a job to one of the servers: ./rc_sc.rb c druby://localhost.localdomain:0 druby://localhost.localdomain:4242 submit echo 42 list the jobs ./rc_sc.rb c druby://localhost.localdomain:0 druby://localhost.localdomain:4242 list the help might be a little useful: fortytwo :/var/www/html/presentations/drb > ./rc_sc.rb help rc_sc.rb mode [args]+ server mode: rc_sc.rb s[erver] this_servant_uri other_servant_uri [other_servant_uris]* client mode: rc_sc.rb c[lient] this_client_uri other_servant_uri (submit|list) [args]* still. you've found what will no doubt be one of many bugs - this is demo code only! ;-) btw. the crux of the issue that that macs don't handle calls like this well DRb.start_service you should always use this instead DRb.start_service 'druby://localhost:0' i don't know why. kind regards. -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama From wbruce at gmail.com Fri May 26 01:46:31 2006 From: wbruce at gmail.com (Bruce Williams) Date: Thu, 25 May 2006 23:46:31 -0600 Subject: [Boulder-Denver Ruby Group] client mode errors in rc_sc.rb In-Reply-To: References: <683a886f0605252031s45e2ecfey63c3e01dee7802e0@mail.gmail.com> Message-ID: <4896b9210605252246m7e2b5333s44898539495a132d@mail.gmail.com> > btw. the crux of the issue that that macs don't handle calls like this well > > DRb.start_service > > you should always use this instead > > DRb.start_service 'druby://localhost:0' > > i don't know why. start_service's default URI is druby://:0; I think the empty hostname is an issue on Macs. I knew this before the meeting (since I had already run into the problem), and should have mentioned it :-( Regards, Bruce From kevwil at gmail.com Fri May 26 10:06:00 2006 From: kevwil at gmail.com (Kevin Williams) Date: Fri, 26 May 2006 08:06:00 -0600 Subject: [Boulder-Denver Ruby Group] client mode errors in rc_sc.rb In-Reply-To: <4896b9210605252246m7e2b5333s44898539495a132d@mail.gmail.com> References: <683a886f0605252031s45e2ecfey63c3e01dee7802e0@mail.gmail.com> <4896b9210605252246m7e2b5333s44898539495a132d@mail.gmail.com> Message-ID: <683a886f0605260706o38084e1qf83caff509c88959@mail.gmail.com> Thanks for the help. I'll try the patch at home tonight. Don't sweat the bugs! Everyone else was able to use it at the meeting,so I fault my "newbieness" on a mac (and still with Ruby). On 5/25/06, Bruce Williams wrote:> > btw. the crux of the issue that that macs don't handle calls like this well> >> > DRb.start_service> >> > you should always use this instead> >> > DRb.start_service 'druby://localhost:0'> >> > i don't know why.>> start_service's default URI is druby://:0; I think the empty hostname> is an issue on Macs.>> I knew this before the meeting (since I had already run into the> problem), and should have mentioned it :-(>> Regards,> Bruce> -- Cheers, Kevin From kevwil at gmail.com Fri May 26 21:46:56 2006 From: kevwil at gmail.com (Kevin Williams) Date: Fri, 26 May 2006 19:46:56 -0600 Subject: [Boulder-Denver Ruby Group] client mode errors in rc_sc.rb In-Reply-To: <683a886f0605260706o38084e1qf83caff509c88959@mail.gmail.com> References: <683a886f0605252031s45e2ecfey63c3e01dee7802e0@mail.gmail.com> <4896b9210605252246m7e2b5333s44898539495a132d@mail.gmail.com> <683a886f0605260706o38084e1qf83caff509c88959@mail.gmail.com> Message-ID: <683a886f0605261846m56041df3me84ecab415bfec48@mail.gmail.com> OK, I believe I got mine working. Here's what I did, in case anyone out there has the same problem. in /etc/hostconfig: HOSTNAME=-AUTOMATIC- (I had 'luckyduck' previously) in System Preferences => Sharing => Computer Name: luckyduck (the "Other Computers ..." line below that box says I resolve to 'luckyduck.local') in /etc/hosts I added: 127.0.0.1 luckyduck I've also configured ipv6 to Off on all network interfaces, but I don't think that helped. On 5/26/06, Kevin Williams wrote: > Thanks for the help. I'll try the patch at home tonight. > > Don't sweat the bugs! Everyone else was able to use it at the meeting, > so I fault my "newbieness" on a mac (and still with Ruby). > > On 5/25/06, Bruce Williams wrote: > > > btw. the crux of the issue that that macs don't handle calls like this well > > > > > > DRb.start_service > > > > > > you should always use this instead > > > > > > DRb.start_service 'druby://localhost:0' > > > > > > i don't know why. > > > > start_service's default URI is druby://:0; I think the empty hostname > > is an issue on Macs. > > > > I knew this before the meeting (since I had already run into the > > problem), and should have mentioned it :-( > > > > Regards, > > Bruce > > > > > -- > Cheers, > > Kevin > -- Cheers, Kevin