Category: Programming
-

Adding session timeout to ASP.NET MVC 5
As part of security improvements, we needed to add a session time out in one of our apps. One of the challenges though is that users could be in the middle of submitting their work, go past the timer, then submit, and because their session has expired, they loose their work. Here is how we…
-

MVC 5 Dynamic redirect Uri for external OpenId authentication
If you are like me, you dont like having extra configuration in your web transforms. Originally I was setting the redirect uri statically from the web config using However, this means that we need a separate web config when we run locally vs when we run on the server. Also, the redirecturi is static. 😢…
-

Download JSON data dynamically in Angular
Here is a quick code snippet that shows how we can download JSON data. This is useful for saving the application ‘state’ kind of like a save feature 📼 I hope this helps you create a component that allows you to save JSON data ✔
-
Star Haulers
Inspired by the hit game Lovers in a Dangerous Spacetime, our game offers a unique local co-op experience that will test your teamwork and communication skills like never before. With a fun and engaging learning curve, this game is perfect for families who want to bond and have fun together. Rally your family and work…
-
Cant push to git? Maybe you need this…
If you cant push to GIT, it may be something as simple as configuring your git settings. You can do the following by typing these commands in git bash:
-
How to map from one dynamic object to another in typescript 🌏
I wanted users to be able to select a style from a drop down at GeoJson-Styler (jcianci12.github.io) The user can choose how they want their geoJSON objects styled. at the moment the options are colour, text, and opacity. The classes look as follows: As you can see the text class is different to the other…
-
Fixing MVC 5 Intellisense false errors (erroneous errors) 😢😣😖
This one really had me scratching my head. My error was looking similar to this stack overflow post – like this: The type ‘Expression<>’ is defined in an assembly that is not referenced Here is what worked for me… Locate the Web.Config in the root of your project (not the one in the views folder)…
-
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…