Your cart is currently empty!
Category: Programming
-
Working with Null dates in DateRange Picker.
๐ Hey there! I recently worked on implementing a date range picker using the Daterangepicker plugin in my web application. It was a bit of a challenge at first, but I learned a lot from the experience. One of the main issues I encountered was how to handle null dates with moment.js library. I found…
-
๐ป Angular Tip: How to Trigger a Pipe Update with Object Assignments
If you’re building an Angular app that uses pipes to transform data, you may run into a situation where you need to update an object in your component and have the pipe react to the change. But what if the pipe doesn’t update, even though you’ve assigned a new value to the object? ๐ Here’s…
-
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. ๐ข…