Displaying 16 results from an estimated 16 matches for "somevariable".
2004 Jul 08
3
How to pass strings to functions? [once once more, now With content I hope...]
Dear expeRts,
I fail to succesfully pass strings to functions. It comes down to the
observation that
> plot(someVariable,anotherVariable)
works fine, but
> x <- "someVariable"
> y <- "anotherVariable"
> plot(x,y)
does not.
Does this have something to do with the returned value of x being
/"someVariable"/ and not /someVariable/, i.e. without the quotation
marks? Is...
2007 Sep 26
2
How to 5ubscribe with modules
Ok.. munging the tag below to get pas the agressive mailbot
administrivia filter.
I have a manifest the following:
module::foo{"$someVariable": param1=>"x" }
modul::bar{"data":
5ubscribe => [Module::Foo["$someVariable"]]
}
The only way to get past the parsing seems to be to do one of the
following:
5ubscribe => [Foo["$someVariable"]]...
2008 Feb 29
1
Optional data argument for a function
...entation of ?eval, but I just can't quite figure out how to make this work.
So, for a simple example, suppose I want to do this with the following function:
dosomething <- function(x, data) {
temp <- x^2 + 5
return(temp)
}
How does the function need to be changed, so that dosomething(somevariable, data=somedataframe) will find somevariable within the dataframe somedataframe and if dosomething(somevariable) is called, the function should find somevariable in the parent frame (or anywhere else in the search path)?
Thanks for any help!
--
Wolfgang Viechtbauer
?Department of Methodology and...
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)...
2018 Jun 08
3
rpmbuild --define | some rpm sorcerer around?
...t; many thanks, 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/cent...
2009 Mar 27
1
Strange warning message
Can anyone give me any idea on where to start looking for this ? 1.4
svn (ish) It has appeared twice in the last hour on a system that gets
numerous inbound calls to the same number
TIA
Julian
[Mar 27 17:21:07] WARNING[3239]: ast_expr2.fl:407 ast_yyerror:
ast_yyerror(): syntax error: syntax error, unexpected '=', expecting
$end; Input:
= 2
^
[Mar 27 17:21:07] WARNING[3239]:
2011 Jul 02
8
err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"
I''m running Puppet 2.7.1 on the master as well as the agent and just
received a new error which doesn''t actually reference a module or a file, so
I''m somewhat stuck as to how to debug this. Any pointers?
The error is err: Could not retrieve catalog from remote server: Could not
intern from pson: Could not convert from pson: Could not find relationship
target
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
2013 Jun 07
0
[Rcpp-devel] Setting the R random seed from Rcpp
...; You can do something like this (i'm on my phone, so you might have to change it):
>
> Environment g = Environment::global_env() ;
> Environment::Binding RandomSeed = g[".Random.seed"] ;
>
> You get the current value of the binding like this:
>
> NumericVector someVariable = RandomSeed ;
>
> And then when you want to set the variable: you just do :
>
> RandomSeed = someVariable ;
>
> The Environment::Binding class acts a a proxy class.
>
> Romain
>
>
> Le 7 juin 2013 ? 16:22, Matteo Fasiolo <matteo.fasiolo at gmail.com> a...
2004 Dec 21
1
Call routing based on remote ip address.
...n the
easily spoofable caller id.
Especially, allowing only certain ips or networks to enter a specific
context in the dial plan is apparently not possible, at least in the
h323 world. Don't know yet about sip or aix, but I guess it's the same
since the extension syntax xyz => extension/somevariable limits
routing decisions to built in variables, where ip related info is
simply missing, at least as far as I can see (you are wholeheartedly
invited to prove me wrong).
Question hence: did anybody tackle those issues anyway, maybe on code
level (patch/extra module)? Are plans underway to fix that...
2006 Jan 18
4
Ruby "htmlentities" replacement: code review please!
Hi Railers,
For some time now I''ve been looking for a decent Rails equivalent of PHP''s
"htmlentities" command, because ERB''s html_escape (or more commonly called as
just "h", eg. <%=h @somevariable %> ) just doesn''t go far enough for me.
Back in PHP land, I actually had an extended version of the htmlentities
command to deal with all kinds of crazy characters that appear if you copy
and paste into a CMS from Word. So anyway, given the apparent lack of a
function to do this in...
2018 Jun 08
0
rpmbuild --define | some rpm sorcerer around?
...e process does not see these definitions.
>
> many thanks, 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
2018 Jun 09
0
rpmbuild --define | some rpm sorcerer around?
...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}
>
>
I assume you are doing this in a bash script?
${_def1} may need to be quoted as it contains a space.
But for that...
2006 Sep 21
0
Call to session[:somevalue] returns the error "Symbol as array index"
...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 = @request.session[:user_id]
But this just gives an error saying that @request is not initialised,
making the call equal to nil.session
Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby...
2018 Jun 11
2
rpmbuild --define | some rpm sorcerer around?
...ne 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}
>>
>>
>
> I assume you are doing this in a bash script?
>
> ${_def1} may need...
2006 Aug 04
5
query across tables
I am trying to do things the proper rails way and use the auto generated
id to refernce other tables. Now I''ve hit a wall in trying to write a
query.
timesheets:
id, employee_id, code_id, ... values
codes:
id, job_number, code
How can I show just the timesheets that belong to a specific job?
I would need to check the codes table and look at the jobs, so I was
thinking of something