[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
Gephi forumsPlease post new questions on facebook group too (https://www.facebook.com/groups/gephi) 2012-02-02T16:20:57+01:00 https://www.forum-gephi.org/app.php/feed/topic/1642 2012-02-02T16:20:57+01:002012-02-02T16:20:57+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5588#p5588 <![CDATA[Re: Graph Streaming - URL formatting question]]>
thanks for investigating again. i hadn't tested Mathieu's use case since i'm only working with nodes at this point (no pun intended). i'll give it a shot later today.

other than that, things are working fine in respect to rendering. for whatever reason, ints are ignored for coordinates which cause the node to not be added to the graph, but it's not a deal breaker for me (in fact i need to pass doubles).

also... my company is planning on giving you guys a donation in recognition for all your help. again, i really appreciate your assistance and quick turn around with this.
ben

Statistics:Posted by digimetic — 02 Feb 2012 16:20


]]>
2012-02-01T17:00:31+01:002012-02-01T17:00:31+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5581#p5581 <![CDATA[Re: Graph Streaming - URL formatting question]]> About the "Error getting property value" you get when passing a hex code to the color property, I was able to reproduce it and I found a correction.
However, about the problem when passing integers to the x, y, and z properties, I was not able to reproduce it. It is possible that you had hit some bug which was corrected in the main branch (maybe the bug referred by Mathieu in the last message).

Statistics:Posted by panisson — 01 Feb 2012 17:00


]]>
2012-02-01T08:36:51+01:002012-02-01T08:36:51+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5578#p5578 <![CDATA[Re: Graph Streaming - URL formatting question]]> Statistics:Posted by mbastian — 01 Feb 2012 08:36


]]>
2012-01-31T19:46:26+01:002012-01-31T19:46:26+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5574#p5574 <![CDATA[Re: Graph Streaming - URL formatting question]]> I'll take a look in the other defects you pointed out.
The r,g,b values should be the percentages between 0 and 255.
I'll let you know when the new version will be available.

Statistics:Posted by panisson — 31 Jan 2012 19:46


]]>
2012-01-31T19:36:48+01:002012-01-31T19:36:48+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5573#p5573 <![CDATA[Re: Graph Streaming - URL formatting question]]>
the latest version works with empty graphs. well done.

i also tested your examples above, and in fact, passing integers to the x, y, and z properties doesn't jive. again, no exceptions, but the node is not created. appending a .0 to define the values as floating types works, however.

passing ints to the size property is ok.

also, passing a string hex code to the color property, either upper or lower case works, but the edit panel complains with "Error getting property value", even though the correct color is rendered.

and just to verify, the values 0 through 1 for r,g,b represents the percentage between 0 and 255, correct? i have to remind myself that we're working with pixel light, not actual color.

thanks again,

ben

Statistics:Posted by digimetic — 31 Jan 2012 19:36


]]>
2012-01-31T19:16:52+01:002012-01-31T19:16:52+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5572#p5572 <![CDATA[Re: Graph Streaming - URL formatting question]]>
i had just figured out the color and coordinates assignments. the syntax seems a little fickle in that passing integers to the x and y properties fails, yet passing floats works. didn't realize it was double values between 1 and 0 for rgb. and i stumbled upon passing a hex code as a string for color; it works, but the Edit panel shows an error for the Color property: "Error getting property value", even though the correct color is assigned to the node. not a big deal for me; again it works :)

i'll test the update shortly.

ben

Statistics:Posted by digimetic — 31 Jan 2012 19:16


]]>
2012-01-31T18:23:30+01:002012-01-31T18:23:30+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5571#p5571 <![CDATA[Re: Graph Streaming - URL formatting question]]> Let me know if it works now.

You should be able to modify the following viz attributes:
x,y,z (integer or double)
r,g,b (doubles between 0 and 1)
color (example: "0xcccccc")
size (integer or double)

