TekOnline

Author: jcianci12

  • Angular CSV to JSON ๐Ÿš—

    Here is a handy little pipe that allows csv to JSON (Usefull for importing CSV files into your angular app)

  • 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! ๐Ÿฅณ

  • MVC project running under Windows Server 2012r2 and ASP.NET 4.7 cant use Azure to authenticate anymore IDX20803 [SOLVED]

    I logged in one morning to find that users of one of our apps were getting an error authenticating with an MVC site. When I investigated to check if this was a site wide issue, it seemed that anything on the site that was using Azure Identity was failing. The issue seemed to be caused…

  • Neato Mod

    Does your neato get stuck? Well look no more! With this attachment I made it raises neato so he doesn’t get stuck under furniture. Sometimes Neato can get confused and error saying please clear my path but generally he figures it all out. I first measured the width and length of neatos top and I…

  • 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…