HDTenEightyP/NetNews huggingface dataset:
From: droege@infko.uni-koblenz.de (Detlev Droege)
Subject: NXImage - problem forcing image depth (2.x)
Organization: Universitaet Koblenz (FB Informatik)
Date: Fri, 09 Oct 1992 13:28:30 GMT

One of our students has following problem. He's not reachable by mail,
I'll forward any answers to him.	- Detlev

I'm writing a program to convert 24-bit-color images (color reduction).
Therefore I need to load the image with its full color. Because these images
are large I've compressed them with "compress"; to load them I'm setting up a
pipe to "zcat" and decompress them into a stream. From this stream I
instantiate an new NXImage with following piece of code:
	--- generate 'userStream'
	localImage = [NXImage alloc];
		// some flags to force loading 24-bit rgb-images
	[localImage setDataRetained:YES];
	[localImage setCacheDepthBounded:NO];
	[localImage setColorMatchPreferred:NO];
	[localImage setScalable:YES];
	[localImage setMatchedOnMultipleResolution:NO];
	[localImage initFromStream:userStream];
	--- close and remove 'userStream'

This loading works fine on all devices (NeXT-Colorstation, NeXT-Dimension and
NeXTstation); the imageRep (NXCachedImageRep) contains all informations from
the compressed image. BUT...:

When _not_ working on a NeXT-Dimension, the first time I use the image (e.g.
composite it into a view) the informations of the imagerep will change to the
depth of the framebuffer; no _new_ representation will be generated, but the
original will change.
This only happens with compressed TIFF-files. If I'll map a stream on a
(uncompressed) TIFF-image and perform this code, the representation does not
change.

Now my question:
How can I force the Image not to change the imagerep?
	or
How to load an image from a stream and use it without loosing informations?

Thanks in advance
	Roger Craemer

--
Detlev Droege                          | droege@infko.uni-koblenz.de
Universitaet Koblenz,                  |       (NeXTmail ok)
Institut fuer Informatik               | Voice: +49 261 9119-421
Rheinau 3-4, D-5400 Koblenz, Germany   | Fax:   +49 261 9119-499
From: derek_clegg@next.com (Derek Clegg)
Newsgroups: comp.sys.next.programmer
Subject: Re: getting the path representation of a character to server stdout
Keywords: charpath, pathforall
Date: 15 Oct 92 18:15:07 GMT
Reply-To: derek_clegg@next.com

Sean Lamont writes
> I need to get the path associated with a character or string of
> characters in a given font to be output in a form that doesn't require
> the font to be loaded on the machine.
> I messed with pathforall, but it doesn't seem to work on a NeXT (none of
> my procedures ever get called) , and it also claims to not be able to
> work with "charpath".

I'm surprised that `pathforall' doesn't work for you -- perhaps your path was  
empty for some reason?  Anyway, I've appended a simple function to get the path  
for a character.  Copy it to a `.psw' file.  Here's an example of how to call  
it:
	int count, type[1024];
	float path_list[4096];
        get_charpath("A", sizeof(path_list), sizeof(type),
                     path_list, type, &count);

Using fixed size arrays is probably bogus; you may wish to worry about that.   
Also, I'd suggest fetching the path of one character at a time, rather than the  
path of an entire string.  (Otherwise, it's difficult to separate the  
characters, and there's a greater likelihood of overflowing your arrays.)

Derek
dclegg@NeXT.com

/* Get the character path of `s'.  Return the points in `path'; `n' is the
 * length of `path'.  Return the type of the points in `type'; `m' is the
 * length of `type'.  Return the total number of path elements in `count'.
 */
defineps get_charpath(char *s; int n, m
                      | float path[n]; int type[m]; int *count)
  currentpoint newpath moveto
  0
  (s) false charpath
  {
    0 type
    exch path path
    1 add
  }
  {
    1 type
    exch path path
    1 add
  }
  {
    2 type
    6 -2 roll exch path path
    4 -2 roll exch path path
    exch path path
    1 add
  }
  {
    3 type
    1 add
  }
  pathforall
  count
