<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Sean Lloyd</title>
        <link>https://www.sean-lloyd.com/</link>
        <description>Full Stack Web Developer, living in Kingston upon Thames, UK.</description>
        <lastBuildDate>Tue, 20 Sep 2022 13:45:05 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>Gridsome Feed Plugin</generator>
        <atom:link href="https://www.sean-lloyd.com/rss.xml" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[How to find the Powershell version in Windows]]></title>
            <link>https://www.sean-lloyd.com/post/find-powershell-version/</link>
            <guid>https://www.sean-lloyd.com/post/find-powershell-version/</guid>
            <pubDate>Thu, 03 Jun 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[There are a few ways to find out which version of PowerShell is installed on a system.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Kill a Thread - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-kill-a-thread/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-kill-a-thread/</guid>
            <pubDate>Mon, 17 May 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[If you wish to terminate a thread in C#, you can use the Abort() method. Using Abort() with throw a ThreadAbortException, which will terminate the thread. To show this in action, let's first create a thread]]></description>
        </item>
        <item>
            <title><![CDATA[How to Replace Part of a String Using Powershell]]></title>
            <link>https://www.sean-lloyd.com/post/replace-string-powershell/</link>
            <guid>https://www.sean-lloyd.com/post/replace-string-powershell/</guid>
            <pubDate>Wed, 05 May 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[There are two very simple ways to replace text within a string in Powershell. You can replace part of a string using the replace function, or by using the replace operator.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Use OfType in LINQ - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-use-oftype-in-linq/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-use-oftype-in-linq/</guid>
            <pubDate>Tue, 04 May 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[A quick guide on how to use the OfType LINQ operator.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Use SelectMany in LINQ - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-use-selectmany-in-linq/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-use-selectmany-in-linq/</guid>
            <pubDate>Mon, 03 May 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[A quick guide on how to use the SelectMany LINQ operator.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Use Where in LINQ - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-use-where-in-linq/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-use-where-in-linq/</guid>
            <pubDate>Sun, 02 May 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[A quick guide on how to use the Where LINQ operator, using both method and query syntax.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Use Select in LINQ - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-use-select-in-linq/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-use-select-in-linq/</guid>
            <pubDate>Sat, 01 May 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[A quick guide on how to use the Select LINQ operator, using both method and query syntax.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Hash a String - C#]]></title>
            <link>https://www.sean-lloyd.com/post/hash-a-string/</link>
            <guid>https://www.sean-lloyd.com/post/hash-a-string/</guid>
            <pubDate>Thu, 29 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[The process of hashing in cryptography is to map any string of any given length, to a string with a fixed length. This smaller, fixed length string is known as a hash. To create a hash, it must be passed into a hash function.]]></description>
        </item>
        <item>
            <title><![CDATA[Uncaught RangeError: Maximum call stack size exceeded]]></title>
            <link>https://www.sean-lloyd.com/post/uncaught-rangeerror-maximum-call-stack-size-exceeded/</link>
            <guid>https://www.sean-lloyd.com/post/uncaught-rangeerror-maximum-call-stack-size-exceeded/</guid>
            <pubDate>Wed, 28 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[I've noticed this error pop up a few times. debugging it can sometimes be difficult - Uncaught RangeError: Maximum call stack size exceeded. While not always, typically I see this error within a recursive function.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Use Implicit and Explicit Casting - C#]]></title>
            <link>https://www.sean-lloyd.com/post/implicit-and-explicit-casting/</link>
            <guid>https://www.sean-lloyd.com/post/implicit-and-explicit-casting/</guid>
            <pubDate>Tue, 27 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[When you want to convert a value from one data type to another data type, you need to cast it. There are two types of casting in C#, implicit casting and explicit casting.]]></description>
        </item>
        <item>
            <title><![CDATA[How to Box and Unbox Variables - C#]]></title>
            <link>https://www.sean-lloyd.com/post/boxing-and-unboxing/</link>
            <guid>https://www.sean-lloyd.com/post/boxing-and-unboxing/</guid>
            <pubDate>Mon, 26 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[Boxing and unboxing are important concepts in C#, allowing you to convert .NET data types from a value type to a reference type, and visa versa. Here's a quick example to show the difference]]></description>
        </item>
        <item>
            <title><![CDATA[How to Throw Multiple Exceptions at Once, Using AggregateException - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-throw-multiple-aggregate-exceptions/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-throw-multiple-aggregate-exceptions/</guid>
            <pubDate>Sun, 25 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[It's easy enough to throw a single exception, but what if you want to detect if multiple exceptions would be thrown at once? You can't immediately throw. When using throw, the operation you are currently running will stop, and the application will find itself either in a catch block, or halted if the exception was unhandled.]]></description>
        </item>
        <item>
            <title><![CDATA[Why am I getting this exception? - C#]]></title>
            <link>https://www.sean-lloyd.com/post/why-am-i-getting-this-exception/</link>
            <guid>https://www.sean-lloyd.com/post/why-am-i-getting-this-exception/</guid>
            <pubDate>Sat, 24 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[There are many different types of built-in exception classes in .NET. You'll see some more often than others, however it's helpful to have a basic understanding of all of them, as you'll likely encounter each one at least once!]]></description>
        </item>
        <item>
            <title><![CDATA[How to detect if Powershell is installed - C#]]></title>
            <link>https://www.sean-lloyd.com/post/detect-if-powershell-installed/</link>
            <guid>https://www.sean-lloyd.com/post/detect-if-powershell-installed/</guid>
            <pubDate>Fri, 23 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[I recently found myself in a situation where I assumed Powershell was installed on a Windows server (after all, Powershell is installed on every Windows server, surely?), and it wasn't. Thus, calling a Powershell script from C# caused quite a few errors.]]></description>
        </item>
        <item>
            <title><![CDATA[How to handle inner exceptions - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-handle-inner-exceptions/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-handle-inner-exceptions/</guid>
            <pubDate>Thu, 22 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[All exception in C# inherit from the Exception base class. You may then find that, when executing code that could throw multiple types of exceptions, you want to handle all the exceptions with the same base type in the same way.]]></description>
        </item>
        <item>
            <title><![CDATA[Catching the base class of an exception - C#]]></title>
            <link>https://www.sean-lloyd.com/post/catching-base-class-exception/</link>
            <guid>https://www.sean-lloyd.com/post/catching-base-class-exception/</guid>
            <pubDate>Wed, 21 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[All exception in C# inherit from the Exception base class. You may then find that, when executing code that could throw multiple types of exceptions, you want to handle all the exceptions with the same base type in the same way.]]></description>
        </item>
        <item>
            <title><![CDATA[How to create custom exceptions - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-create-custom-exceptions/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-create-custom-exceptions/</guid>
            <pubDate>Tue, 20 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[C# includes a wide range of exception types. However, you'll likely want to raise a specific exception when an application rule is broken. To do this, you'll need to create a custom exception.]]></description>
        </item>
        <item>
            <title><![CDATA[Using finally after catching exceptions - C#]]></title>
            <link>https://www.sean-lloyd.com/post/try-catch-finally-exceptions/</link>
            <guid>https://www.sean-lloyd.com/post/try-catch-finally-exceptions/</guid>
            <pubDate>Mon, 19 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[An exception is an applications response to an exceptional circumstance, that needs to be specially handled. We can specify how the exception is handled by catching the exception.]]></description>
        </item>
        <item>
            <title><![CDATA[How to re-throw an exception - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-rethrow-an-exception/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-rethrow-an-exception/</guid>
            <pubDate>Sun, 18 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[When we catch an exception, we could throw another exception within the catch block. This could be the same type of exception, or a different type altogether. By throwing an exception within a catch block, we're assuming that a method higher up the call stack will handle it correctly.]]></description>
        </item>
        <item>
            <title><![CDATA[How to catch exceptions - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-catch-exceptions/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-catch-exceptions/</guid>
            <pubDate>Sat, 17 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[While it is important to throw exceptions in unexpected circumstances, throwing an exception and not handling it is far from ideal. To catch an exception, we first need to encapsulate the code that may throw the exception within a try block.]]></description>
        </item>
        <item>
            <title><![CDATA[How to throw exceptions - C#]]></title>
            <link>https://www.sean-lloyd.com/post/how-to-throw-exceptions/</link>
            <guid>https://www.sean-lloyd.com/post/how-to-throw-exceptions/</guid>
            <pubDate>Fri, 16 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[We can use exceptions to indicate when an error has occurred when running our application. Some of these exceptions will be created by the CLR (Common Language Runtime) to handle typical errors. You will also want to create your own exceptions, in order to correctly handle exceptional situations.]]></description>
        </item>
        <item>
            <title><![CDATA[Creating code sandboxes for 50+ languages using Replit]]></title>
            <link>https://www.sean-lloyd.com/post/sandboxes-in-replit/</link>
            <guid>https://www.sean-lloyd.com/post/sandboxes-in-replit/</guid>
            <pubDate>Thu, 15 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[I've been looking into different sandbox tools to execute C# code in recently. The one I've been blown away by the most is Replit.]]></description>
        </item>
        <item>
            <title><![CDATA[Creating asynchronous tasks, using async and await - C#]]></title>
            <link>https://www.sean-lloyd.com/post/using-async-and-await/</link>
            <guid>https://www.sean-lloyd.com/post/using-async-and-await/</guid>
            <pubDate>Wed, 14 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[Sometimes you will have code that takes a long time to execute, whether it's a web request, a complex calculation, or some other input/output operation. If you run this code synchronously, you may find that the application will freeze whilst waiting for the code to complete..]]></description>
        </item>
        <item>
            <title><![CDATA[Animate scrolling to an element in Javascript]]></title>
            <link>https://www.sean-lloyd.com/post/animate-scroll-into-view-javascript/</link>
            <guid>https://www.sean-lloyd.com/post/animate-scroll-into-view-javascript/</guid>
            <pubDate>Tue, 13 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[Spent quite a while looking into different ways to animate scrolling on a page, many of which required jQuery. I'm not against jQuery, by any means, but importing a whole library for that alone seems a bit overkill. Plus, I've managed to survive without it so far.]]></description>
        </item>
        <item>
            <title><![CDATA[Importing and exporting csv files with Powershell]]></title>
            <link>https://www.sean-lloyd.com/post/importing-and-exporting-csv-files-with-powershell/</link>
            <guid>https://www.sean-lloyd.com/post/importing-and-exporting-csv-files-with-powershell/</guid>
            <pubDate>Mon, 12 Apr 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[Many applications are able to export data into a CSV file, making it easy to import the data into a separate application. If you wish to export data from Powershell as a CSV file, or import a CSV file into Powershell, you can use the Export-CSV and Import-CSV commands]]></description>
        </item>
    </channel>
</rss>