.NET

Ninjecting Neo4jClient into MVC5/4/3

First, create your new MVC project (or load your existing one!) Then add the Ninject.MVC nuget package: We’ll also want the Neo4jClient package Now we have those two, we can hook it up, first off we need to tell Ninject how to bind to Neo4jClient, I use a Module for this, so add this class to your project (usually I have them in a sub-folder called ‘Modules’ in the App_Start folder – but it can be anywhere):public class Neo4jModule : NinjectModule { /// <summary>Loads the module into the kernel.</summary> ......

Writing Neo4j Console

So, Neo4j Console is now open sourced at: https://github.com/tournr/n... feel free to branch, fix, edit whatever and issue pull requests, or even just have a gander and code review :) I thought I’d write some notes on what I’ve done and why. Let’s split it into 2 main areas, UI and Backend. The UI Extremely simple WPF front end – I mean – it’s only got 3 text boxes! If I’m honest, it’s not what I want – I want to create a console window like the F# console, something which really does act ......

The Neo4j 1.9 to 2.0 Upgrade

So, with Neo4j 2.0 on the near horizon (RC1 out), it seemed appropriate to upgrade all my current codebase from 1.9 to 2.0. Generally, as a rule of thumb, the conversion has been pretty smooth, there are some pre-2.0 gaffs I’ve made which have made it slightly harder than it needed to be – but the ability to use 1.9 cypher in 2.0 db is incredibly useful. So – I’m (as you can probably tell) a .NET developer, which means I use the excellent neo4jclient to perform pretty much all of my interaction with ......

Neo4j Console

Hey Hey Super Early adopters, if you’re using Neo4j and you’re a Visual Studio developer (which probably means I’ve just lot 99% of the audience :)) please try Neo4j Console, it’s an extension for Visual Studio 2013 that allows you to make calls to your local (or remote) server instance of Neo4j. So, once you’ve downloaded it – the question I guess is HOW DO I USE THAT!!!?? Opening It Once installed, it finds itself in the ‘View->Other Windows’ menu, it’s called ‘Neo4j Console’, just like the ......

Another day, another blog post update

Gist: https://gist.github.com/csk... I know! Another question on StackOverflow leads to yet another blog post being updated to use the newer Neo4jClient. So here goes: Darko Micics has written a post about using Neo4jClient with C#.Net, and a question has arisen on StackOverflow asking about how to (in effect) do this in the new version of the Neo4JClient – the version where ‘CreateRelationship’ et al have been marked as obsolete. Luckily, this is a pretty simple (twitter-ish) data set ......

Using Neo4j with F# – Cypher 2.0

There’s an excellent post by Sergey Tihon about using Neo4j with F#, written back in March, before Neo4j began the progression into Cypher 2.0. (Gist for this here: https://gist.github.com/csk... Some of the benefits of the newer Neo4jClient versions are the general move away from using Node / NodeReferences and going for a more consistent Cypher only approach, so I’ve updated the code by Sergey to use the 2.0 stuff (as part of the process of answering this StackOverflow question). BTW: ......

Extending Blend for Visual Studio 2013

So, I got a comment yesterday on my post about Extending Blend 4 and Blend for Visual Studio 2012 asking if I knew how to get it working for Blend for Visual Studio 2013.. My initial thoughts were, just change the location to get the blend dlls from Visual Studio 11.0 to 12.0 and you’re all set, so I went to do that, only to discover that the dlls I normally reference, well – they don’t exist. So… I’ve made a presumption that the actual process of using MEF etc is still the same. I was wrong. So, ......

ImageResizer - AzureReader2 with Azure SDK 2.2

So Azure SDK 2.2 came out recently, which means I can open my azure projects in VS 2013 (yay), so I decided to do an upgrade of my MVC4 project to MVC5, I followed this link on how to do the upgrade, and generally things went ok. I fire up my app, and run into a ‘binding’ issue, that AzureReader2 was trying to use Microsoft.WindowsAzure.Stor... Version=2.1.0.0 but alas, it couldn’t find it. I am not the only one (see stackoverflow), and one solution is to run ‘Add-BindingRedirect’ from the Package ......

Neo4JClient – Getting Path Results

So, let’s get this straight off the bat – Craig Brett has written about using the PathResults from Neo4jclient (a .NET REST client to Neo4J), but times have moved on, and there are some specifics I’ve needed to work out with the newer clients (this post – for reference uses Neo4jclient version: 1.0.0.590). The problem I want to get all the nodes and relationships from starting node ‘n’ going out ‘x’ levels. In Cypher – that’s pretty simple: START n = node(2) MATCH p = n-[:RELATION*1..3]-() RETURN ......

Gotcha Got with AzureReader2 and ImageResizer

After my previous post on getting AzureReader2 up and running with ImageResizer – I ran into a problem – I had a page with a foreach on it, where I had a link to each fullsize image. It was all working fine, except for a couple which just wouldn’t work. <a href="/cloud/blah-1/example... src="/cloud/blah-1/example.... /></a> <a href="/cloud/blah-2/hello%2... src="/cloud/blah-2/Hello%20... ......

Full .NET Archive