Examples of calls using curl:
curl "http://localhost:8080/workspace0?operation=updateGraph" -d "{\"an\":{\"B\":{\"label\":\"Streaming Node B\",\"size\":10}}}"
curl "http://localhost:8080/workspace0?operation=updateGraph" -d "{\"cn\":{\"A\":{\"x\":10,\"y\":10,\"z\":1}}}"
curl "http://localhost:8080/workspace0?operation=updateGraph" -d "{\"cn\":{\"A\":{\"r\":1,\"g\":1,\"b\":0 }}}"
curl "http://localhost:8080/workspace0?operation=updateGraph" -d "{\"cn\":{\"A\":{\"color\":\"0x00ff00\"}}}"
graphstreaming.zip

Statistics:Posted by panisson — 31 Jan 2012 18:23


]]>
2012-01-31T18:04:31+01:002012-01-31T18:04:31+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5570#p5570 <![CDATA[Re: Graph Streaming - URL formatting question]]>
i've tried passing values as both strings and ints and no exceptions are thrown (not sure if they're ignored since other actions like, delete a node that doesn't exist, doesn't throw an exception either). the nodes don't appear in the data table. perhaps i'm just not using the correct attribute names?

thanks again for your help with this.

Statistics:Posted by digimetic — 31 Jan 2012 18:04


]]>
2012-01-31T17:40:27+01:002012-01-31T17:40:27+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5567#p5567 <![CDATA[Re: Graph Streaming - URL formatting question]]>
thanks for doing this. i did some testing and data were successfully passed to the non-empty gephi file. nodes were added, deleted, and attributes were updated.

however, it appears now that the Master cannot be started unless the graph is non-empty. that is, starting from a new project and a graph having zero nodes, you cannot start the Master. thinking that the status icon (i.e. the red or green dot to the left of the Master Server item) might not be reporting an accurate status, i did try to create a node via cURL; it reported back "curl(7) couldn't connect to host".

that said, if you create a new file and add a single node, you can then start the Master successfully.

thanks again,

ben

Statistics:Posted by digimetic — 31 Jan 2012 17:40


]]>
2012-01-31T14:35:14+01:002012-01-31T14:35:14+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5563#p5563 <![CDATA[Re: Graph Streaming - URL formatting question]]> Could you please install and test the attached file? I'm posting here because unfortunately github does not support attachments in its issue tracking system.
Thanks,
André
graphstreaming.zip

Statistics:Posted by panisson — 31 Jan 2012 14:35


]]>
2012-01-30T18:34:55+01:002012-01-30T18:34:55+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5556#p5556 <![CDATA[Re: Graph Streaming - URL formatting question]]> Statistics:Posted by digimetic — 30 Jan 2012 18:34


]]>
2012-01-30T18:15:11+01:002012-01-30T18:15:11+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5555#p5555 <![CDATA[Re: Graph Streaming - URL formatting question]]> https://github.com/gephi/gephi-plugins/issues/3, and I'm working on it.
New comments and patches will be posted there.

Statistics:Posted by panisson — 30 Jan 2012 18:15


]]>
2012-01-30T18:06:01+01:002012-01-30T18:06:01+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5554#p5554 <![CDATA[Re: Graph Streaming - URL formatting question]]> It seems there's a bug in the lock/unlock operations when the http server is started. It happens when the server is started with a non-empty graph in the workspace. I'm looking it right now, and I'll let you know when a patch will be available.
Thanks for your patience.

Statistics:Posted by panisson — 30 Jan 2012 18:06


]]>
2012-01-30T13:35:21+01:002012-01-30T13:35:21+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5552#p5552 <![CDATA[Re: Graph Streaming - URL formatting question]]>
by "streaming" i mean pushing any json string to the master's url

for example, you can go through the sample steps on the Streaming specification on the wiki (create the three nodes via cURL statements at a command prompt). when you're done, rename the workspace, and save the file, and close Gephi. then open Gephi again, open that file, and start the Master. again, execute a few more cUrl statements; try statements for adding new nodes, changing existing nodes (e.g. size attribute), deleting nodes, et al. no matter what, cUrl remains unresponsive and the graph remains unchanged.

in my case, i'm using the latest build of Geph as well as the latest version of the Streaming plug-in (as far as i can tell, i'm downloading it from within the Gephi plug-in installer). my machine is running Windows 7 64bit. there's nothing special about the Master that i've set up; it's using the default URL (http://localhost:8080/), no username or password and no SSL.

