I’ve been exploring the concept of creating a decorative traffic light. Using TinkerCad’s circuit designer, I successfully designed a circuit that incorporates an Arduino Microcontroller, three N-type MOSFETs, and several bulbs. The Arduino code is straightforward: You can view the project here. Currently, I’m uncertain whether the MOSFETs can handle the required amperage for the…
Category: Development
Recursive Directory Search
This is a recursive function I wrote that returns an ArrayList of the file names in a folder. This was written in VisualBasic.net 2015. Private Function recursiveDirectorySearch(ByVal SearchDirectory As String, ByRef Optional SearchPattern As String = “*.pdf”) As ArrayList Dim Directory, CurrentFile As String Dim myList As New ArrayList Try For Each Directory In System.IO.Directory.GetDirectories(SearchDirectory)…
ColdFusion: Friendly Time (Posted X mins/hours/days ago)
I am not sure what to call this type of date/time formatting, but I had a need to format time in the “Posted x minutes ago” format using ColdFusion. I couldn’t find much data on the Internet on how this should be done, but I was able to convert a PHP function that was posted…