GL Digital Blog (Page 7)
Reconfigure a Project to Use IIS Express in Visual Studio
Apparently, back in the day, they had enough spare RAM on their development machines to run a full copy of IIS. We’re not so privileged today, but if you inherit one of these projects, you may end up looking at error messages like this: MyProject.csproj : error : The Web Application Project MyProject is configured …
26/04/2016
Compile TypeScript and Package with Browserify in a Single Gulp Task
OK – the topic of packaging your js with browserify using Gulp has been done to death. However, integrating TypeScript into this workflow can be a little bit of a challenge because browserify doesn’t take a regular gulp file stream as input. tldr; Just want to copy and paste some code and get on with …
25/04/2016
How to create a robots.txt in Umbraco and edit it from the backoffice
It’s very easy to create a robots.txt in Umbraco which you can edit from the backoffice. You can achieve this natively without installing any packages or writing custom code with these simple steps: Create a “txt file” document type in the backoffice Add a line in the template for the “txt file” doctype so that …
22/10/2016
How to Get Syntax Highlighting for TypeScript in GVIM on Windows
urghh… Looks terrible doesn’t it? It’s not provided by default, but if you need to work with a TypeScript project in vim then you’ll certainly need to set up syntax highlighting. The good news is that it’s very easy to get going with a vim addon called typescript-vim. This link is all you need if …
06/04/2016
How To Test JsonResult in ASP.NET MVC
Here’s a quick NuGet of wisdom! (Haha, just kidding, there is no wisdom in NuGet) Writing a unit test for an ActionResult Json() is a bit of a head-scratcher for some, but all it requires is a simple cast operation. Example controller: public ActionResult Index() { return Json(productsData, JsonRequestBehavior.AllowGet); } Example test: (NUnit 3.x) [Test] …
28/03/2016
How Do I Organise Files in A Phaser.js Project?
Among newer JavaScript developers, the manner and order in which JavaScript code is executed is often a source of confusion. Not quite grasping how your code is “seen” by the JavaScript interpreter can make it quite hard to organise your game’s source files in a convenient and orderly manner, and can also cause unexpected behaviour …
18/03/2016