search for: ancestors

Displaying 20 results from an estimated 251 matches for "ancestors".

Did you mean: ancestor
2006 Feb 22
2
Newbie seeks helps ordering ancestors from acts_as_tree
I''m sure this is really obvious but I''m feeling my way here with rails (and Ruby) and have tried a couple of things without success. So, can anyone tell me the best way to reverse order the retuen list of ancestors. In the controller I have: @ancestors = @category.ancestors which returns an array starting at the parent and ending with the root. When I then loop through the array to create a breadcrumb list: <% @ancestors.each do |ancestor| %> <%= link_to h(ancestor.name), :action =>"show&quo...
2008 Jan 14
2
DO NOT REPLY [Bug 5199] New: Exclusion of source arg ancestor short-circuits recursion
https://bugzilla.samba.org/show_bug.cgi?id=5199 Summary: Exclusion of source arg ancestor short-circuits recursion Product: rsync Version: 3.0.0 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org
2016 Feb 09
7
[Bug 11726] New: --copy-links cause rsync to fail with ancestor symlink (..)
https://bugzilla.samba.org/show_bug.cgi?id=11726 Bug ID: 11726 Summary: --copy-links cause rsync to fail with ancestor symlink (..) Product: rsync Version: 3.1.2 Hardware: All OS: All Status: NEW Severity: major Priority: P5 Component: core Assignee: wayned
2010 Feb 16
0
as_json and self-referential associations
...and a parent: class CatalogueCategory < ActiveRecord::Base acts_as_tree JSON_ATTRS = [''id'', ''name'', ''description'', ''slug''] def as_json(options=nil) attributes.slice(*JSON_ATTRS).merge(:children => children, :ancestors => ancestors) end end The ancestors reference is an array of parent, grand parent etc categories back up to the root node. However when I call .as_json on my category of interest it tries to include the children of each ancestor category which each have ancestors... and we end up in an infi...
2008 Jun 19
7
getDimensions() fails for elements with ancestors with display: none
Prototype v1.6.0.2 If any of an element''s ancestors are hidden, Element.getDimensions() returns misleading values. In order to address this in my own project, I made the following modification: getDimensions: function(element) { element = $(element); var display = element.getStyle(''display''); + var hiddenAncestor = ele...
2009 Dec 15
0
DO NOT REPLY [Bug 4621] Option to create ancestors of destination, like "mkdir -p"
https://bugzilla.samba.org/show_bug.cgi?id=4621 lists at elasticmind.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lists at elasticmind.net ------- Comment #4 from lists at elasticmind.net 2009-12-15 06:12 CST ------- Greetings, I just noticed
2008 Sep 08
1
another XML package question
Hi there, does anybody know how to return the xmlPath from a node? For example, at several location in the xml file, I have nodes with the same name and I'd like to process only the nodes from a certain path. Any idea? Antje
2004 Jun 14
5
terminology for frames and environments
In ?exists it says: inherits: should the enclosing frames of the environment be searched? I believe what it is saying is that if inherits is TRUE and it fails to find the variable it will look in the parent environment and the parent of the parent, etc. (as opposed to looking in the calling frame next and the caller of the caller, etc.) Now I thought that standard terminology in R was: 1.
2009 Dec 16
1
Option to create ancestors of destination, like "mkdir -p
> I agree with everyone else that it would be incredibly useful for rsync to > either adopt such behaviour by default (assuming always doing 'mkdir -p' isn't > harmful in any way), or have a tunable to enable it. I also agree the suggested behavior makes a lot of sense and I think it is a good idea. However, some deployments may rely upon the current behavior. As an
2017 Aug 20
5
RFC: Resolving TBAA issues
> > > > I do not believe the current proposal will solve all of those cases, > particularly when the fields are the same type and structures are > compatible but they cannot overlap in C/C++ anyway. > > One of the threads is titled "[PATCH] D20665: Claim NoAlias if two GEPs index different fields of the same struct" For example, given struct { int arr_a[2];
2013 Aug 27
1
Minimum requirements for package submission
Hi, I'm a newbie to R package submission. I've written a program using basic functions inside R to manipulate phylogeny tree data. I've relied on the APE package. After almost year of working on it, it's time for me to submit the package and I have very little time to rewrite it as S3/4 style unless it is required. It's just very basic at the moment with 30+ functions and
2007 Dec 03
0
object framework design, part II: COMMUNICATION
...is processed asynchronously from the main loop. During processing of a queued signal, the signal named "signal" which is part of the interface also named "signal" implemented by the base object type is invoked for the object that emitted the original signed signal and all of its ancestors. The data describing the signed signal is passed as an argument to the "signal" signal. So by connecting to an objects "signal" signal, it's possible to monitor an invoke appropriate member functions for each signed signal emitted by the object and all its descendants. In...
2006 Mar 30
5
Patch for wxControl.h
Hello all. This gets past the problem in bigdemo where it won''t start the application at all. That was where it was overflowing the stack on get_label. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2010 Mar 24
4
grouping and acts_as_tree
hi, im using acts_as_tree and im not sure on how to group find-result. x = find.almost_all <p> <% for y in @x.ancestors.reverse %> <%= link_to h(y.title), page %> &gt; <% end %> </p> gives me a nice "breadcrum". but how is it possible to group the list lets say by the 1level or second level? thx -- You received this message because you are subscribed to the Google Groups &qu...
2011 Mar 29
2
Scrap java scripts and styles from an html document
Hi, I am working on developing a web crawler in R and I needed some help with regard to removal of javascripts and style sheets from the html document of a web page. i tried using the xml package, hence the function xpathApply library(XML) txt = xpathApply(html,"//body//text()[not(ancestor::script)][not(ancestor::style)]", xmlValue) The output comes out as text lines, without any html
2013 Jan 13
2
Regarding the recent changes to @<-
Hello all, In one of the packages (phylobase) I'm contributing to, we define a class as follows: setClass("phylo4", representation(edge = "matrix", edge.length = "numeric", label = "character", edge.label = "character", order =
2011 Oct 11
1
recursive finds
...ancestry (Hostgroup) called "Base" and for me to find out all of the puppetclasses that host "ServerA" belongs to, I would have to get a listing of all of the puppetclasses within the chain of Hostgroups to which ServerA belongs. So this is my code... @hosts.each do |host| @ancestors = Hostgroup.find(host.hostgroup.ancestry) unless host.hostgroup.ancestry == nil @ancestors.puppetclasses.each do |anc| @my_classes[anc.name] += 1 end end And this works for me because I am only nesting 1 level but it''s conceivable that other users would nest many more levels an...
2008 Feb 01
1
package could not be loaded
...leVertices, visibleBlocks, edgeList, blockEdgeList, factorVertexList, factorEdgeList, extraList, extraEdgeList, constrained, constrained<-, color, color<-, label, label<-, labelPosition, labelPosition<-, name, name<-, index, index<-, position, position<-, stratum, stratum<-, ancestors, ancestors<-, descendants, descendants<-, parent, parent<-, children, children<-, visible, visible<-, blockindex, blockindex<-, width, width<-, dash, dash<-, oriented, oriented<-, nodeIndices, nodeIndices<-, nodeIndicesOfEdge, nodeIndicesOfEdge<-, nodeTypesOfEdge, N...
2008 Apr 16
3
non-bubbling mouseover/mouseout
First, I have only played with Prototype for about a month, so I don''t know it well. Second, I am more of a server-side programmer than a client-side programmer. In my page, I have a div that appears as a result of a link mouseover event. This div is nested within another div that houses everything (id = ''menuContainer''). I want the resulting div (which is a submenu)
2006 Mar 04
2
convert string to AR class
...en used yet. So I switched to a="SomeClass" begin b=eval a b.class # for at least one use rescue puts "error"; exit end Now I want to find out if it is derived from ActiveRecord, but can''t seem to figure out how. I looked at Modules#ancestors and Module#nesting, but this does not seem to be the right thing. Any help would be greatly appreciated. Thanks, Mat Cucuzella -- Posted via http://www.ruby-forum.com/.