HDTenEightyP/NetNews huggingface dataset:
From: isbell@cats.ucsc.edu (Art Isbell)
Newsgroups: comp.sys.next.programmer
Subject: Re: A few small changes for 3.1 (Edit and gdb)
Date: 29 Dec 1992 18:24:59 GMT
Organization: Cubic Solutions - NeXT software development and consulting
NNTP-Posting-Host: si.ucsc.edu


In article <63080@mimsy.umd.edu> alex@cs.umd.edu (Alex Blakemore) writes:
>tim@aplcenmp.apl.jhu.edu (Tim Pugh) writes:
>> One addition [to Edit.app for 2.1] that should be both easy to make and
>> quite useful is to follow the example set by the Stuart terminal emulator
>> by adding an "extent" option  to the print pannel.
>
>Another good idea that Edit and other apps should borrow from Stuart
>is to use alt-up and alt-down to scroll. (alt-left and alt-right to cycle thru windows)
>these are the main reasons I have to stop typing and reach for the mouse,
>a real slow down in a word processing type of app.  Please NeXT, I know your
>GUI gods have declared some nonsensical use for alt arrow keys that even Edit's writers
>had the good sense to ignore, but please give us a way to scroll quickly without
>using the mouse. And NO, holding down the arrow key as the cursor covers the whole
>page is not quick.

NeXT's 3.0 User Interface Guidelines seem to cover this need:

"Control-Arrow Combinations

...
The up arrow key positions the insertion point in the first visible line of the
display, directly above the beginning of the current selection.  The down arrow
key puts the insertion point in the last visible line, directly below the end
of the current selection.

When the insertion point is already at the edge of the currently visible
display, the Control-arrow combination that would otherwise move it to that
edge first scrolls the display (by the amount of a page scroll), then moves the
insertion point to the edge of the new display."

Unfortunately, modified arrow keys don't seem to be implemented by NeXT's apps,
but I suspect they will in the future, probably by being added to the Text
class or its descendent.
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
NeXTmail: isbell@cats.UCSC.EDU                             Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
Newsgroups: comp.sys.next.programmer
From: bagchi@oosik.sprl.umich.edu (Ranjan Bagchi)
Subject: Request: info on learning NeXTStep
Organization: University of Michigan EECS Dept., Ann Arbor, MI
Date: Mon, 21 Dec 1992 21:31:24 GMT

	Hi.  I'm interested in learning how to program NeXT apps.  I'm  
