Displaying 20 results from an estimated 1300 matches similar to: "update_attribute - effecting multiple attributes"
2016 Mar 31
0
Filtering based on the occurrence
Hi Jim,?
Thank you tons for your help. The code worked perfectly :)?Best,Farnoosh
On Wednesday, March 30, 2016 1:13 AM, Jim Lemon <drjimlemon at gmail.com> wrote:
Hi Farnoosh,
Despite my deep suspicion that this answer will solve a useless
problem, try this:
last_subject<-0
keep_deps<-c("B","D","F")
keep_rows<-NULL
for(rowindex in
2009 Apr 24
2
Array
Hi there,
Just wondering if anyone has any tips for using arrays?
I am trying to convert the following SAS code to R:
data A2;
set A1;
by subject_id;
retain BX1-BX10 i;
array b(1:10) BX1-BX10 ;
if first.subject_id then do ;
do j=1 to 10;
b(j) = .;
end;
i=1;
end;
b(i) = BX;
i = i+1;
if last.subject_id then
2009 Apr 22
1
Count Code
Hi there,
I am interested in converting SAS code to R & I wondered if anyone had
any quick R code/tips for the following piece of test SAS code?
Any feedback greatly appreciated.
data A1;
set A1;
count + 1;
by subject_id;
if first.subject_id then count = 1;
run;
[[alternative HTML version deleted]]
2000 Feb 26
1
OpenSSH on HP-UX 11 with TCB
Hi,
an updated and more civilized post (to my one and only previous one) on
getting OpenSSH to work on HP-UX 11 using the TCB. I used the HP ANSI C
compiler.
Firstly, I needed to download, compile and install OpenSSL, EGD and
ZLib.
Specific issues:
configure did not handle hpux 11
login.c did not compile
makefile did not use $(CFLAGS)
sshd did not compile (pam issues), I wanted to use
2009 Jul 30
2
weight median by count for multiple records
Hello everyone,
I have a .csv file with the following format:
uniqueID SubjectID Distance_miles Tag
1 1001 5.5 3
2 1001 7 1
3 1001 6.5 1
4 1001 5 1
5 1002
2006 Jan 04
0
update_attribute works, update_attributes doesn''t, why?
Hello again...
so I narrowed my problem down. For some reason, while using
login_generator, any User object I pull from the DB can be updated one
attribute at a time using update_attribute, but when I try and do
update_attributes it fails every time. Is this a limitation with
login_generator that I don''t know about, or is there a way around this?
I also tried the .update method and
2009 Jan 25
1
Multiple lattice plots on a page: aligning x-axes vertically
Dear R-help,
I am creating a two lattice plots (a densityplot() and xyplot()) that
have the same x-axes and then 'printing' them onto the same page, one
above the other (see end of email for an example to generate the graph).
With different labels on the y-axis for each plot the left spacing is
different, and the x-axes don't align vertically. Although I can
manually modify the
2009 Jan 27
1
Creating list or numeric vectors out of selected columns of row oriented data
I am just assuming this can be done, but I have not gotten close to
making it happen. I have a data file with about 1 million rows with
1470 unique subjects. Each row represents a small set of observations
made on a specific date for a single subject. I would like to
transform the data so that I have an R object with a single entry for
each subject and start date and vectors for the
2006 Jan 17
2
update_attribute and validations
Just in case it saves someone else the several hours of insanity I just
went through, update_attributes will not save unless the model
validations are satisfied, but update_attribute (the singular form)
will save the attribute to the database even if the model validations
would fail!
This appears to be a feature, not a bug
(http://api.rubyonrails.com/classes/ActiveRecord/Base.html) although
2002 Jan 02
1
SCO OpenServer password issue
If SCO OpenServer is configured for large passwords, i.e. u_pwseg is
greater than 1 in /etc/auth/system/default, then user authentication in
auth-passwd.c will fail for users whose passwords are longer than 8
characters. The "traditional" level of security installs with
u_pwseg#1, so most users would never encounter this problem. This has
been an issue in openssh since I started using
2006 Feb 27
4
update_attribute with Validation?
Does anyone know of a way to update individual attributes with
validation? update_attribute disables the validation checks in the
record model, so I''m wondering if there''s a workaround for this.
In my application, I want to allow the user to update some or all the
attributes without having to enter :password and :password_confirmation,
both of which are subject to
2011 May 21
1
Consequences of overriding update_attribute to force validation?
I know the debate of whether this should validate has been rehashed
many times. My question is, what are the consequences of overriding
this method to force validation? Will this break fundamental things?
Will it break plugins? Is there a reason not to have a strict
validation option?
In my code I will never use this as I consider it a terribly broken
method, but some gems use it and in one case
2008 Apr 28
1
update_attribute overwrites existing attributes with NULL.
Hmm.
When using update_attribute from within a worker method, it seems that
Backgroundrb inserts null values into all attributes that are not
explicitly set. Is this possible/true?
2003 Aug 09
0
Timing attacks and owl-always-auth
Hi All.
Attached is a patch against OpenBSD, based in part on the owl-always-auth
patch.
The idea is that the only way out of auth_passwd for the failure case is
the "return 0" at the bottom.
I don't know if this is a good way to do it or not, it's presented for
discussion.
Also, I don't think 3.6.1p2 is quite right WRT these timing issues (eg,
you get a fast failure
2006 Apr 21
2
update_attribute... only ONE
Hi,
I was reading the messages at
<http://wrath.rubyonrails.org/pipermail/rails/2005-December/006969.html>
http://wrath.rubyonrails.org/pipermail/rails/2005-December/006969.html,
Subject: [Rails] update_attribute send updates every field, why?
Well, I am having the same problem, and I do have a binary column where I am
storing files. Also, I am calling a web service so I can send the
2002 Jul 30
0
patch: disable credential forwarding after password auth.
Dear list,
since the order of authentication and AFS token/KRB TGT forwarding
changed (around 3.0), we have had problems with users accidentally
overwriting their credentials from a "password" login with forwarded
credentials. E.g. user A logs in as user B, but stays with the AFS
permissions of user A. A workaround is to use "-k" on these sessions,
but "it worked without
2008 Apr 19
1
update and update_attribute woes
i can not get update to work via controller/server.
it works via console ???
this is what i get when i run it
Club Load (0.005893) SELECT * FROM clubs WHERE (clubs."id" = 3)
SQL (0.000570) BEGIN
SQL (0.000454) COMMIT
club.update_attributes(:state => "CA")
or
Club.update(3, :state => "CA")
what am i overlooking?
2008 Aug 25
2
to catch exception from update_attribute
Hi
begin
ActiveRecord::Base.transaction do
pb_status_history = ProblemStatusHistory.new
pb_status_history.problem_id = @problem.id
pb_status_history.problem_status_id =
@problem.problem_status_id
pb_status_history.save!
ret_val=@problem.update_attribute("problem_status_id",''ab'')
if ret_val==false
2007 Nov 21
3
update_attribute weirdness in edge
If I am changing a boolean value, no matter what approach I take, I
get the same results:
lets say table "users" has an "enabled" field that is boolean:
user = User.find(1)
user.enabled.toggle
NoMethodError: undefined method `toggle'' for false:FalseClass
user = User.find(1)
toggle(user.enabled)
NoMethodError: undefined method `toggle'' for
2012 Sep 25
0
update_attribute, update_column and update_columns should update readonly attributes
Hi.
I created a pull request some time ago and didn''t get any reaction yet.
https://github.com/rails/rails/pull/7688
Should I do something special or just have a patient and wait?
I''m ready to answer any questions about my commit.
Thanks in advance.
Best regards,
Vadim Pushtaev
--
You received this message because you are subscribed to the Google Groups "Ruby on