Chrome: Quick bookmark a link by dragging it to bookmar bar

One of the things I miss when switching from Firefox to Chrome is the ability to quick bookmark a tab by dragging the tab directly to the bookmark toolbar. What’s nice about this is that you can place the new bookmark at the exact location that you want on the bookmark bar, even within a directory. And it’s quick, for sure!

Unfortunately, Chrome does not support this shortcut (as for now). But here’s a workaround that may be just as fast:

Click to the end of the address bar to select the whole url you want to bookmark, and you can drag *that link* to the bookmark bar.

Change how Home and End Keys behave in Mac OS X

…the right way, instead of the stupid default way. In short:

Workaround for general apps/text editor, including TextMate

Use this app: http://www.starryhope.com/tech/apple/2006/keyfixer/
Or make it your way:

  1. Create ~/Library/KeyBindings/DefaultKeyBinding.dict
  2. Inside
      DefaultKeyBinding.dict

    write

    {
        /* home */
        "\\UF729" = "moveToBeginningOfLine:";
        "$\\UF729" = "moveToBeginningOfLineAndModifySelection:";
        /* end */
        "\\UF72B" = "moveToEndOfLine:";
        "$\\UF72B" = "moveToEndOfLineAndModifySelection:";
        /* page up/down */
        "\\UF72C" = "pageUp:";
        "\\UF72D" = "pageDown:";
    }
  3. Restart your favorite apps

More info: http://www.starryhope.com/tech/2006/mac-os-x-home-and-end-keys/

Firefox

Use this add-on: https://addons.mozilla.org/en-US/firefox/addon/keyfixer/

Terminal

  1. Go to Terminal > Preferences > Settings > Keyboard
  2. Double click on Home key. Choose action: "send string to shell". Input: Escape, O, H so that you got 33OH in the textbox.
  3. Do the same for End key with 33OF

If it doesn’t help, try another key-binding: http://fplanque.com/dev/mac/mac-osx-terminal-page-up-down-home-end-of-line

Edit 1. Or playing with terminal types (x-term/vt220).

If your Firefox cannot save cookies

For the last several days I got stuck in an annoying situation that I have to re-enter my account info (username and password) for every single website I use (about 10 I guess). For some reasons it seems that my newly-upgraded Firefox 3.5 Preview would not save any cookies at all.

So I did a little research the reason turned out to be some corrupted file called cookies.sqlite. All you have to do is to seek and destroy it. That’s all! (And by saying “destroy” I didn’t mean that you have to actually chop its head down or something, just delete it — even to the recycle bin is OK.) The file can often be found at your %appdata%\Mozilla\Firefox\Profiles\ and in a folder named whatever.default.

Hope this is helpful if you have the same bug with Firefox.