Category: Uncategorized

  • JavaScript: Mixed topics

    How to check an undefined value? In JavaScript we have different type of undefined values: Converting data type From String to Integer From String (with thousands separator) to Integer Date and time operations Get date time in YYYY-MM-dd hh:mm:SS format JSON operations Logging of JSON Data The following examples show different ways to log a…

  • ASP.NET Web API, Blazor, Authentication: Mixed topics

    The following post is an attempt to describe one potential solution of a simple application with an ASP.NET Web API backend and a Blazor WebAssembly frontpage with some form of authentication: ASP.NET WebAPI & Blazor WebAssembly This post is a compilation of topics and troubleshooting notes that might be useful for implementing a simple ASP.NET…

  • Cypress: Single and multicriteria selections

    Introduction This post contains a list of combinations of selection commands involving single and multiple criteria. The command examples often do a little bit more than selecting an element but the main thing is the selection, the rest is just to give some ideas in which context that selection command could be used for example.…

  • WebAssembly Blazor: local storage

    In this post, we discuss an example of a WebAssembly Blazor application using the browser’s local storage. We create a dummy Login page that stores the authentication state persistently in the local storage. Of course, because this is a dummy Login page no real authentication happens here, we just want to demonstrate how we can…

  • Markdown: Mixes topics

    Nested list The following screenshot shows how you can enter a nested list. On the left side you see the markdown code for a nested list and on the right side you see the markdown preview: Referencing other headings The following example shows how we can add a reference to another section (heading) on the…

  • Cypress: Items selection

    Dropdowns Simple dropdown In case of a simple dropdown, where you can only select one item at a time, a dropdown with a HTML code like this: You can select an item by just using its text: cy.get(‘#someDropdownId‘).select(‘someItemText‘); Handling multiple results Selecting the nth element Assuming you have an element like this on your page:…

  • WordPress: Twenty Twenty-two theme & Search bar

    Overview As you are adding posts to your WordPress blog you make it harder and harder for the visitors to find individual or related posts. As usual with WordPress there is more than one solution to this problem. For one, WordPress itself offers an out-of-the-box search block that can be added to the page. But…

  • Flutter/Dart: Mixed topics

    Button types IconButton Here is an example of the usage of the buttons of the type IconButton: The button would look like this on the GUI:

  • Linux Bash scripting: Mixed topics

    Debugging Let’s assume we have a bash script like this: test.sh: If we run this script with bash command: bash ./test.sh We get for example the following result, if the file does not exist: File not found But with the help of -x option we can add a bit of debugging and see a bit…

  • Web API & Balzor: Mixed topics

    Troubleshooting Ok Response arrives but content is missing Problem We try to consume a value from a Web API method from Blazor. The Response has the Ok status, but the content is always null even though we are sure that we are indeed sending a content back. Here is an example of such a scenario…