endps
Newsgroups: comp.sys.next.programmer
From: todd@liveware.com
Subject: Re: Is Garfinkel's and Mahoney's NeXTstep programming book out yet?
Keywords: See NeXTWATCH #8 or #9 for my review
Reply-To: todd@liveware.com
Organization: Liveware Corporation   Fort Collins, CO.  USA.
Date: Thu, 8 Oct 1992 00:08:09 GMT

In article <1acs7iINN7uf@gap.caltech.edu> tll@cco.caltech.edu (Tal Lewis  
Lancaster) writes:
> erno@mrcnext.cso.uiuc.edu (Erno Pena) writes:
> 
> >I just got the Winter '92 NeXTWORLD and saw in the back an ad for  
Garfinkel's  
> >and Mahoney's NeXTstep programming book. Is it out yet? My $40 is waiting.
> 
> It isn't going to hit the bookstores until mid-November.  If you want to know
> more try calling Springer-Verlag, the publisher: (800)SPRINGE or  
(800)777-4643.

Or if you really want the scoop, pick up a subscription of NeXTWATCH
by sending email with credit card order ($30 for a year) to

	<editors@skylee.com>

and you will see my review of the S&M book in issue #8 or #9.  They
both will be out in 3-5 weeks from what the editors hinted.  I
am not affiliated with Skylee or NeXTWATCH in a pay for article
position, I am just a happy contributor/reader of this wonderfully
useful periodical.

Todd Nathan

> Tal
> -- 
> ###########################################################################
> The Principal from "Buffy, The Vampire Slayer", 
>      "I think the students learned an important lesson on safty." 
> ###########################################################################
-- 
--
Todd Nathan			Voice: (303) 484-7607 (w)
Liveware Corporation		Email: <todd@liveware.com>

Xref: sparky comp.sys.next.programmer:6582 comp.sys.next.misc:20821 comp.sys.next.advocacy:2629
From: vin@netcom.com (Vin Locke)
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.advocacy
Subject: openlook/xview on NeXT?
Keywords: X, Xview, OpenLook, OpenWindows
Date: 11 Oct 92 15:11:57 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest)

Well I don't know, but I've been told, that OpenLook and
the Xview widgets are publically available.  I know the 
OpenLook window manager (olwm) is available for the NeXT
on the ftp archives, but I haven't seen anything of the
Xview widgets.  
Can someone affirm that they are publically available by
pointing me in the direction of where they may be obtained?
Better still, the location of the libraries compiled for
the NeXT?

 


-- 
					--vin

vin@netcom.com

"...you think YOU know fear -- I've seen them naked!"
				--L. Simpson
From: rob@faraday (Robert LaBelle)
Newsgroups: comp.sys.next.programmer
Subject: makedepend and #import directive
Keywords: make depend #import
Date: 7 Oct 92 04:59:39 GMT
Organization: Colorado State University, Fort Collins, CO  80523


I'm trying to find a version of the makedepend utility that can
handle the NeXT's #import directive.  Anyone know of such a beast ?

....................................Rob
rlabelle@lamar.colostate.edu
From: kg19+@andrew.cmu.edu (Kurt A. Geisel)
Newsgroups: comp.sys.next.programmer
Subject: chunkPackage Script Bug in 3.0
Date: 9 Oct 92 15:55:20 GMT
Organization: Carnegie Mellon, Pittsburgh, PA

When I run the chunkPackage script under 3.0, the shell barfs with
the message that "destDir" is an undefined variable.  Well, I did a
diff between the 3.0 chunkPackage and the 2.0 chunkPackage and found
that someone, for some reason, has superficially rewritten the entire
script.  I can't for the life of me see any functional difference or
any reason why destDir wouldn't get defined, whether or not the -d
option is provided (I tried both).

So, what am I missing?

