HDTenEightyP/NetNews huggingface dataset:
From: d88-jwa@dront.nada.kth.se (Jon W{tte)
Subject: Re: how to put indelible serial# in resource fork of app?
Followup-To: comp.sys.mac.programmer
Originator: d88-jwa@dront.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
	<1992Jul20.232738.21376@hobbes.kzoo.edu>
	<peter-230792103333@134.7.50.3>
Date: Thu, 23 Jul 1992 09:08:13 GMT

.50.3> peter@cujo.curtin.edu.au (Peter N Lewis) writes:

   ObProgramming: One way to make life difficult for crackers is to use the
   serial number to encryp a code resource - store the user's name, and the
   users serial number in the data fork, display it in the startup dialog, and
   use it to decrypt vital code resources.  Then, checksum the code and if its
   not right, put up an alert - that way, even if the branch is removed the
   program will just crash (serves those nasty crackers right :-).  Of course,

Yes. However, BE SURE TO FLUSH THE CACHE after you've decrypted
the CODE resource. something like
	if ( TrapAvailable ( _HwPriv ) ) {

		FlushDataCache ( ) ;
		FlushInstructionCache ( ) ;
	}

   the virus detectors will probably blow their tops if you go around hacking
   with Code Resources.  Aside from which people will quite probably want to
   run a single copy of the app off a locked file server...  And for heavens

No ! the cool thing is, you do this as a patch to GetResource and
LoadResource, so it's only changed when loaded into memory, not
on disk. Or you could load, move high, and lock the CODE resource
and never let go of it; still only affects memory, not disk.

   sake turn macsbug name generation off before you compile it!  I have seen
   several commercial apps with names turned on in their code checking code,
   pretty impressive guys :-)

I see MacsBug symbols as a user service ! More than once have I had
spontaneous crashes, and only the debugger names helped me figure
out what was going on. Not to mention a dedicated user can provide
excellent feedback for Tech Support if the names still are in there,
like, fixing their bugs :-)

-- 
         Jon W{tte, Svartmangatan 18, S-111 29 Stockholm, Sweden

### You have the Easy Access virus. This virus may cause strange sounds.
### You have the 24-bit virus. This virus eats system memory like CRAZY.
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.hardware
From: ray@netcom.com (Ray Fischer)
Subject: Re: 68040 FPU-exceptions
Date: Sat, 25 Jul 92 18:47:35 GMT
Organization: Netcom - Online Communication Services

orre@nada.kth.se (Roland Orre) writes ...
>I have a 68040 accelerated Mac. My problem is that I have no floating point
>exception handling for 68882 emulation. I have earlier asked here about this
>but the only answer I got was that I have to have system 7.01 which is the
>only system that handles 68040 correct. Now I have installed system 7.01
>but I still get "Bad F-Line Instruction" when I start programs that execute
>floating point instructions. This may mean that the floating point exception
>handling is done in the Quadra PROMs.

Some of the 68040 based accelerators use a version of the 68040 that is
missing _any_ floating-point support.  It isn't there.  Thus, even FP 
instructions like FADD (which would normally be handled by the '040)
will cause an exception.  In such cases emulation won't help, since it's
designed to fill in only those FP instructions which are not part of the
68040 instruction set (such as the transcendental functions FSIN, FCOS, etc).
If this is the case, stick to SANE and forget about FPU instructions.

-- 
Ray Fischer
rfischer@cs.stanford.edu
ray@netcom.com
Newsgroups: comp.sys.mac.programmer
From: UC525655@mizzou1.missouri.edu (Mark Eaton)
Subject: help with link errors?
Organization: University of Missouri
Date: Wed, 22 Jul 92 13:03:43 CDT

Hi everybody-
Im having a problem with a program im writing...
Im well acquainted with C <g>, but this is my first *real* mac program...
 
Im trying to put a dialog up and everything seems to go ok until i try to
run the program... Im making a call to SetDialogDefaultItem() and
SetDialogTracksCursor(), and it gives me a link failed error for both these
calls.
Im runnig ThinkC 5 on a IIsi sys7...
 
 
any help would be *greatly* appreciated...
 
 
**********************************************************************
Mark Eaton                    * These opinions are MINE! and you cant
UC525655@MIZZOU1.MISSOURI.EDU * have them...    ;)
From: jjt@naucse.cse.nau.edu (Rork)
Newsgroups: comp.sys.mac.programmer
Subject: Porting Bison to Mac IIsi using ThinkC5.0
Keywords: ThinkC, Bison, Gnu, Yacc
Date: 27 Jul 92 07:47:20 GMT
Organization: Northern Arizona University, Flagstaff AZ


After dowloading Flex and Bison and making changes in them to get them
to compile on my Mac IIsi, I decided that I would have to install some
UNIX system calls that are not available in ThinkC, namely mktemp().

This function returns a temporary file name.  I had to write my own
version of this, which I did, but thumbing through the standard libraries
I found a function that did a similar thing, tmpnam().

Here's where the problem started, the first call to this function worked
fine.  After that I did a call to malloc(), yes I'm using malloc() but
it would be too time consuming to change over while porting this unix-based
software.

Anyways .. the function:

char *mktemp(char *template)
{
	.
	.
	.
	tmpnam(buf); // buf declared char buf[20];
	.
	.
	str = (char *)malloc(size);
	.
	.
	return something;
}

this fails in the 2nd call ... going into a lockup during the malloc()
call on the 2nd call to the function.

I went back to my origibal scheme, w/o the tmpnam() call and it functioned
correctly again.  Anyone have any ideas?

John Theisen
Macintosh Software Developer
Precision Computer Systems
jjt@naucse.cse.nau.edu
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc,uk.events,comp.object
From: siegel@world.std.com (Rich Siegel)
Subject: Re: Developer Council AGM and talk on OODLs
Keywords: Apple, Macintosh, Object-oriented dynamic languages, Dylan
Organization: GCC Technologies
Distribution: uk
Date: Sun, 26 Jul 1992 14:38:13 GMT

In article <D2150050.9gn44f@nan.network-analysis-ltd.co.uk> sw@network-analysis-ltd.co.uk writes:
>The next meeting of The Developer Council will be held at 7.00 pm, Aug 3rd at
>
>	Apple Computer
>	6 Roundwood Avenue
>	Stockley Park
>	Uxbridge UB11 1BB

Can you post directions please? ;-)

