Blazor (Client Side) – FileNotFoundException: Could not locate application assembly at expected location

Posted by

Just a very quick one with Preview5. I encountered this gotcha whereby the project’s name in the solution explorer doesn’t match that of the folder name. I’d had a change of heart on the project name but of course the folder on disk doesn’t change automatically. Once I’d renamed the folder and then proceeded to […]

Read more...

Blazor (client-side) application – CI/CD – Deploy from GitLab to Netlify

Posted by

Using GitLab to host both the source control and perform CI/CD, we will take a blazor project and build it and then proceed to deploy it on Netlify. This article presumes that you have some familiarity with the following: GitLab for source control (See here) GitLab for CI/CD (See here) Netlify CLI for deployment (See […]

Read more...

Entity Framework – Debugging a Seed method from the Package Manager Console

Posted by

On the odd occasion you wish to debug Seed method code which has been executed from the Package Manager Console using the Update-Database command, a quick and dirty method is to add the following code: Yes it’s dirty! It will however fire up a new Visual Studio debug window and allow you to see what’s […]

Read more...

Http Range Requests in ASP.NET Core

Posted by

Here’s a small code snippet to use Http Range Requests with ASP.NET Core butchered from this now outdated MSDN article: using System.IO; using System.Text; using Microsoft.AspNetCore.Mvc; namespace WebApiRangeTest.Controllers { [Route(“api/[controller]”)] [ApiController] public class RangeController : ControllerBase { private static readonly byte[] _content = Encoding.UTF8.GetBytes(“abcdefghijklmnopqrstuvwxyz”); public IActionResult Get() { MemoryStream stream = new MemoryStream(_content); if (stream == null) […]

Read more...

How to customise Visual Studio’s “Create and initialize field” to add the underscore

Posted by

Step 1 – Starting with the Tools menu item from the top navigation menu, navigate through the menus as follows: Tools > Options > Text Editor > C# > Code Style > Naming Step 2 – Click the green Plus icon to open the following dialogue box: Step 3 – Now add the following: Step […]

Read more...

Test Explorer hangs in Visual Studio

Posted by

Restarting Visual Studio usually works but instead try using taskkill (Read more: [1][2]) to end the offending process: taskkill.exe /IM vstest.console.exe /F

Read more...

How to set up ReactJS with TypeScript and Webpack 4 with webpack-dev-server (for hot reloading)

Posted by

The tutorial for React and Webpack at typescriptlang.org is one of the better tutorials out there, although with the introduction of Webpack 4 and wanting the hot reload support, I sought to seek out a more modern tutorial. I found the tutorial at AppDividend but still wanted the familiar experience of the one at typescriptlang.org. https://www.typescriptlang.org/docs/handbook/react-&-webpack.html https://appdividend.com/2018/03/18/how-to-setup-typescript-with-webpack-4/ […]

Read more...

Programmers in the Cardiff, Wales Area?

Posted by

Are there any programmers in the Cardiff, Wales area? Would be great to get to know anybody in the area who is a fellow programmer. Would be good to get a group of programmers together! Comment or e-mail me

Read more...

Heroes of Might and Magic II in Java?

Posted by

After talking with a fellow HoMMII programmer, we talked about the possibility of writing a Heroes of Might and Magic II client in Java, which would open up the possibility of playing it on Android phones and whatnot. I’m going to throw this out there just to see if there’s anybody else out there interested […]

Read more...

iPhone Development

Posted by

The other day, I finally delved into iPhone development. I battled with getting to grips with the idiosyncrasies of Mac OS X, XCode alone, and then there’s the very alien approach to programming that Objective C and developing for the iPhone in general brings to the table. I must be honest, the whole process of […]

Read more...

Darken Javascript Bookmarklet Update

Posted by

This is just a simple modification of the Javascript bookmarklet called “Darken” by Gina Trapani. No idea if it had already been updated or not, but here’s the list of what I changed for anybody interested: Running the bookmarklet multiple times toggles the darken effect on and off! Saves refreshing the page Changed the colour […]

Read more...

Ray Tracing #5

Posted by

Things have been a little slow recently. I’ve been generally reading about other aspects of graphics programming as well as generally being busy and now I’ve come down with something. Blocked ear, runny nose, bad headaches, dizziness and more. My best excuse for not getting as much programming done has to be that I’ve given […]

Read more...

Ray Casting #2

Posted by

Finally got around to adding those few lines of code to add textured walls to the ray caster. (Click to Show Full Size) (Click to Show Full Size) A few details: 1) The texture isn’t mine, I merely found it via Google Images with the term “wall texture” and it has the filename “Wall_Texture_by_shadowh3.JPG” 2) […]

Read more...

Ray Tracing #4

Posted by

Two updates in one day. This is probably a first on my blog 🙂 Here’s an image of a single reflective sphere in the middle of three other spheres of various colours with lighting and shadows: Here’s a quick look at all of the spheres featuring reflectivity and how they look when recursively casting off […]

Read more...

Ray Tracing #3

Posted by

Just a little more to add. I have shadows working but there’s a bug or two in there that I can’t seem to shift, but here’s what I’ve got anyway:

Read more...

Ray Tracing #2

Posted by

Here’s what I have so far: Of course, it’s still very much some ways off the high quality rendering that ray tracing can be known for, but it’s a good learning experience all the same.

Read more...

Ray Casting and Ray Tracing

Posted by

Having spent a lot of time on rasterizer based rendering, I’ve wanted to learn more about ray tracing, if only for the sake of curiosity. I also wanted to revisit ray casting, as it had been some time and I took some of the finer details for granted the first time around, so this time, […]

Read more...

XNA Progress Post #1 – Lighting

Posted by

At the moment, I’m still concentrating on transitioning to XNA, C# and HLSL, while revising some of the stuff I’ve done previously in OpenGL, but things are going okay in all. So far, I’ve got a working prototype for a deferred shading setup with normal mapping: Deferred Shading with Normal Mapping I also have basic […]

Read more...
Terry Butler