Re: [Rails] Ruby on Rails developer opportunity

2013-02-20 Thread Fred Ballard
Where are you located? Thanks, Fred On Wed, Feb 20, 2013 at 3:36 PM, konstantine.boukhva...@experis.com wrote: Hello. We currently have an opportunity for a R-o-R developer to support an existing photo database. The time frame is from now until the end of June and the budget is 200 hours.

Re: [Rails] Re: :locals does not pass var in rails 3.1.0 partial view

2012-04-11 Thread Fred Ballard
It also helps to show the simplest possible case that triggers the error. Not only does it make things easier for people trying help you, you often find the error yourself in the course of simplifying. On Wed, Apr 11, 2012 at 03:18, Colin Law clan...@googlemail.com wrote: On 11 April 2012

Re: [Rails] Re: Ruby adoption statistics

2011-10-09 Thread Fred Ballard
OH You should see the smiles on Java devs faces when they switch to Ruby. - If there's a dying language of the two, I'd guess it was Java. On Oct 9, 2011, at 4:14 PM, Robert Walker li...@ruby-forum.com wrote: Andrew wrote in post #1025635: However, my co-worker mentioned that he

Re: [Rails] Re: when to add validations to database

2011-07-04 Thread Fred Ballard
In a large scale environment, there may be times when someone accesses the database directly, bypassing Rails. This may include the DBAs, for instance, or even the maintainers of the system. This may happen in trying to resolve a production problem in as short a time as possible, and it seems

Re: [Rails] Re: when to add validations to database

2011-07-04 Thread Fred Ballard
Good point. I was only talking about ad hoc access not regular access from outside of Rails. That doesn't seem possible -- or at least shouldn't be. Fred On Mon, Jul 4, 2011 at 21:41, Fred Ballard fredb...@gmail.com wrote: In a large scale environment, there may be times when someone accesses

Re: [Rails] Re: Regex Validation

2011-05-11 Thread Fred Ballard
+1 to everything Walter has said, as well. I haven't thought about this a lot, but doesn't this apply to everything in terms of user input? Doesn't this really enter the realm of a basic guideline, principle, or law for UI? (I remember something like this being applied to database design.)

Re: [Rails] Re: [OT] Heroku sending out bills for 0.00?

2011-02-02 Thread Fred Ballard
I think it's some bad code that assumes it can't possibly send a bill for 0.00. Some defensive code is in order. All billing code should check for sending out 0.00 bills and ridiculously large bills, even if it's redundant. If you want to remind people that the service is free and may not remain

Re: [Rails] Netbeans dumps Rails

2011-01-27 Thread Fred Ballard
Messed up on their part. On Thu, Jan 27, 2011 at 10:23 AM, Michael Pavling pavl...@gmail.com wrote: Great http://netbeans.org/community/news/show/1507.html ...so now to find another editor/environment that integrates debugging :-( (although no huge rush, as Netbeans6.9 isn't going to

Re: [Rails] Re: Re: Re: Re: Re: Re: Re: Weird issue with converting floats to integer

2010-12-26 Thread Fred Ballard
Just a footnote to all of this. The difference between using a value for pi of 3.1415927 or 3.14159265, between 7 and 8 digits of precision, when calculating the circumference of the earth introduces a difference of less than a meter. All very reasonable, but I still found it surprising. I was

Re: [Rails] Re: Todays month first day and previous month first day

2010-11-06 Thread Fred Ballard
OT The problem is very old. TSO, Time Sharing Option, was IBM's first commercial timesharing product. Its interactivity offered the first way for most enterprise customers off punched cards. When the date first went from February 28 to February 29 in 1972, the date on the session startup message

Re: [Rails] Learn Ruby in which version?

2010-09-19 Thread Fred Ballard
http://apress.com/book/view/1430223634 includes Ruby 1.9 On Sun, Sep 19, 2010 at 8:18 AM, radhames brito rbri...@gmail.com wrote: http://apress.com/book/view/9781590597668 includes ruby 1.9 On Sat, Sep 18, 2010 at 8:42 PM, Nich nich...@gmail.com wrote: Hi, There are some free books

Re: [Rails] How to apply OR condition in model.find?

2010-09-09 Thread Fred Ballard
Hi, http://apidock.com/rails/v2.3.8/ActiveRecord/Base/find/class shows: mihserf - July 22, 20083 thanks :conditions examples :conditions = {:login = login, :password = password} :conditions = [‘subject LIKE :foo OR body LIKE :foo’, {:foo = ‘woah’}] (from the book The Rails Way) On Sep

Re: [Rails] Url routing issue - Agile Rails Chapter 6

2010-08-07 Thread Fred Ballard
Use rake routes from any directory in your Rails app to list your routes. I've found it a big help, especially for understanding what's going on behind the scenes. Fred On Sat, Aug 7, 2010 at 2:34 PM, Chris Mear chrism...@gmail.com wrote: On 7 August 2010 19:45, Carl Jenkins

Re: [Rails] Rails 3 70% slower than Rails 2.3.5?

2010-07-12 Thread Fred Ballard
Everything else aside, isn't going from 5.31 to 3.05 trans/sec 43% slower? Fred On Mon, Jul 12, 2010 at 9:11 AM, Sharkie Landshark li...@ruby-forum.comwrote: I have finished converting my live apps to Rails 3. I am using Ruby Enterprise 1.8.7 and Passenger 2.2.15 I go from 5.31 trans/sec