From mghaught at gmail.com Thu Nov 1 00:36:46 2007 From: mghaught at gmail.com (Marty Haught) Date: Wed, 31 Oct 2007 22:36:46 -0600 Subject: [Boulder Ruby Group] BRG - November Meeting - Nov 14th Message-ID: <57f29e620710312136u633b82a1y5e2be4c1f5697149@mail.gmail.com> Our November meeting will be earlier than the third Wednesday of the month. We figured not many would come, including us, if it was held the day before Thanksgiving. Instead we'll meet the 2nd Wednesday at 6:30pm. Tony Arcieri will present first on DistribuStream, his Ruby open source peercasting system. After some mingling time, we'll convene a panel discussion on remote team dynamics. We'll be exploring agile development in a telecommuting experience as well as how to work as a team. It's not a purely Ruby topic but it's becoming more of a reality in today's marketplace. Anyone wishing to share your experiences or be on the panel, please email me offlist. I look forward to seeing you there. Cheers, Marty From timrohde2000 at yahoo.com Mon Nov 5 17:54:04 2007 From: timrohde2000 at yahoo.com (Tim Rohde) Date: Mon, 5 Nov 2007 15:54:04 -0700 Subject: [Boulder Ruby Group] ActiveScaffold Tutorial In-Reply-To: References: Message-ID: <9ABD0EB8-5F16-4FC2-AB36-09C992A33273@yahoo.com> Hi all, I'm working with someone who needs a soup-to-nuts tutorial on ActiveScaffold. ActiveScaffold's getting started page isn't enough, he needs true step-by-step instructions and is willing to pay for it. He will be happy to provide the content back to the community. Is anyone interested? If so contact me. Thanks! Tim Rohde Home Office: 303-443-0449 Cell Phone: 310-592-6581 timr at vitacall.com From aaf at ardith.org Sun Nov 4 15:50:38 2007 From: aaf at ardith.org (Ardith Falkner) Date: Sun, 4 Nov 2007 13:50:38 -0700 Subject: [Boulder Ruby Group] contract help Message-ID: Hello, I have started a LLC that develops Ruby on Rails applications and websites. I am expecting to deal with web development contracts in the near future. Could anyone recommend a lawyer who is qualified to review a contract and give good advice? Thank you, Ardith Ann Falkner http://slateblueweb.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071104/362574f9/attachment.html From jeremy at hinegardner.org Tue Nov 6 16:36:08 2007 From: jeremy at hinegardner.org (Jeremy Hinegardner) Date: Tue, 6 Nov 2007 14:36:08 -0700 Subject: [Boulder Ruby Group] contract help In-Reply-To: References: Message-ID: <20071106213608.GI15818@hinegardner.org> On Sun, Nov 04, 2007 at 01:50:38PM -0700, Ardith Falkner wrote: > Hello, > > I have started a LLC that develops Ruby on Rails applications and > websites. I am expecting to deal with web development contracts > in the near future. Could anyone recommend a lawyer who is > qualified to review a contract and give good advice? > > Thank you, > Ardith Ann Falkner > http://slateblueweb.com/ Not sure if this will help but about 5 years ago the Boulder Linux Users Group had a round table on software licenses and we had 3 local lawyers answer questsion. I do believe at least one of them is still practicing in the area: Jason Haislmaier, John Ritsick, and Kara Rigney enjoy, -jeremy -- ======================================================================== Jeremy Hinegardner jeremy at hinegardner.org From ara.t.howard at gmail.com Fri Nov 9 15:58:46 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Fri, 9 Nov 2007 13:58:46 -0700 Subject: [Boulder Ruby Group] ar validations licking the balls Message-ID: <27412DF9-075C-491A-A7EF-CD8665B0B890@gmail.com> given that this happens to be the case http://drawohara.tumblr.com/post/18926188 it seems that *any* validation should alter the behavior of Base#create to force the isolation level - otherwise validations end up being nothing be a stack of race conditions. sorry if i'm late to the party but this came as a real surprise to me. at the very least it seems the docs should have a big fat warning about this or the code itself should warn when using validations and the client code is not under a strictly serializable transaction. how are other's out there dealing with this issue? kind regards a @ http://codeforpeople.com/ -- share your knowledge. it's a way to achieve immortality. h.h. the 14th dalai lama From tony at clickcaster.com Fri Nov 9 16:31:54 2007 From: tony at clickcaster.com (Tony Arcieri) Date: Fri, 9 Nov 2007 14:31:54 -0700 Subject: [Boulder Ruby Group] ar validations licking the balls In-Reply-To: <27412DF9-075C-491A-A7EF-CD8665B0B890@gmail.com> References: <27412DF9-075C-491A-A7EF-CD8665B0B890@gmail.com> Message-ID: Yep, nasty... There's other races in AR... multiple find_or_create_bys executed quickly enough will exhibit this same problem and you'll wind up with two records instead of one. About the only solution I know if is to use constraints on the table :/ -- Tony Arcieri ClickCaster, Inc. tony at clickcaster.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071109/438ffb72/attachment.html From gedwards1 at eyetools.com Fri Nov 9 17:45:15 2007 From: gedwards1 at eyetools.com (Greg Edwards) Date: Fri, 9 Nov 2007 15:45:15 -0700 Subject: [Boulder Ruby Group] ar validations licking the balls In-Reply-To: References: <27412DF9-075C-491A-A7EF-CD8665B0B890@gmail.com> Message-ID: <01e901c82322$32f2eae0$6400a8c0@GTABLET> Is this a problem just with AR or would all of the ORMs (Sequel, Datamapper, etc) have the same problem? Seems like they all would, and that the problem is that there are multiple processes checking the database before deciding to do something. -Greg Greg Edwards CEO & Founder, Eyetools Inc. greg at eyetools.com 916.792.4538 _____ From: bdrg-members-bounces at rubyforge.org [mailto:bdrg-members-bounces at rubyforge.org] On Behalf Of Tony Arcieri Sent: Friday, November 09, 2007 2:32 PM To: ara.t.howard Cc: Subject: Re: [Boulder Ruby Group] ar validations licking the balls Yep, nasty... There's other races in AR... multiple find_or_create_bys executed quickly enough will exhibit this same problem and you'll wind up with two records instead of one. About the only solution I know if is to use constraints on the table :/ -- Tony Arcieri ClickCaster, Inc. tony at clickcaster.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071109/931c5169/attachment.html From tony at clickcaster.com Fri Nov 9 18:42:59 2007 From: tony at clickcaster.com (Tony Arcieri) Date: Fri, 9 Nov 2007 16:42:59 -0700 Subject: [Boulder Ruby Group] ar validations licking the balls In-Reply-To: <01e901c82322$32f2eae0$6400a8c0@GTABLET> References: <27412DF9-075C-491A-A7EF-CD8665B0B890@gmail.com> <01e901c82322$32f2eae0$6400a8c0@GTABLET> Message-ID: On Nov 9, 2007 3:45 PM, Greg Edwards wrote: > Is this a problem just with AR or would all of the ORMs (Sequel, > Datamapper, etc) have the same problem? > I think the problem stems largely from the ActiveRecord connection adapter API. It provides no mechanism for acquiring or releasing table level locks. If you could get a table level lock, then checking the uniqueness of a value before performing an insert/update could be an atomic, as well as performing a find_or_create_by type operation -- Tony Arcieri ClickCaster, Inc. tony at clickcaster.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071109/ffd1e613/attachment.html From pezra at barelyenough.org Fri Nov 9 19:21:37 2007 From: pezra at barelyenough.org (Peter Williams) Date: Fri, 09 Nov 2007 17:21:37 -0700 Subject: [Boulder Ruby Group] ar validations licking the balls In-Reply-To: References: <27412DF9-075C-491A-A7EF-CD8665B0B890@gmail.com> <01e901c82322$32f2eae0$6400a8c0@GTABLET> Message-ID: <4734F991.4060708@barelyenough.org> Tony Arcieri wrote: > If you could get a table level lock, then checking the uniqueness of a > value before performing an insert/update could be an atomic, as well as > performing a find_or_create_by type operation This approach would work but I have a hard time imagining wanting to take the performance hit of a table lock on any operation that happens often enough to make this race condition a real issue. A workable approach for the case of find_or_create is to enforce the uniqueness with a database constraint and do this in ruby code: 1. do a find 2a. return the model object if you found it 2b. if it does not exist try to insert it 3a. if the insert succeeds return the new object 3b. if the insert fails re-run the find and return the result of that. We use this pattern in a couple of the high volume models where I work and it works quite well. With PostgreSQL, can achieve this by creating a "savepoint" before attempting the inserts and then rolling back to the savepoint if the insert fails. For normal inserts and updates you could rely on database constraints for the data integrity, but use validations for pretty error messages. AR could then detect an insert/update failure and, in that case, it could rerun the validations to figure out the appropriate message(s). The validations could even be mechanically created from the database constraints in many cases (see http://drysql.rubyforge.org/ for an example of this). Peter Williams From cfis at savagexi.com Sun Nov 11 14:49:16 2007 From: cfis at savagexi.com (Charlie Savage) Date: Sun, 11 Nov 2007 12:49:16 -0700 Subject: [Boulder Ruby Group] ar validations licking the balls In-Reply-To: <4734F991.4060708@barelyenough.org> References: <27412DF9-075C-491A-A7EF-CD8665B0B890@gmail.com> <01e901c82322$32f2eae0$6400a8c0@GTABLET> <4734F991.4060708@barelyenough.org> Message-ID: <47375CBC.1040208@savagexi.com> Peter Williams wrote: > Tony Arcieri wrote: >> If you could get a table level lock, then checking the uniqueness of a >> value before performing an insert/update could be an atomic, as well as >> performing a find_or_create_by type operation > > This approach would work but I have a hard time imagining wanting to > take the performance hit of a table lock on any operation that happens > often enough to make this race condition a real issue. > > A workable approach for the case of find_or_create is to enforce the > uniqueness with a database constraint and do this in ruby code: > > 1. do a find > 2a. return the model object if you found it > 2b. if it does not exist try to insert it > 3a. if the insert succeeds return the new object > 3b. if the insert fails re-run the find and return the result of > that. Mostly the same idea (also does update), but hides the nastiness in a postgresql procedure: http://www.varlena.com/GeneralBits/126.php And I don't think it requires a savepoint. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature Url : http://rubyforge.org/pipermail/bdrg-members/attachments/20071111/6f79bda5/attachment.bin From mghaught at gmail.com Mon Nov 12 23:55:31 2007 From: mghaught at gmail.com (Marty Haught) Date: Mon, 12 Nov 2007 21:55:31 -0700 Subject: [Boulder Ruby Group] BRG - November Meeting Reminder - Nov 14th Message-ID: <57f29e620711122055y3f8ffad1q8a8b1ca00d9ca538@mail.gmail.com> Hello Everyone, Here's our two day reminder on the next Boulder Ruby meeting. Our November meeting will be this Wednesday, the 14th, at 6:30pm (directions below). Tony Arcieri will present first on DistribuStream, his Ruby open source peercasting system. After some mingling time, we'll convene a panel discussion on remote team dynamics. We'll be exploring agile development in a telecommuting experience as well as how to work as a team. All are welcome to join our discussion as we talk about this more commonly occurring pattern. We look forward to seeing you there. Cheers, Marty Haught http://boulderruby.org Directions: Collective Intellect 1601 Pearl St, Suite 200 Boulder, CO 80302 The office is above the restaurants Aji & Leaf. The main entrance is on 16th Street, just North to of the Leaf restaurant. Come up the stairs to the second floor. URL to google maps: http://rubyurl.com/112 From clarkware at gmail.com Wed Nov 14 15:43:47 2007 From: clarkware at gmail.com (Mike Clark) Date: Wed, 14 Nov 2007 13:43:47 -0700 Subject: [Boulder Ruby Group] Ruby Studio in Denver Message-ID: <74B01C12-E872-42E5-85B4-7A72FB95AE61@gmail.com> Hi Folks, If you're still fairly new to Ruby, I thought you might be interested in a new Ruby Studio we're offering in Denver in February: http://pragmaticstudio.com/ruby-intro/ Dave Thomas and Chad Fowler will teach you everything you need to know to start writing object-oriented programs in Ruby, and have fun doing it! And if you're transitioning into Rails or JRuby, it's a great way to get started on the right foot. Thanks! Mike From mghaught at gmail.com Thu Nov 15 23:16:26 2007 From: mghaught at gmail.com (Marty Haught) Date: Thu, 15 Nov 2007 21:16:26 -0700 Subject: [Boulder Ruby Group] November Follow-up and the holidays Message-ID: <57f29e620711152016p34889a2fj2aaed6a4257e4f1@mail.gmail.com> Hi Everyone, I want to thank all that joined us last night for our November meeting. It was a great meeting with a lively panel on remote team dynamics (telecommuting with agile). One interesting twist is that much of what we discussed on the panel has been captured on a wiki. Chris McMahon has kindly set up a space for our group to use on this topic. He has also invited anyone interested to have access and share their thoughts. If you'd like to get a login to the wiki, please email me. Also, in case anyone is not aware, our website, http://boulderruby.org, has most of this information posted as well as other bits of news from the group. Finally, the other thing to mention is that we will not be meeting in December. Both Tim and I are overbooked and have decided to skip the meeting. You're always welcome to meet informally and raise some holiday cheer. Otherwise, we'll see you all back for our January meeting. We're still planning out the talks so if you're interested on presenting on something, please contact either Tim or me. Cheers, Marty From christopher.mcmahon at gmail.com Fri Nov 16 10:55:25 2007 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Fri, 16 Nov 2007 08:55:25 -0700 Subject: [Boulder Ruby Group] November Follow-up and the holidays In-Reply-To: <57f29e620711152016p34889a2fj2aaed6a4257e4f1@mail.gmail.com> References: <57f29e620711152016p34889a2fj2aaed6a4257e4f1@mail.gmail.com> Message-ID: <72799cd70711160755n2171efbakfddbea23a8a33f81@mail.gmail.com> One interesting twist is that > much of what we discussed on the panel has been captured on a wiki. > Chris McMahon has kindly set up a space for our group to use on this > topic. He has also invited anyone interested to have access and share > their thoughts. If you'd like to get a login to the wiki, please > email me. My thanks to all of you, it was a fun evening. I'm glad to have heard the interesting experiences and stories from the meeting, and I hope the wiki lives a long time and provides a resource into the future. -Chris From gweakliem at yahoo.com Fri Nov 16 11:00:08 2007 From: gweakliem at yahoo.com (Gordon Weakliem) Date: Fri, 16 Nov 2007 08:00:08 -0800 (PST) Subject: [Boulder Ruby Group] November Follow-up and the holidays Message-ID: <289448.21357.qm@web30812.mail.mud.yahoo.com> I'll third that, I'm planning to write up a summary for my co-workers. Coming from a Windows shop, it's always good to hear how the other half lives, I was telling Chris before the panel that the tools situation in Windows has always been terrible. There's this button pushing mentality that is really hard to shake. I was very interested in the use of IRC, that's something I hadn't thought of, but it seems like a great idea. -- Gordon Weakliem http://www.eighty-twenty.net ----- Original Message ---- From: Chris McMahon To: Marty Haught Cc: bdrg Sent: Friday, November 16, 2007 8:55:25 AM Subject: Re: [Boulder Ruby Group] November Follow-up and the holidays One interesting twist is that > much of what we discussed on the panel has been captured on a wiki. > Chris McMahon has kindly set up a space for our group to use on this > topic. He has also invited anyone interested to have access and share > their thoughts. If you'd like to get a login to the wiki, please > email me. My thanks to all of you, it was a fun evening. I'm glad to have heard the interesting experiences and stories from the meeting, and I hope the wiki lives a long time and provides a resource into the future. -Chris _______________________________________________ Bdrg-members mailing list Bdrg-members at rubyforge.org http://rubyforge.org/mailman/listinfo/bdrg-members ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071116/471c8ca8/attachment.html From tony at clickcaster.com Fri Nov 16 13:24:23 2007 From: tony at clickcaster.com (Tony Arcieri) Date: Fri, 16 Nov 2007 11:24:23 -0700 Subject: [Boulder Ruby Group] November Follow-up and the holidays In-Reply-To: <57f29e620711152016p34889a2fj2aaed6a4257e4f1@mail.gmail.com> References: <57f29e620711152016p34889a2fj2aaed6a4257e4f1@mail.gmail.com> Message-ID: Here's a copy of the DistribuStream presentation for anyone interested: http://distribustream.org/presentations/distribustream-brg-presentation.pdf Also, if anyone could point me at any of those PlanetLab-like services that were mentioned, that'd be great. -- Tony Arcieri ClickCaster, Inc. tony at clickcaster.com From mLaughlin at prototest.com Tue Nov 20 12:12:11 2007 From: mLaughlin at prototest.com (Matt Laughlin) Date: 20 Nov 2007 12:12:11 -0500 Subject: [Boulder Ruby Group] Ruby/Watir 6 month contract Message-ID: <592399.1195578730850.JavaMail.cfservice@webserver17> Hi, My name is Matt Laughlin with ProtoTest. I have a request to post a contract position in Boulder. The contract starts as 6 months in duration with the potential for multiple extensions. We have 2 Contractors who have been at the position for almost a year now. The position is a Ruby/Watir Engineer with mainly testing responsibilities in addition to Ruby scripting. I would be happy to send more details to anyone who might be interested or may know someone they would recommend. Matt Laughlin Technical Recruiter Proto Test #240 in the 2003 Inc. 500 9137 East Mineral Circle, Suite 140 Centennial, CO 80112 303.703.1510 x121 www.prototest.com mlaughlin at prototest.com http://www.linkedin.com/pub/0/952/474 ProtoTest ranked #151 - ColoradoBiz Top 250 Private Companies www.cobizmag.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071120/4658467f/attachment.html From loren at hellovenado.com Mon Nov 26 17:42:14 2007 From: loren at hellovenado.com (Loren Johnson) Date: Mon, 26 Nov 2007 15:42:14 -0700 Subject: [Boulder Ruby Group] Long Distance Ruby Message-ID: Howdy Denver and Boulder Rubyists, I've been on the hunt for a "local" Ruby community to stay connected with from my remote mountain life. Truth be told I live 10 miles south of the CO border in Questa, NM and besides ABQ (3 hr drive), you there in the Boulder/Denver group are my nearest neighbors (4 hr drive). I'm planning to attend January's meeting and would be interested/ willing to present if I'm of any use. I could walk through some Radiant CMS stuff as I am part of that core team and am close to the code. I'm also happy to see the panel you guys recently had on telecommuting workflow, for obvious reasons this is something I think about and deal with daily. Perhaps if this topic remains interesting to the group I could give a little glimpse into my mountain Ruby life. Glad you're all up there and I hope to visit soon. Cheers, Loren Johnson Venado Partners, LLC www.hellovenado.com aim: nl7xf skype: lorenedward -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071126/1f71679b/attachment.html From ara.t.howard at gmail.com Mon Nov 26 18:26:53 2007 From: ara.t.howard at gmail.com (ara.t.howard) Date: Mon, 26 Nov 2007 16:26:53 -0700 Subject: [Boulder Ruby Group] Long Distance Ruby In-Reply-To: References: Message-ID: <1FDC9C27-447A-4DBC-A81D-631136AC3C08@gmail.com> On Nov 26, 2007, at 3:42 PM, Loren Johnson wrote: > 'm planning to attend January's meeting and would be interested/ > willing to present if I'm of any use. I could walk through some > Radiant CMS stuff as I am part of that core team and am close to > the code. i've be very excited to see that loren. kind regards. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20071126/dd479463/attachment-0001.html From mghaught at gmail.com Mon Nov 26 22:21:09 2007 From: mghaught at gmail.com (Marty Haught) Date: Mon, 26 Nov 2007 20:21:09 -0700 Subject: [Boulder Ruby Group] Long Distance Ruby In-Reply-To: References: Message-ID: <57f29e620711261921t31311149t3797f7bf979d4212@mail.gmail.com> > I'm planning to attend January's meeting and would be interested/willing to > present if I'm of any use. I could walk through some Radiant CMS stuff as I > am part of that core team and am close to the code. Loren, You're welcome to join us and present if you'd like. I'll email you offlist to discuss further. > I'm also happy to see the panel you guys recently had on telecommuting > workflow, for obvious reasons this is something I think about and deal with > daily. Perhaps if this topic remains interesting to the group I could give a > little glimpse into my mountain Ruby life. I sent you an invite to the wiki space for the topic. Feel free to add your comments as you see fit. Cheers, Marty From christopher.mcmahon at gmail.com Mon Nov 26 22:57:46 2007 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Mon, 26 Nov 2007 20:57:46 -0700 Subject: [Boulder Ruby Group] OT: new bass (re: telecommuting panel) Message-ID: <72799cd70711261957l1985ed9du7b5ecb8eb5e91554@mail.gmail.com> After the panel on telecommuting adjourned to drink beer at the Lazy Dog, we discovered that 3 of the panelists, the host, and the other presenter were all serious bass players. Figure the odds of 5 serious bassists who are also Ruby programmers and telecommuters... So I was in Arvada visiting relatives over Thanksgiving and went to Guitar Center. I said "I'm looking for a great 4-string fretless with passive pickups", and to my surprise they had a Warwick Corvette Std. on the wall like that, and I walked out with it after negotiating a really sweet deal. Now I'd like to get it set up nicely. I've lowered the bridge myself, but it'd be great to hire an expert to do neck relief, nut height, intonation, etc. If you know any good bass luthiers, please drop me a line off the list. Thanks, and sorry for the noise, -Chris