Skip to content

Insane in the Main Frame

I am Ophidia, programmer.

  • Home
  • Deutsch
  • English

Insane in the Main Frame Insane in the Main Frame

Kendo UI for Vue: Error in TimePicker Wrapper Component

14. July 202214. July 2022 ophidiavue.js

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 […]

Read more

Cypress: verify click on downloadlink

12. May 202212. May 2022 ophidiaCypress

What I needed was a way to check if a click on a downloadlink actually triggered a download. Solution:

Read more

UnitTests: read an image

12. October 202112. October 2021 ophidia99

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 […]

Read more

vue-recaptcha-v3: change language

29. April 202129. April 2021 ophidiavue.js
Photo by Kai Wenzel

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:

Read more

EF Database Migration: Adding data and getting the ID

12. February 202112. February 2021 ophidiaC#
Photo by Christopher Burns on Unsplash

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 […]

Read more

LINQ: Data + sequential number into new list

27. November 202027. November 2020 ophidiaC#, LINQ
Photo by Kolleen Gladden on Unsplash

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 […]

Read more

vue.js and safari: a white page every now and then

20. August 202020. August 2020 ophidiavue.js

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 […]

Read more

.net core WebApi: write a custom JsonConverter

6. May 20206. May 2020 ophidiac#
Photo by Aron Visuals on Unsplash

.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!

Read more

remove-migration doesn’t remove the migration files

20. March 202020. March 2020 ophidiac#
Photo by Aryan Singh on Unsplash

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 – […]

Read more

LINQ: get the 5 people with the next upcoming birthdays

16. December 201916. December 2019 ophidiaLINQ

I needed a list of 5 students ordered by their upcoming birthdays. To make it a little harder, there is a Student table and a Person table where data such as birthday or name are stored. The query I came […]

Read more

Posts navigation

Older posts
  • Privacy
  • Contact
  • RSS
Powered by WordPress | Theme: Astrid by aThemes.