- Kurt
Kurt A. Geisel                        SNAIL : 65 Lambeth Dr.
Vertex Software                               Pittsburgh, PA 15241
ARPA  : kg19+@andrew.cmu.edu	      UUCP  : uunet!nfsun!kgeisel
ARPA2 : kgeisel%nfsun@uunet.uu.net    BIX   : kgeisel
GENIE : K.GEISEL                      AIR   : N3JTW
"I will not be pushed, filed, indexed, stamped, briefed, debriefed, or
numbered!" - The Prisoner
Newsgroups: comp.sys.next.programmer
From: asd@sage.cc.purdue.edu (Doug McClure)
Subject: Windowless NeXTSTEPP apps?  Is possible?
Organization: Purdue University
Date: Wed, 14 Oct 1992 22:57:28 GMT


Okay, here's what I'm working the situation is.  I'm working on a
daemon that watches the serial port, ie: /dev/ttyb.  I'm trying to use
the SerialSolutions package which has a method for adding the tty to
the list of things that DPS will look to for events.  However, I have
to have an actual NeXTSTEP program, via [NXApp run] in order to
accomplish this.

I was hoping that I could create an application object, not do the
-run method, but set up my own loop to get events (just timer events,
and events from the tty doing something).  I looked into it, but don't
have enough expertise to know if it's possible.  I'm hoping someone
out there does.

-doug

Newsgroups: comp.sys.next.programmer
From: andrew@cubetech.com (Andrew Loewenstern)
Subject: Re: help with streams please (APOLOGY/CORRECTION)
Reply-To: andrew@cubetech.com
Date: Mon, 12 Oct 1992 21:21:34 GMT

In article <1992Oct9.230027.1638@cubetech.com> andrew@cubetech.com writes:
 
In article <4ep3D7i00iUxE1J0Yj@andrew.cmu.edu> js3b+@andrew.cmu.edu (James Vincent Schultz) writes:
>
>>I'm just starting out as a NeXT programmer, so please forgive me if I'm
>>missing something obvious.
>>
>>I'd like to use the NXReadTypes & NXWriteTypes functions to temporarily store
>>some instance variables in memory.  I looked in NeXT Concepts and the
>>NeXTStep Reference to come up with the idea of opening a memory stream,
>>converting that to a typed stream, and passing that to my object.
>>
>>This is great except that you have to open a stream NX_READONLY or
>>NX_WRITEONLY.  I can't figure out how to do both.  I want to write to a
>>stream, then come back a while later and read the values back.
>>
>>How can I read & write a stream?

>  NX_READWRITE
>  
>  andrew

Correction:  The docs explicitly state that you should NOT open *NXTypedStreams* as NX_READWRITE.  NXStreams are O.K.  Sorry for getting confused there.

Thanks to Greg Anderson for slapping me upside the head on that one...  :-)


andrew
-- 
andrew@cubetech.com     | "We shall not cease from exploration
Andrew Loewenstern      |  And the end of our exploring
Cube Technologies, Inc. |  Will be to arrive where we started
                        |  And know the place for the first time." -T.S. Eliot
From: mulheims@nelke (Klaus &)
Newsgroups: comp.sys.next.programmer
Subject: Re: another KERNEL BUG : SLOW THREADS
Date: 7 Oct 92 10:37:52 GMT
Organization: Universitaet Koblenz (FB Informatik)

