Your cart is currently empty!
Category: Programming
-
Fix for prettier splitting HTML tags in VSCode
๐๐๐ ng on an Angular application can be a joyous experience, but when prettier starts splitting your HTML tags, it can quickly turn into a nightmare ๐ฑ. Fear not, for I have found a solution that will have you dancing ๐ in your chair with joy. After trying a few different settings, it turned out…
-
Limiting rotation in Unity easily, using relative direction of game objects
I wanted a way that would allow me to limit the gun rotation based on two game objects. That way different guns on the ship could have different limits so that the player couldn’t shot their own ship ๐ I wanted the limits to be visual, so that they are easy to visualize and adjust.…
-
Finding the process id (PID) when using Internet Information Services (IIS)
In IIS (Internet Information Services), PID (Process ID) is a unique identifier for the process running the application pool. Here’s how you can find the PID in IIS: Note that the PID may change if the worker process is recycled or restarted. So, it’s recommended to monitor the PID periodically if you need to keep…
-
File Audit with Entity Framework: Retrieve and Check Missing Files with Closest Modification Date
The FileAudit method is a useful way to retrieve file names from a database table and check if these files exist in a specified directory. With supporting methods like GetParent and GetClosestFile, it provides information about the missing files and the closest file based on the modification date. This article delves into the details of…
-
XPath Cheat Sheet ๐ฎ
Hopefully you find these handy! Handy XPath operators Putting it all together๐ผ Sure, here are a few examples of using XPath with Selenium in C#: Once you have found the element, you can interact with it using various methods such as Click(), SendKeys(), Clear(), GetAttribute(), GetCssValue(), GetText(), and more. For example, to click on an…
-
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: