Displaying 20 results from an estimated 24 matches for "testvar".
Did you mean:
testval
2006 Jan 31
4
Sos! "Lines" doesn't add plots to an existing plot...
I am lost:
> plot(testError, col="red")
> lines(testVar, col="black")
Only one plot (the red one) appear on the Window, the black line did not
appear...what's wrong?
Thanks a lot!
[[alternative HTML version deleted]]
2006 Nov 26
1
Patch for optiups to support Zinto D from ONLINE USV-Systeme AG
...cannot find support for Zinto in svn until now.
I found a discussion on this list about the Xanto from ONLINE, but the Zinto
seems to use different commands.
The commands are quite similar to those for Opti-UPS, so I decided not to fork,
but to patch optiups. Where I found differences, I added if(testvar(OPTI_ZINTO)).
As soon as someone adds another device with similar commands, one could decide
how to differentiate within the driver (where to use select-case).
What do you think?
Yours,
Matthias
-------------- next part --------------
Index: data/driver.list
=======================================...
2006 May 17
4
Variable Inheritance - Set in Child, Read by Parent
Here's what I'm doing:
1. I set __FOO=0 in the current context.
2. I use Dial() and the M(testvar) macro call.
3. The macro-testvar can see ${FOO} just fine.
4. the macro-testvar modifies FOO. I tried:
Set(__FOO=1)
Set(_FOO=1)
Set(FOO=1)
5. When the Dial()ed call hangs up, and the original context continues,
FOO is still 0. I want it to c...
2006 Sep 09
5
"locals" in render partial
Hi all,
I''m getting an error and I really don''t know why, because I seem to be
doing everything well..I pass "testvar" as a variable to render partial:
<%= render(:partial => "main/categorysmallitem", :collection =>
group_of_four, :locals => {:testvar=>"AA"})%>
But then, when I try to use testvar inside the partial, it doesn''t
recognize it:
<%= testvar %&...
2007 Nov 21
2
I''m lost on exec
Hi
Can anyone tell me what''s wrong with this one.
Sorry I''m new and I just want to print some message to the the puppet
log on the client side.
---------------------------------------------------
$testvar = "Hello world!"
class mytest {
exec { "/bin/echo $testvar" }
}
I keep getting:
err: Could not parse; using old configuration: Syntax error at ''}'';
expected ''}'' at /etc/puppet/manifests/psi_gfa/psi_gfa_all.pp:7
2014 Jun 13
1
Extracting data from density plots
I have a dataframe
df
with 3 columns. Details
of df are
as follows
> summary(df)
Date TestVar type
Min. :2002-05-10 00:00:00 Min. :-3.8531 Bottom: 313
1st Qu.:2005-05-09 12:00:00 1st Qu.:-0.7773 Other :2501
Median :2008-05-07 00:00:00 Median : 0.2482 Top : 313
Mean :2008-05-07 00:00:00 Mean : 0.1980
3rd Qu.:2011-05-05 12:00:00 3rd Qu.: 1.2250
Max....
2008 Aug 26
1
environments
Hi there,
I try to understand the usage of environments but I'm not sure if I get it. I
wrote a test script like this:
testenv <- new.env(environment())
myfun <- function(x) {
print(testvar)
testenv$testvar_2 <- 20
}
environment(myfun) <- testenv
testenv$testvar <- 10
myfun("hello")
ls(envir = testenv)
Now, I was wondering if there is any way to create new variables in my
environment without this "testenv$...". I know that I can access it that way if...
2007 Sep 22
1
delta copies
...now tar, neither
working...Does rsync require certain compile options perhaps that I am
missing?
esmtp# ls -la test*
test:
total 1268356
drwxr-xr-x 2 root wheel 512 Sep 22 18:46 .
drwxr-xr-x 11 root wheel 512 Sep 22 18:46 ..
-rw-r--r-- 1 root wheel 1298128896 Sep 22 18:47 testvar.tar
test2:
total 1268388
drwxr-xr-x 2 root wheel 512 Sep 22 18:49 .
drwxr-xr-x 11 root wheel 512 Sep 22 18:46 ..
-rw-r--r-- 1 root wheel 1298163200 Sep 22 18:49 testvar.tar
esmtp# rsync -az --progress --stats test/ test2/
building file list ...
2 files to consider
./
test...
2004 Jun 23
3
help needed with read()
Hi,
Greatly appreciate if some one help me with the application read().
asterisk*CLI> show application read
asterisk*CLI>
-= Info about application 'Read' =-
[Synopsis]:
Read a variable
[Description]:
Read(variable[|filename]): Reads a '#' terminated string of digits from
the user, optionally playing a given filename first. Returns -1 on hangup
or
error and 0
2006 Sep 22
1
Stack corruption in newhidups.c
...*!
* SHUT is only supported by MGE UPS SYSTEMS units
* So we don't need the regex mechanism
*/
int r;
char *regex_array[5];
^^^^^^^^^^^^^^^ => should be 6
/* enforce use of the "vendorid" option if "generic" is given */
if (testvar("generic") && getval("vendorid")==NULL) {
fatalx("must specify \"vendorid\" when using \"generic\"");
}
/* process the UPS selection options */
regex_array[0] = getval("vendorid");
regex_array[1] =...
2011 Dec 17
1
[nut-commits] svn commit r3363 - in trunk: data docs/man drivers
...7 08:53:41 2011
> New Revision: 3363
> URL: http://trac.networkupstools.org/projects/nut/changeset/3363
>
> Log:
> Try to fix language ID support for USB units from LDLC, Dynamix and no names in blazer_usb (reworked patch, from Brian R. Smith and Aur?lien Grenotton)
...
> + if (testvar("langid_fix")) {
> + /* Hardcode lang to 0x4095 */
> + ret = usb_get_string(udev, command[i].index, 0x4095, buf, buflen);
> + }
Arnaud,
Could this code use the langid_fix value which is set in upsdrv_initups() instead of 0x4095? Or am I misunderstanding how this is supp...
2013 Jan 11
0
Error with looping through a list of strings as variables
...es and original values: ____
correl <- paste(cor(filtered$h,predicted))
Correlation <-paste(
"MSE:",mse,
"Rsq:",rsq,
"Correlation between fitted values and original values:",correl)
print(Correlation)
## combine results for output _______________________________
TestVar <- paste("Dependent =",h, sep=" ")
namCL <- paste("schtyp =",i, sep=" ")
namSE <- paste("female =",k, sep=" ")
assign(namCL, 1:i)
assign(namSE, 1:k)
results <- rbind(TestVar, namCL, namSE, mse, rsq, correl)
## Writing data to...
2016 Oct 03
2
Synchronous dialplan execution for feedback while processing speech recognition and voice synth, for example.
I've got an agi that recognises speech (via Google) and another that turns
text into speech (tts) (via Microsoft Translate).
Both are web APIs, both called via seperate python AGIs.
I've googled and I'm probably missing something pretty newbie 101 here, but
is there any way, or fiddle, that I can play some audio to let the caller
know that their weather forecast is being fetched,
2006 Jan 27
0
[PATCH] fentonups patch to make it work with some powercom ups's
...void set_powercom_lines (void)
+{
+// straced from powercom's upsmon
+//ioctl(4, TIOCMSET, [TIOCM_DTR|0x4000]) = 0
+
+ int dtr_bit = TIOCM_DTR|0x4000;
+ ioctl(upsfd, TIOCMSET, &dtr_bit);
+}
+
void upsdrv_initinfo(void)
{
int modelnum, i, ret;
char temp[256], model[32], *raw;
+ if (testvar("powercom")) {
+ set_powercom_lines();
+// straced from powercom's upsmon (reset?)
+ ret = ser_send(upsfd, "%c%c%c%c%c\r", 1, 2, 2, 3, 5);
+ ret = ser_get_line(upsfd, temp, sizeof(temp), ENDCHAR, "",
+ SER_WAIT_SEC, SER_WAIT_USEC);
+ }
raw = get_id(...
2003 Jan 17
0
Configure error: cant find test code
...ck. I tried extracting the source on my RH6.1 server (already running an old copy of Samba) did a ./configure and it worked perfectly ;-\
Here is the last few lines of config.log (I tried submiting this before with the complete text but I must have been over some size limit)
int main() {
uint32 testvar;
; return 0; }
configure:10699: checking for conflicting AUTH_ERROR define in rpc/rpc.h
configure:10719: gcc -c -O -O2 -march=i386 -mcpu=i686 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE conftest.c 1>&5
configure:10740: checking for test routines
configure:10749: gcc -o co...
2011 Jan 25
1
[RFC] Updates to ACP smart driver
This patch introduces a handful of new options, I mentioned earlier in:
http://www.mail-archive.com/nut-upsdev at lists.alioth.debian.org/msg02088.html
See the large commit message in the follow-up for the details and rationale.
I realize it's a bit larger diff - so if it's required I can split it into few
smaller ones.
Michal Soltys (1):
APC smart driver update and new features.
2012 Feb 10
7
Hiera data unusable in a class with an array parameter
Given the following hiera hash:
common.yaml:
---
*allowed_ips:*
* "First IP": 1.2.3.4*
* "Second IP": 5.6.7.8*
and the module:
*class iptables ($role) {*
* file {/tmp/test:*
* content => template(iptables/test.erb)*
* }*
*}*
with the corresponding template test.erb:
*<% role.each do |role| -%>
*
* code*
*<% end %>*
*<%
2011 Feb 07
4
[PATCH/RFC v2 0/3] Updates to ACP smart driver
This is 2nd version of the earlier patch featuring a few new features
and fixes to the apcsmart driver, following the remarks in:
http://www.mail-archive.com/nut-upsdev at lists.alioth.debian.org/msg02294.html
Major changes from v1:
- handle battery.charge and battery.runtime checks at main.c level
- handle "immutable but writable" conflict gracefully at driver level
-
2020 Sep 05
1
Some questions about NUT driver development
Hello,
I am developing a new NUT driver for brazilian UPS brand "Ragtech" by
reverse engeneering. I have never been involved in NUT driver development,
so I wish to ask some basic questions. Any help will be much appreciated!
1. Is there a mandatory C code style? I mean, any strong recommendation? If
there are none, I prefer to keep mine.
2. What are the purposes of "instant
2006 Sep 18
1
BSD Auth: set child environment variables requested by login script [PATCH]
...swd/login.c 14 Apr 2005 18:33:42 -0000 1.8
+++ libexec/login_passwd/login.c 18 Sep 2006 10:32:00 -0000
@@ -107,6 +107,9 @@
exit(1);
}
+ fprintf(back, BI_SETENV " X_BSD_AUTH_SOME_RESOURCE %d\n", 1024);
+ fprintf(back, BI_SETENV " TESTVAR %s\n", "bar");
+
/*
* Read password, either as from the terminal or if the
* response mode is active from the caller program.
######################################
Solution 1:
######################################
This is a minimal fix that...