Re: [Rails] RoR for poor farmers in Africa

2018-11-13 Thread femto Zheng
from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC%2Bt%3DwpyY-%3DyZ83fN1VPYz%3DzgrtN7ZfL4r4zghe

Re: [Rails] Vacancy - Lead Developer for our Ruby On Rails Team

2014-09-25 Thread femto Zheng
. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/532b3e50d14308c17fd5bb428c00ff1c%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout. -- http://hi.baidu.com/femto https://github.com/femto -- You received this message

[Rails] Looking for some remote job

2014-05-28 Thread femto Zheng
development experience, good at modeling, design, encapsulation(like OCP principle etc) and more advanced stuff like lexing/parsing, I can develop your project very quick and good. If you need such a worker or you know anyone who has such needs from remotely please contact me at femto...@gmail.com. Thank

Re: [Rails] Best {JOB] EVER in Greenwich, CT - To $125 per hour for 12 months

2014-04-26 Thread femto Zheng
email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8968bd2d-7f00-4c6b-a1b7-c3a81bcb915f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- http://hi.baidu.com/femto https

[Rails] A question about Optimistic Locking

2014-03-02 Thread femto Zheng
), then thread 1 commit, thread 2 commit, then all of a sudden, all threads are happy, the user record is still being modified by two threads, the optimistic locking doesn't work, Is this correct? Correct me if I'm wrong. -- http://hi.baidu.com/femto https://github.com/femto -- You received this message

[Rails] How to setting config.timezone in non-Rails application?

2012-09-02 Thread femto Zheng
this description, but do anybody know how the param pattern looks like? -- http://hi.baidu.com/femto http://www.aisiming.com/ http://maptu.heroku.com/ -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails

Re: [Rails] How to enable activerecord whitelist_attributes in non-Rails environment?

2012-08-19 Thread femto Zheng
Hello, thanks very much. On Wed, Aug 15, 2012 at 10:49 PM, Jordon Bedwell envyge...@gmail.comwrote: On Wednesday, 15 August 2012 05:04:44 UTC-5, femto wrote: Hello all, I'm developing a sinatra application and loads ActiveRecord in, sometimes it will just report warning for mass

[Rails] How to enable activerecord whitelist_attributes in non-Rails environment?

2012-08-15 Thread femto Zheng
Hello all, I'm developing a sinatra application and loads ActiveRecord in, sometimes it will just report warning for mass for attributes, how can I enable it in non-Rails environment? checked in rails code, it's config.active_record.whitelist_attributes = true, so I add to my top code of sinatra

[Rails] Can I conditionaly initializer ?

2012-03-27 Thread femto Zheng
in my case, my payment gateway registers before spree_gateway is also ok, but is it possible to have this flexibility? Thanks. -- http://hi.baidu.com/femto http://www.aisiming.com/ -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] How do I add conditional style in rails 3.1

2012-01-21 Thread femto Zheng
Hello,I'm using blueprint and the css looks like this: link rel=stylesheet href=./css/screen.css type=text/css media=screen, projection link rel=stylesheet href=./css/print.css type=text/css media=print !--[if lt IE 8]link rel=stylesheet href=./css/ie.css type=text/css media=screen,

[Rails] Can Arel handle UPPER and LIKE condition?

2012-01-03 Thread femto Zheng
Hello all, I've recently been on a project where somewhere needs using case insensitive search(using UPPER(name) LIKE '') and LIKE condition, I want to use arel and don't use the old style string concatenation, can arel handle this? But I check on arel documentation, doesn't seems have any

[Rails] Any data table component for rails?

2011-10-14 Thread femto Zheng
Hello all, is there any data table component for rails which can sort/search/pagination etc? I've checked out jquery plugin datatables, which can sort/search/pagination, but for large dataset of course need to go server side, need to pass params[:sort]/params[:search]/params[:pagination] to

[Rails] Re: Php to Ruby compilation software

2011-05-04 Thread femto
. If you wanted to reuse code, shouldn't you be calling that code natively from your Ruby code? Maybe using a JSON interface? That is of cause assuming the PHP code is modular to begin with. Best, Andy On Tue, May 3, 2011 at 4:55 PM, femto Zheng femto...@gmail.com wrote: Hello, we

