nodes

social graph problem (path between users)

I have received the task to make a social graph, where, with one user in the center, it shows the connections he has. But before we can reach that, our focus is how we can determine the shortest path between 2 users. I found some algorithm to do it, but it seems that it takes a lot of time, and because it's about social links, we are loo...

How to Fix 'No Suitable Nodes' Error?

I have a site with an image uploader, and whenever a user tries to upload an image, they are getting this error message: "No suitable nodes are available to serve your request." I've contacted the hosting company(mosso) and they have said that it is nothing on their end. Any idea what causes this issue, and what I can do to fix it? ...

Why is NULL undeclared?

I have a problem with this struct contructor when I try to compile this code: typedef struct Node { Node( int data ) // { this->data = data; previous = NULL; // Compiler indicates here next = NULL; } int data; Node* previous; Node* next; } NODE; when I come this error occurs: \linkedli...

Average Number of XML Relations

Hi Geeks, I would like to know if there is any estimation of the Average Number of XML Relations in an average sized DTD File Thanks, ...

Finding the longest chain of same-type nodes

I have a tree structure of interconnected nodes of various types. Each node keeps track of which nodes it is connected to. In this structure I need to find the longest unconnected chain or path of same type nodes. I've read up on graphs and breadth/depth first searches but these don't quite yield the results I need. (they'll find a chai...

Replacing a html tag with another tag using JS DOM

Hi everybody, I am fairly new to javascript and DOM and I am having a problem with manipulating DOM using javascript for the following html code. <html> <head> <title>Testing</title> </head> <body> <marquee direction=up height=400 scrollAmount=3.7 scrollDelay=70 onmousedown="this.stop()" onmouseover="this.stop()" onmousemove...

Simple XML - Dealing With Colons In Nodes

Im trying to read an RSS feed from Flickr but it has some nodes which are not readable by Simple XML (media:thumbnail, author flickr:profile, ...) How do I get round this? Im trying to get the thumbnail by the way. P.S. My head hurts when I look at the documentation for the DOM. So I'd like to avoid it as I dont want to learn. ...

Mysql NDB Cluster add another data node after setup

Hi All, I have a NDB Cluster set up with two data nodes, i want to add third data node in this, What steps i need to follow. For ex:- I have to install mysql server on that third server and change the config file add the third server ip. Please correct me if i am wrong Thanks in advance ...

What DOM manipulation can be done on Text nodes?

I'm going through the DOM using childNodes and I have a reference to a Text node, and I need to modify its "inner HTML" .. but I tried and it does not work or have such a property. Apart from replaceChild(), what functions can I use to manipulate the inner HTML of this Text node? ...

Sync'ing ejabberd nodes at startup

I am running into an issue that appears to be un-resolvable. I have a need to pass in the function mnesia:change_table_copy_type(schema, node(), disc_copies). at the command line whe the db is created from the master node. the erl start is: erl -name NODE1 -mnesia extra_db_nodes \"['MASTER']\" -s mnesia When I start the shell then enter...

Drupal: Multiple Node Creation

I've found myself in a situation where I need to have one node that allows for only ONE image to be associated with it. In other words, the maximum images that be can be attached to my image type "IMAGE", is 1. My problem is, that users must be able to upload several images at once. So, I need one of the following: A way to create seve...

Is nodeIndex a valid DOM element property in IE?

I came across some javascript at work today that used jQuery to fetch two elements. It then used elem.nodeIndex to determine the position in the elements parent for each element. Nothing is setting this property anywhere and I do now see a reference to it in the msdn, mdc, or anywhere else. I stepped through this javascript in FireFox ...

What is the best library for generating visual object graphs in PHP (or JavaScript) (e.g. for depicting a social network)

I have a requirement to graphically depict relationships between a set of objects as well as their types in a PHP application. The relatinships would be previously generated. I am only looking for a tool, preferably free, that will display the nodes and their relations. I am open to PHP or JavaScript or any thing that will work as long...

Moss Sub sites navigation elements

My site structure looks like this: - top-level site --sub-site ---page ---page --sub-site ---page I want to disable the link on the tab of each sub-site that currently links to default.aspx so that it acts as a heading to the pages only and not a url that can be clicked. When users navigate over the sub-site tab, the pages drop down m...

Networkx node traversal

Using Python's Networkx library, I created an undirected graph to represent a relationship network between various people. A snippet of my code is below: import networkx as nx def creategraph(filepath): G=nx.Graph() #All the various nodes and edges are added in this stretch of code. return G From what I understand, eac...

How to create a Flow chart? Javascript or Flash?

I want to create a simple graph as this screeshot : : the nodes must be clickablea nd they must have various forms. the arcs must have various colours and arrows! I found this javascript library :Raphael but I can't write into the nodes. Can anybody help me to find a library, javascript or flash, that create a sample graph as the scr...

Fixed length path between two graph nodes.

Is there an algorithm that will, if given two nodes on a graph, find a route between them that takes the specified number of hops? Any node can be connected to any other. The points at the moment are located in 2D space, so I'm not sure if a graph is the best approach. ...

Innerhtml position

On an html-page I have from 0-4 divs with a specific class name. What I want to do is get the html from the start to the first div, then from div1 position to div2 position, then div2 to div3, div3 to div4, and lastly div4 to end html. Ive managed to do this with html.substring(0, div1.innerhtmlPos) , html.substring(div1End, div2.inner...

C# Search and Set Node Values

With my other question: http://stackoverflow.com/questions/1672750/c-showing-multiple-xml-data-entires-with-the-same-node-value I have one more question, in the part: XmlNodeList allNodes = doc.SelectNodes("/Lessons/Lesson[Date='01/01/2010']"); Is there a way to put a string with a value in it (that I already have setup) in the part ...

Erlang Ets tables between Nodes

I've got an ejabberd server with a good amount of custom modules running. I have several mnesia tables and I know these can be easily copied between nodes without any change to the code at all. I was wondering if there's a similar way with ets tables? Ideally it'd be nice to be able to have several machines running with exactly the sa...