String.prototype.fToFilenameSafeString I preserve a consistent naming convention throughout all the different tech layer making up a solution. For example backend DB object name will have same name as JavaScript object and will have the same CSS wrapping class name. This doesn't always work as certain characters are not allowed in some contexts, one being filenames character restrictions. A quick solution is to pipe the String through encodeURIComponent(...) but that is somewhat aggressive and results in filenames that are not human friendly. The below function encodes only the illegal characters which results in more readable filenames. String.prototype.fToFilenameSafeString = function() { /* unsafe characters list (https://stackoverflow.com/a/31976060/913223) : < (less than) > (greater than) : (colon - sometimes works, but is actually NTFS Alternate Data Streams) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (
ahcich timeout on slot X port X Mac install workaround My attempts to install FreeBSD resulted in failures with `timeout on slot 13 port 3` , there are many search results regarding this but none relevant to the installation procedure. The workaround was to enable Safe Mode mode in the boot options - sharing this simple solution so that it saves frustration and time for the next victim of this issue. If this has helped comment or follow me on twitter @danielsokolows .