HDTenEightyP/NetNews huggingface dataset:
From: holiday@bnr.ca (Matthew Holiday)
Subject: Re: Stallman and friends
Date: Thu, 7 Jan 1993 15:06:02 GMT
Reply-To: holiday@bnr.ca
Organization: Bell-Northern Research, Richardson, TX

In article <MARKF.93Jan6095854@montreux.ai.mit.edu>, markf@zurich.ai.mit.edu (Mark Friedman)
writes:
|> 
|> The copyleft (i.e. the "strings") are only there to counter existing
|> restrictive intellectual property laws. If those laws didn't exist
|> neither would the copyleft (and the need for it).
|> 

The ``restrictive intellectual property laws'' are what make intellectual property
property, i.e., something that can be bought, sold, and owned.  If those laws didn't
exist then software, books, plays, movies, TV shows, magazines, etc. wouldn't be
property, which is perhaps what Stallman wants (and which would amount to pure
socialism).  Somewhere in the back of the GNU emacs manual (the yellow book) he's
got a statement that it wouldn't be a bad thing for programmers to be paid less.
If you believe that, please send me half your paycheck...! :-)

-- 
Matt Holiday                                      #include <std/disclaimer>
holiday@bnr.ca
BNR Richardson, TX
From: wingo@apple.com (Tony Wingo)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Why the Piracy? Here's why...
Date: 11 Jan 93 00:53:58 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <freek.726615644@groucho.phil.ruu.nl>, freek@phil.ruu.nl (Freek
Wiedijk) wrote:
> 
> I would prefer a world in which there were no intellectual
> property laws.  I don't think it is unethical to copy
> something.  At least, not when the copying doesn't disturb
> the use of the original item.
> 
> My reasons for this are the following:
>  [stuff deleted]
> 4. The highest grade information that I know is `science'.
>    Try to imagine a world in which you had to _pay_ for each
>    scientific article that you need to look at for your
>    research or if you wanted to build on the results from
>    such an article.  In what state would science be in such a
>    world.  In other words: I prefer the way information is
>    handled in science to the way it's handled in the software
>    industry.

Of course, scientists have to eat and make house payments as well.  Most
funding of pure science comes directly ore indirectly from the government. 
Are you suggesting that the govt should subsidize all software development
as well?

Just asking...

-tony

>>usual disclaimer<<
From: ficara@remus.rutgers.edu (ken ficara)
Newsgroups: comp.sys.mac.programmer
Subject: Think Ref 2.0
Keywords: Think Reference BBedit
Date: 12 Jan 93 14:42:41 GMT
Organization: Rutgers Univ., New Brunswick, N.J.

Is anyone else surprised that Rich Siegel's BBEdit will detect the
presence of Think Reference 2.0 on your hard disk and do all sorts of
neat things ... but that Think C's own text editor won't? Don't you
folks talk to each other?

I love Rich's program, and I wish Symantec would either improve Think
C's editor or just give us a way to dump it and use another program
instead. (Using an external editor isn't as convenient, it takes up
more RAM, and it screws up any markers you've set in Think C.) Given
what Rich has done with BBEdit, it would be >real< nice to
double-click a source file in Think C's project window and have BBEdit
open the file.


Ken Ficara                                        ficara@remus.rutgers.edu
GEnie: K.FICARA / Compuserve: 71311,1461 / AOL: KENFICARA / Prodigy: (Ha!)

-- 

Ken Ficara                                        ficara@remus.rutgers.edu
GEnie: K.FICARA / Compuserve: 71311,1461 / AOL: KENFICARA / Prodigy: (Ha!)
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: moof?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Thu, 7 Jan 1993 17:33:55 GMT

In <scottj-070193092004@iamac-1.dml.georgetown.edu> scottj@magic.dml.georgetown.edu (John L. Scott) writes:

>> >>>>moof?
>> >>>foom!
>> >>omfo!
>> >oomf?
>> ofom.
>mofo!

He's dead, guys, dead. He died with a re-structuring of DTS
last year. Sorry to break the news.

Cheers,

						/ h+
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  "You NEVER hide the menu bar. You might go about and change the color
  of it to the color of the BACKGROUND, but you never HIDE the menu bar."
                      -- Tog
Xref: sparky comp.sys.mac.programmer:21291 comp.os.ms-windows.programmer.tools:1997
From: kim@Software.Mitel.COM (Kim Letkeman)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools
Subject: Re: Stallman and friends
Date: 12 Jan 93 14:03:07 GMT
Organization: MITEL Public Switching, Kanata, Ontario, Canada
In-reply-to: mjensen@BBN.COM's message of 7 Jan 93 18:49:15 GMT

In article <lkoupbINNqfp@news.bbn.com> mjensen@BBN.COM (Martin Jensen) writes:

| The FSF does not generally object to software copyrights and does
| not intend to prevent people and corporations from making money from
| software.  The are, however, concerned with attempts by software
| companies to patent incredibly vague concepts (such as the "look and
| feel" of a software interface) as well as some very basic software
| algorithms (what would you do if someone copyrighted "linked lists"
| or "queues"?  chances are you've been using them ...)

The "look and feel" suits by Apple are for copyright infringement and
are related to patents only in that both are a form of protection for
intellectual property.

As for patenting "incredibly vague" concepts, don't worry yourself
over it. A few bad patents have slipped through (e.g. XOR cursor), but
by and large algorithms are being patented in the context of an
application, which threatens you and I minimally if at all (in my
opinion of course.)

| The analogy to these in the publishing industry would be if Ian
| Fleming tried to copyright "a story about an agent working for a
| government intelligence agency" or the sentence "He pulled out his
| gun." ... Tom Clancy would still be selling insurance.

This is a crock and not even worth debating. Copyrighting is not
patenting. Copyrighting protects the specific expression of the work
(i.e. the lyrics and/or melody in a song, the specific story as told.)
Patenting protects an idea that should be unique and have utility.
They aren't even close.

| They DO try to encourage software authors to share their ideas and
| to make those ideas available to the general public, so that the
| industry as a whole may benefit from them.  The believe that
| state-of-the-art is advanced anytime ideas are publically shared.
| (Have you gained any insights or used ideas published by other
| authors?  I'm sure you have.)

There is no doubt that the state-of-the-art advances faster as
information is shared. Patents are intended as one way of providing
that service while still offering protection to the inventor. Whether
they do this or not is another matter of debate.

And speaking of debate. This one raged on comp.patents for a long
time. Perhaps this group should switch back to its intended purpose
and those who insist on debating over such mis-information should go
over and get a good beating on comp.patents. I enjoyed mine. :-)
--
Kim Letkeman	kim@Software.Mitel.COM
Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: moof?
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Mon, 11 Jan 1993 07:56:29 GMT

In article <1993Jan10.052126.7014@cronkite.ocis.temple.edu>,
wisdom@picasso.ocis.temple.edu (Robert Wisdom) wrote:
> 
> Keith Rollin (keith@taligent.com) wrote:
> 
> : Obviously an imposter. Clarus is male, despite the fact that cows are
> : female. There is anatomical proof if you bring up the Page Setup/Options
> : dialog and select the Flip Horizontal button. I don't know who was visiting
> : you (possibly his love child?)
> 
> 	Keith, I hate to be really stupid, But my Page Setup dialog box
> doesn't have an "Options" button.  Is that because I have a Personal
> LaserWriter LS? (Hey I got it for $187 in an educational bundle, I am NOT
> complaining!)

Nope, I was the stupid one. Working in fancy-schmancy companies like Apple
and Taligent, I forget that not everyone in the world has LaserWriters.

At least everyone has Quadra 950's, right?

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@byse.nada.kth.se (Jon Wtte)
Subject: Re: AFP, Files, and Byte Range Locking
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Mon, 11 Jan 1993 22:09:34 GMT

In <cshotton-110193134404@oac2.hsc.uth.tmc.edu> cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:

>I know that byte range locking on files is possible on the Mac when using
>AppleShare. Is it possible to do it on a stand-alone Mac so that 2
>applications on the one Mac can read/write the same data file? Is there a

PBLockRange works on local volumes IF Personal File Share
is active; else it doesn't (I think)

However, you can always open the file with fsRdWrPerm
(fsDenyNone I think) and since the Mac has cooperative
multitasking, you are guaranteed that noone else will
change the file unless you call WaitNextEvent. You win
one, occasionally :-)

Cheers,

						/ h+
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   This signature is kept shorter than 4 lines in the interests of UseNet
   S/N ratio.
From: russotto@eng.umd.edu (Matthew T. Russotto)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Detecting mouseDown in a region?
Date: 5 Jan 93 23:29:33 GMT
Organization: Project GLUE, University of Maryland, College Park

In article <1993Jan5.171920.29754@fsl.noaa.gov> urban@yoda.fsl.noaa.gov (Art Urban) writes:
>
>Okay, here's the situation:
>
>I have many (let's say 1000) predefined regions in a window (CPane). When
>the user clicks in the window, one of the regions will have neccessarilly
>been hit, since they are all adjacent to one another. I need to determine
>which region was the recipient of the mouseDown.
>
>Am I supposed to loop through all my regions, checking PtInRegion() for
>each one until I get a hit? This seems very brute force, and could possibly
>become slow if the user clicks in the 1000th region. Is there any way I can
>reduce the possibilities?

You've mentioned the traditional way, and I believe one of the few ways
will work for arbitrary regions.  The opposite extreme is to make a
table mapping points to regions-- takes some setup and is memory
intensive, but will work.  

If you know a little more about where the regions are, you could
eliminate some of the regions based on, say, which quadrant the mouse
was clicked on.
-- 
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures.  Make them use force.
(not responsible for bodily harm resulting from following above advice)
Newsgroups: comp.sys.mac.programmer
From: tom@dtint.uucp (Thomas R. Kimpton)
Subject: Re: Think C bug? [sprintf]
Organization: Digital Technology, International
Date: Tue, 12 Jan 93 18:52:43 GMT

In article <1993Jan11.220617.26532@kth.se> d88-jwa@byse.nada.kth.se (Jon Wtte) writes:
>In <1993Jan11.194525.18175@afterlife.ncsc.mil> mssmith@afterlife.ncsc.mil (M. Scott Smith) writes:
>
>>It sounds like some people have had no problems with sprintf, while others
>>have.  I wasn't sure if it was commonly used by Mac C programmers; are there
>>Toolbox calls (non-ANSI) that Mac pros tend to use instead?
>
[deleted]
>
>>Is sprintf the best way to capture the functionality of Pascal's concat?
>
>Definately not;
>
>1) sprintf can't handle pascal-style strings (content, not type)
I'm not sure what you mean by this.  You can pass pascal strings
to sprintf and use the format '%#s' (%P in MPW).  If you mean
create pascal strings, here is what I do:
{
char pstring[257];	/* Add one for a max size pascal string, for
			 * the trailing null.
			 */
	pstring[0] = sprintf(&pstring[1],"...",...);
}
>2) if you use C strings, use strcat.
>3) if you use pascal strings, use ConcatPStrings, which I think
>   is in the file TBUtils.h or something similar.
>
>Cheers,
>
>							/ h+
>-- 
> -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
>   This signature is kept shorter than 4 lines in the interests of UseNet
>   S/N ratio.

Tom.

-- 
---
Tom Kimpton                            tom@dtint.dtint.com
Digital Technology Int.                (801)226-2984	
500 W. 1200 South, Orem UT, 84057      FAX (801) 226-8438
Xref: sparky comp.sys.mac.programmer:21236 comp.os.ms-windows.programmer.tools:1987
From: mellon@ncd.com (Ted Lemon)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools
Subject: Re: Stallman and friends
Date: 11 Jan 93 23:31:30 GMT
	<gtall.726514732@ogre> <1993Jan08.225940.1830@eng.umd.edu>
Followup-To: comp.sys.mac.programmer
Organization: Network Computing Devices, Inc.
In-reply-to: russotto@eng.umd.edu's message of 8 Jan 93 22:59:40 GMT


If you need a free compiler-compiler with non-copylefted parser, you
can use byacc.   Bison is intended for use with free software.   You
can get byacc from (for example) gatekeeper.dec.com:pub/plan/byacc.tar.Z.

			       _MelloN_
--
mellon@ncd.com						uunet!lupine!mellon
Member of the League for Programming Freedom.   To find out how software
patents may cost you your right to program, contact lpf@uunet.uu.net
Newsgroups: comp.sys.mac.programmer
From: owen@lloyd.Camex.COM (Owen Hartnett)
Subject: Re: Think Ref 2.0
Organization: Camex Inc., Boston MA
Date: Mon, 11 Jan 1993 10:15:03 EST

In article <PHILS.93Jan9170436@chaos.cs.brandeis.edu> phils@chaos.cs.brandeis.edu (Phil Shapiro) writes:
>>>>>> On 8 Jan 93 21:30:17 GMT, tj@kona.cs.ucla.edu (Tom Johnson) said:
> > (About Think Reference 2.0)
>
> >   Can 3rd parties create their own drop-in databases?  If I have a
> > library that I wish to distribute, would I be able to create my own
> > Think Ref database for part of my documentation?
>
>At this point, no decisions have been made about licensing the
>technology for creating databases to third parties. However, it is
>something that we are interested in and are looking into. If you are
>interested in creating a custom database, you should send a letter to
>the THINK Ref Product Manager at our Bedford office:
>

I *strongly* recommend that you adopt a system for allowing users to
add their own databases.  One of the strengths of the Programmers
Online Companion is this very feature. The advantage is that if you're
using a third party library, say Inside Out, you can add the library
calls to your database, rather than looking them up in a manual each time.

-Owen

(If you think there's not that many third party libraries, think (THINK?)
again.  Think of Quark Xtensions, Photoshop plug ins, 4D Xternals, even
HyperCard.)
From: ww10+@andrew.cmu.edu (William Conrad Wojciechowski)
Newsgroups: comp.sys.mac.programmer
Subject: Source Code for BinHex
Date: 6 Jan 93 11:21:23 GMT
Article-I.D.: andrew.IfGopHa00WALM2SG10
Organization: H&SS Dean's Office, Carnegie Mellon, Pittsburgh, PA

If anybody knows where I could find the source code for binhex, I would
be very thankful if you inform me of its location.

Thank you,

Will
Newsgroups: comp.sys.mac.programmer
From: kaufman@Xenon.Stanford.EDU (Marc T. Kaufman)
Subject: Re: short/long ints (was Re: Sozobon C...)
Reply-To: kaufman@CS.Stanford.EDU
Organization: CS Department, Stanford University, California, USA
Date:  5 Jan 93 16:47:46 GMT

ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:

>In article <1993Jan4.202040.26524@reed.edu>, bowman@reed.edu (BoBolicious) writes:
->
-> I *guess* you could talk about a "Mac int standard", but what's really going
-> on is that Pascal uses 16-bit ints.  Most C compilers these days use 32-bit
-> ints.  Personally, I think ints are stupid to use, because of this uncertainty
-> as to what is meant; far better to specifically use shorts & longs.

>Back when I used to program voluntarily in Fortran, I developed this convention
>that I would explicitly use INTEGER*2 or INTEGER*4 wherever it mattered, and
>just use INTEGER wherever it didn't. This way my code could compile with
>either the /I4 (INTEGER = INTEGER*4) or /NOI4 (INTEGER = INTEGER*2) switch,
>and so long as I used the same switch setting with all my modules, the final
>program would run OK.

On machines with multiple compilers, this can come back to bite you.  I
recently moved part of a Windows DLL to 32-bit mode, and of course used a
32 bit compiler for that part.  Unfortunately the shared structures had
elements of type "integer".

-- 
Marc Kaufman (kaufman@CS.Stanford.EDU)
From: povlphp@uts.uni-c.dk (Povl H. Pedersen)
Newsgroups: comp.sys.mac.programmer
Subject: SCC info wanted
Date: 4 Jan 93 22:02:38 GMT
Organization: UNI-C, Danish Computing Centre for Research and Education

My modem port is dead, and programs can't open the port.
Is there any way to make the SCC do a self test ?
Also, if I read from the ports register on the SCC, how do I decode
the byte ? Which bits means what ?

I have an SE/30. I consider changing the 26LS30 myself if it is that one
that is bad. If it is the SCC I will have to seek professional help.
-- 
Povl H. Pedersen   -   Macintosh specialist. Knows some DOS and UNIX too.
pope@imv.aau.dk    -   povlphp@uts.uni-c.dk
Newsgroups: comp.sys.mac.programmer
From: us267418@mmm.serc.3m.com (Andy Ihlenfeldt)
Subject: Nubus interrupt service routine development
Organization: 3M - St. Paul, MN  55144-1000 US
Distribution: na
Date: Wed, 6 Jan 93 15:59:25 GMT

Howdy - I am involved in developing a device driver to support some custom
nubus hardware and am having a rather difficult time debugging my code.
Before I get into any particulars, does anyone have suggestions on 
     o development strategies (wrt drivers & nubus boards)
     o development tools      ( "     "    "   "     "   )
     o Interrupt handlers for nubus interrupts ( sIntInstall )
     o development texts

In particular, I find my program crashes and the stack appears to be junk.
The PC is set to a known, but completely unreasonable value and I have
no way of finding out how it got there.  I suspect it has to do with the
interrupt code, but I'm not sure.  I don't really know what tools I should
look into to locate the bug.  The Think C debugger is pretty useless and 
I haven't had much success with MacsBug either.

Mostly, what I really want are techniques that you might have used when
developing device drivers using nubus interrupts.  Have you found a useful
tool for such development?

Thanks.

Andy
arihlenfeldt@mmm.com

Newsgroups: comp.sys.mac.programmer
From: jmunkki@vipunen.hut.fi (Juri Munkki)
Subject: Re: How to get color I want when drawing directly to screen
Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
Organization: Helsinki University of Technology
Date: Fri, 8 Jan 1993 22:27:19 GMT

In article <1993Jan8.145036.21943@rtsg.mot.com> wolfmc@rtsg.mot.com (Michael Wolf) writes:
>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.

Assuming that you have some sort of sprites in an offscreen pixel map, make
that offscreen pixel map use the same gDevice as your screen. This way, the
color tables are the same.

Of course, if you have multiple screens and you want to support them, you
have to do this for every screen.

If you are drawing geometrical shapes (polygons and lines), you can convert
colors to pixel values with Color2Index. You only need to do this when the
ctSeed of the color map changes.

When do I get my $60?

-- 
  Juri Munkki					       Windsurf: fast sailing
 jmunkki@hut.fi					      Macintosh: fast software
Newsgroups: comp.sys.mac.programmer,comp.sys.atari.st.tech
From: davidli@simvax.labmed.umn.edu
Subject: Re: Sozobon (or other free C's): would this strategy work?
Reply-To: davidli@simvax.labmed.umn.edu
Organization: Health Computer Sciences, U of MN, Mpls
Distribution: comp
Date: Tue, 5 Jan 1993 07:19:17 GMT

In article <1993Jan5.023237.18823@cs.yale.edu>, bobf@flint.geology.yale.edu (Bob Fischer) writes:
>I hope that GCC will see the light of day on the Mac.  Since the Mac
>is not really a hacker's computer, few people have shown an interest
>in porting it.  But I think a lot of people would benefit from a port,
>given the large numbers of Mac users.

Major problem with GCC and the Macintosh -- the Free Software Foundation
refuses to have anything to do with a port to this series of machines due
to the stance of Apple Computer's legal department with regard to things
like "Look and Feel".

You may very well port GCC, just don't expect your work to be incorporated
or supported in any way by the FSF.

-- David Paschall-zimbel
From: mssmith@afterlife.ncsc.mil (M. Scott Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Direct screen writing; getting to (x,y)
Date: 11 Jan 93 23:54:48 GMT
Organization: The Great Beyond

Howdy..

   In my spare time (ha -- "spare time"?  Yeah, right..) I've been fiddling
around with doing direct-screen writing on the Mac.  (That is, writing
directly to the video memory to get fast(er) graphics than the traditional
(but usually adequate) Quickdraw calls.)

   I'm familiar with the concept of writing LONGS out to the video RAM to
achieve speed, but I want to have a function that simply plots ONE pixel
point.  (Color's not the issue at this point.)  You pass an x- and y-, and
it jumps to the memory location representing that coordinate.

   Here's something I threw together:  (Think C code)

void PlotPoint(long x, long y, long color)
{
  if (SCR_X == 640)
    *(char *)(base_addr + x + ((y << 7) + (y << 9))) = color;
  else if (SCR_X == 512)
    *(char *)(base_addr + x + (y << 9)) = color;
  else if (SCR_X == 1024)
    *(char *)(base_addr + x + (y << 10)) = color;
  else
    *(char *)(base_addr + x + (row_bytes * y)) = color;
}

   Actually, x- and y- should be integers, or can be, or whatever.  base_addr
is the base address of the video memory.  (Corresponds to (0,0) in all cases,
I hope!)  row_bytes is the number of bytes in each row on the monitor.
Color is just some hexadecimal value.

   And SCR_X is the width of the monitor, in pixels.

   The concept behind this code is that to get to (X,Y), I take the base
address, add x to it, and then add (y * row_bytes) to get down to the right
place.

   For speed's sake, I'm doing some tricks with the left shifts.  If the
width of the monitor is a nice multiple of 2 (say 640, 512, or 1024), then
I perform left shifts to take care of the (y * row_bytes) part.  If all
else fails, I multiply the long way.

   Anyway, this code seems to work.  I'd like a few suggestions on better ways
of doing this.  Do I have the right idea, or did I miss the boat completely?

   One thing I plan on trying is to create an array of rowbyte values for
every y- position on the monitor, at the initialization part of the program.

   That is, say the monitor is 480 lines vertical; I'd then make an array
480 long and manually compute row_bytes*y for each y position, plugging the
value into the array.  Then I could simply do something like:

base_addr + x + line[y]

   To get where I want to go.  Intuitively it seems like this would be much
quicker; after all, you're not doing any multiplication, which is the most
expensive part of this routine.  But, on second thought, C is really doing
multiplication anytime you access a subscript of an array, right?  (For
example, if you want line[50], then it does some multiplication to go from
the base address -- line -- up 50*sizeof(line) to get the value, right?)

   Any thoughts on topics I've raised, or direct-screen graphics in general,
would be very appreciated.

Thanks!

M. Scott Smith
  (mssmith@afterlife.ncsc.mil)