Show Hidden Files in Mac Finder
Setting up a new machine is a great time for me to write blog posts about configuration settings that I'd forgotten to document. Much of the time I refer back to this post to figure out how I did things like Add Dock Separators and add support for Xbox controllers.
One important configuration detail developers like myself need is the ability to view hidden and dot files from within Finder:
To show hidden files within Finder, execute the following from the command line terminal:
# Always show hidden files
defaults write com.apple.finder AppleShowAllFiles YES
# Reset Finder for the settings to take effect
You'd think your machine was empty until you see the mountain of hidden files that macOS hides by default! I understand why Apple hides these files by default: they want the machine to seem simple for most users. Us developers, however, need to know where all the skeletons are!
One of the worst kept secrets about AJAX on the web is that the underlying API for it,
XMLHttpRequest, wasn't really made for what we've been using it for. We've done well to create elegant APIs around XHR but we know we can do better. Our effort to...
Note: This post has been updated.
One of my huge web peeves is when an element has click events attached to it but the element doesn't sport the "pointer" cursor. I mean how the hell is the user supposed to know they can/should click on...
It's usually best to repair broken image paths as soon as possible because they can damage a website's credibility. And even worse is having a user tell you about it. Using jQuery and PHP, you can have your page automatically notify you of broken...