Displaying 4 results from an estimated 4 matches for "abcf".
Did you mean:
abc
2006 Jul 25
12
DRYing - similar named fields, etc.
...e controller. I''m now
doing the list.rhtml and looking for a DRY way to do the following.
For each data item, I have 2 fields - one is the item name, the other is
a flag that describes the quality.
So, for item "ABC", I have a data field "abc" and a flag field "abcf"
I want to display this as columns of the same row of the display table.
So, what I have is this:
<tr><td> <b>ABC</b></td><td> <%=h @my_result.abc -%> </td><td> <%=h
@my_result.abcf %></td></tr>
I''d rather not d...
2008 Jun 11
5
Similar words
Is there a way to get a list of similar words to the ones a user has
searched for?
So if they search for (in my case) transferaze which has no matches I
can get back an array like this [''transferase''] ?
I know I can just add ~ on the end to make it fuzzy, but what I''d like
is to be able to say "Sorry, no matches for ''transferaze''. Did you
2007 Jul 27
4
Looping through all possible combinations of cases
...uld like to write a loop - in such a way that it loops through
each possible trio of cases (i.e., abc, abd, abe, etc.) and sums up
their respective values on 'variable'.
3. I would like to write a loop - in such a way that it loops through
each possible quartet of cases (i.e., abcd, abce, abcf, etc.) and sums
up their respective values on 'variable'.
etc.
Then, at the end I want to capture all possible combinations that were
considered (i.e., what elements were combined in it) and get the value
of the sum for each combination.
How should I do it?
Thanks a lot!
Dimitri
2005 Apr 03
3
is there a function like %in% for characters?
like:
"a" %in% "abcd"
TRUE
Thanks.