TechTalk / CodeBlog

Having dynamic properties as input array in tests – breaks the listing in test manager

In Visual Studio 2019 Mac – while building Theory based tests, using input object array This will work perfectly Trying to be a bit more robust (as we now property names will change) , replacing the static “Index” with something like nameOf() won’t work, resulting in the test disappearing of the radar in the test … Continue reading Having dynamic properties as input array in tests – breaks the listing in test manager

Stumbled across my MS thesis about the importance of processes in Software Development

Just stumbled across my 2004 MS thesis – “A Case Study into the Effects of Software – Process Improvement on Product Quality” – as study into the effects of agile project process maturity on the types of defects that surface in a software product. Still interesting stuff (at least some of the principles discovered) almost … Continue reading Stumbled across my MS thesis about the importance of processes in Software Development

Fixing google authentication due to my half-ass https setup

The problem Google Authentication on my Blazor app worked locally but not live – hosted @DigitalOcean in Ubuntu Docker Containers. Locally I was working https using devcerts and the https on the DigitalOcean droplet was faked using Cloudflare’s (super-nice) security features (where they basically hide your website behind ssl without any certificate installation. I switched … Continue reading Fixing google authentication due to my half-ass https setup

Mac: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.

For 3 hours I was dealing with the title error nothing seems to work until I read the answer from hikrikunen where the key was deleting the localhost certificates in the system keychain and then running dotnet dev-certs https –clean and then dotnet dev-certs https -t Uptil the point of deleting the localhost certificates, the … Continue reading Mac: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.

Blazor: having a App/Pages/System folder will kill your app!?

Fun discovery of the day … when building Blazor – having a Pages subfolder called System will completely mess upp the application build. Renaming the folder to SystemX (or anything else for that matter) will make those errors disappears 🙂 This is possibly a result of some local coincidence … but I can reproduce this … Continue reading Blazor: having a App/Pages/System folder will kill your app!?

EF6 core – reset migrations during development

In development and while testing various things in EF6 core – I tend to end up with a lot of migration garbage which occasionally I have to take out. This is how it’s done #notetoself Delete all *. cs files in the Migrations Folder. Delete the _MigrationHistory Table in the Database Delete all database tables subject to the migration … Continue reading EF6 core – reset migrations during development

EF6 core – load grandchildren in query – the key is ThenLoad

Working with entity: Tournament Which has children: TRound with Course as entity that needs to be loaded based on Id ( as each golf round is played on a Course 🙂 ) ctx.Tournaments.Include(c => c.Trounds).ThenInclude(c => c.Course) Took me a while to figure out why ctx.Tournaments.Include(c => c.Trounds.Select(c => c.Course)) stopped working, but it is … Continue reading EF6 core – load grandchildren in query – the key is ThenLoad

TechTalk – Tænispjall í hádeginu eftir 14. daga

Við erum live c.a. þriðja hvern þriðjudag (þri-þri – auðvelt að muna) en hina 1-2 þriðjudagana á milli munum við hita upp með einhverju skemmtilegu myndskeiði sem leiðir okkur að efnisatriði næsta fundar. Sjáumst “live” eftir 2 vikur.

Docker networking #notetoself

Networking List network setup: docker network ls List: docker network inspect -f ‘{{range .IPAM.Config}}{{.Subnet}}{{end}}’ [networkid] List IPs of all containers.  docker network inspect -f ‘{{json .Containers}}’ [networkid] | jq ‘.[] | .Name + “:” + .IPv4Address’ View host setup: docker exec [nameofnode] cat /etc/hosts Running a named container: docker run -name api1 -p 8080:80 gcp-api … Continue reading Docker networking #notetoself

Loading…

Something went wrong. Please refresh the page and/or try again.