I'm trying to parse some placemarks on a Google Earth .kml file. I'm creating the document, and going through the placemarks, and I'm able to access all placemark names, but I can't access their descriptions:
for (NSXMLNode *placemark in nodes) {
NSArray *elements = [placemark nodesForXPath: @"name" error:&err];
NSXMLNod...
Hello, I'm using TOR and I want to know, how to switch between result-nodes with need country. I can simply change it by telnet the 9051 port like:
telnet localhost 9051
"AUTHENTICATE\r"
"signal NEWNYM\r"
"quit\r"
This will chose randomly the exit(result) node. My goal is to change that node to the node from need country. I didn't fin...
Hi,
I'm using websphere 7.0.0.9 over windows with a topology like this:
physical-server-1
Cell01
DMgr
Node01 w/Server01
physical-server-2
Node02 w/Server02
The Node02 is federated to Cell01 and works fine for a few weeks (i'm testing a clustered application over server01 and server02, nothing special)
But now in administrative cons...
Hi,
I am trying to attach a node to a DOM document in the example code shown below.
1)I initialized the nodes "title, type" to null.
2)I tried to append these above nodes to the Document "child_doc" and then tried to set a new value to these nodes.
But on doing the above, I am getting a java.lang.NullPointerException at this line:
...
I'm trying to publish messages to RabbitMQ, from a Ruby script (using Bunny) and consume them from a node.js server (using node-amqp).
The first message arrives successfully, but then an error is logged inside node.js, and the connection closes, and no further messages are received:
mu:charlie-node tom$ node charlie.js
22 Jul 09:11:04...
I'm creating a pretty simple form, and I'm running into an issue with Controls/components shifting position (textboxes and checkboxes in particular) by a few pixels upon selection. It's by no means breaking my interface, but you can imagine it's a bit of an irritant. I have a feeling it's an issue with the custom node(s) I've created... ...
Hi,
Is there a way I can keep the text of a Parent node but remove the link? The treeview parent node is used just as a header, no navigation.Any help would be great.Thanks.
private void BindNodes(string PtID)
{
if (PtID != "")
{
int PatientID = Convert.ToInt32(PtID);
DBCo...
I am adding child as:
containerComponent.addChild(newComponent);
But, it adds it as last child. How can I add newComponent as first child of containerComponent?
...
I am new to Drupal and I am trying to figure out how to theme a Content Type. I am building a Realtor site for a client whereby my main content type will be something like 'Property Listing'. I have installed all the necessary modules to help me upload images and everything works properly. I need to be able to display BOTH the Fullsize a...
I'm writing an app that lets users generate images with Raphael.JS. One of the secondary features I want is to generate a PNG of the Raphael canvas.
Here's the general pipeline in my head:
User inputs parameters
We generate JS with Raphael calls
We generate a JS wrapper that does the above and calls .innerHTML on the containing div, ...
Having and issue with an ejabberd cluster. While trying ping the first node from the second, I'm getting :
"Connection attempt from disallowed node"
I know it's not a cookie issue, because the cookies on both servers match.
...
How can I have XSLT wrap input XML within a parent node, only if it doesn't already exist?
For example, if my input is:
<Project>...</Project>
I want to wrap it with a prefix and a suffix:
<?xml version "1.0" encoding="utf-8">
<Site>
<Project>...</Project>
</Site>
If however, <Project> is not the root node of the input, I'd like...
I created a usercontrol with a treeview inside it. The treeview will be populated if I add nodes in the onload handler of the usercontrol. But after that(for example, I click a button in its parent form), the treeview will not refresh. I can see the nodes was updated in memory, but it just cannot display on the screen. I called refresh/u...
Is it possible to tell whether a node is contained within (or equal to) another node in XSLT? For example, consider this code snippet:
<xsl:variable name="itemSection" select=".."/>
<xsl:for-each select="key('enemyItems', @key)">
<xsl:variable name="enemyList" select="./attributes/@value"/>
<xsl:variable name="enemyListSection"...
Hi,
I'm using xmlwriter to create an xml document. The xml document looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<ExceptionsList />
How can i prevent the /> and appropriately end the root node?
Because of this, i can't append anything to the root node.
My code for creating the xml file looks like this:
string formatD...
I have a custom content type called 'business-profile' and I have the template files 'node-business_profile.tpl.php' which works fine, but I want to be able to edit the layout of the $content variable
ie I want display some elements in particular divs etc
What is the best approach?
...
First, I apologize the title is so vague. Its hard to explain what I want to accomplish. Anyhow, I want to build a template that requires a pool of nodes (Content Type A) to be presented along side the main content of a page (Content Type B). This Content Type A could be seen as a box if you like. As you create a new page (Content Type B...
So I know the exact path the node I would be attempting to remove. I am iterating through several xml files to update some of the content. In order to add some of the new content in, I must first delete the content that already exists.
Here is the code I attempted to use, but I'm receiving a Parse error: syntax error, unexpected T_UNS...
After answering this question I am left wondering why removeChild needs a parent element. After all, we could simply do
node.parentNode.removeChild(node);
As the parent node should be always directly available to the Javascript/DOM engine, it is not strictly necessary to supply the parent node of the node that is to be removed.
Of co...
I am trying to execute this MongoDB command in Node.js:
db.events.group({
key : {
'timestamp.d' : true
},
cond: { 'event_name': 'search' },
initial : {
'count' : 0,
'empty' : 0,
'redos' : 0
},
reduce : function(item, summaries){
summaries.count++;
if (item.result_count == 0){
summaries.empty++;
...