search for: field3

Displaying 20 results from an estimated 20 matches for "field3".

Did you mean: field
2006 Aug 10
4
I need "validates_presence_of" help
Hi - I have 3 fileds a user can fill out. They can fill out 2 of them or just one of them, for example. fill out these 2 fields: Field1 and Field2 Or fill out this field: Field3 In my model how do I use validates_presence_of for Field1 and Field2 or just Field3. I want to do something like this: validates_presence_of Field1, Field2 OR validates_presence_of Field3 So the user can fill out Field1, Field2 and be a succesful update or just fill out Field3 and be a succes...
2008 May 29
2
how to use substring match as condition?
Hi, How can I use a substring match as a condition in a subset command? Sth like this: subset(input, field1=="blah1" & field2=="blah2") # but now with substring match in field2 subset(input, field1=="blah1" & field3 *substringmatch* "blah3") I've tried with gsub, but it won't work: subset(input, field1=="blah1" & gsub("blah3","",input$field3)) [[alternative HTML version deleted]]
2006 Jan 13
4
How to add virtual fields in model
I want to add virtual fields in a model. table: field1 field2 I want to add field3 which is field1*2 + field2 I know tihs can be achieved in View, but I want it in model. Then I will pass this model to PagerRenderer to paginate. How to achieve this? thanks -- Posted via http://www.ruby-forum.com/.
2009 Aug 15
4
How to use R to perform prediction based on history data
Say I have a csv file, each row contains several fields, one of them are whether the row is success. In history data, I have all the fields including the result of whether it is success. In future data, I only have fields without the result. For example: history data: Field1 Field2 Field3 Field4 ResultField 1231 CA TRUE 443 TRUE 23231 NC TRUE 123 FALSE 1231 CA FALSE 243 TRUE The future data: Field1 Field2 Field3 Field4 23231 NC TRUE 123 I am newbie in R and statistics, I just feel R could have some mech...
2011 Oct 05
1
Weird behaviour of tab characters in a string in R (vs Python)
Hello, I wanted to parse some information from a text, where fields are tab separated. When I copy the text into an R session (under emacs) like: mystring <- "field1 field2 field3" the tab character is replaced by a single space! For ex, if I type mystring, I get: "field1 field2 field3" The tabs have disappeared!!! I checked with Python that the text I copied was tab separated indeed so I did the same, in a Python session: mystring = "field1 field2...
2008 Feb 08
0
javascript parameter problem with onsubmit
Hi I have this problem: <script> var param1 = ''field3''; </script> <script> var param2 = ''field3''; </script> <script> var param3 = ''field3''; </script> <%= submit_tag ''Next'', {:onsubmit => ''return validate_options(param1,param2,param3);'...
2005 Dec 27
1
Rails/Ajax question from a newbie (to both)
...h the code I have in the partial: <% @results.each do |item| %> <tr> <td class="cell"> <%= item.field1 %> <td> <td class="cell"> <%= item.field2 %> <td> <td class="cell"> <%= item.field3 %> <td> </tr> <% end %> And the LiveGrid tutorial describes this: <ajax-response> <response type=''object'' id=''data_grid_updater''> <rows update_us=''true> <tr... The rest is the table and clos...
2018 Feb 07
1
Addressing the problem of noisy GPUs under Nouveau
...0x00000001 #define NV_FAN_COOLER_TABLE_CONTROL_STOP_DEFAULT NV_FAN_COOLER_TABLE_CONTROL_STOP_PWM #define NV_FAN_COOLER_TABLE_PWM_START 30:24 #define NV_FAN_COOLER_TABLE_PWM_FREQUENCY 11:0 // field3 - dword #define NV_FAN_COOLER_TABLE_PWM_FREQUENCY_UNDEFINED 0x00000000 #define NV_FAN_COOLER_TABLE_FIELD3_RSVD 15:12 #define NV_FAN_COOLER_TABLE_FIELD3_PWM_SCALE_SLOPE 31:16 #define NV_FAN_COOLER_TABLE_FIELD4_PWM_SCALE_OFFSET...
2008 Sep 30
12
dtrace missing ''unlinkat''? showing process stack?
everyone, Just out of curiosity, I did a dtrace -n ''syscall:::entry { @num[execname, probefunc] = count(); }'' and looked at the entries produced by ''rm''. I see everything that rm did, *except* the unlinkat - which is unfortunate because I want to trace which processes have deleted which files. So - does dtrace contain unlinkat as a probe for a system call?
2005 Feb 24
2
OT - C structure question
I hae tried searching the web for the answer, but, man is there a lot of pages ... :( in the language I develop in, if I have a structure I can dynamically refer to the contents of a field of the structure like so: MESSAGE SomeStructure:Field(SomeFieldName):Value where SomeFieldName is either a quoted constant or a variable expressions In "C", I beleive that you can refer to
2018 Jan 28
3
Addressing the problem of noisy GPUs under Nouveau
On 28/11/17 07:32, John Hubbard wrote: > On 11/23/2017 02:48 PM, Martin Peres wrote: >> On 23/11/17 10:06, John Hubbard wrote: >>> On 11/22/2017 05:07 PM, Martin Peres wrote: >>>> Hey, >>>> >>>> Thanks for your answer, Andy! >>>> >>>> On 22/11/17 04:06, Ilia Mirkin wrote: >>>>> On Tue, Nov 21, 2017 at 8:29
2009 Jul 30
0
RODBC and Oracle
...ower table mcc.* (38) and kept adding the rest of the tables (tmzip.* 43, pan.* 62, and txn.* 64) one at a time - tfg is correctly populated in all but the last case. Selecting just txn.* fields works as well. Furthermore it cannot be the buffer/data size as "select txn.field1, pan.field2, mcc.field3, tmzip.field4" returns an empty data frame as well. It cannot be the Oracle ODBC driver - tested query via ODBC Query util and it works. Also same query works over RJDBC (and of course all of the Oracle client tools). I tried to trace at the ODBC and SQLNET levels but can't seem to make se...
2007 Mar 09
5
memory leak in index build?
...#39;' require ''set'' dir = "temp_index" if ARGV.first=="-p" ARGV.shift prefix=ARGV.shift end fi= Ferret::Index::FieldInfos.new fi.add_field :name, :index => :yes, :store => :yes, :term_vector => :with_positions %w[data field1 field2 field3].each{|fieldname| fi.add_field fieldname.to_sym, :index => :yes, :store => :no, :term_vector => :with_positions } i = Ferret::Index::IndexWriter.new(:path=>dir, :create=>true, :field_infos=>fi) list=Dir["/usr/share/man/*/#{prefix}*.gz"] numpages=(ARGV.last|...
2006 Mar 09
7
how to make two forms on the same page???
I can get the forms to be displayed, but i want to have only one "create" button. i''ve tried everything i can think of... -- Posted via http://www.ruby-forum.com/.
2006 Aug 18
4
Database Triggers?
Hi, I''m new to RoR and exploring its use with an existing application. One thing I can''t seem to find much detail on is using database triggers. All RoR examples and tutorials I''ve seen are very basic saving data back to a single table. My use case includes a somewhat denormalized DB that uses triggers to store data in multiple tables on occassion. I currently
2008 Apr 04
6
validates_numericality_of :not_equal_to
I have a situation in which I want to validate a number is not zero. Both positive and negative values are acceptable, just not zero. validates_numericality_of has an :equal_to attribute, but I don''t see a :not_equal_to. I have not yet been able to find anyone who has discussed this. I did find information about custom validators, so I am now using a custom validator to check the field
2006 Jan 23
16
Adding form fields (extending a form) on the fly
Hello, I just can''t seem to find a way to extend a form dynamically in ROR. Say I am writing a recipe website. There is one form to enter the recipe. There is room for N number of ingredients (let''s say a text field for each ingredient name and selection list for the amount). What if the user wants to add more than N ingredients as he types them in? how do I do this without
2008 Aug 05
3
[LLVMdev] Is there room for another build system?
...ice. Perl claims to support extensions written in C, but I am wholly unfamiliar with this feature. Perl has the most popular datatypes (string, array, dictionary, scalar) included in the base syntax, and it supports structures and classes, albeit with a strange syntax ("$self- >{field3}"). Longstanding Perl convention seems to avoid the OO features added in Perl 5, preferring to store structures as lists of lists (a la' LISP). http://www.perl.org Tcl ("Tool Command Language") was developed to be a simple language, and easily extended using C. Tcl is o...
2011 Oct 18
15
Generate model from database
hello i want to ask, how to generate model from table in my database. That''s possibel ? -- Posted via http://www.ruby-forum.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send
2015 Jul 21
6
[LLVMdev] GlobalsModRef (and thus LTO) is completely broken
Based on function names and structures, this is some version of GCC :) Any way you can post the entire .ll file? Because it's globalsmodref, it's hard to debug without the other functions, since it goes over all the functions to determine address takenness, etc :) On Tue, Jul 21, 2015 at 3:23 PM, Michael Zolotukhin <mzolotukhin at apple.com> wrote: > Hi Chandler, > > We