TekOnline

Category: Programming

  • Unity Get Closest Object ๐ŸŽฎ

  • Angular behind NGINX blank page

    TLDR:- Try your site in edge OR reset your cache like so: Click on the hamburger menu Click settings In the search box enter “cache” You should see the option to “Clear Data” click this! Now you should be fetching all fresh data. And if the issue is resolved, the page should load. Otherwise likely…

  • Angular Getters and Setters on @Input() fields

    Here is a handy cheat sheet… I kept forgetting the syntax of when an @input() decorator was used with a setter ๐Ÿคฆโ€โ™‚๏ธ Getter Setter The cool thing is that when you set the value of the variable, you can trigger a function call as above ๐Ÿ˜Ž

  • Leaflet Types for Angular๐Ÿ‘ฉโ€๐Ÿ’ป

    When developing angular applications that use leaflet, you can run into some issues. ๐Ÿ’ฃ Perhaps you are trying to import leaflet like this One of the most common issues (perhaps when developing with later versions of angular which use strict typescript rules by default) is you run into an error where you receive the error:…

  • Multiple selections (multi cursor) in Visual Studio 2022 and VS Code

    Multiple selections (multi cursor) in Visual Studio 2022 and VS Code

    For a while I thought it was only available in vs code until I found this stackoverflow post! ๐Ÿฅณ

  • How to add bearer token authentication to NSwag api.

    NSwag is a game changer for working with Angular and Net Core, you write your endpoint code, and swashbuckler generates your swagger docs. You can find more info on swashbuckler here: https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-6.0&tabs=visual-studio Where NSwag helps, is that it looks at the swagger document and generates all the typescript code, which includes the models, the functions…

  • We Hire It ๐Ÿฐ

    For a long time I have noticed that the hiring is becoming more and more popular. Car hire, holiday house hire, etc. I have run a small hire business in the past hiring jumping castles, ride on mowers, scaffolds, and things I felt people might find useful. I knew there was a lot to manage…

  • #include guards in C++

    I was having issues with an ESP32 project. I needed an instance of which was sitting in <wifisetupmanager.h> I needed this in two files – <setup.h> and <endpoints.h>. Ok no big deal, lets add it ๐Ÿ‘… not so fast!… When I added: In both files, I received the following error: src/wifisetupmanager.h:9:29: error: redefinition of ‘AsyncWiFiManager…

  • Debugging Angular with VS Code and Firefox

    Everyone has their own preference when it comes to debugging. Here is what has worked well for me! This example is based on a new angular application. If you would like to know how to get started with angular – head over here: https://code.visualstudio.com/docs/nodejs/angular-tutorial If you would like to clone the repo and give it…