HDTenEightyP/NetNews huggingface dataset:
From: roy@mchip00.med.nyu.edu (Roy Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Uniquely identifying a Mac? How?
Date: 16 Dec 1992 02:16:56 GMT
Organization: New York University, School of Medicine
NNTP-Posting-Host: mchip00.med.nyu.edu

d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>If you run MacTCP, each mac will have/get its own IP address;
>likewise, EtherNet cards have a 6-byte EtherNet address that's
>unique in the world.

	Well, no, that's not quite true.  If you run MacTCP, you basically
have 3 choices:

	1) You're configured for "Manual" mode, in which case the only
reason you have an unique IP address is because somebody (manually, hence
the name) configured it in.  That somebody could just as easily change it,
either by accident, or on purpose.

	2) You're on a LocalTalk segment behind a FastPath (or similar box
with KIP-like dynamic address allocation) and you're configured for "Server"
moded.  In that case, you've got an IP address which is currently unique,
but each time you reboot, you (potentially) get a different one.  Hardly
useful for identifying a machine on the network.

	3) You're on Ethernet and configured for "Server" mode, in which
case a bootp server gave you your IP address, based on a 1-to-1 mapping from
your ethernet address.  I don't know about token ring, but presumably the
same thing can happen with TokenTalk.

	Then, of course, there's "Dynamic" mode in MacTCP, but I havn't the
foggiest idea what it is. :-)

	Unfortunately, as far as I can tell, unless your Mac has an ethernet
(or, presumably, token ring) port, there is no built-in unique way to
identify the machine.  I personally think it was a major mistake for Apple
to not have put some sort of machine-readable serial number in each machine.
Actually, there is a machine-readable serial number *on* each machine; it's
the bar-code label on the bottom/back/where-ever.  Unfortunately, since most
Macs don't come with bar-code readers, they have no way of finding out their
own serial number.  Sort of like walking around with a sign painted on your
forehead that everybody but yourself can read!  Obviously, it would have
added something to the manufacturing costs, but slapping those unique
bar-code labels must cost something too; I would have been happy to give up
the unique bar-code on my keyboard and mouse to have a serial number burned
into an eprom on board.

-- 
Roy Smith <roy@nyu.edu>
Hippocrates Project, Department of Microbiology, Coles 202
NYU School of Medicine, 550 First Avenue, New York, NY 10016
"This never happened to Bart Simpson."
Newsgroups: comp.sys.mac.programmer
From: jra@vipunen.hut.fi (Janne O Rajala)
Subject: Mac pictures to UNIX. How?
Reply-To: Janne.Rajala@hut.fi
Organization: Helsinki University of Technology, Finland
Distribution: comp
Date: 15 Dec 92 10:26:15


	I have pictures on my Mac and I want to transfer them to some UNIX
	format. What would be the simplest way of converting Mac pictures
	to xwd or other UNIx-format?

	Thanks in advance,

	Janne
--
Janne O. Rajala <Janne.Rajala@hut.fi>
-------------------------------------------------------------------------
"Duct tape is like the Force.
 It has a lightside, and a dark side and It holds the universe together."
Newsgroups: comp.sys.mac.programmer
From: a-kraus@uiuc.edu (Albert L. Kraus)
Subject: HOW TO ADD EOF TO RECOVERED BINARY
Followup-To: comp.sys.mac.programmer
Organization: PES
Date: Thu, 17 Dec 1992 21:50:24 GMT

I RECOVERED A BINARY FILE FROM MY HARD DRIVE BUT THE APP CANNOT READ IT
(4D).
THE MESSAGE IS: NO EOF. I SURE THE FILE IS STILL GOOD. WHat is EOF char and
what app can I use to add EOF?

Thanks!
Have a nice day!
From: timper@iat.holonet.net (Tim Perkis)
Newsgroups: comp.sys.mac.programmer
Subject: gnu awk under MPW?
Date: 16 Dec 92 09:16:18 GMT
Organization: HoloNet National Internet Access BBS: 510-704-1058/modem