In article <1992Oct6.183610.17142@news.lrz-muenchen.de>  
jolly@next3.cis.uni-muenchen.de (Patrick Stein) writes:
> My first thought was, that the mutex_unlock,mutex_lock and the  
conditon_*
> functions are so slow : There are not slow, the  
cthread_detach(cthread_fork...
> is the major speed problem. 
> I need a fast thread execution time, so i will be very very very inter-
> ested in hints or improvements to solve that situation.
> 
> 
>					Jolly
Hi Jolly,
I have the same problem and I'm very interested in a solution of this  
problem. I've implemented an Objective-C Linda Preprocessor, and because  
it simulates several processors by threads, my implementation has slowed  
down to only 10% performance it had under 2.1, so I'm VERY dissapointed  
and a little bit angry.
So, if someone knows a solution, please let me know.

Klaus
--
Klaus Muelheims		mulheims@infko.uni-koblenz.de
Eichenwinkel 10		(NeXTmail welcome)        
                	Voice: +49 261 86518
5760 Arnsberg 1		+49 2932 1601
From: andrew@cubetech.com
Subject: Distributed Objects Experiment - Results
Organization: Cube Technologies, Inc.
Date: Wed, 14 Oct 1992 05:20:47 GMT


OK, today I performed my distributed objects experiment.  Thanks to
everyone who responded and offered to help.  NeXT has one of the best
developer communities thanks to people like you!

OK, the experiment was to determine what the 'range' of distributed
objects was and mainly if they would work over the Internet.  I tried
this during the NS3.0 beta cycle with one of the NeXTedge people (Hi
Greg!), but it was unsucessful due to the wild network security at
NeXT (mainly no packets in or out it seems...).

So today A. Chase Turner (chase@stumpy.cs.orst.edu) and I tried to
determine if distributed objects work over the Internet.  They do.

Just so you get an idea of the pysical locations, I was testing from
the University of Houston (in Texas for our foreign friends) and Chase
was at Oregon State (basically on the other side of the country).

It all just worked.  It took less than a second to make the
connection.  For those who arent familiar with distributed objects
heres the code I used to make the connection:

id server;

server = [NXConnection connectToName:"ChatServer"
	onHost:"stumpy.cs.orst.edu"];


Now server is a local id that represents the object I connected to and
any message I send to it gets sent to the object I connected to on
Chase's machine!!  All automagically!  Over the net!  Cool!

Distributed Objects take all of the pain out of writing distributed or
client/server apps.  You send messages to a remote object *exactly* as
you would to a local object.  I *highly* reccommend that every person
who reads this message and does any development at all read the
Distributed Objects release notes and Intro.

The possibilities for application are limitless, and I'd like to fire
up some discussion on what we can do with this stuff to benefit the
NeXT community at large.

I'm also going to bring up some of the potential problems of having
Distributed Objects work over Internet and what we as developers must
do when we write our distributed apps to overcome those problems.
This has to be done _now_ before DO enabled apps proliferate.

Also, I'm going to put my Chat.app example on the net as soon as I get
a chance.  This is a simple multiuser chat program I wrote with
Distributed Objects.  It's about a page and a half of code (with lots
of comments), so it's very straightforward and easy to grasp.  Much
easier to comprehend than the NeXT provided examples IMHO.

Way to go NeXT for putting such a killer facility into 3.0!!


andrew
-- 
andrew@cubetech.com     | "We shall not cease from exploration
Andrew Loewenstern      |  And the end of our exploring
Cube Technologies, Inc. |  Will be to arrive where we started
                        |  And know the place for the first time." -T.S. Eliot
From: zeno@phylo.genetics.washington.edu (Sean Lamont)
Newsgroups: comp.sys.next.programmer
Subject: Re: C to DSP ASM??
Date: 16 Oct 92 04:12:39 GMT
Article-I.D.: u.1992Oct16.041239.13839
Organization: University of Washington, Seattle

In article <1992Oct15.090739.10959@nmsu.edu> rscott@spock.NMSU.Edu (Joseph Good) writes:
>
>Is it possible to convert certain C functions to run on the 
>Signal Processor??

there is a DSP development kit available from motorola, albeit somewhat
expensive. 
 
-- 
Sean T. Lamont                           |   "Don't oppress me, It's
zeno@genetics.washington.edu             |    'computer of color!' "
lamont@abstractsoft.com                  |_______________________________
Abstract Software                                                         
Xref: sparky comp.sys.next.programmer:6542 comp.sys.next.misc:20656 de.comp.sys.next:1085
From: greyham@research.canon.oz.au (Graham Stoney)
Subject: Re: Implementing select() in an asynchronous device driver. Impossible!
Organization: Canon Information Systems Research Australia
Date: Wed, 14 Oct 1992 05:40:28 GMT

