Creating an SSL certificate for HTTP.sys request

C# Discord bot for .NET 8.0

In order to get this to run on a non-dev runtime box, you’ll need to install multiple of not all of these runtimes located here: https://learn.microsoft.com/en-gb/cpp/windows/latest-supported-vc-redist?view=msvc-170
I think the 2005VCRuntime along with the 2015-2019VCRuntime got it working on my Server 2019 Core setup.

Here is a sample HTML5 socket webpage if you’d like to access it from a remote machine.

Getting IIS Express to listen on a network LAN IP with visual studio.

Normally my post arnt so short but this burned 45 minutes of my time as I struggled to get a native IIS express deployment from VS2022 to use a lan port for debugging remote connections.

Navigate to \RootProjectDirectory\.vs\{ProjectName}\config\applicationhost.config

Run Visual Studio as Administrator, this is critical.
Delete the file after backing it up, then while in Visual studio click Create Virtual Directory using a different port on HTTP then the one you wish to open on lan
Start the project, then Stop debugging. Once Stopped, confirm IIS is no longer running on the taskbar.

Open the newly generated applicationhost.config file within the config directory and add the new binding, mine existed on line 168.

<binding protocol=”http” bindingInformation=”*:44392:{PUT LAN IP HERE}” />

An example of the config will look like this

<sites>
<site name=”WebSite1″ id=”1″ serverAutoStart=”true”>
<application path=”/”>
<virtualDirectory path=”/” physicalPath=”%IIS_SITES_HOME%\WebSite1″ />
</application>
<bindings>
<binding protocol=”http” bindingInformation=”:8080:localhost” />
</bindings>
</site>
<site name=”ProjectName” id=”2″>
<application path=”/” applicationPool=”Clr4IntegratedAppPool”>
<virtualDirectory path=”/” physicalPath=”C:\Users\User\source\repos\ProjectName\ProjectName” />
</application>
<bindings>
<binding protocol=”http” bindingInformation=”*:44391:localhost” />
<binding protocol=”http” bindingInformation=”*:44392:192.168.0.199″ />
</bindings>
</site>
<siteDefaults>
<!– To enable logging, please change the below attribute “enabled” to “true” –>
<logFile logFormat=”W3C” directory=”%AppData%\Microsoft\IISExpressLogs” enabled=”false” />
<traceFailedRequestsLogging directory=”%AppData%\Microsoft” enabled=”false” maxLogFileSizeKB=”1024″ />
</siteDefaults>
<applicationDefaults applicationPool=”Clr4IntegratedAppPool” />
<virtualDirectoryDefaults allowSubDirConfig=”true” />
</sites>

Save, then click Start debug within VS. You may now HTTP from your other machine using the newly added port.

Using LLamaSharp with RAG.

So, The data appears to take 6x-7x the amount of space to archive into the SQLlite memory storage.

Clearing history with a Chatsession does not appear to work correctly so I swapped over to a stateless built which helped so long that the RAG only needs to be called once per question. If additional questions need to be asked on the same data then optimization can be added to speed things up.

I will node that the prompt I’m using to search on provided much better results then the format documented on hugging face oddly enough. “Assistant:” {Query} “User:” instead of “instruct”, “query”.

I also used a function to pull filler words to speed up and create a more reliable keyword function, but the LLM itself wasn’t too bad.

Ultimately, Ill have to stick with the statelessexecutor until I can validate that the ChatSession operates correctly. Once I call LLMSession.load(CleanSession), readding in the prompts appears to not work correctly. During debugging, upon the second add, the count of the ChatSession remained zero.

Installing windows 10 on a Mid 2012 Mac Book without Bootcamp assistant

Download Rufus: https://rufus.ie/downloads/

Download windows 10: https://www.microsoft.com/en-us/software-download/windows10 – Create an .ISO to burn with Rufus

When using Rufus to burn the image to the thumbdrive, it is critical that you select MBR partitioning and that BIOS / Legacy mode is selected. WARNING: If this step is not followed and UEFI is used, which is the default for Windows 10 thumb/flash drive deployments, installation and driver support from bootcamp after windows is loaded will fail and you may receive a bluescreen from Intel’s video graphics driver. On top of that the memory allocation will not be in the correct location for DSDT (See links below on how to solve if you cannot reinstall) and your audio will not work out of the box.

Once windows is installed, grab Brigadier.

https://github.com/timsutton/brigadier – Select “Releases” on the right hand side or click here: https://github.com/timsutton/brigadier/releases/

Run Brigadier’s EXE as ADMINISTRATOR and let it run. Ensue the setup located within the BootCamp-041-84821\bootcamp\setup.exe is executed. This process will take about 20-30 minutes to complete as it installs all the stock drivers.

After, run “Apple Software Update”. The first time it may complain about the bootcamp signature not matching but it will still be able to update the “Apple Software Updater” itself. Continue updating and rebooting untill all updates are completed. NOTE: During this process I did receive a hanging white screen once and was required to hold down the power button to hard shutdown upon the boot process and powered it on moments later and the laptop continued to operate as normal.

Exception: During my experience everything installed but the latest “Boot Camp 6 Update for Windows 10”, however, did not impact my deployment at all as my sounds, Wifi and all devices in device driver checked out perfectly fine.

After all updates are completed, move to Windows Update and install all updates and your good to go!

Other links that are note worthy during my review of this issue.

https://apple.stackexchange.com/questions/278518/macbook-pro-late-2011-sound-issues-in-windows-10-no-bootcamp

https://discussions.apple.com/thread/250137979?sortBy=rank

https://discussions.apple.com/thread/250137979?sortBy=rank

https://github.com/toleda/audio_hdmi_hd4000