Re: [Rails] Re: Php to Ruby compilation software

2011-05-04 Thread femto Zheng
just giving an example, what if there's not a cssmin funtionality, but some other fancy funtionality? On Thu, May 5, 2011 at 12:44 AM, Ar Chron li...@ruby-forum.com wrote: Femto Zheng wrote in post #996564: Hello all, because most of php's application is feature rich than rails's existing

Re: [Rails] Re: Php to Ruby compilation software

2011-05-04 Thread femto Zheng
at 9:01 AM, femto Zheng femto...@gmail.com wrote: Yes, quite agree. 'But the generated Ruby you show above would cause most Rubyists to flee.' Yes, I agree. If without those bizarre php's variable behavior, I would just compile local variable to local variable, 'I'm still quite unclear

[Rails] Php to Ruby compilation software

2011-05-03 Thread femto Zheng
, one license ,up to 5 people's use. Anybody Interested? Talk to me. my gmail is just this. Best Regards. femto -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com

[Rails] Re: Php to Ruby compilation software

2011-05-03 Thread femto
Yes,it's self compiled, why using _VARS, and not directly local_variables? because php has some weird var logic, like say $a =1; echo $GLOBALS[a]; //this is 1, it automaticly affects entry in $GLOBALS, and in the opposite direction, $GLOBALS[a]=1; echo $a; //now $a is 1, which is really

[Rails] Re: Php to Ruby compilation software

2011-05-03 Thread femto
and $a=null; $a[db][config]=1; //all of a sudden $a contains something, while in ruby it NullException: throws undefined method `[]' for nil:NilClass //in php is quite valid, and used everywhere, which is unfornate. On May 4, 9:22 am, femto femto...@gmail.com wrote: Yes,it's self compiled, why

[Rails] Rails 3 use bundler, rubygems doesn't work?

2011-04-15 Thread femto Zheng
? -- http://hi.baidu.com/femto http://www.aisiming.com/ -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk

[Rails] How do I implement this? run scheduler on one of cluster?

2009-12-01 Thread femto
Hello all, How do I implement this? run scheduler on one of cluster? I now have a requirement, needs to run scheduler on one of cluster?, my app is monitor app, user will specify rules on my apps, like say, invoke jmx function, find out the connection pools' count, if 10, then invoke some

[Rails] Re: Is this a bug?

2009-11-26 Thread femto
observed_classes is []. I replied earlier, but the google post forum seems to went some wrong, so makes my post unsuccesful. Sorry for that. On 11月26日, 下午4时50分, Jeffrey L. Taylor r...@abluz.dyndns.org wrote: Quoting femto femto...@gmail.com: Hello all, while I'm using acts_as_audited

[Rails] Is this a bug?

2009-11-25 Thread femto
Hello all, while I'm using acts_as_audited(on jruby platform), after vendored the acts_as_audited, it reports some error, line 167, # Start observing the declared classes and their subclasses. def initialize Set.new(observed_classes + observed_subclasses).each { |klass| add_observer!

[Rails] Re: will_paginate don't work on jruby platform

2009-11-25 Thread femto
26, 2009 at 8:54 AM, femto femto...@gmail.com wrote: Hello all,will_paginate don't work on jruby platform, the Model.paginate find works ok, accepts all kinds of params, this is config.gem config.gem 'will_paginate', :version = '2.3.11', :source = 'http://gemcutter.org

[Rails] Re: will_paginate don't work on jruby platform

2009-11-25 Thread femto
Sagar. 2009/11/26 femto femto...@gmail.com Yes, the paginate find method in controller works.(Model.paginate blah blah blah) but %= will_paginate @collection % doesn't work on view. On 11月26日, 上午11时26分, Dhruva Sagar dhruva.sa...@gmail.com wrote: are you sure you have installed

[Rails] Re: will_paginate don't work on jruby platform

2009-11-25 Thread femto
audits' count is 202, which is obviously so the .paginate set @total_entries to 3, set @total_pages to 1 is obviously wrong.weird.. , On 11月26日, 下午3时00分, femto femto...@gmail.com wrote: Hello Dhruva, I have done a test, when like say, @audits = Audit.paginate(:all, :page = params [:page