In a previous article, I rambled incoherently:
>I'm having great difficulty writing an asynchronous Unix style device driver
>running under BSD/Mach/NeXTStep. Are there any asynchronous device driver
>authors out there that could help me please?. There's zippo documentation on
>how to do this in NeXT's "Writing Loadable Kernel Servers" manual, and it's
>proving very difficult.

>In particular, implementing select() for the driver is a nightmare; the
>"selwakeup" kernel function is undocumented, and it's operation is different
>to the same function on other BSDish systems, such as a Sun. The only example
>code I can find is from the Sun device driver manual, and it appears to have a
>race condition where the driver could get an interrupt between when the
>driver's xxselect returns false and the kernel puts the process to sleep;
>causing the process to hang since it's already missed the chance to selwakeup.

As you can see, I was deeply frustrated, and certainly not in a fit state to be
posting when I posted this. The problem is with a NeXT machine, and this
probably has a target audience of approximately (or at least very close to)
zero, but I've found the solution, so I'm going to post it anyway.

The problem, which I diagnosed by the ancient art of kernel disassembly, is
that selwakeup (and also wakeup, which I was using elsewhere too) ultimately
calls thread_wakeup, and the NeXT A"Writing Loadable Kernel Servers" manual
states that thread_wakeup can't be called at interrupt priorities greater than
3. Since our server handles NeXTbus interrupts at ipl5, I was doing the wrong
thing, and suffering kernel panics and lockups for it.

The solution is to use kern_serv_callout to call selwakeup and wakeup.

>Is there any hope for me?.
So, there is a tiny ray of hope... just.

Graham
Newsgroups: comp.sys.next.programmer
From: gtalatin@vartivar.ucs.indiana.edu  (Gerard V. Talatinian)
Subject: NXSoundDevice and NXSoundStream examples?
Keywords: NXSoundDevice, NXSoundStream
Reply-To: gtalatin@ucs.indiana.edu
Organization: Indiana University
Date: Fri, 9 Oct 1992 19:01:16 GMT

Hi,

Where can I find example source code illustrating simple uses of the  
NXSoundDevice and NXSoundStream classes (and their four subclasses)?
Any pointers appreciated.
Thanks in advance :-)
Gerard.

************************************************************
* Gerard Talatinian               gtalatin@ucs.indiana.edu *
* University Computing Services   Voice: (812)855-0962     *
* Network Research & Planning     FAX:   (812)855-8299     *
* Indiana University                                       *
************************************************************
From: monty@nextnorth.acs.ohio-state.edu (Monty Zukowski)
Newsgroups: comp.sys.next.programmer
Subject: Working on a Video Editor?
Date: 15 Oct 92 13:11:30 GMT
Organization: The Ohio State University


        I want to help develop a professional video editor for the Next.   
I am a registered Next developer with 1.5 years experience, and I am also
a film and video editor and shooter.  I have worked on the Avid and can see
miles of room for improvements.  I have been researching multimedia issues
such as synchronicity and hierarchical composition.  I have a loose framework
in mind for a program but am most interested in the interface as opposed to
the messy details of time-based multimedia.  As a single developer I realize
that it would take me a couple of years at least to complete such a project,
which is why I am trying to find out if anyone out there is working on one
and needs some help.  I might even work on spec for a share of the revenue
if I felt that it was worthwhile.

Thanks,

Monty
Newsgroups: comp.sys.next.programmer
From: jeffo@uiuc.edu (J.B. Nicholson-Owens)
Subject: Re: 2.0--3.0 binary compatibility
Reply-To: jeffo@uiuc.edu (J.B. Nicholson-Owens)
Organization: University of Illinois at Urbana
Date: Wed, 14 Oct 1992 17:11:38 GMT

Jean Laroche  writes
> How can you manage to compile (on a 3.0 system) an application that will also  
> run on a 2.0 machine????

Only by developing and compiling on the 2.x machine and using that binary on  
the 3.0 machine.  If you do this, however, you won't get to use the new IB and  
all the neat new 3.0 stuff including 3DKit and DBKit.

