Re: Thunderbird stupid about X traffic?

2007-09-24 Thread Michael ODonnell

 
Just a quick followup.  Ben wrote:

Use a protocol more suited to high-latency links.
VNC is a common choice for X stuff.

...and I want to confirm that VNC is indeed able to
push the bits efficiently enough that Thunderbird is
now tolerable.  As I mentioned, some other X apps seem
to work OK directly over the wire (ie.  X server at
home, X client at work) but not Thunderbird.
 
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: Thunderbird stupid about X traffic?

2007-09-24 Thread Thomas Charron
On 9/24/07, Michael ODonnell [EMAIL PROTECTED] wrote:
 Just a quick followup.  Ben wrote:
 Use a protocol more suited to high-latency links.
 VNC is a common choice for X stuff.
 ...and I want to confirm that VNC is indeed able to
 push the bits efficiently enough that Thunderbird is
 now tolerable.  As I mentioned, some other X apps seem
 to work OK directly over the wire (ie.  X server at
 home, X client at work) but not Thunderbird.

  It really depends on how the application is displaying data, and if
it supports things like pre-cached bitmaps, etc..  There are certain
things in X you can do to ensure it works well over a low latency link
directly with X.  Sounds like Thunderbird is doing a WHOLE lot of
custom ownerdrawing and the such.

-- 
-- Thomas
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: Thunderbird stupid about X traffic?

2007-09-24 Thread Bill McGonigle
On Sep 24, 2007, at 10:16, Thomas Charron wrote:

 Sounds like Thunderbird is doing a WHOLE lot of
 custom ownerdrawing and the such.

Yeah, anything from Mozilla is going to try to control the horizontal  
and control the vertical.  Do not adjust your xorg.conf. :P

So, VNC isn't a bad solution, even though it's a poor solution for X  
in the general case.  Remote deploying of XULRunner apps is another  
way to skin this cat, though it doesn't solve the same set of  
requirements as VNC.

I bought the XUL book back in '01 or so thinking you could do that  
then... I probably better check on it again.  Remote XUL is  
potentially much nicer than Java or Flash solutions (if you don't  
care about IE, of course).

-Bill

-
Bill McGonigle, Owner   Work: 603.448.4440
BFC Computing, LLC  Home: 603.448.1668
[EMAIL PROTECTED]   Cell: 603.252.2606
http://www.bfccomputing.com/Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-16 Thread Bill McGonigle
Nice meaty discussion on this topic!  As Paul mentioned, cellular  
data can be considered high-latency for most purposes, so this one  
probably isn't going out of style any time soon.

On Sep 14, 2007, at 16:13, Ben Scott wrote:

   PuTTY does appear to support this, more-or-less, by going to
 Settings - Terminal - Line discipline, and setting Local echo and
 Local line editing both to Force on.  The line editing appears to
 be fairly primitive (backspace only), but it does appear to work.  (I
 think.  It is hard to test without an actual high-latency link.)

Somebody stop me before I try running PuTTY under WINE on Linux. :)   
I guess a good ancillary question is where's the development action  
on 'terminal emulators' these days?  The last big news I heard was  
ctrl-shift-t in Gnome's terminal.

On Sep 14, 2007, at 16:41, Bill Freeman wrote:

 (alt-x or esc followed by x, then it prompts you at the bottom of  
 emacs's
 window, and you type shell and hit enter)

oh, wow, alt-x works now?  I wonder how many years I've been using  
esc-x since that started working... come to think of it I might have  
learned esc-x on an ULTRIX terminal and never tried it on linux.  
thanks, Bill, one can never be too pedagogical here!

 The tougher thing is if you want to send an incomplete line sometime.
 Say, to request the remote shell to do filename completeion.  I'm not
 sure how to do that (if there's a send what you've got without a
 trailing carriage return character command, I haven't found it in the
 docs).  I poked around the elisp once a few years ago, but didn't find
 anything easy.

A few times a year I decide to write a local-editing terminal/shell  
that will bulk-transfer completion data in the background, but then  
something shiny distracts me from it.  Somebody (Ben probably)  
recently pointed out ssh's stream multiplexing feature which should  
make this easier.  Usually if I just wait long enough somebody else  
does it. ;)  I may just be impatient on this one (and definitely lazy).

On Sep 14, 2007, at 17:19, Ben Scott wrote:

   For editing files, I often resorted to SCP'ing to local, editing
 locally, and then SCP'ing back.

sshfs might be a slightly lower overhead (human) way of accomplishing  
this since your editor will likely load the file into buffer for  
editing.  n.b., emacs seems to have a problem with sshfs via fuse on  
some OS's (MacFUSE being one currently-borked implementation with  
insufficient signal handling).

