Displaying 20 results from an estimated 26 matches for "nodelist".
2012 Feb 04
1
combining data structures
...to create a
data structure from elements like
nNode = 2
nn = vector("list",nNode)
nn[[1]] = list(Node = "1", Connect.up = c(NULL), Connect.down = c(2,3))
nn[[2]] = list(Node = "2", Connect.up = c(1), Connect.down = c(4,5))
.... #( and eventually many more nodes)
NodeList = as.data.frame(nn[[1]])
for(i in 2:nNode) {
NodeList = rbind(NodeList,as.data.frame(nn[[i]]))
}
and is trying to create a data frame with many rows and three columns:
Node, Connect.up,Connect.down
in which the Connect.up and Connect.down columns may be single numbers
or vectors of numbers....
2013 Sep 11
4
getting array of hostnames of clients
...a bunch of files in /tmp/ with
distinctive names which contain only the hostname of that puppet client.
I have a fact which is supposed to cat these together and, with luck, turn
them into an array at some time. What I currently have is this:
require ''facter''
Facter.add("nodelist") do
setcode do
path="/tmp"
if File.exists?(path) && File.directory?(path) && ! Dir[path +
''/*''].empty?
output = Facter::Util::Resolution.exec("/bin/cat
/tmp/testnode*").split(''\n'').join('','...
2006 Mar 16
20
help with each
can you please tell me why this is not working? i got the example for how
to use each online and copied it to a t (except i added the if). its
telling me items.each does not exist.
var items = document.getElementsByClassName(''editView'');
if (items.length > 0){
items.each(function (result){
thisid = result.id;
thiskey = thisid.replace(/se_item_/gi, '''');
2010 Oct 01
1
Python XML parsing of domain descriptions?
Does anyone know of a way to parse the libvirt XML into usable python data structures? Ideally, it would be something like foo['domain']['devices']['bridge'][0]['target'] or something of the sort. What I'm looking to accomplish is to figure out which tap interface goes with a specific domain.
I'm not keen on parsing XML to get that mapping, is there a
2017 Sep 10
4
Corosync on a home network
...distributed
corosync.conf:
transport: updu
cluster_name: <set to the same as the domain>
# crypto_cipher: none
# crypto_hash: none
# mcastaddr: 239.255.1.1
# mcastport: 5405
# ttl: 1
The following are unchanged:
version: 2
secauth: off
ringnumber: 0
bindnetaddr: 192.168.1.0
The nodelist is:
---------%<----------------
nodelist {
node {
ring0_addr: 192.168.1.2
nodeid: 1
}
node {
ring0_addr: 192.168.1.51
nodeid: 2
}
node {
ring0_addr: 192.168.1.52
nodeid: 3
}
node {
ring0_addr: 192.168.1.53
nodeid: 4
}
}
--------%<------------------
logging and quorum...
2020 Mar 28
0
[klibc:update-dash] dash: parser: Save/restore here-documents in command substitution
...c
index 8bd3db44..809c6a8a 100644
--- a/usr/dash/parser.c
+++ b/usr/dash/parser.c
@@ -1368,6 +1368,7 @@ parsebackq: {
union node *n;
char *str;
size_t savelen;
+ struct heredoc *saveheredoclist;
int uninitialized_var(saveprompt);
str = NULL;
@@ -1432,6 +1433,9 @@ done:
*nlpp = (struct nodelist *)stalloc(sizeof (struct nodelist));
(*nlpp)->next = NULL;
+ saveheredoclist = heredoclist;
+ heredoclist = NULL;
+
if (oldstyle) {
saveprompt = doprompt;
doprompt = 0;
@@ -1444,17 +1448,18 @@ done:
else {
if (readtoken() != TRP)
synexpect(TRP);
+ setinputstring(nullstr);
+...
2005 Dec 20
9
Performance issues with Prototype
Hi
I''ve tried to use Prototype as a base for few large intranet
applications I''m working on. Unfortunately I encountered some
serious performance problems when working with Internet Explorer.
It''s really sluggish when it comes to DOM operations and Prototype
could really benefit from some small optimizations. I created a
testase to show a difference between my optimized
2008 Mar 25
4
SAXXMLReader
...directory
libxml/SAX2.h was first included from saxreader.c:41
make[2]: [Makefile] Error 1 (ignored)
../../tools/makedep -C. -S../.. -T../.. -I/usr/include/libxml2
-I/usr/include/libxml2 attribute.c cdata.c comment.c docfrag.c domdoc.c
domimpl.c element.c entityref.c factory.c main.c node.c nodelist.c nodemap.c
parseerror.c pi.c queryresult.c regsvr.c saxreader.c schema.c text.c uuid.c
xmldoc.c xmlelem.c version.rc
libxml/SAX2.h: No such file or directory
libxml/SAX2.h was first included from saxreader.c:41
make[2]: *** [depend] Error 1
make[2]: Leaving directory `/home/bill/wine-git/dll...
2010 Oct 29
1
NetWorkSpace from REvolution; Distributed Computing setup questions
...and figured I could at least rule out
a possible cause by setting it up on a linux machine. Ultimately I
would like to get this working in Windows/Cygwin.)
***Section 2***
The function I used to start the sleigh is:
s=sleigh(
+ nwsHost="172.30.xx.xx",
+ nwsPort=8765,
+ launch=sshcmd,
+ nodeList=c("10.85.xxx.xxx"),
+ scriptExec=envcmd,
+ scriptDir="/usr/local/lib/R/site-library/nws/bin",
+ scriptName="RNWSSleighWorker.sh",
+ workingDir='~/tmp/',
+ logDir='~/tmp/',
+ outfile="outfileTest",
+ user="tj")
This function returns...
2005 Nov 24
1
Extended $ function called $$
...recursive calls.
$$.getSubelementsBySelector = function(element,selector){
var elements = [];
var partArray = selector.split('' '');
var part = partArray[0];
var dotPos = part.indexOf(''.''); // the dot position (-1 if not found)
if (dotPos == -1){
var nodeList = document.getElementsByTagName(part);
elements.append(nodeList);
// ".class" find any type of element of a given class.
} else if (dotPos == 0) {
var descendantArray = Element.getDescendants(element);
var className = part.substring(1,part.length);
for(var i=0; i<desce...
2012 Oct 01
0
[klibc:master] Avoid overflow for very long variable name
...tions(-)
diff --git a/usr/dash/parser.c b/usr/dash/parser.c
index 528d005..6e076a5 100644
--- a/usr/dash/parser.c
+++ b/usr/dash/parser.c
@@ -852,7 +852,7 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
{
int c = firstc;
char *out;
- int len;
+ size_t len;
struct nodelist *bqlist;
int quotef;
int dblquote;
2012 Jul 02
0
[klibc:master] [EVAL] Remove unused EV_BACKCMD flag
...builtins in the same
- * context as the shell, because we are not keeping
- * enough state to recover from changes that are
- * supposed only to affect subshells. eg. echo "`cd /`"
- */
- if (n->type == NCMD) {
- struct ifsregion saveifs;
- struct ifsregion *savelastp;
- struct nodelist *saveargbackq;
-
- saveifs = ifsfirst;
- savelastp = ifslastp;
- saveargbackq = argbackq;
-
- exitstatus = oexitstatus;
- evalcommand(n, EV_BACKCMD, result);
-
- ifsfirst = saveifs;
- ifslastp = savelastp;
- argbackq = saveargbackq;
- } else
-#endif
- {
- int pip[2];
- struct job *jp;
-
-...
2008 Mar 25
4
Prototype: toggle() not supported on TD in IE?
The following line causes trouble both with IE 6&7:
cels[i].toggle();
It tells me that this element does not support the property or method.
The element is a cell (TD) which I checked by outputting the tagName
and it works with FF, Opera and Safari.
The IE script debugger stops at this line but I didn''t find a single
posting on the net with a similar problem which is kind of strange.
2019 Jan 25
0
[klibc:update-dash] [SHELL] Optimize dash -c "command" to avoid a fork
...*/
int needprompt; /* true if interactive and at start of line */
int lasttoken; /* last token read */
-MKINIT int tokpushback; /* last token pushed back */
+int tokpushback; /* last token pushed back */
char *wordtext; /* text of last word returned by readtoken */
int checkkwd;
struct nodelist *backquotelist;
@@ -210,6 +210,7 @@ list(int nlflag)
parseheredoc();
else
pungetc(); /* push back EOF on input */
+ tokpushback++;
return n1;
default:
if (nlflag == 1)
diff --git a/usr/dash/parser.h b/usr/dash/parser.h
index e6caed63..2875cce6 100644
--- a/usr/dash/parse...
2020 Mar 28
0
[klibc:update-dash] dash: [SHELL] Optimize dash -c "command" to avoid a fork
...*/
int needprompt; /* true if interactive and at start of line */
int lasttoken; /* last token read */
-MKINIT int tokpushback; /* last token pushed back */
+int tokpushback; /* last token pushed back */
char *wordtext; /* text of last word returned by readtoken */
int checkkwd;
struct nodelist *backquotelist;
@@ -210,6 +210,7 @@ list(int nlflag)
parseheredoc();
else
pungetc(); /* push back EOF on input */
+ tokpushback++;
return n1;
default:
if (nlflag == 1)
diff --git a/usr/dash/parser.h b/usr/dash/parser.h
index e6caed63..2875cce6 100644
--- a/usr/dash/parse...
2019 Jan 25
0
[klibc:update-dash] parser: Add syntax stack for recursive parsing
...syntax;
+ next->next = *stack;
+ (*stack)->prev = next;
+ *stack = next;
+}
+
+static void synstack_pop(struct synstack **stack)
+{
+ *stack = (*stack)->next;
+}
+
/*
@@ -870,24 +897,15 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
size_t len;
struct nodelist *bqlist;
int quotef;
- int dblquote;
- int varnest; /* levels of variables expansion */
- int arinest; /* levels of arithmetic expansion */
- int parenlevel; /* levels of parens in arithmetic */
- int dqvarnest; /* levels of variables expansion within double quotes */
int oldstyle;
- /* syntax...
2020 Mar 28
0
[klibc:update-dash] dash: parser: Add syntax stack for recursive parsing
...syntax;
+ next->next = *stack;
+ (*stack)->prev = next;
+ *stack = next;
+}
+
+static void synstack_pop(struct synstack **stack)
+{
+ *stack = (*stack)->next;
+}
+
/*
@@ -870,24 +897,15 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
size_t len;
struct nodelist *bqlist;
int quotef;
- int dblquote;
- int varnest; /* levels of variables expansion */
- int arinest; /* levels of arithmetic expansion */
- int parenlevel; /* levels of parens in arithmetic */
- int dqvarnest; /* levels of variables expansion within double quotes */
int oldstyle;
- /* syntax...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Do not reprocess data when expanding words
...*p, char *str, int strloc, int subtype, int startloc, int varflags, int flag)
+static char *subevalvar(char *start, char *str, int strloc, int startloc,
+ int varflags, int flag)
{
+ int subtype = varflags & VSTYPE;
int quotes = flag & QUOTES_ESC;
char *startp;
char *loc;
- struct nodelist *saveargbackq = argbackq;
- int amount;
+ long amount;
char *rmesc, *rmescend;
int zero;
char *(*scan)(char *, char *, char *, char *, int , int);
+ char *p;
+
+ p = argstr(start, (flag & EXP_DISCARD) | EXP_TILDE |
+ (str ? 0 : EXP_CASE));
+ if (flag & EXP_DISCARD)
+ return p;...
2018 Nov 08
4
LLVM Call Graph may not cover all calls
Hi there,
I am working with opt-6.0 and try to generate a call graph of
libsndfile, but it seems the call graph doesn't cover all call relationship.
Actually, I am doing static analysis on *CVE-2014-8130*, which is a zero
division on libtiff/tif_write.c TIFFWriteScanline. (see
https://security-tracker.debian.org/tracker/CVE-2014-8130)
Theoretically, the main function in
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...lts = new Array(length);
while (length--) results[length] = iterable[length];
return results;
}
if (Prototype.Browser.WebKit) {
- function $A(iterable) {
+ $A = function(iterable) {
if (!iterable) return [];
- if (!(Object.isFunction(iterable) && iterable == '[object NodeList]') &&
- iterable.toArray) return iterable.toArray();
- var length = iterable.length, results = new Array(length);
+ // In Safari, only use the `toArray` method if it's not a NodeList.
+ // A NodeList is a function, has an function `item` property, and a numeric
+...