text:
Thanks for the quick responses, that solved my problem of loading the
library (I think).  However now I'm getting a segfault when I try to
use the function below 'alloc_object'.

I don't have the time right now to put together a minimal case to
reproduce the error, and won't until at least Monday.  However is
there an inherent problem in using GC_MALLOC with this type of
struct?  It works fine with malloc and I was under the impression that
GC_MALLOC was more-or-less a drop in replacement.

This is the first time I've used a debugger and it seemed to crash on
this line in alloc_object:
  obj = GC_MALLOC(sizeof(object));

typedef struct object {
  object_type type;
  int refcount;
  union {
    long int fixnum;
    double   flonum;
    char     boolean;
    char     character;
    char     *string;
    char     *symbol;
    struct {
      struct object *car;
      struct object *cdr;
    } pair;
    struct {
      long int length;
      struct object **vec;
    } vector;
    struct {
      struct object *(*fn) (struct object *arguments);
    } primitive_procedure;
    struct {
      struct object *parameters;
      struct object *body;
      struct object *env;
      struct object *docstring;
    } compound_procedure;
    struct {
      struct object *transformer;
    } macro;
  } data;
} object;

object *alloc_object(void) {
  object *obj;

  obj = GC_MALLOC(sizeof(object));
  if (obj == NULL) {
    error("Out of memory\n");
  }
  return obj;
}

Thanks for the help,
Jack Trades


author: Ian Collins

