Rendering output using Razor

When rendering output from a razor template it is important to remember the distinction between @{ ...}  and @(...) Curly braces will cause the output to execute, whilst the regular parenthesis will cause the output to render. As an example that tripped me up during rendering of a ViewComponent in the CamperFinder demo, the following... Continue Reading →

Free website hosting #4 – AWS

This is the final part of a four part series looking at free hosting from modern cloud providers: Part 1 - GitHub PagesPart 2 - Azure Web AppPart 3 - Firebase In this article we look at the offering from Amazon web services, and the static hosting capabilities of the S3 storage bucket. If this... Continue Reading →

Working around Selenium

After you've used selenium for a while, you'll be familiar with some of the problems. Yep, WaitForElement doesn't exactly cover itself in glory. It is possible to work round this a bit using a static helper for retries. Something like this; public static void MyNavigateMethod(this IWebDriver driver, int retryCounter = 0) { try { driver.DoSomething();... Continue Reading →

Collect performance data from remote servers

To collect performance data from remote servers, when running a load test for example, use the following PowerShell script: clear$testId = "doodle"$durationSeconds = 20$threadsPerAgent = 5$client = ""$counterList = @( ".NET CLR Exceptions()# of Exceps Thrown / sec", ".NET CLR Memory()# Total committed Bytes", "\ASP.NET\Application Restarts", "\ASP.NET\Request Wait Time", "\ASP.NET\Requests Queued", "\ASP.NET Applications()\Requests/Sec", "\Web Service()\Current... Continue Reading →

Goldilocks and the 3 reseller packages

Goldilocks was walking through the wood one winters day when she came across a house with three computers. (Yes there was also fibre broadband installed - it's a tech savvy wood - get over it!) The first computer was connected to Fasthosts. A solid offering she thought, back by over a decade of experience. But... Continue Reading →

A WordPress.com Website.

Up ↑