Learning react

To come to grips with react, I completing a few courses on react at PluralSight, which helped me get a better understanding of react. I also found the facebook maintained react page worth a visit. Create React App Visit Create React App which contains step by step instructions. Additional resources I was trying to add a react component to an ASP.Net MVC page. This page The Minimal React + Webpack 4 + Babel Setup proved very helpful.

April 14, 2018 · 1 min

Moving from Wordpress to github pages

[updated] 13 Oct 2018 I was finally prodded into action when my wordpress blog site certificate expired. Using a few excellent resources available on the interwebs, I was able to run (generate in jekyll) the site locally on a Windows 10 machine and then push it to github (richardborges.github.io), which hosts for free ! Running the site locally. The main steps where 0. Make sure you have Bash on Ubuntu on Windows and have visited jekyll on Windows ...

January 7, 2018 · 3 min

Taking Electron for a spin

I’ve been listening to podcasts about electron apps at DotNetRocks (episode 1336 ) as well as Scott Hanselmans podcast Creating cross-platform Electron apps with Jessica Lord.Both are very informative. Jessica also has an interesting blog post at essential electron. So I picked up a course on Pluralsight by Rob Connery. First impressions : using node server to create a desktop application was quite new to me and I had to get my head around having a node server running locally to serve up content in a chromium browser. All local. ...

August 23, 2016 · 1 min

Setting up CI with TeamCity

I have used an Azure Virtual Machine (Win 2008 Server, standard DS1 1core-3.5GB memory) for this. Download JetBrains TeamCity on the server. I planned to install both the server and the build agent on the one box. This will do for now. I will look at moving the build agent to another server if there is demand. Accepted the default settings during installation. I wanted to connect to bitbucket to retrieve the latest source using SSH. I added a new user (called BuildUser) to Bitbucket and added an SSH public key (bit bucket has good documentation on creating SSH keys. I used my bash shell to create these for the BuildUser user). One gotcha was that the Username had to be ‘git’. ...

August 9, 2016 · 1 min

Third party UI controls - ASP.Net MVC 5

The wonderful people at Syncfusion have offered a community license for free which gives you over 650+ controls. Head over here. After a bit of fiddling using their online documentation, I’ve finally been able to use the chart control in my ASP.Net MVC5 code. The 3 main dlls , I needed of the chart control are (changes to the web.config): <pre class="wp-code-highlight prettyprint linenums:1">&lt;assemblies&gt; &lt;add assembly="Syncfusion.EJ, Version=14.2460.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /&gt; &lt;add assembly="Syncfusion.Linq.Base, Version=14.2460.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /&gt; &lt;add assembly="Syncfusion.EJ.Mvc, Version=14.2500.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /&gt; &lt;/assemblies&gt; </pre> To get around a Visual Studio build error, I had to add the following to the web.config <pre class="wp-code-highlight prettyprint linenums:1">&lt;dependentAssembly&gt; &lt;assemblyIdentity name="Syncfusion.EJ" culture="neutral" publicKeyToken="3d67ed1f87d44c89" /&gt; &lt;bindingRedirect oldVersion="0.0.0.0-14.2460.0.26" newVersion="14.2460.0.26" /&gt; &lt;/dependentAssembly&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name="Syncfusion.Linq.Base" culture="neutral" publicKeyToken="3d67ed1f87d44c89" /&gt; &lt;bindingRedirect oldVersion="0.0.0.0-14.2460.0.26" newVersion="14.2460.0.26" /&gt; &lt;/dependentAssembly&gt; </pre> And lastly one javascript library, ej.widgets.all.min (8,466 kb), which after using their tool csg, � (for the chart control only) reduced it to (ej.chart.min.js) 909kb. In _layout.cshtml, added: <pre class="wp-code-highlight prettyprint linenums:1">&lt;script src="~/Scripts/ej/ej.chart.min.js"&gt;&lt;/script&gt; @RenderSection("scripts", required: false) @Html.EJ().ScriptManager() </pre> and in viewname.cshtml, added <pre class="wp-code-highlight prettyprint linenums:1">@(Html.EJ().Chart("presentationReport")) </pre> ...

July 15, 2016 · 1 min

My Setup and Tools - July 2016

Here is my development setup list of tools. VS 2015 community edition Jet Brains Resharper ( paid ) Productivity Power Tools 2015 (free plugin to VS2015) Web Essentials 2015.5 (free plugin for VS2015) automapper.org bootbox.js make your pop-over front and centre. Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers. animate.css for nice bouncy effects Templating engine underscore.js momentjs.com moment.js library to format date time in javascript Less to css or use http://css2less.co for legacy css to less conversion (makes my css� code clearner in my VS project). Bootstrap , input group , components -> search button to the right of the text box Organize your javascript library http://requirejs.org Dependency Injection library: NinJect.MVC5 ver: 3.2.1.0 Use convention over configuration PM>install-package Ninject.extensions.conventions Unit Testing tools (add to Test project): Moq PM> install-package moq -version:4.2.1510.2205 Unit Testing tools (add to Test project): FluentAssertions PM> install-package FluentAssertions -version:3.3.0 Unit Testing a repository. google.com.au search for ‘mock dbset’ to get code from MSDN. https://msdn.microsoft.com/en-us/library/dn314429.aspx. Use that code to populate my DBSet for testing. Integration Test: (Integration Test project) use nUnit because it has a feature to initialization databases that MSTest does not have. PM> install-package nunit -version:2.6.3 DotCover by JetBrains - to find how much of our code is covered by our tests

July 1, 2016 · 2 min

Testing Testing - where is my database?

Recently while creating a unit test (MSTest VS2015) to test my repository pattern, I hit a snag. Despite having defined the database in my app.config of the Test project, I could not locate my newly created database. Turns out I needed to initialise my db in the test class , like so: <pre class="wp-code-highlight prettyprint linenums:1">// Declare this property - this is set by MSTest public TestContext TestContext { get; set; } // In test initialization [ClassInitialize] public static void SetUp(TestContext context) { AppDomain.CurrentDomain.SetData("DataDirectory", Path.Combine(context.TestDeploymentDir, string.Empty)); }</pre> Saw this useful tip at Stackoverflow, which also talks about the differences between sdf (Server Explorer does not show table schema) and mdf (Server Explorer displays table schema). ...

June 10, 2016 · 1 min

DDD Sydney 2016

I’m attending 🙂 DDD Sydney [Update] DDD Sydney was fun. Quite a bit of learning , caught up with old friends and met new people. The organiser Aaron Powell has written about this experience with organising DDD Sydney.

May 25, 2016 · 1 min

what3words.com : an interesting take on finding a location

what3words.com From their website what3words is a global grid of 57 trillion 3mx3m squares. Each square has a 3 word address that can be communicated quickly, easily and with no ambiguity.� Our geocoder turns geographic coordinates into these 3 word addresses and vice-versa.� Using words means non-technical people can accurately find any location and communicate it more quickly, more easily and with less ambiguity than any other system like street addresses, postcodes, latitude & longitude or mobile short-links. e.g. gazed.across.like ...

May 25, 2016 · 1 min

Open source diagnostics platform of the web

Recently I used getglimpse to have a look at diagnostics information. Its available as a NuGet package. Helpful information in addition to using F12 and other tools.

April 1, 2016 · 1 min