Restore USB Stick Full Capacity

How to restore USB stick back to full capacity after FAT32

If you've ever needed to convert the format of a USB stick to FAT32, you might find that the full capacity of the of the stick is no longer available.

To restore it back to normal size, open a command line as Administrator and use the following commands...

diskpart
list disk
select disk # (BE CAREFUL TO GET THE RIGHT NUMBER)
clean
create partition primary
format fs=ntfs quick
Added 18/05/2019 14:12

Removing Entire Unix Directory

How to silently delete a directory, sub-directories and files on Unix

On a Unix system, the following command line will silently (no prompts or messages) remove a directory, along with all the sub-directories and files...

rm -rf {name}
Added 03/04/2019 15:54

Handling 404 Errors in Development

How to handle 404 errors when running code on development computer

For some time now (since I moved to Windows 10 for my development environment) I've failed to get 404 error handling to work.  But as it hasn't been a major issue, I've ignored it.

Today I needed it to work, and I've finally discovered why it didn't.  It was due to the following being missing...

<system.webServer>
<httpErrors errorMode="Custom">
  <remove statusCode="404" subStatusCode="-1" />
  <error statusCode="404" path="/Error/404.aspx" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>

The key part is the errorMode="Custom" which forces the handling on the local machine, otherwise the default is that only requests from locations other than the local machine are dealt with

Added 16/01/2019 14:20