HDTenEightyP/NetNews huggingface dataset:
From: tel@adimail.uucp (Terry Monks)
Subject: File creator problem
Organization: Automata Design, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Date: Mon, 11 Jan 1993 14:51:14 GMT

I have a BBS program that reads and writes message files. The files
were originally created with a type of TEXT and a creator of MPS .
I recently changed the file types to ALFA, so that they would be 
opened with Alpha, and they appeared to have been changed correctly,
showed the right icon, and launched Alpha on double-click. I used
FileTyper to change them.

But when the BBS program reads the files, I fined the creator has
changed back to MPS . What happened? The code is in MPW Pascal, and
does no more than
		  open(file, filename);	  
		  readln(file,string);
		  ...
		  close(file);


-- 
Terry Monks        Automata Design Inc    (703) 742-9400

Xref: sparky comp.sys.mac.programmer:21132 comp.os.ms-windows.programmer.tools:1963
From: gumby@tweedledumb.cygnus.com (D V Henkel-Wallace)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools
Subject: bison (was: Stallman and friends)
Date: 10 Jan 93 14:29:32
Organization: /0h/users/gumby/.organization
NNTP-Posting-Host: tweedledumb.cygnus.com
In-reply-to: troy@cbme.unsw.EDU.AU's message of Fri, 8 Jan 1993 20:27:08 GMT

   Date: Fri, 8 Jan 1993 20:27:08 GMT
   From: troy@cbme.unsw.EDU.AU (Troy Rollo)

   From article <gtall.726514732@ogre>, by gtall@ogre.cica.indiana.edu (Gerry Allwein):
   > I just a simple yes or no answer to a simple question: does a parser produced
   > by GNU Bison fall under the FSF copyright?

   No, it doesn't. However if that parser is part of a commercial product or
   used as part of a commercial product it is in violation of the license for
   Bison, which is unique among the GNU tools in that it is the only tool for
   which the output cannot be used for commercial purposes.

Actually, bison works by emitting a skeleton (it comes with two) that
calls your parser.  You can always write your own skeleton (it's only
a page of code) -- and then you can do what you wish with your parser.
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Subject: Re: HOpenResFile and HOpenRF supported by glue in System 6?
Organization: Curtin University of Technology
Date: Mon, 11 Jan 1993 03:27:40 GMT

jimlynch@netcom.com (Jim Lynch) writes:

>In article <C0Ltw3.FrH@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
>>Well, the title basically says it all: are all of the various H... calls
>>supported by glue when my application is running in System 6.x?  IM VI
>>documents these calls (pg. 23-36) but doesn't make it clear when these calls
>>began to be supported. (HOpenRF didn't exist in IM IV, where it was a
>>low-level call.)  I want to support both System 6 and 7, which means I can't
>>use the FS... calls, but I also don't want to use the old calls which don't
>>support a dirID.

>Question: Is this accurate, the FS... file system calls don't work under system
>7? Or, are there other reasons to avoid them in syst. 7?

I think Sean meant the FSp calls.

The FS calls are supported by the glue in both 6 & 7
The H calls are supported by the glue in both 6 & 7.
The FSp calls are supported only under 7 (I think they are traps, but
its not really relevent).

IMO, the best solution is to use FSSpecs, and then call the H routines,
eg:
err := HOpen(fs.vRefNum, fs.parID, fs.name, fsRdPerm, refnum);
(assuming you want System 6 compatibility.  Cal FSpOpen if you don't
want System 6 compatibility).

Have fun,
   Peter.
-- 
_______________________________________________________________________
Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
Newsgroups: comp.sys.mac.programmer
From: Jeff E Mandel <mandel@tmc.tulane.edu>
Subject: Re: ETO#9 MacApp won't build - C - Fatal Error : 407
X-Xxmessage-Id: <A76EFF2821013009@mandel.anes.tulane.edu>
X-Xxdate: Tue, 5 Jan 93 15:02:32 GMT
Organization: Tulane University School of Medicine
X-Useragent: Nuntius v1.1.1d13
Date: Tue, 5 Jan 1993 15:12:00 GMT
Nntp-Posting-Host-[nntpd-26531]: mandel.anes.tulane.edu

>Anders is right, delete any folders inside your "{MALoadFiles}" folder
>and start afresh. In addition, if any of you see cases where the compiler
>barfs in Geometry.h, this is another possible example of where the dump
>files needs to be re-generated.

Well, I figured this out eventually, and I agree with Kent that there
should be an easier way to do this, but at least someone should include
this in the Installation instructions. Since I actually read them before
installing MacApp 3.01, and it resulted my not being able to autobuild
MacApp, it makes me wonder whether the people who write the documentation
actually ever tried to follow them.

Thanks,

Jeff E Mandel MD MS
Associate Professor of Anesthesiology
Tulane University School of Medicine
New Orleans, LA

mandel@vax.anes.tulane.edu
Newsgroups: comp.sys.mac.programmer
From: ajr3@quads.uchicago.edu (Alain Roy)
Subject: Menus from 2 resource files?
Summary: having trouble with menus from multiple resource files.
Keywords: menus resources furry bunnies
Reply-To: ajr3@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Wed, 6 Jan 1993 01:05:19 GMT

a program that i've been working on has a hierarchical menu. The menu
has worked just fine. but today i decided to make the menu dynamic--the
user can add or delete from the menu. of course, i wish to have the changes
last between sessions, so after i got it working, i saved the menu in 
the preferences file. now the menu refuses to show up when i add it
to the menu bar. everthing worked until i changed the location of the menu
to the preferences file. the menu is retrieved from the file ok, with the
items intact, it just doesn't popup when i try to go to the hierarchical
menu.

so is this something i just have to deal with? are menus supposed to
be located only in one resource file? or have other people not encountered
this problem?

thanx for any advice.

-alain
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.comm,comp.sys.mac.hardware
From: UC525655@mizzou1.missouri.edu (Mark Eaton)
Subject: Does TC have the routines described in TN 140?
Organization: University of Missouri
Date: Mon, 11 Jan 93 11:16:42 CST

Tech note 140 describes several high-level file manager routines that would
make my life a lot easier. Does Think C have glue to support them?
 
mark
From: bowman@reed.edu (BoBolicious)
Newsgroups: comp.sys.mac.programmer
Subject: Re: (Q) Need bit manipulation algorithm
Date: 6 Jan 93 04:08:23 GMT
Article-I.D.: reed.1993Jan6.040823.23901
Organization: Reed College, Portland, OR

In article <1993Jan6.022430.19469@leland.Stanford.EDU> felciano@summit.stanford.edu (Ramon M. Felciano) writes:
>I've got an interesting bit-manipulation problem for you. I need to
>know how to match a given bit pattern into a stored array of patterns.
>In particular, I need to come up with a "fuzzy match" if no exact one
>is found.

The best way I can see to do this is to XOR your test pattern with each member
of the table.  Then the number of "on" bits (the Hamming distance?) is the
number of bits by which the two patterns differ.  I don't know the most
efficient way to count the number of "on" bits; there are several ways to
do it, so if you need it to be super-fast, you might want to experiment between
looping through each bit in the pattern, shifting each time and testing the
lowest (or highest, depending on which way you shift) bit.  Or you could 
maintain a table which contained 1,2,4,8,16,... and AND the result of each
XOR with each member of *this* table.

Doing the actual bookkeeping to keep track of which one(s) to return and
by how many bits they differ from the test pattern should be pretty trivial.

cheers,
bobo              In seeking the unattainable,
bowman@reed.edu            simplicity only gets in the way.
"On Monday, numbers floated everywhere, and the world was full of 
approximations."  -- Spencer Heinz, _The Oregonian_, 1/5/93
From: jeg@Apple.COM (Julian Gomez)
Newsgroups: comp.sys.mac.programmer
Subject: Re: moof?
Date: 6 Jan 93 08:20:23 GMT
Organization: Apple Computer Inc, Cupertino, CA

