When using the Format parameter of the Get-Date cmdlet, if you ever need a list of all supported format patterns, use this one-liner:
(more…)
Month: January 2016
Quick tip: Trim null-terminated strings
Recently, when reading string data from a binary file, I stumbled across the “problem” of trimming the terminating character from a null-terminated string. I started getting all creative about it, but it soon became quite a mess (code-wise), so I that down and had a re-think. This is how I ultimately ended up doing it. (more…)
Quick tip: Fix those line endings
In dealing with data transferred between different operating systems, we often come across the irritating phenomenon of, what might appear as, a file without any spaces in them. This is of course because of different end of line (EOL) characters, and I’m going to show you a quick and easy way of using PowerShell to “fix” these for Windows. (more…)
Invoke-WinMerge
Doing file compares can be quite confusing using Compare-Object, so unless you only want to check for equality, using a GUI can be tremendously helpful. Enter WinMerge. I guess most of you have used, or are currently using, this fabulous tool. I created a simple wrapper for WinMerge so that it’s easier than ever to open file (or folder) comparison right from the PowerShell console. (more…)
View Steam wishlists with PowerShell
With Steam having frequent sales, I find I often pop into my own, as well as my friends wishlists to plan purchases. Wouldn’t it be great to be able to list a wishlist from the PowerShell console? (more…)
2015 in review and a peek at 2016
For the first post of 2016 I’d like to take a look at the year that we have just left behind, as well as try to peek into 2016. (more…)