similar to: how to use substring match as condition?

Displaying 20 results from an estimated 700 matches similar to: "how to use substring match as condition?"

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
2004 Aug 05
0
[Bug 1582] New: rsync dry run cannot find missing folders, contradicts actual run.
https://bugzilla.samba.org/show_bug.cgi?id=1582 Summary: rsync dry run cannot find missing folders, contradicts actual run. Product: rsync Version: 2.6.2 Platform: All OS/Version: IRIX Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org
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
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
2009 Feb 06
1
Tables in legend
I need to create a legend for a simple scatter plot in the following format. This is Blah1 number1 number2 This is Blah2 number3 number4 . . . This is Blah6 number11 number12 I looked up these help pages and found the following solution. lStr<-c(Blah1, Blah2,....Blah6, number 1, number2, ...number12) legend(x="topright",lStr,ncol=3) So this creates the tabular format I am
2010 Sep 08
4
Populate combo box from database without repeatness
Hi, I have a column of data with repeated as mentioned below. *column_name* Acer Lenova HP Lenova Acer Acer Lenova I need to populate this column in a combo box without repeated data as mentioned below *combo box* Acer Lenova HP I tried as <%= collection_select(:column_name, TableName.all)%> "table_names" is a table and "column_name" is a column needed to
2007 Apr 25
17
Multiple swap partitions
I have a machine with two swap partitions (sda2 and sda8). Both will have none as mount point. When I try to use puppet (using mount type) for managing fstab I get problems because "name" in both instances (i.e. mount path) will be "none". How should I fix this within puppet? Regards Halvard Moe
2005 Dec 27
1
Rails/Ajax question from a newbie (to both)
I''m trying to get a Rico LiveGrid working, and I am a bit stuck on how to accomplish this. I have a page that successfully queries a controller and updates a <div> containing a table. I have two versions of the action; one uses the render_partial to return a rendered version of that table, and the other returns an XML-RPC document, and this is where I hit a snag. The Rico LiveGrid
2003 May 07
2
Plot labeling question
I have an older Splus script that generated some regression graphics for me. In it, I used the commands key(10,800,text="<blah1>",border=0) key(10,750,text="<blah2>", border=0, background = 9) text(locator(1),"95% Confidence Limits") locator(n=2,type="l") text(locator(1),"Model for Group 1") locator(n=2,type="l") There is
2003 Mar 07
1
column name changes based on substrings
Hi peoples, I'm trying to work out a function which will allow me to relace column names on the basis of substrings within the existing names. e.g. I'd like: blah.Na blah2.Na blah3.Mg blah4.Mg blah5.K blah6.K R1 x x x x x x R2 x x x x x x ... to become: Na (%) Na (%) Mg (%) Mg
2003 Oct 15
2
R-WinEdt, 1.8, deprecating warning
When I load R-WinEdt (>library(RWinEdt), I get the warning: Warning message: multi-argument returns are deprecated in: return(InstallRoot, RWinEdtInstalled) I have upgraded to R 1. 8 on Windows, by copying non-base libraries into the 1.8 library folder and updating the help. I also reinstalled R-WinEdt from the zip file as detailed in RWinEdt ReadMe file using the recommend (A)
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?
2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class called XMLDoc. I may add more functionality to it later, hence the more generic name, but you do something like this to convert XML to a hash: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlDoc) { this.element = xmlDoc; }, asHash: function () { if (! this._xmlHash) {
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
2004 Oct 14
5
Photoshop "Disk Full" error, a linux filesystem NOT Samba issue
Hi all. Thought you would all be interested to know that i, like many others, am experiencing issues with Samba and Photoshop 7.0. The problem is specific to Photoshop 7.0 when saving files to a Samba share via a W2k/XP OS. Users experience a disk full error when saving from Photoshop but have no issues copying/moving etc files to/from the share outside of PS. Well, after some testing, the
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
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/.
2009 Jan 16
3
rspec model testing - test on user defined validation- How do I test that the create failed.
I''m new to rspec and looking for way to test a validation I added to a model. The test checks to see that if field1 has a value then field2 must be nil and vice versa. ------------------------------- When I did the rspec_scaffold it generated one test which worked before :each do @valid_attributes = { :field1 = "value for field1" :field2 = "value for
2018 Feb 07
1
Addressing the problem of noisy GPUs under Nouveau
On 01/28/2018 04:05 PM, Martin Peres wrote: > On 29/01/18 01:24, Martin Peres wrote: >> 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