Blog
Here's a small method to aid test readability when dealing with sequential numeric ranges:
public static class IntExtensions
{
public static IEnumerable<int> To(this int min, int max)
{
for (int i = min; i < max + 1; i++)
{
yield return i;
}
}
}
It can be used like so:
var range = 2.To(16);
You could have a test like:
var range = 2.To(16);
var expectation = new[] { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
range.Should().BeEquivalentTo(expectation);
In my case it was used for testing methods that group values in ranges by threshold values. Rather than typing out the ranges each time, I made this method to make it less tedious to both read and write.
Posted on Friday the 28th of February 2025
Read more...
In order to accommodate working from the van better, I decided to install a 4G antenna and WiFi router. The idea is that, while a phone does work very well, a dedicated antenna outside the Faraday cage that is a van would improve the chances of actually getting a signal vs a phone.
The antenna is a Poynting MIMO-3-12, which is a 2x2 MIMO 2G/3G/4G/LTE/5G antenna. The router is a Huawei B535. There is a small irony in that the router has a 4x4 antenna, which is faster than 2x2, but it isn't quite as strong.
Installing this did require another hole in the roof...
Installation
.
Here is the script to do it (warning, I'm not much of a bash scripter):
#!/bin/bash
Posted on Friday the 16th of June 2023
Read more...
Sorry this update has taken so long to make it out, but this happened:
Yeah. The van had an engine swap. There were a series of issues which made it more economical long-term to get a younger engine with fewer miles.
Issues were thus:
- The turbo was on its way out
- Oil leak
- Oil pressure warning
- Coolant leak
- The cam belt needed replacing, which requires dropping the engine anyway
So, given the engine was going to get dropped to replace the cam belt, I figured that replacing the engine was the route to go down given the other issues.
On top of this the gearbox also died on me and that needed replaced. I'd rather it didn't happen at the same time... Naturally having to organise this and source parts and stuff took quite a long time. Finding an engine was super hard and finding someone local to
Posted on Thursday the 3rd of November 2022
Read more...
I thought the last post was a big one, but I never imagined this one to be such a mission. This part of the build was done in two stages; one to get a usable toilet and shower for going away on holiday in summer, and then finishing it all off.
Bed partition
So the build is being done from the back to the front, as the design hangs off the bed frame as a core structural component. The first part to this is the partition separating the "bedroom" from the rest of the space. This also acts as the walls for the garage.
First step is to template the wall of the van
Cut and test fit the first stage of the partition
.
Cab
So a long time ago, back in Part 1, I stripped the cab of its headlining and shelf.
Well, a good 4 months later I finally started working on insulating it. For this I used sheets of 10mm closed cell foam. This also serves to act as a sound dampener on the van metal, as well as thermal insulation. I used 3 layers of this, taking it to 30mm total. Due to the flexibility of the material and curvature of the van it was hard to put these sheets down in a straight line.
![I left some backing paper to aid stuffing it between the metal beam and
Posted on Monday the 28th of June 2021
Read more...
Time to free up some space from inside the house and put the fresh water tank, waste water tank, and calorifier under the chassis.
Prep
To hold the tanks under the chassis I'm used M8 hook bolts, aluminium square tube, washers, and nylock nuts.
One of six sets of mounting hardware
I cut 3 330mm lengths of aluminium square tube, and drilled 2 8mm holes through each end to accommodate the hook bolts.
Raised the side of the van
Redundant handbrake cable mount for European vans
The chassis comes with the handbrake cable mount/guide for both sides of the van, but it needs to go to make way for the fresh tank.
Posted on Friday the 28th of May 2021
Read more...
One of the key things I want to do is be able to open the door from the bed. The door handle, in its factory position, will be hidden away in the garage so it need to be moved. There's only one other feasible place for the handle, which is the top of the door. Luckily this is where I want it anyway.
Door drilled and rivnuts installed
I had to get a 9mm drill bit specially for this.
It feels much sturdier here than its usual location.
Next I took some road bicycle brake cable, 3D printed some adapters, and strapped it all together.
See it's chamfered hole to allow cable flex
![End stop for the brake cable, and clip for factory cable](https://uploads.robw
Posted on Thursday the 27th of May 2021
Read more...
Sorry for the 2 month gap in posts. There's been a lot of little bits going on with the van like servicing it and changing the brakes and discs, wiring up additional rear view cameras, and other stuff which I've not documented. A lot of that time has also been spent deliberating on parts, particularly what floor to go with. I went for Altro Orchestra in the colour "Fusion".
Prep
First thing to do was rip out the old ply floor. This required removing a lot of screws, many of which were rusty and wouldn't unscrew. When the screws wouldn't come out the only option was to go hulk on the ply and rip it out with brute force.
Revealing a lot of dust...
Holes and screws left behind
![Some of which were very rusty](https:/
Posted on Saturday the 24th of April 2021
Read more...