HDTenEightyP/NetNews huggingface dataset:
From: barmar@think.com (Barry Margolin)
Newsgroups: fj.mail-lists.x-window
Subject: Re: QUESTION: Network overhead of X compared to VT-100
Date: 6 Nov 92 00:53:58 GMT
Distribution: fj
Organization: Thinking Machines Corporation, Cambridge MA, USA

Date: 2 Nov 92 19:03:02 GMT
Message-Id: <1d3u16INNgjn@early-bird.think.com>
Newsgroups: comp.windows.x

In article <dekock.720699565@shannon> dekock@shannon.ee.wits.ac.za (Nick de Kock) writes:
>Now he says the X windows sessions are too bandwidth-intensive for use 
>when the same application is run across our WAN and we must use a VT-100-
>type emulation instead. His justification is that X involves graphics.

There is definitely some overhead to using X, but it isn't very much.
It's generally not enough to affect the capacity of the net (unless it's
already overloaded), but if you're talking about a commercial WAN that
charges by the byte it could be expensive.

Each keystroke, for instance, is sent as a separate X event, which is a
32-byte packet, instead of a 1-byte packet as would be sent by a terminal
emulator.  Displaying a single character in an xterm window (e.g. to echo
the character typed) requires a 60-byte X request; note that the text
cursor is controlled by the client, not locally by the terminal, so erasing
and redrawing the cursor is included in that overhead.  Mouse motion also
frequently results in events being sent (but luckily the protocol includes
many optimizations that obviate most clients-to-server transmissions in
response to motion events).

