Displaying 20 results from an estimated 251 matches for "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&qu...
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
Report...
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 at samba.org
Reporter: cyphar a...
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 inf...
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 = el...
2009 Dec 15
0
DO NOT REPLY [Bug 4621] Option to create ancestors of destination, like "mkdir -p"
...--------------------------------------------
CC| |lists at elasticmind.net
------- Comment #4 from lists at elasticmind.net 2009-12-15 06:12 CST -------
Greetings,
I just noticed my rsync backup scripts failing and discovered it was due to a
missing ancestor of the remote target directory. I immediately searched for a
tunable that would signal rsync to use 'mkdir -p' instead of just 'mkdir' when
initially creating the target directory, but didn't seem to find one.
I agree with everyone else that it would be incredibly useful for rs...
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
...t to be able to run the former without the latter), but
right now that is the only metadata you can use.
Finally, the merging of TBAA is definitely going to be more conservative
than the merging of field offset info: If we merge a load of an int and a
float, we will, IIRC, go to the nearest common ancestor in TBAA. The
field offset info may actually still be identical between the two, but we
will lose it by creating/or going to the common ancestor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170820/f8e5c0...
2013 Aug 27
1
Minimum requirements for package submission
...30+ functions and
there's a driver class. There's a lot of jargon in package submission and
so it's difficult to understand the Google results. I would appreciate any
help.
1. My functions are very basic. For example, getRoot gets the root of the
current tree (APE phylo object) and getAncestor gets the ancestor to the
current node:
getRoot <- function(cur_Tree){
return(length(cur_Tree$tip.label)+1)
}
getAncestor <- function(cur_Node, cur_Tree){
...
return(ancestor)
}
Is this okay or do I have to do anything else to submit the package? Later
on (within the next few months) I...
2007 Dec 03
0
object framework design, part II: COMMUNICATION
COMMUNICATION
Method Invocation
The most common form of communication between an object and one of its
descendants is done by invoking one of the descendant's member
functions. Values can be passed to the descendant using function
arguments and values can be passed back to the ancestor using the return
value of the member function or one of its arguments. It's a regular
function call, hence also very efficient.
As member functions can't access members or children provided by
interfaces that are part of derived types or loaded after the member
functions own interface, som...
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 %> >
<% 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 &q...
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 tags. I want the html
tags to remain intact and scrap only the javascript and styles from it.
Any help would be highly appreciated.
Thanks in advance.
--
View this message in context: http://r...
2013 Jan 13
2
Regarding the recent changes to @<-
...edge.label = "character",
order = "character",
annote = "list"),
prototype = list(
edge = matrix(nrow = 0, ncol = 2,
dimname = list(NULL, c("ancestor",
"descendant"))),
edge.length = numeric(0),
label = character(0),
edge.label = character(0),
order = "unknown",
annote = list()
),...
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 a...
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,...
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/.