subject: Re: Boehm GC - undefined reference to `GC_malloc'

text:
On 10/ 6/10 09:37 AM, August Karlstrom wrote:

Which is why there is/are namespace(s) reserved for the the
implementation (strxxxx, __xx etc.).

We can also use static linkage to confine our names to the current
compilation unit.  Properly written libraries have all their global
symbols in their headers.

Not really, there are times when you want to be able to interpose over
library functions.


author: [redacted]

text:
August Karlstrom <[email]> wrote:

No, it's caused by the POSIX read() function being in a library.
Library files are only included to resolve missing symbols -- since you
already provided a definition for read(), it's not a missing symbol so
the library definition doesn't get included and thus there's no
conflict.  (Just the "wrong" definition.)


author: Vincenzo Mercuri

text:
August Karlstrom wrote:
[...]
[...]

Try to give that function another name (and modify the function call
consequently).


author: BartC

text:
"Jack Trades" <[email]> wrote in message
news:[email]...

It's unlikely that it is actually crashing inside GC_MALLOC (unless things
have already gone badly wrong; assuming sizeof(object) is fairly sensible,
eg. 24 bytes).

Possibly you no longer need refcount if using GC. I would guess any code
that does things with refcount would need to be suppressed in case it
interferes. What have you done with the free() calls?

These pointers of course will all start with garbage values, but that's also
the case under malloc() (unless you're relying perhaps on chance zero fields
from malloc that is no longer the case with GC_MALLOC).

Is this actual code that is failing? I would check that GC_MALLOC() has
actually been properly linked in then, and the correct prototype has been
compiled. But this can be tested without involving 'object': eg.
GC_MALLOC(24).


author: August Karlstrom

text:
On 2010-10-05 22:46, Ian Collins wrote:

The loyalty of the C programmers towards their language never ceases to
amaze me. ;-)

/August


text:
On 2010-10-05 01:23, Vincenzo Mercuri wrote:

That's a workaround, not an explanation. ;-)

/August


text:
On 10/ 6/10 10:11 AM, August Karlstrom wrote:

It's not loyalty, but something I do every day!

Besides, how else can conflicting symbols be resolved?


text:
August Karlstrom wrote:

I knew...actually I didn't understand that you really wanted to know
what was going on. I didn't read the posts above, so I couldn't
imagine that you really meant to write your own read(). My fault :-)


author: Joseph Zupko

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
Can someone send it to my account? I would sure like to have the
6.2 upgrade patch.


author: Lance Johnson

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
[email] (Joseph Zupko) writes:

Why not drag your butt to Best Buy and drop  $9.95 on the
6.0 -> 6.2 upgrade (read patch).   Or better yet, drop $79.95
on OS/2 2.1 like I did.

crash


author: Joe Whalen

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
I'm hearing that distribution of this stepup is limited to the MS BBS
and, possibly, Compuserve at some later date.  If you find it anywhere
else, it is being distributed illegally.
  Apparently, Microsoft wants to know who every person is that obtains
this step-up.
                                        Joe


author: Marc Brandenburg

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
In article <[email]>, Jari Turkia <[email]> wrote:
|>>>   |>   I'm hearing that distribution of this stepup is limited to the MS BBS
|>>>   |> and, possibly, Compuserve at some later date.  If you find it anywhere
|>>>   You may be interested to know that in the UK, StepUp was distributed as a cover
|>>>   disk on Computer Shopper magazine.
  I live in Minnesota and work at a computer store.  As I was browsing through the new
stock, I found the MS-DOS 6.2 upgrade package.   Yes, microsoft is selling a Ms-dos
6.2 upgrade package.  It's about $40 up here.  I'm not sure that it is released anywhere
else since I haven't seem mention of it on this group.
  I hope that by saying 6.2 patch, you don't mean that dos 6.2 needs a patch already...


author: R.P. May ESE PG

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
In article <[email]>, [email] (Joe Whalen) writes:
|> > Can someone send it to my account? I would sure like to have the
|> > 6.2 upgrade patch.
|>
|>   I'm hearing that distribution of this stepup is limited to the MS BBS
|> and, possibly, Compuserve at some later date.  If you find it anywhere
|> else, it is being distributed illegally.
|>   Apparently, Microsoft wants to know who every person is that obtains
|> this step-up.
|>                                         Joe
|>

You may be interested to know that in the UK, StepUp was distributed as a cover
disk on Computer Shopper magazine.


author: Jari Turkia

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
Some kind soul submitted stepup to wuarchive, but I think it is
	gone with the wind few days ago (it WAS illegal after all).
	But fortunately somebody did get a hold of it and stepup can
	be found on many BBSes nowadays (even tough MS said no to
	spread it).

				JaTu


author: Milo

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
Joe Whalen ([email]) wrote:
: > Can someone send it to my account? I would sure like to have the
: > 6.2 upgrade patch.

:   I'm hearing that distribution of this stepup is limited to the MS BBS
: and, possibly, Compuserve at some later date.  If you find it anywhere
: else, it is being distributed illegally.
:   Apparently, Microsoft wants to know who every person is that obtains
: this step-up.
:                                         Joe
It's also available on Genie in the Microsoft Roundtable.  And yes, they
did require my name, address, etc before I could download it.


author: Dave Jackson

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
In article <[email]>, [email] (R.P. May ESE PG)
writes:
|> In article <[email]>, [email] (Joe Whalen) writes:
|> |> > Can someone send it to my account? I would sure like to have the
|> |> > 6.2 upgrade patch.
|> |>
|> |>   I'm hearing that distribution of this stepup is limited to the MS BBS
|> |> and, possibly, Compuserve at some later date.  If you find it anywhere
|> |> else, it is being distributed illegally.
|> |>   Apparently, Microsoft wants to know who every person is that obtains
|> |> this step-up.
|> |>                                         Joe
|> |>
|>
|>
|> You may be interested to know that in the UK, StepUp was distributed as a
|> cover
|> disk on Computer Shopper magazine.

You may also be interested to know that dblspace.bin needs to be on your hard
disk
to perform the 'stepup'. Hands up those who deleted that months ago :-)


author: Stephen L Wyatt

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
In article <[email]>, Jari Turkia <[email]> wrote:

   Well, if you are going THAT route, then you can obtain just about any
   software on the planet on the internet, if you know where to look.

   not that I condone this practice, I might add.

   I do think its silly to have StepUp on C-Serve, and not ftp.  You can
   track # of downloads on anonymous ftp, which is what I think MS is doing.


author: Lance Andrewes

subject: Re: Where is the MS-Dos 6.2 patch ?

text:
In article <2blh6b$[email]> [email] (Dave Jackson) writes:

It's no big deal.  The readme file says what to do if files are missing
from your hard disk.  I didn't have a dblspace.bin, but did as instructed
and had my D0S 6.0 install disks on hand.  The Stepup procedure copied
the missing files from the A: drive.  Despite my running OS/2 Boot
Manager and Stacker, the installation was no problem.
__
 _______  Email: [email]
////      ZL2AJH    Wellington, New Zealand


author: Mark Folse

subject: Re: Where is the MS-Dos

text:
[email] %l wrote re: Re: Where is the MS-Dos 6

Anybody want to take another, definitive crack at this.  Do *all* of the
DOS 6.0 files need to be installed, or will I just have to sit through
endless Y/n prompts?  What files, if any are essential to running the
uprade?

[email]      11/08/93        13:39
Directory C:\witty\disclaim.ers does not exist. Would you like to create it now?

---
ï¿½ CmpQwk #UNREGï¿½ UNREGISTERED EVALUATION COPY


author: the one and only real true kibo

subject: Re: Papers on the Ariane-5 crash and Design by Contract

text:
-----BEGIN PGP SIGNED MESSAGE-----

On 29 Mar 1997 18:57:02 -0700 in article <5hkh9e$[email]> posted to comp.lang.eiffel, Nick S Bensema <[email]> wrote:

Mirabile dictu -- Bertrand Meyer spoke the truth for the first time
in his fucking life.

I am the only true Kibo.
Finger me for my PGP public key. Check out my home page for the coolest
way to vote on new newsgroup proposals or to issue Usenet cancels.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMz6LzqlPvImbzLKZAQESCQP/ZcBzJ2SI9a78TbAruE9xRvntYfJEUpTN
hbMwHcVPE0n9cZli2a7GZ4Pai7tmvrCONvXybPqlPpB03Y/3gUa0OjBiixQUIf/R
Cwck1T/SfgpvXZw5pHLSuEuJMlLGQzPWL1jgUZb8LUBFAwZiQXoNZhmxDwv4yHXI
Lve9F/qJR0I=
=IrCI
-----END PGP SIGNATURE-----


author: FWM

subject: Re: eBooks - "Black History Books"

text:
Great collection!  It's good to see this.

Cheers,
MWFFWM
"Byron Collins" <[email]> wrote in message
news:[email]...
Chesnutt
Chesnutt
Chesnutt
Washington
Chesnutt
Chesnutt
Washington
Chesnutt
Washington
Chesnutt
Washington
Chesnutt


author: Santosh Kumar Cheler

subject: OE->mbox

text:
I guess this is a common problem, my Outlook Express is overloaded
and I wish to archive my emails. So whats the way to save emails in OE
in mbox format ?

thanks,
-csk


author: Hal Burgiss

subject: Re: OE->mbox

text:
On 11 Jul 2001 21:18:23 -0700, Santosh Kumar Cheler
<[email]> wrote:

Not in comp.os.linux, it's not a common problem.


author: Steve Cochran

subject: Re: OE->mbox

text:
I don't know what mbox format is, but you may want to check Tom Koch's site at www.tomsterdam.com for various methods to backup OE's message store.

steve

"Santosh Kumar Cheler" <[email]> wrote in message news:[email]...


author: Lawrence Mitchell

subject: Re: OE->mbox

text:
* Santosh Kumar Cheler <[email]> in [comp.mail.misc]:

A quick google search turned up a small C program called: oe2mbx,
which should do what you want it to.  It's available under the GPL at:
http://www.gpl.no/liboe either as source (with linux executable), or
as a windows executable.


author: Juanjo

subject: CNC Output Macro needed

text:
I need a SolidWorks macro for controlling 2-axis CNC milling machine.

Thanks for any help you can give!
Juanjo


author: Muggs

subject: Re: CNC Output Macro needed

text:
Juanjo, You could try here as well.
http://www.cnczone.com/
They have some simple software.
Maybe not exactly what you want, but the peeps are very helpful.

Muggs

"Juanjo" <[email]> wrote in message
news:[email]...


author: Brian

subject: Re: CNC Output Macro needed

text:
If all you are doing is extremely simple operations, it can be done
through a macro.  I have written a macro to control a 4 axis milling
machine, but the macro is specific to a single operation and is useless for
anything but its intent.  I am sure the same type could be written for
profiling, slotting, ect.  However, if what you are doing is at all complex,
the time invested in writing a macro would be far greater than purchasing
software.

    For 2d stuff, you might consider bobcad.  I have not used it in since we
bought gibbs, but it did 2d stuff just fine, and it was wicked cheap ( $300
or so when I bought it ).  I have no idea what its capabilities have become
in the last 7-8 years, or what has happened to the price.


subject: Re: CNC Output Macro needed

text:
Hi Brian,

What I need is just simple profiling. Generate the ISO code of a
profile.

Thanks

Juanjo

Brian ha escrito:


subject: Re: CNC Output Macro needed

text:
I don't actually know what I'm doing when it comes to macros.  The one
that I wrote was done via cut and paste snippets of macros that were in the
api help file, and tons of trial and error.  From what I have read, that
should be doable with a macro.  I'd suggest diving into the api file and
doing the same thing I did.


author: Cliff

subject: Re: CNC Output Macro needed

text:
On 14 Jun 2006 08:24:21 -0700, "Juanjo" <[email]> wrote:

  To the tool's centerline?
  Perhaps not so simple as you think ....


author: PATRICK GROTE

subject: AS/400 UTP?

text:
Hello,

        Just to check my facts, you can run TwinAx over unshielded twisted
pair in a daisy chained environment as long as your first run in type 1
cable, right?

        TwinAx transmits on 4&5 right?

        Any other problems/pitfalls I should look out for?

      |   "Electronically Speaking, Patrick Grote . . ."   |
      | Publisher of CyberNews/\[email] |
      |     -=> A Publication on the Leading Edge <=-      |


author: Chuck Green

subject: Re: AS/400 UTP?

text:
In article <[email]>,
[email] (PATRICK GROTE) wrote:

IBM type I cable is a 24ga/4pr with a 100 ohm impedance, as is category
3,4, and five (originally based on ibm's type 3 concept). Though the
impedances are the same for all three, the resistance/capacitance
difference is huge. If you will use a twinax to rj45 balun on each
termination,then use utp for your backbone, your machine will be much
happier seeing the correct load.

it depends on what balun (some use 3 and 5 for isolation) you can tell
your vendor what tip/ring combo you want. Just remember to keep identical
pinouts for all of your workstations.

Actually, make sure your wall outlets have jacks rated for the speed of
your network.

good luck.


author: John Lundgren

subject: Re: AS/400 UTP?

text:
Chuck Green ([email]) wrote:
: In article <[email]>,
: [email] (PATRICK GROTE) wrote:

: > Hello,
: >
: >         Just to check my facts, you can run TwinAx over unshielded twisted
: > pair in a daisy chained environment as long as your first run in type 1
: > cable, right?

: IBM type I cable is a 24ga/4pr with a 100 ohm impedance, as is category

The STP that's commonly known as type 1 has an impedance of 150 ohms.

: 3,4, and five (originally based on ibm's type 3 concept). Though the

Category UTP wire is specified in EIA/TIA 568.  The specifications for
150 ohm STP are separate.  Nothing seems to be mentioned about IBM type 3.

: impedances are the same for all three, the resistance/capacitance
: difference is huge. If you will use a twinax to rj45 balun on each
: termination,then use utp for your backbone, your machine will be much
: happier seeing the correct load.

Actually, the 'balun' isn't really balanced to unbalanced.  It is
balanced on both sides.  I guess it's just a transformer.

: >         TwinAx transmits on 4&5 right?

: it depends on what balun (some use 3 and 5 for isolation) you can tell
: your vendor what tip/ring combo you want. Just remember to keep identical
: pinouts for all of your workstations.

: >         Any other problems/pitfalls I should look out for?

: Actually, make sure your wall outlets have jacks rated for the speed of
: your network.


author: atiaswf

subject: splitting the window in Vim

text:
Dear Group Members!

I've got a question about splitting the window in
Vim. When I type :vsplit, the window decomposes
 into two subwindows, separated vertically. As a
result, I end up with some screen space wasted
on status bars and separation bars. My  question
is - how to get rid of these effects. In short, I'd
love to have only thin lines serving as separators
and no status bars in order to save space.
In addition, is it correct that old vi does not
provide vertical splitting?

Thanks


author: Mikolaj Machowski

subject: Re: splitting the window in Vim

text:
atiaswf scripsit:

You can get rid of status bars with 'laststatus' option. But status bar
will be removed globally. Impossible to remove separation bars because
this is the only way you can see separation in character terminal.

1

m.


author: Gary Johnson

subject: Re: splitting the window in Vim

text:
atiaswf <[email]> wrote:

There is no way that I know of to remove the vertical separator.
You can change its appearance, but you can't get rid of it.

You can remove the status lines with the following command:

    :set laststatus=0

Correct.  That was added to Vim at version 6.0.


author: Mike Meyer

subject: Re: standards committees must die

text:
In <3s6puj$[email]>, [email] wrote:

Considering the number of standards involved in gettings your message
from your machine to mine and my reading it properly, calling them
"irrelevant" seems to be an oxymoron.

Bad ones at that.

	<mike


subject: Feathering the edge of  a transparent  (animated) .gif

text:
Created a nice animation of a rocket ship image in Image Ready (3.0),
by first (in Adobe Illustrator) creating multiple layers of the
drawing; & then eliminating different vector lines (which made up an
exhaust flume out of the tail cone of the ship) in each layer.  I
exported the drawing as a .php file, opened it in Image Ready; &
assigned each different layer (with the visibility of the others
toggled off) as an animation frame.

When the resulting animated .gif file plays, the varying states of the
exhaust flume give the illusion of movement.
I was freakin' happy.

But I created the animation as a transparent .gif for a reason.  It
was to be displayed on a black background on a web page.  When I
preview the file in my browser, there is a thin white rim of pixels
around the outline of the image.

I know how to feather the edge of a selection in Paint Shop Pro (from
years back), but I wanted to create my animation by using Adobe apps,
for reasons of quality.

So . . . how can I feather the edge of this animated .gif?  Can I open
up the .php file & accomplish it in Photoshop, by somehow reducing the
pixels along the edge?  Did it happen when it was optimized in Image
Ready?

Sure could use some help.

Thanks in advance,

mark4man


author: Shank Williams

subject: Re: Feathering the edge of  a transparent  (animated) .gif

text:
On 1 Sep 2003 18:10:12 -0700, [email] (mark4man) wrote:

Yes.
You are describing a .gif "halo". Semitransparent pixels such as those
comprising anti-aliasing are converted to fully opaque, because in
.gifs pixels must be either full opaque or completly transparent. The
default color for the conversion is white, and this is called the
matte color.
You need to set the matte color to black, or whatever the web
background color is.
http://www.sketchpad.net/matte.htm


author: Tacit

text:
You cannot.

The GIF specification does not support it. The GIF format explicitly allows
only one level of transparency; either something is 100% transparent or 100%
opaque. Feathered transparency is not allowed.

You can fix your problem by using the "Matting" setting in ImageReady--that's
what it's there for. It's in the Optimization palette. Set a "matte color" that
is the same color as your Web page background and the fringe of white pixels on
the GIF will disappear.

Hope that helps...


text:
Shank,

The image does not originate as a .gif.  It's origin is that of an
Illustrator file, as exported as a Photoshop file.  It had to be that
way because I had to maintain all the layers (so that the state of
each layer became a frame in the animation.)  It did not become a .gif
until the animation, as created in Image Ready, was saved as an
animated .gif

Any matting that takes place will have to be accomplished in Image
Ready.

Can that be done?

Thanks,

mark4man


text:
Yes. You set the "Matte Color" to the color of your Web background in the
ImageReady "Optimize" palette.


author: Tom Haapanen

subject: INFO: Windows FAQ: How to get it

text:
Archive-name: ms-windows/windows.how-to-find-faqs
Last-modified: 1998-12-17

This is a regularly scheduled weekly posting, which explains how you can
obtain a copy of the various Microsoft Windows FAQ (Frequently Asked
Questions) lists.

The Windows [3.1] FAQ and Windows [3.1] Programmer FAQ (which unfortunately
have not been updated since 1994) are available from:
    http://www.metrics.com/WinFAQ/

There is a Windows 95 FAQ located at
    http://www.primenet.com/~markd/win95faq/faq95intro.html
and along the same lines, the Windows 95 Annoyances FAQ:
    http://www.creativelement.com/win95ann/

The Windows NT FAQ, by John Savill, can be found at:
    http://www.ntfaq.com/            Primary site
    http://www.metrics.com/NTFAQ/    Canadian mirror site

There is one Windows NT 3.51 FAQ; you can find it at:
    http://www.iea.com/~daler/nt/faq/toc.html

There are also two other, specialized, Windows NT FAQs:
    Windows NT Fax FAQ:		http://www.mcs.com/~sculptor/NTFAX-FAQ.HTML
    Windows NT Security	FAQ:	http://www.it.kth.se/~rom/ntsec.html

The Windows NT tips and registry hacks FAQ is at:
    http://www.jsiinc.com/reghack.htm

J. Helmig maintains several FAQs dealing with Windows NT and Windows 95/98
networking:
    http://ourworld.compuserve.com/homepages/J_Helmig/

There are also several Winsock (Windows sockets interface) FAQs:
    Alt.winsock FAQ:	    http://www.well.com/user/nac/alt-winsock-faq.html
    Mastering the Internet: http://twig.hypercon.com/master.htm (*)
			    (*) temporarily unavailable

The WinHelp FAQ is maintained by Arthur Miller:
    ftp://gmutant.wrlc.org/pub/winhelp/whfaq.hlp

Finally, it is frequently worthwhile to check Microsoft's knowledge base
for the questions as well.  You can access this through the Internet at
    http://support.microsoft.com/support/

If you have no FTP access, you can obtain the FAQs using the
decwrl ftp mail server. For instructions, send a mail message to
[email] with a body containing simply:
   help
You will receive a full set of instructions by return mail.


author: Ricardo Oliva

subject: VPN + Series 1700

text:
Hi

I have a series 1700 router and with the VPN module installed.

Now the problem is that whenever I am outside the office and connected
through a dial up, I can see my office windows network but I cannot access
the internet anymore (browsing or e-mail).

I believe that the router is blocking HTTP and SMTP and POP over the VPN.
Any hints on troubleshooting that? Should I start from the client side or am
right assuming that it should be something on the router side?

Thanks


author: Efrin Zimblast Jr.

subject: Re: VPN + Series 1700

text:
"Ricardo Oliva" <[email]> wrote in message news:<3c89083c$[email]>...

In your remote client could you have secured all connections rather
than just the specified connection?


author: Kelly Olsen

subject: Re: VPN + Series 1700

text:
No split tunneling maybe?

"Ricardo Oliva" <[email]> wrote in message
news:3c89083c$[email]...
am


subject: Re: VPN + Series 1700

text:
Thanks for the response.

To be honest, don't know yet. I inherited this system so I do not know how
it was set up. I guess I will have to take a look at the router first and
make sure it is all correctly set up. Will also be checking for split
tunnel.

Thanks
Ricardo

"Kelly Olsen" <[email]> wrote in message
news:Hr9i8.1463$[email]...
access
VPN.
or


author: Alan Po

subject: Please suggest a good XML editor

text:
Dear All

I have tried some XML tools to build XML but all of them are not easy to
use. Is there any good XML editor? Please recommend one to me.

Thanks a lot

Alan Po


author: Preylude

subject: Re: Please suggest a good XML editor

text:
[posted and mailed]

I had the same problem and hence started developing a simple open source
XML editor.  I am currently looking for feedback and testing.

It is capable of doing basic edits on arbitrary XML files and it a good
replacement if you are trying to use Notepad or that old Microsoft XML
Notepad.

You can find it at http://s3m.com/hidam/

"Alan Po" <[email]> wrote in news:apnk00$h7v$[email]:


author: Morphon Technologies

subject: Re: Please suggest a good XML editor

text:
On Wed, 30 Oct 2002 11:34:41 +0800, Alan Po wrote:

You could take a look at our Morphon XML-Editor. There is a 30 day demo
license available:

http://www.morphon.com/


author: Philipp Moser

subject: Re: Please suggest a good XML editor

text:
Alan Po wrote:

Try KXMLEditor if you are a Unix user.
http://kxmleditor.sourceforge.net/
--------------------------------------
XML is the ASCII for the new millenium.
(Cocoon documentation)
--------------------------------------


author: "Andrew Tyson"

subject: Re: Please suggest a good XML editor

text:
I have been using XML-Spy for developing XSL-T and XSL-FO stylesheets quite
successfully. There is also a freeware product called XMLCooktop.

Andrew


author: Antonio

subject: Re: Please suggest a good XML editor

text:
You can try with XmlSpy

"Alan Po" <[email]> escribiï¿½ en el mensaje
news:apnk00$h7v$[email]...


author: Gert Baudoncq

subject: Re: Please suggest a good XML editor

text:
There is a quite complete overview on XML editors:
http://www.xmlsoftware.com/editors.html

Making a choice depends on what you're going to do with XML.
For 'real' XML editing an editor like for instance XMetal is a good
choice.
For building XML applications, XML Spy is a good choice.

BR,
Gert

"Andrew Tyson" <asptysonATyahooD0TcomD0Tau> wrote in message news:<3dbf8575$0$12762$[email]>...


author: [redacted]

subject: Re: Please suggest a good XML editor

text:
Hello

I may suggest you our XML editor, you can see his features and
download the latest release here :

http://www.lucid-it.com/lxe.html

Goodbye


author: yag

text:
On an Etrella 200 with AIX, how can i go in maintenance during the boot and
when ? (i have no other boot disk, cd or tape).
Or how can i take the hand (to open an other session) during the NIS failed
interrogation? (NIS: Serveur not responding for domain "xxx"; still trying.)
Your comments would be much appreciated.

Thanks,
yag.

Suite ï¿½ une erreur de manip en prï¿½parant un domaine validï¿½ ï¿½ tort, il ne
peut trouver le serveur: Normal il n'y est pas encore.
(NIS: Serveur not responding for domain "xxx"; still trying.)
Je souhaite donc prendre la main en mode maintenance... Et impossible
pour le moment. Il n'y a pas non plus de clef de maintenance. Et je
n'ai pas d'autre disque, cd ou bande bootable (en cours de montage).
Ou alors comment ouvrir une autre session pendant
qu'il cherche le serveur...?
Merci,
yag.


author: John R. Campbell

subject: Re: NIS: Serveur not responding for domain "xxx"; still trying.

text:
On Sat, 29 Dec 2001 12:45:23 +0100, yag <[email]> wrote:

	To the best of my knowledge (running on IBM hardware) only the
	old RS/6000 systems (with the key allowing a service mode boot)
	will have an ability to go into service mode.  I've not been
	able to (conveniently) perform a service-mode boot on a CHRP
	system (despite multiple attempts) so the boot media becomes
	critical.

	I run a NIS environment and this is a bear-  all because the
	system requires the authentication mechanism to be in-place
	before proceeding (well, given that subsequent processes being
	started via /etc/inittab are likely to need these YP'd UIDs)
	so only a maintenance shell (from the boot media, even a mksysb
	tape will help) or going into single-user mode (via a service
	mode boot) will allow this bypass.  (You _do_ have the root
	password, right?)

	Once you do, though, you can either turn off rcnfs in the
	inittab ("wait" becomes "off") so the system will (kind of)
	boot normally (though any subsequently launched apps may not
	run until NIS has been restored or that NIS information placed
	into the appropriate files (/etc/passwd, /etc/hosts, etc).

	If your problem is the system no longer is sitting in a subnet
	containing a NIS slave server you may need to cheat-  you'll
	want to "smitty yp" and remove the NIS client configuration
	(re-enable rc.nfs's startup in /etc/inittab first, please,
	but don't reboot yet) and then re-configure it as a NIS
	client but specify the IP address of the NIS host.  This will
	he helpful.

	(As you can probably tell, I've fought this battle before...
	...too many times, I might add.  And, considering my server
	farm is still in the process of coming up after a move, this
	ain't pretty.  Fortunately I realized the problems and had a
	shutdown script that withdrew these systems from NIS before
	proceeding...)


text:
Yes, i have root password but i have no boot media here... So, i do wait for
it as you said.
I have forgot to take the boot media with me. But i would like to perform
the service
the during the hollydays.

I have tried by the com1 with a W98 hyper terminal... But no response.
Perhaps not the good params? Wich are ? Or not possible?

Thanks for your contribution,
yag

"John R. Campbell" <[email]> a ï¿½crit dans le message news:
[email]...


subject: Service Mode boot on CHRP/PReP w/o media (was: NIS: Server not responding...)

text:
On Sat, 29 Dec 2001 17:41:09 +0100, yag <[email]> wrote:

	A lot depends upon whether you can boot into service mode.  The older
	IBM RS/6000 (bootinfo, I forget the option, would report rs6k as the
	architecture) have a key that can select service mode.

	I *believe* there is _supposed_ to be a way to get a service mode boot
	on a CHRP or PREP (chrp or rspc) architecture machine, but, alas, I
	have never found the way;  It's been easier for me to find my hoarded
	install CDs.

	Logical-  I've discovered that (in an international company) that the
	only "convenient" outage window is between Christmas and New Year's
	day.  Over the years I've done my darndest not to get burned.

	You may not get around this issue this time, but next time?

	Your problem may be one of ensuring that the RS-232 cable is correct.
	If I recall correctly, the console is expecting to see a DCE device
	at the other end of the cable, so you usually need to fake it out
	with a null modem.  Additionally, the system wants to see the DCD
	signal back.

	I use RJ-11 modular jacks and both DB-9 and DB-25 connectors.  I
	don't have the pinout handy for the DB-9s but I know enough of the
	DB-25 signalization to generalize:

		Pin @ RS6K	---	Pin at Console terminal
			1	 -	 1		Frame Ground
			2	 -	 3
			3	 -	 2
			4---+				RTS
			    |
			5<--+				CTS
			7	 -	 7		Signal Ground
			8<--+				DCD (Carried Detect)
			    |
			20--+				DTR

	This provides the necessary signalization to get around a port
	that can't easily be CLOCAL'd in stty.

	I'm sorry I can't be much more help to you.  Perhaps google can
	find a reference?

	(I just took a quick look via google's advanced search and there
	t'ain't much there...)


author: Ian Northeast

text:
yag wrote:

Given the lack of boot media, it may be easier to fool it into starting
up by supplying a dummy NIS server. If there is another Unix machine on
the same network segment and subnet you can temporarily start a NIS
server in the same domain to get it to the point where you can log in
and disable NIS from /etc/rc.nfs. The temporary server doesn't have to
function properly - it can have no maps (don't leave it running long if
there are any other clients). If such a machine isn't available then you
should be able to do something similar by attaching a laptop running
e.g. Linux or BSD with a crossover cable.

The only time I have seen a NIS client completely stuck and single user
mode required was when someone took the NIC out, causing AIX to remove
the IP details from the ODM so even putting the NIC back in didn't help.

I have always regarded this as a fault in AIX but I had cause to notice
yesterday that Solaris behaves the same. It's easier to get into single
user mode though.

Regards, Ian


text:
On Sun, 30 Dec 2001 11:33:49 +0000,
	Ian Northeast <[email]> wrote:

	I had not thought of this trick.  I'll hafta remember it since
	my notebook computer is dual boot-  carrying a Linux environment.
	(Considering it's a SuSE environment, it's pretty complete.)

	Hmmm...

	Right, this is "boot media needed NOW!!!"-  or, as I euphemize
	this, a "KYBG" event.  I'm not even sure a service mode boot
	could help this.

	Additionally, removing the NIC doesn't blow away the configuration
	until you've run a "diag -a" to remove the definitions.  If you
	restore the NIC to a different slot, though, you're still gonna
	KYBG.

	There is a certain amount of logic to this, since, once NIS is
	used, there are processes in the /etc/inittab that will tend
	to require the information provided via YP.  It'd be nice if
	there was a way for a NIS failure to automagically perform an
	"init 1" to force a single-user boor (for maintenance) though
	this causes a different set of anxieties-  AIX (and others)
	are trying to come up for "real work" with a minimal amount of
	operator intervention.  NIS/YP has to be considered a CRITICAL
	PATH for system operations and (for that reason) hardened to
	a major degree.

	As it stands, though, NIS is considered a risk, even on a company's
	intranet, so NIS needs to be phased out.  A useful cross-platform
	(AIX, Solaris, Linux, BSD, Slolaris) replacement would be a nice
	solution- though this may qualify as a fantasy.


text:
It's exactly that I have: No IP details from the ODM. And so, I need the
boot media...
Thanks for your contribution. I will remember that bug from me.
Regard,
yag

"Ian Northeast" <[email]> a ï¿½crit dans le message
news: [email]...


author: Bernd Eggink

subject: How to preload audio clips in applet?

text:
Hi,

is it possible to completely load audio clips in an applet at the
beginning, whithout actually playing them? For example a clip that is to
be played when the player has won in a game, which may occur at a time
when the connection has already been closed?

Unfortunately including the audio files in the jar file isn't the
solution, because this doesn't work with Netscape. Any known workaround?

Regards,
Bernd


author: Crestfallen

subject: Re: How to preload audio clips in applet?

text:
Use a MediaTracker.  If you go to
http://java.sun.com/products/jdk/1.2/docs/api/index.html
Go to the java.awt classes and look at the MediaTracker class.  There is a
good explanation and an example applet that uses it there.

Codito ergo sum...
To code or not to code...

Bernd Eggink wrote in message <9343q9$9la$[email]>...


author: Larry Hannay

text:
Ran into this problem myself - including being "foiled again" by Netscape.
To my knowledge there is no way to pre-load an AU file without playing it.

However, there is a guy named Dirk Bosmans who was very helpful during
conversations about this problem. He (and/or his company) has found a way to
package AU files in JAR files so Netscape (and obviously Internet Explorer)
can access them. I haven't tried his product, but you can check it out at:
http://users.belgacombusiness.net/arci/

Hope this helps,
Larry

Bernd Eggink <[email]> wrote in message
news:9343q9$9la$[email]...


text:
Crestfallen <[email]> wrote:

Hm, I know the MediaTracker class, but it doesn't support sound clips in
JDK1.1.x.

Any other ideas?

Regards,
Bernd


text:
Larry Hannay <[email]> wrote:

It certainly does. Thank you! This software works great. Simply add some
of their classes, change one or two lines in your code, and voila!

Regards,
Bernd


author: Naiki

subject: Connecting two PCs at home?

text:
Hi there!

I have two PCs at home, both equipped with:

- Windows 98SE
- Ethernet Card

In adittion, I have also a crossover ethernet cable.

Can I connect both PCs in a LAN for sharing and transferring files?
How?

Thanks a lot!


author: JKGordon

subject: Re: Connecting two PCs at home?

text:
You've pretty much covered it already. Once you have the Ethernet cards
installed properly, connect the two machines via your crossover cable.
Install TCP/IP on both machines (Control Panel>Network>Add>Protocol),
configure both machines to be in the same subnet (With different addresses
of course, say 10.0.0.1 & 10.0.0.2 w/ a mask of 255.0.0.0, or whatever),
enable NetBIOS over TCP/IP (under the NetB tab), finally, give the machines
different names (under the Identification tab) but put them in the same
workgroup. You could also install NetBEUI or IPX/SPX if you have a need to
use them. Windows will most likely ask you to reboot the machines at least
once in there. Best of luck with your home network.

JGordon
Brainbench MVP for Windows NT4 Workstation
http://www.brainbench.com

Naiki <[email]> wrote in message
news:96jn6o$24g$[email]...


subject: RE: Connecting two PCs at home?

text:
Thanks JGordon,

I already did all what you mention, but couldn't see the PCs in the network
neighbourhood. Finally I found out what the problem was!! I will explain it
here just for the benefit of those who might be in the same situation.

Because I prevously had these two PCs working at the office, with DHCP, I
had disabled the option "Examinar principal" (sorry, my Windows 98 is in
Spanish - the translation into English should be something like "main
examiner"). This option is in the tab "Advanced" of the "Share printers and
folders in Microsoft networks" properties dialog box, located in Control
Pannel/Network.

All I had to do is enable this option and ... voila! my home network is
working perfectly.

======================
JKGordon <[email]> escribiï¿½ en el mensaje de noticias
9uhk6.17734$[email]...
machines


author: R Raskolnikov

subject: Re: NT causes $10M loss [Was Uptime Discussion]

text:
David J. Owens wrote:

Bla bla bla, who gives a damn, this is just more microsoft cheerleading.

I talk to plenty of folks who admin both Unix and ms pee cee servers, and they
tell quite a different tale.

I suggest that you are hiding the problems you encounter in "nt", seeking to put
the best foot forward.

rr


author: Robert Iacullo

subject: Re: Bill Gates is KING

text:
Tony Firshman wrote:

If you pay any attention to what Bill Gates is about you know that he wants to eliminate ALL competition,
and be the sole vendor of software.  Monopolies are NEVER good for anyone.  That is why they are against
the law.  The less you buy from Microsoft the better off we all will be.


author: John Sun

subject: HP 6020i won't read some disc!!

text:
Hi, I was wondering if anyone have the same problem with their HP 6020i
CD-R?  I tried a few discs the other day, a Kodak gold and a silver
pressed music CD and both of them was not recognized by the drive.  The
green light would blink for a bit, then go out.  I know these discs are
readable in a regular CD-Rom drive.  Have anyone had this experience
before and found a solution?  Is my drive defective or does it need some
cleaning?
Please respond via e-mail.
Thanks
John


author: Adam Kucharski

subject: Store Procedure Builder hangs (AIX 4.3, DB2 v.7.1, XLC)

text:
Hello All !!!

When I'm trying to build stored procedure with SPB - it hangs while
done 70% and  Registering ...
I'm looking LOG files and tehy are:
*** PREPCOMPILE /database/db2taran/sqllib/function/routine/sqlproc/TARANPRO/DB2TARAN/tmp/P2529630.sqc
***

LINE    MESSAGES FOR P2529630.sqc
------  --------------------------------------------------------------------
        SQL0060W  The "C" precompiler is in progress.
        SQL0091W  Precompilation or binding was ended with "0"
                  errors and "0" warnings.

*** COMPILE /database/db2taran/sqllib/function/routine/sqlproc/TARANPRO/DB2TARAN/tmp/P2529630.c
***

#!/bin/sh
PATH=$PATH:/usr/ibmcxx/bin
PATH=$PATH:/usr/lpp/xlC/bin
export PATH

SQLROUTINE_FILENAME=P2529630
export SQLROUTINE_FILENAME
export SQLROUTINE_ENTRY=pgsjmp

xlC -H512 -T512  -I/database/db2taran/sqllib/include P2529630.c
-bE:P2529630.exp -e pgsjmp -o P2529630 -L/database/db2taran/sqllib/l
ib -lc -ldb2

*** /database/db2taran/sqllib/function/routine/sqlproc/TARANPRO/DB2TARAN/tmp/P2529630.exp
***
pgsjmp

----------------------------------------------------------------------------

SQL7032N  SQL procedure "PROC_AK" not created.  Diagnostic file is
"P2529630.log".  SQLSTATE=42904

Can anyone help me ???

Adam.

P.S.
Sorry for my bad English.


author: Dirk "db2scout" Wollscheid

subject: Re: Store Procedure Builder hangs (AIX 4.3, DB2 v.7.1, XLC)

text:
Hi Adam,

"Adam Kucharski" <[email]> wrote in message
news:[email]...

When it hangs:
- does the compiler create the P2529630 file?
- try to copy one of those Pxxxx.c and Pxxxx.exp files and run the compiler
command from the shell. Maybe the license server doesn't respond or
something.

That's the least you should worry about here. I'd rather have a posting with
lots of error messages and diagnostic info then one in perfect english! ;-)


author: Niels L. Ellegaard

subject: g77: subroutine foo(rwork,g) \\ real*8 rwork(n)-> segmentation fault

text:
I have found a nice piece of math software on netlib, and I am trying
to compile it under g77, but I get some weird segmentation errors that
I do not understand.

I am writing here to ask if this is a known problem, and if there is
an easy fix.  Furthermore I am confused whether this is a gdb problem
or a g77 problem (or just a sign of my general ignorance).

                   Thanks in advance

                        Niels

My problem occurs in many subroutines on the following form

 SUBROUTINE testme (RWORK,n)
      integer n
      REAL*8 RWORK(n)
      write(*,*) ' I stop here to run gdb'
      RETURN
 END

When I run the program for real I get some segmentation faults, and in
order to test what is going on I am debugging the program using gdb. I
have put a break point in the main program at the line "CALL
testme(RWORK,LRW)". Now I can write out some variables

(gdb) p lrw
$13 = 8802
(gdb) ptype lrw
type = integer
(gdb) p &lrw
$14 = (PTR TO -> ( integer )) 0xbfff2938
(gdb) ptype RWORK
type = real*8 (8802)
(gdb) p &rwork
$15 = (PTR TO -> ( real*8 (8802))) 0x808cec0
(gdb) p rwork
$16 = (0, 0, 0, ... osv )

Now I move into the subroutine testme

(gdb) s
Breakpoint 3, testme_ (rwork=0x808cec0, lrwork=0xbfff2938) at testme.f:6
(gdb) p n
$17 = (PTR TO -> ( integer )) 0xbfff2938
(gdb) ptype nk
type = PTR TO -> ( integer )
(gdb) p *n
$18 = 8802
(gdb) p rwork
$19 = (PTR TO -> ( real*8 (-1))) 0x808cec0
(gdb) p *rwork
$20 = ()
(gdb) p rwork(1)

Program received signal SIGSEGV, Segmentation fault.  0x0809e1f3 in
f__syl () The program being debugged was signaled while in a function
called from GDB.  GDB remains in the frame where the signal was
received.  To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (rwork.0) will be
abandoned.

I am slightly confused about the "set unwindonsignal on". I cannot
find it in the manuals, but searching google I can find a few old
bug-reports realting to it.

I am compiling with the following flags, and I am linking several
*.o-files together in the program.

 -g -pg -W -Wconversion -Wcast-qual -Wpointer-arith -Wwrite-strings
 -Wcast-align -Wshadow -Wno-implicit-int -Wno-return-type
 -Waggregate-return -Wcast-align -Wcast-qual -Wcomment -Wconversion
 -Wformat -Wimplicit-function-declaration -Winline -Wlong-long -Wmain
 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs
 -Wno-import -Wparentheses -Wpointer-arith -Wredundant-decls
 -Wreturn-type -Wshadow -Wstrict-prototypes -Wswitch -Wtraditional
 -Wtrigraphs -Wwrite-strings -Wsurprising -fbounds-check -Wno-globals

My g77 is slightly old, since I am using Debian/stable
i19:~$ g77 --version
GNU Fortran 0.5.25 20010319 (prerelease)
Copyright (C) 1997 Free Software Foundation, Inc.
For more version information on components of the GNU Fortran
compilation system, especially useful when reporting bugs,
type the command `g77 --verbose'.
i19:~$ gcc --version
2.95.4


