Dart + JSON + Neo4j: Is there a tutorial somewhere? - json

I've been playing around with Dart and Neo4j lately, with dreams of building Really Cool Things with these new technologies. I think I understand REST and can wrap my head around JSON. I've read both the Dart and the Neo4j documentation on using REST and JSON within each respective domain. Putting the two together, however, I have met with only very limited success. I'm really hoping someone out there might know of a tutorial or something that can get me started.
So far, I've been able to get Dart to query the database at 12.34.56.78:7474 and get it to return the address for the root node (12.34.56.78:7474/db/data) and the admin interface. When I try to query the root node, though, I get nothing back, even though, as far as I can tell in the documentation, I should be getting information about the database version and so on. At least that's what I see when I use RESTClient to view the database root node.
I'm a pretty experienced IT tech and coder, but I have to admit this is new territory for me.

Would be really cool if you could start that Dart-Neo4j integration and then let the community know about it?
/peter

To close this out, I don't think there is a tutorial for Dart + Neo4j, at the time of this writing.
You might be interested in Dart + MongoDB by using http://pub.dartlang.org/packages/mongo_dart

Related

Something like Typesafe Config for NodeJS

I have a nodejs application that will take a JSON configuration file.
The JSON file will have some ${} and #{} tags that will be used to build up a dynamic context by loading a template configuration and populating the tags. HOCON may also end up being used eventually but that's not in there yet.
I came across Typesafe Config in the past and it looks amazing for this kind of thing. I did a bit of searching around npm and didn't spot anything similar in the node world but perhaps I am too unfamiliar with what terms to search for.
Does anyone know of a similar library in nodejs or a sensible strategy I may employ to do this in nodejs?
I know it wouldn't be much effort to implement something myself with string replace on the JSON or some such although I can't help but think that this has been done before in node applications and probably in a much better way than I would do it for this single use case. On that basis it seems to make sense to ask here before I continue.
A bit late, but it seems there is still no dedicated npm module to convert hocon to js. However there is a library which could be easily converted to a npm module : https://github.com/scottburch/webpack-hocon-loader

.NET WebApi jsonapi.org support

Does anyone know if there is a media formatter out there to support the jsonapi.org spec (application/vnd.api+json).
If not has anyone started (or looking at starting) a project to implement this?
For the record, as of today the answer seems to be no. Best I could find was this guy: http://www.emadibrahim.com/2014/04/09/emberjs-and-asp-net-web-api-and-json-serialization/ and that only tackles a tiny part of the problem.
I've been trying this for a while…unfortunately I tried to make something that was really smart and would automagically handle a data model from Entity Framework with almost no work. I was getting close to thinking about releasing it...and then I found out they changed a bunch of stuff in EF 6 (all models are supposed to be POCOs and the context is now a DbContext instead of an ObjectContext) and I'm probably going to have to essentially start over…which is why I started looking again to see if someone else was doing it and found your question.
Let me know if you're still looking for this, and I'll keep you updated.
UPDATE
I've just published a codeplex project that aims to provide exactly what I've described above. It's called JSONAPI.NET and while it's very early, it already does quite a bit. Documentation is sparse, and I don't have NuGet packages yet…but take a look everyone and see if it's useful for you. Feedback is encouraged! You can contact me from the project page in the link.

CakePHP - Using JSON as a datasource

I'm new here so apologies in advance if I break any rules. I'm trying to use a json datasource in cakephp. I've had little progress since viewing the twitter example in the cake documentation. I can get the /model/ listing to work, but associations do not populate and I'm generally flying blind. I was wondering if anyone had any good resources they could direct me to, as the online references that I can find seem few and far between.
Thanks.
Update: My reference material was: http://book.cakephp.org/2.0/en/models/datasources.html
Embarrassing but it's just occurred to me that this code cares little about associations. It solves the problem of "How do I present data from twitter as a model in a cakephp application?" without concerning itself with assocations between other related models. Not quite the "automagic" it presented itself as, but having taken a deeper look it's safe to say that there shouldn't be any to begin with.
If I figure it out I'll post code here. I'm going to piggy-back off the dbosource file and how it's read function handles associations.

Building a networking event system, what data format should I use?

I'm using Node.js to build an event based game server (to a flash client). But, I'm having trouble finding examples of how I should architect this message passing.
To simplify things, I was thinking in using a json:
{signature: 'event_name', { /* event data /*} }
So I can easily write to socket using any serialization library. Is it a good idea? Please point me to articles, tutorials or books if you think I don't know what I'm doing at all (which I think is the case)
I would use AMF. There is a pure javascript version of it: http://www.jamesward.com/2010/07/07/amf-js-a-pure-javascript-amf-implementation/
BSON is what you are looking for, it has similar properties to JSON, but it a lot smaller and faster to parse. The MongoDB driver for node has a BSON library in it, I don't know about any Flash librarys though.

JSP/.NET XML - simple client to display html

I am fairly proficient in PHP, but just starting out in ASP.Net and JSP/Java
I would like to learn JSP/ASP.NET XML to HTML transformation with some simple practical examples. Im not looking to learn how to edit XML, just displaying it, but im having trouble finding definitive examples/tutorials.
Ive spent quite a while studying JSP/ASP.NET but quickly find how vast they are and how many different ways there are to do this (quite frankly im a bit overwhelmed). I would be really grateful for advice before I embark upon this journey (and perhaps I will be saved from going in the completely wrong direction). If there are any tutorials or especially example apps you could point me towards this would really help (i like to do hands on learning)
For this I expect I need to do the following:
1) Set up a server for each technology (im using Tomcat and IIS at the moment - are these the best?)
2) Use some parameter based routing system (MVC?, but this is most surely overkill for me)
3) Parse the XML and create some variables/objects
4) Display the HTML (Use template libraries (JSTL? not sure for ASP.NET))
Any tutorials/example apps you could point me towards to help me through the above steps will be truly appreciated.
Thankyou
Ke
By the sounds of your skillset, carefully working through this developerworks tutorial on JSTL looks like a good place for you to start. It does cover the XML handling libs around part 4, and it'll also help you avoid the mistake of using scriptlets where JSTL would give cleaner, less error-prone and much more readable code.
You'll also most likely want IDE support, so that you get documentation, syntax checking and autocomplete. I personally use Eclipse (The EE download will have everything you need and more) but NetBeans might be the most straightforward to get your started.
Tomcat will be fine to get you started, but these IDEs tend to have build in web containers to save you time in deploying and testing.