waashk/20ng huggingface dataset:
tkld@cogsci.ed.ac.uk (Kevin Davidson) writes:   >>   In my opinion, a programming degree is still worth having.  > Yes, but a CS degree is *not* a programming degree. Does anybody know of >a computing course where *programming* is taught ? Computer Science is >a branch of maths (or the course I did was). > I've also done a Software Engineering course - much more practical and likely >to be the sort of thing an employer really wants, rather than what they think >they want, but also did not teach programming. The ability to program was >an entry requirement.  Try the 'M.Sc. Computing Science' course at the REAL Newcastle University. It's a conversion course, but at least they teach REAL programming.  In the space of 9 months we were taught PASCAL, Simula, Prolog, Miranda. Also, some basic low level stuff (68000) was covered as well.  They also did concurrent programming and operating systems, some software engineering, plus quite a few optional units, including database theory, and some stuff about comms.     The PASCAL is to be replaced by C/C++ I think next year - I learn't this (and  X Windows programming as well) anyway via a good selection of project over the final three months - depending on your tastes, the selection of skills learn't can be quite wide reaching.  The one critiscism I would level at the course, which I would have thought invaluable, is the lack of an option to do the project period in industry - this would probably need a slightly longer project period (say six months), but would enhance the prestige and usefulness of an already excellent and thorough course.  Yes, I know this sounds like a plug for the course, why not!
Hi.  I use Emacs and I want to customize my keyboard better. When I set up stuff in my .emacs with a keymap and define-keys, I can only access certain of the keys on my X-Terminal's keyboard. I can't get e.g. F10, Home, End, PgUp, PgDn; they all seem to have either the same or no keycode. I have a feeling this can't be fixed in emacs itself, but that I need to do some xmodmap stuff. Can someone help me?  By the way, I've checked the X-FAQ and posted a similar message to gnu.emacs.help to no response.  Currently I have the following in my .emacs file (inside a 'cond'):   ((string-match "^xterm" (getenv "TERM")) ;; done by aj 8/92. I don't know what most of this does...    (defvar xterm-map (make-sparse-keymap) "Keymap for xterm special keys")    (define-key esc-map "[" 'xterm-prefix)    (fset 'xterm-prefix xterm-map)   ;;Keys F1 to F12    (define-key xterm-map "224z" 'goto-line)        ;F1    (define-key xterm-map "225z" 'what-line)        ;F2    (define-key xterm-map "226z" 'rmail)            ;F3    (define-key xterm-map "227z" 'replace-string)   ;F4    (define-key xterm-map "228z" 'end-of-line)      ;F5    (define-key xterm-map "229z" 'kill-line)        ;F6    (define-key xterm-map "230z" 'yank)             ;F7    (define-key xterm-map "231z" 'beginning-of-line);F8    (define-key xterm-map "232z" 'end-of-line)      ;F9    (define-key xterm-map "192z" 'scroll-down)      ;F11    (define-key xterm-map "193z" 'scroll-up)        ;F12  ;;Keys F10, up, down, etc. ??????? can't get the keys     (define-key xterm-map "-1z" 'set-mark-command)) )
Can someone point me in the direction of any papers (not necessarily formally conducted studies) discussing how much traffic X apps generate for the network, particularly in comparison with curses-bases apps  over telnet?  Also, does an X server typically buffer up user keyboard input a line at a time?  Can the X client control this, asking for keystrokes immediately?  Thanks in advance for any feedback!
We're looking at various X11 clients for PC's and we're looking for some information about the relative efficiency of different products.  Are any notably efficient (fast)?  Are any notably inefficient?  I assume that a Graphics Accelerator makes them significantly faster (right now I'm looking at ico running on Xoftware/32 for Windows sitting on the Distinct TCP/IP platform, and it's (not surprisingly) much slower than ico running on the Sparc10's console.  What are the key ways of improving performance for PC (presumably Windows) clients?  Also, what about async solutions?  (Yes, I appreciate that it will be  *much* slower even with V.42bis.)  I'm in the process of installing PPP (with header compression).  How does that compare to cslip?  I've seen a product called XRemote by NCD that promises to be pretty efficient, but are there comparable products out there?  If we're looking for efficiency for async, PC clients, what should we be looking at in addition to standard PPP w/ compression and XRemote?  Any information would be greatly appreciated.  I'm still taking in all the information in the faq, but any tips about the relative efficiency of various product offerings would be great.  (I get the impression that discussions about speed are largely application specific, but that not withstanding, any comments would be appreciated.)  Thanks.  -- Rob
In article <1r5l8g$bub@wsinfo03.win.tue.nl>, rcb5@wsinfo03.win.tue.nl (Richard Verhoeven) writes: |> bading@cs.tu-berlin.de (Tobias 'Doping' Bading) writes: |> >  |> > try this after XCreateWindow: |> > ----------------------------- |> > ... |> > |> >   xsizehints->flags = USPosition | USSize;	/* or = PPosition | PSize */ |> >   ... |> >   XSetWMNormalHints (display, window, xsizehints); |> >   ... |> > |> > These hints tell the window manager that the position and size of the window |> > are specified by the users and that the window manager should accept these |> > values. If you use xsizehints->flags = PPosition | PSize, this tells the window |> > manager that the values are prefered values of the program, not the user. |> > I don't know a window manager that doesn't place the window like you prefer |> > if you specify the position and size like above. |>  |> Sorry, but olwm and tvtwm don't do it. They place the title at that position |> and the window at a position below it.  The reason they place their outside corner at the location you requested is because that's what the ICCCM says they should do.  |> This becomes a problem when you want a program to be able to save its current |> configuration and restore is later. |>  |> Currently, my solution is: |>  |> 	XCreateWindow(...); |> 	XSetWMProperties(..); |> 	XMapWindow(...); |> 	XFlush(...); |> 	XMoveWindow(...);  This code will almost certainly break.  Calling XMapWindow and then XFlush does not guarantee that the window is visible and managed by the window manager.  Even if this did work, there isn't a reliable way to find out how much decoration the window manager placed around your window, so you don't know how far to move it.  And what if the window manager refuses to move your window?
Hi, Experts,   I'm kind of new to X. The following question is strange to me. I am trying to modify the contents of the colormap but failed without reason (to me). I am using the following piece of code:     toplevel = XtInitialize(argv[0], "Testcolor", NULL, 0, 			  &argc, argv);   dpy = XtDisplay(toplevel);   scr = DefaultScreen(dpy);   def_colormap = DefaultColormap(dpy,scr);    if(XAllocColorCells(dpy, def_colormap, True, NULL, 0, cells, 5)) {     color.pixel = cells[0];     color.red = 250;     color.green = 125;     color.blue = 0;     color.flags = DoRed | DoGreen | DoBlue;     XStoreColor(dpy, def_colormap, &color);     printf("\n Try to allocate, the color %d as (%d,%d,%d)", 	   color.pixel, color.red, color.green, color.blue);       XQueryColor(dpy, def_colormap, &color);     printf("\n After  allocate, the color %d is (%d,%d,%d)", 	   color.pixel, color.red, color.green, color.blue);    }   else     printf("\n Error: couldn't allocate color cells");   Running output:       Try to allocate, the color 7 as (250,125,0)      After  allocate, the color 7 is (0,0,0)  After XStoreColor(), XQueryColor() just returned the original value.  No failure/error displayed but the contents of colormap are obvious unchanged. (I also tried to draw a line using the colors but it  turned out to be the unmodified colors.)  So what is my problem? How to modify the contents of the colormap?  Any help/information will be appreciated. Please send mail to "yang@cs.umass.edu".  -------------------------- William  email: "yang@cs.umass.edu" --------------------------   By the way, the following is the environment I am using (output of "xdpyinfo"). It shows the default visual is PseudoColor.  version number:    11.0 vendor string:    DECWINDOWS DigitalEquipmentCorporation UWS4.2 vendor release number:    1 maximum request size:  16384 longwords (65536 bytes) motion buffer size:  100 bitmap unit, bit order, padding:    32, LSBFirst, 32 image byte order:    LSBFirst number of supported pixmap formats:    2 supported pixmap formats:     depth 1, bits_per_pixel 1, scanline_pad 32     depth 8, bits_per_pixel 8, scanline_pad 32 keycode range:    minimum 86, maximum 251 number of extensions:    8     Adobe-DPS-Extension     DPSExtension     SHAPE     MIT-SHM     Multi-Buffering     XInputExtension     MIT-SUNDRY-NONSTANDARD     DEC-XTRAP default screen number:    0 number of screens:    1
Try this: ------------------------------------------------------------------------------- #include <stdio.h> #include <X11/Xlib.h> #include <X11/Xutil.h>  Display *dpy; int	screen; XColor	*xclrs,*xclrp; XID	cmap; int	cells,i,j,red,green,blue,got;    main() {  dpy = XOpenDisplay(NULL);  screen = DefaultScreen(dpy);  cells = DisplayCells(dpy,screen);   cmap = XCreateColormap(dpy,RootWindow(dpy,screen),DefaultVisual(dpy,screen),1);   xclrs = (XColor *)malloc(cells * sizeof(*xclrs));    xclrp = xclrs;   for (i=0; i<cells; i++) { xclrp->pixel = i; xclrp->flags = 7; xclrp++; };   XQueryColors(dpy,DefaultColormap(dpy,screen),xclrs,cells);  XStoreColors(dpy,cmap,xclrs,cells);  XInstallColormap(dpy,cmap);  got = 1;   while(got) {   xclrp = xclrs;   got = 0;   for(i=0; i<cells; i++)  {    if(xclrp->red < 65000) {xclrp->red += 256; got = 1;};    if(xclrp->green < 65000) {xclrp->green +=256; got=1;};    if(xclrp->blue < 65000) {xclrp->blue +=256; got=1;};    xclrp ++;   }   XStoreColors(dpy,cmap,xclrs,cells); /*  XInstallColormap(dpy,cmap); */  }  got = 1;  while(got) {   xclrp = xclrs;   got = 0;   for(i=0; i<cells; i++)  {    if(xclrp->red > 256) {xclrp->red -= 256; got = 1;};    if(xclrp->green > 256) {xclrp->green -=256; got=1;};    if(xclrp->blue > 256) {xclrp->blue -=256; got=1;};    xclrp ++;   }   XStoreColors(dpy,cmap,xclrs,cells); /*  XInstallColormap(dpy,cmap); */  } } -------------------------------------------------------------------------- It will work on any PseudoColor XServer. (hopefully :)
I recently found the file xgolf on a German ftp site (reseq.regent.e-technik.tu-muenchen.de) but unfortunately the shar file was incomplete and the author's email address given in the readme file (markh@saturn.ee.du.edu) does not work.  Can anyone assist by giving the location of a full version of this (or any other golf game for X) game, or a way of contacting the author?  Please reply by email if you can help  Ade
I want to create a single-line Text widget for entering a small amount of text.  I want it to be of fixed width, but have a horizontal scrollbar that scrolls automatically when the user types in order to keep the insertion point visible.  In trying to do this I have two problems:   - The addition of the horizontal scrollbar does not make the text widget    taller, but instead it seems to cover part of the text.   - The scrollbar does not scroll automatically as the user types in text    in order to keep the insertion point visible.  Any help is appreciated.  Mike
We have an old Sun3/60 here which gets occasional use.  When X11R5 is started on it any console messages during startup are undeletable.  After X is fully started we run an xterm as the "console" - the problem is that any messages that arrive before this starts go to the plain console.  "Refresh window" fails to remove them.  The messages are a real pain since they sit in the middle of the screen obscuring anything else below them.  At boot time the 3/60 lists two framebuffers  -  /dev/cgfour0 and /dev/bwtwo1. We're running X in color, and I suspect that maybe the offending messages are on the B/W framebuffer, and thereby not getting deleted.  My question is: has anyone else seen this, and is there an easy way to get rid of these messages?  Please reply by e-mail to hughm@inmos.co.uk.  Hugh McIntyre. INMOS Ltd., Bristol, UK.  (BTW: SunOS 4.0.3, X11R5, mwm).
Hi folks,  I'm trying to compile xfig 2.1.7 on a SS1+ running SunOS 4.1.1 and OW 2.0, and I'm having a little trouble with make/imake.  Specifically, make bombs when it needs to use any Xaw file.  This isn't surprising since X11 files on Suns with the standard OW 2.0 distribution are in various places under /usr/openwin (Xaw files are in /usr/openwin/share/include/X11/Xaw !!) Actually, the real problem is that I know squat about imake, and I don't know how to tell imake where the X11 files are.  I can see from the  Makefile that it's looking in the wrong places, but the first line of the  Makefile reads      # Makefile generated by imake - do not edit!  Help!  Is there some way I can edit the Imakefile to tell it where to look?  (I have set DEFINES = -DOPENWIN_BUG, as it said to in the README file.)  Email and post are both fine.  Thanks in advance,
Can anybody tell me how to use the Xmu function "XmuCvtStringToWidget". I want to specify a widget name in a resource file so that I can connect two widgets together on an XmForm. ie.  MyProggy*MyListSW.topWidget:               MainTextSW  However, when I run the program, I get the message:  Warning: No type converter registered for 'String' to 'Window' conversion.  (Just like the manual sez).  I have managed to find this bit of code which seems to be the correct way to go about this:      static XtConvertArgRec parentCvtArgs[] = {         {             XtWidgetBaseOffset,             (XtPointer)XtOffsetOf( CoreRec, core.parent ),             sizeof(CoreWidget)         }     };      XtSetTypeConverter( XtRString, XtRWidget, XmuCvtStringToWidget,                             parentCvtArgs, XtNumber(parentCvtArgs), XtCacheAll,                                NULL );   However, I haven't got a clue where to put it! The example code I have seems to suggest I can only do this if I am creating my own widget; but elsewhere it says that I can add it to a widget's "class_intialize" function. HOW? What's one of those? :-(  If anybody has any code to do this, please let me know the trick - I'm sure this is a FAQ.  Thanks in advance,  Rik.  PS: What are the header files "CoreP.h" and "IntrinsicsP.h" - should I use     these or "Core.h" and "Intrinsics.h" (OK I know RTFM:-)
I was planning to use the following pipe to move some display data to a system that has a color hardcopy unit:  	xwd | xwud -display hostname:0.0  I had tested it with some simple windows like the OpenWindows file manager, and it worked fine, but when I tried it with a more complex (larger) image, the xwd part blew up with a segmentation fault.  I tried it without the pipe, by redirecting xwd's output to a file and then used the file as input to xwud and got the same error from xwud.  If I had to guess, it seems like it's running out of memory, but this happened on a SPARC 10 with 64 megs, 128 meg swap space, and only one user with minimal activity.  The file was about 3 MB.  This verion of xwd/xwud was supplied with the Sun OpenWindows 3.0 distribution which I believe corresponds to X11 R4.  Any ideas?  Thanks in advance. --  -------------------------------------------------------------------------- Dave Humes        |    Johns Hopkins University Applied Physics Laboratory (410) 792-6651    |    humesdg1@aplcomm.jhuapl.edu
Answers please by e-mail, since not all groups in the header are carried here.  Hi!  Personally, I like NeXTSTEP very much. Even more when I realise how much a   burden ordinary X or Windows programming is. I also like Objective-C better   than I like C++.  But, sometimes the restrictions are there. For instance it sometimes has to be   MS-Windows or X. Now I'm looking for pointers to tools on those environments   that come close to NeXTSTEP, the appkit etc. Also, environs that support rapid   prototyping (like with IB) without producing spaghetti-code as soon as you want   to do real work.  Maybe STEPSTONE with some Windows version of a kit of UI objects? Interviews   (what it is exactly, I don't know. I kind of lost touch with that world when I   started with NeXTSTEP.)  Thanks,
|  | Shared memory PutImage (also mentioned by nkissebe@delphi.beckman.uiuc.edu, | Nick Kisseberth) looks interesting, but I need someone to point me to some | documentation. Is this method likely to give better results than server- | resident pixmaps? I'd also be interested in looking at the XView code | mentioned above...  There is no easy answer to this question: it depends on whether the display device can hold pixmaps in off-screen memory, and if so, how efficiently the server manages these resources (having to deal with limited off-screen memory is the bane of the server implementor's existence!).    I have worked with graphics devices where the off-screen memory to  main display copy rate eclipses that of the main memory to display copy rate, and with those where the main memory to display is *faster* than off-screen to display (requires only a write to the framebuffer rather than a read of the F.B. followed by a write)  If your server uses the cfb code or something like it to render into pixmaps in CPU main memory, the rates you can get through MIT-SHM are likely to be equal (maybe a tad slower, depending on your OS's implementation of shared memory) to CopyArea from pixmap to window, which is also then just a copy from CPU main memory to graphics device.  One advanage of MIT-SHM is that if your images are large, you don't end up growing the size of the server process to hold them.  One disadvantage of the MIT-SHM is that, in its sample implementation, there is no provision for elegantly cleaning up the shared memory segments if the client dies a sudden, violent death (e.g., "kill").  You have to  be mindful of cluttering up the system with zombie shared memory segments.  	Ken
I would like to keep track of X development on: - A/UX - ULTRIX - OpenWindows Currently I cannot use the newsgroup comp.windows.x  and would like to use the Email based info.  Thanks,   Folkert Boonstra
In article <1qvatv$9ic@pandora.sdsu.edu> masc0442@ucsnews.sdsu.edu (Todd Greene) writes: > > >Is there an Xt call to give me my application context? >I am fixing up an X/Motif program, and am trying to use XtAppAddTimeOut, >whose first argument is the app_context.  What call can I use >to give me this value? >      You can get the ApplicationContext associated with a widget by calling     XtWidgetToApplicationContext.
In article <1993Apr21.154620.16330@infodev.cam.ac.uk>, dcr@mail.ast.cam.ac.uk (Derek C. Richardson) writes: |> Hi, I'm new to this group so please bear with me! |>  |> Two years ago I wrote a Sunview application for fast animation |> of raster files. With Sunview becoming rapidly obselete, I've |> finally decided to rewrite everything from scratch in XView. |> I put together a quick test, and I've found that XPutImage() |> is considerably slower (factor of 2 on average?) than the |> Sunview command pw_rop() which moves image data from memory |> pixrects to a canvas. This was on a Sparc IPX. It seems that: |> (1) the X protocol communication is slowing things down; or |> (2) XPutImage is inefficient...or both! My question is, what |> is the fastest way in X11R5 to dump 8 plane image data to |> a window? Can I take advantage of the fact that the client is |> running on the same machine as the server? Or am I stuck with |> XPutImage() (in which case I might as well give up now...)? |>  |> All help appreciated...thanks! |>  |> Derek |>   The *fastest* way is to use an X server with shared memory extension. It uses shared memory if it is a local X server (hence images don't have to be duplicated), and defaults to the regular image routines if either the shared mem extension is not available, or if it's  not the localhost.
Here's what I (think) have figured out.  All I need to do is install the R5 disitribution without the Xserver like the sony.cf file defines, and all the new libraries, utils, etc., will be installed and my old server from r4 will still work.  This will allow me to run Xview 3.0, and have X11r5 up and running.  Does the server interface remain the same with all changes made only to the libs?  Another question: Is it likely that since Sun is dropping OW support that the desktop utils (like the file manager) will be made public? It would be nice if companies would make old code public for the benefit of those of us with smaller budgets. :) --  mike@hopper.acs.virginia.edu
I'm new to the hardware and with a mandate to port some X-based stereo-video software --- does anyone know of or have experience with X on Amiga machines?  If I can retain the X event handling, it would ease my plight considerably, and if I can keep all the Motif bits, so much the better!
Hello,     When starting bx if you recieve an error message saying "cannot load app-defaults file..." check your XAPPLRESDIR environment variable and then put the file BuilderXcessory  ( this is the app-defaults file for BX ) in the directory specified by the XUSERFILESEARCHPATH environment variable.     If you don't have an XUSERFILESEARCHPATH environment variable then set XUSERFILESEARCHPATH to be the directory where the BuilderXcessory file is. You can do this using the setenv command under csh. Note that the name ends in .ad so you will have to set XUSERFILESEARCHPATH to {BX}/%N.ad to get the app-defaults to load correctly.     To make sure the the app-defaults file can be read by all the users, make sure that a copy of or a link to the app-defaults file exists in /usr/lib/X11/app-defaults or  /usr/openwin/lib/app-defaults, depending on how your system is set up.     Once you have taken care of this set the *systemDirectory resource to be the directory in which you have installed BX.  For example let's say I've installed BX in /t then my system directory resource should be set like this :  *systemDirectory: /t/builderXcessory
> It is interesting to look at the change(s) of mind that John has had.  Very interested indeed! This is against this kind of "changes" that the GNU COPYLEFT is protecting us.  Anyway, at SIMULOG, we will abandon xv. We were using it mostly for slide- shows because of its "-loop" feature that display does not have (display from the *wonderful* ImageMagick package! :-D), but I think I will implement it myself (even a shell-script should do the job) and forget xv.  Cheers, Christophe. -- muller@simulog.fr
Hi, I have a lots of problems using XView (libraries Release 3.2) in order to do the following: + I want to create a MODAL Dialog which block the program flow   (a syncronous dialog, ala Macintosh) , as the Notice Panel   does, but with Text Item, List Item, and other XView objects. + The MODAL Dialog also must allows the Timer to be called (why   Notice doesn't do that?).   The problems are: - Using the "xv_window_loop" functions most XView objects dont work   (as the List Item), and the timers aren't called.   - With the "notify_dispatch" explicit I have problem because:   "...never attempt to do direct dispaching from within a callback   routine..." as say the "XView Programming Manual (Third Edition)"   on page 486 (uhm... I know this number!!! :->).   But I need to do dispatching just inside a callback routine!   Help me, please!!!   Thanks in advance, --- Giovanni   P.S. Please, send replay directly to my address belove (I haven't direct access to Internet).
I have an application running in one window. In this application, I'd like to iconize this window, and later deiconize back to window. How could I do it? Your help would be appreciated.