search for: anobject

Displaying 4 results from an estimated 4 matches for "anobject".

Did you mean: adobject
2006 Jul 17
0
error_message_on / error_messages_for
Hi, just a simple question between error_message_on / error_messages_for ... Well, if you use error_messages_for in your web page, there is no problem even if anObject==nil (for example , the first time you load your form) whereas error_message_on must be use with an instanciated object ... So, you always has to double check if anObject is not nil before using error_message_on ? I don''t understand why there is a difference, I mean why you cannot si...
2011 Nov 26
2
how "big" (in RAM and/or disk storage) is each of these objects in a list?
...of the packages we are using puts in, such as a spare copy of a data frame that is saved in some subtle way that has escaped my attention. Consider a list of objects. Are there ways to do these things: 1. ask R how much memory is used by the things inside the list? 2. Does "as.expression(anObject)" print everything in there? Or, is there a better way to convert each thing to text or some other format that you can actually read line by line to see what is in there, to "see" everything? If there's no giant hidden data frame floating about, I figure I'll have to convert...
2012 May 09
12
out of memory (java heap space) on zip creation (jruby)
I am using rubyzip and am trying to put a huge csv file with 1.4 million rows into the zip file. Using jruby I get a out of heap error. I believe the error happens in the block below: Zip::ZipOutputStream.open(zip_path) do |zos| zos.put_next_entry(File.basename(csv_path)) zos.print IO.read(csv_path) end -- You received this message because you are subscribed to the Google
2007 May 17
8
Model: self is not child's parent
Assume a model Parent and another model Child. Child belongs_to Parent and Parent has_many Children. The following fails: @ p = Parent.find(:first) assert p.equal?(p.children[0].parent) @ It seems odd to me that I and my child''s parent are not the same object. In fact, this is royally screwing me up. Can anyone tell me why this is or point me at a relevant discussion, blog posting,