The best solution (also the most costly but with the most rewards) is to get  
all of your machines up to the latest (3.0) and use 3.0 to the fullest.
-- 
-- Jeff (jeffo@uiuc.edu)
-- NeXTmail ok
From: grs@coos.dartmouth.edu (Gregory R. Sengle)
Newsgroups: comp.sys.next.programmer
Subject: Lisps, AKCL?
Summary: info on lisps for next?
Date: 8 Oct 92 19:23:09 GMT
Article-I.D.: dartvax.1992Oct8.192309.14885
Organization: Dartmouth College, Hanover, NH

I am a computer science student and a very happy NeXT owner.
I will be taking one or more AI courses coming up which require
the use of Common Lisp.  Can someone please explain to me what
the history of the versions of Lisp are briefly, and secondly
what AKCL is, what its history is, and what recommends it, besides
the price.  Is AKCL Common Lisp?  i assume that CL means that, but
how well will AKCL work for theoretical toying of the sort that
computer science classes do, rather than real software development?
Any assistance info etc. will be GREATLY appreciated.
Thanks,
Greg Sengle
--
Gregory R. Sengle       grs@coos.dartmouth.EDU          (603) 643-3590  
Kiewit CRC Consultant     Dartmouth College             (603) 646-2626 
 >>Das war ein Vorspiel nur; dort wo man Buecher verbrennt, verbrennt
     man auch am Ende Menschen.<<  -Heinrich Heine im Jahre 1820
Newsgroups: comp.sys.next.programmer,comp.lang.postscript
From: uad1077@dircon.co.uk (Ian Kemmish)
Subject: Re: PS Level 2 image interpolation
Date: Tue, 13 Oct 1992 19:47:09 GMT
Keywords: Level 2 image interpolation

cartley@slate.mines.colorado.edu (Craig Artley) writes:

>I'm trying to enable Level 2 image interpolation by setting Interpolate
>to true in the image dictionary.  As I understand the description of
>Interpolate on p. 222 of the red book, this should smoothly interpolate
>between sample values when the source resolution is lower than the
>device resolution.  Unfortunately, when i run the code below I simply
>get the same checkerboard result as when interpolation is disabled.
>	
>Am I doing something wrong?
>
> <<Sample PS code deleted>>

Depending on the sophistication or otherwise of your favorite
RIP's interpolating algorithm, the 3x3 pixel example you quote
may simply not be big enough to turn interpolation on.  My clone
uses bilinear interpolation, so your file works fine.  A weird
bicubic algorithm might decide that an image that (in its terms)
was composed entirely of `egdes' was not worth bothering about.

Or it might be a bug:-)

-- 
Ian D. Kemmish                    Tel. +44 767 601 361
18 Durham Close                   uad1077@dircon.co.uk
Biggleswade                       uknet!dircon!uad1077
Beds SG18 8HZ United Kingdom
Newsgroups: comp.sys.next.programmer
From: eps@futon.SFSU.EDU (Eric P. Scott)
Subject: Re: Macintosh Resource Forks in NeXTSTEP 3.0
Reply-To: eps@cs.sfsu.edu
Organization: San Francisco State University
Date: Wed, 7 Oct 1992 06:47:21 GMT

In article <1992Oct2.090910.1000@fizz.fdn.org> ben@fizz.fdn.org
	(Benoit Grange) writes:
>Great, who will now write a library for managing mac resources ?

It's been done.  (Not specifically for the NeXT, but for UNIX in
general.)  No, I can't offer any FTP pointers off the top of my
head--you might try asking in one of the comp.sys.mac.*
newsgroups.

>I also have an other question : 
>How can you find what's the type/creator of a mac file ?

Maybe NeXT will support filename.#info# in a future release.
(hint, hint)

>And an other :
>Why NeXT did not use the de facto standard of Apple Single/Apple Double ?

Least effort?  (But that still doesn't explain why they went with
a variant on Plain Pair rather than Plain Triple.)  (Something
about never ascribing to malice what can be adequately explained
by stupidity?)  In any case, there are _multiple_ de facto
standards, and NeXT should (at the very least) provide something
like A/UX's fcnvt utility to convert between them.

					-=EPS=-