R.


-- 
-----------------------------------------------------------------------
Rich Siegel                              Internet: siegel@world.std.com
Software Engineer & Toolsmith
GCC Technologies
From: crunch@netcom.com (John Draper)
Newsgroups: comp.sys.mac.programmer
Subject: looking for Quadra in-compatability problems
Date: 21 Jul 92 21:02:39 GMT
Distribution: na
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Does anyone out in "Net land" know where I can get a list of
incompatability problems with the Quadra.  In specific,  are there
any problems with the cache and interrupt code.    Our problems
occur in an interrupt routine,   and for some unexplained reason,
crashes when the mouse button is moved around the screen.   The
code works on all other Mac Machines,   except on the Quadra 700.

The interrupt code is not making any memory manager calls of course,
but it does access special memory on a special hardware card.

John Draper
crunch@netcom.com
From: vreddy@das.harvard.edu (Venkatesh Reddy)
Newsgroups: comp.sys.mac.programmer
Subject: Alert Boxes
Keywords: beeping
Date: 31 Jul 92 15:20:37 GMT
Article-I.D.: das.1992Jul31.152037.6756
Organization: Aiken Computation Lab, Harvard University


This is a simple quesiton I hope.... can anyone tell me how to display an alert box without the thing beeping. Everytime I display one of my dialog boxes, the computer beeps... which I assume it is supposed to do when I call the function Alert()... but is there like a QuietAlert() or something? Thanks...

-- Venk Reddy --
Newsgroups: comp.sys.mac.programmer
From: randal@cs.UAlberta.CA (Randal Peters)
Subject: THINK Pascal 4.0 size
Organization: University of Alberta, Edmonton, Canada
Date: Fri, 24 Jul 1992 20:07:25 GMT

Hi. I just installed my TP 4.0 upgrade and noticed that the
application has a suggested memory size of 2.5MB. I was wondering if
this is necessary? I am planning to use TCL. 

The reason I ask is that I have a modest 4MBs of RAM and want to run
System 7 (~1.5MB), TP 4.0 (2.5MB) and Resedit (500K) all at once,
and 4 Meg just ain't enough.

If you have a more reasonable size that you are successfully running
TP 4.0 your suggestion would be greatly appreciated.

Thanks,
  -Randal
From: hp48sx@wupost.wustl.edu (HP48SX Archive Maintainer)
Newsgroups: comp.sys.mac.programmer
Subject: AIFF format request
Date: 29 Jul 1992 11:21:40 -0500
Organization: Washington University in Saint Louis, MO USA
NNTP-Posting-Host: wuarchive.wustl.edu

Is there anybody that can tell me where I can find the AIFF format specs
I have some Amiga IFF files that uses some commands not listed in IM VI,
but they are probably part of the general AIFF format specs.

thanks,