C-fluent (although I don't know much about Objective-C), and know  
X11/Xt/Motif fairly well.  Any book recommendations?  I really just
want a primer-type book.. the >$200 set I've seen talked about here
is a bit too much for me.

	thanks.. rj
Xref: sparky comp.sys.next.programmer:7883 comp.sys.next.misc:23308 alt.cd-rom:5298 comp.graphics:13138
From: jpm@lanl.gov (Pat McGee)
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc,alt.cd-rom,comp.graphics
Subject: NeXT Photo-CD application now on sonata
Date: 22 Dec 92 20:47:25 GMT
Organization: Los Alamos National Lab

Dick Phillip's Photo-CD application for NeXTs is now loaded in the  
pub/next/submissions directory at sonata.cc.purdue.edu. The following  
files are available:

pCD.README
pCD.tar.Z.TAKEME		application
README.pCD
photo_cd.tar.Z			test data - simulated photo-CD
photo_cd.tar.Z.README

Thanks to Allen Braunsdorf for figuring out and fixing the problem.

Does anyone have an e-mail address for the archive administrator at  
cs.orst.edu? I still can't make anonymous FTP submissions to there.

--

Pat McGee
jpm@lanl.gov, (505) 667-4196
Distributed Computing Environments Group, Los Alamos National  
Laboratory
MS B272, P. O. Box 1663, Los Alamos, NM 87545
Newsgroups: comp.sys.next.programmer
From: wiml@milton.u.washington.edu (William Lewis)
Subject: Re: Problems using PopUpLists
Keywords: popuplist PopUpList
Organization: University of Washington
Date: Wed, 23 Dec 1992 00:15:06 GMT

gpal@poseidon (Greg Pal) writes:
>I've been having some problems using PopUpLists.  I have two lists of 4  
>items each (the first item in each list can be thought as the default  
>value).  I want to have button that will reset my lists to their default  
>values.  For example, if the last item of a list were selected, when I  
>pressed this button, the default value would be selected and would be the  
>title of the list.  I thought that this would be a simple problem to solve  
>but I can't find an easy way to do it.

When it's not actually popped up, a PopUpList stores its "current selection"
in the title of the button that does the popping-up. When theuser presses
that button, the button causes the popuplist to pop up; the popuplist 
queries the button's title, and searches for this title in its array of 
cells to determine which one to highlight. (If it's not there, it adds 
it --- see the popuplist docs.) To change the current selection, you can 
just use setTitle: on the button.

-- 
email: wiml@u.washington.edu             |  Home:  Seattle, Washington   |
     (William Lewis)                     |  47 41' 15" N   122 42' 58" W | 
NeXTmail: wiml@ingalls.cs.washington.edu `-------------------------------'
        --*-- Member, Coalition to Preserve Semantic Vacuity --*--
From: jacksonc@uproar.enet.dec.com (Chris Jackson @ IME)
Newsgroups: comp.sys.next.programmer
Subject: NXWriteTypes() of 'char *'
Keywords: NXWriteTypes
Date: 23 Dec 92 13:19:46 GMT
Reply-To: jacksonc@uproar.enet.dec.com (Chris Jackson @ IME)
Organization: Digital Equipment Service Industries Solutions Company Ltd


My experience seems to suggest that using NXWriteTypes() to archive a 'char *'
only works if the 'char *' is not NULL.  If it *is* NULL, then a memory
violation results in 'strlen()' in NeXT code when the object concerned is read
from the archive.

Can anyone out there confirm that this is the case and whether or not it is the
expected behaviour ?  If it is the expected behaviour, I presume I have to
explicitly code around it ?  Next question - is there a recommended way of
doing
so ?

Thanks, in anticipation,

Chris.
Newsgroups: comp.sys.next.programmer
From: greg@afs.com (Gregory H. Anderson)
Subject: Re: NXWriteTypes() of 'char *'
Reply-To: greg@afs.com
Date: Thu, 24 Dec 1992 20:19:53 GMT

In article <1992Dec23.131946.14537@rdg.dec.com>  
jacksonc@uproar.enet.dec.com (Chris Jackson @ IME) writes:
> 
> My experience seems to suggest that using NXWriteTypes() to archive a 
> 'char *' only works if the 'char *' is not NULL.  If it *is* NULL, then 
> a memory violation results in 'strlen()' in NeXT code when the object 
> concerned is read from the archive.
> 
> Can anyone out there confirm that this is the case and whether or not it 
> is the expected behaviour ?  If it is the expected behaviour, I presume 
> I have to explicitly code around it ?  Next question - is there a 
> recommended way of doing so ?
 
Well, yes... but this is true for all of C, not just NeXT read/write  
calls.

When an object is first instantiated, all ivars are set to 0/NULL. If you  
never assign anything to the pointer, it stays NULL, and reads/writes  
NULL. That is exactly as it should be. The problem is that strlen (and  
str[n]cpy and str[n]cmp), at least as implemented in the NeXT libraries,  
do not guard against NULL in source or dest. Frankly, I think the overhead  
would be worth it, but they chose not to.

Write your own strxxx functions (they're not that complicated) and link  
them in to override the default library implementations, or give yours a  
unique name and use a 

#define strlen mystrlen

to substitute yours for the library copy at compile time.

--
Gregory H. Anderson          | Thus spake the master programmer: 
Master Programmer / Manager  | "Let the programmers be many and  
Anderson Financial Systems   | the managers few; then all will be 
greg@afs.com  (Nextmail OK)  | productive." -- Tao of Programming
Newsgroups: comp.sys.next.programmer,comp.sys.next.sysadmin
From: bnixon@fnma.com (Bill Nixon)
Subject: How to open a connection without PublicWindowServer set?
Followup-To: comp.sys.next.programmer
Organization: FannieMae, Washington, DC
Date: Tue, 22 Dec 1992 01:17:25 GMT

I wrote a little application which allows me to pop up an
alert panel on the Workspace from the command line, ala
/usr/lib/NextPrinter/Inform.

This works great as long as I am doing it from a Terminal
Session I started.  But, it does not work if I rlogin into
the machine.  I know about PublicWindowServer and DON'T want
to turn it on for various reasons.

I tried to su to root and do the same thing, but this
doesn't even work.  I mucked around and read in the
loginwindow(8) man page that an application must be
descended from either the Workspace or be a special system
process such as the printer daemon.  And yes, this seems to
hold true.

Now, how can I get around this?  I want to write a one of
the aforementioned special system processes that can write
to the Workspace without Public Window Server being set but
have no idea what the Workspace is looking for...

Why do I want to do this?  Well, I'd like to put up an panel
on a machine when I am about reboot a machine remotely like
this:

rlogin machine
su
displaymsg "Message is going to reboot in 60 seconds"
sleep 60
reboot

Any pointers to help solve this problem would be greatly
appreciated.  Note that I am trying to do this under
NeXTSTEP 3.0.

Thanks!

-- 
bnixon@fnma.com or ...!uunet!fnma.com!bnixon (NeXT Mail Okay)
Bill Nixon, Senior Programmer Analyst, Advanced Technology, 2H-4S
FannieMae, 3900 Wisconsin Ave NW, Washington, DC 22016  (202) 752-5468
Newsgroups: comp.sys.next.sysadmin
From: gmk@pegasos.ccsr.uiuc.edu (Gottfried Mayer-Kress)
Subject: how to remove remote directories from /Net?
Reply-To: gmk@pegasos.ccsr.uiuc.edu (Gottfried Mayer-Kress)
Organization: University of Illinois at Urbana
Date: Fri, 1 Jan 1993 20:04:32 GMT

I used NFSManager.app to try to mount some remote disks. Some of them were
not available, so I used the Remove command from NFSManager.
The problem is that in the workspace I still see these entries under /Net.
How can I get rid of those?

Thanks,

--
Gottfried Mayer-Kress
Center for Complex Systems Research, Department of Physics
3025 Beckman Institute, 405 N Mathews, Urbana, Il 61801
gmk@pegasos.ccsr.uiuc.edu (NeXT-Mail)
gmk@goshawk.lanl.gov, gmk@santafe.edu 
(217)-244-5877 (voice/fax modem),x8371(fax), x1994 (msg)
Newsgroups: comp.sys.next.sysadmin
From: faught@berserk.ssc.gov (Ed Faught)
Subject: Re: Mail address lists in Mail.app
Reply-To: faught@berserk.ssc.gov
Organization: Superconducting Super Collider Laboratory
Distribution: usa
Date: Tue, 22 Dec 1992 19:00:30 GMT

In article <12260@cayman.COM> jbatson@cayman.com (Jay Batson) writes:
>I would like the "Addresses" panel within Mail.app to contain the contents of  
>our corporate smtp "aliases" file.  Since we don't run Netinfo for any other  
>systems, I have no idea where Mail.app get's its information.  I can enter all  
>the names manually, but our organization is large enough that a) this is  
>sufficiently time consuming that it isn't worth the effort, and b) the list  
>changes in some way virtually daily, and I'd spend forever making manual  
>changes.
>
>So I need it done in some automated way.  My NeXT machine can see the  
corporate  
>aliases file (via NFS) but is there an automated way to get the information  
re:  
>user names, groups, etc. in to the place where Addresses in the Mail.app are  
>stored?

I can't vouch for it's usefulness, but this is what I use:

#! /bin/sh
cd /LocalLibrary/Images/People
ypcat -k aliases | grep , | sort | sed "s/ /:/g" >> aliases

--
Ed Faught  WA9WDM  faught@berserk.ssc.gov
 Superconducting Super Collider Laboratory
From: dan@quiensabe.az.stratus.com (Dan Danz)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: question about ntp
Date: 3 Jan 1993 14:42:54 GMT
Organization: Stratus Computer Inc, Marlboro MA
Reply-To: dan@az.stratus.com
NNTP-Posting-Host: quiensabe.az.stratus.com

Bob Sutterfield writes
> In article <1hr64iINNmq7@transfer.stratus.com> dan@quiensabe.az.stratus.com  
(Dan Danz) writes:
>    ...you can't just run the ntp daemon on your local machine because
>    it will forever be bringing up the dialup SLIP line.  So you have
>    to put up with some inaccuracy.
> 
> If your SLIP (or PPP) software offers a packet filtering capability,
> this isn't a problem.  For example, my home workstation will pass NTP
> packets on the wire when the link is already up for some other
> purpose, but an NTP packet isn't interesting enough to cause the link
> to be brought up, nor does an NTP packet count against the idle timer.
> So the NTP daemon gets to look at its peers only when I'm already
> using the line for something else that matters more to me than
> timekeeping.

Does anybody know how to do this with Louie Mamakos' DialUpIP SLIP package?
I know that it can prevent dialup for protocols at the level of TCP, UDP, etc.,
but don't know how to specify not doing it for just NTP packets.

--
L. W. "Dan" Danz         (WA5SKM) VOS Mail:  Dan_Danz@vos.stratus.com
Sr Consulting Software SE         NeXT Mail: dan@az.stratus.com
Customer Assistance Center        Voice Mail/Pager: (602) 852-3107
Telecommunications Division       Customer Service: (800) 828-8513
Stratus Computer, Inc. 4455 E. Camelback #115-A, Phoenix AZ 85018
Newsgroups: comp.sys.next.sysadmin
From: tom@cse.fau.edu  (Tom Horton)
Subject: NetInfo problem (server thinks it's a clone)
Organization: Florida Atlantic University, Boca Raton
Date: Tue, 29 Dec 1992 21:34:50 GMT

I have had a Netinfo problem in which I seem to have reconfigured my server so  
that it thought it was a clone server.  I *believe* I have fixed this, but  
since I'm no Netinfo expert I'd like someone to tell me if I've done this  
right!

I'm running NeXTSTEP 2.1 (will do the 3.0 upgrade after resolving this issue).   
I have two NeXTs: sailfish (the domain server I screwed up) and catfish (which  
is served by sailfish).  I thought I had backups of /etc/netinfo but.... (Now I  
do and will continue to do so.)

A couple of weekends ago we had a campus-wide IP address reconfiguration. I  
needed to change the gateway IP address, the broadcast mask, etc.  Apparently I  
should have physically disconnected my host 'sailfish' from the network before  
doing this, because the next time it booted, I got the error message that it  
couldn't find its parent Netinfo server.  (It *is* the Netinfo server for my  
two-machine network, at least it's supposed to be.)  I deduced it now thought  
it was a clone server.

After glancing at Chapter 8 in the Network and System Admin. manual that came  
with NeXTSTEP 2.1, I made some educated guesses about how to fix this.  In the  
domain I had access to when the machine booted (now /sailfish), I opened the  
subdirectory /machines and removed the 'serves' property from broadcasthost,  
then added a new machine 'sailfish' with the right IP address and the value  
'../network' for the 'serves' property.  So now, instead of the two that were  
there, there are now these 3 entries in /sailfish/machines:

   name: broadcasthost
   ip_address: 255.255.255.255
   
   name: localhost
   ip_address: 127.0.0.1
   serves: ./local
   
   name: sailfish
   ip_address: 131.91.80.15
   serves: ../network

The machine now boots fine (at least so far) and NetInfo does come up with my  
network as it did before I created this problem.  If I open the highest level  
domain, I do find sailfish listed in /machines as follows:

   name: sailfish
   ip_address: 131.91.80.15
   serves:  sailfish/local ./network

This looks ok to me (I guess).

Could someone confirm that this is what I should have done, or make some other  
suggestions?  As I said, I'm not a netinfo expert.  My immediate goal was to  
get this fixed (at least temporarily) so I get my classes' final grades  
compiled!  Now I want to make sure it's fixed right.

Thanks in advance for any help!
Tom

-------------------------------------------------------------------------
Dr. Thomas B. Horton, Assistant Professor
Dept. of Computer Science and Engineering, Florida Atlantic University
Boca Raton, FL 33431  USA        Phone:  407/367-2674   FAX: 407/367-2800
Internet:  tom@cse.fau.edu       Bitnet: HortonT@fauvax
From: tim@Apple.COM (Tim Olson)
Newsgroups: comp.sys.next.sysadmin
Subject: Webster app is dying
Date: 1 Jan 93 02:26:08 GMT
Organization: Apple Computer Inc, Cupertino, CA

The Webster app on my '030 cube running 2.1 has recently started
behaving strangely -- it dies with a protection violation trying to
access memory location 0x3 when searching for words in the dictionary
(the thesaurus works fine).  Some searches (such as "North America")
work fine, but most get the protection violation.

I have a copy of the 2.1 distribution on optical, so I tried it.
When I booted from that disk, Webster worked fine.  I assumed from
that that either the application or the data files in
/NextLibrary/Reference had been corrupted.  However, copying both over
from the optical disk did not solve the problem.

Thus, it appears that something else in the environment is causing the
problem (sdmach? Workspace.app?)

Before I go ahead and rebuild my entire hard disk, I thought I'd send
this out to see if anyone else had seen similar behavior.  I can't
find any other app that is misbehaving...

-- 
	-- Tim Olson
	Apple Computer Inc. / Somerset
	(tim@apple.com)
Newsgroups: comp.sys.next.sysadmin
From: lemson@ux1.cso.uiuc.edu (David Lemson)
Subject: Re: dwrites on client machines
Organization: University of Illinois at Urbana
Date: Thu, 24 Dec 1992 04:18:37 GMT

gvh@metrosoft.com (Gordon Van Huizen) writes:

>How do people usually handle dwrites for the
>loginwindow, etc. on client machines? If you mount all of
>root from a server, don't you get that server's defaults
>when you do dreads on the client? This seems less than
>desirable. 

The dwrite database (I think accurately called the 'defaults
database') is actually stored in the ~/.NeXT directory.  That goes
for ~root as well.  So, it depends on where home directories come
from, not /private/etc or anything like that.
Barring netbooting, most people have client machines using their own
/ partition, plus more directories for applications, home
directories, etc.  With netbooting, yes, you would use the defaults
for root on the server machine probably. (With the standard netboot
setup)
Check out DefaultMgr by Drew Davidson, which makes this task a lot
easier for system administrators.  The new version that handles
netinfo is commercial, published by CuillaMartin.  I never saw it,
but from Drew's descriptions while he was designing it, it seems
like it might solve all of our problems.

One way to set everyone's dwrite is a su command that executes a
command as each user each night.  Many people do this to turn off
PublicWindowServer for each user.
-- 
David Lemson                                                (217) 244-1205
University of Illinois NeXT Campus Consultant / CCSO NeXT Lab System Admin
Internet : lemson@uiuc.edu                UUCP :...!uiucuxc!uiucux1!lemson 
NeXTMail & MIME accepted                           BITNET : LEMSON@UIUCVMD
Newsgroups: comp.sys.next.sysadmin
From: nextone!root (Operator)
Subject: Mail.app problem with Mailbox-path
Organization: Nitezki Datensysteme, Kraichtal, Germany
Date: Thu, 24 Dec 1992 22:08:56 GMT

One of my accounts managed to make its Mail.app inaccessible by setting a  
wrong path to the Mailboxes directory. Everytime Mail.app starts it  
displays an alert window about the problem but leaves no choice other than  
quit. No menues, thus no way to change preferences!

I searched the filesystem for apparent configuration files; no success.
I also searched the manuals and I didn,t find a hint.

As I know, there is nothing like a foolproof software as the fools are  
much too inventive, but I think it s a bad trick to allow a parameter to  
be set by anyone and then provide no easy way to mend the damage done.

Any hints or advice to mend the problem?
From: greimann@pecan.cns.udel.edu (J. Brandon Greimann)
Newsgroups: comp.sys.next.sysadmin
Subject: Printer accounting/monitoring
Date: 22 Dec 1992 07:14:27 GMT
Organization: University of Delaware
Distribution: world
NNTP-Posting-Host: pecan.cns.udel.edu

Hi,

	I was wondering if there is any way on the NeXT to monitor and/or
regulate printer use?  Basically, I want to be able to keep a log of who
uses the printer and how many pages the documents are.  If possible, I'd
also like to be able to regulate who is allowed to use the printer.  Any
help on this would be appreciated...

							Thanks,

							Brandon

-- 
...............................................................................
To reach me through e-mail: greimann@freezer.cns.udel.edu
Phone: (302) 368-4862
From: vrr@cbnewsj.cb.att.com (veenu.r.rashid)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: Help recovering damaged .tar file
Date: 27 Dec 92 03:30:53 GMT
Distribution: usa
Organization: AT&T

>
>Is there any way to do this?  My .tar.Z file comes up with an
>error halfway through:
>
>Directory checksum:  1089 != 27893
>
>or something like this (made up the numbers).  Can I uncompress
>the tar file and fix it somehow?  (I just want to skip the bad
>block or the bad file and read the rest of the files).
>

Actually the problem is while uncompressing the file.  Raw
'uncompress' on the file gives the following messages:

uncompress: corrupt input
memory allocation error: attempt to free or realloc space not in heap
bad zone

-----
Is there anything anyone can do with this?

>This came up while reading from a bad floppy... the file copies
>but the data is corrupted.  Is there a way to fix the floppy?
>I tried running:
>
>root% fsck /dev/fd0a
>
>
>but this didn't seem to do anything.
>
>
>Please email me with tips, suggestions or a step by step method
>
>
>Thanks,
>Veenu
>
>vrr@cbnewsj.att.com
>
From: matthews@oberon.umd.edu (Mike Matthews)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: Mail.app problem with Mailbox-path
Date: 25 Dec 92 13:49:13 GMT
Organization: Los Alamos National Laboratory, NM

In article <1992Dec24.220856.3332@nidat.sub.org>  writes:
>One of my accounts managed to make its Mail.app inaccessible by setting a  
>wrong path to the Mailboxes directory. Everytime Mail.app starts it  
>displays an alert window about the problem but leaves no choice other than  
>quit. No menues, thus no way to change preferences!

RTFM dread and dwrite.

dread -o Mail will give you a biiig hint.

I would have replied by mail, but, well, there's no To: field, no From:
field, no Sender: field, no nothing.  Not even a .sig file.
------
Mike Matthews, matthews@oberon.umd.edu (NeXTmail accepted)
------
	After his Ignoble Disgrace, Satan was being expelled from
Heaven.  As he passed through the Gates, he paused a moment in thought,
and turned to God and said, "A new creature called Man, I hear, is soon
to be created."
	"This is true," He replied.
	"He will need laws," said the Demon slyly.
	"What!  You, his appointed Enemy for all Time!  You ask for the
right to make his laws?"
	"Oh, no!" Satan replied, "I ask only that he be allowed to make
his own."
	It was so granted.


Newsgroups: comp.sys.next.sysadmin