[Rails] Re: Exporting a Postgres database to CSV without superuser privileges

2013-04-08 Thread Matt Jones
On Friday, 5 April 2013 17:40:35 UTC-4, Jason Hsu, Android developer wrote: > > How do you export a Postgres database to CSV when you do NOT have > superuser privileges? > > The line of code in question (for my Bargain Stock Funds project at > https://github.com/jhsu802701/bsf-scrape/blob/maste

Re: [Rails] Do you run rspec tests in production?

2013-04-08 Thread Jordon Bedwell
On Mon, Apr 8, 2013 at 12:30 PM, Jordon Bedwell wrote: > On Mon, Apr 8, 2013 at 12:23 PM, Jason Hsu, Android developer < > jhsu802...@gmail.com> wrote: > >> I understand that rspec testing is necessary in the development process >> to catch errors, bugs, and other issues early. >> >> Given that d

Re: [Rails] Do you run rspec tests in production?

2013-04-08 Thread Jordon Bedwell
On Mon, Apr 8, 2013 at 12:23 PM, Jason Hsu, Android developer < jhsu802...@gmail.com> wrote: > I understand that rspec testing is necessary in the development process to > catch errors, bugs, and other issues early. > > Given that differences between development and production cannot be 100% > eli

[Rails] Do you run rspec tests in production?

2013-04-08 Thread Jason Hsu, Android developer
I understand that rspec testing is necessary in the development process to catch errors, bugs, and other issues early. Given that differences between development and production cannot be 100% eliminated, do you run rspec testing in production as well? Is there any good reason NOT to use rspec

[Rails] Re: cattr_accessor and Thread.current prblems

2013-04-08 Thread Frederick Cheung
On Monday, April 8, 2013 5:41:05 PM UTC+1, Vasili Samiev wrote: > > Hello, > > I am trying to convert three applications to multitenant, all of them have > same structure difference is only in little functions and template designs. > All of them using cattr_accessor for setting currencies and ot

Re: [Rails] recommendations for setting chef and capistrano with rackspace ?

2013-04-08 Thread henrique matias
> > > We use puppet instead of chef. Puppet has a higher barrier to entry > (slower ramp up time) but pays off with more control. > That sounds cool, i don't mind learning puppet instead of chef, it i understand the benefits of it ( i'll read a bit more about that ). > We would never put an

Re: [Rails] PG CONNECTION TIME OUT ERROR

2013-04-08 Thread Loganathan Sellapa
Hi Jordon, Yes, I already contacted my DBA and he also did something by upgrading the PG server version from 8.x to 9.x and increased the VM's memory but no luck. regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe On Mon,

Re: [Rails] PG CONNECTION TIME OUT ERROR

2013-04-08 Thread Jordon Bedwell
On Mon, Apr 8, 2013 at 11:42 AM, Loganathan Sellapa wrote: > I am frequently getting Pg Connection timeout error in my application. I > tried to fix it by upgrading the system memory, also updated the pg gem but > the issue is still occurring. Anybody's help will be really appreciated. > > *(Acti

[Rails] Require RoR Developers

2013-04-08 Thread vans
Hi Guys, Looking for R o R developers for Ahmedabad location. Pl send me your resume ASAP. Thanks Vandana Bluefin Associates. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from

[Rails] cattr_accessor and Thread.current prblems

2013-04-08 Thread Vasili Samiev
Hello, I am trying to convert three applications to multitenant, all of them have same structure difference is only in little functions and template designs. All of them using cattr_accessor for setting currencies and other data, and it works perfectly Now i added app_id as cattr_accessor to Ap

[Rails] PG CONNECTION TIME OUT ERROR

2013-04-08 Thread Loganathan Sellapa
Hi All, I am frequently getting Pg Connection timeout error in my application. I tried to fix it by upgrading the system memory, also updated the pg gem but the issue is still occurring. Anybody's help will be really appreciated. *(ActiveRecord::StatementInvalid) "PGError: server closed the conne

Re: [Rails] recommendations for setting chef and capistrano with rackspace ?

2013-04-08 Thread Craig White
On Apr 5, 2013, at 10:53 AM, henrique matias wrote: > Hello folks, hope you're doing well > > I got recently into chef and capistrano, have been looking on this slides: > http://www.slideshare.net/SmartLogic/practical-chef-and-capistrano-for-your-rails-app > which were very clarifying... > >

Re: [Rails] Re: What is Javascript-Runtime for?

2013-04-08 Thread Jordon Bedwell
On Mon, Apr 8, 2013 at 10:29 AM, Manish Chakravarty wrote: > I hate to add to the confusion, but therubyracer is now not > recommended on Heroku. > What do you suggest we do ? I typically precompile assets and push it. > Is this the recommended way? > https://devcenter.heroku.com/articles/rails-a

Re: [Rails] Re: How to create 10000 pseudo data for Testing in RoR

2013-04-08 Thread Manish Chakravarty
Write a Ruby script to do it, invoke it via a rake task. On Fri, Apr 5, 2013 at 9:38 PM, haxuan lac wrote: > Yes ,Thanks Gintautas > If I want create 100(1 million) pseudo data,i can this way for it? > And i hear a gem with called "faker" http://faker.rubyforge.org/ > can i using this gem for

Re: [Rails] How to manage data in MongoDB

2013-04-08 Thread Manish Chakravarty
If you're using MongoDB with Rails ( my assumption should be correct since you posted on the this list ) - a 'bundle exec rails console' will let you do CRUD operations on the console. For typical administration tasks, I'd recommend going through the MongoDB administration guide - http://docs.mong

Re: [Rails] Re: What is Javascript-Runtime for?

2013-04-08 Thread Manish Chakravarty
I hate to add to the confusion, but therubyracer is now not recommended on Heroku. What do you suggest we do ? I typically precompile assets and push it. Is this the recommended way? On Mon, Apr 8, 2013 at 7:08 AM, Peter wrote: > Thank you, everyone. This was an issue only in my Fedora laptop. In

[Rails] Re: Rails app + Apache Passenger + Postgres : memory consumption

2013-04-08 Thread Jim
> > Is there any configuration that I can make (Apache? Passenger? Rails?) > to prevent memory usage increasing (Why it isn't decreasing with the > CPU?) and Postgresql crash? > What version of ruby are you using? If possible, you may want to consider using http://www.rubyenterpriseedition.c