Assume I have an XML doc with employees and who reports to them. Something like this:
<?xml version="1.0" encoding="utf-8" ?>
<employees>
<employee>
<id>1</id>
<name>Ashley King</name>
<title>Director</title>
<directReports>
<employee>
<id>2</id>
<name>Jim Warden</name>
<title>Manager</tit...
Jokes aside, I am trying to build a tag hierarchy for a library of icons that could contain potentially anything. The problem is how to make clear and simple hierarchy of (most) objects? I am not trying to make super specific categories, just to help users with searching (if I can narrow down 10k icons into categories of 100s that should...
I have a rigged (biped) and animated model in 3D Studio Max which I've exported as a .x file.
When I use it the animations run fine, however I've been trying to get the model itself to lean and turn from the hip but I'm having difficulty in finding where in the bone hierarchy I should apply the rotation matrices.
In 3D Studio Max there...
I'm trying to make a sales report based on the following:
DColor
IdColor ColorPalette ColorName
21 Vibrant Blue
22 Nature Brown
23 Vibrant Red
24 Nature Black
25 Vibrant Yellow
... ... ...
DFurniture
IdFurniture FurnitureType FurnitureName
43 ...
I've been trying to find a good way of doing this, either on the client side in Javascript or at the last minute within the server. This is a Rails application but it is a pretty generic question. I have a model that is hierarchical, and is currently stored in a nested set model. The model then has:
parent_id, lft, and rgt
I would lik...
I have an animated mesh in the .x format I've loaded with D3DXLoadMeshHierarchyFromX and have an animation controller for it. The mesh has two animations, one for walking and one for throwing where the walk animation.
Is it at all possible to blend the two animations in such a way that both animations can run together with the walk taki...
Is it possible/practical to build a single regular expression that matches hierarchical data?
For example:
<h1>Action</h1>
<h2>Title1</h2><div>data1</div>
<h2>Title2</h2><div>data2</div>
<h1>Adventure</h1>
<h2>Title3</h2><div>data3</div>
I would like to end up with matches.
"Action", "Title1", "data1"
"Action", "Title2", "data...
Say I have multiple DirectX .x files each with the same bone hierarchy but different animations. What would I have to copy from one to the other to transfer the animtions over? Is it just everything listed under animation sets in it or is their something else I need as well?
...
Where should I best manage a hierarchy of ACLs?
I see three possibilities to manage a hierarchy of ACLs:
1) The ACLs themselves manage the hierarchy:
class Acl {
Acl parent;
// ...
}
2) Constructing a separate tree structure to manage the hierarchy.
3) Using an already existing hierarchy as the implicit hierarchy for ACLs (like...
I am trying to store website contents in XmlNode.
my website structure is
Site1
List1
Folder1
Folder2
a] file1
b] file2
Folder3
List2
Site2
List1
List2
Site3
...............
Site4
.........................
So how do i store it in XMLNode. my method should return whole struc...
I have a question on best practice for relational databases and hierarchies. My question is, is it more sane to use text or int (id) based hierarchies?
I have a hierarchy, but it is not an id based one. The hierarchy is based on text
e.g. 'level1', 'level2' as opposed to id1, id2
I use mysql and also solr for managing my data.
At the ...
Given these 4 variables,
var el1 = {name:'ronaldo', team: 'europe/spain/realmadrid'}
var el2 = {name:'messi', team: 'europe/spain/barcelona'}
var el3 = {name:'gerald', team: 'europe/england/liverpool'}
var el4 = {name:'unknown english', team: 'europe/england'}
I need to produce this JSON tree hierarchy,
{
"text":"europe",
"le...
I have a table that has a one to many relationship with itself. Each record can have n number of children from that same table. For example
create table folder
ID: Number 20 PK
PARENT_ID: Number 20 FK references folder.ID
SIZE: NUMBER 20
...
Given an ID, I want to select the SUM(SIZE) of all folder records
recursively. The target d...
Hello,
In GWT if I do RootPanel.get("someDiv").add(myPanel); I invariably get:
<div id="someDiv"><div></div></div>
But, I just want 1 level of hierarchy, i.e., <div id="someDiv"><div> where the someDiv contains myPanel.
Any ideas?
Thanks!
...
Hello,
for a simple data structure such as so:
ID parentID Text Price
1 Root
2 1 Flowers
3 1 Electro
4 2 Rose 10
5 2 Violet 5
6 4 Red Rose 12
7 3 Television 100
8 3 Radio 70
9 8 ...
I have a Model class. This class should be able to reference itself, i.e. the resulting "output" from the model should be like this.
Some instanceOf Model.class
|-> Some instanceOf Model.class having parent instance referenced as parent_id
|-> Some instanceOf Model.class having ...........
The instances represent geographical enti...
I have table with parent child relation I want an help on recursive query
table structure
roleId, roleName, parentId
1 Admin 0
2 Backup Admin 2
3 Office User 1 0
4 User 1 3
5 User 2 3
6 Office User 2 0
7 Off User 1 6
I am trying to make recursive ...
Part of a model I'm designing is a hierarchy geographic locations. Since there are multiple layers and share some information I decided to use a class hierarchy like this:
public class GeographicNode
{
public virtual int Id { get; private set; }
public virtual string Name { get; set; }
public virtual GeographicNode ParentNod...
Using SQL Server 2008 and any available features of TSQL, I am trying to work out how to if a set-based solution that does not involve a temp table exists for the following problem:
Given a set of nodes that have a parent-child relationship, and a set of key-value pairs that apply to each, and given that
the value (for a given key-value...
I am looking for a generic open source database schema for a basic login, and user management with roles.
Users: belong to Business Units which belong to Clients.
Users have Roles - Manager, Regional Manager, site manager, worker etc. Users can have multiple roles dependant on the business unit and multiple business units..
Business ...