author: Toon Moene

subject:
Re: g77: subroutine foo(rwork,g) \\ real*8 rwork(n)-> segmentation
 fault

text:
Niels L. Ellegaard wrote:

How did you declare RWORK in the main program ?


subject: Re: g77: subroutine foo(rwork,g) \\ real*8 rwork(n)-> segmentation fault

text:
Toon Moene <[email]> writes:
[snip]

I just discovered the existence of ftncheck, and I realize that my
package some errors. The problem is that vectors and matrices are used
interchangably. In the main program I have something like

N = ..
N1 = ..
N2 = ..
real*8 rwork1(N)
call foo(rwork1(1),N1, rwork1(1+N1),N2,...)

The highest subroutine looks like

subroutine foo(A,N1,B,N2)
real*8  A(1), B(1)

In even lower subroutines the variable A is casted to be a matrix. (My
error was generated in a low level subroutine). I will toy with the
option -fugly-assumed, or rewrite the package to remove all the errors
reported by ftnchek.

                                Niels


author: Slor

subject: Re: Woody PSU

text:
Despite all prevention efforts, "ï¿½luepig" <[email]> wrote
in news:cahqcl$bkp$[email]:

The tip on that power supply is positive.  Any 9-volt PSU (including a
multi-voltage) with at least 500 mA output should do you just fine.


