Determine Default App for File Type from Command Line
One quality of life improvement any developer can make for themselves is ensuring different file types open in the app they're most proficient in. If you know me, you know I prefer accomplishing as much as possible from the command line. The
duti utility allows users to determine default file type from command line.
duti utility allows developers to query which app is the default for different file types. You can install
brew install duti
Once you have
duti available, you can check on the default app for file type with the following command:
~ duti -x md
You can set the default app by using its package:
duti -s com.sublimetext.2 .js all
duti utility is really great for determining and automating default app management!
One of the web components I've always loved has been Facebook's modal dialog. This "lightbox" isn't like others: no dark overlay, no obnoxious animating to size, and it doesn't try to do "too much." With Facebook's dialog in mind, I've created LightFace: a Facebook lightbox...
CSS cubes really showcase what CSS has become over the years, evolving from simple color and dimension directives to a language capable of creating deep, creative visuals. Add animation and you've got something really neat. Unfortunately each CSS cube tutorial I've read is a bit...
A few months back I posted an article about how you can use your own "missing image" graphics when an image fails to load using MooTools and jQuery. Here's how to do the same using Dojo.
We'll delegate the image to display by class...