Displaying 20 results from an estimated 70 matches similar to: "AGI->Macro w/Agruments"
2003 Sep 25
2
AGI: getting the return code from an exec()'d application?
So I hacked up the Dial app to return a numeric return code instead of
changing contexts based on a number being busy or unanswered. The purpose
for this modified dial app, which I call AGIDial, is to help me concoct a
"follow-me" type of application. The app returns -1 for a completed call,
0 for unanswered, or 1 for busy.
Well, I hooked the thing up to an AGI script that uses perl and
2005 Oct 07
1
function agruments
All,
When defining the arguments of a function, is it possible to supply a function as
an argument? If so, how is this introduced into the function code as well?
For example, in the body of the function I have:
result = function(x)
and I'd like to supply either function.1 or function.2.
Please reply directly to afshar@miami.edu
Thanks!
Dave
[[alternative HTML version deleted]]
2010 Sep 02
1
[LLVMdev] Problems with Passing agrument to a Pass
Hi,
I have a very naive question. I've written a pass that gets an argument from
the command line with the following code:
static cl::opt<int> LineNum("line-number", cl::Hidden,
cl::Required,cl::desc("line of variable being observed"));
Now when I run it, it seems like it cant see that I've put in an argument on
the command line:
opt -load
2011 Jan 23
1
Passing formula as an agrument
Hi,
I had a function that looked like:
diff <- lm(x ~ y + z)
How can I pass the argument to the 'lm' function on the fly? E.g., if I pass it
in as a string (e.g. "x ~ y + z"), then the lm function treats it as a string
and not a proper argument.
many thanks
[[alternative HTML version deleted]]
2005 Jul 08
1
Serial port DTMF Caller-ID reciever /w scripts for X100P/X101P/Clones....
Since the X100P/X101P/Clone cards does not work in all countries that
use DTMF based
Caller-ID systems, I've developed a hardware that you connect to a
serial port and the PSTN.
You then run a perl script "cid_logger.pl" as a daemon, and modify
extensions.conf to call
an agi script whenever a call comes in, and if it's on the X100 card it
will get the caller id
information
2012 Oct 02
0
[LLVMdev] [RFC] OpenMP Representation in LLVM IR
Hi David,
Thank you for your comments.
Basically, I agree with Hal's answers -- nothing substantial to add to
what he already said.
As for
> Again, I only skimmed the document, but I was left with the question,
> "why not just make calls to runtime routines?"
Granted, this is the easiest and cheapest way to support OpenMP...
that throws away the whole notion of
2012 Oct 02
2
[LLVMdev] [RFC] OpenMP Representation in LLVM IR
Hal Finkel <hfinkel at anl.gov> writes:
Hi Hal,
> As you may know, this is the third such proposal over the past two
> months, one by me
> (http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-August/052472.html)
This link seems to be broken. I missed your earlier proposal and would
like to read it. As with this proposal, I fear any direct
parallelization support in LLVM is going to
2012 Dec 16
3
how to handle NA values in aggregate()
Dear All:
I am trying to calculate four columns' means in a dataframe like this:
FID MID IID EW_INCU EW_17.5 EMW EEratio
1 4621 TWF2H5 45.26 NA 15.61 NA
1 4621 TWF2H6 48.02 44.09 13.41 0.3041506
2 4630 TWF2H19 51.44 47.81 NA NA
2 4631 TWF2H21 NA 52.72 16.70
2009 Aug 10
1
getmail and Dovecot LDA deliver
Hello,
my first post in this list. Hope it's the right place.:-)
I'm having a problem running getmail together with Dovecot LDA for virtual
users. To achive this I let getmail run under the user that owns the virtual
email accounts-root. The problem is that getmail is running under the user
vmail and therefore the emails received will be put into vmail's mailbox.
But the emails
2001 Oct 26
0
cut - suggestion
I often use cut in order to produce quick tabulations of continuous data.
But if you choose "sensibe cotpoints as in:
> z <- rnorm(100)
> table( cut( z, breaks=seq(-1,1,0.5) ),
+ cut( z, breaks=c(-100,0,100) ) )
(-100,0] (0,100]
(-1,-0.5] 18 0
(-0.5,0] 19 0
(0,0.5] 0 17
(0.5,1] 0 19
you get labels
2008 Sep 05
1
controlling lattice plot ticks with relation="free"
How do you persuade lattice to draw tick marks on both the left and right
side of the y-axis, when relation="free" in the scales component?
#Ticks appear on both sides
histogram(~height|voice.part, data=singer)
##Ticks only on left
histogram(~height|voice.part, data=singer,
scales=list(y=list(relation="free")))
Providing tck as a vector of length 2 doesn't seem to
2007 Feb 20
0
transaction is started before a validation [c/o Rails-Core]
Hi all..
I was going to submit this as a bug...but thought I should learn more
first ...
When #save is called on an ActiveRecord a transaction is started to
catch any potential problems and try and recover from them.
This is cool.
But..
as a result of the Transaction module being mixed in quite late in the
game, the transactions system is one of the *first* things to get
initiated.........is
2009 Jul 14
2
Cluster analysis with missing data
Hi folks,
I tried for the first time hclust. Unfortunately, with missing data in my
data file, it doesn't seem
to work. I found no information about how to consider missing data.
Omission of all missings is not really an option as I would loose to many
cases.
Thanks in advance
Holger
--
View this message in context:
2008 Jan 04
0
[LLVMdev] Extraction of Arguments Passed to a Function
Hi,
I am trying to extract the name of the variables passed as an Argument to a
Function. I am using a runOnFunction Pass.
For example in the following IR respresentation,
define void @foo(i32 %limit) {
entry:
--
--
}
I should be able to walk the IR and get '%limit' as the external variable
passed to the function.
Another question, Is it possible to create a basic symbol table (
2008 Feb 19
1
Matrix inversion
Howdy,
I am trying to invert a matrix for the purposes of least squares. I
have tried a number of things, and the variety of results has me
confused.
1. When I try solve() I get the following:
>Error in solve.default(t(X) %*% X) : system is computationally
singular: reciprocal condition number = 3.76391e-20
2. When I try qr.solve(), I get:
>Error in qr.solve(t(X) %*% X) : singular matrix
2011 Jan 28
1
Problems making subsets with [] or "subset"
Hi,
I'm trying to make a model in order to know wich factors got?s influence in
the intensity of a infection, but just in the individuals who's got this
infection. In my data I've got a variable called "prevalence" with 2 levels:
1.- Infected individual
0.- Non infected
So what i'm trying to do is a subset in a model like this,
2009 Feb 12
0
Released Sieve v0.1.3 and ManageSieve v0.11.3 for Dovecot v1.2.beta1
Hello Dovecot users,
It has been about two months since the last release of the new Sieve
implementation and the ManageSieve service for Dovecot v1.2. Therefore,
this release contains quite a few changes. It adds new sieve features
like the enotify extension and multiscript support. Also, quite a few
(user-reported) bugs were fixed since the last release.
Changelog Sieve v0.1.3:
*
2009 Feb 12
0
Released Sieve v0.1.3 and ManageSieve v0.11.3 for Dovecot v1.2.beta1
Hello Dovecot users,
It has been about two months since the last release of the new Sieve
implementation and the ManageSieve service for Dovecot v1.2. Therefore,
this release contains quite a few changes. It adds new sieve features
like the enotify extension and multiscript support. Also, quite a few
(user-reported) bugs were fixed since the last release.
Changelog Sieve v0.1.3:
*
2007 Oct 02
4
Strange names when creating a data.frame: Difference between <- and =
This is just a curiosity question. Why do the two
different syntaxes for df1 and df2 give such different
results in the names(dfx)?
Thanks
df1 <- data.frame(nas = c("A", "B" , "B" ,"C" ,"B",
"A", "D"),nums = c(3, 2, 1, 1, 2, 3, 7))
df2 <- data.frame(nas <- c("A", "B" ,
2003 Jan 03
3
save bug (PR#2418)
My apologies if these are known -- I'm new to R (moved over from S-Plus).
All on Windows NT GUI, R1.6.1 and associated packages.
1. save(x) gives the following error message:
Error in save(x) : `file' must be non-empty string
According to the save() help file, the empty string is the default.
2. In the file>Display file GUI menu, if you try to display a file that is
in use by