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.
The duti
utility allows developers to query which app is the default for different file types. You can install duti
with brew
:
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 Xcode.app /Applications/Xcode.app com.apple.dt.Xcode
You can set the default app by using its package:
duti -s com.sublimetext.2 .js all
The duti
utility is really great for determining and automating default app management!
Serving Fonts from CDN
For maximum performance, we all know we must put our assets on CDN (another domain). Along with those assets are custom web fonts. Unfortunately custom web fonts via CDN (or any cross-domain font request) don’t work in Firefox or Internet Explorer (correctly so, by spec) though…
MooTools Clipboard Plugin
The ability to place content into a user’s clipboard can be extremely convenient for the user. Instead of clicking and dragging down what could be a lengthy document, the user can copy the contents of a specific area by a single click of a mouse.
Control Element Outline Position with outline-offset
I was recently working on a project which featured tables that were keyboard navigable so obviously using cell outlining via traditional
tabIndex=0
and element outlines was a big part of allowing the user navigate quickly and intelligently. Unfortunately I ran into a Firefox 3.6 bug…
Source link