author: Edward S. Baiz Jr.

subject: Re: Woody PSU

text:
I would try either Best Electronics or maybe B&C Computers. It
should run you about $5-$10.


author: momo

subject: Re: Woody PSU

text:
"Slor" <[email]> wrote in message
news:Xns9508D3FDCA92emuslor@130.133.1.4...

I cant remember if thats DC or AC and mine is packed away at the moment.
Mo


subject: Re: Woody PSU

text:
Despite all prevention efforts, "momo" <[email]> wrote in
news:Beezc.27579$[email]:

It's DC.  Also, there are some buy-it-nows on eBay as low as $7.50 for a
NOS Atari unit.


author: Glyn Millington

subject: LateX and liturgy

text:
Greetings!

One of the things I do quite often is produce liturgical texts for
printing. It would be really good to use LateX for this - a touch of
class!   I wondered if anyone else does this and has found particular
packages useful?  I've found the verse package, which has some useful
features ;-)  Is there anything else?

When I try "LateX liturgy" on Goolge I get advice about the quality of
condoms!

If it helps I'm running LateX on Linux (Debian)

tia

Glyn


author: Patrick TJ McPhee

subject: Re: LateX and liturgy

text:
In article <[email]>,
Glyn Millington  <[email]> wrote:

% One of the things I do quite often is produce liturgical texts for
% printing. It would be really good to use LateX for this - a touch of
% class!

You might want to consider using plain TeX or ConTeXt as well (I don't
want to start a religious discussion, though).

%          I wondered if anyone else does this and has found particular
% packages useful?

I haven't, and I mostly just wanted to make the joke above, but you
should look at packages for typesetting plays, for instance drama.sty.


author: Ken Starks

subject: Re: LateX and liturgy

text:
In article <[email]>, Glyn Millington
<[email]> writes

Its several years ago, but I have produce a few Service sheets for
an annual Carol Service, and a few (very short) weekday services.

I did play around with film-script and Broadway styles, but eventually
found it easier to start my design from scratch ( OK, from the article
class ).

My main advice would be that you use _logical_ mark-up with more
categories rather than fewer. Some musicians get frightfully
upset if you confuse a chorus with a refrain, for example.

For the actual style of presentation, I tried to give a look that
was very similar to what the congregation were used to:
   + the Alternate service book
   + The English Hymnal
        + Songs of Praise ( which the parish changed to )
   + The New English Bible
         although I also 'improved on it' in a few places.

My main difficulty was applying double-line kerning after a dropped
Capital. 'Songs of Praise' does this a lot, mainly when the first
word of the Hymn is 'Lord', and the reminder of the first line is
kerned right back into space in the upper half of the L.

By the way, if you haven't tried, you get quite a few relevant hits
on Google if you search for:
      Liturgy Typography Anglican

Good Luck (from an atheist),


author: Paul Stanley

subject: Re: LateX and liturgy

