Re: [Neo4j] [Neo] Neo4j Screencasts?

2010-05-25 Thread Ajay Sharma
Hi Peter,

I think walk-through is a nice idea, i had a very tough time configuring neo
with java since i never used one before, so something that goes into details
with configuring maven,lucene and neo-kernal would be very helpful.

P.s -> i should mention that neo on jruby worked like charm without any
problems at all and now am working with state-of-the-art REST server.

Am in love with NEO :-)




On Tue, May 25, 2010 at 12:25 PM, Eelco Hillenius  wrote:

> > Anything more?
>
> I'd love to see a walkthrough on visualization (how do I make pretty
> pictures of my graphs).
>
> Eelco
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] imdb example on RoR and neo

2009-09-23 Thread Ajay Sharma
Sorry about that was a spelling mistake.

On Wed, Sep 23, 2009 at 2:20 PM, Anders Nawroth wrote:

> Hi!
>
> > Error: undefined method name 'name' for
> >
> #
> >
> RelationshipTrverser
>
> Spelling mistake?
>
>
> /anders
>
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] imdb example on RoR and neo

2009-09-23 Thread Ajay Sharma
i'v been trying to extend the imdb example.

i want to add a person node in it

i have created :

Model: person.rb

Controller: persons_controller.rb

Views: new,edit,show,index
for the same.

the problem arises while i try to create a new person using the route
pattern as in actors and movies.

Error: undefined method name 'name' for
#

My version of "show" view's code is

Show Person

 
   Name: <%= @person.name %> #error in this line
 
 
   Age: <%= @person.age %>
 
 
   Email: <%= @person.email%> 
 


"New" node contains

New Person

   <% form_for @person,:url=>{:controller =>
'persons',:action=>'create'} do |f| %>
 
   <%= f.label :name %>
   <%= f.text_field :name %>
 
 
   <%= f.label :age %>
   <%= f.text_field :age %>
 
 
   <%= f.label :email%>
   <%= f.text_field :email %>
 
 
   <%= f.submit "Update" %>
 

   <% end %>

   <%= link_to 'Back', persons_path %>
.

Where am i going wrong?
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] neo movie database example ROR

2009-09-22 Thread Ajay Sharma
Could anyone please tel me what thsi line does in MOVIE databse example of
neo ROR platform


  * <%= link_to 'New Actor', new_Actor_path %>*


i suppose this is the link to call the new creation page of actor. but what
exactly "*new_Actor_path" means here.


*

-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] Help!!!!

