Thursday, 21 May 2020
I’m using WSL2 to manage my blog, but I noticed each time I went to run git push
it was asking for my credentials again. Why wasn’t it remembering from last time? Turns out there’s ways of storing git credentials, but even better, you can share the credentials you aleady have in Windows.
As outlined in this Stack Overflow answer, assuming you have Git Credential Manager installed in Windows (and you probably do with a recent install of the Git command line tools), then run this in WSL2:
git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"
Note the extra escape to handle the space in Program Files
. With that set, git push
just worked.
Wednesday, 20 May 2020

Microsoft Build 2020 started early this morning. I’ve never had the opportunity to attend the US Build conference in person, so the fact that this year they’re running it as a virtual conference for free is awesome! Here’s a few of the highlights and announcements that have stood out to me so far:
-
Windows Terminal 1.0 released. I’ve been using Windows Terminal for a few months now and it’s become my go-to command-line environment.
-
WSL2. WSL2 ships with Windows 10 20-04. I made the jump to the Slow Ring to check out WSL2 on my new workstation. There’s a few rough edges around running mixed containers (Windows and Linux at the same time) so hoping those get sorted out when it goes GA. Interesting that they’re adding GPU support to WSL2 as well.
-
Blazor WebAssembly is now officially released. I haven’t played with this at all but it’s on my radar.
-
Visual Studio 2019 v16.6 & v16.7 Preview 1 - Time to spin up the Visual Studio Installer and make sure you’re running the latest GA and Preview bits. Watch the recording of me exploring some of the new features in 16.6 which was run as an event of the Adelaide .NET User Group.
-
.NET 5 Preview 4 - The next version of .NET Core, now just called ‘.NET’ and skipping v4 to avoid confusion with the old .NET Framework. Some nice performance improvements as well as the next versions of C# and F#.
-
Teams support for NDI - this will be of interest to those wanting to use OBS or similar live video production applications with Microsoft Teams.
It’s going to be a challenge getting my regular work done as well as keeping an eye on all the sessions that are running today and tomorrow. Fortunately, sessions that I miss will be up on Channel 9 to watch at a more convenient time.
Tuesday, 12 May 2020
I’m not the only one playing around with running Jekyll in WSL2 for my blog:
Inspired by David’s tweet, I figured it was time I gave it a go. It was remarkably easy!
First, make sure I’m on the WSL2 disk (not the mounted Windows disk)
Now pull down my blog repo
git clone https://github.com/flcdrg/flcdrg.github.io.git
Start Visual Studio Code in the current directory
This magically installed some ‘server’ bits into WSL2
Updating VS Code Server to version d69a79b73808559a91206d73d7717ff5f798f23c
Removing previous installation...
Installing VS Code Server for x64 (d69a79b73808559a91206d73d7717ff5f798f23c)
Downloading: 100%
Unpacking: 100%
Unpacked 2321 files and folders to /home/david/.vscode-server/bin/d69a79b73808559a91206d73d7717ff5f798f23c.
and then Visual Studio Code launched

But how can I save screenshots and other images now that the repo is stored inside WSL2? Easy as it turns out. I right-clicked on the assets
folder in Code and chose Reveal in Explorer and it brings up Windows Explorer pointing to an internal share mapped back to the Linux disk. I can access the same path from the snipping tool too!

And how fast is Jekyll?
bundle exec jekyll serve --incremental 2>&1 | grep -E -v 'deprecated|GitHub Metadata'
On Windows: 120 seconds
On Linux: 62 seconds
Monday, 11 May 2020
I made a thing!
I needed to translate some JSON configuration (like the appsettings.json
file used by ASP.NET Core) into equivalent environment variables (so that they could be set in a Dockerfile). Rather than try and figure it out, I created a simple web tool to do the conversion for me.

- Paste your JSON into the first text field
- Select the formatting options
- Dockerfile-style or Yaml (suitable for
docker-compose.yml
or azure-pipelines.yml
)
- Whether to include entries with a key but no value
- Use colons or underscores as separators
- Press Convert
- Review and/or copy the text that appears in the second text field.
You can find it at https://jsontoenvironmentconverter.azurewebsites.net/, and the source code is at https://github.com/flcdrg/JsonToEnvironmentConverter
Saturday, 9 May 2020
We had a long dry summer, but autumn has arrived, with what feels like a sneak peek of winter with some really good soaking rains in the last few weeks.
I was early to buy some vegetable seedlings to plant ahead for winter. English spinach, rainbow chard (silverbeet), spring onions, broccoli and bok choy. The spinach and bok choy have grown quickly and we’ve enjoyed them in a few stir fries already. I’m hoping the broccoli flowers soon.



I planted the capsicums way back at the start of summer and they’ve taken ages to mature. Other years, the fruit are just starting to appear when winter appears and the plants give up. This time I’ve had success. (Also a feature of the stir-fries)

The fruit trees are doing well. We’ve finished the gala apples, and the ‘pink lady’ are just coming into season now. They are deceptive as they’ve pinked up beautifully on the side that gets sun, but on the shady side they’re still quite green.

The lemon tree has been struggling for a number of years. It would flower and tiny fruit would set, but then it would all fall off over summer. A couple of years ago we had a professional fruit tree pruner come in and give us some advice. He suggested giving the tree some protection around the base as it might have been getting too much direct sun. That seems to have done the trick as this year the fruit stayed on the tree and as you can see the fruit is getting close to ripe!


The mandarin is heavy with fruit and it’s just coming into season. I love the flavour of our fruit - so much tastier than the shop varieties.

My dad has an impressive strawberry patch. He gave me some runners a few weeks ago and I’m pleased that most of them look like they’ve taken. These ones are in the area that our chooks scratch, so I provided the plants with some ‘chicken protection’ until they’re established.
