On Tue, Nov 5, 2013 at 12:42 AM, Sur wrote:
> well it'd be interesting to know why you're frustrated out of Symbol
> concepts of Ruby ?
It's hard to explain, fight the good fight long enough you might see
it or you might not, I won't force my views on you.
> I didn't say symbols are better than
> Preach on about this bullshit when Ruby isn't primarily used for web
> applications and when Ruby allows my system to reclaim memory, until
> then lets leave the symbol argument bullshit out of this. Even if
> they are constants they can lead to trouble if you just blindly state
> they are bette
@sur - will check as you said.
@jordan - not understood your reply..
--
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
to rubyonrails-talk+unsubscr...@googleg
On Tue, Nov 5, 2013 at 12:07 AM, Sur wrote:
> Do you know what is the difference between a string and a symbol and why and
> where symbols are preferred over strings ?
>
> try this:
>
> a = "some string"
> b = "some string"
> b.object_id == a.object_id (watch for the result of this expression)
>
Well, this is a classic use case when we jump too early on Rails not
understanding the Ruby (or programming in general) to at least a decent
level let alone the meta-programming stuff.
One should get a good hold of Ruby at least to a level where s/he
understands how the memory mapping is worki
First validate the data, and then insert it to the database. Till then, it’s
read from the file and still in-memory.
I’m not bringing the cache into the picture at all.
--
Dheeraj Kumar
On Tuesday, 5 November 2013 at 11:24 am, Fahim Patel wrote:
> @dheeraj - thanks for reply.I am using r
@dheeraj - thanks for reply.I am using resque & redis. You exactly got use
case .
can you please give answer for below point:-
1. From rails app, when user insert data then each time data hitted on
database for validation or validation is present in cache ?
--
You received this message becaus
This is a great use case for a background job. Have you tried Resque?
If I have a user uploading thousands of rows, all of which need to be validated
and processed/saved, I’d do it like this:
Let the user upload the file, save it somewhere. Trigger a Resque job.
Read the file one or more rows at
@tam - I am even not sure how can experiment it. Collecting data and
studying in progress.
@sur - I am still cross checking.. If you provide any reference link or
data to proof that validation already get cached.
Friends and @sur please clear me on below question-
>From rails app, when user i
On Nov 4, 2013, at 3:19 AM, Tamara Temple wrote:
>
> On Nov 3, 2013, at 3:35 PM, Tamara Temple wrote:
>
>>
>> On Nov 1, 2013, at 9:20 AM, leo nike wrote:
>>
>>> Hi, I Want to simply print out 2d array elements. Method is located in
>>> Helper module. Calling helper method from jQuery. At t
On Nov 4, 2013, at 8:05 AM, leo nike wrote:
> Great! I didnt even think about implementation like that, that's
> awesome. thanks a lot! can I contact you, in case something doesnt work
> here?
Just reply on list, there are some truly awesome people here, most definitely
not including me.
-
On Nov 4, 2013, at 6:02 AM, Fahim Patel wrote:
> Thanks @tamouse for reply.
> Actually my table consist more than 15 columns and each column have lots of
> validation like presence validation,format validation.
> Major issue is user will upload CSV file which can consist hundred's of
> rows.
Dinesh Atoliya wrote in post #1126155:
> Is there any way that we can turn off DayLight saving in rails app?
> Rails uses tzinfo gem for converting time in zones but it does not
> handle
> it correctly for some timezone. Is there any way we can turn OFF
> DayLight
> saving completely ?
First I wo
Great! I didnt even think about implementation like that, that's
awesome. thanks a lot! can I contact you, in case something doesnt work
here?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
T
Thanks @sur for reply.
Yes you understood correctly my issue, and I even understood your
solution
let me cross check your solution and will update here.
If I understood you correctly,
Validation rule resides inside a Ruby class i.e. a class inheriting
ActiveRecord::Base, which is alrea
> Thanks @tamouse for reply.
> Actually my table consist more than 15 columns and each column have lots
> of validation like presence validation,format validation.
> Major issue is user will upload CSV file which can consist hundred's of
> rows.Through active record validating each row consuming l
Thanks @tamouse for reply.
Actually my table consist more than 15 columns and each column have lots of
validation like presence validation,format validation.
Major issue is user will upload CSV file which can consist hundred's of
rows.Through active record validating each row consuming lots of
On Nov 4, 2013, at 4:32 AM, Fahim Patel wrote:
> @sur and @tam thanks for reply
>
> @sur - Currently I am using rescue I am using worker's but still I am
> thinking to use memcache for fast performanceWhat you say can I achieve
> validation on cache level.
>
> @tam - I even show
@sur and @tam thanks for reply
@sur - Currently I am using rescue I am using worker's but still I am
thinking to use memcache for fast performanceWhat you say can I achieve
validation on cache level.
@tam - I even showing processing image till process done
Friends can i ac
On Nov 4, 2013, at 2:42 AM, Sur Max wrote:
> @Fahim
>
> In my opinion memcached is not a suitable tool for the purpose you've
> mentioned. In fact it'd be waste of resources in such a case.
> I would go for processing that thing in background using any of the available
> gem for processing th
On Nov 3, 2013, at 3:35 PM, Tamara Temple wrote:
>
> On Nov 1, 2013, at 9:20 AM, leo nike wrote:
>
>> Hi, I Want to simply print out 2d array elements. Method is located in
>> Helper module. Calling helper method from jQuery. At the moment I'm not
>> getting output (=> 0..3) I tried to do ite
1. validate tem<35
2. the tem presence:true,the tem_date can be set date
3. the tem<35, tem_c set "合格",otherwise tem_c set "不合格"
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receivi
@Fahim
In my opinion memcached is not a suitable tool for the purpose you've
mentioned. In fact it'd be waste of resources in such a case.
I would go for processing that thing in background using any of the
available gem for processing the background job.
Showing an interim screen to the user me
23 matches
Mail list logo