From bascule at gmail.com Fri Jun 2 19:36:03 2006 From: bascule at gmail.com (Tony) Date: Fri, 2 Jun 2006 17:36:03 -0600 Subject: [Boulder-Denver Ruby Group] Looking for a Rails developer Message-ID: Hi, my boss here at ClickCaster is looking for another Rails developer, particularly someone who's familiar with test driven development and has reasonable knowledge of XHTML/CSS. If that sounds like you and you're looking for a job, drop me a line. Tony Arcieri ClickCaster.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060602/f806cbb0/attachment.htm From mghaught at gmail.com Tue Jun 13 00:46:29 2006 From: mghaught at gmail.com (Marty Haught) Date: Mon, 12 Jun 2006 22:46:29 -0600 Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - June 14th Message-ID: <57f29e620606122146r278d3d33m7d8cab73a71e003a@mail.gmail.com> The Boulder-Denver Ruby group will hold its next meeting on Wednesday, June 14th starting at 6pm at the Mobius building (directions below). We will begin the meeting with an open discussion. Bruce Williams will follow that with a talk on YAML. We hope to see 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 stimits at comcast.net Tue Jun 13 09:11:59 2006 From: stimits at comcast.net (D. Stimits) Date: Tue, 13 Jun 2006 07:11:59 -0600 Subject: [Boulder-Denver Ruby Group] rails, has_and_belongs_to_many sessions Message-ID: <448EB99F.5040001@comcast.net> I'm learning both ruby and rails at the same time, and am stumped by some rails 1.0 session handling. I have my session table created just fine, and I can see the sessid through session.session_id just fine. I can't access any other part of the session tables though, neither via syntax such as session.id nor as session[:id]. I've tried declaring a model session and making each attribute specifically visible...it still won't let me see the session table. If I create another model "users", and have a field "id", then create a table "sessions_users" with "sessions_id" and "users_id" (combined with has_and_belongs_to_many for both sessions and users tables), it never fills in or updates in any way. I can see the session table (I'm set to use PostgreSQL) via SQL query, it is updating and working properly for the session table...but can't get any information from this table in any other way (aside from session.session_id). I want this information so I can generate different content depending on how long ago the person was last logged in, whether or not they are logged in, so on. A filter that requires login won't work (at least not on all pages). How do I access the other parts of a session that are also fields of the session table? I'm not interested in creating more data that is visible in the browser cookie itself, I want to create models linked to the session table. Any suggestions welcome. D. Stimits, stimits AT comcast DOT net From kevincbw at qwest.net Tue Jun 13 11:29:50 2006 From: kevincbw at qwest.net (Kevin Williams) Date: Tue, 13 Jun 2006 09:29:50 -0600 Subject: [Boulder-Denver Ruby Group] Regular expressions Message-ID: <448ED9EE.2080401@qwest.net> Hi Guys, I am new to regular expressions and hope someone can help with the following problem. I need to match items in a string: 1. the item is proceeded by a space 2. the first character of the item is a colon 3. the first character is followed by one or more alphanumeric characters 4. the last character is followed by a space 5. the item cannot be between quotes or double quotes So, this string has two matches (:item1, :item2) a test string with two matches :item1 and :item2 but there are no matches in this string: this string with no matches 'at all :item1 and :item2 ' Thanks in advance for any help! --Kevin From ara.t.howard at noaa.gov Tue Jun 13 12:14:05 2006 From: ara.t.howard at noaa.gov (ara.t.howard at noaa.gov) Date: Tue, 13 Jun 2006 10:14:05 -0600 (MDT) Subject: [Boulder-Denver Ruby Group] Regular expressions In-Reply-To: <448ED9EE.2080401@qwest.net> References: <448ED9EE.2080401@qwest.net> Message-ID: On Tue, 13 Jun 2006, Kevin Williams wrote: > Hi Guys, > > I am new to regular expressions and hope someone can help with the > following problem. > > I need to match items in a string: > > 1. the item is proceeded by a space > 2. the first character of the item is a colon > 3. the first character is followed by one or more alphanumeric > characters > 4. the last character is followed by a space > 5. the item cannot be between quotes or double quotes > > So, this string has two matches (:item1, :item2) > > a test string with two matches :item1 and :item2 > > but there are no matches in this string: > > this string with no matches 'at all :item1 and :item2 ' > > Thanks in advance for any help! > > --Kevin this is actually a pretty tough one kevin. regular expressions are, by definition, not context sensitive - eg. you cannot construct one that is aware of it's position in a quoted string. some of the extensions ruby/perl/python have do, in fact, make it so you can contruct some slightly context sensitive res, but in general this is not the domain for res. in this case you'll probably have more luck blowing away the quoted strings and then searching for your pattern in what's left. for example: harp:~ > cat a.rb # # kills any balanced quotes in a buffer. escaped quotes are recognized. # def kill_balanced_quotes buf, replacement="" re = %r/ "(?:[^"\\]*(?:\\.[^"\\]*)*)" # matches balanced double quotes | '(?:[^'\\]*(?:\\.[^'\\]*)*)' # matches balanced single quotes /ox buf.gsub re, replacement end # # returns any symbols in a string which are not in a balanced quoted string # def scan_for_symbols buf buf = kill_balanced_quotes buf re = %r/\s:\w+\b/o buf.scan(re).map{|word| word.strip} end # # simple test # tests = "a test string with two matches :item1 and :item2", "this string with no matches 'at all :item1 and :item2 '", '":foo :bar", :fubar', "another test string with two matches before a period :item1 and :item2.", '":trick \":y\"", :fu :bar' tests.each do |string| puts "---" puts "string : #{ string }" puts "matches : #{ scan_for_symbols(string).inspect }" puts end harp:~ > ruby a.rb --- string : a test string with two matches :item1 and :item2 matches : [":item1", ":item2"] --- string : this string with no matches 'at all :item1 and :item2 ' matches : [] --- string : ":foo :bar", :fubar matches : [":fubar"] --- string : another test string with two matches before a period :item1 and :item2. matches : [":item1", ":item2"] --- string : ":trick \":y\"", :fu :bar matches : [":fu", ":bar"] should get you going. good luck. -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama -------------- next part -------------- # # kills any balanced quotes in a buffer. escaped quotes are recognized. # def kill_balanced_quotes buf, replacement="" re = %r/ "(?:[^"\\]*(?:\\.[^"\\]*)*)" # matches balanced double quotes | '(?:[^'\\]*(?:\\.[^'\\]*)*)' # matches balanced single quotes /ox buf.gsub re, replacement end # # returns any symbols in a string which are not in a balanced quoted string # def scan_for_symbols buf buf = kill_balanced_quotes buf re = %r/\s:\w+\b/o buf.scan(re).map{|word| word.strip} end # # simple test # tests = "a test string with two matches :item1 and :item2", "this string with no matches 'at all :item1 and :item2 '", '":foo :bar", :fubar', "another test string with two matches before a period :item1 and :item2.", '":trick \":y\"", :fu :bar' tests.each do |string| puts "---" puts "string : #{ string }" puts "matches : #{ scan_for_symbols(string).inspect }" puts end From ara.t.howard at noaa.gov Thu Jun 15 14:34:08 2006 From: ara.t.howard at noaa.gov (ara.t.howard at noaa.gov) Date: Thu, 15 Jun 2006 12:34:08 -0600 (MDT) Subject: [Boulder-Denver Ruby Group] ruby rails/metaprogramming presentation tonight in denver Message-ID: hi all- doug fales and i will be doing two presentations for the denver ruby users group, one on rails and the other on metaprogramming at the lodo tattered cover tonight - starting at 7. if you feel like geeking out come on down. the presentations are fairly technical, but will span the spectrum from almost newbie to deep ruby. cheers. -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama From wbruce at gmail.com Tue Jun 20 02:01:42 2006 From: wbruce at gmail.com (Bruce Williams) Date: Tue, 20 Jun 2006 00:01:42 -0600 Subject: [Boulder-Denver Ruby Group] RailsConf Facebook Message-ID: <4896b9210606192301h75fc62d4j4610816acaa30f19@mail.gmail.com> For those attending RailsConf... if you haven't heard, the RailsConf Facebook (http://facebook.railsconf.org) is up and running. See you in Chicago! Bruce From greg at collectiveintellect.com Tue Jun 20 17:20:07 2006 From: greg at collectiveintellect.com (Greg Greenstreet) Date: Tue, 20 Jun 2006 15:20:07 -0600 Subject: [Boulder-Denver Ruby Group] Collective Intellect seeks Junior Software Engineer Message-ID: <20060620213020.3C6DD524096F@rubyforge.org> All, We are currently seeking to hire a junior software engineer. (Job posting below) Please apply if you are interested or forward to anyone you know who might be a good fit. To be clear, we're looking for a junior person here, just out of school or only a couple years of experience. Thanks, ~greg Junior Software Engineer Dream Job Collective Intellect (www. collectiveintellect.com), a high energy start-up in Boulder, seeks a highly motivated, super smart, junior software engineer. This is an excellent opportunity for a junior software engineer to build their career working with a small, existing team of senior engineers to help build a new media company in the financial industry. Offices located on the Pearl Street Mall in Boulder, CO. Requirements/Skills: * BS or higher in Computer Science or related field. * Should have firm grasp of the Java language and related technologies. * Experience with relational databases (MySQL a plus). * Experience with XML, XPath, and XQuery. * Experience with HTTP, RSS, ATOM and web development. * Experience with Ruby/Ruby on Rails a definite plus. * Mediocre to advanced Foosball skills also a plus. * Must be a problem solver, willing to work hard and have fun while doing it. Salary and equity commiserate with education, experience, and attitude. Please submit resumes to Greg Greenstreet, V.P. Engineering at greg at collectiveintellect.com. ____________________________ Gregory J. Greenstreet Vice President, Engineering Collective Intellect greg at collectiveintellect.com 303.748.6575 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060620/c807c941/attachment-0001.html From pjones at pmade.org Fri Jun 23 15:13:33 2006 From: pjones at pmade.org (Peter Jones) Date: Fri, 23 Jun 2006 13:13:33 -0600 Subject: [Boulder-Denver Ruby Group] New to Group Message-ID: <1015E1AB-2866-4C47-A59C-C4C995EB4F88@pmade.org> I'm new to the group, so I'd thought I'd poke in and say "Hi!". And to give my post more meaning than just "Hi" I'd also like to share a small script I just wrote. I have a dedicated server for development on-site that I ssh into. I'm currently writing a rails app and I'm using edge rails so the API docs at api.rubyonrails.com won't work for me. I have the local rdoc generated ones, but since it's on the server I can't just open a browser and point it at the file system. I'm not about to configure Apache or lighttpd, and using a terminal browser like w3m looses the formatting. So, with the help of WEBrick, I have a ruby script that will serve files from the current directory: http://blog.pmade.org/files/ws.rb I'm sure I'm not the first one to do this, but it would have taken longer to google than to just write this. -p -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060623/f7ae13f9/attachment.html From mghaught at gmail.com Tue Jun 27 23:19:27 2006 From: mghaught at gmail.com (Marty Haught) Date: Tue, 27 Jun 2006 21:19:27 -0600 Subject: [Boulder-Denver Ruby Group] Boulder-Denver Ruby Group - July Update Message-ID: <57f29e620606272019j668ff19w554a5cd0b362bbe9@mail.gmail.com> Hey Everyone, I had a great time at RailsConf and enjoyed seeing several of our group in attendance as well. Hopefully many of you are considering attending RubyConf this October as it will be hosted in Denver. I also want to mention that we'll no longer be holding meetings at the Mobius building. Collective Intellect has moved out and can longer offer the room to us. It was very generous of them to host us for so many meetings and we're very grateful. We're still working out the details of where we'll hold our meetings in the future. If any of you have some good suggestions please email me (assuming you haven't already!). We do have a few options already and are narrowing it down to the best one. I'm putting together a speaker list for the fall and would like to hear from any of you that might be inclined to speak. We will have some Rails topics as well as Ruby ones lined up already. I'd also like to give Bruce, Ara and Chad a break from speaking. I know many of you are doing interesting things with Ruby and/or Rails and might have something to share that we'd find interesting. Finally, if you have any suggestions on ways to improve the group, please send them in. This meeting is for all of you so let us know if there's something you would like to see changed. Thanks again for coming out and being part of the Ruby community. Cheers, Marty Haught From bascule at gmail.com Thu Jun 29 14:43:25 2006 From: bascule at gmail.com (Tony) Date: Thu, 29 Jun 2006 12:43:25 -0600 Subject: [Boulder-Denver Ruby Group] E-commerce deployment best practices guide? Message-ID: At the last meeting someone suggested a blog/guide/article on the best practices for deploying e-commerce apps. Whoever that was, can you send me a link? It would be most appreciated. Tony Arcieri ClickCaster.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20060629/3bf2b2c2/attachment.html From shackletj at yahoo.com Fri Jun 30 18:30:41 2006 From: shackletj at yahoo.com (Justin Shacklette) Date: Fri, 30 Jun 2006 15:30:41 -0700 (PDT) Subject: [Boulder-Denver Ruby Group] E-commerce deployment best practices guide? In-Reply-To: Message-ID: <20060630223041.39273.qmail@web32901.mail.mud.yahoo.com> Tony, I believe Jeremy was talking about a recent James Duncan Davidson blog entry. http://duncandavidson.com/essay/2006/06/onlinepayments -Justin --- Tony wrote: > At the last meeting someone suggested a blog/guide/article > on the best practices for deploying e-commerce apps. Whoever > that was, can you send me a link? It would be most > appreciated. > > Tony Arcieri > ClickCaster.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com