search for: findal

Displaying 20 results from an estimated 25 matches for "findal".

Did you mean: final
2010 Apr 30
1
re.findall equivalent?
Hi, The regular expression (grep) below does not behave at all like the equivalent in Python. Also, I would be happy if somebody could tell me what the R equivalent for Python's re.findall is. The regex filters out any numbers not enclosed by square brackets, including fractions (with either comma or dot as the separator) and percentages. How should the R code below be modified so it does the same as the Python code? # python code >>> import re >>> pattern = &quot...
2007 Dec 17
6
Checkbox array and Ajax.updater
Hello all, I have some checkbox array like these: <input type=checkbox name=list[] value="1">Java<br> <input type=checkbox name=list[] value="2">JavaScript<br> <input type=checkbox name=list[] value="3">ASP<br> <input type=checkbox name=list[] value="4">HTML<br> <input type=checkbox name=list[]
2015 Jan 21
2
reducing redundant work in methods package
Hi all, The function call series genericForPrimitive -> .findBasicFuns -> .findAll happens 4400 times while the GenomicRanges package is loading. Each time .findAll follows a chain of environments to determine that the methods namespace is the only one that holds a variable called .BasicFunsList. This accounts for ~10% of package loading time. I'm sure there is some history...
2007 Jan 19
7
Prototype.js: Is there an "in_array"-like function?
...= [''jim'', ''marge'', ''timmeh'', ''bob'']; if( someArray.has(''bob'') ) { alert(''found bob'') } Isn''t there something like "has()" in prototype already? I have seen the find / findAll, but the example in the docs are kinda complex for "just that".. could someone break it down for me please? i would much appreciate. TIA, Kjell --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on...
2006 Jun 20
4
Prototype Array bug??
...ndefined t=find, undefined t=map, undefined t=inspect, undefined t=zip, undefined t=toArray, undefined t=sortBy, undefined t=reject, undefined t=pluck, undefined t=partition, undefined t=min, undefined t=max, undefined t=invoke, undefined t=inject, undefined t=include, undefined t=grep, undefined t=findAll, undefined t=detect, undefined t=collect, undefined t=any, undefined t=all, undefined t=each, undefined t=0, #Assessments Instruments t=1, chiefcomplaint t=2, History of Present Injury The only tocitem''s are the last three in that list. Where is the rest of that array coming from? _____...
2015 Jan 21
2
reducing redundant work in methods package
...u tried patching methods to use .BasicFunsList directly as in > setMethod? > > > On Wed, Jan 21, 2015 at 10:41 AM, Peter Haverty <haverty.peter at gene.com> > wrote: > >> Hi all, >> >> The function call series genericForPrimitive -> .findBasicFuns -> .findAll >> happens 4400 times while the GenomicRanges package is loading. Each time >> .findAll follows a chain of environments to determine that the methods >> namespace is the only one that holds a variable called .BasicFunsList. >> This >> accounts for ~10% of package loa...
2008 Sep 15
2
Passing an array into controller
...g to pass and array from an AJAX Javascript function to a controller. The parameter is being read as a single string and not an array. The Javascript function: function sendtolist(formName){ var form = $(formName) var checked = [] checked = form.getInputs("checkbox","plans[]").findAll(function(item) { return item.checked; }).pluck("value"); action="/generate_reports/advanced_plan_summary" window.location.href=action+"?plans[]="+checked } The controller is: def advanced_plan_summary @ids = params[:plans] @ids = @ids.split('','&...
2006 Jan 29
2
Questions about Sortable javascript
...give me some brief answers I''d be greatful. Sorry for packing multiple questions into one email but I only have internet connection once every three days or so. 1) Looking in the index of my O''Reilly book covering JavaScript 1.5 [2] I cannot find any of these methods .detect(), .findAll(), .reject?, Element.childrenWithClassName, $(), $A() Object.extend. Where is a good reference to these things? Are they JavaScript 1.6? 2) What is greedy refering to? 3) (this.findElements(element, options) || []).each is a JavaScript idiom to avoid problems when findElements returns null? 4)...
2008 May 05
1
get element by property
I''m fairly new to Prototype and I was wondering if anyone can help me out here. i need to search the document for elements with a specific innerHTML. I have the innerHTML string already, but i dont know how to find the elements with that property. thanks, andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2015 Jan 21
0
reducing redundant work in methods package
...at [[ now uses exact matching. Have you tried patching methods to use .BasicFunsList directly as in setMethod? On Wed, Jan 21, 2015 at 10:41 AM, Peter Haverty <haverty.peter at gene.com> wrote: > Hi all, > > The function call series genericForPrimitive -> .findBasicFuns -> .findAll > happens 4400 times while the GenomicRanges package is loading. Each time > .findAll follows a chain of environments to determine that the methods > namespace is the only one that holds a variable called .BasicFunsList. This > accounts for ~10% of package loading time. I'm sure t...
2008 Apr 28
3
How to pass variable to $$()?
Hi all, I want the $$() method to take the selector as an variable. See below, I am trying to pass the class name as javascript variable so I can write a generic function in my application but $$() returns nothing for the following line var currentHightLightGroup ="amountsFields";//This one comes as a function parameter
2015 Jan 22
0
reducing redundant work in methods package
...ly as in >> setMethod? >> >> >> On Wed, Jan 21, 2015 at 10:41 AM, Peter Haverty <haverty.peter at gene.com> >> wrote: >>> >>> Hi all, >>> >>> The function call series genericForPrimitive -> .findBasicFuns -> >>> .findAll >>> happens 4400 times while the GenomicRanges package is loading. Each time >>> .findAll follows a chain of environments to determine that the methods >>> namespace is the only one that holds a variable called .BasicFunsList. >>> This >>> accounts for...
2007 Sep 18
4
Prototype.js and Multidimensional Arrays
...xhtml perl php java but if i embedding the prototype.js in my document , so i get in addition to the result also the line belows: each undefined undefined eachSlice undefined undefined undefined all undefined undefined any undefined undefined collect undefined undefined detect undefined undefined findAll undefined undefined grep undefined undefined undefined include undefined inGroupsOf undefined undefined inject undefined undefined undefined invoke undefined max undefined undefined min undefined undefined partition undefined undefined pluck undefined reject undefined undefined sortBy undefined un...
2006 Jun 13
0
Code comments?
...OT. Hope you don''t mind... here is a function which modifies a value in an external stylesheet (works in Firefox, IE 6, IE 5.5)... I''ve rewritten it using prototype.js structures and suspect there are some additional optimizations which could be made. There may be a way to use findAll or another equivalency operator to test for the innermost equality and perform the assignment if it''s true? Comments appreciated... Sam cssSelectorUpdate2: function(sSelector, sProperty, sValue) { // Update the property value for a specific sSelector in a stylesheet...
2014 Mar 26
1
Recreating nwfilter rules without a restart
Let's say I have some iptables rules defined to restrict guest traffic. If I restart the hosts firewall 'service iptables restart', all the guest-specific rules get blown away. Is there a way to reapply all the guest firewall rules, without restarting each individual guest? It looks like if I edit a nwfilter with `virsh nwfilter-edit` it goes and reapplies the rules to all the
2007 Feb 17
4
childrenWithClassName
Hi, i need some help :) Does anywhere exists a fix for a code (scheme) like this: ---------------- var blas = document.getElementsByClassName( ''foo-class'', ''foo-id'' ); blas.each ( function( bla ) { var subbla = Element.childrenWithClassName( bla, ''subbla-class'', true ); } ); -------------- This scheme worked well till script.aculo
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
...put is None or output == "-": - fd = sys.stdout.fileno() - else: - fd = os.open(output, os.O_WRONLY) + # if boot filesystem is set then pass to fsimage.open + bootfsargs = ''"%s"'' % incfg["args"] + bootfsgroup = re.findall(''zfs-bootfs=(.*?)[\s\,\"]'', bootfsargs) + if bootfsgroup: + bootfsoptions = bootfsgroup[0] + else: + bootfsoptions = "" - # debug - if isconfig: - chosencfg = run_grub(file, entry, fs, incfg["args"]) -...
2014 Feb 13
2
[LLVMdev] Bad test health
...]*)+$"), # foo_bar re.compile(r"^[a-z]+[0-9]*$"), # foo re.compile(r"^[A-Z]$"), # foo re.compile(r"^_.+?_$") ] def extract_valid_prefixes(self, runlines): valid = set() for runline in runlines: prefixes = self.check_prefix_re.findall(runline) if len(prefixes) > 0: valid |= set(prefixes) elif 'FileCheck' in runline: valid.add('CHECK') return valid def is_prefix(self, str): if str in self.ignored_str: return False for r in self.ignored_regs: if re.search...
2013 Jul 18
15
[PATCH v5 0/5] xen: public interface and foreign struct check changes for arm
I last posted this back in April to critical acclaim (AKA near total silence). I''m not sure who looks after tools/include/xen-foreign. I had thought it was Jan but I think I was confused and was thinking of the semi-related xen/include/compat stuff. IOW I think nobody felt "responsible". Unless there''s any objection lets just treat this as coming under tools. The
2013 Oct 28
0
Re: [Qemu-devel] Hvmloader: Modify ACPI to only supply _EJ0 methods for PCIslots that support hotplug by runtime patching
...+# Track AML offset of a previous non-empty ASL command > +prev_aml_offset = -1 > +for i in range(len(asl)): > + debug = "input line %d: %s" % (asl[i].lineno, asl[i].line) > + > + l = asl[i].line > + > + # skip if not an extract directive > + a = len(re.findall(r''ACPI_EXTRACT'', l)) > + if (not a): > + # If not empty, store AML offset. Will be used for sanity checks > + # IASL seems to put {}. at random places in the listing. > + # Ignore any non-words for the purpose of this test. > + m = re...