-Bill

-
Bill McGonigle, Owner   Work: 603.448.4440
BFC Computing, LLC  Home: 603.448.1668
[EMAIL PROTECTED]   Cell: 603.252.2606
http://www.bfccomputing.com/Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-16 Thread Ben Scott
On 9/16/07, Bill McGonigle [EMAIL PROTECTED] wrote:
 Somebody stop me before I try running PuTTY under WINE on Linux. :)

  PuTTY has been ported to *nix/X11.  :)

http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#faq-unix

 I guess a good ancillary question is where's the development action
 on 'terminal emulators' these days?

  I suspect a lot of people think this is a solved-problem and have
lost interest.  The only reason anything has happened at all is that
KDE and GNOME are both intent on re-inventing every wheel they can
find.  Multiple times.  :)

-- Ben
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: Thunderbird stupid about X traffic?

2007-09-14 Thread Ben Scott
On 9/14/07, Michael ODonnell [EMAIL PROTECTED] wrote:
 I connected to the work LAN from home today using
 OpenVPN and asked Thunderbird (as an X client ...

  The X wire protocol is very sensitive to high-latency links.  Just
about any Internet connection is going to be considered
high-latency.  It's not a Thunderbird thing, it's an X thing.  (Some
X programs are worse than others due to the nature of their commands
or the complexity of their GUI, but it's fundamentally an X issue.)

  Use a protocol more suited to high-latency links.  VNC is a common
choice for X stuff.  I've also seen X protocol extensions/variants/etc
intended to address this issue, but I've never tried them.  FreeNX is
one such.

-- Ben
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: Thunderbird stupid about X traffic?

2007-09-14 Thread Paul Lussier
Ben Scott [EMAIL PROTECTED] writes:

   Use a protocol more suited to high-latency links.

You mean like ssh, screen, and emacs ;)

-- 
Seeya,
Paul
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread Bill McGonigle
On Sep 14, 2007, at 14:17, Paul Lussier wrote:

 You mean like ssh, screen, and emacs ;)

I've attempted this on a satellite link and, believe me, it's only  
suited to medium-latency links.  ssh-ing to Mars would suck as well.

Has anybody seen a line-mode-oriented shell?  I'd love to edit my  
line locally and then send it in these situations rather than waiting  
for characters to echo back.

-Bill

-
Bill McGonigle, Owner   Work: 603.448.4440
BFC Computing, LLC  Home: 603.448.1668
[EMAIL PROTECTED]   Cell: 603.252.2606
http://www.bfccomputing.com/Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread Ben Scott
On 9/14/07, Bill McGonigle [EMAIL PROTECTED] wrote:
 I've attempted this on a satellite link ...

  Heh heh heh.  Me too(TM).  It's a different experience when you can
measure ping RTT using a hand-held stop watch.  :)

 Has anybody seen a line-mode-oriented shell?

  Stephen Bourne.  (According to Wikipedia, he's the Bourne in
Bourne shell.)

  In other words, Unix was built to be friendly to such environments.
Our problems arise because we're used to everything being modern and
faster.  For example, to get the tty subsystem to stop echoing
characters, just use stty -echo.  To tell Bash not to try doing
anything fancy, invoke it with the --noediting option.

  At that point, the hard part is finding a *terminal* that supports a
local line editing mode.  I think there might be an xterm or rxvt
option somewhere for this.  Maybe on one of the [CTRL]+click menus?
(I'm not at an xterm right now.)

  PuTTY does appear to support this, more-or-less, by going to
Settings - Terminal - Line discipline, and setting Local echo and
Local line editing both to Force on.  The line editing appears to
be fairly primitive (backspace only), but it does appear to work.  (I
think.  It is hard to test without an actual high-latency link.)

  Then the hardest part is trying to figure out how to use ed to
edit text files.  Or maybe one of the TECO fans in the group can give
lessons on that.  ;-)

-- Ben
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread Bill Freeman
Bill McGonigle writes:
 ...
  Has anybody seen a line-mode-oriented shell?  I'd love to edit my  
  line locally and then send it in these situations rather than waiting  
  for characters to echo back.

What you really want is a line mode terminal program.  One that lets
you edit locally, then, when you're happy, send it.  emacs actually
has a feature that you could use to try this out:

   M-x shell

(alt-x or esc followed by x, then it prompts you at the bottom of emacs's
window, and you type shell and hit enter)

