Displaying 20 results from an estimated 58 matches for "new_values".
Did you mean:
new_value
2020 Jul 21
0
[PATCH v9 68/84] KVM: introspection: add KVMI_EVENT_XSETBV
From: Mihai Don?u <mdontu at bitdefender.com>
This event is sent when an extended control register XCR is going to
be changed.
Signed-off-by: Mihai Don?u <mdontu at bitdefender.com>
Co-developed-by: Nicu?or C??u <ncitu at bitdefender.com>
Signed-off-by: Nicu?or C??u <ncitu at bitdefender.com>
Signed-off-by: Adalbert Laz?r <alazar at bitdefender.com>
---
2006 Sep 22
1
url_for params
Hi,
url_for has a nice way of using the current ''params'' object to fill in default
parameters in a route. For example,
map.connect '':controller/:action/:id/''
with <%= url_for :action => ''my_action'' %> will redirect to the current
controller. All very good.
However, I sometimes want a url_for() which includes current parameters
2006 Mar 02
3
merge with symbol problem
Hi,
It''s a little bit annoying to me, I can''t understand the following:
If I merge a value to the params hash with:
params => params.merge :value => new_value
the params[:value] doesn''t change, but if I use string instead of a
symbol like:
params => params.merge "value" => new_value
it works.
Somebody plz tell me why...
Abbath
2020 Feb 07
0
[RFC PATCH v7 60/78] KVM: introspection: add KVMI_VCPU_CONTROL_CR and KVMI_EVENT_CR
From: Mihai Don?u <mdontu at bitdefender.com>
Using the KVMI_VCPU_CONTROL_CR command, the introspection tool subscribes
to KVMI_EVENT_CR events that will be sent when CR{0,3,4} is going to
be changed.
Signed-off-by: Mihai Don?u <mdontu at bitdefender.com>
Co-developed-by: Adalbert Laz?r <alazar at bitdefender.com>
Signed-off-by: Adalbert Laz?r <alazar at bitdefender.com>
2007 Jun 26
1
ActiveRecord: Attribute Setter for belongs_to relation attribute
Hi,
I m trying to link into the process of setting an belongs_to attribute
in my model. Unfortunetly, it does not seem to be as easy as for
"normal" attributes.
I ve tried the following:
class Treatment < ActiveRecord::Base
belongs_to :drug
def drug=(new_value)
''my stuff
super new_value
end
However, that does not work. Ive also tried self[:drug] =
2018 Apr 11
1
[PATCH] v2v: linux: correctly update resume=/dev/device entries (RHBZ#1532224)
When updating the device names to the new names, handle GRUB_CMDLINE
entries (typically in grub2 configuration files) correctly: loop over
the whole configuration value, and replace each occurrency of
resume=/dev/device found.
The actual code is moved away from replace_if_device, since this
function now does only the actual replacement of the device string.
---
v2v/convert_linux.ml | 38
2018 Apr 30
0
[PATCH 3/4] common/qemuopts: use the old pointer as realloc pointer
...ew_options = realloc (qopts->options,
qopts->nr_alloc * sizeof (struct qopt));
if (new_options == NULL)
return NULL;
@@ -421,8 +420,7 @@ qemuopts_append_arg_list (struct qemuopts *qopts, const char *value)
if (value_copy == NULL)
return -1;
- new_values = qopt->values;
- new_values = realloc (new_values, (len+2) * sizeof (char *));
+ new_values = realloc (qopt->values, (len+2) * sizeof (char *));
if (new_values == NULL) {
free (value_copy);
return -1;
--
2.14.3
2008 Jul 23
3
Validation method vs. After Save & Rollback
Hey Guys,
Again, I am just learning Rails, so I am asking advice here.
I have a model called Company which has many Owners. The Owners model
indicates the name of the owner and their share (as a percentage) of
the company. The total shares for any one company can not be more than
100%.
So if I have 10 owners each with 10% of the company and I update one
of the owners and set their share to 11%,
2009 Jan 09
1
Calculating p-values from your own distribution as an array
Hi -
If I have a hypothetical distribution as an array
distribution<-c(0,1,2,3,4,5,6,7,8,9)
and I want to find the probability there is a value smaller than a new
value.
new_value<-4
(such that I'd get this type of output)
new_value p-value
4 0.5
3.4 0.4
3 0.4
0 0.1
-1 0.0
Thanks for the help, I bet this is really easy... :/
Stephen
--
The Wellcome Trust Sanger Institute is
2019 Aug 09
0
[RFC PATCH v6 55/92] kvm: introspection: add KVMI_CONTROL_MSR and KVMI_EVENT_MSR
From: Mihai Don?u <mdontu at bitdefender.com>
The KVMI_CONTROL_MSR is used to enable/disable introspection for a
specific MSR. The KVMI_EVENT_MSR is send when the tracked MSR is going
to be changed. The introspection tool can respond by allowing the guest
to continue with normal execution or by discarding the change.
This is meant to prevent malicious changes to MSR-s
such as
2009 Nov 30
6
rails 2.2.3 dirty.rb field_changed? method throwing arg error on creating an obj
I have a new model I''ve just built. It''s associated with another model
via has_many. I''m trying to create one of these obj''s for the first
time and I keep getting an Argument Error as follows:
ArgumentError (wrong number of arguments (3 for 0)):
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.3/lib/
active_record/dirty.rb:135:in `field_changed?''
2020 Feb 07
0
[RFC PATCH v7 69/78] KVM: introspection: add KVMI_VCPU_CONTROL_MSR and KVMI_EVENT_MSR
From: Mihai Don?u <mdontu at bitdefender.com>
This command is used to enable/disable introspection for a specific
MSR. The KVMI_EVENT_MSR event is send when the tracked MSR is going to
be changed. The introspection tool can respond by allowing the guest to
continue with normal execution or by discarding the change.
This is meant to prevent malicious changes to MSRs
such as
2004 Jul 14
1
New dynamic window patch (with limits)
As before, it is described on our website. This should apply fairly
cleanly to both portable and openbsd ssh.
http://www.psc.edu/networking/hpn-ssh/
Only in openssh-3.8.1p1-dynwindow: Makefile
diff -u openssh-3.8.1p1/buffer.c openssh-3.8.1p1-dynwindow/buffer.c
--- openssh-3.8.1p1/buffer.c 2003-11-21 07:56:47.000000000 -0500
+++ openssh-3.8.1p1-dynwindow/buffer.c 2004-07-12 07:49:29.000000000
2009 Jun 06
2
expire-tool --test: timestamps
$ /usr/sbin/dovecot --exec-mail ext expire-tool --test
Info: Trash: timestamp 1243963680 (Tue Jun 2 19:28:00 2009
) -> 1244307774 (Tue Jun 2 19:28:00 2009
)
Both human readable timestamps are equal as ctime() returns a pointer
to a static buffer. In addition there are some newline characters added
by ctime(). The following patch is a try to fix this for 1.2.rc5.
--- expire-tool.c.orig
2020 Jul 21
0
[PATCH v9 75/84] KVM: introspection: add KVMI_VCPU_CONTROL_MSR and KVMI_EVENT_MSR
From: Mihai Don?u <mdontu at bitdefender.com>
This command is used to enable/disable introspection for a specific
MSR. The KVMI_EVENT_MSR event is sent when the tracked MSR is going to
be changed. The introspection tool can respond by allowing the guest to
continue with normal execution or by discarding the change.
This is meant to prevent malicious changes to MSRs
such as
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
Hi,
Some time in the last few weeks I noticed my cmake build of
svn-trunk on powerpc-darwin8 start to warn about atomics being unavailable
and thus building thread-unsafe. I just looked into it and found an easy
solution, using the atomic functions in <libkern/OSAtomic.h> in
/usr/include. The attached patch does this and also modifies the cmake
and autoconf tests to 'pass'
2006 Apr 17
5
Finding out updated fields
Hi,
When we update a record via an update form, is there an easy way to find
out the fields that have been changed. If the update is successful, i
want to display:
The following fields have been changed:
field-name = new-value
...
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2008 May 21
2
Search a string and modify it in a .txt file
Hi there,
I use R and I would like to be able to modify a file .txt "init_file" like this one :
# ---------------------------------------------------------------------------- #
# Parameters A
# ---------------------------------------------------------------------------- #
# Parameter 1
PA1 = 15
# Parameter 2
PA2 = 3
# Parameter 3
PA3 = 2
#
2012 Apr 13
2
getting the value from previous row
Hi
I've a dataset with record A = 100,200,300,400...
There will be a parameter n. say n=10 means i have add 10% of previous
value to the current row
current_Val New_value
100 100
200 210 (200+10)
300 330( 300 +20+10)
400 460 (400+30+20+10)
I'm using a loop
But i want takes a long time. Please help
-----
2007 May 10
0
Counterintuitive behavior in ActiveRecord I was implementing dirty checking for an application, and I found something that is a little counterintuitive. Let me start with a quick quiz: bob=User.find(1) alice=User.find(2) trip=Trip.new trip.driver=bob old_
I was implementing dirty checking for an application, and I found
something that is a little counterintuitive. Let me start with a
quick quiz:
bob=User.find(1)
alice=User.find(2)
trip=Trip.new
trip.driver=bob
old_driver=trip.driver
trip.driver=alice
In this example, who is old_driver? If you guessed Alice, you''re right.
Inside associations.rb, the mutator is defined as: