HDTenEightyP/NetNews huggingface dataset:
From: flc3527@zeus.tamu.edu (CAMPBELL, FRED LELAND)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C Debugger Voracity
Date: 12 Jan 1993 23:38 CST
Organization: Texas A&M University, Academic Computing Services
Distribution: world
NNTP-Posting-Host: zeus.tamu.edu
News-Software: VAX/VMS VNEWS 1.41    

In article <1993Jan12.231156.1576@fsl.noaa.gov>, urban@yoda.fsl.noaa.gov (Art Urban) writes...
>I'm currently up to 2Meg, and the dang thing *still* exceeds it. I did
>notice that after each Step command I issue, the Debugger consumes 50k+(!)
>of its own heap. Everything its consuming is "unlocked" according to
>Swatch, but apparently it can't purge anything. 
> 
>So what's a programmer to do?

Are you using Desktop Textures or something like it to give you those really
neat desktop patterns? I had a similar problem recently and remembered
reading somewhere (here or think-c?) that when the debuggers steps through
code it copies something to do with the extended desktop pattern and this eats
up memory like crazy. I stopped using Desktop Textures and my problem went
away, your mileage may vary. (Note, I only had the problem when I was stepping
through code). Of course, this is just a guess.
Trey.
Newsgroups: comp.sys.mac.programmer
From: tim@maths.tcd.ie (Timothy Murphy)
Subject: FindFolder() code, please.
Summary: Anyone got a snippet of code using FindFolder()?
Keywords: Macintosh Preference
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Date: Tue, 5 Jan 1993 02:51:00 GMT

I'd like to use FindFolder() to find the VRefNum of the Preference folder,
but am not entirely clear of the usage from Inside Mac.
If anyone has a little bit of code doing this,
I'd be most grateful for a copy.

-- 
Timothy Murphy  
e-mail: tim@maths.tcd.ie
tel: +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
From: russotto@eng.umd.edu (Matthew T. Russotto)
Subject: Re: Stallman and friends
Date: Fri, 08 Jan 93 22:57:11 GMT
Organization: Project GLUE, University of Maryland, College Park

In article <MELLON.93Jan7170831@pepper.ncd.com> mellon@ncd.com (Ted Lemon) writes:
>
>You have it exactly backwards.   The FSF does not claim that you must
>be able to get their software for free, and they go out of their way
>to prevent strings from being attached to the software.   The *only*
>string attached is that you may attach no strings.

How about Bison and the gnu libraries?

-- 
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)
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Getting List of files contained in folder
Date: 11 Jan 93 18:41:10 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <1993Jan11.113821.12019@wega.rz.uni-ulm.de> walrath@faw.uni-ulm.de (Wayne K. Walrath) writes:

>  Is it possible to use the new Cat Search function 
>available under 7.x (_FSBCatSearch or something similiar) but limit it to 
>only the folder in question?

I hear it is; I haven't been able to make it work.

>I would appreciate a general explanation of how to do this, or better
>still some code.

Better yet, get to know Mr PBGetCatInfo. He's your most helpful
friend when doing things with the Mac file system.

Inside Mac, volume IV. Good luck!
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   This sig less than 3 lines: Improve the UseNet S/N ratio!
Xref: sparky comp.sys.mac.programmer:21161 comp.os.ms-windows.programmer.tools:1972
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 06:51:28 GMT
	<1ig6dkINNdq5@shelley.u.washington.edu>
Followup-To: comp.sys.mac.programmer
Organization: Network Computing Devices, Inc.
In-reply-to: tzs@carson.u.washington.edu's message of 7 Jan 93 03:01:08 GMT


>FSF is inconsistent here.  You can use GCC, for example, to compile
>proprietary software, and you can use GNU Emacs to edit your proprietary
>stuff.  Yet, if you want to take one little routine from the source for
>GCC or GNU Emacs and use that in your proprietary software, FSF gets
>upset.

Hm.   Does AT&T require you to sign over the rights to your programs
if you compile them with the Johnson Portable C Compiler?   How about
Sun - if you pop for the cost of their compiler, do any programs you
compile with it belong to Sun?   Yet, if you used a piece of the Sun
compiler or part of one of AT&T's many copyrighted works in your
program, you can bet that they'd be all over you like a cheap suit.

How is this different from the FSF?   I guess that the only
difference is that the FSF is trying to do good, whereas Sun and AT&T
are trying to make money.   Apparently, you don't approve of doing
good, but you do approve of making money.   Don't be embarrassed -
this is a common attitude in today's society.   Sigh.

			       _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: howard@netcom.com (Howard Berkey)
Subject: Re: Why does BinHex exist? (my mistake)
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Fri, 8 Jan 1993 18:04:38 GMT

I should have made it clear that I know what binhex actually does.  
My mistake was in assuming that everyone would be able to 
have access to uuencode, which does substantially what binhex does
(i.e. convert a binary file to 7-bit (6 for binhex but the same
principle)) so it can be mailed/cross EBCDIC gateways/etc.).  I've
gotten kind of net-tunnel vision lately and since I download my
files from ftp using a UNIX box, I blew off the fact that bbs's,
compuserve, genie and other services don't neccesarily have uuencode.  

-Howard
-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Howard Berkey                                   	   howard@netcom.com
"These check boxes actually function as check boxes." - from a SW spec
... .. ...   ... .. ...   ... .. ...    ... .. ...   ... .. ...   ... .. ...
From: absurd@apple.apple.com (Tim Dierks, software saboteur)
Newsgroups: comp.sys.mac.programmer
Subject: Re: A short question on MPW scripting
Date: 6 Jan 93 00:19:24 GMT
Followup-To: comp.sys.mac.programmer
Organization: MacDTS Marauders

In article <kpw105-050193092430@theophys1.anu.edu.au>,
kpw105@huxley.anu.edu.au (Ken Wessen) wrote:
> 
> Hello.
> I am new to MPW scripting, and am having a problem doing something that
> seems like it should be quite easy.  What I require is to find a completely
> blank line both above and below the current insertion point, and select
> everything in between.
> I tried using
> find \o[La-zA-Z0-9d\%]\J:J/o[La-zA-Z0-9d\%]/
> where o=option 8, L=option L, J=option-j and d=option d,
> but this didnt work.  Furthermore, the blank line definition is not
> satisfactory and I dont really want to extend it to include [not list of
> all possible characters].  Using a wild card [option L option x] gave
> results I didn't really understand, but I thought it should have just
> matched a line with nothing but a return.  Any help would be greatly
> appreciated.

Try using:

find \o5\!1:/o5/

Where o is option-8 and 5 is option-5.  If a blank line may have
white space, use

find \o[ dt]*5\!1:j/o[ dt]*5/

Where o is option-8, 5 is option-5, j is option-j, and d is option-d.

> p.s. Is there a script or tool floating around somewhere that will word
> wrap a selection of text?

I've got one called Indent, which I believe I got out of the MPW
Goodies package, which I think comes with the developer CD or on
E.T.O., and might be on the ftp site.

Tim Dierks
MacDTS, but I speak for myself and my brain-damaged keyboard
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Where, oh where has my list code gone?
Organization: University of Delaware
Date: Thu, 7 Jan 1993 20:50:07 GMT

Around two months ago or so I posted some code to c.s.m.p. which
simplifies the use of the list manager for simple lists of strings.  I
have heard from someone who used the code that it was posted by somebody to an
ftp site, but I don't know where, and I lost the email which the code user
sent me.  I'd like to know, so that when this FAQ comes up I'll know where
to refer people without having to hunt down the code on my own machine to
mail out.  Thanks much.

--Kurisuto
Newsgroups: comp.sys.mac.programmer
From: zimmy@bode.eng.ohio-state.edu (Michael Zimmerman)
Subject: Re: Sozobon (or other free C's): would this strategy work?
Organization: The Ohio State University Dept of Electrical Engineering
Distribution: comp
Date: Thu, 7 Jan 1993 18:43:26 GMT

In article <1993Jan7.175834.10583@mnemosyne.cs.du.edu> rduta@nyx.cs.du.edu (Radu) writes:
>
>  Just because you have
>the money to go ahead and buy MPW or Think C, doesn't mean that everyone can.
>I for one can't even come close to spitting out the $150 for Think C.  I'm 
>currently a student in colege so that could explain the lack of funds. 

On a side note you might want to check your campus computer store.  Ours sells
software (including Think C) at a SIGNIFICANT discount over mail-order.
(without quoting a price it is only slightly more than 33% of the above
quoted price).  Of course that is still not "free", but I thought I would
throw the info out just in case.

Mike
 
-- 
                                               zimmy@ee.eng.ohio-state.edu
 Humpty Dumpty was pushed...                   PADI AOW/drift/deep
From: eric@reed.edu (eric)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Duplicate Object in Think C?
Date: 5 Jan 93 01:53:29 GMT
Article-I.D.: reed.1993Jan5.015329.15824
Organization: Reed College, Portland, OR

Don't thinkC objects know what class they are, and can't you get this
using CObject::GetClassName?  I don't think that you have to override
this method, but then I can't recall ever having used it so . . .
-- 

_______________
Eric Hennings / eric@reed.edu
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Dragging out of a list manager list
Organization: University of Delaware
Date: Thu, 7 Jan 1993 05:17:59 GMT

I know we're not supposed to abuse the managers, but here goes anyway.

I have finally gotten a list of icons to work the way I want it to in a
modal dialog.  However, I'm now finding that I need to do some redesigning
of my program, because I often have modal dialogs stacking up on top of
modal dialogs, which is a user interface no-no.  Instead of having the
user select an icon from the list and dismiss the modal dialog with a
'select' button, I want the user to be able to drag a gray outline of an
icon's cell from a list in a modeless dialog to another window.

The problem is that I'm pretty sure that once you call LClick, there's no
straightforward way to get the following mouseup message.  Still, some
lists seem to have draggable elements (the project window from Think
Pascal and the Inventory window from Scarab of RA come to mind).  Do these
programs use the list manager, or have the authors had to recreate
something like the list manager to implement this dragging functionality?

Any suggestions on how to drag out of a list will be appreciated.  If
there's interest I'll summarize and post.

--Kurisuto
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: Tue, 05 Jan 1993 16:31:38 EST

In article <1993Jan4.120353.16699@kth.se> d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>In <wfFp_jO00WB707kGgq@andrew.cmu.edu> at15+@andrew.cmu.edu (Andrew Lewis Tepper) writes:
>
>>Is there an accepted way to do this on the Mac?  I know that
>>self-modifying code can cause problems on chips with caches, so I want
>>to be as "kosher" as possible.

I hate being non-Kosher, but just today some of my code was modifying
itself.  (How can a proc in the sleep queue find my A5 world anyway?)

My "to do" list said I should check before I trap, so I added:

>	if ( TrapAvailable ( _HwPriv ) ) {
>
>		/* FIC also calls FlushDataCache */
>		FlushInstructionCache ( ) ;
>	}

It didn't work.  

At least with my .h-files, the spelling is "HWTrap".  (And now I need
to type in the source for TrapAvailable()--now I remember why I didn't
do this before.)

Yes, trivial, so instead consider my post as follows: How should one
find one's A5 world from within a sleep queue procedure?


--
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: sainaney@unixg.ubc.ca (Narayan R. Sainaney)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Why the Piracy? Here's why...
Date: 10 Jan 1993 22:50:03 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
Distribution: world
NNTP-Posting-Host: unixg.ubc.ca

	I'm having trouble quoting but this is in responce to the person
who wants to have the free exchange of software and scientific discoveries.

	Basically, what you propose goes against the main structure of a capitalist country and would result in major bankrupcies and much dreaded job 
layoffs. If a person spends 6 months to numerous years to create a piece
of software, at many pints in that time, overcomming various hardships, 
(lack of support from family ie. I'm sure there are some freelance software
publishers like me out there whose parents or wives/husbands think hacking
in the basement is not a real job) and even financial hardships...(s)he deserves
some form of compensation for that labour of love. You might want to read
Chapter 8 of "Balance of Power, International politcs as the Ultimate
Global Game by Chris Crawford...Then you might know why software publishers
deserve the money they ask for and why piracy is so low a crime...

sainaney@unixg.ubc.ca
PS: You might also want to read the whole book. BTW, does anyone know of
other books of programmers rise to fame and all they went through to 
create a piece of software....I find these books very inspiring..

Newsgroups: comp.sys.mac.programmer
From: thcheng@csie.nctu.edu.tw (a)
Subject: Speaking English in the Mac
Organization: National Chiao Tung University
X-Newsreader: TIN [version 1.1 PL7]
Date: Thu, 7 Jan 1993 02:20:34 GMT

Dear netters:
  I'm now writing a Chinese-English dictionary program (near completion).
I wish my dictionary can speak the English words loudly through the Mac
speaker. Firstly I think the old Macintalk may help me, but after reading
the warning of the technical notes from Apple, I gave up this idea.
Is there any speech-synthesis program (module) I can get (buy or license)
to include its functionality into my program? To be more specific, is there
a program that can accept input of English words (e.g. book) and spell the
word through Mac speaker? My program can also supply phonetic (e.g. /buk/)
if needed.

Thank you first for any possible help information.

Please respond by the following E-mail address:
thcheng@csie.nctu.edu.tw

Newsgroups: comp.sys.mac.programmer
From: ruocco@ghost.dsi.unimi.it (sergio ruocco)
Subject: Need descrptn Mac FS !
Organization: Computer Science Dep. - Milan University
Date: Tue, 12 Jan 1993 17:48:35 GMT


Where I can find the description of the Macintosh file system(s) ?
InsideMac. ? FAQ ? Magazines ? C include files ?
Please reply by mail (I can't summarize because my bad english,
so , if U want, post also any info U send to me !).
Thanks in advance !
PS)
	I need the layout of data/blocks/folders on the (hd)disk !

-- 
Sergio Ruocco - ruocco@ghost.sm.dsi.unimi.it
Via Di Vittorio, 4
I-20019 Settimo Milanese Milano
Phone: 0039-2-3283896
From: pink@Rosie.UH.EDU (Pink is Slack)
Newsgroups: comp.sys.mac.programmer
Subject: LW Driver: Sys 6: Upside down text
Date: 11 Jan 1993 23:16:18 GMT
Organization: University of Houston
Reply-To: pink@Rosie.UH.EDU
NNTP-Posting-Host: rosie.uh.edu

 Hi-
 I'm working on an application that is near the end of a long beta cycle.
It needs to ship soon, and I've discovered a really weird bug.  It seems
to be a bug in the Laserwriter driver version 5.2 and 7.0 when running under
system 6.  What happens is the app creates its' report, displays the PICT
to the screen and give s the user the oppertunity to print it.  It looks fine on
the screen but when the page comes out of the printer, sometimes, some of the
text is upside-down and backwards.  IT seems to only happen in certain
"windows" of the report, so I suspect it is due to some scaling weirdness.
All of the text is being placed using StdText... but a single character at
a time.  When different scaling options are chosen or the text is placed
as a string, the problem goes away.  Because of the nature of these reports
forcing the text to be placed as a string can't be done.
 
The characters in these reports are unusually tall for their height.  The 
scaling is done using factors of denom and numer sent to StdText, and 
once again, the text comes out fine when sent to the screen or a plotter.
 
Anyone know of a bug in the Laserwriter drivers that could cause this?
Am I pulling a stupid programmer trick?  Heard of this before?  I'm
perplexed!
 
Any clues would be greatly appreciated-- posted here or sent to:
jay@wst.com
 
 
Thanks!
--
   /\     '       Pink@Jetson.UH.edu          Box 66231 Houston 77266-6231      
  /_/.    `                          
 /  //\/< '  Life is what happens when you're busy making other plans. --Lennon

Newsgroups: comp.sys.mac.programmer
From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
Subject: Re: Think Ref 2.0
Organization: Symantec Corp.
	<PHILS.93Jan8083854@chaos.cs.brandeis.edu>
	<1993Jan8.213017.15996@cs.ucla.edu>
Date: Sat, 9 Jan 1993 22:04:36 GMT

>>>>> 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:

Neal Goldman
Symantec Corp.
135 South Road
Bedford, MA 02144

Sorry, no email address for Neal..

	-phil
--
   Phil Shapiro                                   Software Engineer
   Language Products Group                     Symantec Corporation
		   Internet: phils@cs.brandeis.edu
From: sainaney@unixg.ubc.ca (Narayan R. Sainaney)
Newsgroups: comp.sys.mac.programmer
Subject: Re: protection == !piracy
Date: 7 Jan 1993 20:44:29 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
Distribution: world
NNTP-Posting-Host: unixg.ubc.ca

	RE: All that discussion on software piracy and copy protection 

	Hi! I own a one person software company and have been working on
a couple of projects that I plan to market. I have released about 2-3 
shareware programs (Marked "Send a post card or as much cash you think it's
worth") and the responce was reassuring (many postcards, no cash =) that    
programs get around FAST. I didn't u/load anything to any ftp sites yet 
I see the program on some anonymous sites that I frequent.

	My proposal to the following "commercial" projects is to market
them in a similar way. Instead of the program however, I will be sending
out a semi-functional demo. To get a working copy, you simply send a check or 
money order t the designated address. 

	The working copy will hold serial numberS (about 150 that I can trace
directly to you and they would be located at various places in the code,
resources etc). Registered users will also have access to a support BBS
(And "guest" access will be available). The BBS offers support and it's 
where you get ugrades and bug fixes. (Upgrades also avail via internet
and having me mail upgrades to you but shipping charges apply).

	Now the big question: I do come across a copy of the program
that has been pirated. Being a small compnay with limited finances
(and lawyer support), fow far can I prosecute(sp?) someone? Would borders
affect the case (I'm up here in Canada) and to what degree?

	Depending on that, I can go about offering a reward for having
someone hand in a pirate copy of the program...

	This is the only way I can think of to fight piracy...No copy 
protection hassles (And *most* copy protections schemes have a crack..
you do not have to have a Phd to figure one out...just a good knowledge
of MacsBugs). The only downside I see with my proposal is having to deal
with the postal service (2-4 weeks deilvery...unless you can just call the 
support BBS OR include an internet address with the enclosed check)

Comments anybody?\
sainaney@unixg.ubc.ca
From: ctvien@cs.concordia.ca (VIEN cam thanh)
Newsgroups: comp.sys.mac.programmer
Subject: Bug in CRunArray.SetValue in TCL 1.1.2
Date: 5 Jan 93 17:02:15 GMT
Organization: Computer Science, Concordia University, Montreal, Quebec


There is a bug in SetValue method in CRunArray object. If the call
to InsertRun in the method resize the array, then the reference "runs"
is no longer valid and produce incorrect result.



Newsgroups: comp.sys.mac.programmer
From: neeri@iis.ethz.ch (Matthias Neeracher)
Subject: Re: (Q) Need bit manipulation algorithm
Organization: Integrated Systems Laboratory, ETH, Zurich
	<1993Jan6.032113.597@planets.risc.rockwell.com>
	<20751@ucdavis.ucdavis.edu>
Date: Wed, 6 Jan 1993 13:35:12 GMT

In article <20751@ucdavis.ucdavis.edu>, lim@toadflax.cs.ucdavis.edu (Lloyd Lim) writes:

> In article <1993Jan6.032113.597@planets.risc.rockwell.com> sho@risc.rockwell.com (Sho Kuwamoto) writes:
>>
>>Maybe not the fastest method, but a simple one:
>>   1) come up with an algorithm which counts the number of
>>      1's in a given bit pattern.  You'll either use a loop
>>      with shifts and increments in it, or you'll use masks.
>>[...]

> There is a neat trick for counting the number of bits in a word that
> a Microsoft geek showed me one time.  If there are k bits with 1's,
> it runs in O(k) time.

> I don't remember the algorithm, but it involved subtracting 1 and could
> be written in one line of C.  (Yeah, I know...  You could write anything,
> even Microsoft Word, in one very long line of C code.  Come to think of it,
> that's probably what they did.)  The subtraction was used to create
> instant masks: e.g. 0x0100 - 1 = 0x00FF.  It went from the highest 1 bit
> to the lowest, magically avoiding all of the 0's.

> That's all I remember.  Anyone remember this algorithm?

Sure.

int count_bits(int x)
{
   /* Return the number of 1 bits in x. Patent pending... NOT! */
   int bitcnt;

   for (bitcnt=0; x; ++bitcnt)
	x &= (x-1);

   return bitcnt;
}

For the Pascal heathens out there: If an integer x has n 1-bits (n>1),
BitAnd(x,x-1) will have (n-1) 1-bits.

Matthias

-----
Matthias Neeracher                                   neeri@iis.ethz.ch
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_
Newsgroups: comp.sys.mac.programmer