hierarchy

Sitecore role hierarchy

Is there any way to implement role hierarchy in 5.2/5.3 sitecore? ...

2D Game: Fast(est) way to find x closest entities for another entity - huge amount of entities, highly dynamic.

I'm working on a 2D game that has a huge amount of dynamic entities. For fun's sake, let's call them soldiers, and let's say there are 50000 of them (which I just randomly thought up, it might be much more or much less :)). All these soldiers are moving every frame according to rules - think boids / flocking / steering behaviour. For ea...

Reorder nodes in SQL Hierarchy data type

Using Hierarchy data type on SQL 2008. Nodes in my hierarchy go like this: value node 36 /8/1/ 38 /8/2/ 34 /8/3/ 40 /8/4/ 42 /8/5/ 44 /8/6/ 46 /8/7/ 48 /8/8/ I'd like to rearrange nodes so that /8/3/ and /8/1/ switch places. Any idea on how to do this? Only idea that I have so far is that I load all nodes o...

Handling Hierarchy Data

Hi guys, I have Name Company Nr Mother Company Nr Company A 100 Company B 101 100 Company C 102 100 Company D 103 102 Company E 104 100 in a BusinessObject that I extracted from an XML document I need t...

Software to store hierarchal data

I'm looking for [free] server software to store hierarchal data efficiently. My key challenge is that an object or group of objects almost always has 2 "parents" and one or both parents can have different connections with other parents, and those descendants must remain distinct from the common parent's other descendants. Example: A an...

Retrieve Roots with Nodes in a Hierarchy with PL/SQL

I have a simple parent/child type view with two columns: MYID and MYPARENTID. In PL/SQL, getting a list of all of the children of a parent is simple enough: SELECT MYID FROM MYVIEW START WITH MYID = 'TargetId1' CONNECT BY PRIOR MYID = MYPARENTID And I would get something back like this: MYID ----------- TargetId1 TargetId1Child1 T...

C# DataGridView binding to subset of XML

Hi, I need to populate a DataGridView conditionally. The data comes from one XML file, e.g. <?xml version="1.0" standalone="yes"?> <people> <person> <name>Bob</name> <dogs> <dog><name>Rover</name></dog> <dog><name>Rex</name></dog> </dogs> </person> <person> <name>Jim</name> <dogs> <dog><name>D...

Problem on a query with NHibernate

Hi Guys, I have a very simple scenario, using NHibernate: one abstract base class "animal"; two concrete subclass "cat" and "dog" with discriminator column (1 for dog and 2 for cat); one normal class Person; Person have a many-to-one of animal. I want retrieve a list of person with a dog. How can I do this? thx a lot ...

Hierarchial SQL Query

Hi, I have a self-referencing table (Customers) and a table that will link to one record in that table (Companies) i.e. Customers Companies ********* ********* ID ID ManagerID --> DirectorID ManagerID refers to another record in the Customer table. I need to perform a query where by given a specific customer I...

Need some explain with OOAD "is a" hierarchy.

I have purchase Object-Oriented Analysis and Design with Applications, at page 64 paragraph 2 has explain about "is a" hierarchy like below. In terms of its “is a” hierarchy, a high-level abstraction is generalized, and a low-level abstraction is specialized. Therefore, we say that a Flower class is at a higher level of abstraction t...

How to aggregate all attributes of a hierarchy of classes?

There is a hierchy of classes. Each class may define a class variable (to be specific, it's a dictionary), all of which have the same variable name. I'd like the very root class to be able to somehow access all of these variables (i.e. all the dictionaries joined together), given an instance of a child class. I can't seem to find the way...

How to set parentViewController in UIViewController?

The parentViewController property of UIViewController is readonly, but I am nesting custom view controllers and would like to use this property. However, since it is readonly, and I found no other way to set this property, my quesion is: how do I set it? Obviously, UINavigationController can set the property somehow in -pushViewContro...

User (model) hierarchy, self-referential join

I'm trying to figure out how to have a two level user relationship. Photographers have clients. Clients have one photographer. Both are Users. I've got a User model that looks like this: class User < ActiveRecord::Base #authlogic has_many :client_associations, :foreign_key => 'client_id', :class_name => 'Association',...

How can I access the base parent of an object in a WPF hierarchy?

Deep inside my WPF object hiearchy I create a Window object. However, I want the owner of this window object to be the base Window object. I've tried "climbing up the tree" with the following type of code but this approach seems suboptimal: (((((((TabGroupPane)((ContentPane) this.Parent).Parent).Parent as SplitPane).Parent as Document...

[iPhone] Large data hierarchy - How to realize?

Hi guys, I am still trying to develop a small medicine iPhone app. :-] In the last few days I've structured all the data that should be displayed in a table. After reading books and watching a lot of tutorials I've built a couple of simple Table View applications. These apps always had a predefined depth of data. I am not sure if you un...

How do I get intellisense(code insight) features like of Jcreator in an IDE of linux platform ?

I previously programmed a lot in JCreator, but since I moved to ubuntu. I miss my Jcreator more than anything. Beside Eclipse or Netbeans, are there some lightweight software that does my task. Tried already gedit, jedit, scite, geany etc. with APIs plugins. But I can't find anything like Jcreator ? I just have 256 MB SDRAM to spare in ...

How to setup hierarchies in MS CRM 4.0

I need to setup hierarchies in MS CRM 4.0. I've below mentioned four levels of hierarchy.... Sales Agent -> Sales Manager -> Area Sales Manager -> Regional Office. Sales Agent guy is at lowest level of hierarchy and Regional Office is at highest level of hierarchy. Along with setting up these hierarchies, I need to implement data level s...

Condition in a recursive query

I have the following recursive table-valued function in MS SQL, in order to retrieve a hierarchy of objects from the database: WITH tmpField (ParentNum, ChildNum, FieldNum, FieldDescr, Iteration) AS ( SELECT Field.ParentNum, Field.ChildNum, Field.FieldNum, Field.FieldDescr, 1 FROM Field WHERE Field.ParentNum = @ParentNum UNION...

Should I compose a complex UIView with more UIView's or more CALayer's ?

I have a complex view which is composed of a base image overlaid with other images and 2D paths. I wonder what difference will it make if a assemble the complex view by creating a different UIView for each element and adding them as children of the complex view or if I should instead create a a different CALayer for each element and ad...

What is a "Class hierarchy:

A client of mine asked me to create a Class Hierarchy for Automating HTML form generation , Validation , Submission and Processing. I am unclear what this means. Would it just be the route of how this process is done ? If some one could you me a link to a tutorial that could be great. ...