.NET

Calling Stored Procs in Neo4j using Neo4jClient –the hacky way

Neo4j 3.0 introduced the concept of Stored Procedures, now, whilst they’re not the same as SQL based SPs, they work – and well – it’s what we’ve got! Neo4jClient doesn’t currently have any native way to call a Stored Proc, so to get you there in the interim, we’ll use the ‘apoc.create.uuids’ proc – which returns a GUID (or multiples) and uses both the CALL and YIELD keywords. (Sorry for lack of code highlighting….) var gc = new GraphClient(new Uri("http://localhost:7474/... gc.Connect(); ......

BrowserStack Visual Studio 2015 Extension

Do you find that you want browserstack but once again, the extension lets you down by not installing into VS2015. Worry not! As with VS2013 (that I wrote about here) it’s a case of editing the vsixmanifest file and targetting a different visual studio version. Download the extension from the VS gallery (here) open it up with 7zip/winzip/windows and edit the extension.vsixmanifest file, change the following lines from: <Installation InstalledByMsi="false" AllUsers="true"> <InstallationTarget ......

The three stages of *my* database choice

Prologue I write and run a website called Tournr, a site to help people run competitions, it helps them organise and register for competitions, keeping the scores online and taking some of the pain of competition management out for them. I began it due to a badly run competition I attended (and ahem ran) a few years ago – and I wanted to make it better for first-timers (like myself) and old-hands alike. This post is about the database decisions and pains I’ve been through to get where I currently ......

SL: Where TF are the Brushes??

Holy Smokes! A SilverLight post???!!! Yes - I've entered the SilverLight realms... so far so good - one app is nearly ready for release (internal only) and I have to say the experience has been pretty good. I've had a couple of issues - mainly down to the fact that I'm not sure about some things - Cross Domain Policies for example... but on the whole it's been ok... One of the things I did struggle with was the programatic setting of brushes, for example, say I wanted to set the Foreground property ......

Databinding an Enum in WPF...

The situation I have is this - I have a class defined as such: public class MyClass { public int TheInt { get; set; } public string TheString { get; set; } public MyEnum TheEnum { get; set; } } with 'MyEnum' defined as: public enum MyEnum { A, B, C, D } I have a Window that displays the data in such a way: <Window.Resources> <CollectionViewSource x:Key="SortedEnumView"> <CollectionViewSource.So... <ComponentModel:SortDesc... </CollectionViewSource.S... ......

Boxing / Unboxing and passing by 'ref'.

I recently heard a question stating something along the lines of: "What is Boxing?" My initial thoughts were the classic example using an ArrayList, whereby storing a value type (int etc) is 'boxed' into an object so the ArrayList can contain it. But the question was followed up with: "Ok, so is this how you think passing a value by ref to a method works?" Personally I hadn't thought about that, I've used 'ref' on numerous occasions, but hadn't really considered how the CLR does this.... So. How ......

Barcamp Brighton 3: Topic chosen

Due to overwhelming responses to my blog (all 2 of you :)) I'm definitely doing a workshop stylee thing on creating ControlTemplates for WPF Buttons in Expression Blend (2.5), and I have my powerpoint loveliness done for a small chat about SCC, in particular branching... I couldn't think of a way to put them together, SCC the WPF Way! sounded nifty, but just seemed too complicated to join together :) So maybe both? Is that allowed.. Gah, first time, we'll see! In terms of topics to see, I'm interested ......

Neo4jClient now supports JsonProperty for Sending Cypher

So, you want a demo graph, and you fire up Neo4j, go to the admin (http://localhost:7474/) and then run :play movies This gets you a graph to play around with, and so you head into Visual Studio (or maybe even LinqPad), and you have an urge now to get all the movies in the DB released after the year 2000. A compulsion if you will. So you create your class to get the movies: class Movie{ public string Title { get; set; } public int Released { get; set; }} And run the query you’ve been dreaming of ......

Neo4jClient 1.1.0.1

Big milestone this one, Neo4jClient now supports Transactions, Authentication and some other little changes. Transaction info is all here: https://github.com/Readify/... You can find the connecting stuff here (at the bottom): https://github.com/Readify/... And the other big(ish) change is the change to make the ‘CollectAs’ method return the class type specified (<T>) instead of Node<T>. Big thanks for this go to Arturo Sevilla (https://github.com/arturos... ......

Path Animation in Silverlight

I’ve been spending some time working on prototyping some things I want to get working for a game I’m developing, and one thing I wanted was to get a couple of fly’s flying (buzzing?) around a lightbulb. Ideally I wanted to draw a path and say – Fly – use this path and follow it until the end of time! Turns out in WPF I could do this, but not so in Silverlight. Everything I saw explaining how to do it, involved working out complex (to me) equations to get the motion correct, or using a set of key ......

Full .NET Archive