Tuesday, August 25, 2015

Knockout custom bindings and value accessors

Custom bindings in knockout enable us to specify custom knockout parameters in data-bind attribute. They are quite useful to implement custom functionality across the site. Here are more references to these attributes

http://knockoutjs.com/documentation/custom-bindings.html
http://www.knockmeout.net/2011/07/another-look-at-custom-bindings-for.html

Friday, August 14, 2015

ANTLR4 installation in a visual studio project

ANTLR is a very interesting parser for writing custom compilers. After fumbling a bit on my own to install it in the dev, finally I could get it done after following steps in the post below. Though the post makes it very easy to install, understading how to write a compiler is significantly more complex.

https://groups.google.com/forum/#!topic/antlr-discussion/Gh_P6IiDrKU

To help us there are some good antlr projects available to download, one mentioned below is quite interesting

https://github.com/ChristianWulf/CSharpGrammar 

Debugging in Linq

The post below explains some tools which are quite handy when debuggin LINQ to Entity statements, but I have used DBContext instead of ObjectContext connection

http://blog.falafel.com/debugging-in-linq-hell/

Also, to make internal classes visible to Linq Pad use an assembly attribute.
 



[assembly: InternalsVisibleTo("LINQPadQuery")]


http://stackoverflow.com/questions/14354157/make-internal-classes-visible-to-others-assemblies

but if they are signed, this won't work

http://forum.linqpad.net/discussion/747/internalsvisibleto-on-datacontext-in-signed-assembly


Also, there is an extention in visual studio to connect to linqpad

https://github.com/nbasakuragi/LINQBridgeVs 

Secure micro services using jwt and ocelot

  Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)