From tj at stank.us Wed Jun 1 10:03:18 2011 From: tj at stank.us (TJ Stankus) Date: Wed, 1 Jun 2011 10:03:18 -0400 Subject: [raleigh.rb] No West End June Meetup Message-ID: There will not be a West End Ruby meetup this evening. We'll resume monthly meetups in July. Thanks, -TJ From scootklein at gmail.com Thu Jun 2 06:53:41 2011 From: scootklein at gmail.com (Scott Klein) Date: Thu, 2 Jun 2011 06:53:41 -0400 Subject: [raleigh.rb] last call - triangle startup weekend Message-ID: Hey all, Last call to register at trianglestartupweekend.com for this weekends festivities. The more hackers the merrier, and who doesn't love a 3 day bloodbath with their favorite other startup dev friends? Email me if you need more info. Scott Klein Mobile Developer, ReverbNation scootklein at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dhughes at alagad.com Thu Jun 2 10:36:51 2011 From: dhughes at alagad.com (Doug Hughes) Date: Thu, 2 Jun 2011 10:36:51 -0400 Subject: [raleigh.rb] last call - triangle startup weekend In-Reply-To: References: Message-ID: More information please? :) How's this work? Doug Hughes On Thu, Jun 2, 2011 at 6:53 AM, Scott Klein wrote: > Hey all, > > Last call to register at trianglestartupweekend.com for this weekends > festivities. The more hackers the merrier, and who doesn't love a 3 day > bloodbath with their favorite other startup dev friends? > > Email me if you need more info. > > Scott Klein > Mobile Developer, ReverbNation > scootklein at gmail.com > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at lojic.com Fri Jun 10 17:25:02 2011 From: info at lojic.com (Brian Adkins) Date: Fri, 10 Jun 2011 17:25:02 -0400 Subject: [raleigh.rb] Looking for a Junior to Mid-level Ruby/Rails Developer (full time, permanent) Message-ID: <9B58802A-31DE-436E-99F2-7458E7DF85A0@lojic.com> I'm helping a small business in North Raleigh hire a full time junior to mid-level Ruby/Rails developer. This is a great opportunity to gain experience and avoid having to deal with an existing atrocious codebase :) You'll be helping to build out the software infrastructure with a high degree of autonomy utilizing the best tools. The business is one of my favorite clients, and they're committed to building high quality software. If I were earlier in my career, I would jump on this in a heartbeat. Here's the craigslist ad: http://ln-s.us/kYRmGU Folks on the mailing list are encouraged to email me directly instead of using the anonymized craigslist email which forwards to me. Thanks, Brian -- Brian Adkins Lojic Technologies, LLC http://lojic.com/ From nwalls at ismedia.org Mon Jun 20 17:45:21 2011 From: nwalls at ismedia.org (Nathan L. Walls) Date: Mon, 20 Jun 2011 17:45:21 -0400 Subject: [raleigh.rb] Job Opportunity: Senior Application Developer Message-ID: Hi all, WebAssign is looking for a Senior Application Developer. I've attached a link to the job description, but let me talk a bit about what I'm hoping to find for the position. I'm looking for someone who considers themself a software craftsman. This developer is great at coaching and pairing with collegues on the whole development lifecycle. They can relate development tasks with business value. They start development by writing tests. This developer will square projects with the product roadmap and make sure we build features with our long-term goals in mind. This developer's read the Passionate Programmer and the Pragmatic Programmer and wants to help lead a team of developers to fulfill the spirit of those books. Ideal candidates also have significant experience working on large applications with what I'll charitably refer to as "mature" codebases, making them more performant and maintainable. WebAssign offers online homework and grading for college-level mathematics, chemistry and physics. We primarily work with Perl and JavaScript, with some Ruby (likely increasing) and *cough* Flash (likely declining). There's also some opportunity to work with NoSQL datastores, event queues and other fun stuff. We're a mid-sized, locally-owned and profitable company. Salary's commensurate with experience. Benefits are pretty sweet and we have a great office on NC State's Centennial Campus. Candidates who are qualified to work in the US only. No recruiters/agents, please. Please contact me off-list if you have questions at nathan (at) webassign.net. Full job description: http://webassign.net/info/employment/senior_application_developer.html Cheers, Nathan From rick.denatale at gmail.com Tue Jun 21 10:31:43 2011 From: rick.denatale at gmail.com (Rick DeNatale) Date: Tue, 21 Jun 2011 10:31:43 -0400 Subject: [raleigh.rb] Pre-Meeting chow and agenda Message-ID: Will be at the usual time 5:30, and place Randy's Pizza in RTP http://bit.ly/lv63pe For the benefit of those who got lost and ended up at another Randy's last month, this one is on S. Miami Blvd not far from the exit of that name on I-40 (Exit 281). To change things up just a bit, I'd like to start the meeting with an opportunity for members (particularly those new to Ruby) to ask general Ruby questions, and then go on to the speaker. -- Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From fatcatt316 at yahoo.com Tue Jun 21 14:40:56 2011 From: fatcatt316 at yahoo.com (Joe Peck) Date: Tue, 21 Jun 2011 11:40:56 -0700 (PDT) Subject: [raleigh.rb] Ruby Barcode generator that works? In-Reply-To: References: Message-ID: <813150.31998.qm@web65708.mail.ac4.yahoo.com> Good afternoon Ruby people, I need to find a barcode generator that A) works (on Mac or Windows), and B) can make Intelligent Mail AKA OneCode barcodes (http://en.wikipedia.org/wiki/Intelligent_Mail_barcode). I haven't had much luck. Does anyone know of a gem or plugin that can make these barcodes? Thanks for any advice, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryan.kearney at gmail.com Tue Jun 21 15:16:38 2011 From: bryan.kearney at gmail.com (Bryan Kearney) Date: Tue, 21 Jun 2011 15:16:38 -0400 Subject: [raleigh.rb] Job Opportunity: Rails at Red Hat Message-ID: <4E00EE16.8080307@gmail.com> Passing this along from $DAYJOB. If you are interested, please concact me off list. This is PERM, so no Contractor/Consultant/Placement firms please. It can be remote, so if you know folks in other areas.. please pass it along. https://careers.redhat.com/ext/detail?redhat6879 Thanks! -- bk From minter at lunenburg.org Tue Jun 21 21:53:41 2011 From: minter at lunenburg.org (H. Wade Minter) Date: Tue, 21 Jun 2011 21:53:41 -0400 Subject: [raleigh.rb] OpenStack API slides Message-ID: <0291FD0A-9473-46FF-BEC5-DE44EC90CF89@lunenburg.org> Hi folks, Thanks to everyone who came out to the OpenStack APIs talk tonight. For your viewing pleasure, the slides can be found at: http://www.slideshare.net/wademinter/openstack-apis-present-and-future-beta-talk If you have any questions on OpenStack or Rackspace Cloud APIs, feel free to send them my way! Thanks, Wade -------------- next part -------------- An HTML attachment was scrubbed... URL: From daemianmack at gmail.com Wed Jun 22 07:55:33 2011 From: daemianmack at gmail.com (daemian mack) Date: Wed, 22 Jun 2011 07:55:33 -0400 Subject: [raleigh.rb] Devops Weekly mailing list Message-ID: Forgot to mention this last night, but if anyone's interested, there's a very decent devops mailing list available, issued in weekly announce-only installments... http://devopsweekly.com/ There's a particular focus on Ruby-flavored management/monitoring, but plenty of useful surprises, too. Thanks again to Wade for the talk! -------------- next part -------------- An HTML attachment was scrubbed... URL: From minter at lunenburg.org Wed Jun 22 10:35:31 2011 From: minter at lunenburg.org (H. Wade Minter) Date: Wed, 22 Jun 2011 10:35:31 -0400 Subject: [raleigh.rb] Replacement for ar_mailer? Message-ID: <40B95FEA-A890-4361-B030-9CFEFB7C34E9@lunenburg.org> We're using ar_mailer at TeamSnap to handle processing our mail asynchronously. However, the software package appears to be getting a bit long in the tooth and unmaintained. Is there a better answer these days for that type of functionality? --Wade From kevin.olbrich at gmail.com Wed Jun 22 12:52:58 2011 From: kevin.olbrich at gmail.com (Kevin Olbrich) Date: Wed, 22 Jun 2011 12:52:58 -0400 Subject: [raleigh.rb] Devops Weekly mailing list In-Reply-To: References: Message-ID: Thanks Daemian, For those of you who weren't there... I was trying to gauge interest in forming yet another meetup group for "DevOps" in the area. There were a few people who indicated they might come to such a thing. If you weren't there and would like to voice your opinion send me an email at kolbrich at icontact.com -Kevin On Wed, Jun 22, 2011 at 7:55 AM, daemian mack wrote: > Forgot to mention this last night, but if anyone's interested, there's a > very decent devops mailing list available, issued in > weekly announce-only installments... > > http://devopsweekly.com/ > > There's a particular focus on Ruby-flavored management/monitoring, but > plenty of useful surprises, too. > > Thanks again to Wade for the talk! > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick.denatale at gmail.com Thu Jun 23 19:29:35 2011 From: rick.denatale at gmail.com (Rick DeNatale) Date: Thu, 23 Jun 2011 19:29:35 -0400 Subject: [raleigh.rb] Fwd: Open House at iContact - July 14th, 2011 6-9PM In-Reply-To: <72A12BD7D7D54D42A008B17FB1F0102F234C846C@AVL-MBX2.icontact.local> References: <72A12BD7D7D54D42A008B17FB1F0102F234C846C@AVL-MBX2.icontact.local> Message-ID: Andrew Parker (our host at iContact) asked me to pass along this invitation. I won't tell Apple that they are giving an iPad 2 away, if you don't. ---------- Forwarded message ---------- From: Andrew Parker Date: Thu, Jun 23, 2011 at 9:55 AM Subject: Open House at iContact - July 14th, 2011 6-9PM To: "Nathaniel Talbott (nathaniel at talbott.ws)" , " rick.denatale at gmail.com" Hey Nathaniel, Rick,**** ** ** Does Raleigh.rb have a forum or message board to post this information too? We?d really love to let all of the local technologists, particularly those in the meetups we host here, about this event so they can come out and learn more about us (and get some free beer and an ipad 2 while they are at it).** ** ** ** Thanks,**** Andrew**** ** ** ------------------------------------------------------------------------------------------ **** ** ** *The iContact Technology Open House is a unique event that allows Triangle technology professionals to gain insight into iContact, the technology that supports email marketing and our SaaS application, and the culture behind the brand. Our theme for the open house is "Wow Around the World!"* * * *Where:* *iContact Corporation* *5221 Paramount Parkway, Suite 200* *Morrisville, NC 27560* * * *When:* *Thursday, July 14th* *6-9PM* * * *Attendees will have the opportunity to:* * * *? Attend presentations by technology and industry professionals* *? Hear about the technologies we employ and our agile approach* *? Learn about open positions at iContact* *? Tour the 16 fully decorated sections of the building* *? Sample several local Triangle brews* *? Enjoy delicious food from Neomonde* *? Enjoy music by the Michael Pelz-Sherman Trio* * * *...and even use our slide, the fastest way from the 3rd to the 2nd floor!* ** ** *RSVP at http://icontact-technology-open-house.ettend.com/.* ------------------------------------------------------------------------------------------ **** ** ** Thanks,**** Andrew Parker**** -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -------------- next part -------------- An HTML attachment was scrubbed... URL: From minter at lunenburg.org Thu Jun 23 22:49:56 2011 From: minter at lunenburg.org (H. Wade Minter) Date: Thu, 23 Jun 2011 22:49:56 -0400 Subject: [raleigh.rb] OpenStack API slides In-Reply-To: <0291FD0A-9473-46FF-BEC5-DE44EC90CF89@lunenburg.org> References: <0291FD0A-9473-46FF-BEC5-DE44EC90CF89@lunenburg.org> Message-ID: <7118FD27-2D4B-4778-8D7E-E9026D06CD0D@lunenburg.org> And for those who were asking about a way to deploy OpenStack with somewhat less pain, you may want to check this project out: https://github.com/puppetlabs/puppetlabs-openstack --Wade On Jun 21, 2011, at 9:53 PM, H. Wade Minter wrote: > Hi folks, > > Thanks to everyone who came out to the OpenStack APIs talk tonight. For your viewing pleasure, the slides can be found at: > > http://www.slideshare.net/wademinter/openstack-apis-present-and-future-beta-talk > > If you have any questions on OpenStack or Rackspace Cloud APIs, feel free to send them my way! > > Thanks, > Wade > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -------------- next part -------------- An HTML attachment was scrubbed... URL: From luke at ehresman.org Sat Jun 25 11:36:30 2011 From: luke at ehresman.org (Luke Ehresman) Date: Sat, 25 Jun 2011 11:36:30 -0400 Subject: [raleigh.rb] ruby operator question Message-ID: I find myself doing this frequently when dealing with hashes: myhash[:counter] = 0 if !myhash[:counter] myhash[:counter] += 1 Is there any way to combine this into one operation that sets myhash[:counter] to 1 if it doesn't exists, but increments if it does? I know I could override some stuf in the Hash class, but I'm looking for a more general solution. Is there some nifty operator (like ||=) that would do this? Thanks, Luke -- Luke Ehresman, luke at ehresman.org CopperEgg - http://copperegg.com Tebros Systems - http://tebros.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrei.shindyapin at gmail.com Sat Jun 25 12:04:07 2011 From: andrei.shindyapin at gmail.com (Andrew Shindyapin) Date: Sat, 25 Jun 2011 20:04:07 +0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: You could use a ternary operator: myhash[:counter] = myhash[:counter] ? myhash[:counter] + 1 : 0 You get it down to one line, but your example is probably more succinct... On Sat, Jun 25, 2011 at 7:36 PM, Luke Ehresman wrote: > I find myself doing this frequently when dealing with hashes: > myhash[:counter] = 0 if !myhash[:counter] > myhash[:counter] += 1 > Is there any way to combine this into one operation that sets > myhash[:counter] to 1 if it doesn't exists, but increments if it does? ?I > know I could override some stuf in the Hash class, but I'm looking for a > more general solution. ?Is there some nifty operator (like ||=) that would > do this? > Thanks, > Luke > -- > Luke Ehresman,?luke at ehresman.org > CopperEgg - http://copperegg.com > Tebros Systems - http://tebros.com > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From brentmc79 at gmail.com Sat Jun 25 12:08:31 2011 From: brentmc79 at gmail.com (Brent Collier) Date: Sat, 25 Jun 2011 12:08:31 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: myhash[:counter] = myhash[:counter] ? myhash[:counter] + 1 : 0 On Sat, Jun 25, 2011 at 11:36 AM, Luke Ehresman wrote: > I find myself doing this frequently when dealing with hashes: > > myhash[:counter] = 0 if !myhash[:counter] > myhash[:counter] += 1 > > Is there any way to combine this into one operation that sets > myhash[:counter] to 1 if it doesn't exists, but increments if it does? I > know I could override some stuf in the Hash class, but I'm looking for a > more general solution. Is there some nifty operator (like ||=) that would > do this? > > Thanks, > Luke > > -- > Luke Ehresman, luke at ehresman.org > CopperEgg - http://copperegg.com > Tebros Systems - http://tebros.com > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Brent Collier | 919.564.6915 | www.BrentCollier.com | www.brentmc79.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From luke at ehresman.org Sat Jun 25 12:42:37 2011 From: luke at ehresman.org (Luke Ehresman) Date: Sat, 25 Jun 2011 12:42:37 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: Yeah, I was hoping for something more compact. This would rock: myhash[:counter] +||= 1 On Sat, Jun 25, 2011 at 12:04 PM, Andrew Shindyapin < andrei.shindyapin at gmail.com> wrote: > You could use a ternary operator: > > myhash[:counter] = myhash[:counter] ? myhash[:counter] + 1 : 0 > > You get it down to one line, but your example is probably more succinct... > > On Sat, Jun 25, 2011 at 7:36 PM, Luke Ehresman wrote: > > I find myself doing this frequently when dealing with hashes: > > myhash[:counter] = 0 if !myhash[:counter] > > myhash[:counter] += 1 > > Is there any way to combine this into one operation that sets > > myhash[:counter] to 1 if it doesn't exists, but increments if it does? I > > know I could override some stuf in the Hash class, but I'm looking for a > > more general solution. Is there some nifty operator (like ||=) that > would > > do this? > > Thanks, > > Luke > > -- > > Luke Ehresman, luke at ehresman.org > > CopperEgg - http://copperegg.com > > Tebros Systems - http://tebros.com > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- Luke Ehresman, luke at ehresman.org CopperEgg - http://copperegg.com Tebros Systems - http://tebros.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at lojic.com Sat Jun 25 12:51:43 2011 From: info at lojic.com (Brian Adkins) Date: Sat, 25 Jun 2011 12:51:43 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: <0613D7A8-D88E-49F2-B46D-3D789E106E39@lojic.com> x[:counter] = (x[:counter] || 0) + 1 -- Brian Adkins Lojic Technologies, LLC http://lojic.com/ On Jun 25, 2011, at 11:36 AM, Luke Ehresman wrote: > I find myself doing this frequently when dealing with hashes: > > myhash[:counter] = 0 if !myhash[:counter] > myhash[:counter] += 1 > > Is there any way to combine this into one operation that sets > myhash[:counter] to 1 if it doesn't exists, but increments if it > does? I know I could override some stuf in the Hash class, but I'm > looking for a more general solution. Is there some nifty operator > (like ||=) that would do this? > > Thanks, > Luke > > -- > Luke Ehresman, luke at ehresman.org > CopperEgg - http://copperegg.com > Tebros Systems - http://tebros.com > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- Brian Adkins Lojic Technologies, LLC http://lojic.com/ From jeremymcanally at gmail.com Sat Jun 25 12:55:18 2011 From: jeremymcanally at gmail.com (Jeremy McAnally) Date: Sat, 25 Jun 2011 12:55:18 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: Well, you could do this, but it might be overkill depending on the case. :) myhash = Hash.new { 0 } # Has to be lambda otherwise you'll share a reference among all missing keys...no good! myhash[:counter] += 1 --Jeremy On Sat, Jun 25, 2011 at 12:42 PM, Luke Ehresman wrote: > Yeah, I was hoping for something more compact. > This would rock: > myhash[:counter] +||= 1 > > > > On Sat, Jun 25, 2011 at 12:04 PM, Andrew Shindyapin > wrote: >> >> You could use a ternary operator: >> >> myhash[:counter] = myhash[:counter] ? myhash[:counter] + 1 : 0 >> >> You get it down to one line, but your example is probably more succinct... >> >> On Sat, Jun 25, 2011 at 7:36 PM, Luke Ehresman wrote: >> > I find myself doing this frequently when dealing with hashes: >> > myhash[:counter] = 0 if !myhash[:counter] >> > myhash[:counter] += 1 >> > Is there any way to combine this into one operation that sets >> > myhash[:counter] to 1 if it doesn't exists, but increments if it does? >> > ?I >> > know I could override some stuf in the Hash class, but I'm looking for a >> > more general solution. ?Is there some nifty operator (like ||=) that >> > would >> > do this? >> > Thanks, >> > Luke >> > -- >> > Luke Ehresman,?luke at ehresman.org >> > CopperEgg - http://copperegg.com >> > Tebros Systems - http://tebros.com >> > >> > _______________________________________________ >> > raleigh-rb-members mailing list >> > raleigh-rb-members at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > -- > Luke Ehresman,?luke at ehresman.org > CopperEgg - http://copperegg.com > Tebros Systems - http://tebros.com > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- http://jeremymcanally.com/?-?http://arcturo.com/ Bowties, ties, and more:?http://wickhamhousebrand.com My books: http://r3uh.com ?http://rbip.info/ ?http://hlrb.org (FREE!) From info at lojic.com Sat Jun 25 13:07:35 2011 From: info at lojic.com (Brian Adkins) Date: Sat, 25 Jun 2011 13:07:35 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: Nice idea Jeremy; it does seem to match Luke's request best. In this case, I'm not sure the lambda is required: ruby-1.9.2-p180 > x = Hash.new(0) => {} ruby-1.9.2-p180 > x[:counter1] += 1 => 1 ruby-1.9.2-p180 > x[:counter2] += 1 => 1 ruby-1.9.2-p180 > x => {:counter1=>1, :counter2=>1} Luke, if you can't initialize the Hash that way, maybe just define a function to get more conciseness: inc(myhash, :counter) Brian -- Brian Adkins Lojic Technologies, LLC http://lojic.com/ On Jun 25, 2011, at 12:55 PM, Jeremy McAnally wrote: > Well, you could do this, but it might be overkill depending on the > case. :) > > myhash = Hash.new { 0 } # Has to be lambda otherwise you'll share > a reference among all missing keys...no good! > myhash[:counter] += 1 > > --Jeremy > > On Sat, Jun 25, 2011 at 12:42 PM, Luke Ehresman > wrote: >> Yeah, I was hoping for something more compact. >> This would rock: >> myhash[:counter] +||= 1 >> >> >> >> On Sat, Jun 25, 2011 at 12:04 PM, Andrew Shindyapin >> wrote: >>> >>> You could use a ternary operator: >>> >>> myhash[:counter] = myhash[:counter] ? myhash[:counter] + 1 : 0 >>> >>> You get it down to one line, but your example is probably more >>> succinct... >>> >>> On Sat, Jun 25, 2011 at 7:36 PM, Luke Ehresman >>> wrote: >>>> I find myself doing this frequently when dealing with hashes: >>>> myhash[:counter] = 0 if !myhash[:counter] >>>> myhash[:counter] += 1 >>>> Is there any way to combine this into one operation that sets >>>> myhash[:counter] to 1 if it doesn't exists, but increments if it >>>> does? >>>> I >>>> know I could override some stuf in the Hash class, but I'm >>>> looking for a >>>> more general solution. Is there some nifty operator (like ||=) >>>> that >>>> would >>>> do this? >>>> Thanks, >>>> Luke >>>> -- >>>> Luke Ehresman, luke at ehresman.org >>>> CopperEgg - http://copperegg.com >>>> Tebros Systems - http://tebros.com >>>> >>>> _______________________________________________ >>>> raleigh-rb-members mailing list >>>> raleigh-rb-members at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> >> >> >> -- >> Luke Ehresman, luke at ehresman.org >> CopperEgg - http://copperegg.com >> Tebros Systems - http://tebros.com >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > > > -- > http://jeremymcanally.com/ - http://arcturo.com/ > Bowties, ties, and more: http://wickhamhousebrand.com > My books: > http://r3uh.com http://rbip.info/ http://hlrb.org (FREE!) > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From jeremymcanally at gmail.com Sat Jun 25 13:45:49 2011 From: jeremymcanally at gmail.com (Jeremy McAnally) Date: Sat, 25 Jun 2011 13:45:49 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: Ah, right you are! A few of us were finding some instances where that wasn't the case on Twitter a couple of months ago (can't remember what they were now for the life of me...). Anyhow, just be careful with it. :) --Jeremy On Sat, Jun 25, 2011 at 1:07 PM, Brian Adkins wrote: > Nice idea Jeremy; it does seem to match Luke's request best. > > In this case, I'm not sure the lambda is required: > > ruby-1.9.2-p180 > x = Hash.new(0) > ?=> {} > ruby-1.9.2-p180 > x[:counter1] += 1 > ?=> 1 > ruby-1.9.2-p180 > x[:counter2] += 1 > ?=> 1 > ruby-1.9.2-p180 > x > ?=> {:counter1=>1, :counter2=>1} > > Luke, if you can't initialize the Hash that way, maybe just define a > function to get more conciseness: > > inc(myhash, :counter) > > Brian > > -- > Brian Adkins > Lojic Technologies, LLC > http://lojic.com/ > > > > > On Jun 25, 2011, at 12:55 PM, Jeremy McAnally wrote: > >> Well, you could do this, but it might be overkill depending on the case. >> :) >> >> ? myhash = Hash.new { 0 } ?# Has to be lambda otherwise you'll share >> a reference among all missing keys...no good! >> ? myhash[:counter] += 1 >> >> --Jeremy >> >> On Sat, Jun 25, 2011 at 12:42 PM, Luke Ehresman wrote: >>> >>> Yeah, I was hoping for something more compact. >>> This would rock: >>> myhash[:counter] +||= 1 >>> >>> >>> >>> On Sat, Jun 25, 2011 at 12:04 PM, Andrew Shindyapin >>> wrote: >>>> >>>> You could use a ternary operator: >>>> >>>> myhash[:counter] = myhash[:counter] ? myhash[:counter] + 1 : 0 >>>> >>>> You get it down to one line, but your example is probably more >>>> succinct... >>>> >>>> On Sat, Jun 25, 2011 at 7:36 PM, Luke Ehresman >>>> wrote: >>>>> >>>>> I find myself doing this frequently when dealing with hashes: >>>>> myhash[:counter] = 0 if !myhash[:counter] >>>>> myhash[:counter] += 1 >>>>> Is there any way to combine this into one operation that sets >>>>> myhash[:counter] to 1 if it doesn't exists, but increments if it does? >>>>> ?I >>>>> know I could override some stuf in the Hash class, but I'm looking for >>>>> a >>>>> more general solution. ?Is there some nifty operator (like ||=) that >>>>> would >>>>> do this? >>>>> Thanks, >>>>> Luke >>>>> -- >>>>> Luke Ehresman, luke at ehresman.org >>>>> CopperEgg - http://copperegg.com >>>>> Tebros Systems - http://tebros.com >>>>> >>>>> _______________________________________________ >>>>> raleigh-rb-members mailing list >>>>> raleigh-rb-members at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>>>> >>>> _______________________________________________ >>>> raleigh-rb-members mailing list >>>> raleigh-rb-members at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >>> >>> >>> -- >>> Luke Ehresman, luke at ehresman.org >>> CopperEgg - http://copperegg.com >>> Tebros Systems - http://tebros.com >>> >>> _______________________________________________ >>> raleigh-rb-members mailing list >>> raleigh-rb-members at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >>> >> >> >> >> -- >> http://jeremymcanally.com/ - http://arcturo.com/ >> Bowties, ties, and more: http://wickhamhousebrand.com >> My books: >> http://r3uh.com ?http://rbip.info/ ?http://hlrb.org (FREE!) >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- http://jeremymcanally.com/?-?http://arcturo.com/ Bowties, ties, and more:?http://wickhamhousebrand.com My books: http://r3uh.com ?http://rbip.info/ ?http://hlrb.org (FREE!) From rick.denatale at gmail.com Sat Jun 25 14:01:16 2011 From: rick.denatale at gmail.com (Rick DeNatale) Date: Sat, 25 Jun 2011 14:01:16 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: On Sat, Jun 25, 2011 at 1:45 PM, Jeremy McAnally wrote: > Ah, right you are! > > A few of us were finding some instances where that wasn't the case on > Twitter a couple of months ago (can't remember what they were now for > the life of me...). Anyhow, just be careful with it. :) > > --Jeremy > > It's safe not to use the block form if the default value is a manifest object, e.g. a number, or a symbol. It's probably also ok if the value is immutable. YMMV. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at lojic.com Sat Jun 25 14:14:05 2011 From: info at lojic.com (Brian Adkins) Date: Sat, 25 Jun 2011 14:14:05 -0400 Subject: [raleigh.rb] ruby operator question In-Reply-To: References: Message-ID: <3950A2CE-E296-4C38-A048-2A66ABEC76D7@lojic.com> I think it's safe due to 0 being a fixnum. Using a reference to an object would probably be bad if sharing wasn't expected. On Jun 25, 2011, at 1:45 PM, Jeremy McAnally wrote: > Ah, right you are! > > A few of us were finding some instances where that wasn't the case on > Twitter a couple of months ago (can't remember what they were now for > the life of me...). Anyhow, just be careful with it. :) > > --Jeremy > > On Sat, Jun 25, 2011 at 1:07 PM, Brian Adkins wrote: >> Nice idea Jeremy; it does seem to match Luke's request best. >> >> In this case, I'm not sure the lambda is required: >> >> ruby-1.9.2-p180 > x = Hash.new(0) >> => {} >> ruby-1.9.2-p180 > x[:counter1] += 1 >> => 1 >> ruby-1.9.2-p180 > x[:counter2] += 1 >> => 1 >> ruby-1.9.2-p180 > x >> => {:counter1=>1, :counter2=>1} >> >> Luke, if you can't initialize the Hash that way, maybe just define a >> function to get more conciseness: >> >> inc(myhash, :counter) >> >> Brian >> >> -- >> Brian Adkins >> Lojic Technologies, LLC >> http://lojic.com/ >> >> >> >> >> On Jun 25, 2011, at 12:55 PM, Jeremy McAnally wrote: >> >>> Well, you could do this, but it might be overkill depending on the >>> case. >>> :) >>> >>> myhash = Hash.new { 0 } # Has to be lambda otherwise you'll share >>> a reference among all missing keys...no good! >>> myhash[:counter] += 1 >>> >>> --Jeremy From jim at jimvanfleet.com Sun Jun 26 16:09:39 2011 From: jim at jimvanfleet.com (Jim Van Fleet) Date: Sun, 26 Jun 2011 16:09:39 -0400 Subject: [raleigh.rb] Replacement for ar_mailer? In-Reply-To: <40B95FEA-A890-4361-B030-9CFEFB7C34E9@lunenburg.org> References: <40B95FEA-A890-4361-B030-9CFEFB7C34E9@lunenburg.org> Message-ID: Mocksup uses resque mailer happily. http://blog.zerosum.org/2010/7/28/resque-mailer-v1-0-0-with-rails-3-support.html Otherscreen is using delayed_job which, in its newest forms, wraps regular old Ruby code very comfortably, including Mailer code with no special code (although you do need to alter the calls in the code). You're serializing objects, which is not the greatest, but you can work around that. On Wed, Jun 22, 2011 at 10:35 AM, H. Wade Minter wrote: > We're using ar_mailer at TeamSnap to handle processing our mail > asynchronously. However, the software package appears to be getting a bit > long in the tooth and unmaintained. > > Is there a better answer these days for that type of functionality? > > --Wade > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: From midpeter444 at gmail.com Sat Jun 25 14:54:59 2011 From: midpeter444 at gmail.com (Michael Peterson) Date: Sat, 25 Jun 2011 14:54:59 -0400 Subject: [raleigh.rb] Devops Weekly mailing list In-Reply-To: References: Message-ID: Just watched a short keynote from the O'Reilly Velocity conference, called "Career Development", but it's mostly about DevOps with some interesting points. http://youtu.be/y0mHo7SMCQk ... if you're interested. -Michael On Wed, Jun 22, 2011 at 12:52 PM, Kevin Olbrich wrote: > Thanks Daemian, > > For those of you who weren't there... I was trying to gauge interest in > forming yet another meetup group for "DevOps" in the area. There were a few > people who indicated they might come to such a thing. If you weren't there > and would like to voice your opinion send me an email at > kolbrich at icontact.com > > -Kevin > > On Wed, Jun 22, 2011 at 7:55 AM, daemian mack wrote: > >> Forgot to mention this last night, but if anyone's interested, there's a >> very decent devops mailing list available, issued in >> weekly announce-only installments... >> >> http://devopsweekly.com/ >> >> There's a particular focus on Ruby-flavored management/monitoring, but >> plenty of useful surprises, too. >> >> Thanks again to Wade for the talk! >> >> _______________________________________________ >> raleigh-rb-members mailing list >> raleigh-rb-members at rubyforge.org >> http://rubyforge.org/mailman/listinfo/raleigh-rb-members >> > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pelargir at gmail.com Wed Jun 29 19:31:01 2011 From: pelargir at gmail.com (Matthew Bass) Date: Wed, 29 Jun 2011 19:31:01 -0400 Subject: [raleigh.rb] Baking passwords with Chef Message-ID: <395EAF45-2A72-41B8-84C7-E9BC7315B341@gmail.com> I have a question for the Chef experts among us: what's the best way to handle passwords? I have a recipe that generates a config file. The config file contains a rather sensitive password. The easiest approach would be to drop the password directly into the template the recipe uses, but this makes me uncomfortable since the password will end up in my git repo. I could pass it in from the command line, but that's a lot of trouble. Is there a better way to do this? Matthew -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4881 bytes Desc: not available URL: From ahwatts at gmail.com Wed Jun 29 19:58:15 2011 From: ahwatts at gmail.com (Andrew Watts) Date: Wed, 29 Jun 2011 19:58:15 -0400 Subject: [raleigh.rb] Baking passwords with Chef In-Reply-To: <395EAF45-2A72-41B8-84C7-E9BC7315B341@gmail.com> References: <395EAF45-2A72-41B8-84C7-E9BC7315B341@gmail.com> Message-ID: I've used data bags in the past to store information kind of like that, assuming you trust that your Chef server is safe. We have a "user" cookbook that uses a data bag to store the list of users and their (hashed) passwords. On Wed, Jun 29, 2011 at 7:31 PM, Matthew Bass wrote: > I have a question for the Chef experts among us: what's the best way to handle passwords? > > I have a recipe that generates a config file. The config file contains a rather sensitive password. The easiest approach would be to drop the password directly into the template the recipe uses, but this makes me uncomfortable since the password will end up in my git repo. > > I could pass it in from the command line, but that's a lot of trouble. Is there a better way to do this? > > Matthew > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > From mike at hales.ws Wed Jun 29 22:54:22 2011 From: mike at hales.ws (Michael Hale) Date: Wed, 29 Jun 2011 22:54:22 -0400 Subject: [raleigh.rb] Baking passwords with Chef In-Reply-To: <395EAF45-2A72-41B8-84C7-E9BC7315B341@gmail.com> References: <395EAF45-2A72-41B8-84C7-E9BC7315B341@gmail.com> Message-ID: <-6395768240369594149@unknownmsgid> One option would be to use environment variables. There are lots of ways to alter the environment the template resource has. Sent from my iPad On Jun 29, 2011, at 19:47, Matthew Bass wrote: > I have a question for the Chef experts among us: what's the best way to handle passwords? > > I have a recipe that generates a config file. The config file contains a rather sensitive password. The easiest approach would be to drop the password directly into the template the recipe uses, but this makes me uncomfortable since the password will end up in my git repo. > > I could pass it in from the command line, but that's a lot of trouble. Is there a better way to do this? > > Matthew > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From nospam at tonyspencer.com Thu Jun 30 12:34:11 2011 From: nospam at tonyspencer.com (Tony Spencer) Date: Thu, 30 Jun 2011 12:34:11 -0400 Subject: [raleigh.rb] Looking for a local freelancer Message-ID: <4C9F4DA1-9A76-4779-9494-6C29DA1BC863@tonyspencer.com> Hi everyone, We could use some help with a few one off Ruby and RoR tasks. We have fulltime developers but they are maxed out. If anyone is interested please shoot me an email: tony **at** ayima.com and include your phone number. I have one pure Ruby task that I need help with immediately. Thanks! Tony Spencer