[Rails-core] atomic_write's chown breaks multi-user access

2011-11-19 Thread dburry
Some people may want to run their rails server as one user, deploy their app as another user, run some rake tasks manually or via cron that also write to the same file system as another user, etc. There are a variety of reasons one may want to do this kind of separation, including security. You'd

[Rails-core] Re: atomic_write's chown breaks multi-user access

2011-11-20 Thread dburry
On Nov 20, 12:47 pm, Michael Koziarski wrote: > > chown(old_stat.uid, old_stat.gid, file_name) > > This line was added deliberately. I think I now see the flaw in my original logic, thanks. How about this instead: change the line to: chown(nil, old_stat.gid, file_name) The reason being: n

[Rails-core] Re: A truthy tempest in a teapot

2012-03-26 Thread dburry
Thanks Ben for the thoughtful words.  I agree wholeheartedly. The way this issue is being handled illustrates why many rails lovers originally resorted to writing Merb, which was then borrowed from to create Rails 3 when the rails guys finally came to their senses.  It also illustrates why one Rus

[Rails-core] Re: Speeding up ActiveRecord

2012-08-19 Thread dburry
I've had great success with the valium and activerecord-import gems, when it comes to a few places where I need to speed things up because I have hundreds or even many thousands of database rows that need processing and when it just so happens that in those cases I don't need full blown AR obje

[Rails-core] Re: Feature Request: Provide documentation and/or feature to configure active record naming conventions

2012-08-30 Thread dburry
So far I've just manually used set_table_name and set_primary_key and similar things in models that must access legacy database tables. It's worked well with camel case for me so far. Scaffolding models can only get you so far, most of the time I don't even bother with it anymore since it onl

Re: [Rails-core] Please add support for IETF "application/json-patch" media type

2012-09-06 Thread dburry
Rails strikes me as a practical framework. Not only does it solve everyday problems that people have, but the best way to start a conversation seems to be to demonstrate, with actual working code (possibly gemmed or forked as necessary), why something is needed, rather than just discussing the

Re: [Rails-core] Re: getting rid of AS::Cache::Entry in the memcached store

2012-09-23 Thread dburry
Is rails providing a generic lowest-common-denominator caching interface to many caching stores, memcached being only one of them? If so, then it would make sense to provide a consistent semantic to all of them, rather than make each one behave quite differently based on what semantic each one

Re: [Rails-core] case insensitive inclusion validation

2012-10-02 Thread dburry
There's also the little issue of the world not all using only English. A full Unicode-aware case insensitivity is even more inefficient than a regular ascii-only one... but in practice might be required in just as many cases as an ascii one... Dave On Tuesday, October 2, 2012 12:15:25 PM UTC-

Re: [Rails-core] Being strict on differentiating between IEC prefixes and SI prefixes.

2012-10-02 Thread dburry
One of the great things I like about rails is not always being tied to full backwards compatibility causing a more and more bloated core every major release. In my mind a plugin that puts everything back would solve that issue, for those who need it. That other objection still gives me pause t

[Rails-core] Re: Encapsulate Relation#calculate into a subquery

2012-10-12 Thread dburry
There have been times when I would have liked to be able to somehow consistently get a fixnum count, instead of sometimes a fixnum and sometimes a hash that I just have to loop through and add up the values! Dave On Thursday, October 11, 2012 7:01:47 PM UTC-7, Andrew Vit wrote: > > I posted my

Re: [Rails-core] Re: [ANN] Rails 3.2.10, 3.1.9, and 3.0.18 have been released!

2013-01-03 Thread dburry
There's a really big difference between these two potential scenarios: (a) every single rails app I've ever written that uses find_by_*(params[*]) is immediately and completely compromised by anyone in the world with a simple well crafted url -and- (b) every single rails app I've ever

Re: [Rails-core] ActiveRecord per user/tenant connection pool

2015-12-12 Thread dburry
If everything in the whole world were done perfectly, nothing would ever be vulnerable to anything. But out here in the real world where murphy's law exists, an attitude of "defense in depth" is more practical, in addition to doing one's very best to be as perfect as possible. On Saturday, De