text:
Glyn Millington <[email]> wrote in message news:<[email]>...

I have done this quite a bit: LaTeX does an excellent job. In the end,
I developed a number of environments to help with particular tasks.
For instance, one can define an "all" environment to print a prayer in
bold type to show that the congregation should join in and so on, and
a "rubric" environment for directions, etc. None of these is
individually difficult to define, and if you put them together into a
style file you can easily use them.

The main problem, in my experience, is spacing. One generally wants to
keep single prayers and readings together on the same page, and
getting the spacing right can mean a certain amount of manual
adjustment with repeated runs. I have tried various tricks to get this
to happen automatically (or to break prayers at sensible places), but
none of them is wholly successful.

You should also give some thought to fonts. Attractive as they are in
their way, I doubt that the rationalistic and somewhat academic air of
the CM fonts is really what one wants. Of the ubiquitously available
postscript fonts, Palatino does quite nicely.

Paul Stanley


author: Peter Flynn

subject: Re: LateX and liturgy

text:
Glyn Millington wrote:

My company used to do a lot of this, but a very long time ago, so
it was plain TeX, not LaTeX. We developed a set of macros for the
standardised parts of the ceremonies so that we could produce weekly
sheets for a number of denominations. I probably have them on tape
somewhere, but they would almost certainly not be useful if you are
using LaTeX.

The latex analogy is obvious: where on earth do they get the liturgical
input to the condom pages (maybe better not to ask :-)

The ideal platform.

///Peter


subject: Re: LateX and liturgy

text:
Ken Starks <[email]> writes:

Good thought!!  And thanks for the other advice!

And also with you!

tvm

Glyn


subject: Re: LateX and liturgy

text:
[email] (Paul Stanley) writes:

Many thanks for the hints!

Glyn


author: Ed Avis

subject: Re: LateX and liturgy

text: What font did Knuth use for his book 3:16 Bible Texts Illuminated?


author: John Culleton

subject: Re: LateX and liturgy

text:
[email] (Paul Stanley) wrote in message news:<[email]>...

To keep things together in plain TEX and its direct descendants
(pdfetex, TeXsis, Context) there is the \filbreak macro, which reads
like:

\def\filbreak{\\par\vfil\penalty-200\vfilneg}

Will this work in LaTeX? Who knows. In other varieties it forces a
page break unless there is room on the page for another body of text
also terminated by a page break.

I sometimes take an ecumenical approach---pirating macros from e.g.,
TeXsis and using them in eg., Context where the macro's author never
intended. But this means giving up on LaTeX, which is a thing unto
itself.


subject: Re: LateX and liturgy

text:
Peter Flynn <[email]> writes:

Thanks - I'm certainly NOT competent to make use of those at the moment!
More and more of my work is done with LaTeX, but TeX is beyond me, and
will probably stay that way ;-)

But even with a little fiddling the LaTeX output is so much better than
anything I've produced before.  I'm working on it!

thanks again

Glyn


author: Stephen Moye

subject: Re: LateX and liturgy

text:
I would certainly like to see your plain macros for this. I do the same
myself using plain and would love to compare notes

Stephen Moye
[email]
Publications Technical Support
American Mathematical Society


author: Walter Schmidt

subject: Re: LateX and liturgy

text:
Ed Avis schrieb:

Computer Modern Roman.  Indeed!

The envelope was designed by Zapf, using Palatino (and perhaps
also another font, which I cannot identify right now).


author: John Burt

subject: Re: LateX and liturgy

text:
It might not do all that you want, but the macro package poemscol.sty
for typesetting collections of poetry, may be useful to you. There's
some advice in the manual about manipulating penalties and such in
order to keep some things on the same page and promote page breaks
elsewhere. I think that poemscol might work well with drama.sty. I
hadn't thought of setting dramatic poetry, which in a way a liturgy
is, but I think the macros in the two packages shouldn't step on each
other's toes.  You might also try memoir.cls, which I haven't used but
have heard good things about.
John Burt
Brandeis University


subject: Re: LateX and liturgy

text:
Glyn Millington wrote:

Definitely. I was a die-hard plain TeX user until LaTeX2e stabilised
and since then I haven't looked back. Mind you, knowing some of the
plain TeX internals is very useful at times.

The most complex thing we set was a comparative cross-denominational
Mass/Communion leaflet for an ecumenical celebration in the mid 80s.
The parallel components had to line up, of course, and sometimes both
of them had embedded paragraphic rubrics (where the main text flows
around an unframed square para set in smaller type). The biggest
compliment I got was when a rather stuffy high-church Anglican priest
asked me where I had photocopied the text from, as he wasn't aware
that a parallel edition of this type had been published before (Computer
Modern having misled him into thinking it had been printed in the
previous century :-) Unfortunately the celebration was cancelled and
the leaflet never printed or used (fortunately before we had done
more than the first few pages).

Doing this in LaTeX nowadays would be hugely easier.

///Peter


subject: Re: LateX and liturgy

text:
Stephen Moye wrote:

I'll see if I can find them, but there are rather a lot of tapes and
they take quite a while to read, mainly because I can't remember the
filenames involved.

///Peter


author: David Frank

subject: Whats the Decimal support fuss?

text:
IMO, QUAD floating point IS a superior feature to PL/I's decimal support
since with its support you can duplicate PL/I and COBOL 33 digit decimal
results.

I found a 87 message april/2002 topic in comp.lang.fortran this morning
"Floating Point Formats" and it contains lots of comments about supporting
decimal calculations.. MANY comp.lang.pl1 newsgroup regulars had replied to
this topic..
The PLI'ers were of course making a big deal out of decimal support implying
Fortran could not easily support this feature.
I just spent 1 hour working up a simple decimal support module that seems to
me DOES support equivalent decimal calculations..
Below supports 16-digit decimal calculations now, and I assume my next CVF
(IVF) compiler will have QUAD precision floating point which will allow
decimal routines below to support 33 digits..
note: Lahey LF95 and Intel Fortran compilers already support QUAD fp..

module decimal
contains
function Dadd(a,b,n)  result (c)
character(33) :: a, b, c
integer :: n          ! # fractional digits output
real(8) :: x, y
read (a,'(f33.0)') x
read (b,'(f33.0)') y
write (c,'(f33.<n>)') x + y
end function

function Dmul(a,b,n)  result (c)
character(33) :: a, b, c
integer :: n
real(8) :: x, y
read (a,'(f33.0)') x
read (b,'(f33.0)') y
write (c,'(f33.<n>)') x * y
end function
end module

program test
use decimal
character(33) :: a, b, c
a = '123456789.00'
b = '.01499'       ! invoke .xx truncation
c = Dadd(a,b,2)
write (*,*) c      ! outputs 123456789.01

b = '.01501'       ! invoke .xx rounding
c = Dadd(a,b,2)
write (*,*) c      ! outputs 123456789.02

c = Dmul(a,b,4)    ! invoke .xxxx accuracy 123456789 x .01501
write (*,*) c      ! outputs 1853086.4029 truncated from xxxx.40289 exact
end program


author: Rob James

subject: Re: Whats the Decimal support fuss?

text:
David Frank wrote:

No, decimal floating point is not quite equivalent to any precision of
binary floating point.  For example, you might get a truncation of a
number that's not exactly representable in binary, but get an exact
answer in decimal (or vice-versa).  This would cause small differences
in intermediate calculations, causing larger differences in the final
result of a complex expression.  These differences would likely be
noticeable within 33 decimal digits.

A Google search for decimal floating point will find
http://www2.hursley.ibm.com/decimal/ .  The Decimal Arithmetic FAQ at
this site is especially good, IMO.  The answers to the first couple of
questions explain some of the differences quite well.


author: Myron A Calhoun

subject: Re: Whats the Decimal support fuss?

text:
Although I've never used it, I recall that one of the libraries
of MS FORTRAN 5.x supports the PC's decimal arithmetic mode.

--Myron.


subject: Re: Whats the Decimal support fuss?

text:
http://home.cfl.rr.com/davegemini/decimal.txt

contains a program that estimates the world's population 100 days into 2000
using my decimal routines,
Btw, no bankers rounding was used, so I'm wondering if someone will try the
same math using their decimal support
(any language except poor decimal-less Fortran will do,    delphi, visual
basic, cobol, ada, pl/i   etc..)

note the decimal results agree with results using standard fortran
evaluation..


subject: Re: Whats the Decimal support fuss?

text:
"Rob James" <[email]> wrote in message
news:[email]...
<snip>

Note my technique maintains intermediate outputs (c) at same precision as
decimal calc.
so that subsequent operations with c dont propagate into a different result.
While true that  '0.300' isnt exact once converted to binary fp, any use of
it is exact enuf for the formatting output to FORGIVE these little
in-exact-a-tudes..

a = '0.300'
b = '0.00'
c = Dadd(a,b,2)
write (*,*) c       ! outputs 0.30    so whats the problem with 0.300 being
inexact at one step in this calc?

Can you (or anyone) with a decimal support compiler, post a 16-digit (+-*/)
calc. that illustrates your case against my technique?


subject: Re: Whats the Decimal support fuss?

text:
"Myron A Calhoun" <[email]> wrote in message
news:am3ejm$[email]...

Probably outrages the committee even now to learn MS attempted to bypass
them by adding some decimal support. Also when they learn Fortran.NET users
have access to same 96-bit decimal routines used by VB.NET in the MS net
framework via:    Use System.Decimal


subject: Re: Whats the Decimal support fuss?

text:
David Frank wrote:

<snip>
result.
use of
being
(+-*/)

Well, I don't have a compiler at my disposal that has decimal support,
so I'll just have to refer you to that FAQ again:
http://www2.hursley.ibm.com/decimal/decifaq.html

They have some pretty good examples there, using doubles, not quads, but
the same stuff applies, it just takes more significant digits to see it.

If I may quote that FAQ to you for a second:

[begin quote]

Using double binary floating-point, the result of 0.70 x 1.05 is
0.73499999999999998667732370449812151491641998291015625; the result
should have been 0.735 (which would be rounded up to $0.74) but instead
the rounded result would be $0.73.

