Blog posts

164 results found

164 results in .NET, Dev, Git, SQL, Tools

dotnet Get a flat list of exception and inner exception error messages

Debugging errors can be difficult, especially when you need to see the errors inside the errors. This post shows you how you can get all errors as a collection of errors rather than them being hidden inside other errors. You can create an extension method like this one

dev Font Awesome Social Share Icon Links

Font Awesome gives you access to hundreds of icons, and allows you to stack them on top of eachother to create different icons. In this code example you will see I stacked the twitter icon on top of a circle and did the same for the other links.

tools Dynamic placeholder images

If you ever need a placeholder image, you don't need to create one, you can just use this url with the size of placeholder image you want:

dev jQuery copy values from one set of textboxes to another

If you ever wanted a simple bit of jQuery to copy values from one set of texboxes, to another set of texboxes, this is the post for you. This is useful for copying billing address details over to the shipping address. I looked everywhere for a post like this to give me the answer, so now that I solved it myself, I created the post for others who are looking for the same answer.

dotnet Sorting a list into random order using linq

Every now and again, there is a need to produce a list in a random order. I've found a very reliable way to do this using linq and the Guid class.

dotnet List ForEach Method

The .ForEach() It is very handy for shortening your code. Lets say you want to write a method which returns a list of MailAdress objects.

dotnet Null-coalescing Operator

Shorter code for using the value of a nullable object or another value if not.

tools How to generate random and realistic data online

If you want to be able to generate random and realistic data for your program, there is a fantastic free resource called Mockaroo.