[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
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •[SOLVED] gexf4j and spells - Page 2
Page 2 of 2

Re: gexf4j and spells

Posted: 16 Apr 2012 23:03
by redcrow
Uhm... I'm not sure if we're talking about the same concept. Before changing code again, I need to know if I've understood what you've meant.

First possibility:
I have a date (Date object in java) and I have to convert it to an integer (i.e., epoch timestamp, like this: http://www.epochconverter.com/). If this is the case, what kind of conversion should I use for double?

Second possibility:
I've just got a number (e.g., 234 or 123.45678) and simply put it in start(open)/end(open) attributes.

Which is the case, the first one or the second one?

Thank you,
Francesco Ficarola

Re: gexf4j and spells

Posted: 17 Apr 2012 20:09
by admin
It's the second one.

Re: gexf4j and spells

Posted: 17 Apr 2012 22:55
by redcrow
admin wrote:It's the second one.
Ok, I've changed the methods:

startDate(Date d) --> startValue(Object o)
endDate(Date d) --> endValue(Object o)

Then, in the DynamicEntityWriter class, I check if the Object "o" is a istance of the chosen type in the timeformat attribute, otherwise an exception is thrown.

Now, would you like to test it before publishing? I've done some tests, but if somebody wants to contribute... you're welcome.

Maybe it needs to create a google code project... what do you think of that?

Bye,
Francesco Ficarola

Re: gexf4j and spells

Posted: 18 Apr 2012 11:05
by admin
Yup, Github seems a better place: https://github.com/

I'll get the code when it's on this platform.

thanks!

Re: gexf4j and spells

Posted: 18 Apr 2012 14:10
by redcrow
admin wrote:Yup, Github seems a better place: https://github.com/

I'll get the code when it's on this platform.

thanks!
https://github.com/francesco-ficarola/gexf4j