In <1992Dec19.123610.367903@magicbb.uucp> Matt_Harrop@magicbb.uucp writes:
> moof?

Moof!
Newsgroups: comp.sys.mac.programmer
From: tom@dtint.uucp (Thomas R. Kimpton)
Subject: PowerPC and learning curve investment
Keywords: PowerPC
Organization: Digital Technology, International
Date: Tue, 12 Jan 93 00:36:05 GMT


It seems to me that I've read the the OS for the PowerPC will be
backwards compatible, to some extent.  That is, "well-behaved"
programs for the Mac will be able to run under the PowerPC, either
in an emulator mode or through a code-converter that converts
68K code to native PowerPC code.

Questions:
	1.  Is the programming interface to the PowerPC OS going
	to remain:
		A. Exactly the same (IM I-VI, NIM 1-15)
		B. Substantialy the same (NIM 1-5,7,11-13, IPPC 1-3)
			IPPC -- Inside PowerPC :-)
		C. Somewhat the same (NIM 11-15, IPPC 1-12)
		D. Now for something completely different (IPPC 1-999)
	2. Are we going to see:
		A. Demand paged virtual memory
		B. Protected memory
		C. Kernel threading
		D. Pre-emptive multi-tasking
		E. Shared memory segments
		F. Semaphores
	3. Is everything going to be an after-market "bolt-on"/


Basically 1 asks, is my time investment in learning the Mac
programming interface, MPW scripting, etc, going to be thrown
out (and me sent out to pasture :-) when we go to the PowerPC?

Anyone in a position to know?

Tom.

-- 
---
Tom Kimpton                            tom@dtint.dtint.com
Digital Technology Int.                (801)226-2984	
500 W. 1200 South, Orem UT, 84057      FAX (801) 226-8438
From: juggler@netcom.com (Chris Calande)
Newsgroups: comp.sys.mac.programmer
Subject: Looking for Encryption/Decryption code
Date: 4 Jan 93 18:58:13 GMT
Distribution: usa
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Does anybody know where there is some public domain encryption/decryption code?

Any help such as anonymous ftp, book or journal references, etc. would be
appreciated.

Thanks,

Scott
juggler@netcom.netcom.com
From: mwalker@novell.com (Mel Walker)
Newsgroups: comp.sys.mac.programmer
Subject: Re: moof?
Followup-To: comp.sys.mac.programmer
Date: 4 Jan 1993 17:44:50 GMT
Organization: MIT Artificial Intelligence Lab
Distribution: world
NNTP-Posting-Host: chezmoto.ai.mit.edu

In article <1993Jan1.161101.25858@netcom.com>, jimlynch@netcom.com (Jim
Lynch) wrote:
> In article <1992Dec24.014906.26542@bilby.cs.uwa.edu.au> Quinn <quinn@cs.uwa.edu.au> writes:
> >>moof?
> >foom!

> omfo!
oomf?

-----------------------------------------
Mel Walker
mwalker@novell.com
Newsgroups: comp.sys.mac.programmer
From: wolfmc@rtsg.mot.com (Michael Wolf)
Subject: How to get color I want when drawing directly to screen
Organization: Motorola Inc., Cellular Infrastructure Group
Date: Fri, 8 Jan 1993 14:50:36 GMT

I am attempting to develop an arcade type game.  So I take over the whole
screen.  I have my images in an offscreen port.

When I draw directly from the offscreen port to the devices screen
(ie:  directly copying data from oofscreen port to devices pixmap) the colors
are not what I had wanted.  A copybits from the offscreen port to my front
most window gives me my image with correct colors.

This may sound confusing;  what do I mean by my front most window....well, I
have my own window opened up and I make it take up the entire screen, then I
draw directly to the devices video memory.  This way I can still use QD
calls on the window for actions which are not time critical.

So...the $60 questions is:  What isthe best/fastest way to get the colors I
had intended with the image when I am doing direct writing to device video
memory.

Help/Suggestions are greatly appreciated.  Thanks.


MJW

