Displaying 20 results from an estimated 45 matches for "somevalues".
Did you mean:
somevalue
2006 Sep 21
0
Call to session[:somevalue] returns the error "Symbol as array index"
I hope you can help me with this
In a controller I make a call to session[:user_id] in order to retrieve
the value that has previously been assigned to the session object by a
login method.
The result is the error "Symbol as array index", so rails for some
reason just thinks session is any other array.
I have tried prefixing the call with @request so that it goes:
somevariable =
2005 Feb 24
3
Inheriting variables
I'm trying to set a channel variable and make it available to another
channel:
I thought that if I SetVar(_SomeVariable=SomeValue) or
SetVar(__SomeVariable=SomeValue) then SomeVariable would be available in
the destination channel.
However __SomeVariable, _SomeVariable and SomeVariable are all blank.
The scenario:
Agents logon to the queue using callbacklogin. From what I can gather
2012 Jun 08
0
Working with optim in C
...i]/2.0))/2.0; }
for(int i = 0; i < n; i++) { sum += (par[i]*log(lambda[i]) +
(1-par[i]*log(1-lambda[i]))); }
return sum;
}
void optimgr(int n, double *par, double *gr, void *ex)
{
for(int i = 0; i < n; i++) { gr[i] = log(par[i]) - log(1-par[i]); }
}
void Test(SEXP SomeValues)
{
PROTECT(SomeValues = AS_NUMERIC(SomeValues));
double * CValues = NUMERIC_POINTER(SomeValues);
void * optEx, *grEx, *overallEx;
int mask = -1, fncount, grcount, failed;
double *Fmax, *gradients;
int size = sizeof(CValues)/sizeof(double);...
2010 May 14
2
Subscripting a matrix-like object
I have an S3 class called "tis" (Time Indexed Series) which may or may
not have multiple columns. I have a function "[<-.tis" that I've
reproduced below.
My question is this: inside of "[<-.tis", how can I distinguish between
calls of the form
x[i] <- someValue
and
x[i,] <- someValue ?
In either case, nargs() is 3, and looking at the values
2010 May 14
2
Subscripting a matrix-like object
I have an S3 class called "tis" (Time Indexed Series) which may or may
not have multiple columns. I have a function "[<-.tis" that I've
reproduced below.
My question is this: inside of "[<-.tis", how can I distinguish between
calls of the form
x[i] <- someValue
and
x[i,] <- someValue ?
In either case, nargs() is 3, and looking at the values
2018 Jun 08
3
rpmbuild --define | some rpm sorcerer around?
On 08/06/18 19:38, Phil Perry wrote:
> On 08/06/18 15:54, lejeczek wrote:
>> hi
>>
>> how do you pass vars to rpmbuild for definition? eg
>>
>> rpmbuild --define \'"${_definition2}"\'
>>
>> I've been fiddling with ways to escape, but none is
>> fricking working..
>> I mean, rpmbuild rushes to work(no errors nor
2019 Jun 17
2
[InstCombine] addrspacecast assumed associative with gep
> What do you mean exactly by "behave differently on the other side of the cast”? Do you have a concrete example?
I was hesitant to say only in that it is probably an "abuse of mechanics" and definitely playing with fire, _however_ the target I'm working on has extensive bit operations for a subset of memory, including atomic test-and-set, etc. It's convenient to be
2018 Sep 28
2
Bug in conditionals to assign values to variables?
Hi,
According to https://wiki2.dovecot.org/Variables you could use
conditionals to assign values to a varible. The syntax is:
%{if;value1;operator;value2;value-if-true;value-if-false}
where any of the fields can refer to another field using %v or %{value}
syntax.
The problem is that when I use a config like:
user_attrs = ...,=relpath=%{if;%u;eq;somevalue;valuetrue;valuefalse}
it works
2006 Jun 07
19
Quad T1 Card
Ok... I am reluctant to ask this question as I believe that it may be
like asking what someones favorite linux distribution is... but I need
to make an informed decision.
We are getting ready to upgrade from a TE210P to a quad T1 card with
echo cancellation. I am trying to decide between the Sangoma card and
the Digium card. I need this to have great quality and I need it to
work well.
I would
2018 Jun 08
2
rpmbuild --define | some rpm sorcerer around?
hi
how do you pass vars to rpmbuild for definition? eg
rpmbuild --define \'"${_definition2}"\'
I've been fiddling with ways to escape, but none is fricking working..
I mean, rpmbuild rushes to work(no errors nor failure) so if you try
just the command line do not believe it, because later as it executes
%if you will see process does not see these definitions.
many
2010 Aug 31
1
Running System() after call completion, not in 'h'?
Greetings all-
I have some dialplan code on an Asterisk 1.2.x box that basically dials a call, then after call completion, runs a command via System(). However, I'm finding that roughly 5% of the time, the System() command never executes and seems to be on specific destinations. Simplified/paraphrased example:
exten => 1,1,Set(VARIABLE=SOMEVALUE)
exten =>
2008 Apr 15
2
Asking for help passing variables with an observe_field
Hi, I have the following observe field:
<%= observe_field :session_treatment, :url => { :action =>
''retrieve_rate'' }, :with => ''treatment'' %>
This passes on the ''treatment'' variable to the action, but I''d like to
pass another variable and I''m having a hard time figuring out how to
write it. Any help would be
2016 Jul 04
2
Simple program fails to compile depending on target os
Hi *,
in the process of improving the ios experience with ghc, I ran into the following issue:
the produced llvm code[1] compiles for `armv7-apple-darwin`, unless optimization level is 0,
however it fails to compile at all for `armv7-apple-ios`.
I was able to reduce the produced code, while retaining the compilation issue on `armv7-apple-ios`
to the following sample case:
—————————————————————
2010 Aug 02
2
[LLVMdev] indirectbr and phi instructions
Hi,
How does the requirement that phi instructions have one value per
predecessor basic block interact with indirectbr instructions? For
instance, take the following code:
L1:
br i1 %somevalue, label %L2, label %L3
L2:
%ret1 = i8* blockaddress(@myfunction, %L5)
br label %L4
L3:
%ret2 = i8* blockaddress(@myfunction, %L6)
br label %L4
L4:
%ret = phi i8* [%ret1, L2], [%ret2, L3]
2011 May 02
2
INSERT OR UPDATE
I'm trying to insert rows of a data.frame into a database table, or update where the key fields of a record already exist in the table. I've come up with a possible solution below, but would like to hear if anyone has a better solution.
# The problem demonstrated:
# Create a data.frame with test values
library(RODBC)
tbl <- data.frame(
key1 = rep(1:3, each = 2),
key2 =
2008 Feb 22
2
[LLVMdev] Calling functions
Hello!
I'm trying LLVM for generating code and I found something I cannot figure out or find in the documentation:
I'm doing something like this to call "sin" from std:
std::vector<const Type*> params;
params.push_back( Type::FloatTy );
FunctionType *FT = FunctionType::get( Type::FloatTy, params, false);
Function *F = new Function( FT, Function::ExternalLinkage,
2010 Jan 08
7
input form fields not in the #<WWW::Mechanize::Form array
Hi
This may be a dumb question with an obvious answer.
It would seem that an input form field identified with an ''id'' qualifier
and not with a ''name'' qualifier is not recognised by Mechanize - at
least it isn''t in the form field list.
Is there any way of getting at these elements or am I, as I suspect,
fresh out of luck. But you never know ...
2005 Feb 16
3
real and complex vectors
The following caught me off-guard:
R> z <- 1i + 1:10
R> z <- Re(z)
R> z
[1] 1 2 3 4 5 6 7 8 9 10
as expected. But look:
R> z <- 1i + 1:10
R> make.real <- abs(z) < 1000
R> z[make.real] <- Re(z[make.real])
R> z
[1] 1+0i 2+0i 3+0i 4+0i 5+0i 6+0i 7+0i 8+0i 9+0i 10+0i
R>
didn't make z a real vector, which is what I wanted.
2007 Apr 17
3
[LLVMdev] Regalloc Refactoring
Evan Cheng wrote:
> While I agree spill cost computation does not belong in coalescer, I
> am not sure if it should go into a separate pass. To me, spill cost
> formulas should be register allocator specific. Perhaps it ought to
> belong to a generic register allocator class. Each derivative
> allocator is responsible for overriding it and calling it if it deems
>
2019 Jun 11
3
[InstCombine] addrspacecast assumed associative with gep
The following combine(-enabling transformation) makes me
uncomfortable:
gep(addrspacecast(gep p0) to p1)
addrspacecast(gep(gep p0)) to p1
It's applied at visitAddrSpaceCast in InstCombineCasts.cpp.
Before this, I'd always assumed address spaces were very much "user
domain". Datalayout even supports marking a space as "non-integral",
to designate that manipulation as