Similarly, the result of 1.30 x 1.05 using binary is
1.3650000000000002131628207280300557613372802734375; this would be
rounded up to $1.37. However, the result should have been 1.365 - which
would be rounded down to $1.36 (using Banker's rounding).

[end quote]

The same type of discrepancy is likely to occur with quad precision as
well as the double that was used for this example.  And given these
discrepancies, you're likely to get bigger discrepancies when you
calculate things like compound interest (especially when it is
calculated daily).  I'd hate for my bank to be using binary floating
point, rather than the decimal arithmetic packages they have to use
right now (I guess government regulations aren't all bad).  Think how
badly they could screw you and just attribute it to computer error.

And note that rounding does occur during a formatted write.  The value
you see is an approximation of what's in memory, not the exact value
that's there.  I assume that Dadd(a,b,2) simply adds a and b (it's not
standard Fortran, so I can't be sure)?  The addition of 0.0 to another
fp value should just give that other value (aside from the special case
of an operation on an IEEE signalling NaN turning it into a quiet NaN),
so given my assumption of what Dadd does, the calculation in your
example is essentially a no-op, aside from any exceptions that may
occur, and therefore not a really good example of an intermediate
calculation.


subject: Re: Whats the Decimal support fuss?

text:
"Rob James" <[email]> wrote in message
news:[email]...

Your message apparently is the first that google archive for
comp.lang.fortran will hear of "bankers rounding"..  However searching other
comp.lang.*   newsgroups finds LOTS of references, and below is a snip from
a delphi newsgroup.

<<<<
in IIIE bankers rounding, which is the default rounding algorithm of the x86
floating point unit, X.5 rounds to the nearest EVEN integer.
112.5 rounds to 112.  113.5 rounds to 114.

I had no idea the PC FPU uses bankers rounding, but once I know what the
other language's decimal packages use for their various numeric output
formats, I think the same logic can be added to my decimal module's format
as well so that  0.70 x 1.05 = 0.73, or are you saying it cant be?

btw, I saw a message that indicated Visual Basic also uses bankers rounding,
so if a PLI'er doesnt supply a example calc with intermediate outputs soon,
maybe a VB user can step in and provide it..

Thanks for the info and opinions expressed..


subject: Re: Whats the Decimal support fuss?

text:
"Rob James" <[email]> wrote in message
news:[email]...

You would not get screwed at all if your bank used Fortran, (and they likely
could compute monthly statements in 1/100 of the time that their decimal
arithmetic does now).  ie. below 1 statement computes/outputs what my Ford
Money Market paid recently in a 30 day period,  this implies that banker's
rounding is NOT used by this money fund and if it isnt with one its likely
it isnt for any since as you say they are under government regulations in
methods used.

program ford_mm_interest   ! june 2002 statement interest is 914.18
real(8) :: balances(30) = 327132.37d0  ! daily balances for period were
constant
real(8) :: rates(30) = 3.40d0/36500    ! daily rates for period were
constant
write (*,91) '30 days interest =', sum(balances*rates)  ! outputs 914.18
91 format (a,f8.2)
end program

 www.fordfinancial.com   if anyone is interested in getting 3.4%  in a money
fund.


author: Craig Powers

subject: Re: Whats the Decimal support fuss?

text:
David Frank wrote:

It depends on your system files.  It's controlled by one of the COM
dlls, maybe oleaut32?  Microsoft made the unfortunate decision to change
it in Windows XP.


author: Richard Maine

subject: Re: Whats the Decimal support fuss?

text:
"David Frank" <[email]> writes:

You'd be surprised how little this is regulated.  I once challenged
Bank of America because they computed daily interest charged me on a
construction loan by dividing the quoted annual rate by 360.  They
then charged me for every one of the 366 days of the year (it was a
leap year).  Their first response to my complaint was that the
government left the method of computing the daily interest up to the
bank.  (I didn't accept that and eventually got a refund check from
them, probably because it was going to cost them more to fight than
the $50 check).

So that I'm not entirely off the subject of Fortran, I'll add that the
term "banker's rounding" is new to me for the method mentioned.  But
the method itself is not at all new to me.  I've been taught that it
was a "preferred" method of rounding for so long that I forget where I
first saw it.  Where I've seen it most is in statistical work.  It
provides a rounding method that is statistically unbiased (under
reasonable assumptions)...I always thought that was the main reason it
was used.  That statistical unbias can also contribute to numerical
stability in some cases of interest to Fortran programmers.


subject: Re: Whats the Decimal support fuss?

text:
I have written LOTS of financial-related programs in Fortran (well,
actually FORTRAN, 77 being the latest), and trying to calculate pennies
and dimes using REAL almost **ALWAYS** results in missing cents.

The reason is simple:  in binary, 0.10 (i.e., a dime) is
0.0001100110011001100...1100110011.... (it's a continuing series).  In
other words, it is NOT POSSIBLE to store, in a fixed-length binary-related
REAL notation, the value of a dime; a fraction of a cent ALWAYS gets
"lost" in the truncation.  And my experience shows it doesn't take many
fractions of a cent before printed output is a penny off!

So how do I do it?  I use a minimum of 32-bit INTEGER, specialized input/
output routines, and consider all values to be expressed in pennies.  So
far, I've been lucky (or should I say UNlucky?), since my net worth,
expressed in cents, still "fits" in 32 bits.

One ADvantage is that my I/O routines also allow/accept commas in large
dollar-and-cent values!

--Myron.


subject: Re: Whats the Decimal support fuss?

text:
"Craig Powers" <[email]> wrote in message
news:[email]...
rounding,
soon,

Does this imply you are a VB user?
If so, how about having a look at translating the simple source at::
    http://home.cfl.rr.com/davegemini/decimal.txt

to a VB currency data type  application and see what you get after the 100
days do loop, if its different the difference is likely due to bankers
rounding..


author: Tony T. Warnock

subject: Re: Whats the Decimal support fuss?

text:
Another reason for "banker's rounding" for floating point is that there
is a reduced chance of normalization in future operations.

There are sequences of operations where either the banker's rounding or
the standard rounding gives erroneous results.

One wants unbiased rounding for sequences of floating point operations
where there are a large number of "negligible" errors introduced by the
rounding and the idea is to keep the accumulation "negligible."  With
unbiased rounding, the error grows as the square root of the number of
operations. With biased rounding, the error grows as the number of
operations.

Problems arise when significant numbers have to be rounded. For example,
the set {...1,1.5,2,2.5,3,3.5,...}(having frequences (...1,1,1,1,1...)
when rounded by the standard method gives {..2,2,3,3,4,4,...} with
frequencies (...2,2,2,2...) but gives {...2,2,2,3,4,4,4,5...} with
frequencies (...3,1,3,1..) using the banker's method.

The problem determines which is correct.


subject: Re: Whats the Decimal support fuss?

text:
"Myron A Calhoun" <[email]> wrote in message
news:ama6o1$[email]...

I'm not convinced you have to use special 32-bit integer routines using
cents, how about posting a simple source using real that loses cents and I
will attempt to fix it using REAL(8) and ANINT as one result and at same
time invoke my decimal math for a second opinion result, similiar to my
test_decimal program below,  thanks...

below +module decimal source  is at:
http://home.cfl.rr.com/davegemini/decimal.txt

program test_decimal  ! compute world population after 100 days
use decimal
implicit none
integer(8) :: ipop = 6000000000   ! 2000 world pop
real(8) :: rate= 1.11d0/36524.    ! daily growth %
integer :: day, ibirths
character(33) :: cpop, crate, cbirths, a,b

cpop = Ddec(ipop+0.d0,0)  ! get decimal pop  xxxxxxxxxx.
crate= Ddec(rate,14)     ! get decimal rate .xxxxxxxxxx

do day = 1,100          ! find population after 100 days
   ibirths = Anint(ipop*rate)   ! rounded integer daily births xxxx
   ipop = ipop + ibirths        ! integer daily population  xxxxxxxx
   cbirths = Dmul(cpop,crate,0) ! decimal daily births xxxx.
   cpop = Dadd(cpop,cbirths,0)  ! decimal daily population  xxxxxxxx.
end do
write (*,91) 'real calc. 100 day values', ipop, ibirths
write (*,92) 'dec. calc. 100 day values', cpop(21:), cbirths(26:)

91 format (a,i12,i8)
92 format (3a)
end program

! program outputs following values
! real calc.  100 day values  6018262044  182895
! dec. calc. 100 day values  6018262044. 182895.


subject: Re: Whats the Decimal support fuss?

text:
David Frank wrote:

I am a VB user, but as far as I know, I have the older COM components.
I'm developing on NT4 and I don't believe I've put in the newer files.
Regardless, I'll see if I get a chance to translate your example.


subject: Re: Whats the Decimal support fuss?

text:
Can't get much simpler than the following, and I'm already using REAL*8
to make your task easier.  (Note:  2E14 is considerably above MY net
worth, but you did ask for a simple example!)

      PROGRAM Demo1
      REAL*8 Sum, BigMoney/200 000 000 000 000.00/, Penny/0.01/
      Sum = BigMoney + Penny
      WRITE (*,'(F22.2)') Sum
      END

The output is (note the penny is gone):
    200000000000000.00

What is REALLY interesting is something I just happened to discover;
the ONLY difference is the program name and no "*8" on the declaration:
      PROGRAM Demo2
      REAL Sum, BigMoney/200 000.00/, Penny/0.01/
      Sum = BigMoney + Penny
      WRITE (*,'(F22.2)') Sum
      END

The output is now (note the penny grew a little!-):
             200000.02

I'm stepping out on a limb here, but I'm in teacher mode now
and I think I'm on safe ground:

Although I am really intrigued by Demo2, the REAL point is that ANY
attempt to do decimal calculations which involve any-length-decimal-to-
fixed-length-binary (and back) conversions is liable to drop a bit here
'n there, and since the effort to determine JUST WHERE the loss will
occur may cost more than it's worth, one should solve the problem with
a method that is more general than simply doubling or quadrupling the
precision, with true decimal arithmetic perhaps being the best solution.
After all, given enough time and inflation, today's billion dollars will
grow to a gazillion, and a once-working program will become another Y2K
boondoggle!

--Myron.


author: Mark Yudkin

subject: Re: Whats the Decimal support fuss?

text:
COM has a DECIMAL data type including operation and conversion routines. It
is defined as:

typedef struct tagDEC {
    USHORT wReserved;
    union {
        struct {
            BYTE scale;
            BYTE sign;
        };
        USHORT signscale;
    };
    ULONG Hi32;
    union {
        struct {
            ULONG Lo32;
            ULONG Mid32;
        };
        ULONGLONG Lo64;
    };
} DECIMAL;

That is, it's essentially a 96-bit unsigned integer with 1 byte scale and a
1 byte sign and two bytes "reserved" (basically just a filler to round up
from 14 to 16 bytes for alignment purposes).

It is not the same as the PL/I DECIMAL type, which is a maximally 16 byte
BCD decimal value.

Neither is the same as Fortran, whose standard form has no decimal data
type.

All operations are declared in oleauto.h - which actually declares all of
the routines needed to implement the data types used by automation (and
hence in VB).

"Craig Powers" <[email]> wrote in message
news:[email]...
outputs
change


subject: Re: Whats the Decimal support fuss?

text:
"Myron A Calhoun" <[email]> wrote in message
news:amcrm3$[email]...
pennies

you exceeded REAL*8 (16digits) when you added the penny..

You havent made your case as yet, perhaps this little test program will
clarify what happens as f22.2 formatting is commanded to output SOMETHING
from a REAL*8 value

program test
real(8) :: x = 1000000000.
integer :: n

do n = 1,10
   x = x*10.
   write (*,'(f22.2)') x + .01
end do
end program

        10000000000.01
       100000000000.01
      1000000000000.01
     10000000000000.01
    100000000000000.02
   1000000000000000.00
  10000000000000000.00
 100000000000000000.00
1000000000000000000.00
**********************

In summary I dont think you have made your case for needing your special
32-bit integer routines,  care to try again?


author: Marcus G Johansson

subject: Connecting 2.5" HDD in A stationary computer

text:
I have a Toshiba MK1924FCV, which is a 543Mb Harddrive with ATA-2 interface
which I also have on my motherboard, however the connector type is not the
same, do all notebook harddrive have this type of connector? The drive seems
to have no powersupply either, which means it is in the connector itself. What

kind of cable do I need?

Thanks
/Marcus


author: tinman

subject: Re: Where did IEEE1394 come from?!... (was Re: History revisionists are fun...

text:
In article <[email]>, JFW
<[email]> wrote:

But I didn't say Apple created IEEE-1394, I said Apple started firewire
which later become IEEE-1394 as it was opened up. This is not to say that
others didn't participate in it's development.

Yes, I do, but I also understand that over 10 years ago apple started work
on a high speed serial connection which they called firewire, which was
later opened up and accepted as IEEE-1394. You do understand the
significance of the application of the IEEE number don't you?


author: [redacted]

subject: Anyone received Notes Desktop yet?

text:
Has anyone actually received Notes Desktop (the $150 per seat runttime
only notes software) yet? I've see a press release that claims they
started shipping back in February, but haven't yet been able to get
my hands on it.

Kevin Sullivan


author: Paul Slater

subject: Re: Anyone received Notes Desktop yet?

text:
[email] wrote:

In the UK I have been trying to get hold of a copy
for quite a while. My suppliers (and Lotus) keep saying
call back in two weeks. Latest date is the end of this week,
but I shan't be holding my breath.

If anyone hears that it is available (or preferably that they
have a copy on their desk!) in the UK, I would like to know.

Paul Slater


author: RobtSNovak

subject: Re: Anyone received Notes Desktop yet?

text:
I've had it since Feb. 24th.  It is actually not a stand-alone, but a
choice of licenses during user registration in Notes version 3.3.  Similar
to the choice with 3.2 of Notes/Notes Express.  To convert to Desktop you
have to re-register users and re-install (for a downgrade) or just choose
the Desktop license for a new installation.  Resellers who don't have good
direct ties with Lotus might not know how this works, so ask them for
Notes version 3.3.

Good Luck,

Rob Novak ([email])
Director, Information Management Services
Child Health Corporation of America


subject: Discarding unread data after scanf()

text:
Is this a good way to discard unread data after scanf()?

    while (getchar() != '\n')
        ;

According to the FAQ scanf always leaves the trailing newline on the input
stream, so there's no risk of discarding any more than needed. (In the best
case, when scanf() correctly works and the user hasn't input spurious data
beside those required in the control string, the loop will only iterate
once.)

(The only problem is if for some reason stdin is a file and it ends. But I
could well use drastic solutions such as
        assert(!feof(stdin) && !ferror(stdin));
as the loop body, since if a program designed to be interactive reads from a
file which ends we can't do anything better than abort execution.)


author: Peter "Shaggy" Haywood

subject: Re: Discarding unread data after scanf()

text:
Groovy hepcat Army1987 was jivin' on Sun, 25 Mar 2007 12:54:19 +0200
in comp.lang.c.
Discarding unread data after scanf()'s a cool scene! Dig it!

  No, not really. You need to test for EOF.

  Or it's an interactive device, and the user presses whatever key
combination (or takes whatever course of action) indicates an end of
file condition on the device. Or it's a punched tape reader, and the
tape breaks. Or it's an electroencephalograph, and the person whose
noggin it's wired up to has fallen asleep. Or it's any kind of device
ever invented by the mind and made by the hand of mankind, and
something goes wrong with it.

  Indeed that is a drastic solution. Don't do that. That's no way to
use assert(). It's for catching programming errors, not input errors.
When NDEBUG is defined, every use of assert() becomes a no-op. In this
situation you lose all your input error checking. And you don't want
to lose that.
  Besides, there are better ways of determining whether there's a file
stream problem. Use the return value of the input function you're
using. All the file input functions return some indication of whether
or not they failed or tryed to read beyond the end of the file. For
example, getchar() returns EOF on failure or end of file. You can then
use ferror() or feof() to determine which of those two conditions
occurred.

  I recently posted a simple function that could do what you want. But
since you lurked here for some time before posting, as all good Usenet
denizens do, as they should, you must know that. I'm sure it just
slipped your mind. So I will refresh your memory. Here is the
function, slightly modified to return EOF on error or end of file:

#include <stdio.h>

int skip2nl(FILE *fp)
{
  int c;

  while(EOF != (c = fgetc(fp)) && '\n' != c)
    ;

  return c;
}

  You could use this function something like this:

int main(void)
{
  int status;

  puts("Enter some stuff on stdin, "
       "and I will attempt to skip it...\n");

  status = skip2nl(stdin);
  if(EOF == status)
  {
    if(ferror(stdin))
    {
      puts("File error on stdin.");
    }
    else
    {
      puts("End of file on stdin.");
    }
  }
  else
  {
    puts("Newline read from stdin.");
  }

  return 0;
}


author: pete

text:
Army1987 wrote:

Your while loop will prevent endless looping from alpha input
while scanfing for int input.

/* BEGIN new_1.c output */

Please enter an integer value
ksdhfgkdashfkfrhwe
Please enter an integer value
wekjwerhiweuq
Please enter an integer value
                wejuf
Please enter an integer value
wekjh
Please enter an integer value
ds
Please enter an integer value
42

The result is 42

/* END new_1.c output */

/* BEGIN new_2.c output */

Please enter an integer value
a
Please enter an integer value
Please enter an integer value
Please enter an integer value
Please enter an integer value
Please enter an integer value
Please enter an integer value ... and so on and so forth.

/* BEGIN new_1.c */

#include <stdio.h>

int input(const char *prompt);

int main(void)
{
    puts("/* BEGIN new_1.c output */\n");
    printf("\nThe result is %d\n",
        input("Please enter an integer value"));
    puts("\n/* END new_1.c output */");
    return 0;
}

int input(const char *prompt)
{
    int flag, result;

    puts(prompt);
    flag = scanf("%d", &result);
    while (getchar() != '\n') {
        ;
    }
    while (flag < 1) {
        puts("Please enter an integer value");
        flag = scanf("%d", &result);
        while (getchar() != '\n') {
        ;
        }
    }
    return result;
}

/* END new_1.c */

/* BEGIN new_2.c */

#include <stdio.h>

int input(const char *prompt);

int main(void)
{
    puts("/* BEGIN new_2.c output */\n");
    printf("\nThe result is %d\n",
        input("Please enter an integer value"));
    puts("\n/* END new_2.c output */");
    return 0;
}

int input(const char *prompt)
{
    int flag, result;

    puts(prompt);
    flag = scanf("%d", &result);
    while (flag < 1) {
        puts("Please enter an integer value");
        flag = scanf("%d", &result);
    }
    return result;
}

/* END new_2.c */


author: Barry Schwarz

text:
On Sun, 25 Mar 2007 12:54:19 +0200, "Army1987" <[email]>
wrote:

If you are worried about end of file as well as end of line you can
use something like
     {int x; while (((x = getchar()) != '\n' ) && x != EOF) /* */;}

Remove del for email


author: Keith Thompson

text:
"Army1987" <[email]> writes:

No.

What scanf leaves on the input stream depends on the format string.
With the right format string, it can consume the trailing newline.

In a later followup, you said you're using a "%d" format.  In that
case, *if* you're going to use scanf() for input, then the above loop
with the addition of a check for EOF (see below) is reasonable,
assuming you want to accept just one integer value per input line.

But scanf() is usually not the best way to handle interactive input.
A better approach is to use fgets() to read an entire line at a time,
then use sscanf() to parse the line.

But even that has problems.  If either scanf() or sscanf() with a "%d"
format attempts to read a number that won't fit in type int, the
behavior is undefined; there's no way to detect the error once it's
happened.  If that's a concern, you might consider using strtol(),
which does detect and report overflow and underflow.

fgets() can also have problems with very long lines.  I *think* this
is covered in the FAQ.

By "stdin is a file", I assume you mean that the program is reading
from a disk file rather than from, say, a keyboard.  But you can
easily reach an end-of-file condition when reading from a keyboard.
<OT>On Unix-like systems, this is usually caused by the user typing
control-D; on DOS or Windows systems, it's usually control-Z.</OT You
should handle that case cleanly.

You can do much better than just aborting execution with a message
like:

assertion "!feof(stdin) && !ferror(stdin)" failed: file "c.c", line 6

You can test for end-of-file (preferably by comparing the result of
getchar() to EOF, not by calling feof() or ferror()), and you can
*gracefully* terminate the program.  Quite often, reaching end-of-file
is the normal way for a program to terminate, simply because it has no
more work to do.  In an interactive program that's expecting more
input, you can at least terminate with an error message that's going
to be meaningful to the user.


text:
Army1987 wrote:

A call to fscanf with stdin as the first argument,
is just like a call to scanf.

/* BEGIN fscanf_input.c */
/*
** There are only three different values
** that can be assigned to rc
** from the fscanf calls in this program.
** They are:
**      EOF
**      0
**      1
** If rc equals EOF, then the end of file was reached,
** or there is some input problem;
** ferror and feof can be used to distinguish which.
** If rc equals 0, then an empty line was entered
** and the array contains garbage values.
** If rc equals 1, then there is a string in the array.
** Up to LENGTH number of characters are read
** from a line of a text stream
** and written to a string in an array.
** The newline character in the text line is replaced
** by a null character in the array.
** If the line is longer than LENGTH,
** then the extra characters are discarded.
*/
#include <stdio.h>

#define LENGTH          40
#define str(x)          # x
#define xstr(x)         str(x)

int main(void)
{
    int rc;
    char array[LENGTH + 1];

    puts("The LENGTH macro is " xstr(LENGTH) ".");
    do {
        fputs("Enter any line of text to continue,\n"
            "or just hit the Enter key to quit:", stdout);
        fflush(stdout);
        rc = fscanf(stdin, "%" xstr(LENGTH) "[^\n]%*[^\n]", array);
        if (!feof(stdin)) {
            getc(stdin);
        }
        if (rc == 0) {
            array[0] = '\0';
        }
        if (rc == EOF) {
            puts("rc equals EOF");
        } else {
            printf("rc is %d. Your string is:%s\n\n", rc, array);
        }
    } while (rc == 1);
    return 0;
}

/* END fscanf_input.c */


text:
"pete" <[email]> ha scritto nel messaggio
news:[email]...
I know that. But that isn't what I was asking.

#include <stdio.h>
int input(const char *prompt)
{
    int flag, result;
    puts(prompt);
    flag = scanf("%d", &result);
    while (getchar() != '\n')
        ;
    while (flag < 1) {
        puts("Please enter an integer value");
        flag = scanf("%d", &result);
        while (getchar() != '\n')
            ;
    }
    return result;
}

Is this ok (supposing stdin is interactive)?


text:
"Army1987" <[email]> ha scritto nel messaggio
news:eu5tm5$bog$[email]...
    fflush(stdout);               /* forgot that... */
        fflush(stdout);


text:
Army1987 wrote:

I don't think that fflush(stdout) is required
after a newline character is output.
puts always outputs a complete
line of text with newline character at the end.
I think of puts as creating a line of text from a string.

In case you don't know, a "line in a text stream"
is somewhat analagous to a "string in memory",
with a "line" being terminated by a newline character
while a "string" is terminated by a null character.

I misread your intial post as "Is there..."
when you has actually written "Is this..."

I will take another look at your code.


author: Werner Huysegoms

subject: Re: Use RPL inside ASM programs

text:
In article <i5jj7.323$[email]>, Yoann Dï¿½sir says...

There's a somewhat easier way to accomplish that :

CODE
GOSBVL =SAVPTR
<asm code>
GOSUB .rpl
!RPL
::
.
<sysRPL>
.
CODE
<continue in asm>
GOVLNG =GETPTRLOOP (or so)
*.rpl
C=RSTK A=C.A
GOSBVL =GETPTR
PC=(A)
ENDCODE
;
!ASM
ENDCODE
@

or the equivalent:

CODE
GOSBVL =SAVPTR
<asm code>
GOSUB .rpl
CON(5) DOCOL
!RPL
<sysRPL>
COLA
!ASM
CON(5) DOCODE
GOIN5 .eoc
<continue in asm>
GOVLNG =GETPTRLOOP (or so; to return to RPL)
*.rpl
C=RSTK A=C.A
GOSBVL =GETPTR
PC=(A)
*.eoc
ENDCODE
@

It is the way I include conditional Garbage collections into ASM code
that can run anywhere.

Best Regards,

Werner Huysegoms
[email]
(delete the leading and trailing x)


author: Thomas Rast

subject: Re: Use RPL inside ASM programs

text:
Werner Huysegoms wrote:
[code snipped]

Can I do jumps back to before the RPL part? Like this:

CODE
GOSBVL =SAVPTR
<asm code>
*label
<asm code>
GOSUB .rpl
!RPL
::
.
<sysRPL>
.
CODE
<continue in asm>
GOTO label
<more asm>
GOVLNG =GETPTRLOOP (or so)
*.rpl
C=RSTK A=C.A
GOSBVL =GETPTR
PC=(A)
ENDCODE
;
!ASM
ENDCODE
@

Thomas


author: Peter Geelhoed

subject: Re: Use RPL inside ASM programs

text:
Werner Huysegoms wrote:

Now, that is just great! I've always wanted a garbage collection inside my
code.
I've thought about doing it this way but I was never sure it would be safe.

Is this also freeware or should I send you money evertime I use it? :-)


subject: Re: Use RPL inside ASM programs

text:
Yes you can.  But if you start writing loops over the RPL part,
be aware that you must store your loop counter in R0-R4 or so (and
even so, some RPL commands will change those as well), and in that
case it's better to use the version with COLA, as otherwise you
will build up a series of SEMIs in the SysRPL return stack
(like with tail-recursion)

In article <[email]>, Thomas Rast says...

Werner Huysegoms
[email]
(delete the leading and trailing x)


subject: Re: Use RPL inside ASM programs

text:
In article <[email]>, Peter Geelhoed says...

If there's anyone who should receive money for it, it's Mika Heiskanen.
It was a note of him (not even to me, mind you) where a similar method was
described that put me on the right track.  At the time, I didn't understand at
all how it was supposed to work.  The fact that a DOCOL is needed for
code objects that are not embedded in a secondary was explained to me by
Dan Kirkland.  I do not want to receive credit for something that isn't mine ;-)
BTW for the conditional gc code:

Example: create an uninitialized hxs string of length 'n'
(equivalent to NULLHXS SWAP EXPAND)

* In : n (bint)
* Out: hxs string of length n, size n+10 nibs
* 72.0

CODE
ST=0.10 GONC .L00	( Branch Every Time )

*.Lme
GOVLNG =GPMEMERR

*.Lrpl
C=RSTK A=C.A
GOSBVL =GETPTR
PC=(A)

*.Lgc
?ST=1.10
GOYES .Lme
GOSUB .Lrpl
CON(5) DOCOL
CON(5) GARBAGE
CON(5) COLA
CON(5) DOCODE
REL(5) .Lend
ST=1.10

*.L00
GOSBVL =SAVPTR
GOSBVL =POP#
C=A.A C+10.A
GOSBVL =CREATETEMP
GOC .Lgc
LC(5) DOHSTR DAT0=C.A
C=B.A CD0EX R0=C.W D0-11 CD0EX
D0+5 DAT0=C.A
GOVLNG =GPOverWrR0Lp

*.Lend
ENDCODE

It can be run safely anywhere (TEMPOB or whatever).

Best Regards,

Werner Huysegoms
[email]
(delete the leading and trailing x)


subject: Re: Use RPL inside ASM programs

text:
Werner Huysegoms wrote:

Good.

Does that mean, if I have a huge list on the stack and do HEAD MEM, the
list won't be garbage-collected?

I know. I first tried storing all needed registers in SavMisc, but I
noticed \->S2 even uses SavMisc, so I eventually had to use a long
enough HXS on the stack.

Ok.

What's tail-recursion? (I know what recursive functions are.)

Thomas


subject: Re: Use RPL inside ASM programs

text:
In article <[email]>, Thomas Rast says...

Depends.
If your list starts with a ROM-object, it will be collected.
e.g.  { 1. \<<..\>> { stuff } .. } HEAD MEM -> the list will be removed from
TEMPOB, because HEAD will point to the object 1. which resides in the ROM,
not in the list - and so there's no reference to (or within) the list anymore.

Tail recursion is when the recursive call is the last command in your function
(or procedure).  It uses up return stack levels, and can be easily rewritten
as a loop.

Werner Huysegoms
[email]
(delete the leading and trailing x)


author: Manou BILLA

subject: Connection AMIGA with TI-85 or TI-92 calculator?

text:
Hi everybody

I want to connect my TI-85 or TI-92 claculators to my AMIGA!

Is the available cable from Texas Instruments usable on the AMIGA?
This cable is designed for MACs or PeeCees.

Can one use this cable on respec. the TI or OLIVETTI D2100 or Citizen database
organizers (all three are the same models to store addresses, schedules etc.)?

Is there any software available for the AMIGA to program TI progs on the AMIGA
and transfer them to the calculators?

I know there are commercial progs (from TI) for PeeCees and MACs. There's even a
wonderful shareware Windows version, but none for the AMIGA.

Any help is appreciated.

TIA


author: John Sheehy

subject: Re: RAM for Pentium Machines

text:
[email] (Kevin Lee Carlson) writes:

I've heard that there are pentium boards that do utilize a single simm,
but performance on these is not good (access is only 32 bit).

 <>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
  John P Sheehy <[email]>


author: Jose

subject: Suspicious ports being open...

text:
Hi everyone,

I have recently (last 2 days) noticed the following behaviour on my machine.
If someone could shed some light it would be appreciated:

Ports reported in netstat:

I have some random ports on my machine (1064, 2923, 3189) connecting to a
couple of remote IPs (69.50.165.237 and 200.222.29.108) on their (remote)
port 6667.

I also appear to SYN_SENT on ports 139 and 445 of a number of other public
IPs but never ESTABLISHED.

Many thanks in advance.

Jose


author: Eric

subject: Re: Suspicious ports being open...

text:
Did you happen to figure this out??

"Jose" <[email]> wrote in message news:<b%Lgc.54$[email]>...


author: Daniel Crichton

subject: Re: Suspicious ports being open...

text:
Jose <[email]> wrote:

Are you running an IRC client? If not, possible you have a trojan on your PC
connecting to IRC servers to send data.

Sounds like your PC trying to connect to shares over the internet. Windows
PCs often try this, although a software firewall would let you prevent it.
Could also be something malicious on your machine trying to connect to
shares.

Get Active Ports, that will let you see what programs are connecting to
those ports and help you to decide if it's malicious or if it's just Windows
doing a bit of searching.

Dan


author: mrsimpleton

subject: Re: Suspicious ports being open...

text:
Hello.

I'm going to make an assumption and say your computer is contacting
those IPs to connect to port 6667.

I say it's your computer initiating the connection and not them
contacting you because when a Windows based computer initates a TCP/IP
connection to another computer it chooses the next available temp port
in the range of 1024-5000. This is usually so but there are
exceptions. Your 1064, 2923, 3189 ports fall into that range.

And port 6667 falls outside of that range. But let say for arguements
sake it was the other end initiating the connection then there would
be more then one port used at the other end. Each originating
connectiong needs it's own temp port. So to have only 1 port used at
the other end is just very unlikely.

So I am going to guess and say your computer is talking to them. What
is it saying? Well that depends on what port 6667 is used for.

Well the most benign use for port 6667 is irc or Internet Relay Chat.
Did you just install a new irc client and have it auto run when
windows boots up? This would probably account for it.

I'm going to assume you said no to that. What other programs use port
6667, a few and none of them are benign. Far from it. Here's the
list...

tcp DarkFTP [trojan] Dark FTP
tcp EGO [trojan] EGO
tcp kaitex Kaitex Trojan
tcp Maniacrootkit [trojan] Maniac rootkit
tcp Moses [trojan] Moses
tcp ScheduleAgent [trojan] ScheduleAgent
tcp ScheduleAgent [trojan] ScheduleAgent
tcp Subseven2.1.4DefCon8 [trojan] Subseven 2.1.4 DefCon 8
tcp SubSeven [trojan] SubSeven
tcp TheThing [trojan] The Thing (modified)
tcp Trinity [trojan] Trinity
tcp WinSatan [trojan] WinSatan

If it's not irc then you need to run your Antivirus software and clean
them out. And running a spyware removal program wouldn't hurt either.

mr_simpleton

"Jose" <[email]> wrote in message news:<b%Lgc.54$[email]>...


author: Jose Armando

subject: Re: Suspicious ports being open...

text:
Hi Eric,

I used GFI's LAN guard scanner and it picked up those machines as having
compromised registries... I could have deleted the files and edited the
registry but instead I rebuilt the 5 machines from scratch as we need to be
100%.

J

"Eric" <[email]> wrote in message
news:[email]...
news:<b%Lgc.54$[email]>...
machine.
a
(remote)
public


subject: Re: Suspicious ports being open...

text:
Hi Daniel,

thanks for this.

I have run Active Ports and I can see that the System process (PID 8) is
responsible for the Netbios scans
Are you aware of any worms that utilise this process to scan? I am clearly
scanning a whole range 1 by 1...

Many thanks,

Jose

"Daniel Crichton" <[email]> wrote in message
news:4083b73a$0$8894$[email]...
PC
Windows


subject: Re: Suspicious ports being open...

text:
Jose <[email]> wrote:

Possibly just Windows searching for machines on it's "local network" using
SMB. What version of Windows are you running? I'd recommend running a
software firewall to block these outgoing connections, or if you have a
router/hardware firewall then block all outbound connections to port 139 and
445 (and throw 135-138 UDP ports in too at a minimum). I don't know of
anything that hooks into the System process to do this, but I'm no expert.

Dan


author: Merlin

subject: Re: # 15 programs for only $150 !!!

text:
They might be. But most of these appear to be graphics programs, and
probably wouldn't be of much use to them - unless, of course, they like
to have a bit of a draw during "playtime".

Geez, just what we need - another pontificating pseudo-cop .....

Robert Rehberg wrote:


author: Senna

subject: Size of the Main Access Window

text:
Hi everyone

I have a little question. I would like to develop an application in Access
2002, but I want to give the main Access Window a fixed border. So the
users can't modify the size of the main access window.

Does anybody know an API that deals with it? Or perhaps a function? How can
I fix this problem?

Just let me know,

Thx

Senna


author: David Schofield

subject: Re: Size of the Main Access Window

text:
Hi
I doubt it as the window style is part of the class definition of a
window.
You could resize the window on a timer - web popups do nasty things
like this.
You could write the application to use only dialog forms and hide the
main window by putting it behind things, or even hide the main window
altogther though if you do the latter be sure not to have untrapped
errors.
David

On Fri, 19 Nov 2004 22:30:57 GMT, Senna <[email]>
wrote:


author: Darryl Kerkeslager

subject: Re: Size of the Main Access Window

text:
I have an app that uses several main Access forms which are always
maximized.  The user can still re-size the Access *application* window, and
of course numerous smaller forms in the app are not maximized, but the core
7-8 forms themselves cannot be resized smaller (or bigger).

Darryl Kerkeslager

"Senna" <[email]> wrote:


author: RPR

subject: FC-AL backplanes/enclosures

text:
Hi all,

I inherited a couple Fibre Channel Cheetahs (ST39102FC) that I'd like
to build a small but fast disk subsystem with. Can anyone recommend
reasonably priced backplanes or enclosures to build a nice loop? I'm
looking at 6 to 8 drives for a start but given that these are really
cheap on eBay, I'm wondering about extensibility as well.
I need a disk subsystem with high random throughput to test backup
applications.

Thanks,
Ralf-Peter


author: David A.Lethe

subject: Re: FC-AL backplanes/enclosures

text:
On 18 Feb 2005 10:01:03 -0800, "RPR" <[email]> wrote:

Try ebay, but you're going to be in for some sticker shock. You'll
spend much more on a FC enclosure (and cabling and an HBA) then you
paid for those disks, especially if you want to go 2Gbit.


author: frostbyte

subject: Re: FC-AL backplanes/enclosures

text:
I have some older eurologic shelves that I would be happy to part with
for $300 each.. $400 if you want sleds with them..  These are the
netapp FC-8 disk shelves (built to support 9 & 18GB drives) with
redundant power connections.  These utilize a copper FCAL card which I
can offer for $200.


author: zxzhaohui

subject: what does this compile result mean on an FPGA program?

text:
I write an VI on a PCI-7811R FPGA card, as a test.

The attached pictures show the VI and the compile result.
I just want to write TRUE or FALSE into 5 pins in a STCL loop,in which I set the clock at 200MHz  .

After compile, the result says:
Base Clock
Requested Rate:              40.408938Mhz
Theoretical Maximum:     351.493849Mhz
Derived Clock:
Requested Rate:              202.061122Mhz
Theoretical Maximum:     208.681135Mhz

I'd like to know what does this 208.68Mhz mean?
does it mean that it could complete the loop 208.68M times in one second(5ns for one loop) ?.
Then what does the Theoretical Maximum:     351.493849Mhz  mean?

test_VI.jpg:
http://forums.ni.com/attachments/ni/170/324263/1/test_VI.jpg

compile_result.jpg:
http://forums.ni.com/attachments/ni/170/324263/2/compile_result.jpg