-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-
| Michael J. Wolf          | McIntosh Jr:  The power to crush the other kids|
| Software Engineer        |                                                |
| wolfmc@green.rtsg.mot.com|      Disclaimer?  Hell, I don't even know her! |
-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-

Newsgroups: comp.sys.mac.programmer
From: jimlynch@netcom.com (Jim Lynch)
Subject: Re: GNU and MPW Shell?
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Sun, 10 Jan 1993 01:51:46 GMT

MPW is very expensive. Until someone like TopSoft or myself (a year or more
away) comes up with a stand-alone, the use of GNU on the mac will also be very
expensive.

With apologies and a commitment to tone down my flaming,

-Jim
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.os.ms-windows.programmer.misc
From: obi@finnbogi.ocs.com (Obi Thomas)
Subject: Re: Stallman and friends
Reply-To: obi@finnbogi.ocs.com
Organization: Online Computer Systems, Inc.
Date: Tue, 12 Jan 1993 19:44:01 GMT

In article <1993Jan12.074807.29468@netcom.com>, tenney@netcom.com
(Glenn S. Tenney) writes:
> Yes, you can legally use these compilers on all of your machines, and
> it is a very nice compiler.  BUT --> if you ever sell your programs,
> and they use the libraries (oh, let's say you do a printf somewhere),
> then you must make ALL of your source code available for free.

I believe this is true, but...

The SunOS gcc which I use is happy linking with the Sun-provided C
library. In fact, linking with the Sun C library is preferable, because
it's a shareable library.

There is a GNU runtime library libgcc.a which provides support for varargs
and some other stuff, but I don't *think* that's restricted (correct me if
I'm wrong, please).

It *is* a very nice compiler. I find that the code it generates
outperforms that from the Sun bundled C compiler for CPU-intensive tasks
by a good margin. And in the new Solaris environment with its extra-cost C
compiler, gcc may be the only C compiler available for some users.

> Now, if the FSF changed their position on this, then I'd say
> they're open to re-thinking certain boycotts...  Why don't they also
> boycott Hayes, or IBM?  IBM does some serious work protecting their
> intellectual property and they are very big on object-code-only too.

My understanding on this is that FSF is not boycotting Apple because they
don't provide source code. They support Sun, which doesn't provide source
either. I thought they were boycotting Apple in support for the LPF's
position that attempts to copyright "look-and-feel" are wrong (i.e.,
because of Apple's lawsuit against Microsoft).
Newsgroups: comp.sys.mac.programmer,comp.sys.atari.st.tech
From: jimlynch@netcom.com (Jim Lynch)
Subject: Re: Porting GCC to the Mac (was: Re: Sozobon (or other free C's): would this strategy work?)
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Distribution: comp
Date: Sun, 10 Jan 1993 05:54:02 GMT

The work is entitled, "Using and Porting GNU CC" by Richard M. Stallman.

It's likely to be in your friendly neighborhood university engineering library.
I found it in Berkeley's Eng. library, together with a great deal for copies
thereof... I got mine immediately.
Newsgroups: comp.sys.mac.programmer
From: phoenix@uhuru.uchicago.edu (Lord Phoenix)
Subject: Help with TeachEdit
Organization: University of Chicago
Distribution: usa
Date: Tue, 12 Jan 1993 18:27:08 GMT

Is it possible to increase the number of characters that TextEdit can have?
I write several hundred (600+) lines of about 44 characters to a TextEdit
Record and then I start to get garbage in my window.
has this ever happened to anyone?
Have I passed the max number of characters?  If so how do I fix this?
 
phoenix@uhuru.uchicago.edu

Xref: sparky comp.sys.mac.programmer:20741 comp.os.ms-windows.programmer.tools:1876
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Re: Why the Piracy? Here's why...
Organization: University of Delaware
Date: Wed, 6 Jan 1993 00:20:44 GMT

In article <C0E0Kr.34p@world.std.com> siegel@world.std.com (Rich Siegel) writes:
>In article <C0D9q1.H6r@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:

>>If you don't make this distinction, you would have to claim that making a
>>copy of an application which your friend bought is morally identical to
>>walking into a store and stealing a shrink-wrapped software package off the
>>shelf.  The former act doesn't actually *cost* the developer, distributor,
>>and retailer anything; with the latter, there are all kinds of packaging,
>>printing, and retail costs which the companies actually lose.  (A similar
>>distinction could be made between sneaking into a movie theater vs.
>>stealing popcorn: both are wrong, but they are different kinds of acts.)

>As a matter of fact, piracy is very much like stealing a box. The costs
>amount to almost the same thing, but in different areas - when you steal
>the box, you've denied the retailer the opportunity to recover his
>investment in purchasing the package from the distributor (or direct
>from the company); when you copy the disk, you deny the company the
>opportunity to recover its costs in R&D and production, which it would
>have recovered by selling the finished goods to a distributor or retailer.

Well said.  But there is still a distinction.  With piracy, as well as
with stealing a box, the company has R&D costs.  But it is only with the
box that there is an actual *per unit* cost of production.  Think of it this
way: if you steal ten identical boxes for yourself but only use one, you have
stolen a value of ten times the production cost of a single unit, for the
packaging alone if nothing else.  Copying software also hurts the
developer, but not in the same way: a company's total R&D costs
for a single piece of software are the same, no matter whether you make
yourself one copy or ten.

People who are do piracy are aware of this distinction.  Those of
us who want to discourage piracy would thus be wise not to draw an
erroneous parallel between shoplifting and piracy.  I think it's best to
stay focused on the *real* issue, which is that developers have a right to
be paid when you use the intellectual property which they have created. 
Piracy and shoplifting are both wrong, but for different reasons. 
Claiming that the two are the same fools nobody and merely gives pirates
an excuse by which to justify themselves.

--Kurisuto

Newsgroups: comp.sys.mac.programmer
From: mark@pokey.jsc.nasa.gov (Mark Manning)
Subject: Internal Variable list
Organization: NASA
Date: Mon, 11 Jan 1993 17:10:49 GMT

Does anyone have or know where to get a complete list of all of the
internal variables which are defined within the Mac?  I use MPW
Pascal, so if they are in one of the libraries (I'm already looking
for them there) let me know and I'll keep looking there.  Thanks. :)


PS:E-mail me if you would.  Thanks again. :)

Newsgroups: comp.sys.mac.programmer
From: aleskine@cs.hut.fi (Arto Leskinen)
Subject: My Te package
Organization: Helsinki University of Technology, Finland
Distribution: comp.sys.mac.programmer
Date: Wed, 6 Jan 1993 18:23:41 GMT

I am trying to do text editing package somehow similar to TE. Now I only have
handle to my own struct conserning text, view, dest rects, grafport etc.

Now when I do automatic scrolling after caret is at the bottom of page, how
can I get scrollbars updated. I do not know pointer to window or control list.

Any ideas are of great value.

Arto Leskinen
aleskine@cs.hut.fi
Newsgroups: comp.sys.mac.programmer
From: kent@lloyd.Camex.COM (Kent Borg)
Subject: Re: Proper way to do Self-Modifying code?
Organization: Camex Inc., Boston MA
Date: Fri, 08 Jan 1993 12:50:14 EST

In article <NEERI.93Jan7232329@iis.ethz.ch> neeri@iis.ethz.ch (Matthias Neeracher) writes:
>In article <1993Jan05.163138.20910@lloyd.Camex.COM>, kent@lloyd.Camex.COM (Kent Borg) writes:
>> Yes, trivial, so instead consider my post as follows: How should one
>> find one's A5 world from within a sleep queue procedure?
>
>I have never written a sleep queue proc, but wouldn't the following work ?
>
>TYPE TheBigSleep =
>   RECORD
>      sleepy :        SleepQRec;
>      wonderfulWorld: A5WorldPtr; /* Whatever you want */
>   END;
>...
>valium : TheBigSleep;
>...
>SleepQInstall(@valium);
>
>According to TFM, your sleep routine will be called with a pointer to
>valium in A0 that it can cast to the appropriate type. Am I missing anything ?

No, you are not missing anything, I was the one missing.  Sure looks
like that will work.

Um, though a healthy dose of "RTFM" is appropiate here, I think there
is also a little of another effect: "It is always in the *first* place
you look, you just weren't looking carefully enough when you looked
there because you didn't yet know how lost it was."

I spotted the A0 note, realized that it was not a pointer to my A5,
nor was it a refcon, so I looked further.  By the time I realized that
there was no A5 or refcon sitting waiting for me I had forgotten that
I might use A0 to *find* one.  Stupid I am sometimes.

Thanks for the help.

--
Kent Borg            kent@camex.com or kentborg@aol.com (when it is *working*)
                                            H:(617) 776-6899  W:(617) 426-3577
As always, things look better when some costs are left out.
						      -Economist 3-28-92 p. 94
From: ollef@sics.se (Olle Furberg)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think Ref 2.0
Date: 10 Jan 93 10:52:11 GMT
Organization: Satellite Image in Kiruna Corporation

In <PHILS.93Jan9225124@chaos.cs.brandeis.edu> phils@chaos.cs.brandeis.edu (Phil Shapiro) writes:

>Using TE (or some
>TE replacement) would add memory overhead, slower screen drawing,
>slower page changes, etc.

>It was decided that copying all source code text was an adequate
>solution, given our constraints of memory and speed.

I think the speed is more important than any sort of extra features; don't
put any special features into TR 2.0 if it slows things down. I can live
with the somewhat clumsy copying of the source code if this is the only
way to do it without making the drawing taking more time.


  /Olle
From: bowman@reed.edu (BoBolicious)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think-C-Printer
Date: 12 Jan 93 22:56:27 GMT
Article-I.D.: reed.1993Jan12.225627.4806
Organization: Reed College, Portland, OR

In article <12JAN199315513715@zeus.tamu.edu> flc3527@zeus.tamu.edu (CAMPBELL, FRED LELAND) writes:
>In article <babb-120193123621@larc.sdsu.edu>, babb@sciences.sdsu.edu (J. Babb) writes...
>>Hi Y'all (gearing up for the next 4 years :-)  ),
>>Using Fetch (Automatic, Text, and Binary modes) I downloaded
>>think-c-printer-11.hqx from sumex.  Then using BinHex 5.0 (with & without
>>Text Filter) and the BinHex embedded in MacMH, I unbinhexed it, got a
>>think-c-printer-11.sit GENERIC icon document (No C-Clamp icon !!)
>>And Stuffit gags on it. Well, actually it doesn't even see it.

>You probably have a StuffIt Deluxe archive. You'll find the file type is 'SIT!'
>and the creator is 'SITD'. You need to download StuffIt Expander, a free
>utility from Aladdin. StuffIt Expander debinhexes, uncompresses all flavors of
>StuffIt archives (Classic, Lite, Deluxe), and uncompresses Compact Pro archives.
>You can find StuffIt Expander in the /util directory (I think) at sumex.

Throw BinHex 5 in the bit-bucket.  Nobody uses it, it's a dog.  Everybody use
BinHex 4, which StuffIt Expander  can deal with.

Also, you can set Fetch to automatically debinhex & unstuff Stuffit Classic
archives, as well as pass anything it can't handle over to StuffIt Expander
using Apple Events.

cheers,
bobo              In seeking the unattainable,
bowman@reed.edu            simplicity only gets in the way.
"On Monday, numbers floated everywhere, and the world was full of 
approximations."  -- Spencer Heinz, _The Oregonian_, 1/5/93z
From: zeng@apple.com (T. Zeng)
Newsgroups: comp.sys.mac.programmer
Subject: Where to get DisInfectant source
Date: 5 Jan 93 00:14:15 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer

Is it true that DisInfectant source is available on the internet ?
If it is true, could somebody tell me where I can get the source code ?


---Tie Zeng