-- 
Povl H. Pedersen             hp48sx@wuarchive.wustl.edu
HP48sx archive maintainer

All Opinions (C) Copyright the Integalactic Thought Association
Newsgroups: comp.sys.mac.programmer
From: Ken Wieschhoff <kenw@ssd.kodak.com>
Subject: Re: how to put indelible serial# in resource fork of app?
Organization: Eastman Kodak Company
X-Useragent: Nuntius v1.0
     <14kh9qINNds5@agate.berkeley.edu> <peter-230792103333@134.7.50.3>
Date: Thu, 23 Jul 92 14:51:52 GMT

A good way to keep users from running software from servers is to disable
the capability completely.  When an application is started, doing a
GetVol(  volumeName, &fVRefNum); when the app launches retrieves the
volume reference.  Use the following routine to determine if a vol ref is
a network volume.

pascal Boolean IsNetworkVolume( short vRefNum)
{

	HParamBlockRec pb;
	GetVolParmsInfoBuffer info;
	OSErr err;

	// Flag mask for vMAttrib field
	const long bExtFSVol = 1L << 16;
	pb.ioParam.ioCompletion = NULL;
	pb.ioParam.ioVRefNum = vRefNum;
	pb.ioParam.ioNamePtr = NULL;
	pb.ioParam.ioBuffer = (Ptr) & info;
	pb.ioParam.ioReqCount = sizeof(GetVolParmsInfoBuffer);
	
	// Get volume info
	err = PBHGetVolParmsSync( &pb);				

	// Check this for a network volume.
	if ((info.vMServerAdr != 0) && (err == noErr))
		return true;
	else
		return false;
}


Kenneth H. Wieschhoff, Jr.	| "If you want to f*** with 
(716)426-3317(w)			| the Eagles, you gotta learn
kenw@ssd.kodak.com			| to fly"  -->Heathers
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MacINTERCOMM Invisible Xfers! (PR)
Date: 21 Jul 92 22:12:47 GMT
Organization: Kalamazoo College

