search for: subel

Displaying 20 results from an estimated 45 matches for "subel".

Did you mean: subsel
2006 Jun 15
1
Access and assign list sub-elements using a string such as "l$a$b"
If I have a list I can set a sub-element as follows on the command line: people=list() people$tom$hair="brown" people But what if I have a string containing the name of the sub-element that I want to access? subel= "people$tom$hair" get(subel) # returns error assign(subel,"red") # silent but doesn't change list people The attempts above using assign/get won't do what I am trying to do [nor according to the help should they]. I would be very grateful for any suggestions. Many t...
2016 Jan 29
2
generate interface MAC addresses in a particular order
...Cs are present in the configuration) you can add any number of interfaces to it (as long as they exist on the host). To do that, I edit the configuration xlm: vmXml = self.domain.XMLDesc() root = ET.fromstring(vmXml) devices = root.find('./devices') intf = ET.SubElement(devices,'interface') intf.set('type', 'bridge') src = ET.SubElement(intf,'source') src.set('bridge', bIntf) model = ET.SubElement(intf,'model') model.set('type', 'e1000') xml = ET.t...
2016 Feb 01
1
Re: generate interface MAC addresses in a particular order
...faces to it (as long as they exist on the host). > > To do that, I edit the configuration xlm: > > > > vmXml = self.domain.XMLDesc() > > root = ET.fromstring(vmXml) > > devices = root.find('./devices') > > > > intf = ET.SubElement(devices,'interface') > > intf.set('type', 'bridge') > > src = ET.SubElement(intf,'source') > > src.set('bridge', bIntf) > > model = ET.SubElement(intf,'model') > > model.set(...
2006 May 07
3
Stupid newbie question
...''s a request string which has a value I want to pull out from the category array - parent_id. Parameters: {"category"=>{"name"=>"Condiments", "parent_id"=>"1"}, "commit"=>"Create"} How do I reference that subelement in the receiving script? I''ve tried params[:parent_id] params[:category[:parent_id]] both unsuccessfully. I told you this was a stupid question. So how do I get at those values? Mike
2005 Nov 24
1
Extended $ function called $$
This code lets you use standard CSS selectors to get an array of elements. For example, $$("#container div.myElements") would return all subelements of #container that are divs and are of the class myElements. I submitted similar code a while back to the email address for the prototype library but never got a reply. Thought I''d post this in the hopes that some others will find it useful. I think this would make a good addition...
2014 Apr 10
2
Re: Changing dnsmasq DNS settings for virtual machines
...#39;/> element to be dropped rather >> than forwarded. Is that possibly the cause of your problems? Maybe... >> Alternately, since 1.1.3 you can tell dnsmasq to forward to a >> specific address rather than the one listed in /etc/resolv.conf >> with the <forwarder> subelement of the <dns> element in the >> network definition, e.g.: > >> <dns> <forwarder addr='1.2.3.4'/> </dns> Nice, seems to work. >> This is documented here: > >> http://www.libvirt.org/formatnetwork.html#elementsAddress I actually w...
2016 Jan 31
0
Re: generate interface MAC addresses in a particular order
...can add any number of > interfaces to it (as long as they exist on the host). > To do that, I edit the configuration xlm: > > vmXml = self.domain.XMLDesc() > root = ET.fromstring(vmXml) > devices = root.find('./devices') > > intf = ET.SubElement(devices,'interface') > intf.set('type', 'bridge') > src = ET.SubElement(intf,'source') > src.set('bridge', bIntf) > model = ET.SubElement(intf,'model') > model.set('type', 'e1000&...
2014 Apr 06
3
Changing dnsmasq DNS settings for virtual machines
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, maybe this is an old fart, but I cant get it to work. I am running libvirt on a laptop, where a dnsmasq is already running to delegate dns info for my local (not-public) network. My resolv.conf (on the host) lists the system-dnsmasq as first server. I had to set the listen-adress for the system-dnsmasq to 127.0.0.1 and set
2014 Apr 13
0
Re: Changing dnsmasq DNS settings for virtual machines
...dropped rather >>> than forwarded. Is that possibly the cause of your problems? > Maybe... > >>> Alternately, since 1.1.3 you can tell dnsmasq to forward to a >>> specific address rather than the one listed in /etc/resolv.conf >>> with the <forwarder> subelement of the <dns> element in the >>> network definition, e.g.: >>> <dns> <forwarder addr='1.2.3.4'/> </dns> > Nice, seems to work. > >>> This is documented here: >>> http://www.libvirt.org/formatnetwork.html#elementsAddress &...
2014 Apr 10
0
Re: Changing dnsmasq DNS settings for virtual machines
...the network's <domain name='xyzzy'/> element to be dropped rather than forwarded. Is that possibly the cause of your problems? Alternately, since 1.1.3 you can tell dnsmasq to forward to a specific address rather than the one listed in /etc/resolv.conf with the <forwarder> subelement of the <dns> element in the network definition, e.g.: <dns> <forwarder addr='1.2.3.4'/> </dns> This is documented here: http://www.libvirt.org/formatnetwork.html#elementsAddress There was a bug in libvirt for quite awhile that caused loca...
2007 Mar 08
1
Searching and deleting elements of list
...ation": > mydata[[1]] [1] "aaa" "bbb" "ccc" "ddd" "eee" > mydata[[2]] [1] "vvv" "ooo" "zzz" > mydata[[3]] [1] "sss","jjj","ppp" > mydata[[4]] NULL My list have about 10000 subelements (each contains several strings) so using loops is senseless. Thank's for all replies and sorry for my English (I hope you understand what I'm talking about) :-) -- View this message in context: http://www.nabble.com/Searching-and-deleting-elements-of-list-tf3368489.html#a9372270 S...
2018 Sep 03
1
Re: [PATCH] ppc64le: Use -machine cap-htm=off unconditionally (RHBZ#1614948).
...} end_element (); > + } end_element (); > + } end_element (); > +#endif This generates an XML snippet like: <features> <pseries> <htm state="on"/> </pseries> </features> I see two problems: - there is no <pseries> subelement, <htm> is directly under <features> - shouldn't it be off, just like done in the direct backend? -- Pino Toscano
2007 Mar 08
1
R: Searching and deleting elements of list
...ation": > mydata[[1]] [1] "aaa" "bbb" "ccc" "ddd" "eee" > mydata[[2]] [1] "vvv" "ooo" "zzz" > mydata[[3]] [1] "sss","jjj","ppp" > mydata[[4]] NULL My list have about 10000 subelements (each contains several strings) so using loops is senseless. Thank's for all replies and sorry for my English (I hope you understand what I'm talking about) :-) -- View this message in context: http://www.nabble.com/Searching-and-deleting-elements-of-list-tf3368489.html#a9372270 S...
2014 Apr 17
2
What's the meaning of sub-element <ip address='X.X.X.X'> in <interface type='bridge'> of domain xml?
Hi guys, I saw this sub-element in http://libvirt.org/firewall.html, there is some confusion, what's the meaning of sub-element <ip address='X.X.X.X'> in <interface type='bridge'> of domain xml? The detail <interface> in domain xml as below: <interface type='bridge'> <mac address='52:54:00:56:44:32'/> <source
2020 Jan 27
1
Detecting of features of VMs
...machine_type, virt_type, flags) https://libvirt.org/formatdomaincaps.html The XML returned by this API describes the capabilities of an VM which would be started using the parameters given to the API (note that if the parameters are NULL a default is provided). The <os> subelement describes supported OS loader types and firmware binaries. <cpu> describes which CPU models are supported by the emulator and also the CPU which would be used if 'host-model' is selected as the CPU model. The <devices> section describes models and some properties of device...
2008 Jun 20
3
problems using effects.morph && effect.appear
Hi, i wrote a sliding navigation using effect.morph and effect.appear. I don''t know why but there are a couple of problems: 1. effect.appear seems not to work in IE6 2. The effects aren''t really "smooth". 3. When using effect appear. The new element triggers onmouseover the onmouseout function.... It''s a small script: www.rhizom.nl/volkan/scriptalicous
2016 Jul 19
4
RFC: inbounds on getelementptr indices for global splitting
Hi all, I'd like to propose an IR extension that allows the inbounds keyword to be attached to indices in a getelementptr constantexpr. By placing the inbounds keyword on an index, any pointer derived from the getelementptr outside of the bounds of the element referred to by that index, other than the pointer one past the end of the element, shall be treated as a poison value. The main
2006 Sep 06
2
[LLVMdev] gfortran: array constructor problems
On 9/6/06, Chris Lattner <sabre at nondot.org> wrote: > On Tue, 5 Sep 2006, Michael McCracken wrote: [snip] > > ../../src/gcc/llvm-convert.cpp:3871: failed assertion > > `(TREE_CONSTANT(exp) || TREE_CODE(exp) == STRING_CST) && "Isn't a > > constant!"' > > > > In this case, TreeConstantToLLVM::Convert() is getting a constant to >
2014 Feb 14
2
Networkfilters in Routed setup
Hello! Since i could not find any information on the internet about this subject, i'm going to try my luck on this list. I'm trying to setup network-filter on a routed setup. I have a root-server at Hetzner, a german hosting provider. Along with my server i ordered a (/28) subnet to be able to setup dedicated IPs for my virtual machines (KVM). My Server is running Ubuntu 12.04 with
2006 Jan 13
9
form_remote_tag breaks inside table
...#39; or what. but my next step was to switch to a seperate form tag for each row to reduce needless bandwidth/db usage but that isnt possible due to this behavior.. i guess i will spend another few weeks figuring out if it will ever be posible to get distinct divs to truly line up their nested subelements like table cells do... -- Posted via http://www.ruby-forum.com/.