return a simple promise
It’s easy but I keep forgetting. I have a function that triggers an axios request and returns it as a promise – unless the value is already there. In that case I want to return a simple promise with just […]
I am Ophidia, programmer.
It’s easy but I keep forgetting. I have a function that triggers an axios request and returns it as a promise – unless the value is already there. In that case I want to return a simple promise with just […]
I used the Telerik TimePicker Wrapper Component in a project. Since its usage was limited to a single component, I included it there as follows: That created a timepicker alright, but when I selected a time from the dropdown, this console […]
What I needed was a way to check if a click on a downloadlink actually triggered a download. Solution:
My function looks more or less like this: To test this with xUnit there is the problem that WebRoot does not contain the correct path. IWebHostEnvironment can be mocked, but that helps only if it returns the correct path. What […]
To change the recaptcha language when its included via vue-recaptcha-v3, it needs to be set via loaderOptions.renderParameters.hl = ‘de’. Here is a simple example for usage in a component:
I had to add data to existing tables. Using seed data wasn’t possible, therefore I wanted to do it via database migration. If its simple data, migrationBuilder.InsertData works fine. But its not that easy when you have to add a […]
I have a list of the type SomethingDTO and I now want to generate a new list of the type SomethingNeuDTO with 2 Values: “Bezeichnung” and “Nummer”, where Nummer is simply a sequential number from 1 to x. To make […]
In Safari a normal vue.js page produced an empty page every now and then for seemingly no reason. Since debugging with iOS is a pain in the ass and only possible through this hack, it took us a while to […]
.net core 3.0 still cannot handle TimeSpans. So I created my own TimeSpanConverter: Now all it needs is registering in the startup.cs: Done!
Using .net core and Entity Framework I encountered the problem that since introducing a seeding migration, the add-migration and remove-migration commands no longer worked as expedted. Problem 1: add-migration would try to update a table with every new migration – […]