Reset OS X Dock Icons to Defaults
There's something amazing about receiving a new MacBook Pro for me. The new machine, unaffected by sins of installs past, gives me a fresh start to mess it up all over again. Of course with a laptop from your employer you probably can't just wipe things clean -- you'd probably lose important software relevant to the organization, or it would take you forever to get it back in a state where you have all of the dependencies.
There are a few things you can do to make the Mac seem like new though. One of those is reseting the Dock to its default icons via command line:
defaults delete com.apple.dock; killall Dock
Away goes the mess of icons you've added of the years -- you can simply wipe the Dock clean and start over again. Of course the first thing I do is add Dock Separators, but to each their own...
![Convert XML to JSON with JavaScript]()
If you follow me on Twitter, you know that I've been working on a super top secret mobile application using Appcelerator Titanium. The experience has been great: using JavaScript to create easy to write, easy to test, native mobile apps has been fun. My...
![How to Create a Twitter Card]()
One of my favorite social APIs was the Open Graph API adopted by Facebook. Adding just a few META tags to each page allowed links to my article to be styled and presented the way I wanted them to, giving me a bit of control...
![Record Text Selections Using MooTools or jQuery AJAX]()
One technique I'm seeing more and more these days (CNNSI.com, for example) is AJAX recording of selected text. It makes sense -- if you detect users selecting the terms over and over again, you can probably assume your visitors are searching that term on Google...
![External Site Link Favorite Icons Using MooTools and CSS]()
I recently came upon an interesting jQuery article about how you can retrieve all external links within a page, build the address of the site's favorite icon, and place the favorite icon along side the link. I've chosen a different approach which...