hierarchy

JQuery selector for first hierarchy element?

I have this HTML structure: <div class="start"> <div class="someclass"> <div class="catchme"> <div="nested"> <div class="catchme"> <!-- STOP! no, no catchme's within other catchme's --> </div> </div> </div> <div class="someclass"> <div class="catchme"> </div> </div> </div> <d...

too many fields to specify in result set of join

hi, So similar questions have been asked with not much of an answer.... I have a Stats Table related to a Branch table. The Stats records contain pc stats of a particular bank branch. Branch +Code +Name +Area ... Stats +BranchCode +IP +UpSpeed +DownSpeed ... Here is my linq query... var stats = from st in store.Stats ...

Any way to hide test classes from the Hierarchy View in Eclipse?

I love Eclipse's hierarchy view which quickly shows all the subtypes and supertypes of my Java classes and interfaces. However, the results I am looking for are made confusing by the fact they also show all the types from my unit tests. While I find this helpful at time, I mostly find it annoying. Any way to filter this? ...

how to get the hierarchical menu from mysql

Hello, I have a table having hierarchical menus like "id" "parent_id" "name" 1 0 menu 2 1 item1 3 2 item1_1 4 1 item2 5 4 item2_1 ... ... and I have 100s of menu items here. In order to get all items in an array I have to write a recursive function like this getmenu function(parent_id = 1) { $items = mysql_query("SELECT id FROM tab...

Different navigation bar tints inside 1 single navigation controller ?

My application has a navigation view controller with 2 views : - a root view : i'd like the tint color for its navigation bar to be black - a sub view : i'd like the tint color for its navigation bar to be blue To achieve this, I set the tint color for the navigation bar in the viewDidLoad method of each view controller : self.navigati...

Castle ActiveRecord JoinedKey is not set

I am using "Class Table Inheritance - Using joined subclasses" as described here: http://www.castleproject.org/activerecord/documentation/trunk/usersguide/typehierarchy.html The following code is partly copied from there. [ActiveRecord("entity"), JoinedBase] public class Entity : ActiveRecordBase { ... private int id; [Pri...

Make *ALL* Wordpress Categories use their Parent Category Template

I want to change the default template hierarchy behavior, and force all subcategory level pages that don't have their own category template file to refer to their parent category template file. In my other post, Richard M. gave an excellent answer that solved the problem for an individual subcategory. Does anyone know how to abstract it?...

What Design Pattern to use?

The problem to model is this: A hierarchy of levels within an Army, starting with the national army in whole, through field armies, subunits, and eventually the individual men. Each level may involve links to one or more other classes such as General or Officer or whatever. The units within say a field army need to be able to communicat...

SQLite and hierarchy in one request, how to do so?

Facts I have a pretty simple table: ID, name, PARENT_ID I would like to retrieve the hierarchy from down to top in one query using SQLite. Question : How can I do that ? Is there any request that will let me do that in One request? I´ve read about the 'Modified Preorder Tree Traversal', it is straight forward to get the hierarchy ...

Parent/Child(ren) Hierarchy / "Nested Sets", in Python/Django

I'm using Django/Python, but pseudo-code is definitely acceptable here. Working with some models that already exist, I have Employees that each have a Supervisor, which is essentially a Foreign Key type relationship to another Employee. Where the Employee/Supervisor hierarchy is something like this: Any given Employee has ONE Super...

Advice on using (or not using) XML in a hierarchical object model

I'm developing a hierarchical object model that is self-referencing as a 0/1 --> * relationship. An object without a parentID is a root element. The parentID is also the foreign key on the self-join. From my understanding, using the parentID as a foreign key will only point to a column where child elements may be found --> does this forc...

Howto design Tables for Navigating Hierarchical Regions with Diamond Structures

Our solution needs us to work in hierarchies of regions which are as follows. STATE | DISTRICT | TALUK / \ / \ HOBLI PANCHAYAT \ / \ / ...

WPF: Problem with Hierarchy

I've noticed a problem I'm having depending on the Hierarchy of items. When I wan't to represent the items I have no idea how to put it's children in a manageable state. Let's take a TreeView for example. When the window is loaded up I can take the model and put it into a view and as a source for the tree. However I seem to have no real...

Threads hierarchy design in kernel in CUDA

Assuming a block has limit of 512 threads, say my kernel needs more than 512 threads for execution, how should one design the thread hierarchy for optimal performance? (case 1) 1st block - 512 threads 2nd block - remaining threads (case 2) distribute equal number of threads across certain blocks. ...

What is the best user interface for showing hierarchy within a hierarchy in a WinForm app

We have the following hierarchy: Environment->Machines->Local contents within a machine We are planning to show this hierarchy using an in-place navigation just like the Windows File explorer feature in Vista and beyond. We have a set of performance counters for environments and for machines. In addition, these counters also have an ...

Scala DSL without extra syntax

Hey, I asked myself this question a couple of times and came up with a solution for that feels very dirty. Maybe you can give me any advice since I think this is a basic problem for every DSL written in Scala. I want to have a hierarchical structure of nested objects without adding any extra syntax. Specs is a good example for this: M...

CALayer, anchorPoint and layer hierarchy

Hi, I try to use the anchorPoint in a layer hierarchy to move a layer with its sublayers. Unfortunately the sublayer did not move together with the root layer. In a custom NSView is set up my layer hierarchy like in the following snippet. CALayer * rootLayer; rootLayer = [[CALayer layer] retain]; rootLayer.position = CGPointMake(...); ...

Create view in Drupal with a taxonomy argument that displays values for hierarchies

Hi there, I'm trying to get my view to work correctly using a taxonomy argument. My taxonomy has a hierarchy so if I supply the main taxonomy term (which has various sub-terms), I want it to show results for the main term plus all the sub-terms. However, at the moment it is only supplying results for the main term and excludes it's sub-...

How to symlink folders and exclude certain files

Hey Guys, I'm not a server guru (unfortunately) but have a decent knowledge of linux & bsd. I'm trying to symlink multiple instances of HLDS (game server) but need to exclude certain folders & config files to achieve this properly. I need to do it this way as HLDS loads many mods automatically, and putting an exception to disable the mo...

JPA: How to have one-to-many relation of the same Entity type.

There's an Entity Class "A". Class A might have children of the same type "A". Also "A" should hold it's parent if it is a child. Is this possible? If so how should I map the relations in the Entity class? ["A" has an id column.] ...