Displaying 20 results from an estimated 45 matches for "somevalu".
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
the following happens:
1) Incomming...
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
...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 from sys.call()
and match.call() I could not tell them apart. Am I missing something?
"[<-.tis" <- function(x, i, j, ..., value){
tif <- tif(x)
xStart <- start(x)
x <- stripTis(...
2010 May 14
2
Subscripting a matrix-like object
...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 from sys.call()
and match.call() I could not tell them apart. Am I missing something?
"[<-.tis" <- function(x, i, j, ..., value){
tif <- tif(x)
xStart <- start(x)
x <- stripTis(...
2018 Jun 08
3
rpmbuild --define | some rpm sorcerer around?
...s, L
>
> I'm not sure what you are trying to define above.
>
> Normal convention where one wishes to define _foobar as
> "foo" for example would be:
>
> rpmbuild --define '_foobar foo'
>
> or generically
>
> rpmbuild --define 'SomeVariable SomeValue'
>
> Hope that helps
Try to pass bash var to rpmbuild, eg:
$ _def1="_me no"
$ rpmbuild --define ${_def1}
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
2019 Jun 17
2
[InstCombine] addrspacecast assumed associative with gep
...h intrinsic functions (as with much in LLVM), however this removes the opportunity for globally allocating low cost atomic flags.
Modelled as address spaces, p0 and p<bit> would have different CHAR_BITs, of 8 and 1 respectively. This somewhat works as one would expect too, with, ((bit *)&somevalue)[3] producing bit3 of somevalue - at least until the first time you access through a struct or array:
gep(addrspacecast(gep p0, 4) to p<bit>, 3) == (p0 + 4) * 8 + 3
As LLVM optimises this expression to:
addrspacecast(gep p0, 4 + 3) to p<bit>
Producing something entirely different...
2018 Sep 28
2
Bug in conditionals to assign values to variables?
...u 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 without any problem. But when I use:
user_attrs = ...,=relpath=%{if;%{user};eq;somevalue;valuetrue;valuefalse}
then it reports in logs:
Sep 28 14:23:22 myotis60 dovecot: auth: Error:
var_expand_long(if;%{user}) failed: if: requires four or five
parameters, go...
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'?
...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 => 1,n,Dial(SIP/somepeer/1234567980)
exten => 1,n,System(/bin/bash /root/bin/somescript.sh ${VARIABLE}
It almost seems to be related to how fast the destination 'hangs up' and whether or not the dialplan has time to run the System command before jumping to 'h'.
I hav...
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
...float %F1_Arg, float %F2_Arg, float %F3_Arg, float %F4_Arg,
double %D1_Arg, double %D2_Arg) #0
align 4 prefix <{ i32, i32 }> <{ i32 1, i32 37 }> {
%someElem = getelementptr inbounds i32, i32* %Base_Arg, i32 203
%someValue = load i32, i32* %someElem
%somePtr = inttoptr i32 %someValue to void (i32*, i32*, i32*, i32, i32, i32, i32, i32, float, float, float, float, double, double)*
tail call ghccc void %somePtr(i32* %Base_Arg,
i32* %Sp_Arg,
i32* %Hp_Ar...
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]
indirectbr i8* %ret, [label %L5, label %L6]
L5:
%myval = phi i32 [0, %L2], [1, %L3] ; are b...
2011 May 02
2
INSERT OR UPDATE
...eady 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 = rep(LETTERS[1:2], 3),
somevalue = rnorm(6)
)
# Create table in database using the following SQL
CREATE TABLE tbl
(
key1 integer NOT NULL,
key2 character varying(1) NOT NULL,
somevalue double precision,
CONSTRAINT pktbl PRIMARY KEY (key1, key2)
)
# Continue in R
pg <- odbcConnect("testdb")
sqlSave(pg, t...
2008 Feb 22
2
[LLVMdev] Calling functions
...ot;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, "sin", M );
CallInst *CallExternal = new CallInst( F, SomeValue, "external_call", BB );
I can make some calls to functions like glclear() as I'm using opengl:
...
Function *F = new Function( FT, Function::ExternalLinkage, "glclear", M );
...
But if I want to call any function inside a C++ namespace I don't find the way to do i...
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
...ister allocator, one way to do what
you're saying without inheritance is to parameterize the allocator
with a traits class and call into that for the custom routines:
template<class RegallocTraits>
class GCRegAlloc {
void doAlloc() {
...
RegallocTraits::computeSpillCost(someValue);
...
};
};
An alternative to think about during these discussions.
-Dave
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