Displaying 20 results from an estimated 40000 matches similar to: "Input text value retrieve id value"
2010 Oct 14
1
Cucumber Selenium web step to verify value of input field
I have an input field with an id which has a value. The web_steps.rb method
does not find the value. Is this the right step to use to check an input
field? It works fine for a text_area but not an input.
Scenario steps (tried both ways):
Then the "travel_card_number_gate" field should contain "5"
Then the "#travel_card_number_gate" field should contain "5"
2010 Dec 20
4
Subselection by URL
Hey guys,
I''m quite new in RoR, so please excuse me when I may ask weird
questions.
I am working on a database frontend. The layout looks mostly like
a has_many bs
b has_many cs
c has_many ds
and so on. Now I want to do some selection. Maybe I want to see all ds
belonging to a specific b. I would like to do it like:
http://my.host/bs/1/ds
When I click around there (add new ds, show a d
2006 May 17
2
Association data clobbering (foreign keys too?)
Can someone please confirm or correct the following statements?
If I have the following tables
create table as (id int, [...], b_id int);
create table bs (id int, [...], a_id int);
create table as_bs (a_id int, b_id int);
and the associations woould be defined like this
class A << ...
habtm :bs
belongs_to :b
end
so my Model A has a habtm collection of Bs *plus* a direct
2008 Jul 04
2
How to make WHERE foo_id IN () query?
Hi,
There are 3 models:
A has_many :Cs
B has_many :Cs
C belongs_to A and B
I got a single object of A and an array of B objects. How can I get
all Cs that have a_id equal to object A.id *and* b_id that belongs to
an object in Bs array?
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
1997 Feb 05
0
bliss version 0.4.0
[mod: Forwarded by Jeff Uphoff. I tried to mangle the headers that
it appears as the original post: with an invalid return address. -- REW]
A few months back, a very alpha version of bliss got posted. That shouldn''t
have happened, but, it was pretty much ignored so I didn''t worry about it.
But now it seems there''s a bit of a fuss about this. I''ll post the
2009 Jul 22
0
Extreme Value Bivariate Point Process Model
Dear All-
I am looking at the bivariate point process model for extreme values as
described in Section 8.3.2 of Coles book. I am stuck at a very low
level in being unable to reproduce the initial step of transforming the
data to unit Frechet margins. In particular, I am unable to
reproduce the wave-surge pairs distribution after transformation to
Frechet scale (Figure 8.6 of Coles
2007 Jan 29
3
Eager Loading: Stacking Includes?
Is it possible to stack :include''s in a situation like this:
A has_many Bs
B belongs_to A
B has_many Cs
C belongs_to B
The result of the query looking something like...
A.id B.id C.id
0 0 0
0 0 1
0 0 2
0 1 0
...
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2012 Jul 12
1
Modifying a list: what gets copied?
Hi all,
In my continued effort to understand when and what R copies, I've
designed a small experiment to try and figure out what goes on when a
list gets copied - is it a shallow copy or a deep copy. I believe the
following experiment isolates the difference:
options(digits = 2)
powers <- 4:6
n <- setNames(10 ^ powers, paste0("e", powers))
xs <- lapply(n, seq_len)
zs <-
2024 Aug 09
1
WDI package commands timing out and not working
Thanks, Martin. I am trying this in Bengaluru, India, using R-studio. I
tried downloading a single variable. It happened fast, in less than 5
seconds. I tried downloading six variables, it took much longer, but less
than a minute. Tried eight variables and it did not download even in five
minutes. My internet speed is well above 40Mbps. This should not take that
long. It seems the process timed
2006 May 04
0
Complement set association to has_many/through?
I have two models, A and B, with a straightforward many-to-many
has_many/through association between them. So, in A I have the
association processed_bs and in B I have processedby_as. This works
fine.
Now, I would like to also have an association unprocessed_bs in A,
which holds all Bs that _aren''t_ in processed_bs. I can write a method
in A that returns all those objects as a list
2006 Nov 07
1
Patch for zoom with mixed resolutions
Hey, David, with the latest changes for output-specific zoom it wasn't focusing
properly for me with mixed resolutions. I think this patch corrects that.
(Oh, and on my previous comment I meant struts and not extents, if that was
confusing to anyone. It was to me when I re-read it, heh.)
...MC
-------------- next part --------------
--- plugins/zoom.c
+++ plugins/zoom.c
@@ -480,8 +480,12
2013 Apr 10
1
Issue with Control-Z in a text file on Windows - readLines() appears to truncate
Working on Windows I have had to deal with CSV files that,
unfortunately, contain embedded Control-Zs, i.e. ASCII character 26 in
decimal, and the readLines() function in R on Windows (2.15.2 and
3.0.0) appears to truncate at the control-Z. There is no problem at
all on Ubuntu Linux with R 3.0.0.
Am I mistaken or is this genuine?
# Create a small file with embedded Control-Z
h3 <-
2012 Feb 27
2
compare two data frames of different dimensions and only keep unique rows
Dear list,
I am still struggling with something that should be easy: I compare two data frames with a lot of common rows and want to keep only rows that are NOT in both data frames, unique.
Here are an example of these data frame.
reported <-
structure(list(Product = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 3L, 4L, 5L, 5L), .Label = c("Cocoa", "Coffee C", "GC",
2018 Sep 11
1
Running libvirtd outside of a shell results in qemu defunct processes
Hi,
In KubeVirt we are right now starting libvirt via a wrapper shell
script. I want to remove that wrapper and directly start libvirtd from
our golang code. This means that our golang code is PID 1 in the
container and we start libvirtd as a fork from there.
When I did this, strange things started to happen. Libvirt was still
able to start and manage qemu processes, but stopping the qemu
2024 Aug 09
1
WDI package commands timing out and not working
>>>>> Ivan Krylov via R-help
>>>>> on Fri, 9 Aug 2024 15:23:58 +0300 writes:
> ? Thu, 8 Aug 2024 12:43:23 +0530
> Anupam Tyagi <anuptyagi at gmail.com> ?????:
>> In open.connection(con, "rb") :
>> URL
>>
2006 Jul 31
9
Problems with ever-increasing ID value
I have a script that I am using to populate a database from a CSV file:
RAILS_ENV = ''development''
require File.dirname(__FILE__) + ''/../../config/environment''
require ''csv''
# Destroy existing data
Residence.destroy_all
# IMPORT DATA FROM apartments.csv
db_file = "#{RAILS_ROOT}/db/apartments.csv"
CSV.open(db_file, "r",
2012 May 05
3
Error 400 on SERVER - pe_mcollective - missing value of param 'undef'
New install of 2.5.1 on Ubuntu 10.10 server. Multiple (6) new installs on
Ubuntu 12.04 clients running agent 2.7.14-1puppetlabs1 from the puppetlabs
repo generating the following error.
err: Could not retrieve catalog from remote server: Error 400 on SERVER: No
matching value for selector param ‘undef’ at
/opt/puppet/share/puppet/modules/pe_mcollective/manifests/init.pp:89 on
node
2024 Aug 08
1
WDI package commands timing out and not working
There is some problem getting data with the WDI package. It gets data from
World Development Indicators and other databases of The World Bank. I let
the code run for several minutes and nothing happens. Sometimes it gives a
time out message. I ran the same code last year and it worked. Any idea
what the problem is and how to fix it?
> dat1EU = WDI(indicator = c('NY.ADJ.NNAT.GN.ZS',
2006 Jul 24
1
problem with has_many associations
Hi all,
I have some problems with a few temporary objects, this is the relation
between them:
A -(1,n)-> B -(1,1)-> C
B -(1,n)-> D
C -(1,n)-> D
I have a "wizard" to create "A" objects, I''m storing everything in the
session, something like this:
a = A.new
session[:a_object] = a
...
b = B.new
b.c = some_c_instace
a.bs << b
...
d = D.new
b.ds
2012 Feb 27
1
compare two data frames with same columns names but of different dimensions
Dear List,
I want to compare and return the rows which are NOT in the two data frames. Classic methods don't work as the df have NOT the same dimensions.
Here are one example of my df:
reported <-
structure(list(Product = structure(c(1L, 1L, 1L, 1L, 2L, 2L,
3L, 4L, 5L, 5L), .Label = c("Cocoa", "Coffee C", "GC", "Sugar No 11",
"ZS"),