October 25th, 2011 by Aaron N.
Here’s a little command line utility I use the hell out of:
Basically, this script tracks the directories you cd into on the command line and builds a rank order of their locations. Here’s a chunk of mine (with some fake directory names to protect the innocent):
If I type “z Source” I’ll automatically jump to that last line because it’s the highest ranked entry that matches that string. “z interface” will take me to the line above it. “z Devel” will take me to the line above that. It’s remarkably smart; it’s very rare that I end up somewhere other than what I want to be, even when I only use one or two characters from the location I’m after (“z clientcide” takes me to clientcide/Source, which may not be what I wanted).
Note: Originally it was called “j” (https://github.com/rupa/j) and I got so used to using that alias that I have “j” aliased to this script. z is the more recent implementation.
Oh, and here’s another one:
alias gr='[ ! -z `git rev-parse --show-cdup` ] && cd `git rev-parse --show-cdup || pwd`'
That command (gr) will take me to the root of any git repo I’m in.
October 17th, 2011 by Aaron N.
In my previous release of bootstrap I complained about my inability to test in IE. A few of you were kind enough to hit my specs and let me know that my low expectations of IE were not unfounded. Well, I finally got bootcamp and VMWare installed and went through the super-happy-fun-time that is IE debugging and this release has all my latest stuff working in IE8 at least.
In today’s release:
- Various IE fixes to Autocompleter, Behavior filters for Autocompleter and StickyWin
- Updated specs expectations which were ignored because I can’t remember the names of my own options signatures.
- StickyWin.Fx is nerfed for IE. IE users don’t get fading! Deal with it!
- Various fixes for IE
- Updating docs for inline JSON options – they previously stated that you didn’t have to quote the names in the JSON object; this was never true.
- Updated for MooTools More 18.104.22.168
- Various fixes for IE support
- Dropdowns no longer hide when inputs or labels in the menu are clicked.
- More support for browsers w/o CSS animations (they don’t get any animation at all, but they don’t break either). Old versions of Firefox and IE for example.
- Various IE fixes.
There you has it. Nothing really sexy, but hey, you get what you pay for.
October 7th, 2011 by Aaron N.
A few weeks ago MooTools released version 1.4. I held off on pushing it to my repos here because I knew there were one or two (very minor) issues and that 1.4.1 was forthcoming and I I didn’t want to go through the work of releasing for it twice.
Now that 1.4.1 is out I’ve pulled it in and updated the few things that required it and it’s now available. The Clientcide release didn’t iterate because nothing changed. There were a few minor changes in some of the other repos (More Behaviors, Bootstrap) that had to do with things like dependencies moving around. Nothing major. If you were running 3.0.8 of Clientcide already, you don’t need to do anything.
If you’ve been playing with Bootstrap or Behavior in general, there have been a few changes over the past week or two. Since my last post:
- Delegator now passes the ammendDom and destroyDom events to its behavior instance.
- Popup now uses CSS animations for sliding in, mimicking precisely the same behavior that is found in Bootstrap’s js for jQuery/Ender.
- Twipsy and Popover now have options to only display when the text is cropped. This works great with text-overflow: ellipsis in your css.
- You can now add a .dismiss class to anything in a Popup that will close it. This was true of adding a .close class already, but Bootstrap adds styles to .close elements in the popup that you may not want.
I’ve made a few updates here and fixed a few issues. For starters, there was a misconfiguration in one of the Bootstrap files that broke the builder, so that’s fixed. Also, I’ve fixed the benchmarks; those weren’t working because my server was having issues with github’s SSL certificate and wouldn’t update the submodule for benchmark.js.
October 3rd, 2011 by Aaron N.
New goodies for those of you using Clientcide, Behavior, or Twitter’s Bootstrap. If you missed it, be sure to read up on MooTools for Boostrap which I released earlier.
New in Clientcide 3.0.8
- Tabswapper and Collapsible now fires the “layout:changed” event in their behavior filters so that other behavior filters can do positioning and measurement work when they are displayed.
- Tabswapper can now take an index for its startup tab.
- Tabswapper can now be given a hash key for and it will store the state in the url hash as a query string value, allowing users to refresh the page and have the same tab displayed to them (using a cookie is still an option).
- Added new event to Autocompleter to distinguish between the selection of a possible choice and the confirmation of it (hitting enter or clicking it).
New in Behavior
- Non-alpha-numeric (except for dashes) characters in filter names are ignored in the prefix of their corresponding data properties (for example, if you named a filter “Foo!” you would address it with data-foo-options=”…”).
- Filter names that have dots are now turned into dashes to allow for namespacing (so if you name a filter “MySite.Foo” you would address it as data-mysite-foo-options=”…”).
- Added a method to allow you to set the defaults for a given behavior. (This might have been in the last release).
- Added method in Delegator’s api instance passed to filters that allows you to retrive the bound Behavior instance (api.getBehavior()).
- You can now specify multiple delayUntil values in a comma delimited list (i.e. tell your filter not to be invoked until mouseover OR focus).