search for: new_valu

Displaying 20 results from an estimated 58 matches for "new_valu".

Did you mean: new_val
2020 Jul 21
0
[PATCH v9 68/84] KVM: introspection: add KVMI_EVENT_XSETBV
...if its exception has been injected or overridden. + +7. KVMI_EVENT_XSETBV +-------------------- + +:Architectures: x86 +:Versions: >= 1 +:Actions: CONTINUE, CRASH +:Parameters: + +:: + + struct kvmi_event; + struct kvmi_event_xsetbv { + __u8 xcr; + __u8 padding[7]; + __u64 old_value; + __u64 new_value; + }; + +:Returns: + +:: + + struct kvmi_vcpu_hdr; + struct kvmi_event_reply; + +This event is sent when the extended control register XCR is going +to be changed and the introspection has been enabled for this event +(see *KVMI_VCPU_CONTROL_EVENTS*). + +``kvmi_event``, the extended control regist...
2006 Sep 22
1
url_for params
...direct to the current controller. All very good. However, I sometimes want a url_for() which includes current parameters which aren''t in the route, for example I might want a link to preserve ?order=name in the query string. I''ve been using url_for(params.merge({:new_param => new_value})), but there''s a problem with controllers in modules # params == {:controller => ''sub/controller'', :action => ''action''} url_for params.merge({:new_param => new_value}) # ==> /sub/sub/controller/action?new_param=new_value to fix the probl...
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
...n is used by the introspection tool for its own breakpoints. + +5. KVMI_EVENT_CR +---------------- + +:Architectures: x86 +:Versions: >= 1 +:Actions: CONTINUE, CRASH +:Parameters: + +:: + + struct kvmi_event; + struct kvmi_event_cr { + __u16 cr; + __u16 padding[3]; + __u64 old_value; + __u64 new_value; + }; + +:Returns: + +:: + + struct kvmi_vcpu_hdr; + struct kvmi_event_reply; + struct kvmi_event_cr_reply { + __u64 new_val; + }; + +This event is sent when a control register is going to be changed and the +introspection has been enabled for this event and for this specific +register (see **KVM...
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] = new_value... However, that is also not working. Any ideas? Thanks a lot in advance. -- Volker --~--~---------~--~----~------------~-------~--~----~ You received this message because yo...
2018 Apr 11
1
[PATCH] v2v: linux: correctly update resume=/dev/device entries (RHBZ#1532224)
...ub 1 and part = try PCRE.sub 2 with Not_found -> "" in "/dev/" ^ replace device ^ part @@ -1023,7 +1012,28 @@ let convert (g : G.guestfs) inspect source output rcaps = List.iter ( fun path -> let value = g#aug_get path in - let new_value = replace_if_device path value in + let new_value = + if String.find path "GRUB_CMDLINE" >= 0 then ( + (* Handle grub2 resume=<dev> specially. *) + let rec loop str = + let index = String.find str "resume=" in +...
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
...umming the old value if changed? if changes["share"] # => Changes to a model are stored in the changes array on the instance, the array has 2 value ["from_value", "to_value"] old_value = changes["share"][0].to_f # => Convert To Float new_value = changes["share"][1].to_f new_total_share = company_total_share - old_value + new_value new_total_share > 100.01 else false # validation succeeds end else false # validation succeeds end end It is working for me just fine, but I wanted to know...
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 operated by Genome Research Limited, a charity registered in England with number 1...
2019 Aug 09
0
[RFC PATCH v6 55/92] kvm: introspection: add KVMI_CONTROL_MSR and KVMI_EVENT_MSR
...trospector. The *CONTINUE* action will set the ``new_val``. +7. KVMI_EVENT_MSR +----------------- + +:Architectures: x86 +:Versions: >= 1 +:Actions: CONTINUE, CRASH +:Parameters: + +:: + + struct kvmi_event; + struct kvmi_event_msr { + __u32 msr; + __u32 padding; + __u64 old_value; + __u64 new_value; + }; + +:Returns: + +:: + + struct kvmi_vcpu_hdr; + struct kvmi_event_reply; + struct kvmi_event_msr_reply { + __u64 new_val; + }; + +This event is sent when a model specific register is going to be changed +and the introspection has been enabled for this event and for this specific +register (s...
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
...``write`` is 1 if the descriptor was written, 0 otherwise. + +9. KVMI_EVENT_MSR +----------------- + +:Architectures: x86 +:Versions: >= 1 +:Actions: CONTINUE, CRASH +:Parameters: + +:: + + struct kvmi_event; + struct kvmi_event_msr { + __u32 msr; + __u32 padding; + __u64 old_value; + __u64 new_value; + }; + +:Returns: + +:: + + struct kvmi_vcpu_hdr; + struct kvmi_event_reply; + struct kvmi_event_msr_reply { + __u64 new_val; + }; + +This event is sent when a model specific register is going to be changed +and the introspection has been enabled for this event and for this specific +register (s...
2004 Jul 14
1
New dynamic window patch (with limits)
....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 -0400 @@ -18,6 +18,12 @@ #include "buffer.h" #include "log.h" +void +set_unlimited(Buffer *buffer, int new_value) +{ + buffer->unlimited = new_value; +} + /* Initializes the buffer structure. */ void @@ -30,6 +36,7 @@ buffer->alloc = len; buffer->offset = 0; buffer->end = 0; + buffer->unlimited = 0; } /* Frees any memory used for the buffer. */ @@ -78,7 +85,8 @@ u_int newlen;...
2009 Jun 06
2
expire-tool --test: timestamps
...fix this for 1.2.rc5. --- expire-tool.c.orig 2009-06-06 13:29:31.000000000 +0200 +++ expire-tool.c 2009-06-06 15:17:07.000000000 +0200 @@ -351,9 +351,13 @@ static void expire_run(bool testrun) } else if (!testrun) dict_set(trans, key, new_value); else { - i_info("%s: timestamp %s (%s) -> %s (%s)", - userp, value, ctime(&expire_time), - new_value, ctime(&oldest)); +...
2020 Jul 21
0
[PATCH v9 75/84] KVM: introspection: add KVMI_VCPU_CONTROL_MSR and KVMI_EVENT_MSR
...``write`` is 1 if the descriptor was written, 0 otherwise. + +9. KVMI_EVENT_MSR +----------------- + +:Architectures: x86 +:Versions: >= 1 +:Actions: CONTINUE, CRASH +:Parameters: + +:: + + struct kvmi_event; + struct kvmi_event_msr { + __u32 msr; + __u32 padding; + __u64 old_value; + __u64 new_value; + }; + +:Returns: + +:: + + struct kvmi_vcpu_hdr; + struct kvmi_event_reply; + struct kvmi_event_msr_reply { + __u64 new_val; + }; + +This event is sent when a model specific register is going to be changed +and the introspection has been enabled for this event and for this specific +register (s...
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
...+ OSMemoryBarrier(); +#elif defined(__GNUC__) __sync_synchronize(); -# elif defined(_MSC_VER) +#elif defined(_MSC_VER) MemoryBarrier(); -# else +#else # error No memory fence implementation for your platform! -# endif #endif } @@ -43,6 +53,8 @@ if (result == old_value) *ptr = new_value; return result; +#elif defined(__APPLE__) + return OSAtomicCompareAndSwap32(old_value, new_value, vcast(ptr)); #elif defined(__GNUC__) return __sync_val_compare_and_swap(ptr, old_value, new_value); #elif defined(_MSC_VER) @@ -56,6 +68,8 @@ #if LLVM_HAS_ATOMICS == 0 ++(*ptr); return...
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
...uot;,j,sep="")) } How can I do to search in each config file j created to modify the values of the parameters according to the j-th row of the array? I thought about looking for the lines "'Parameter' = Value" and modify this line in "'Parameter' = New_value" but I don't find any function to know the location of each string in my config_file... I could also use such a function to modify the format of the date to replace the ":" by something which can be used in a Directory/file name. Thanks you for your time and for your future h...
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 ----- Thanks in Advance Arun -- View this message in context: http://r.789695....
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_
...ser.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: define_method("#{reflection.name}=") do |new_value| association = instance_variable_get("@#{reflection.name}") if association.nil? association = association_proxy_class.new(self, reflection) end association.replace(new_value) By re-using the proxy, we get this odd ass...