2009-09-09 Thread Ajay Sharma
C:/Program Files/NetBeans
6.5.1/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require': IO error -- neo4j/relationships/wrappers (LoadError)
from C:/Program Files/NetBeans
6.5.1/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
from C:/Program Files/NetBeans
6.5.1/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/neo4j-0.3.1/lib/neo4j.rb:24
from C:/Program Files/NetBeans
6.5.1/ruby2/jruby-1.1.4/lib/ruby/gems/1.8/gems/neo4j-0.3.1/lib/neo4j.rb:32:in
`require'
from C:/Program Files/NetBeans
6.5.1/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'


help needed with this.





-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] Jruby on rails

2009-09-09 Thread Ajay Sharma
Hi all,

Has anyone tried embedding neo4j with jruby on rails?

Any suggestions?


Regards

-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] UI with neo backend

2009-09-04 Thread Ajay Sharma
Thanks peter...has anyonne implemented anything close to real life
problem...something like that railways system.
i just want to see how to integrate UI along with the NEO.

forgive my naiveness.



On Fri, Sep 4, 2009 at 8:41 PM, Peter Neubauer wrote:

> Hi Ajay,
> for a basic generic UI, look at the Neoclipse project,
> http://wiki.neo4j.org/content/Neoclipse_Guide for a starting point ...
>
> /peter
>
> GTalk:  neubauer.peter
> Skype   peter.neubauer
> Phone   +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter  http://twitter.com/peterneubauer
>
> http://www.neo4j.org- Relations count.
> http://www.oredev.se- The best thing since the wall came
> down.
> http://www.linkedprocess.org   - Distributed computing on LinkedData scale
>
>
>
> On Fri, Sep 4, 2009 at 5:03 PM, Ajay Sharma wrote:
> > hello all,
> >
> > i been playing with neo for sometime now.
> >  am able to consume basic neo webservice through .net and an UI layer
> above
> > that.
> >
> > but not able to use the real power of neohas anyone done any project
> > which include UI layer over the neo.
> > (preferrably in java or ruby)
> >
> >
> > Regards
> >
> > --
> > Ajay Sharma
> > ___
> > Neo mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] UI with neo backend

2009-09-04 Thread Ajay Sharma
hello all,

i been playing with neo for sometime now.
 am able to consume basic neo webservice through .net and an UI layer above
that.

but not able to use the real power of neohas anyone done any project
which include UI layer over the neo.
(preferrably in java or ruby)


Regards

-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] out of swap space

2009-07-21 Thread Ajay Sharma
*This is a serious issuequestions the realiability of the database.*

On Tue, Jul 21, 2009 at 2:06 PM, Symeon (Akis) Papadopoulos
wrote:

> Hi all
>
> While processing a large Neo graph (in the order of 300k nodes - 2M
> edges), the Java Virtual Machine crashed with the following message:
>
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> # java.lang.OutOfMemoryError: requested 1024000 bytes for GrET in
> C:\BUILD_AREA\jdk6_05\hotspot\src\share\vm\utilities\growableArray.cpp.
> Out of swap space?
> #
> #  Internal Error (allocation.inline.hpp:42), pid=308, tid=3572
> #  Error: GrET in
> C:\BUILD_AREA\jdk6_05\hotspot\src\share\vm\utilities\growableArray.cpp
> #
> # Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing
> windows-x86)
> # An error report file with more information is saved as:
> # [location on my hard drive]\hs_err_pid308.log
> #
> # If you would like to submit a bug report, please visit:
> #   http://java.sun.com/webapps/bugreport/crash.jsp
> #
>
> Most posts I've seen on the net regarding this issue suggest reducing
> the memory used by the JVM by means of a lower -Xmx value.
> Although I tried this (lowering from 1024m to 768m and then to 512m on a
> Windows machine with 2GB RAM), the JVM crash still occurred.
> Are you aware of any Neo-specific programming practices that would help
> avoid this crash?
>
> PS> The same problem was reported by a colleague of mine while
> processing a different graph of similar size on his Windows PC
> (equipped with more memory - 4GB).
>
> Best regards,
> Akis
>
> _______
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Jruby implementation

2009-07-15 Thread Ajay Sharma
Thanks Anders that helped.




On Wed, Jul 15, 2009 at 9:43 PM, Anders Nawroth wrote:

> Hi Ajay!
>
> > is there any walkthrough available to make it run??
> >
>
> There's lots of information on this page:
> http://github.com/andreasronge/neo4j/tree/master
>
> > what file to download??
> >
>
> Just follow the instructions on the page above (installation section)!
>
> Since yesterday (!) there is also a google group for the Neo4j Ruby
> library:
> http://groups.google.com/group/neo4jrb/
>
>
> HTH,
> anders
>
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] Jruby implementation

2009-07-15 Thread Ajay Sharma
Hey ,
read abt jruby release for neo4j
and good to hear abt the REST implementation including.

is there any walkthrough available to make it run??

i have just installed jruby and could someone just help me with integrating
neo4j with it?
http://github.com/andreasronge/neo4j/blob/master/CHANGELOG#
where to go from this link??

what file to download??



i knw too much to ask.


regards
Ajay
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Investigating railway network application using Neo4j

2009-07-07 Thread Ajay Sharma
Excellent exampleshow the capabilites of graph based DB and neo rules
it.

btw how are you planning to integrate the UI??

would you suggest using JRUBY for heavier load, i'v read it has certain
issues with slow script loading and multi threading.

regards

Ajay

On Tue, Jul 7, 2009 at 6:03 PM, Bert Fitié  wrote:

>
> On 7 jul 2009, at 14:17, Anders Nawroth wrote:
>
> > Hi Bert!
> >
> >> I think I solved the traverser part of my railnet example demo. I
> >> extended the demo a little bit and made an as-complete-as-possible
> >> write-up of it. I learned a lot with this demo exercise. The write-
> >> up is
> >> below, maybe of interest for some other Neo4j beginner.
>
> Hi Anders,
>
> >
> > I think it would make an excellent wiki entry! I could do some
> > wikifying
> > on it soon.
> >
>
> Thanks for your comment and your idea of "wikifying" it. I'm all for
> it. If you need additional info, or if you have ideas for
> adapting/extending the demo (and still keeping it simple), let me know.
>
> -- Bert
>  _______
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] neo4j on .NET

2009-07-02 Thread Ajay Sharma
i dnt knw whether its related to the topic or not
but am working on creating restful web service using jersey and then
planning to implement and consume these service through .NET WCF.(WSE seems
good option to me)
or using silverlight's webservice support.

please let me know what you guys think about this approach.

suggestions are more then welcome.

Thanks
Ajay


On Thu, Jul 2, 2009 at 8:54 PM, Antonello Provenzano
wrote:

> Johan,
>
> I checked out the latest sources from the SVN server of Neo and I
> haven't found the entry point you told me about (EmbeddedNeo
> constructor with "use_memory_mapped_buffers" parameter): can you
> clarify me if this can be found in some branch of the project or if
> isn't yet committed?
>
> Thank you!
> Antonello
>
>
> On Thu, Jul 2, 2009 at 3:09 PM, Antonello
> Provenzano wrote:
> > Johan,
> >
> > Thank you for the nice news (and sorry for the late response: I've
> > been on holidays and when came back I found loads of stuff to
> > accomplish): I will dig out soon and come back to you...
> >
> > Cheers.
> > Antonello
> >
> >
> > On Mon, Jun 8, 2009 at 1:48 PM, Johan Svensson
> wrote:
> >> Antonello,
> >>
> >> Just thought I'd mention that trunk now has support for non memory
> >> mapped buffers. When starting Neo4j just pass in:
> >>
> >> use_memory_mapped_buffers=false
> >>
> >> as a parameter to the public EmbeddedNeo( String storeDir,
> >> Map params ) constructor.
> >>
> >> The code of plain buffer/direct buffer ports of previously memory
> >> mapped ones are:
> >>
> >> org.neo4j.impl.nioneo.store.PlainPersistenceWindow
> >> org.neo4j.impl.transaction.xaframework.DirectMappedLogBuffer
> >>
> >> Regards,
> >> Johan
> >>
> >> On Tue, May 5, 2009 at 8:22 PM, Johan Svensson 
> wrote:
> >>> Next release of Neo4j (b9) will have an option not to use memory
> >>> mapped buffers but instead either use direct buffers or normal Java
> >>> buffers. A .NET port could replace the
> >>> org.neo4j.impl.nioneo.store.MappedPersistenceWindow with a different
> >>> implementation that does not use the MappedByteBuffer (b9 will soon
> >>> have such an implementation).
> >>>
> >>> In the transaction package any usage of MappedByteBuffer can be
> >>> replaced with a direct or normal buffer also (they all just append
> >>> data to some file).
> >>>
> >>> Hopefully I will get my test code of the new persistence windows into
> >>> trunk soon. Once that is done a .NET port could make use of that and
> >>> replace all other usages of memory mapped I/O with normal buffers.
> >>>
> >>> Regards,
> >>> Johan
> >>>
> >>> On Sun, May 3, 2009 at 10:03 PM, Antonello Provenzano
> >>>  wrote:
> >>>> I dug a bit the NIO package and the use done in neo4j: unfortunately
> >>>> there's not counter part for it on .NET nor the possibility to
> >>>> recreate [easily] classes to support it. In fact, you make a wide and
> >>>> important use of MappedByteBuffer on files: although implement the
> >>>> logics of a ByteBuffer class is not difficult (in .NET schema is the
> >>>> association of two classes: MemoryStream and
> >>>> BinaryWriter/BinaryReader), the behavior of MappedByteBuffer appears
> >>>> to be more complex, since access to portion of data in file which
> >>>> access must be coordinated with the memory, and this is not a simple
> >>>> issue.
> >>>>
> >>>> As of Java implementation, this is done natively and it's a complex
> >>>> operation to replicate the same functionality.
> >>>>
> >>>> Once this is solved, I see no further [major] obstacles to the port:
> >>>> avoiding the integration with the System.Transactions mechanism, the
> >>>> base of neo4j port would work in its core functionalities.
> >>>>
> >>>> Cheers.
> >>>> Antonello
> >>>>
> >> ___
> >> Neo mailing list
> >> User@lists.neo4j.org
> >> https://lists.neo4j.org/mailman/listinfo/user
> >>
> >
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Neo,Rest,.NET

2009-06-21 Thread Ajay Sharma
Hi Martin,
yes i am follwing the readme file (
http://github.com/ept/neo4j-scala-template/tree/master)
 thanks for the advise i been able to get GIT up on my my windows machine
i have reached upto the point where i'v cloned the repositry successfully.

but now when i run the command MVN package (after changing to the specified
directory) on command line.
i'v got follwoing error
*[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: unknown
POM Location:
C:\msysgit\msysgit\git\scalatest-junit4runner\neo4j-scala-template
\.git\pom.xml

Reason: Not a v4.0.0 POM. for project unknown at
C:\msysgit\msysgit\git\scalates
t-junit4runner\neo4j-scala-template\.git\pom.xml


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Not a v4.0.0 POM. for
project
unknown at
C:\msysgit\msysgit\git\scalatest-junit4runner\neo4j-scala-template\.g
it\pom.xml
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.InvalidProjectModelException: Not a
v4.0.0 P
OM. for project unknown at
C:\msysgit\msysgit\git\scalatest-junit4runner\neo4j-s
cala-template\.git\pom.xml
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
MavenProjectBuilder.java:1609)
at
org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
MavenProjectBuilder.java:1581)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:506)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
... 11 more
[INFO]

[INFO] Total time: < 1 second
[INFO] Final Memory: 1M/2M
[INFO]
*


could you do us all a favor by explaing a simple program using your
interface, am trying to get the feel of scala.

Thank you for your support ,been really helpful.

Regards
Ajay
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Neo,Rest,.NET

2009-06-19 Thread Ajay Sharma
Thank you so much for all the information,you guys been amazing help.
above all emil for such quick response,i think i might go for using REST and
a service layer over it to integrate it with .NET.

i'v been trying to use martin's Scala implementation but as am a total
newbie to java and its assciated tool ,could anyone just help me out with
the configuration of scalatest.
till now i have been able to install and configure JUNIT and scala.

and martin could you please explain how to get this thing to work ,i want to
implement this implementation adn access the Restful service through .NET.

since java is not my field of expertise am finding it difficult to get all
the blocks in place.

Thanks a lot

Ajay
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] Neo,Rest,.NET

2009-06-12 Thread Ajay Sharma
hello,
has anybody worked on REST interface to Neo4j??

Am a newbie and want to use Neo4j with .NET.

Couldn't find any workable example for the same.



Regards
-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Help with Neo program execution

2009-06-12 Thread Ajay Sharma
thanks a lot emil.. that helped.



On Fri, Jun 12, 2009 at 12:23 PM, Emil Eifrem wrote:

> Hi Ajay,
>
> On Fri, Jun 12, 2009 at 21:14, Ajay Sharma wrote:
> > C:\neo-1.0-b8\javadoc\org\neo4j\example\helloworld>javac
> -Xlint:deprecation
> > NeoT
> > est2.java
> > NeoTest2.java:57: warning: [deprecation] END_OF_NETWORK in
> > org.neo4j.api.core.St <http://org.neo4j.api.core.st/>
> > opEvaluator has been deprecated
> >StopEvaluator.END_OF_NETWORK,
>
> This one has been deprecated in favor of StopEvaluator.END_OF_GRAPH.
>
> >  ^
> > NeoTest2.java:66: cannot find symbol
> > symbol  : method getDepth()
> > location: interface org.neo4j.api.core.TraversalPosition
> >friendsTraverser.currentPosition().getDepth(),
>
> This was previously deprecated and has now been renamed to
> currentPosition().depth().
>
> You can always see javadocs for the latest release here:
>
>   http://api.neo4j.org/current/
>
> As well as for specific releases like:
>
>   http://api.neo4j.org/1.0-b7/
>
> Hope that helps!
>
> Cheers,
>
> --
> Emil Eifrém, CEO [e...@neotechnology.com]
> Neo Technology, www.neotechnology.com
> Cell: +46 733 462 271 | US: 206 403 8808
> http://twitter.com/emileifrem
> ___
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] Help with Neo program execution

2009-06-12 Thread Ajay Sharma
C:\neo-1.0-b8\javadoc\org\neo4j\example\helloworld>javac -Xlint:deprecation
NeoT
est2.java
NeoTest2.java:57: warning: [deprecation] END_OF_NETWORK in
org.neo4j.api.core.St 
opEvaluator has been deprecated
StopEvaluator.END_OF_NETWORK,
  ^
NeoTest2.java:66: cannot find symbol
symbol  : method getDepth()
location: interface org.neo4j.api.core.TraversalPosition
friendsTraverser.currentPosition().getDepth(),

 ^
1 error
1 warning


could anyone tell me the problem here?
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo] neo as database

2009-06-04 Thread Ajay Sharma
hi everyone
am ajay ,newbie to neo
i successfully installed neo on my machine ..was just wondering how neo
fullfill the prerequisites of being a database,how can i save my data and
how reliable is the persistency capabilties of neo as a database.
i basically work on microsoft technologies and am very keen to try something
like neo out.

and how can i integrate neo with my dotnet applications.



-- 
Ajay Sharma
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user