Displaying 20 results from an estimated 1100 matches similar to: "Multiple forms on a page"
2006 Feb 27
2
Find not working
Hello all.
I have the following code (taken from the depot tutorial then modified)
def add_dish( dish, type, qnty )
item = @items.find {|i| i.dish_id == dish.id && i.type == type }
if item
item.quantity += qnty.to_i
else
if type == ''Fresh''
item = Fresh.for_dish(dish)
else
item = Frozen.for_dish(dish)
end
2010 Feb 14
2
has_many :through eager loading only loading one record
Hello,
I''ve been using Rails for years, including has_many :through and eager
loading, but this one has me stumped.
The problem is that Active Record is only eager-loading the first of
many records. Here are the models (note set_table_name for a legacy
schema):
class Tag < ActiveRecord::Base
set_table_name ''tag''
end
class DishTag < Tag
has_many
2005 Oct 28
1
SF Beer & Pizza SIG - review and forecast
Wednesday''s Beer & Pizza SIG was attended by about a dozen Rubyists,
plus one extremely well-dressed gentleman (no hacker he!) who was on
the prowl for Rubyists to hire. Beer and Pizza (among other things)
were consumed, Ruby (among other things) was discussed, and everyone
appeared to have a good time.
The upcoming SIG will, as announced previously, be held just up the
street at
2017 Nov 01
1
Correct subsetting in R
Hi all,
I have two data frames that one of them does not have the column ID:
> str(data)
'data.frame': 499 obs. of 608 variables:
$ ID : int 1 2 3 4 5 6 7 8 9 10 ...
$ alright : int 1 0 0 0 0 0 0 1 2 1 ...
$ bad : int 1 0 0 0 0 0 0 0 0 0 ...
$ boy : int 1 2 1 1 0 2 2 4 2 1 ...
$ cooki : int 1 2 2 1 0 1 1 4 2 3
2017 Nov 01
1
Correct subsetting in R
It's not what I want, the first data frame has 499 observations and the second data frame is a subset of the first one but with 375 observations. I want something that returns the ID for training data frame
On Wednesday, November 1, 2017 10:18 AM, Eric Berger <ericjberger at gmail.com> wrote:
matches <- merge(training,data,by=intersect(names(training),names(data)))
HTH,
Eric
2017 Nov 01
1
Correct subsetting in R
But they row.names() cannot give me the IDs
On Wednesday, November 1, 2017 9:45 AM, David Wolfskill <r at catwhisker.org> wrote:
On Wed, Nov 01, 2017 at 04:13:42PM +0000, Elahe chalabi via R-help wrote:
> Hi all,
> I have two data frames that one of them does not have the column ID:
>
> > str(data)
> 'data.frame': 499 obs. of 608 variables:
2006 Nov 14
3
messed-up habtm relationship
Hi,
I have a many-to-many relationship between dishes and ingredients
class Dish < ActiveRecord::Base
has_and_belongs_to_many :ingredients
end
class Ingredient < ActiveRecord::Base
has_and_belongs_to_many :dishes
end
I have a join table dishes_ingredients
now when i access my_dish.ingredients, i get a list of what looks like
Ingredient objects, but the but they don''t have
2011 Feb 14
4
R, Ubuntu, package installation with non-zero exit status
All:
I have been looking through the string of posts regarding this same issue,
but I haven't been able to fix this problem.
I am running Ubuntu 10.4 64bit, R version 2.10.1
I cannot install certain packages (e.g. "vegetarian") and each time it says
basically the same thing (regardless of the package):
################################################################
... leaving
2012 Mar 14
2
mount NFS share over specific nic?
I have a new server with multiple nics running Centos 6.2 and I'd like to force all NFS traffic over one nic.
We're using FreeNAS to dish out NFS shares and I have different IPs on my 2 nics but how can I get the server to mount the share over one particular nic?
Or is there a better way to do it?
Thanx,
Russell Smithies
2006 Nov 22
1
Probit analysis
Respected Sir/Madam,
I have a question regarding calculation of LD50 (Lethal Dose) and IC50 (50%
inhibitory concentration) of an antimicrobial experiment.
I have used a compound isolated from a plant and observed its effect on the
fungus *Fusarium oxysporum* by the food poisoning method. Solutions of the
compound at concentrations of 0, 50, 100, 150, 200 and 250µg/ ml were added
to
2015 Aug 21
2
samba shares does not exist or permission denied when connecting
Hi,
We have the following shares listed in smb.conf
users cannot access the samba share directly i.e.
\\sambaserver\rixilr
or
\\sambaserver\bridges
error messages
'/ibe/dusty/RIXILE Share/Bridges' does not exist or permission denied
when connecting to [bridges] Error was Permission denied
Aug 21 10:09:12 dish sambaserver[27859]: [2015/08/21 10:09:12.964101,
0]
2007 Jul 18
0
Vegetarian enough?
Vegetarian enough?
People often tell me about how they get grief from people who are "more"
vegetarian than them. Isn''t that strange? People who can be bothered to
make a life changing decision are then chastised by the super veggies
for not trying hard enough.
http://2site.com/agfdxz
Road Map To Riches - Another 2-UP Scam
Road Map To Riches is yet Another 2-Up scheme in
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
libswfdec/swfdec_sprite_movie.c | 60 ---------------
libswfdec/swfdec_tag.c | 152 +++++++++++++++++++++++++++++++---------
libswfdec/swfdec_tag.h | 5 +
3 files changed, 128 insertions(+), 89 deletions(-)
New commits:
diff-tree 37ed222d6ea5305df2c238122be4e31a98af3229 (from 9d35a0a007492163043bf609bf2759a05738c8df)
Author: Benjamin Otte <otte at gnome.org>
Date:
2015 Jan 08
2
Smbd dumps core while starting
Samba version : samba-4.1.12, AIX 6.1,
compilation(configure, make clean install) was ok. but smbd not starting.
gdb --dbx /opt/samba/sbin/smbd /root/core
Core was generated by `smbd'.
Program terminated with signal 4, Illegal instruction.
#0 0x0000000000000000 in ?? ()
(gdb) where
#0 0x0000000000000000 in ?? ()
#1 0x0900000008406760 in regdb_init () at
2004 Aug 06
1
reduction of noise due to high microphone gain
Hello,
With high microphone gain, I seem to have problem making the silence
detection work.
The speech detection works well for the rare dish sample, which has very
low noise amplitudes in silence regions. However, if the microphone
gain is set to really high, noise samples are taken as speech, as
indicated by the non-zero return value from speex_encode() calls.
I had VAD turned on.
2007 Jun 28
1
complete stumper: variable exists in hidden_field_tag, but nil everywhere else
This is a real mystery to me. I have an instance variable in a partial
that only gives its value inside a hidden_field_tag. If I try to use
the variable anywhere else in the partial, i either get nil or an
undefined error. The goal is to use the value of @event.id outside of
hidden_field_tag.
Here''s what works:
<%= hidden_field_tag ''id'', @event && @event.id,
2011 Mar 14
0
Non-constancy of variances in mixed model.
Hi, I've been doing an experiment, measuring the dead-zone-diameters of
bacteria, when they've been grown with paper diffusion disks of
antimicrobial. There are two groups, or treatments - one is bacteria
that have been cultured in said antimicrobial for the past year, the
other group is of the same species, but lab stock and has not gone had
any prior contact with the antimicrobial.
2009 Jan 10
2
hidden_field_tag flattens my array for value
ERB:
<%= hidden_field_tag(''users_ids'', @users.collect(&:id))%>
OUTPUT:
<input id="users_ids" name="users_ids" type="hidden"
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi,
Has anyone successfully implemented the :onsubmit option for
form_remote_tag. It doesn''t seem to work for me. Is there any specific
version of rails which is required for the same.
Here''s my piece of code.
<script>
function set_tojid(){
alert(''onsubmit'');
}
</script>
<%= form_remote_tag :update => '''', :url => {
2015 Aug 24
2
samba shares does not exist or permission denied when connecting
On 24/08/15 10:49, Sundeep Singh Nanuwa wrote:
> Hi,
>
> Is there any issues using spaces in directories paths?
>
> On 21/08/15 11:06, Sunny wrote:
>> Hi,
>>
>> We have the following shares listed in smb.conf
>>
>> users cannot access the samba share directly i.e.
>>
>> \\sambaserver\rixilr
>> or
>> \\sambaserver\bridges
>>