Category: C#

  • ChatGPT is a new (and faster) way to do programming!

    ChatGPT is a new (and faster) way to do programming!

    Currently ChatGPT is in a free “initial research preview”. One of its well known use cases at this point is generating software code. I’ve also just used it to write most of this article… Well, actually a future article about cleaning up SRT subtitle files of their metadata faster than I have been by hand…

  • Made an app to quickly get short ebay affiliate links.

    This article will be more about concepts than code. I’m not sure how ebay, and indirectly Impact the affiliate network, feel about programmatic website interaction. I’m also writing this well after I had created a working version of the program, so I’m working off of what information I gather after the fact. At one point,…

  • Historic frequency based random lotto number generator.

    This example is a little program to generate random numbers based on historic lotto results. Each potential result pull is weighted based on past results. The full project is available on GitHub here. First, we need to store the historic data. In this case I use an instance of SortedDictionary. There is a possible range…

  • C#: Using WebClient on CSV Formatted Stock Data

    In this example I wrote a program to pull historic stock data from the ticker “DIS” over the past 10 days from the current date (it will be less than 10 results because weekends don’t have data). I used the .NET Framework WebClient object to request and return the data as a string that I…

  • A simple classic VB code counter made in C#

    I made this simple application a while back when I needed to quote a project where I was tasked with converting a sizeable amount of classic Visual Basic code into the .NET Framework. This application I wrote allowed me to start my estimation so that I could tie a dollar amount to the work. There…

  • C#: Using the Background Worker to thread your application processing.

    In this article I go over using the background worker control in C# .NET Framework (Visual Studio 2015). This control allows you to easily do processing intensive tasks without locking up your interface thread. I use this a lot in winforms applications where I expect code to take any amount of time that the user…

  • Working with Regular Expressions in C#

    I’ve been working on a program that needs to parse a html file for form data.  So when I was deciding what method to use, a few popped right into my mind. The first being a character by character search through the string.  Parsing through the data and flagging sections that fit the signature of…