Tuesday, February 23, 2010

Browser inconsistencies: Safari, Firefox, Chrome (Mac OS X)

this is kinda in draft form right now; post comments with dis/agreements and links to similar lists or maybe solutions.

I use all of these browsers on the Mac, and used them all before on Windows (though Safari coming in later, not as much).

Primary reasons for use:
  • Firefox: plugins make it easier check multiple accounts (gmail manager), manage passwords / identity2.0 (sxipper)
  • Chrome: seems a little faster, responsive, lower system footprint.
  • Safari: has spotlight indexing for web pages
  • IE: just kidding, I avoid this generally. There are a couple sites I have to use IE, but I have windows in a vm, but usually rdp to a server (avoids local bloat).
There are downsides to using multiple browsers, besides the inconsistencies listed below, and the main one is being able find where something is, if you are a big user of browser history (I am) and bookmarks (not so much--mostly bookmarks are write-only. Except for important work/project related items)

Can you get spotlight to index other pages? I am considering a local caching proxy for this..

Here is a working list.
  • cmd-arrows for begin/end of line. Sometimes up/down in a text field will go to the beginning or end, and sometimes this appears to be (web-)application specific; e.g., up in a google spreadsheet cell takes you to beginning of line.
  • Home/end keys. Why can't these go to beginning/end of line?
    On a page, top and bottom of page are fine.
  • Select/drag text
    When one-handed, or lazy, select and drag of text is faster than select/menu-ut/click/menu-paste
  • drag-n-drop URLs into rich editor fields
    Two variants: drag of a bookmark or location URL, and drag of a link from the HTML.
    Useful for inserting into (G)mail, or with google notebook.
    And what's up with focus of the element? E.g., gdoc spreadsheet needs to have focus/input entry to drop it in, otherwise the page loads with new URL ?
If the behavior is not consistent, then I have to remember which works where, and this increases cognitive load and slows me down. I want to just transfer this to muscle memory and not have to think about it.

I've started a page in my notebook, but probably a table (spreadsheet) would be better, if embeddable here.

The main inconsistency bugging me right now: begin/end of line. It would be nice if ctrl-a/e worked like emacs. They do--yay! .. at least in blogger. But if not other sites, I will be annoyed.

Wednesday, February 17, 2010

"ERROR: transport error 202: connect failed: Operation timed out"

This is a problem that can be encountered on NetBeans platform when trying to debug a project.

In another post someone said
Shared archive: sharing disabled for server vm
ERROR: transport error 202: gethostbyname: unknown host ["transport.c",L41]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) ["debugInit.c",L500]
JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initialized
JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedJava Result: 134
BUILD SUCCESSFUL (total time: 6 seconds)
This worked for me on OS X:

# sudo su -
# echo `/bin/hostname` >> /etc/hosts

Of course, there are many other commands that can be used to achieve the same thing.

After this, the debugger connected right away, instead of a lengthy timeout and then failure.

The problem occurred in my case because a VPN connection (Cisco AnyConnect) change my hostname / dns servers.