d88-jwa@dront.nada.kth.se (Jon W{tte) writes:
>
>Wouldn't it be even faster if you did something like
>queueing BOTH the next read and the next write from
>the completion proc, and the the one that finishes
>the latest of them queue the next read/write etc ?

Ah yes (deep breath of fresh air)--this is exactly what we learned in
our File Structures class.  This is exactly what you should do!

>This of course requires two buffers, but should be
>quite doable and (theoretically, i.e. from one
>floppy to another) be twice as fast !

Aaaaaaaaahhhh (reality slams in)--everything I learned was _useless_!
When will we be able to heapsort without pausing during reads from
disk?  When will huge Mac database programs get to be anything but a
joke?  When will I be able to smoothly scroll my word processor while
the Finder makes a copy of my hard disk?  When will the IIfx (RIP)
get to _use_ its DMA circuitry?  When can I stop saying "but at least it
accesses the _floppies_ asynchronously"?

Alas (sobbing)--when O when will my IBM-programming friends stop
sniggering at my _totally_synchronous_ operating system?
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 He let the contents of the bottle do the thinking
 Can't shake the devil's hand and say you're only kidding            - TMBG
From: dwb@apple.com (David W. Berry)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Password entry in a dialog
Date: 17 Jul 92 21:05:07 GMT
Organization: Greenwing Enterprises
X-UserAgent: Nuntius v1.1

In article <1992Jul10.230619.27268@ni.umd.edu> Charles B. Cranston,
zben@ni.umd.edu writes:
>There's a somewhat simpler approach in chapter 10 of the
>Macintosh Progamming Secrets second edition book.  It involves
>keeping a second shadow TERec and doing something like this:
>
Simples approach I've seen is to create a FONT with nothing but bullet's
in it and use it for the font for the TERec.  Saves all kind's of hassles
and kludges and works almost anywhere.
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Newsgroups: comp.sys.mac.programmer
Subject: Re: how to put indelible serial# in resource fork of app?
Date: 22 Jul 1992 20:43:38 GMT
Organization: U. C. Berkeley Open Computing Facility
NNTP-Posting-Host: monsoon.berkeley.edu
Keywords: serial#

I have a cool piece of shareware on my hard disk which seems to handle this whole name/serial number thing quite well.

It works entirely on the humiliation-ware concept.  Nobody wants someone else's name emblazoned on their $10 piece of software.  How low can you get?

So anyway the program makes you send in for your super-secret registration code.  This code is a really wierded-out checksum/encryption of your name.

So, for every name, there is a different secret code.  The program won't let you have a mismatching code/serial number.  It'll just say "Unregistered User".

Now, you could incorporate the user's name AND the serial number.  Use a lot of XORs and tricky bit shifting to get a suitable ugly checksum and then convert it to a long (10 digits or so) decimal number.

Anyway, that's what FinderWindows seems to do.  An excellent program, by the way.  It adds a windows menu to the finder and other programs.  Lets me keep 20 or so windows open on my screen and not lose a single one.

(Thanks Damon!)

-E Wylie
From: mspace@netcom.com (Brian Hall)
Newsgroups: comp.sys.mac.programmer
Subject: Re: reducing TCL project size
Date: 24 Jul 92 06:46:50 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

admiraal@bio.vu.nl writes:

>I am starting on a project using Think C's TCL. After compiling the first
>attempts I discovered that the project takes around 2 Megabytes of disk
>space. I remember a discussion (I don't know if it was this news group)
>where a method was given to reduce the size to around 1 Megabyte. Of course
>I forgot to remember and/or save it. So can someone explain (again?) how it
??~works ?

The cheezy answer is to always "compact and save" or turn on the
?t?"compact on save " option, and make sure you have debuggin
turned off (remove the marks next to each file).  A file with debuggin
on - even if the project itself is not being debugged at the moment-
takes up extra space for the debugging information.

-- 

 \ | /   | Brian Hall                 mspace@netcom.com
 - : -   | Mark/Space Softworks       Applelink: markspace
  /|\    |                            America Online: MarkSpace
 |-+-|   |
/-\|/-\  | People don't kill people, toasters kill people.
Newsgroups: comp.sys.mac.programmer
From: Bruce.Hoult@bbs.actrix.gen.nz
Subject: Re: New C/C++ tools for MPW?
Organization: Actrix Information Exchange
Date: Tue, 28 Jul 1992 07:51:40 GMT

In article <1992Jul28.004721.14665@Csli.Stanford.EDU> francis@csli.stanford.edu (Dave Francis) writes:
> I recently heard something about a new C compiler or C++ Cfront tool
> for the Mac under the name Lucid. Are there any substatiations to this
> rumor? Will it be faster (maybe up to Think C speed, ha ha) ?

Yes, one of the guys from Apple said they were bringing in a new C compiler.
I think the emphasis is on optomisation and code quality rather than
speed -- the current MPW C doesn't handle the convoluted stuff put out
by CFront very well at all.  I think we're supposed to expect betas at
the end of the year, perhaps ETO #9 or #10??
-- 
Bruce.Hoult@bbs.actrix.gen.nz   Twisted pair: +64 4 477 2116
BIX: brucehoult                 Last Resort:  PO Box 4145 Wellington, NZ
"Cray's producing a 200 MIPS personal computer with 64MB RAM and a 1 GB
hard disk that fits in your pocket!"   "Great!  Is it PC compatable?"
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Top Ten Things I'd Like to See in Think Pasal
Date: 24 Jul 92 08:46:41 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

In article <1992Jul23.110356.14261@rhrk.uni-kl.de>, 
kemper@millelac.rhrk.uni-kl.de (Michael Kemper [Informatik]) 
writes in response to article <a69376dd@fairgate.uucp>, 
paul@fairgate.uucp (Paul Robichaux) who wrote:

> |>4) A window tiling menu that doesn't bring up a dialog box.. maybe
> |>   a picture menu or something.
> 
> I don't use this function very often, but I think the dialog box is acceptable.

You must have a very large screen, or perhaps dont use objects, I am
constantly useing the tiler, and find the dialog box annoyingly slow.


> |>6) In general, give us more command key accelerators. As bad as
> |>   MS Word is, at least it offers a plethora of function key support
> |>   for the keyboard-abled.
> 
> Why don't you take ResEdit and make them on your own? There are lots of
> letters left to make command keys of.

What makes you think the program (any program for that matter) will
function after this?  Symantec uses a custom MDEF for some of the menus
(they dont reflect under l->r scripts the way MDEF 0 does).


> |>7) Let me rearrange the contents of the Lightsbug window. I don't ever
> |>   want to see the heap display, and I hate having to drag borders each
> |>   time to restore my preferred layout.
> 
> Right, especially owners of compact macs have difficulties when working
> with that large debugger window. There should be a possibilty to make it
> smaller.

Unfortunately, most of it is needed during a typical debug session.  The
only change I would make, would be to consolidate the icons in the left
edge, and fix them to a non-shrinking, (?scrollable) strip.  The present
setup establishes a minimum height for each of the 3 horizontal panes which
is excessive in some debugging situations.