This gives you an emacs (sub-)window talking to a shell, from which
you can invoke ssh (see, also M-x send-invisible when it prompts you
for a password, if someone else can see your screen).  You get to
type what you like, but it doesn't send it until you hit enter, so
you can edit to your heart's content.

There may actually be an ssh specific varient of this mode, but if
so, I haven't used it.

The tougher thing is if you want to send an incomplete line sometime.
Say, to request the remote shell to do filename completeion.  I'm not
sure how to do that (if there's a send what you've got without a
trailing carriage return character command, I haven't found it in the
docs).  I poked around the elisp once a few years ago, but didn't find
anything easy.

Another issue is (or was) applications using curses, since some
combination of the emacs terminal emmulation and the termtype didn't
work (though I seem to recall that it might be better now).

Bill

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread Don Leslie
I have not used FreeNX but I did use their commercial product NX. It 
made a huge
improvement.

Don

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread Ben Scott
On 9/14/07, Bill Freeman [EMAIL PROTECTED] wrote:
 The tougher thing is if you want to send an incomplete line sometime.
 Say, to request the remote shell to do filename completeion.

  I suspect file name completion might be one of those advanced
features one has to give up when you go back to the bad-old-days of
high-latency links and local editing.

 Another issue is (or was) applications using curses ...

  The answer to that problem is Don't do that anyway.  As Bill McG
said, they don't work well over truly high latency links, and I can
confirm.  Running even vi over such is painful.

  For editing files, I often resorted to SCP'ing to local, editing
locally, and then SCP'ing back.

-- Ben
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread Mark E. Mallett
On Fri, Sep 14, 2007 at 04:13:27PM -0400, Ben Scott wrote:
   At that point, the hard part is finding a *terminal* that supports a
 local line editing mode.  I think there might be an xterm or rxvt
 option somewhere for this.  Maybe on one of the [CTRL]+click menus?
 (I'm not at an xterm right now.)

Maybe something that supports 3270 mode (or 5250)?  google finds a few
hits, like this one that looks interesting (tho I know absolutely
nothing about this site):

   http://x3270.bgp.nu/


   Then the hardest part is trying to figure out how to use ed to
 edit text files.  Or maybe one of the TECO fans in the group can give
 lessons on that.  ;-)

Oh sure, from one write-only-language thread to another..

But really, there have been some line-oriented editors that were
designed for block mode transmissions even though the actual connections
had evolved to character mode.  One that I used presented one line at a
time.  You would indicate where you wanted to edit the line by sending
'/' characters that skipped over the part you wanted to keep.  Like (not
exactly like, since my memory is fuzzy):

  * this is a line of text from the file
  i//new 

and then you hit return to have the change take effect, i.e., to insert
the word new before line.  It was quite a trip and I only put up
with it for so long before writing a new editor there :)

-mm-. kj/n

___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread Michael ODonnell


 I suspect file name completion might be one of those advanced
 features one has to give up when you go back to the bad-old-days
 of high-latency links and local editing.

Yeesh!  D'ya think?   ;-

Much of coolness offered by bash (completions, editing modes,
etc) is a direct result of bash's ability to micro-manage your
session - each keystroke is monitored.

(long dormant neurons rouse sluggishly to action...)
I was part of the team working on porting IN/IX to the Wang
VS, which normally communicated via Z80 powered terminals
that handled much of the front end processing when Wang's
OS was running.  It was necessary to commit many unnatural
acts to get those terminals to hand each character over to
the kernel as it was typed so that stuff like vi could even
have a chance of working properly when IN/IX was running.
This got particularly interesting when WangVM (circa 1984 -
VMWare is definitely *not* new technology...) was running,
since the [EMAIL PROTECTED]@ workstations had to change behaviors
depending on which virtualized OS they were talking to.
 
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/


Re: High Latency Survival Tactics (Was: Re: Thunderbird stupid about X traffic?)

2007-09-14 Thread VirginSnow
 Date: Fri, 14 Sep 2007 17:19:19 -0400
 From: Ben Scott [EMAIL PROTECTED]

 On 9/14/07, Bill Freeman [EMAIL PROTECTED] wrote:
  The tougher thing is if you want to send an incomplete line sometime.
  Say, to request the remote shell to do filename completeion.
 
   I suspect file name completion might be one of those advanced
 features one has to give up when you go back to the bad-old-days of
 high-latency links and local editing.

Again, tractable within Emacs: make sure the filename you want to
complete appears somewhere in the buffer and type: M-x hippie-expand.
Alternatively, you could write a hippie function to complete on remote
filenames... but that would require writing elisp.  Ewww.
___
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/