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...
![Page Visibility API]()
One event that's always been lacking within the document is a signal for when the user is looking at a given tab, or another tab. When does the user switch off our site to look at something else? When do they come back?
![CSS vs. JS Animation: Which is Faster?]()
How is it possible that JavaScript-based animation has secretly always been as fast — or faster — than CSS transitions? And, how is it possible that Adobe and Google consistently release media-rich mobile sites that rival the performance of native apps?
This article serves as a point-by-point...
![Background Animations Using MooTools]()
One of the sweet effects made easy by JavaScript frameworks like MooTools and jQuery is animation. I ran across this great jQuery tutorial that walks you through animating a background image of a page. Here's a quick MooTools code snippet that...
![MooTools PulseFade Plugin]()
I was recently driven to create a MooTools plugin that would take an element and fade it to a min from a max for a given number of times. Here's the result of my Moo-foolery.
The MooTools JavaScript
Options of the class include:
min: (defaults to .5) the...