>Now this doesn't make sense to me - surely the overhead would be not that
>much different to VT-100. The windows are generated locally (aren't they?)
>And it's a text-oriented app - there are no images involved except for a
>single logo when the app starts up.

Except for moving the cursor, there's virtually no graphic transmission
involved in a text-only application.  About the only graphics overhead that
is likely is if it pops up dialogue windows with buttons to push.  (I'm
assuming that the window manager will be on the local machine or net, not
transmitting over the WAN, so the overhead of its border decorations and
operations is not a factor.)

>I know that people use X windows for WAIS and such over the Internet so
>it can't be that bandwidth intensive. Can someone clear this up?

WAIS isn't a good example.  People generally run the xwais application
locally, and it only uses the Internet to access the database servers.  X
traffic doesn't usually go over the WAN in such cases.  The client/server
model cannot be treated as a simple dichotomy -- often there are actually
multiple levels.  For instance, when a user on an X terminal runs xwais,
there are two clients and two servers; the xwais application is a WAIS
client talking to a remote WAIS server, and it's also an X client talking
to the X server on the terminal.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: sbhatia@mary.fordham.edu (SABU)
Newsgroups: fj.mail-lists.x-window
Subject: How to resize image when windowis resized by user
Date: 11 Nov 92 04:27:11 GMT
Distribution: fj
Organization: Fordham University

Date: 10 Nov 92 15:29:00 GMT
Message-Id: <10NOV199211291724@mary.fordham.edu>
Newsgroups: comp.windows.x

Hi,

   I CURRENTLY HAVE AN APPLICATION IN WHICH I USE XLIB TO PLOT CERTAIN
2-D CURVES. THE PROBLEM I AM ENCOUNTERING ARE-:

   (1.)  The user  resizes the window. Currently what I do is that on
recivg the specific events I get the co-ordinates of the new location
of the window and determine the new size. Next I clear the entire 
window, and then rescale the co-ordinates of my graph based on this
new information and redraw it. This is an awful lot of work and for
complex graphs consisting of multiple curves I notice a significant
slow down. Is there a better way to do this.

  (2.) Expose events. When my window receives an expose event for instance
it has just got uncovered by a window I redraw the whole graph all over
again. Is there an efficient method whereby I can just just redraw
only the portion that has been destroyed.


thanks,

sabu 

////////////////////////////////////////////////////////////////////////
/   Internet:  SBHATIA@mary.fordham.edu                                /
/   BITnet:    SBHATIA@FORDMULC                                        /
/                                                                      /
/                                                                      /
////////////////////////////////////////////////////////////////////////
From: rjt9677@hertz.njit.edu (rudolph j trifun cis stnt)
Newsgroups: fj.mail-lists.x-window
Subject: Need help for different event dispatch method
Date: 8 Nov 92 10:50:05 GMT
Distribution: fj
Organization: New Jersey Institute of Technology, Newark, N.J.

Date: 3 Nov 92 18:19:50 GMT
Message-Id: <1992Nov3.181950.6217@njitgw.njit.edu>
Newsgroups: comp.windows.x

Hi, there:

	We have a project to build a system on top of motif.
	Our system requires a feature to open up several different
	windows(widgets), and allows the user to change the state of some
	windows throught simple keystrokes.

	Now because any keyPress event may affect some windows (Not just
	the focus one or all of them). I don't know if there is any
	way to tell the XtMainloop() to dispatch the keyPress event 
	to all existing windows instead of the focused one? (Then I
	can decide whether to do response or not inside each widget)

	Can any one kindly tell me how to do this or any way to get 
	around it....?


			Thanks,

					Jack Kau
					Leveraged Tech. Inc.
					(201) 309-3095
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X Window System bibliography
Date: 7 Nov 92 01:10:54 GMT
Distribution: fj
Organization: CS Department, Dortmund University, Germany

Date: 6 Nov 92 08:41:46 GMT
Message-Id: <1ddb4aINNe1q@fbi-news.Informatik.Uni-Dortmund.DE>
Newsgroups: comp.windows.x,comp.windows.x.motif,misc.books.technical

In article <Bx9FBs.Aoq@ora.com>, david@ora.com (David Flanagan) writes:
|> In any case, I've prepared a bibliography of all the O'Reilly X books,
|> suitable for merging with or appending to Ken's bibliography.

Thanks, David, for preparing this list. It is really useful if you search
for a book on an author basis. Could you please put it on
export.lcs.mit.edu as, say, /contrib/Xbibliography.OReilly beside Ken's
list until Ken gets convinced to include it?

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-W4600 Dortmund 50       |\|\    Fax : +49 231 755-2386
From: chow@cssn00.ssc.gov (Ivan Chow,SSC, (214) 708-6212)
Newsgroups: fj.mail-lists.x-window
Subject: RE: pixmap info
Date: 12 Nov 92 22:56:28 GMT
Distribution: fj
Organization: SSC

Date: 12 Nov 92 16:22:29 GMT
Message-Id: <1992Nov12.162229.24701@sunova.ssc.gov>
Newsgroups: comp.windows.x

Thanks Mejia,  (Mejia Pablo)
    I have appended the app-defaults PixmapMotifAD to my ~/.Xdefaults.
It runs fine.  I like it.  I tried to mail you messages but it was
rejected.  Again, thanks.

Ivan
From: etxmesa@eos.ericsson.se (Michael Salmon)
Newsgroups: fj.mail-lists.x-window
Subject: Re: sizeof(int) == ?
Date: 12 Nov 92 12:38:45 GMT
Distribution: fj
Organization: Ericsson Telecom AB

Date: 12 Nov 92 08:36:15 GMT
Message-Id: <1992Nov12.083615.5375@ericsson.se>
Newsgroups: comp.windows.x

In article <1992Nov11.124252.4372@spcvxb.spc.edu>, 
4carroll_j@spcvxb.spc.edu writes:
|> 
|>  Hi,
|>  
|>  	I have what I believe to be a very basic question about the X-Windows 
|>  distribution source code. Does int always mean a 32-bit integer?
|>  
|>  	I have encountered so many places where this is true, that I am thinking 
|>  about attempting to change all references to an int to a long (I work on a 
|>  machine that assumes int == 16-bits).
|>  
|>  	If this assumption (int==32-bits) is not True, are there any rules for 
|>  knowing in advance when an int is required?

There are no rules about the lengths of integers except:

sizeof(long) >= sigeof(int)

and

sizeof(int) >= sizeof(short)

i.e. a short and a long can be the same size. I don't know of any
machine that has had an int shorter than 16 bits but my experience
isn't that wide. Int seems to be a data size that is easily implemented
and usefully long. As to which you should use, you must decide that
based upon the range of the data that you plan to handle. If you want
something that is portable then use typedefs that can be adapted for
each environment, perhaps with asserts to ensure that the types are
wide enough. Another approach is to use something like enquire that
comes with gcc to automatically generate the typedefs.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X-windows "Hello World" program wanted
Date: 11 Nov 92 12:18:04 GMT
Distribution: fj
Organization: McGill Research Centre for Intelligent Machines

Date: Fri, 6 Nov 92 11:25:15 GMT
Message-Id: <1992Nov6.112515.22186@thunder.mcrcim.mcgill.edu>
Newsgroups: comp.sources.wanted,comp.windows.x

In article <ccjg.720713228@Hyaena>, ccjg@Hyaena.ru.ac.za (John Goetsch) writes:

> I am looking for the source code for a typical x-windows version of
> the "hello world" program....

I don't claim it's "typical", but I have a program I use specifically
as a starting point for writing X programs.  Anonymous ftp to
larry.mcrcim.mcgill.edu (132.206.1.1), cd X, and pick up xhello.c.

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
From: jimw@empros.cxn.dec.com (Jim West)
Newsgroups: fj.mail-lists.x-window
Subject: Re: X Toolkit Error: Can't Open display!!!
Date: 6 Nov 92 09:29:34 GMT
Distribution: fj
Organization: Digital Equipment Corporation

Date: 5 Nov 92 15:18:47 GMT
Message-Id: <1992Nov5.151847.27973@nntpd2.cxo.dec.com>
Newsgroups: comp.windows.x.apps,comp.windows.x


In article <1d9meiINNfh@sacomm.schulz.unisa.edu.au>, cowleym@sacomm.schulz.unisa.edu.au () writes:

|>Trying to run any X-windows application from a window on our Ultrix machine, 
|>on my VMS VAXstation, over DECNET, as myself (not the superuser) I always 
|>get the message:  
|>
|>	(This is so compicated, I hope it's clearer than mud to you)
|>
|>Xlib:  connection to "saccs1::0.0" refused by server
|>Xlib:  Client is not authorized to access server
|>X Toolkit Error: Can't Open display
|>

  If I remember correctly, your UID is being sent to the VAXstation, NOT
your username.

  It's been awhile since I've done something like this.  Find out what
your UID is (3rd field in /etc/passwd) and use that in the username field
of the security dialog on the VAXstation.  This should work.

-/ Jim /-
From: drmres27@a101.usl.edu (Mejia Pablo)
Newsgroups: fj.mail-lists.x-window
Subject: Re: pixmap & pixmap pictures
Date: 11 Nov 92 13:05:19 GMT
Distribution: fj
Organization: Univ. of Southwestern Louisiana

Date: Sat, 7 Nov 1992 01:07:56 GMT
Message-Id: <DRMRES27.92Nov6190756@a101.usl.edu>
Newsgroups: comp.windows.x

Hi,

I just had the same problem.  The program works fine.  The problem is
that the app-defaults file is not getting loaded.  The name of the
file is either:

  PixmapAthenaAD or
  PixmapMotifAD

What you need to do is move this file to some place where is can be
found.  Check out the environement variable XUSERFILESEARCHPATH it
should be in any good ook on Xt.

Basically you need to rename the file to Pixmap (Application Class
Name).  And place it in a directory where it can be found.

What I have is:

~/.defaults/Pixmap   -- The PixmapMotifAD file.

~/.bitmaps/Pixmap/*  -- The bitmaps for DownM, etc.

Then the environment variables:

XUSERFILESEARCHPATH=~/.defaults/%N  -- Where to find the app-defaults.

XBMLANGPATH=~/.bitmaps/%N/%B        -- Where to find the bitmaps.

The XBMLANGPATH may not work under Athena widgets.


Hope this helps, if you have any questions feel free to email me.  You
may also want to check out the book:

X Window System Toolkit by Asente & Swick

They discuss this on pgs. 666-667 and 859-860, among others.


Pablo Mejia
pjm@srl.cacs.usl.edu
From: yang@mtu.edu (Xiaoyang Yang-grad)
Newsgroups: fj.mail-lists.x-window
Subject: XV source code needed
Date: 11 Nov 92 00:46:01 GMT
Distribution: fj
Organization: Michigan Technological University

Date: Fri, 6 Nov 1992 05:23:48 GMT
Message-Id: <1992Nov6.052348.16205@mtu.edu>
Newsgroups: comp.sources.wanted,comp.windows.x

hi!

i'm looking for an X application called 'xv' which "displays images in the  GIF,  PBM, PGM, PPM, 
X11 bitmap, JPEG, Sun Rastefile, and PM formats on 1-, 4-, 6-, 8-, 16-, 24-, and 32-bit X
displays.

i've tried ftp to akiu.gw.tohoku.ac.jp, however, everytime when i use anonymous-ftping, i got

        "530-Sorry, there are too many anonymous users using the system at this
         530-time.  Please try again later.  There is currently a limit of 5
         530-anonymous users.
         530 User anonymous access denied."

it seems tome that i have no chance to be one of the five lucky users after i spent a whole 
day on ftping.

anybody who has the source code of xv can send me a copy of it?  anybody that can provide me
another location to get the source code?

thanks in advance.

x. yang
From: mckesey@Hydra.prior.com (Gregory McKesey)
Newsgroups: fj.mail-lists.x-window
Subject: Virtual Display/Root
Date: 7 Nov 92 11:29:43 GMT
Distribution: fj
Organization: PRIOR Data Sciences Product Sales Inc., Kanata, Ont., Canada

Date: 2 Nov 92 22:59:20 GMT
Message-Id: <MCKESEY.92Nov2175920@Hydra.prior.com>
Newsgroups: comp.windows.x


	I seem to remember, maybe with the X11R2 distribution, a
program that could create a virtual display inside an X-Window.
Inside this "Virtual Display" one could start up a window manager that
acted only inside the window. Ie. I could run mwm on the main display
and twm inside the window of the virtual display.  Does such a program
still exist?  If so, what is its name? and where can I find it? If such
a program does not exist, does anyone know how one can be written?

	Thanx
_______________________________________________________________________

Gregory McKesey
PRIOR Data Sciences

mckesey@prior.com
From: tkevans@eplrx7.es.duPont.com (Tim Evans)
Newsgroups: fj.mail-lists.x-window
Subject: wscrawl (posted to comp.source.x) problems
Date: 6 Nov 92 13:19:46 GMT
Distribution: fj
Organization: DuPont Engineering Physics Laboratory

Date: 5 Nov 92 16:19:25 GMT
Message-Id: <tkevans.720980365@eplrx7.es.dupont.com>
Newsgroups: comp.windows.x,comp.windows.x.motif

I'm running the 'wscrawl' program recently posted to comp.sources.x
and am having some small problems.  Since I don't have motif libs,
I picked up the Sparc binary as instructed in the README file.
We're running Openwindows 3 and X11R5.

There are two problems:

o	First, when I start up wscrawl, I get several screensful of keysym
	errors messages like the following:
	
	Warning: translation table syntax error: Unknown keysym name: osfRight
	Warning: ... found while parsing ' ~Ctrl ~Shift <Key>osfRight: ListRightChar()'

	I do have the XKeysymDB file in place and have its location in my
	LD_LIBRARY_PATH environment variable.

	Now, wscrawl does come up after all these errors and generally works
	OK, except for the following.

o	Second, and possibly related to the first, normal keyboard editing
	keys (i.e., backspace, ctrl-backspace, delete) don't work in
	wscrawl dialog boxes.

I'd appreciate any help via e-mail, and will post a summary.
-- 
Tim Evans                     |    E.I. du Pont de Nemours & Co.
tkevans@eplrx7.es.dupont.com  |    Experimental Station
(302) 695-9353/7395           |    P.O. Box 80357
EVANSTK AT A1 AT ESVAX        |    Wilmington, Delaware 19880-0357
From: gnb@duke.bby.com.au (Gregory N. Bond)
Newsgroups: fj.mail-lists.x-window
Subject: XR4 XDM to a remote host with local xconsole??
Date: 10 Nov 92 11:23:50 GMT
Distribution: fj
Organization: Burdett, Buckeridge & Young, Melbourne, Australia

Date: Thu, 5 Nov 1992 06:03:44 GMT
Message-Id: <GNB.92Nov5160344@duke.bby.com.au>
Newsgroups: comp.windows.x

I have a SPARC workstation running XR4; I want it to run the X server
continually, but have another machine as the XDM host (to handle the
login processes), so that it looks and acts like an X terminal.  This
works fine in an XKernel environment.

However, this workstation is also a server for a couple of odd things
and has people rlogin'ing and rsh'ing in, often causing console
messages.  These messages mess up the X server screen.  People logging
in using XDM cannot use xconsole (et al) because /dev/console is not
owned by the user on that screen (as the user actually logs into the
XDM host).

Any hints how I could handle this?  Some arcane hackery to run the X
server with the XDM-with-xconsole trick locally but still manage the
login sequence from the remote (R4) XDM host?

Greg.
--
Gregory Bond <gnb@bby.com.au> Burdett Buckeridge & Young Ltd Melbourne Australia
``There is Faith, Hope and Charity.  But greater than these is Banking.'' - 1492
From: idf@cs.bham.ac.uk (Ian Fitchet)
Newsgroups: fj.mail-lists.x-window
Subject: Expose Events and updating pixmaps
Date: 8 Nov 92 08:52:16 GMT
Distribution: fj
Organization: School of Computer Science, University of Birmingham

Date: 8 Nov 92 02:56:11 GMT
Message-Id: <IDF.92Nov8025611@fat-controller.cs.bham.ac.uk>
Newsgroups: comp.windows.x

Hi,

	I have been following O'Reilly Vol4 and have myself a core
widget for a drawing tool.  I want to extend this so that I have
several drawing tools, each with a separate pixmap.  I have a problem
with the Expose event in that I cannot inform the redraw function as
to which pixmap to use to update the drawing tool.  I currently use a
global variable for my single pixmap case and I can only imagine
passing in a string via the params arguement to indicate which of
several global pixmaps to use in the multiple drawing tool case.  Is
there any way of avoiding the use of global variables or is it just
one of those things?

	Alternatively, if I used the pixmap resource of a label widget
I could do the job by generating fase Expose Events (as the pixmap is
then accessable via the widget parameter), or so the book says because
I have so far failed to manage to generate Events myself.  Does anyone
have any sample code that generates and imparts Expose Events?

--
Cheers,

	Ian

-------------------------------------------------------------------------------
Ian Fitchet     				      I.D.Fitchet@cs.bham.ac.uk
School of Computer Science
Univ. of Birmingham, UK, B15 2TT
From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Window the pointer is in?
Date: 13 Nov 92 04:38:51 GMT
Distribution: fj
Organization: McGill Research Centre for Intelligent Machines

Date: Sat, 7 Nov 92 10:37:11 GMT
Message-Id: <1992Nov7.103711.19692@thunder.mcrcim.mcgill.edu>
Newsgroups: comp.windows.x

In article <1d8lhiINN27a@seven-up.East.Sun.COM>, marc@betelgeuse.East.Sun.COM (Marc St-Hilaire Canadian Dev. Ctr - Montreal) writes:

> How could I find the window ID of the topmost window that contains
> the mouse pointer?

"topmost" in what sense?

> If I do an XQueryPointer(dpy, root_window, ...), the returned child
> window is a window manager window.

This is WM-dependent; it'll be true only for reparenting WMs.

> However the window that I am looking for is a leaf window of the
> window tree of an X client.

Hm.  So "topmost" does not refer to window tree hierarchy.  I assume
what you actually want is the lowest window in the window tree such
that the pointer cursor's hot-spot is within the viewable portion of
the window and that the pixel of the window under the hot-spot is not
obscured by any other window.  (This mouthful is the simplest
descrption I've been able to come up with for what really is a very
simple concept.  If anyone has a simpler, but also precise, way of
saying the same thing, I'd like to hear it.)

> Can this be done without having to make recursive calls to
> XQueryTree(), followed by an XGetGeometry() on each child window to
> figure out in which one the mouse pointer is in?

Just call XQueryPointer repeatedly, starting with the root, recursing
down the window tree.  Note that there are race conditions; the pointer
must be frozen, and to be fully correct, the server must be grabbed as
well, though if all the windows in question belong to either the window
manager or the client doing the searching, omitting the server grab
would not be unreasonable.

If you don't know which screen the pointer is on (and thus which root
window to start the querying with), pick any screen, and if you get it
wrong, the first XQueryPointer will tell you so (and also tell you
which root window you do need to start with).

Normally, though, you don't need this, because pointer and keyboard
events carry this information with them.  You may be trying to solve
the wrong problem....

					der Mouse

			    mouse@larry.mcrcim.mcgill.edu
Return-Path: <hearn@hilbert.rand.org>
From: TJERL@cspuni12.BITNET (Richard Liska)
Subject: Re: Intelligent assistants for REDUCE (or Macsyma etc.)
Original-To: REDUCE forum <reduce-forum@rand.org>
 <J.Campbell@CS.UCL.AC.UK>
Date: Mon, 09 Nov 92 13:10:51 -0800
Newsgroups: fj.mail-lists.reduce
Distribution: fj

Here is the reference which you are looking for (hopefully):

R.P. dos Santos, W.L. Roque: On the Design of an Expert Help
System for Computer Algebra Systems, SIGSAM Bulletin, Vol. 24,
Nr. 4, Issue 94, p. 22-25, October 1990, ACM Press.

It really deals with REDUCE.

--Richard Liska
Return-Path: <hearn@hilbert.rand.org>
From: herbert@dagobert.zib-berlin.de (Herbert Melenk)
Subject: new book
Original-To: reduce-forum@rand.org
Date: Tue, 10 Nov 92 08:23:54 -0800
Newsgroups: fj.mail-lists.reduce
Distribution: fj

The following book is available now. I have read a preprint
and I can recommend it to anybody who is interested in this field.

@BOOK{Cox:92,
 AUTHOR = "D. Cox and J. Little and D. O'Shea",
 TITLE = "deals, Varieties and Algorithms:
   An Introduction of Computational Algebraic Geometry 
   and Commutative Algebra",
 PUBLISHER = "Springer-Verlag",
 YEAR = 1992,
 COMMENTS = {The appendix contains a discussion of the Groebner basis
     package for REDUCE},
 ABSTRACT = {This book is an introduction to algebraic geometry and 
commutative algebra aimed primarily at undergraduates. It emphasizes 
applications and the computational and algorithmic aspects of the 
subject.  Less abstract than other texts, and with prerequisites 
(a course in linear algebra and any course discussing how to do 
simple proofs), the text is also ideal for computer scientists as
well as mathematicians interested in the subject.  The exposition
assumes that students have access to a computer algebra system such 
as Maple, REDUCE or Mathematica, but assumes no prior experience 
with a computer.

Table of Contents: Geometry, Algebra and Algorithms; Groebner Bases;
Elimination Theory; The Algebra-Geometry Dictionary; Polynomial and 
Rational Functions on a Variety; Robotics and Automatic Geometric 
Theorem Proving; Invariant Theory of Finite Groups; Projective 
Algebraic Geometry; The Dimension of a Variety; Appendices on Some 
Concepts From Algebra, Pseudocode, Computer Algebra Systems, and 
Independent Projects.}}

--
Herbert Melenk
Konrad-Zuse-Zentrum fuer Informationstechnik
Heilbronner Str 10, D 1000 Berlin 31, Germany
e-mail:  melenk@sc.zib-berlin.de