additionally, i'm using an SSIS package (SQL Server 2008) to manage the streaming actions. data is parsed from a database, and a stored procedure is used to parse that data into json statements. each of those statements is then iterated over and passed as an HTTP request via a C# scripting task. when the package first executes on a new Gephi file, everything is fine. i can watch thousands of nodes fill the workspace over time (it's quite nice actually). however, subsequent executions of the package hang when attempting to pass data to Gephi. thinking it might be something with the package that was failing, i've tested by passing requests from cUrl at a command prompt to Gephi - but the problem still happens. the request seems to get caught up on something; it almost behaves likes it's being responding to thread blocking behavior where the call just sits there waiting for its turn.

it's been years since i've done any serious Java development, so i'm hesitant to debug this in Eclipse. wish i could give you more details in that respect.

thanks again for your help. really appreciate it,

ben

Statistics:Posted by digimetic — 30 Jan 2012 13:35


]]>
2012-01-30T13:06:44+01:002012-01-30T13:06:44+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5551#p5551 <![CDATA[Re: Graph Streaming - URL formatting question]]> Statistics:Posted by panisson — 30 Jan 2012 13:06


]]>
2012-01-27T21:48:41+01:002012-01-27T21:48:41+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5532#p5532 <![CDATA[Re: Graph Streaming - URL formatting question]]>
well, the change met with partial success. using lowercase letters for the workspace name in the URL definitely worked.

however, trying to apply additional changes to the .gephi file doesn't work. here's a use case:

*open existing file having previously streamed data (same format, attribute names, data types, etc)
*start the Master Server
*attempt to stream data to the file

basically the process used to push data at the 3rd step above just hangs; i've tried both cURL and scripting HTTP requests in a c# console app. same results, things just hang w/out any thrown expecptions, timeouts, et al.

and other thoughts on why this might be happening?"

thanks,

B

Statistics:Posted by digimetic — 27 Jan 2012 21:48


]]>
2012-01-27T04:40:19+01:002012-01-27T04:40:19+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5526#p5526 <![CDATA[Re: Graph Streaming - URL formatting question]]>
yep, extremely useful plug-in fact; i love it! i was doing case-matching in the URL. e.g. both the workspace name and URL contained the string "NewWorkspaceName".

i'll give it a shot with lowercase only.

thanks again!

B

Statistics:Posted by digimetic — 27 Jan 2012 04:40


]]>
2012-01-27T00:01:15+01:002012-01-27T00:01:15+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5522#p5522 <![CDATA[Re: Graph Streaming - URL formatting question]]> The context used in the URL is given by the lowercase of the workspace name without spaces.
The code used for the context extraction is the following:

CODE:

WorkspaceInformation wi = workspace.getLookup().lookup(WorkspaceInformation.class);String context = "/"+wi.getName().replaceAll(" ", "").toLowerCase();
If you are using a workspace with name "New Workspace Name", you should use the following URL:

CODE:

http://localhost:8080/newworkspacename?operation=updateGraph -d "{...}"

Statistics:Posted by panisson — 27 Jan 2012 00:01


]]>
2012-01-26T20:54:57+01:002012-01-26T20:54:57+01:00 https://www.forum-gephi.org/viewtopic.php?t=1642&p=5521#p5521 <![CDATA[Graph Streaming - URL formatting question]]>
I'm hoping this question is easy enough to answer. So far I've had terrific success using the Streaming plug-in. However, throughout all my testing I was creating new projects & workspaces where the default name of the workspace was "Workspace 0". Again, this always works:

CODE:

"http://localhost:8080/workspace0?operation=updateGraph -d "{...}"


Yet when I've saved a project and renamed the workspace, I can't seem to figure the value for the URL string using the new workspace name. e.g.

CODE:

http://localhost:8080/newWorkspaceName?operation=updateGraph -d "{...}"
No exceptions are thrown, but the graph data isn't getting updated. Thoughts? I'm hoping I'm just being dumb about the syntax.

Many thanks,

- B

Statistics:Posted by digimetic — 26 Jan 2012 20:54


]]>