Set Chrome as Default Browser from Command Line
Whenever I see a desktop GUI to accomplish a given web-related task, I'm dying to know the underlying operating system interaction to accomplish the same feat. Many of the GUIs I use are just a front for a command line utility for that more experienced developers would use.
I set out to find the command line script for setting the system's default browser on OS X but apparently there isn't one, but I did find a command line script for setting Chrome as the default browser:
open -a "Google Chrome" --args --make-default-browser
The script above opens Google Chrome and asks for confirmation that you'd like to make it the default browser. I'm not aware of what command line scripts would make other browsers the default browser, and I'm a bit annoyed that there isn't a single script to do so!
Before we get started, it's worth me spending a brief moment introducing myself to you. My name is Mark (or @integralist if Twitter happens to be your communication tool of choice) and I currently work for BBC News in London England as a principal engineer/tech...
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?
What's great about creating custom events in MooTools is...
A week back I saw a great effect created by CSSKarma: input labels being animated horizontally. The idea is everything positive: elegant, practical, unobtrusive, and requires very little jQuery code. Luckily the effect doesn't require much MooTools code either!