I know I've seen a version of awk which runs under MPW. Can anyone point
me to this item?

thanks in advance
---------------------------------------------------------------------
	Tim Perkis		timper@holonet.net
---------------------------------------------------------------------


-- 
---------------------------------------------------------------------
	Tim Perkis		timper@holonet.net
---------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: sw@network-analysis-ltd.co.uk (Sak Wathanasin)
Newsgroups: comp.sys.mac.programmer,comp.lang.lisp
Subject: Re: Info about Pearl Common Lisp for the Mac Desired...
Date: 18 Dec 92 11:54:30 GMT
Reply-To: sw@network-analysis-ltd.co.uk
Organization: Network Analysis Ltd
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <Bz9LCo.CMC.1@cs.cmu.edu> (comp.sys.mac.programmer,comp.lang.lisp), mkant+@cs.cmu.edu (Mark Kantrowitz) writes:

> Pearl Lisp (a subset of MACL 1.3) was placed by Apple in the public
> domain when they bought Coral and canned the Pearl product.
> Unfortunately, nobody (including some Apple folks) can seem to find a
> copy, and it probably doesn't run under system 7.

It's on the "Phil & Dave's Excellent CD". I've just tried it (7.0.1/TU
1.1.1) and it seems to work if you turn off 32-bit addressing
(presumably VM will give it heartburn too - I haven't tried though).


Sak Wathanasin
Network Analysis Limited
178 Wainbody Ave South, Coventry CV3 6BX, UK

uucp:      ...!uknet!nan!sw  Phone: (+44) 203 419996
AppleLink: NAN.LTD           Internet: sw@network-analysis-ltd.co.uk
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: How do I use the 'miscdosc' AppleEvent?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Fri, 18 Dec 1992 17:42:12 GMT

In <claytor.1-171292131137@resis.phys.nd.edu> claytor.1@nd.edu (Nelson Claytor) writes:

>I'm having some trouble using the 'dosc' Apple Event to convince 
>another application to run a script. So far, I'm basically testing only

>in the AE Registry. Alpha returns -1769. Does anyone see anything obvious
>wrong with what I'm doing? My code follows the .sig.

Yes.

The dosc AppleEvent should send THE SCRIPT as typeChar in a handle
(no length byte or anything)

You're sending a script FILE.

Cheers,

						/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
 Engineering: "How will this work?" Science: "Why will this work?" Management:
 "When will this work?"  Liberal Arts: "Do you want fries with that?"
                     -- Jesse N. Schell
Newsgroups: comp.sys.mac.programmer
From: kuipers@fwi.uva.nl (Tobias Kuipers)
Subject: determining GMT
Summary: how does one determine gmt
Keywords: GMT time XPram
Organization: FWI, University of Amsterdam
Date: Tue, 15 Dec 1992 16:23:38 GMT


Hi,

I seem to have a problem locating a mac. That's to say, I want to know, 
given a local time, where this mac is at, and what the current GMT 
(Greenwich Mean Time) is (also called UTC, universal Time Coordinated).
I know it has something to do with ReadXPram() and then the item in the 
returned structure that's called gmtDelta. But...
What is the structure that is returned. What's its name, what does it look
like?
Help. Please. I can't find it anywhere.
You'll have my eternal gratitude.
Cheers,
-- 
Tobias Kuipers           |  Two men need one money, but one 
kuipers@fwi.uva.nl       |        money need no men 
University Of Amsterdam  |  --From 'Delicious Demon' by
The Netherlands          |       The Sugarcubes
Newsgroups: comp.sys.mac.programmer
From: mason@cis.umassd.edu (Mason L. Bliss)
Subject: ICON Button Question
Organization: University of Massachusetts Dartmouth
Date: Mon, 14 Dec 1992 21:40:01 GMT

This is probably a FAQ, but.....

Is there any easy way to have an icon associated with a button automagically?
Basically, I want to just point my control at an icon, and tell it to 'go
for it'. I want the button to automatically redraw the icon with
DrawControls(), and do the right thing when hiliting/unhiliting, etc.

aTdHvAaNnKcSe!!!
--
Newsgroups: comp.sys.mac.programmer
From: kdlee@umn-cs.cs.umn.edu (Kevin D. Lee)
Subject: Re: TCL: Couple o' Questions
Organization: University of Minnesota, Minneapolis, CSci dept.
Date: Fri, 18 Dec 1992 17:00:48 GMT

In article <1992Dec16.195027.23764@ncar.ucar.edu> urban@stout.atd.ucar.edu (Art Urban (PROFS)) writes:
>What is the best way to implement visual "scrolling" lists, like in the 
>SFGet/Put dialogs? These darn things seem to be standard interface elements,
>yet there is no obvious Class for them. I have not yet examined the Table
>Class yet...is this how they expect us to impelement this feature?
>
The table class works well for doing a scrolling list.
There is documentation within the source code along with a doc on disk

>Thanx!
>
>--
>Art Urban 					       urban@stout.atd.ucar.edu
>===============================================================================
> "Baby trapped in film, eats own hand."					- Joel
>===============================================================================
From: igormt@cco.caltech.edu (Igor Mikolic-Torreira)
Newsgroups: comp.sys.mac.programmer
Subject: Avoiding authentication dialog when sending AEs ?
Date: 19 Dec 1992 17:04:35 GMT
Organization: California Institute of Technology, Pasadena
Distribution: na
NNTP-Posting-Host: alumni.caltech.edu

How can I avoid the authentication dialog when sending an Apple Event to an
app running on a remote Mac?  The remote Mac has <Guest> authorized to do
program linking, but I still get the dialog asking whether I want to 
link as a particular user or guest.  If I click on Guest, everything works
great, so it's not a problem with Guest being set up incorrectly.

I want to be able to send AE events without ANY user involvement.  Is 
there any way to force AESend to go in as Guest or to supply it a valid
username and password?

THanks in advance,

Igor

-- 
                                       Igor Mikolic-Torreira
Reply to:  igormt@alumni.caltech.edu
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Testing System Extensions - REBOOTING
Date: 15 Dec 92 12:15:33 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <Bz9qxE.H3D@oceania.com> steve@oceania.com writes:

>Ted Lowery <tbl@rock.concert.net> writes

>> ... rebooting ...
>> Seems to me this is quite hard on the machine

>As long as you soft-boot (I use my programmer's switch almost as much as  
>the return key - OK, so I'm exaggerating a little), I don't think it's too  
>hard on your machine.  Mine has shown no ill effects of repeated reboots.  

Well, the file system may be somewhat less happy. You should
really check two things before attempting either Exit-to-shell
or reboot:

	- That the lo-mem global FSBusy is 0
	- That the interrupt level is 0

You also should reboot using MacsBugs "rs" command which flushes
and unmounts volumes before rebooting. This preserves the file
system...

Disk First Aid and Norton Utilities for the Mac should be run
regularly to check that your FS didn't get corrupted by the crashes.
UNIX systems regularly run fsck before mounting SNY file system.

>> not to mention all the time wasted waiting for the machine to boot.

Well, pop out those extra 40 MB of memory, and turn off INITs using
Extensions manager, and reboots won't take more than 10 seconds.
Putting a minimal system on RAM disk when developing is another sure
tip!

>Sorry, I didn't have info specific to testing inits...

Well, what I have done on occasion is test the INIT code from
within an application shell; patching traps within an application
only affects that application so you have to make sure the application
shell actually has the beaviour you want to change...

Then testing a new version is only a matter of quitting the application,
rebuilding it and running it again. You can even use a source debugger
on your INIT code!

Cheers,

							/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   The word "politics" is derived from the word "poly", meaning
   "many", and the word "ticks", meaning "blood sucking parasites".
                     -- Larry Hardiman
Newsgroups: comp.sys.mac.programmer
From: simsh@crockett1c.its.rpi.edu (Big Guy)
Subject: SPBSetDeviceInfo doesn't like me! -- help!
Date: Sun, 13 Dec 1992 03:45:57 GMT

Hi, I am trying to write a small app to turn on and off the sound play
through on my IIsi. I have a problem with this line:

   if (SPBSetDeviceInfo(myRefNum,siPlayThruOnOff,(Ptr)&volume))
   {
       SysBeep(1);
       ExitToShell();
   }

Problem is, everything is set up right, volume has a value -- 3, and the open
device command works. However, when it hits this line, it doesn't give an error
and it seems to work fine, except that the sound play through is not turned
on! I debugged it in THINK C, and everything seemingly worked fine, except that
sound didn't turn on. I have used this code in another app where it worked
fine, but that was a much bigger app, so my question is: which manager perhaps
do I need to initialize? That seems to be the only reason I can think of why
it won't work, but I can't figure out what needs to be initialized to make it
work, nor can I find anything in IM 6 about it. Please e-mail me directly, I
won't be able to read this group too readily for a while. Thanks for all help!

-- 
Hillel Sims      Rensselaer Polytechnic Institute      e-mail: simsh@rpi.edu
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: 3D Graphics
Date: 15 Dec 92 12:06:10 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <1992Dec14.215648.23018@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:

>(Jon, are you sure Bresenham's got a patent?  Two recent DDJs explained
>and gave code for run-slice Bresenham, which seems better than
>"standard" Bresenham in every respect, and which the Toolbox, therefore,
>probably uses.  No mention of patents.)

I could have sworn the reason for Foley & van Dam to not use
Bresenham's but another equivalent algorithm was that B was
patented, but looking it up I could not find it. Oh, well.

Or maybe F & vD & F & H got a patent on THEIR implementatino
and want people to use it? :-)

Anyway, I dislike patents on algorithms. Discussion offline,
please.


-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   The word "politics" is derived from the word "poly", meaning
   "many", and the word "ticks", meaning "blood sucking parasites".
                     -- Larry Hardiman
From: mssmith@afterlife.ncsc.mil (M. Scott Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Think Pascal->C conversion -- advice?
Date: 18 Dec 92 02:11:25 GMT
Organization: The Great Beyond


Hi..

   I'm in the process of converting a large, complex program written with
Think Pascal to Think C.  I'm pretty fluent in both Pascal and C, and
programming the Mac, but I was curious if anyone else has done this and
what types of problems they ran into, or what types of things I should be
careful about.

   I am not the primary author of this code, so I'm not very familiar with
it, which puts me at a disadvantage.  It's also quite large.

   Some things I see that might be a problem are translating things such as
packed arrays of boolean (in Pascal, which I believe are 1-bit in size) yo
something equivalent in C.  (I can't use integers to represent booleans,
because 2 (or 4) bytes is much too large for something that only takes a bit.
Think C has a Boolean data type -- but this isn't part of ANSI C, is it?
This code needs to be ANSI-C compliant.)  That's probably not a major hurdle,
but it's little things like that which pop up and make me more cautious.

   Well, if anyone has any suggestions or helpful hints, I'd be grateful if
you pass them my way.

Thanks!

M. Scott Smith
  (mssmith@afterlife.ncsc.mil)
Newsgroups: comp.sys.mac.programmer,comp.lang.lisp
From: ogd@selway.umt.edu (ozymandias G desiderata)
Subject: Info about Pearl Common Lisp for the Mac Desired...
Summary: Has this indeed been released to the public domain?
Keywords: RUMOR CONTROL
Organization: University of Montana
Date: Sat, 12 Dec 1992 10:14:36 GMT

	As I was browsing through this evening's Info-Mac Digest, an
item therein caught my eye. It stated that Apple bought out the
company who sold Pearl Common Lisp, and that Apple had released same
into the public domain. Anybody want to verify/debunk this claim?
	If (by some minor miracle) this is true, how might Internet
friendly semi-programmers like myself get ahold of this beast? If this
is some horrible hoax to get my hopes of finding a (very) cheap Mac
implementation of Common Lisp up, how much does the real thing cost?
	Questions, questions. As always, replies (to c.s.m.p., c.l.l.
or me, I dunna care) will be appreciated and rewarded in a mysterious,
karmic fashion. I will summarize if my mailbox is deluged with
replies. Thank you all very much in advance. Good night.

yours,
ozymandias G desiderata
 


-- 
		"I've seen a whole lot of angels,
		 I've seen a whole lot of motorcycle wheels" - Lungfish
(ogd@selway.umt.edu) - PGP 2.0 public key available upon request.
Newsgroups: comp.sys.mac.programmer
From: mkent@netcom.com (Marty Kent)
Subject: Simple (I hope) Dialog Window Question
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Sat, 19 Dec 1992 19:12:28 GMT

I have a sequence of user interactions I want to do as dialogs.
The unusual thing, though, is that I want to just keep a single 
window open, and replace the dialog items at the end of each 
interaction, rather than close the dialog window itself and open
a new window for the next dialog.  This way you don't see windows
repeatedly disappearing and reappearing.

I've tried opening the first dialog in the standard way, with
GetNewDialog, then passing the dialog's WindowPtr as the 
dStorage arg to a subsequent call of GetNewDialog, hoping I could
then just DrawDialog and get the effect I want. But my program
just hung on the second call to GetNewDialog.

Can anyone suggest a way to do a sequence of dialogs all in a single
open window? (Or give me some compelling reason not to do this in the 
first place?)

Thanks much...


-- 
Marty Kent 				mkent@netcom.com
Sixth Sense R & D			510 848 6221
2500 Durant St. #405
Berkeley Ca 94704

Kent's Heuristic: Look for it first where you'd most like to find it.
"You're soaking in it..." - Madge
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: List Manager calling LDEF when it shouldn't be
Organization: University of Delaware
Date: Sat, 12 Dec 1992 01:50:50 GMT

Here's what I'm doing:  I've written an LDEF for ICONs and gotten it work
as it's supposed to.  I'm making a list to select icons out of a resource
file, as in HyperCard.  I've managed to get things running fairly well.

However, there's a problem.  Most of the time, the number of available
resources isn't evenly divisible by the number of columns; in other words,
my last row will have some empty cells at the end of it.  I want these
cells to just be empty and unselectable.  However, the List Manager calls
my LDEF to draw these cells anyway, even though it knows full well I
haven't put anything in them.  In my case, my LDEF ends up drawing ICON 0
in those cells, which is the 'stop' icon from the system file.

My understanding of how the List Manager stores resource data is that it's
all kept in one handle, and that the ListHandle ends with a table of
offsets to the data in the handle.  If I haven't put anything into these
cells, then it seems that these cells wouldn't have offsets at all, and
that the List manager would never call the LDEF to draw them.

Of course, I could fix this up by telling my LDEF not to draw or hilight
anything if the cell contains 0 (I don't want to display the system file
icons anyway), but I really want to know why the List Manager is drawing
these cells when I haven't stored any data in them.  Does anybody know the
reason/fix?

Thank you.

  \/ __ __    _\_     Kurisuto (Sean Crist)       | "The Pillsbury Doughboy  
 ---  |  |    \ /     Department of Linguistics   | is SATAN!"
  _| ,| ,|   -----    University of Delaware      | "Will you shut up,
  _| ,| ,|    [_]     kurisuto@chopin.udel.edu    | already?"
   |  |  |    [_]     Discl: I speak for myself.  | 
Newsgroups: comp.sys.mac.programmer
From: steve@oceania.com
Subject: Re: Testing System Extensions - REBOOTING
Reply-To: steve@oceania.com
Organization: Oceania Health Care Systems
Date: Mon, 14 Dec 1992 21:41:38 GMT

Ted Lowery <tbl@rock.concert.net> writes

> In one evenings session, I probably rebooted my machine
> 100 times while testing and modifying an init.

I do that almost every time I sit down and get my hands dirty hacking on  
any Mac program I'm writing.

> Seems to me this is quite hard on the machine

As long as you soft-boot (I use my programmer's switch almost as much as  
the return key - OK, so I'm exaggerating a little), I don't think it's too  
hard on your machine.  Mine has shown no ill effects of repeated reboots.  

> not to mention all the time wasted waiting for the machine to boot.

I like to use TMON's reboot command (command-shift-control-B) because it  
unmounts the drives before rebooting which helps the machine come up a  
little faster.  A blaring stereo also does wonders for time perceptions  
:-).

Sorry, I didn't have info specific to testing inits...

=Steve
-- 
          Steve Dakin           | 
  Oceania Health Care Systems   |  That one deserves a ... WOW!
 Palo Alto, CA  (415) 322-0127  |
 steve@oceania.com (NeXT mail)  |  
From: bayes@hplvec.LVLD.HP.COM (Scott Bayes)
Date: Wed, 16 Dec 1992 22:21:10 GMT
Subject: Re: 3D Graphics
Organization: Hewlett-Packard Co., Loveland, CO
Newsgroups: comp.sys.mac.programmer

> Your illustration makes it appear that _LineTo doesn't divide up the
> remainder pixels properly;  that is, if n pixels are left over after
> drawing the "main" portion of the line, QD puts one on one end and n-1
> on the other end.  Most people would put n/2 on one end and (n+1)/2 on
> the other (integer arithmetic, you see).
> 
> This doesn't have much to do with Bresenham, does it?  He just gives an
> algorithm for drawing, and whether or not you divvy up the remainder
> pixels properly is up to you, right?
> 

You interpreted my drawing correctly, though I may not have drawn it
exactly right.  I think Jon Witte's (sorry for spelling, Jon; USASCII
kbd) diagram is better.

As someone noted, Bresenham sets the "error accumulator"--e in his
algorithm--up initially so that the two end runs of the line differ in
length by 0 or 1 pixels.  Apple probably uses a very similar algorithm
(integer DDA) but initializes the variables differently.

I notice that in 7.1, the lines don't seem to hook any more.  I don't
have a convenient 6.x to try that.  Was I hallucinating the hooks?  Mass
hallucination???

ScottB
Newsgroups: comp.sys.mac.programmer,comp.lang.lisp
From: bskendig@netcom.com (Brian Kendig)
Subject: Re: Info about Pearl Common Lisp for the Mac Desired...
Organization: Starfleet Headquarters: San Francisco
Date: Mon, 14 Dec 1992 17:01:46 GMT

hankin@sauron.osf.org (Scott Hankin) writes:
>bskendig@netcom.com (Brian Kendig) writes:
>
>>In addition, I'm porting xlisp to the Macintosh.  It's Common
>>Lisp-compliant for the most part, and it's a fairly standard
>>implementation, and best of all, it's free.  ;)
>
>    I was surprised to hear about this.  I've had xlisp on the mac for years
>    now - it came with all the sources I needed to build it myself.  If
>    you're interested, I could provide you with whatever you're missing.

What version do you have?  I'm aware of two Macintosh ports of XLisp,
currently: XLisp 2.0, which has a horribly kludgy interface, and
XLisp-Stat, which is a customized XLisp for statistical uses,

I'm working on porting XLisp 2.1e, and giving it a more Mac-like
interface.

-- 
_/_/_/  Brian Kendig                             Je ne suis fait comme aucun
/_/_/  bskendig@netcom.com                de ceux que j'ai vus; j'ose croire
_/_/                            n'etre fait comme aucun de ceux qui existent.
  /  Nolite te bastardes     Si je ne vaux pas mieux, au moins je suis autre.
 /    carborundorum.                                             -- Rousseau