[Rails] copy rails association in 2.3 with clone method

2013-10-11 Thread ruby rails
I have a Reminder model, Attachment Model and it has habtm relationship with each other. So I have a created another table as attachment_reminders table in mysql through migrations and it has reminder_id and attachment_id fields. In controller I need to copy a record in attachment table and save

[Rails] Re: Access tocken

2013-10-11 Thread Robert Walker
Daynthan Kabilan wrote in post #1124237: hi friends, i am using omni contacts gem for import friends. how to get access token on facebook login using omni-contacts gem Get if from Facebook: https://developers.facebook.com/docs/facebook-login/access-tokens/ -- Posted via

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Martin Streicher
I highly recommend the RubyXL gem. It opens xlsx files and seems very reliable. I use it all the time. -- 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 it, send an email

[Rails] View inheritance and rendering in engines

2013-10-11 Thread Linus Pettersson
Hi I'm creating a mountable admin engine (like Active Admin but not as advanced) using Inherited Resources. Let's call it AdminFoo. In my main app I mount it with mount AdminFoo::Engine, at: '/admin' in my routes file. Let's say I have the following structure in my engine: *AdminFoo* app -

Re: [Rails] copy rails association in 2.3 with clone method

2013-10-11 Thread Walter Lee Davis
On Oct 11, 2013, at 3:17 AM, ruby rails wrote: I have a Reminder model, Attachment Model and it has habtm relationship with each other. So I have a created another table as attachment_reminders table in mysql Is this a copy-paste error? s/b attachments_reminders (both plural), right?

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Walter Lee Davis
On Oct 10, 2013, at 4:50 PM, Monserrat Foster wrote: A coworker suggested I should use just basic OOP for this, to create a class that reads files, and then another to load the files into memory. Could please point me in the right direction for this (where can I read about it)? I have no

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
One 3+ row file and another with just over 200. How much memory should I need for this not to take forever parsing? (I'm currently using my computer as server and I can see ruby taking about 1GB in the task manager when processing this (and it takes forever). The 3+ row file is about

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Walter Lee Davis
On Oct 11, 2013, at 11:30 AM, Monserrat Foster wrote: One 3+ row file and another with just over 200. How much memory should I need for this not to take forever parsing? (I'm currently using my computer as server and I can see ruby taking about 1GB in the task manager when processing

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 10:30 AM, Monserrat Foster monsefos...@gmail.com wrote: One 3+ row file and another with just over 200. How much memory should I need for this not to take forever parsing? (I'm currently using my computer as server and I can see ruby taking about 1GB in the task

[Rails] I was told using GPL code is a problem (mongrel) even if not modifying that code

2013-10-11 Thread Jedrin
I was told that we can't use mongrel with JRuby because mongrel is GPL and based on lawyer language if we include mongrel then our code violates some situation where someone could claim our code should become free. I always thought this would only apply if we modified the mongrel code base in

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Donald Ziesig
On 10/11/2013 11:30 AM, Monserrat Foster wrote: One 3+ row file and another with just over 200. How much memory should I need for this not to take forever parsing? (I'm currently using my computer as server and I can see ruby taking about 1GB in the task manager when processing this (and

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
Hi, the files automatically download in .XLSX formats, I can't change them and I can't force the users to change it in order to make my job easier. Thanks for the suggestion. On Friday, October 11, 2013 11:34:39 AM UTC-4:30, donz wrote: On 10/11/2013 11:30 AM, Monserrat Foster wrote:

Re: [Rails] I was told using GPL code is a problem (mongrel) even if not modifying that code

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 10:55 AM, Jedrin jrubia...@gmail.com wrote: I was told that we can't use mongrel with JRuby because mongrel is GPL and based on lawyer language if we include mongrel then our code violates some situation where someone could claim our code should become free. I always

Re: [Rails] I was told using GPL code is a problem (mongrel) even if not modifying that code

2013-10-11 Thread Jedrin
On Friday, October 11, 2013 12:13:44 PM UTC-4, Jordon Bedwell wrote: On Fri, Oct 11, 2013 at 10:55 AM, Jedrin jrub...@gmail.com javascript: wrote: I was told that we can't use mongrel with JRuby because mongrel is GPL and based on lawyer language if we include mongrel then our

[Rails] OT: best solutions for tracking projects and skills needed

2013-10-11 Thread Jason Hsu, Rubyist
I realize this is off-topic, but I'm not sure what forum is best for asking about this. I figure that at least a few of you are involved in civic hacking groups. I recently joined a group that does civic hacking. (Adopt-A-Hydrant is an example of civic hacking.) We need a solution for

[Rails] What license do you use for your Ruby gems?

2013-10-11 Thread Jason Hsu, Rubyist
I have created two Ruby gems (dvi_scrape and bsf_scrape), and I'm planning on creating a few more. What license should I be using for my Ruby gems? I'm creating these gems on my own and not on behalf of any particular organization. -- You received this message because you are subscribed to

Re: [Rails] I was told using GPL code is a problem (mongrel) even if not modifying that code

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 11:24 AM, Jedrin jrubia...@gmail.com wrote: oops .. I meant to say mongoDB MongoDB's license doesn't affect your app because it goes through an API to access the data. Their drivers (AKA the Ruby driver) are Apache 2.0. -- You received this message because you are

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
This is an everyday, initially maybe a couple people at the same time uploading and parsing files to generate the new one, but eventually it will extend to other people, so... I used a logger and It does retrieve and save the files using the comparation. But it takes forever, like 30min or so

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
I forgot to say after it reads all rows and writes the file, throws [1m [35m (600.1ms) [0m begin transaction [1m [36m (52.0ms) [0m [1mcommit transaction [0m failed to allocate memory Redirected to http://localhost:3000/upload_files/110 Completed 406 Not Acceptable in 1207471ms

[Rails] [ANN] Rails 3.2.15.rc3 has been released!

2013-10-11 Thread Aaron Patterson
Let's hope this is the last RC! Yay! We fixed a bug in 3.2.14 which caused a regression. We tried to fix the regression, but it caused more issues in the release candidate. So we've reverted the bug fix from 3.2.14 until we can figure out a Better Way (tm). For now, here are the changes from

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Walter Lee Davis
On Oct 11, 2013, at 4:33 PM, Monserrat Foster wrote: This is an everyday, initially maybe a couple people at the same time uploading and parsing files to generate the new one, but eventually it will extend to other people, so... I used a logger and It does retrieve and save the files

[Rails] Re: What license do you use for your Ruby gems?

2013-10-11 Thread Robert Walker
Jason Hsu, Rubyist wrote in post #1124297: I have created two Ruby gems (dvi_scrape and bsf_scrape), and I'm planning on creating a few more. What license should I be using for my Ruby gems? I'm creating these gems on my own and not on behalf of any particular organization. That's really

[Rails] Re: What license do you use for your Ruby gems?

2013-10-11 Thread Jason Hsu, Rubyist
On Friday, October 11, 2013 7:21:57 PM UTC-5, Ruby-Forum.com User wrote: That's really up to you AFAIK. I typically use the MIT license on my stuff, but choosing a license can be a fairly personal choice. It depends on what you're trying to protect, or not protect, whatever the case may

Re: [Rails] Re: What license do you use for your Ruby gems?

2013-10-11 Thread Jordon Bedwell
On Fri, Oct 11, 2013 at 9:54 PM, Jason Hsu, Rubyist jhsu802...@gmail.com wrote: Why do you use the MIT license? Under what circumstances would you use something else? When I want something less passive but still open and that takes contributors into account: