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
Blazor: Modifying header meta and link elements
When creating web applications, we all try to create good SEO tags in the header of each page. Modifying the meta tags based on page content is a standard practice. In Blazor, this is not obvious as the _host.cshtml is rendered before the Blazor execution pipeline. There was a tag extension in the preview of … Continue reading Blazor: Modifying header meta and link elements
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!?
Migrating from mssql to postgres in ef6
I was faced with the project of migrating an mssql database to postgres (why? mainly because of licensing fees as we are about to go live with the solution – without any revenues any time soon 🙂 ) This is more a #notetoself if im faced with this again rather than any kind of guideline … Continue reading Migrating from mssql to postgres in ef6
EF6 core association table schema definition
Had some problems with the EF6 – working with 2 tables in the UserManagement schema – created an automatic association table in the dbo schema. Look no further than here for an explanation and solution #notetoself
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
Blazor OnClick doesn’t fire
#notetoself … Once again, scratching my head for way to long about something that turns out to have a simple workaround #devlife On one of my (new) blazor pages (/Bookings/TeeTimes), onclick event was not firing. Didn’t matter what kind of flavour of onclick declaration I used, the event was not getting fired. Until of course … Continue reading Blazor OnClick doesn’t fire
NullPointer exception in SyncFusion Listview (SfListView) #notetoself
If the ListViewFieldSettings element is missing when building Blazor… (build validation or code complete doesn’t catch this mistake) This results in a nullpointer exception which is difficult to debug #notetoself #devlife
Blazor live reload (quickstart #notetoself)
Starting point is Rick Strahl’s github: https://github.com/RickStrahl/Westwind.AspnetCore.LiveReload Add Westwind.AspNetCore.LiveReload Add services.AddLiveReload(); (in startup.cs) Add app.UseLiveReload(); (in startup.cs) Run the app from console: dotnet watch run . Open localhost:5050 (or what everport you have defined) Voila, you have live reload #notetoself
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.