> |>8) Let me "Add File" at a specific point in the project. I guess what
> |>   I'm really asking for is an insertion point in the project window.
> 
> Hmmm. How often do you add a file to your project? Since this function
> isn't used very often, I don't think your suggestion is a "must".

The point is not how often it is used, but how painfull it is to do when
one has a large project to add to.  Think P 'Adds' the file to the end of
whatever segment is at the end (? beginning, sorry, I forget) of the list. 
I usually drag the segment to the end, then add the file(s), then shift to
the build order view and drag the file(s) (again) to their proper build
position.  This is a timeconsuming pain when you already have 125 TCL
source files/libraries/TBinterface files as overhead.

--

Dana S Emery <de19@umail.umd.edu>
From: orpheus@reed.edu (P. Hawthorne)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Top Ten Things I'd Like to See in Think Pasal
Date: 29 Jul 92 06:48:49 GMT
Organization: Reed College, Portland, OR


  quinn@cs.uwa.edu.au (Quinn) writes:
: Built in assembler.

  Can't help you there, but...
  I wrote an FKEY that translates the clipboard format of the ResEdit
disassembler into Pascal inline source with, if I do say so myself, some
fairly good disassembly comments complete with labels and labelled jumps. 
  I posted it to the binaries group, but the moderator must have thought my
motives too sinister to actually post it. ;-)
  I'll gladly mail it to whosoever might want it.

  Theus (orpheus@reed.edu)
Newsgroups: comp.sys.mac.programmer
From: robichau@lambda.msfc.nasa.gov (Paul Robichaux)
Subject: (SUMMARY) Using PICTs compressed by QuickTime
Reply-To: robichau@lambda.msfc.nasa.gov
Organization: New Technology, Inc.
Date: Wed, 29 Jul 1992 13:34:55 GMT

My recent question about the mechanics of using QuickTime-compressed
pictures netted me a message from Mike Dowd of Apple, who pointed out
that:

	.. you don't have to do _anything_ to use compressed PICTs ..

Just read them in and draw them. 

I'm now working on a simple drag-and-drop that will accept PICT files
and spit out compressed PICTs (since I have about 300 PICTs that I
need to compress and would rather not use PictPixie.)


-- 
Paul Robichaux, KD4JZG          | I shouldn't bitch / I shouldn't cry
robichau@lambda.msfc.nasa.gov   | I'd start a revolution but I don't have time.
From: howes@jomby.cs.wisc.edu (Glenn Howes)
Newsgroups: comp.sys.mac.programmer
Subject: Do CTB FT Tools get Updates?
Date: 22 Jul 92 00:54:24 GMT
Distribution: usa
Organization: University of Wisconsin, Madison -- Computer Sciences Dept.


I'm writing a Kermit Tool for the Communications Toolbox. My question is:
Is my window supposed to get update messages and if so how. I have
set the Windows ref con to the FTHandle, and I get mousedown events, but
apparently not update events. I can't believe I'm not supposed to get a
message when (for example) the user reexposes a portion by moving an 
overlying window.
-- 
=======================================================
     -Official Spokesman:   //        Glenn Howes
All right thinking Americans ;-) //  howes@chem.wisc.edu
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Newsgroups: comp.sys.mac.programmer
Subject: A GUI for source code
Summary: Have you heard of one?
Date: 31 Jul 92 19:51:15 GMT
Organization: Kalamazoo College

I've been idly thinking that the day is rapidly approaching when we'll
need a GUI for our source code.  I have this image in my head of radio
buttons labelled "MPW" and "THINK_C", and of watching code switch itself
around, rather than having to look at raw #ifdef's.  I have this image
of classes that look like folder icons, and windows full of methods
organized by small icon.

I'm not talking about silly programming "languages" where you make a
flowchart out of icons in a vain attempt to tell the computer what to
do.  I'm talking about grafting a UI onto existing text-based source
code, and designing text-based languages for such a UI.

Does anyone know of anyplace where people are discussing "user"
interfaces for people who "use" source code?  Any pointers are
appreciated.
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "I don't think we should have to have them wandering the streets
  frightening women and people."                             - Pat Buchanan
From: umdenbo0@ccu.umanitoba.ca (David A. Denboer)
Newsgroups: comp.sys.mac.programmer
Subject: Re: faceless background app's.
Date: 24 Jul 92 02:39:33 GMT
Organization: University of Manitoba, Winnipeg, Canada

Check Out  d e v e l o p  Issue #9
There is a good article in there about writing FBA's by C.K. Haun the author
of my favorite Tech Note #31 --> GestaltWaitNextEvent!

David A. denBoer
umdenbo0@CCU.UManitoba.CA
Musi Computer Products
Macintosh Users Show Intelligence