From skmetz at gmail.com Wed Apr 1 07:21:18 2009 From: skmetz at gmail.com (Sandi Metz) Date: Wed, 1 Apr 2009 07:21:18 -0400 Subject: [raleigh.rb] Compiling Ruby and openssl Message-ID: <530f4ae70904010421p57c29e25hd57e21f618d0b6e5@mail.gmail.com> I find myself needing a new version of openssl on a Redhat Rel4 installation. A very old version (2003) of openssl already exists which is entangled into and required by the rest of the os. Our server guy compiled openssl with shared libraries and put the output in our own directory. Now we're trying to compile a ruby that uses those new headers at compile time and jumps to the new .so files at run time. This seems to require some combination of gcc compile flags and maybe an LD_LIBRARY_PATH setting? If this all seems simple to anyone, I'd appreciate any tips. Thanks, Sandi -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathaniel at talbott.ws Wed Apr 1 15:10:58 2009 From: nathaniel at talbott.ws (Nathaniel Talbott) Date: Wed, 1 Apr 2009 12:10:58 -0700 Subject: [raleigh.rb] Best 3G laptop card In-Reply-To: <49D2A98D.8000207@lojic.com> References: <49D2A98D.8000207@lojic.com> Message-ID: <4ce336a20904011210q5a820468o45fbc8a80bf1e7a@mail.gmail.com> On Tue, Mar 31, 2009 at 4:38 PM, Brian Adkins wrote: > I'm looking for recommendations for a 3G laptop card for my mbp. > > I tried AT&T over the summer, and I discovered that my long running ssh > sessions would get disconnected periodically (even with strong signals) > requiring me to setup the tunnel over and over again. If one is just using a > browser and/or email client w/o long running connections, I expect they'd > never notice a problem. Maybe their network is better now. > > Do any of y'all have a laptop card (or bluetooth tethered 3G phone) with > long running connections and very few dropped connections? I'm a big fan of my Sprint EVDO service. It's not 3G but it's just as fast, has better coverage, and I've spent hours using it while driving down the highway. Not only does it jump cells without a hiccup, it maintains SSH connections while jumping cells without any issue, and I've had no issues with SSH sessions dying. Highly recommended! -- Nathaniel Talbott <:((>< From jim at jimvanfleet.com Wed Apr 1 21:25:55 2009 From: jim at jimvanfleet.com (Jim Van Fleet) Date: Wed, 1 Apr 2009 21:25:55 -0400 Subject: [raleigh.rb] Ruby column for Linux Magazine In-Reply-To: <3E2B08B1-A20F-4750-8E02-3BCBA5FC4830@gmail.com> References: <3E2B08B1-A20F-4750-8E02-3BCBA5FC4830@gmail.com> Message-ID: For that audience, perhaps something on Chef or Puppet might be appropriate? I am loving Chef. Cheers, Jim On Tue, Mar 31, 2009 at 5:55 PM, Martin Streicher < martin.streicher at gmail.com> wrote: > > Many of you know I was Editor-in-Chief of Linux Magazine from 2002-2007. > I've joined forces with LM again to lead the magazine's coverage of Web > technologies, including writing my own column. Since I've been working in > Rails a bunch, much of the column will focus on it, gems, and plug-ins. > > I had a short deadline this week, but cranked out a piece on Rails 2.3 > finder enhancements. You can read the column at... > > http://www.linux-mag.com/id/7277 > > If you have suggestions for things I should cover about Rails or the Web, > drop me a line. > > I also wrote a piece recently on hosting assets on CloudFront that should > appear on Amazon's Dev Center shortly. That article also uses Rails. > > Thanks for reading. > > Martin > > > > > _______________________________________________ > 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 martin.streicher at gmail.com Thu Apr 2 10:35:30 2009 From: martin.streicher at gmail.com (Martin Streicher) Date: Thu, 2 Apr 2009 10:35:30 -0400 Subject: [raleigh.rb] 3G card In-Reply-To: References: Message-ID: <6FD73B08-8673-4D05-A3B1-04286330B7C7@gmail.com> I had a Verizon card for a year and loved it. It worked all over the country and from my car all over NC. I even used it on the ferry to Ocracoke. (Yes, I am a total loser.) On Apr 1, 2009, at 9:26 PM, raleigh-rb-members-request at rubyforge.org wrote: > I'm looking for recommendations for a 3G laptop card for my mbp. > > I tried AT&T over the summer, and I discovered that my long running > ssh sessions would get disconnected periodically (even with strong > signals) requiring me to setup the tunnel over and over again. If > one is just using a browser and/or email client w/o long running > connections, I expect they'd never notice a problem. Maybe their > network is better now. > > Do any of y'all have a laptop card (or bluetooth tethered 3G phone) > with long running connections and very few dropped connections? From martin.streicher at gmail.com Thu Apr 2 10:36:30 2009 From: martin.streicher at gmail.com (Martin Streicher) Date: Thu, 2 Apr 2009 10:36:30 -0400 Subject: [raleigh.rb] Ruby column In-Reply-To: References: Message-ID: <80A5B8DE-A04E-476C-B360-01330EC1CC12@gmail.com> Puppet is already on the list. I started to look into Chef. Very nice. On the list. On Apr 1, 2009, at 9:26 PM, raleigh-rb-members-request at rubyforge.org wrote: > > For that audience, perhaps something on Chef or Puppet might be > appropriate? I am loving Chef. From JBrenner at BBandT.com Thu Apr 2 11:31:05 2009 From: JBrenner at BBandT.com (Brenner, Jonathon) Date: Thu, 2 Apr 2009 11:31:05 -0400 Subject: [raleigh.rb] Ruby column for Linux Magazine In-Reply-To: References: <3E2B08B1-A20F-4750-8E02-3BCBA5FC4830@gmail.com> Message-ID: <91864382B2433640BA2A447041B3DBC30A2F29C2@wil-exmb01.bbtnet.com> That last sentence is just begging for a snarky South Park response. ________________________________ From: raleigh-rb-members-bounces at rubyforge.org [mailto:raleigh-rb-members-bounces at rubyforge.org] On Behalf Of Jim Van Fleet Sent: Wednesday, April 01, 2009 9:26 PM To: The mailing list of raleigh.rb Subject: Re: [raleigh.rb] Ruby column for Linux Magazine For that audience, perhaps something on Chef or Puppet might be appropriate? I am loving Chef. Cheers, Jim On Tue, Mar 31, 2009 at 5:55 PM, Martin Streicher wrote: Many of you know I was Editor-in-Chief of Linux Magazine from 2002-2007. I've joined forces with LM again to lead the magazine's coverage of Web technologies, including writing my own column. Since I've been working in Rails a bunch, much of the column will focus on it, gems, and plug-ins. I had a short deadline this week, but cranked out a piece on Rails 2.3 finder enhancements. You can read the column at... http://www.linux-mag.com/id/7277 If you have suggestions for things I should cover about Rails or the Web, drop me a line. I also wrote a piece recently on hosting assets on CloudFront that should appear on Amazon's Dev Center shortly. That article also uses Rails. Thanks for reading. Martin _______________________________________________ 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 nwalls at ismedia.org Thu Apr 2 11:42:31 2009 From: nwalls at ismedia.org (Nathan L. Walls) Date: Thu, 2 Apr 2009 11:42:31 -0400 Subject: [raleigh.rb] Ruby column for Linux Magazine In-Reply-To: <3E2B08B1-A20F-4750-8E02-3BCBA5FC4830@gmail.com> References: <3E2B08B1-A20F-4750-8E02-3BCBA5FC4830@gmail.com> Message-ID: <3B8DBC50-D95A-414F-AFD6-A8572478C128@ismedia.org> Martin; How about alternate ruby web tools? Webby and Sinatra to name two. Nathan -- nathan l. walls nwalls at ismedia.org general: http://ismedia.org/ photo stream: http://flickr.com/photos/base10/ On Mar 31, 2009, at 5:55 PM, Martin Streicher wrote: > > Many of you know I was Editor-in-Chief of Linux Magazine from > 2002-2007. I've joined forces with LM again to lead the magazine's > coverage of Web technologies, including writing my own column. Since > I've been working in Rails a bunch, much of the column will focus on > it, gems, and plug-ins. > > I had a short deadline this week, but cranked out a piece on Rails > 2.3 finder enhancements. You can read the column at... > > http://www.linux-mag.com/id/7277 > > If you have suggestions for things I should cover about Rails or the > Web, drop me a line. > > I also wrote a piece recently on hosting assets on CloudFront that > should appear on Amazon's Dev Center shortly. That article also uses > Rails. > > Thanks for reading. > > Martin > > > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members From seancribbs at gmail.com Thu Apr 2 12:30:45 2009 From: seancribbs at gmail.com (Sean Cribbs) Date: Thu, 02 Apr 2009 12:30:45 -0400 Subject: [raleigh.rb] Ruby column for Linux Magazine In-Reply-To: <91864382B2433640BA2A447041B3DBC30A2F29C2@wil-exmb01.bbtnet.com> References: <3E2B08B1-A20F-4750-8E02-3BCBA5FC4830@gmail.com> <91864382B2433640BA2A447041B3DBC30A2F29C2@wil-exmb01.bbtnet.com> Message-ID: <49D4E835.70305@gmail.com> Did you see Ezra's first post about Chef? Pure South Park. Sean Brenner, Jonathon wrote: > That last sentence is just begging for a snarky South Park response. > > ------------------------------------------------------------------------ > *From:* raleigh-rb-members-bounces at rubyforge.org > [mailto:raleigh-rb-members-bounces at rubyforge.org] *On Behalf Of *Jim > Van Fleet > *Sent:* Wednesday, April 01, 2009 9:26 PM > *To:* The mailing list of raleigh.rb > *Subject:* Re: [raleigh.rb] Ruby column for Linux Magazine > > For that audience, perhaps something on Chef or Puppet might be > appropriate? I am loving Chef. > > Cheers, > > Jim > > On Tue, Mar 31, 2009 at 5:55 PM, Martin Streicher > > wrote: > > > Many of you know I was Editor-in-Chief of Linux Magazine from > 2002-2007. I've joined forces with LM again to lead the magazine's > coverage of Web technologies, including writing my own column. > Since I've been working in Rails a bunch, much of the column will > focus on it, gems, and plug-ins. > > I had a short deadline this week, but cranked out a piece on Rails > 2.3 finder enhancements. You can read the column at... > > http://www.linux-mag.com/id/7277 > > If you have suggestions for things I should cover about Rails or > the Web, drop me a line. > > I also wrote a piece recently on hosting assets on CloudFront that > should appear on Amazon's Dev Center shortly. That article also > uses Rails. > > Thanks for reading. > > Martin > > > > > _______________________________________________ > 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 martin.streicher at gmail.com Thu Apr 2 12:56:57 2009 From: martin.streicher at gmail.com (Martin Streicher) Date: Thu, 2 Apr 2009 12:56:57 -0400 Subject: [raleigh.rb] Announcing three new publications, one for Ruby and more Message-ID: <9E81C103-9A58-4DBB-B423-2F9E1BF770F8@gmail.com> 2 April 2009 My name is Martin Streicher. I am pleased to announce three new publications dedicated to web developers. Red: The Journal of Ruby Development Facade: The Journal of Front-end Development Tabula: The Journal of Open Source Database Development The three publications obviously have a great number of topics in common between then, and much that is unique. Where ever possible, readers will benefit from the synergies and the novelties. These journals are to be published differently than other periodicals: 1. Each journal is published as frequently as possible so material is timely and accessible. 2. The price for each journal can therefore vary, depending on the scope and size of an issue. 3. You will be able to purchase individual articles or an entire issue of each journal. 4. Each author earns a royalty for the sale or his or her individual article and the sale of an entire issue in which his or her article appears. 5. Each author earns a royalty from the advertising bundled in each article and issue. 6. A portion of all revenue garnered will be awarded as grants to further the documentation of open source technologies. 7. To guarantee the highest quality technical material, peer technical reviewers also earn a royalty on publications sold. 8. The publications will be available in PDF form and in print-on- demand form. (Pricing is to be determined.) 9. Each author retains copyright in his or her work, but grants exclusive, worldwide, first serial rights to the publication for a short period of time. Each contributing author will receive an annual subscription to the journal he or she contributes to. 10. Subscribers will have early access to all articles in development. A formal author letter spelling out terms will be available shortly but will earnestly reflect the principles above to encourage expert contributions. Each journal will also have its own web site in the near future. Effective immediately, I would like to call for contributors. If you are working in Rails, Ruby, MySQL, SQLite, PostgreSQL, JavaScript, CSS, ORMs, EC2, S3, CloudFront, provisioning, scaling, and high- availability, among others, and have an interesting technique, plugin, technology, or insight, please contact me with a proposal. I'll leave the proposal format informal for now, but please specify why your software or approach is novel and would be of interest to your community and peers. Here are some story ideas to consider: Rails 2.3 novelties; Chef; Cucumber; Sass and HAML; MariaDB; embedded search engines; jQuery; scaling Rails; performance optimizations; sharding; CSS frameworks; Ruby 1.9; BDD; Ruby Cocoa; PostgreSQL goodies; deployment and monitoring; best practices; gems; plugins; and more. You can also feel free to send community events, such as conferences, meet-ups, lectures, brigades, startup weekends, and hack fests. Each journal will contain community pages so readers can connect to one another. Classified and commercial advertisements are also accepted. You can advertise your own or your company's services. Please contact me for rates. About me: From 2002-2007, I was the Editor-in-Chief of Linux Magazine and am currently that publication's web development columnist. I am a regular contributor to IBM developerWorks's Linux and Open Source Zones, and also write that site's monthly "Speaking Unix" column. I also contribute to Linux Pro Magazine and to Amazon's Web Services Developer Center. I am currently a freelance Rails developer and author -- and now publisher of these journals. I live in Raleigh, NC. I am an avid comic reader, art collector, foodie, and music fan. I have two teens, two dogs, and two cats. I look forward to your questions and proposals. You can reach me via email, phone, Twitter, and IM. Email: martin.streicher at gmail.com GTalk: martin.streicher iChat and Yahoo: supergiantrobot Skype: martin.s.streicher Phone: 919.741.4182 Twitter: martinstreicher web: http://www.linkedin.com/in/mstreicher My thanks for your consideration. -- Martin Streicher, Principal and Publisher The Pixel, Byte, and Comma Company Raleigh, NC From rick.denatale at gmail.com Thu Apr 2 13:36:02 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Thu, 2 Apr 2009 13:36:02 -0400 Subject: [raleigh.rb] Ruby column for Linux Magazine In-Reply-To: <49D4E835.70305@gmail.com> References: <3E2B08B1-A20F-4750-8E02-3BCBA5FC4830@gmail.com> <91864382B2433640BA2A447041B3DBC30A2F29C2@wil-exmb01.bbtnet.com> <49D4E835.70305@gmail.com> Message-ID: 2009/4/2 Sean Cribbs > Did you see Ezra's first post about Chef? Pure South Park. > > Sean > Chocolate and Spicy! At least there's no Christmas p** as far as I'm aware! -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/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 robert.fischer at smokejumperit.com Sat Apr 4 12:07:22 2009 From: robert.fischer at smokejumperit.com (Robert Fischer) Date: Sat, 04 Apr 2009 12:07:22 -0400 Subject: [raleigh.rb] Startup Weekend Looking for Front End Developers Message-ID: <49D785BA.7010902@smokejumperit.com> "Startup Junkyard", the low-end IP exchange, is looking for a front end developer. Come down to Edge Office and go to the glass offices in the back. It's a fun group -- I was almost with them, but got nabbed by a different group at the last moment. ~~ Robert Fischer. Grails Training http://GroovyMag.com/training Smokejumper Consulting http://SmokejumperIT.com Enfranchised Mind Blog http://EnfranchisedMind.com/blog Check out my book, "Grails Persistence with GORM and GSQL"! http://www.smokejumperit.com/redirect.html From poochio at gmail.com Mon Apr 6 16:52:43 2009 From: poochio at gmail.com (Phil Puccio) Date: Mon, 6 Apr 2009 16:52:43 -0400 Subject: [raleigh.rb] How to omit carriage return when writing to a file on Windows Message-ID: Hi, I'm writing a little utility that modifies text files used by a commercial Windows program. I am extracting several lines of data from a database and using those lines to replace a subset of lines in a template file to create a new file. I am trying to show that the only changes made by this utility is the replacement of the subset of lines, but every line is getting changed. It turns out that the lines in the pre-existing template files are terminated only by \n , but the lines I write out via Ruby are all terminated by \r\n . I've been through several IO methods, and I get either no carriage returns and no new lines, or both carriage returns and new lines. If ios is my output stream and lines is an array of strings, none of which ends with \n or \r , then ios.write(lines) ==> neither \r nor \n at the end of every string in output file ios.syswrite(lines) ==> neither \r nor \n at the end of every string in output file ios.print(lines) ==> neither \r nor \n at the end of every string in output file ios.puts(lines) ==> \r\n at the end of every string in output file If I change lines to be an array of strings, each of which ends with \n, then all four IO methods result in a file with \r\n at the end of every string in the file. Similarly, if I change lines to be single string containing embedded \n characters where I want new lines in the output, then all four IO methods result in a file with \r\n at the end of every string in the file. The output record separator ($\) is mentioned in the RDoc for IO.print(), and its value is nil in my environment. My Ruby version is 1.8.6, and I'm developing with NetBeans 6.5 on WinXP. I hope it's possible for Ruby to write out a file on Windows without any \r characters. I appreciate any help you can offer. Thanks, Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeremymcanally at gmail.com Mon Apr 6 17:27:00 2009 From: jeremymcanally at gmail.com (Jeremy McAnally) Date: Mon, 6 Apr 2009 16:27:00 -0500 Subject: [raleigh.rb] How to omit carriage return when writing to a file on Windows In-Reply-To: References: Message-ID: You can set the $\ value. It defaults to the platform default. Try: $\ = "\n" ...at the init of your app. --Jeremy On Mon, Apr 6, 2009 at 3:52 PM, Phil Puccio wrote: > Hi, > > I'm writing a little utility that modifies text files used by a commercial > Windows program.? I am extracting several lines of data from a database and > using those lines to replace a subset of lines in a template file to create > a new file. > > I am trying to show that the only changes made by this utility is the > replacement of the subset of lines, but every line is getting changed.? It > turns out that the lines in the pre-existing template files are terminated > only by \n , but the lines I write out via Ruby are all terminated by \r\n . > > I've been through several IO methods, and I get either no carriage returns > and no new lines, or both carriage returns and new lines. > > If ios is my output stream and lines is an array of strings, none of which > ends with \n or \r , then > > ???? ios.write(lines) ==> neither \r nor \n at the end of every string in > output file > ???? ios.syswrite(lines) ==> neither \r nor \n at the end of every string in > output file > ???? ios.print(lines) ==> neither \r nor \n at the end of every string in > output file > ???? ios.puts(lines) ==> \r\n at the end of every string in output file > > If I change lines to be an array of strings, each of which ends with \n, > then all four IO methods result in a file with \r\n at the end of every > string in the file. > > Similarly, if I change lines to be single string containing embedded \n > characters where I want new lines in the output, then all four IO methods > result in a file with \r\n at the end of every string in the file. > > The output record separator ($\) is mentioned in the RDoc for IO.print(), > and its value is nil in my environment.? My Ruby version is 1.8.6, and I'm > developing with NetBeans 6.5 on WinXP. > > I hope it's possible for Ruby to write out a file on Windows without any \r > characters.? I appreciate any help you can offer. > > Thanks, > > Phil > > > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > -- http://jeremymcanally.com/ http://entp.com/ http://omgbloglol.com My books: http://manning.com/mcanally/ http://humblelittlerubybook.com/ (FREE!) From aaron at schrab.com Mon Apr 6 18:03:32 2009 From: aaron at schrab.com (Aaron Schrab) Date: Mon, 6 Apr 2009 18:03:32 -0400 Subject: [raleigh.rb] How to omit carriage return when writing to a file on Windows In-Reply-To: References: Message-ID: <20090406220331.GA19565@pug.qqx.org> At 16:52 -0400 06 Apr 2009, Phil Puccio wrote: >I am trying to show that the only changes made by this utility is the >replacement of the subset of lines, but every line is getting changed. It >turns out that the lines in the pre-existing template files are terminated >only by \n , but the lines I write out via Ruby are all terminated by \r\n . This is done by the Windows environment, not by Ruby. To avoid this, you need to set binary mode on the output file. This can either be done by adding "b" to the mode specified when opening it, or by calling the IO#binmode method. io = File.open( 'foo', 'wb' ) io.binmode # redundant with above From tue at triangleuserexperience.org Mon Apr 6 19:30:38 2009 From: tue at triangleuserexperience.org (Adrian Pomilio) Date: Mon, 6 Apr 2009 19:30:38 -0400 Subject: [raleigh.rb] Flex and Ruby on Rails Presentation Message-ID: Hey everyone, Just wanted to let you know that the Raleigh Flex User Group will be having a presentation on Flex and Rails development. The presentation will center around paging and caching as well as other areas. So if you have been thinking about Flex and how it works with Rails then this is something you might want to check out. You can get more details at: www.triangleuserexperience.org -- Regards, Adrian Pomilio ------------------------- blog: http://www.uiandtherest.com Youth Lacrosse: http://www.lacrossetech.com Mens Lacrosse: http://www.raleighlacrosseclub.com Lacrosse Forums: http://www.nclaxforums.com Charitable Association: http://www.stickittocancer.org Adobe User Group: http://www.triangleuserexperience.org ------------------------------------------------------- Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From poochio at gmail.com Mon Apr 6 22:53:31 2009 From: poochio at gmail.com (Phil Puccio) Date: Mon, 6 Apr 2009 22:53:31 -0400 Subject: [raleigh.rb] How to omit carriage return when writing to a file on Windows In-Reply-To: References: Message-ID: Thanks Jeremy. I tried what you suggested, but it didn't change my results. I did try what Aaron Schrab suggested (writing in binary mode) and that did the trick. Thanks for your response. Phil On Mon, Apr 6, 2009 at 5:27 PM, Jeremy McAnally wrote: > You can set the $\ value. It defaults to the platform default. Try: > > $\ = "\n" > > ...at the init of your app. > > --Jeremy > > On Mon, Apr 6, 2009 at 3:52 PM, Phil Puccio wrote: > > Hi, > > > > I'm writing a little utility that modifies text files used by a > commercial > > Windows program. I am extracting several lines of data from a database > and > > using those lines to replace a subset of lines in a template file to > create > > a new file. > > > > I am trying to show that the only changes made by this utility is the > > replacement of the subset of lines, but every line is getting changed. > It > > turns out that the lines in the pre-existing template files are > terminated > > only by \n , but the lines I write out via Ruby are all terminated by > \r\n . > > > > I've been through several IO methods, and I get either no carriage > returns > > and no new lines, or both carriage returns and new lines. > > > > If ios is my output stream and lines is an array of strings, none of > which > > ends with \n or \r , then > > > > ios.write(lines) ==> neither \r nor \n at the end of every string in > > output file > > ios.syswrite(lines) ==> neither \r nor \n at the end of every string > in > > output file > > ios.print(lines) ==> neither \r nor \n at the end of every string in > > output file > > ios.puts(lines) ==> \r\n at the end of every string in output file > > > > If I change lines to be an array of strings, each of which ends with \n, > > then all four IO methods result in a file with \r\n at the end of every > > string in the file. > > > > Similarly, if I change lines to be single string containing embedded \n > > characters where I want new lines in the output, then all four IO methods > > result in a file with \r\n at the end of every string in the file. > > > > The output record separator ($\) is mentioned in the RDoc for IO.print(), > > and its value is nil in my environment. My Ruby version is 1.8.6, and > I'm > > developing with NetBeans 6.5 on WinXP. > > > > I hope it's possible for Ruby to write out a file on Windows without any > \r > > characters. I appreciate any help you can offer. > > > > Thanks, > > > > Phil > > > > > > _______________________________________________ > > raleigh-rb-members mailing list > > raleigh-rb-members at rubyforge.org > > http://rubyforge.org/mailman/listinfo/raleigh-rb-members > > > > > > -- > http://jeremymcanally.com/ > http://entp.com/ > http://omgbloglol.com > > My books: > http://manning.com/mcanally/ > http://humblelittlerubybook.com/ (FREE!) > _______________________________________________ > 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 poochio at gmail.com Mon Apr 6 22:54:25 2009 From: poochio at gmail.com (Phil Puccio) Date: Mon, 6 Apr 2009 22:54:25 -0400 Subject: [raleigh.rb] How to omit carriage return when writing to a file on Windows In-Reply-To: <20090406220331.GA19565@pug.qqx.org> References: <20090406220331.GA19565@pug.qqx.org> Message-ID: Thanks Aaron. Setting binary mode solved the problem. I appreciate your help. Phil On Mon, Apr 6, 2009 at 6:03 PM, Aaron Schrab wrote: > At 16:52 -0400 06 Apr 2009, Phil Puccio wrote: > >> I am trying to show that the only changes made by this utility is the >> replacement of the subset of lines, but every line is getting changed. It >> turns out that the lines in the pre-existing template files are terminated >> only by \n , but the lines I write out via Ruby are all terminated by \r\n >> . >> > > This is done by the Windows environment, not by Ruby. To avoid this, you > need to set binary mode on the output file. This can either be done by > adding "b" to the mode specified when opening it, or by calling the > IO#binmode method. > > io = File.open( 'foo', 'wb' ) > io.binmode # redundant with above > > _______________________________________________ > 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 seancribbs at gmail.com Wed Apr 8 20:52:43 2009 From: seancribbs at gmail.com (Sean Cribbs) Date: Wed, 08 Apr 2009 20:52:43 -0400 Subject: [raleigh.rb] Radiant Hack Day - April 25th Message-ID: <49DD46DB.20500@gmail.com> You're invited to another Radiant Hack Day/Sprint! What: Radiant Hack Day When: Saturday, April 25th, 10:00AM-? EDT Where: Carrboro Creative Coworking 205 Lloyd St, Suite 101 Carrboro, NC, 27510 carrborocoworking.com Both John and I will be in attendance, leading the design/UI and development pieces respectively. This is an easy way to get started contributing to the project, learn more about Radiant, or to work on your own feature with guidance from the community. We're going lower ceremony than our big one in October, but still encourage out-of-towners to come. Contact me privately via email if you need help making arrangements to attend, or if you'd like to be involved remotely. Happy hacking! Sean Cribbs P.S. Apologies to those who get this more than once... From thomas at ravinggenius.com Fri Apr 10 01:57:54 2009 From: thomas at ravinggenius.com (Thomas Ingram) Date: Fri, 10 Apr 2009 01:57:54 -0400 Subject: [raleigh.rb] Deployment help requested (Passenger keels over) Message-ID: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> I have my first Rails application pretty much ready to deploy. (woo-hoo!) I am hosting with DreamHost and I have Passenger configured for this domain. Everything runs fine on localhost, and everything almost seems fine during deployment, and it touches tmp/restart.txt. So when I go to the site (http://www.isittheweekendyet.com/), Passenger explodes all over the place. The errors seem to indicate that there is a missing dependency, but I did rake rails:freeze:gems (2.3.2). My application is very simple, just one page, and doesn't use any external gems. Does anybody have an idea what's going on? If it matter Capistrano spits the following at the very end of each deploy: * executing `deploy:restart' * executing "/home/randombydesign/public_html/isittheweekendyet.com/www/current/script/process/reaper" servers: ["rbd.dreamhost.com"] [rbd.dreamhost.com] executing command ** [out :: rbd.dreamhost.com] sh: line 1: /home/randombydesign/public_html/isittheweekendyet.com/www/current/script/process/reaper: No such file or directory command finished failed: "sh -c \"/home/randombydesign/public_html/isittheweekendyet.com/www/current/script/process/reaper\"" on rbd.dreamhost.com -- Thomas ><> Raving Genius? - foaming at the brain? m: 919 449.6305 e: thomas at ravinggenius.com w: http://log.ravinggenius.com/ wii: 6751 1365 9898 2150 From jeremymcanally at gmail.com Fri Apr 10 02:45:59 2009 From: jeremymcanally at gmail.com (Jeremy McAnally) Date: Fri, 10 Apr 2009 01:45:59 -0500 Subject: [raleigh.rb] Deployment help requested (Passenger keels over) In-Reply-To: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> References: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> Message-ID: It looks like you developed locally on Rails 2.3 but DH is running on 2.2 (or the reverse...I can't remember! :)). It's looking for application.rb, but in Rails 2.3, you name is application_controller.rb instead. So, it can't find it. You just need to make sure your Rails versions are synced up either to 2.2 or 2.3. You can drop back to 2.2 by renaming that (and probably changing some settings) or, more practically, vendor 2.3 and it should work. --Jeremy On Fri, Apr 10, 2009 at 12:57 AM, Thomas Ingram wrote: > I have my first Rails application pretty much ready to deploy. > (woo-hoo!) I am hosting with DreamHost and I have Passenger configured > for this domain. Everything runs fine on localhost, and everything > almost seems fine during deployment, and it touches tmp/restart.txt. > > So when I go to the site (http://www.isittheweekendyet.com/), > Passenger explodes all over the place. The errors seem to indicate > that there is a missing dependency, but I did rake rails:freeze:gems > (2.3.2). My application is very simple, just one page, and doesn't use > any external gems. Does anybody have an idea what's going on? > > If it matter Capistrano spits the following at the very end of each deploy: > > ?* executing `deploy:restart' > ?* executing "/home/randombydesign/public_html/isittheweekendyet.com/www/current/script/process/reaper" > ? ?servers: ["rbd.dreamhost.com"] > ? ?[rbd.dreamhost.com] executing command > ?** [out :: rbd.dreamhost.com] sh: line 1: > /home/randombydesign/public_html/isittheweekendyet.com/www/current/script/process/reaper: > No such file or directory > ? ?command finished > failed: "sh -c \"/home/randombydesign/public_html/isittheweekendyet.com/www/current/script/process/reaper\"" > on rbd.dreamhost.com > > -- > Thomas ><> > Raving Genius? - foaming at the brain? > m: 919 449.6305 > e: thomas at ravinggenius.com > w: http://log.ravinggenius.com/ > wii: 6751 1365 9898 2150 > _______________________________________________ > raleigh-rb-members mailing list > raleigh-rb-members at rubyforge.org > http://rubyforge.org/mailman/listinfo/raleigh-rb-members -- http://jeremymcanally.com/ http://entp.com/ http://omgbloglol.com My books: http://manning.com/mcanally/ http://humblelittlerubybook.com/ (FREE!) From rick.denatale at gmail.com Fri Apr 10 07:48:28 2009 From: rick.denatale at gmail.com (Rick DeNatale) Date: Fri, 10 Apr 2009 07:48:28 -0400 Subject: [raleigh.rb] Deployment help requested (Passenger keels over) In-Reply-To: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> References: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> Message-ID: On Fri, Apr 10, 2009 at 1:57 AM, Thomas Ingram wrote: > I have my first Rails application pretty much ready to deploy. > (woo-hoo!) I am hosting with DreamHost and I have Passenger configured > for this domain. Everything runs fine on localhost, and everything > almost seems fine during deployment, and it touches tmp/restart.txt. > > So when I go to the site (http://www.isittheweekendyet.com/), > Passenger explodes all over the place. The errors seem to indicate > that there is a missing dependency, but I did rake rails:freeze:gems > (2.3.2). My application is very simple, just one page, and doesn't use > any external gems. Does anybody have an idea what's going on? > > If it matter Capistrano spits the following at the very end of each deploy: > > * executing `deploy:restart' > * executing "/home/randombydesign/public_html/ > isittheweekendyet.com/www/current/script/process/reaper" > servers: ["rbd.dreamhost.com"] > [rbd.dreamhost.com] executing command > ** [out :: rbd.dreamhost.com] sh: line 1: > /home/randombydesign/public_html/ > isittheweekendyet.com/www/current/script/process/reaper: > No such file or directory > command finished > failed: "sh -c \"/home/randombydesign/public_html/ > isittheweekendyet.com/www/current/script/process/reaper\"" > on rbd.dreamhost.com > > I suspect that it's a problem with your config/deploy.rb It looks like you are using the standard capistrano start/stop tasks which use the spinner and reaper scripts to start and stop the server when you are using something like mongrel. In the deploy.rb in my passenger deployed projects I've got code like this: namespace :deploy do desc "Restarting mod_rails with restart.txt" task :restart, :roles => :app, :except => { :no_release => true } do run "touch #{current_path}/tmp/restart.txt" end [:start, :stop].each do |t| desc "#{t} task is a no-op with mod_rails" task t, :roles => :app do ; end end end Not that the start and stop tasks (which are invoked by restart) are overridden by nops. HTH -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/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 brentmc79 at gmail.com Fri Apr 10 09:28:02 2009 From: brentmc79 at gmail.com (Brent Collier) Date: Fri, 10 Apr 2009 09:28:02 -0400 Subject: [raleigh.rb] Deployment help requested (Passenger keels over) In-Reply-To: References: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> Message-ID: I'm also using Dreamhost with Passenger. Here's what my deploy.rb looks like: default_run_options[:pty] = true # be sure to change these set :user, '######' set :domain, '######' set :application, '######' # the rest should be good set :repository, "git at github.com:#{user}/#{application}.git" set :deploy_to, "/home/#{user}/#{domain}" set :deploy_via, :remote_cache set :scm, 'git' set :branch, 'master' set :git_shallow_clone, 1 set :scm_verbose, true set :use_sudo, false server domain, :app, :web role :db, domain, :primary => true namespace :deploy do task :restart do run "touch #{current_path}/tmp/restart.txt" end end task :after_update_code do run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml #{release_path}/config/database.yml" run "ln -nfs #{deploy_to}/#{shared_dir}/config/s3.yml #{release_path}/config/s3.yml" end Obviously, I'm using Github as my repository, so this may or may not be helpful to you. -Brent On Fri, Apr 10, 2009 at 7:48 AM, Rick DeNatale wrote: > On Fri, Apr 10, 2009 at 1:57 AM, Thomas Ingram wrote: > >> I have my first Rails application pretty much ready to deploy. >> (woo-hoo!) I am hosting with DreamHost and I have Passenger configured >> for this domain. Everything runs fine on localhost, and everything >> almost seems fine during deployment, and it touches tmp/restart.txt. >> >> So when I go to the site (http://www.isittheweekendyet.com/), >> Passenger explodes all over the place. The errors seem to indicate >> that there is a missing dependency, but I did rake rails:freeze:gems >> (2.3.2). My application is very simple, just one page, and doesn't use >> any external gems. Does anybody have an idea what's going on? >> >> If it matter Capistrano spits the following at the very end of each >> deploy: >> >> * executing `deploy:restart' >> * executing "/home/randombydesign/public_html/ >> isittheweekendyet.com/www/current/script/process/reaper" >> servers: ["rbd.dreamhost.com"] >> [rbd.dreamhost.com] executing command >> ** [out :: rbd.dreamhost.com] sh: line 1: >> /home/randombydesign/public_html/ >> isittheweekendyet.com/www/current/script/process/reaper: >> No such file or directory >> command finished >> failed: "sh -c \"/home/randombydesign/public_html/ >> isittheweekendyet.com/www/current/script/process/reaper\"" >> on rbd.dreamhost.com >> >> > I suspect that it's a problem with your config/deploy.rb > > It looks like you are using the standard capistrano start/stop tasks which > use the spinner and reaper scripts to start and stop the server when you are > using something like mongrel. > > In the deploy.rb in my passenger deployed projects I've got code like this: > > namespace :deploy do > desc "Restarting mod_rails with restart.txt" > task :restart, :roles => :app, :except => { :no_release => true } do > run "touch #{current_path}/tmp/restart.txt" > end > > [:start, :stop].each do |t| > desc "#{t} task is a no-op with mod_rails" > task t, :roles => :app do ; end > end > end > > Not that the start and stop tasks (which are invoked by restart) are > overridden by nops. > > HTH > > -- > Rick DeNatale > > Blog: http://talklikeaduck.denhaven2.com/ > Twitter: http://twitter.com/RickDeNatale > WWR: http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn: http://www.linkedin.com/in/rickdenatale > > _______________________________________________ > 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.acts-as-blogr.com| www.brentmc79.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas at ravinggenius.com Fri Apr 10 12:00:20 2009 From: thomas at ravinggenius.com (Thomas Ingram) Date: Fri, 10 Apr 2009 12:00:20 -0400 Subject: [raleigh.rb] Deployment help requested (Passenger keels over) In-Reply-To: References: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> Message-ID: <51ce9ce10904100900w39152067oe94b2bd32e39e19d@mail.gmail.com> Is there anything I need to do beyond freezing (rake rails:freeze:gems)? I assumed that would be enough to avoid this problem. On Fri, Apr 10, 2009 at 2:45 AM, Jeremy McAnally wrote: > It looks like you developed locally on Rails 2.3 but DH is running on > 2.2 (or the reverse...I can't remember! :)). ?It's looking for > application.rb, but in Rails 2.3, you name is > application_controller.rb instead. ?So, it can't find it. > > You just need to make sure your Rails versions are synced up either to > 2.2 or 2.3. ?You can drop back to 2.2 by renaming that (and probably > changing some settings) or, more practically, vendor 2.3 and it should > work. -- Thomas ><> Raving Genius? - foaming at the brain? m: 919 449.6305 e: thomas at ravinggenius.com w: http://log.ravinggenius.com/ wii: 6751 1365 9898 2150 From thomas at ravinggenius.com Fri Apr 10 13:20:58 2009 From: thomas at ravinggenius.com (Thomas Ingram) Date: Fri, 10 Apr 2009 13:20:58 -0400 Subject: [raleigh.rb] Deployment help requested (Passenger keels over) In-Reply-To: References: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> Message-ID: <51ce9ce10904101020l1042761fibb153f69b011bba4@mail.gmail.com> Thank you for sharing your deploy.rb. I was able to improve mine and get rid of the cap deploy errors. In case you wanted to see it, now mine looks like this: default_run_options[:pty] = true ssh_options[:forward_agent] = true set :user, '######' set :use_sudo, false set :application, 'IsItTheWeekendYet' set :domain, 'isittheweekendyet.com' set :sub_domain, 'www' set :host, '###.dreamhost.com' set :deploy_to, "/home/#{user}/public_html/#{domain}/#{sub_domain}" set :deploy_via, :remote_cache set :scm, :git set :repository, "ssh://#{user}@#{host}/home/#{user}/repositories/#{domain}/#{sub_domain}/.git" #set :repository, "git at github.com:#{user}/#{application}.git" set :branch, 'master' set :git_shallow_clone, 1 set :scm_verbose, true role :app, host role :web, host role :db, host, :primary => true namespace :deploy do task :restart do run "touch #{current_path}/tmp/restart.txt" end end task :after_update_code do run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" # run "ln -nfs #{shared_path}/config/s3.yml #{release_path}/config/s3.yml" end On Fri, Apr 10, 2009 at 9:28 AM, Brent Collier wrote: > I'm also using Dreamhost with Passenger. ?Here's what my deploy.rb looks > like: -- Thomas ><> Raving Genius? - foaming at the brain? m: 919 449.6305 e: thomas at ravinggenius.com w: http://log.ravinggenius.com/ wii: 6751 1365 9898 2150 From thomas at ravinggenius.com Sun Apr 12 19:55:37 2009 From: thomas at ravinggenius.com (Thomas Ingram) Date: Sun, 12 Apr 2009 19:55:37 -0400 Subject: [raleigh.rb] Deployment help requested (Passenger keels over) In-Reply-To: References: <51ce9ce10904092257t753e5e72w48da08c126e237fb@mail.gmail.com> Message-ID: <51ce9ce10904121655u1098d412v77cc47acfc2cd23c@mail.gmail.com> Brent (and anyone else using DreamHost), I'm sorry to single you out for this question, but have you had any issues with freezing to Rails 2.3.2 on DreamHost? I froze my app, but when I deploy, it tries to load my app with 2.2.2. I've search forums and contacted DreamHost, but they won't support my "user-written application". Any advice? On Fri, Apr 10, 2009 at 9:28 AM, Brent Collier wrote: > I'm also using Dreamhost with Passenger. -- Thomas ><> Raving Genius? - foaming at the brain? m: 919 449.6305 e: thomas at ravinggenius.com w: http://log.ravinggenius.com/ wii: 6751 1365 9898 2150 From robert.fischer at smokejumperit.com Tue Apr 14 19:32:17 2009 From: robert.fischer at smokejumperit.com (Robert Fischer) Date: Tue, 14 Apr 2009 19:32:17 -0400 Subject: [raleigh.rb] Job Opportunity Message-ID: <49E51D01.7090605@smokejumperit.com> (I wouldn't be sharing this normally, but times are tough, and I wanted to share this in case someone *needs* an opportunity.) This would be a very neat opportunity if you're willing to relocate to MN. It's an awesome group of people at HeadMix and a great Ruby community there in general (see http://Ruby.MN). And the Twin Cities is a really great place to live. ~~ Robert. -------- Original Message -------- Subject: [GUM] Job Opportunity Date: Tue, 14 Apr 2009 14:07:28 -0500 From: Jesse O'Neill-Oine Reply-To: groovymn at googlegroups.com To: groovy.mn Hey GUMers, HeadMix is the company that shares office space with Refactr and they are looking to hire. They develop in Ruby on Rails, but value strong technical skills over vast experience with Rails. Please contact Ben Moore (ben at headmix.com ) if you are interested. Jesse -- HeadMix is a venture backed startup with the mission of transforming the way employees communicate across their company. The company is selling its SaaS messaging platform to large organizations such as Best Buy where we are helping them flatten their hierarchy through business critical conversations that help employees take faster, smarter action. We have a growing Ruby on Rails web application, API, and client applications -- all of which need your development skills. Responsibilities * Write clean, maintainable code with appropriate tests. * Build new features and scale the system. * Bring your ideas and recent tech explorations to the table to influence the direction of application at a functional level and a technical level. Skills & Attributes * You can stay true to your principles of good software engineering in a fast-paced and evolving environment. * The consumers of your work are the development team, the rest of the company, and ultimately the user -- you write your code with each of those groups in mind. * You have an interest in (not aversion to) improving your technical ability in areas where your knowledge is limited. * You enjoy working with others, and working in a collaborative environment that balances knowledge sharing with blocks of focused, uninterrupted production time. * You want to work with a team face-to-face. * You relish tackling new challenges, paying attention to details, and, ultimately, growing professionally. * You like working in an environment that uses Agile methods, Scrum meetings, and rapid prototyping. * You have a strong resonance with the cultural values to which we hold ourselves accountable - exceed customer expectations, do great work, everybody has a voice, think big act small, discuss/decide/commit Requirements * You have experience with Ruby on Rails or similar MVC frameworks (e.g. Merb, Django, Grails). * You are comfortable with *nix. * You are an excellent communicator who errs on the side of over-communicating. * You are a self-starter who is comfortable jumping right in and contributing. Ideally * You have worked with high performance messaging architectures. * You have experience with at least a few of the following technologies (or strong desire to work with them): memcached, search, message queues, XMPP, Objective-C, Amazon S3. * You have delivered large-scale deployments and worked with distributed architectures. -- Contact: ben at headmix.com -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Jesse O'Neill-Oine // jesse at refactr.com Refactr LLC // http://refactr.com mobile // 612-670-5037 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Groovy Users of Minnesota" group. To post to this group, send email to groovymn at googlegroups.com To unsubscribe from this group, send email to groovymn-unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/groovymn?hl=en -~----------~----~----~----~------~----~------~--~--- -- ~~ Robert Fischer. Grails Training http://GroovyMag.com/training Smokejumper Consulting http://SmokejumperIT.com Enfranchised Mind Blog http://EnfranchisedMind.com/blog Check out my book, "Grails Persistence with GORM and GSQL"! http://www.smokejumperit.com/redirect.html From martin.streicher at gmail.com Thu Apr 16 12:13:12 2009 From: martin.streicher at gmail.com (Bryan Richard) Date: Thu, 16 Apr 2009 11:13:12 -0500 Subject: [raleigh.rb] A short article on Rails 2.3 app templates Message-ID: <6c8024940904160913x4dbabf90o7987ad02b8c212f6@mail.gmail.com> This week's Rails column for Linux Magazine introduces Rails 2.3 app templates. http://www.linux-mag.com/id/7302 Martin From seancribbs at gmail.com Thu Apr 16 13:46:29 2009 From: seancribbs at gmail.com (Sean Cribbs) Date: Thu, 16 Apr 2009 13:46:29 -0400 Subject: [raleigh.rb] Webrat and Selenium Message-ID: <49E76EF5.1040905@gmail.com> Does anyone have some tips on getting Selenium running correctly with Webrat (inside Cucumber)? It sends commands to Selenium properly, but it can't seem to find and click