[comp.lang.pascal] Repost

ts@chyde.uwasa.fi (Timo Salmi LASK) (05/09/89)

There may have been some delays and problems in the router feeding
the postings from Finland so I shall repost my recent messages.  If
you have seen them previously, I apologize for the inconvenience. 

...................................................................
Prof. Timo Salmi
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun

From ts Tue May  9 09:19:58 EET DST 1989
Article 295 of comp.lang.pascal:
Path: chyde!ts
>From: ts@chyde.uwasa.fi (Timo Salmi LASK)
Newsgroups: comp.lang.pascal
Subject: Re: wanted: LP code in pascal
Message-ID: <477@chyde.uwasa.fi>
Date: 29 Apr 89 05:46:58 GMT
References: <19350@adm.BRL.MIL>
Reply-To: ts@chyde.uwasa.fi (Timo Salmi LASK)
Organization: University of Vaasa, Finland
Lines: 20

In article <19350@adm.BRL.MIL> ak1q+@andrew.cmu.edu (Arundhati D. Kumar) writes:
>I am looking for information on any code to solve linear programming problems.
>I would like to use an LP solving routine which could be called by my turbo
>pascal (version 4) program.  Also, does anyone know whether simplex routines
>written in another language can be used along with turbo pascal?

This is not quite what you are looking for, but you might be
interested in the linear programming and linear goal programming
solver /pc/ts/tslin24.arc, which can be obtained by anynymous ftp
from 128.214.12.3.  (It has also appeared in comp.binaries.ibm.pc.)
To anticipate a question, the source code is not available.  (I
never reveal my sources :-)

...................................................................
Prof. Timo Salmi
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun





From ts Tue May  9 09:19:59 EET DST 1989
Article 279 of comp.lang.pascal:
Path: chyde!ts
>From: ts@chyde.uwasa.fi (Timo Salmi LASK)
Newsgroups: comp.lang.pascal
Subject: Re: Drive not ready message
Message-ID: <469@chyde.uwasa.fi>
Date: 26 Apr 89 18:56:18 GMT
References: <2215@botter.cs.vu.nl>
Reply-To: ts@chyde.uwasa.fi (Timo Salmi LASK)
Organization: University of Vaasa, Finland
Lines: 24

In article <2215@botter.cs.vu.nl> cjveenm@cs.vu.nl () writes:
>	Question:
>When you try to open a file for reading or writing and that file is
>on a drive which isn't ready yet, you will get a message that tells you
>about your mistake.
>Using Turbo Pascal 3 this will happen after the RESET(file) or 
>REWRITE(file), but in TP4 it won't. At least when I am doing so.
>Why is that?

Now I do not know why it is so, but what you should do is to check
for the IOResult yourself in your program at reset or rewrite time:

FileMode := 0;   {to allow testing even protected files}
{I-}
reset(myfile);
{I+}
result := IOResult;

If the result = 152 then the drive is not ready. Simple as that.
(Tested with a Turbo 5.0 program).
...................................................................
Prof. Timo Salmi
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun


From ts Tue May  9 09:20:00 EET DST 1989
Article 275 of comp.lang.pascal:
Path: chyde!ts
>From: ts@chyde.uwasa.fi (Timo Salmi LASK)
Newsgroups: comp.lang.pascal
Subject: Re: Wanted : Routine to convert ASCII hex numbers into decimal value
Message-ID: <467@chyde.uwasa.fi>
Date: 26 Apr 89 08:22:51 GMT
References: <1290@ncr-sd.SanDiego.NCR.COM>
Reply-To: ts@chyde.uwasa.fi (Timo Salmi LASK)
Organization: University of Vaasa, Finland
Lines: 37

In article <1290@ncr-sd.SanDiego.NCR.COM>
shehzad@babel.SanDiego.NCR.COM (Mevawalla Shehzad) writes:
>I need a Turbo Pascal routine which will take as it's input a string of HEX
>numbers in ASCII format (eg 0AB = 30 41 42 H) and convert it into a value of
>type real. If anybody has written such a routine I would greatly appreciate 
>it if you would mail it to me.

This is not quite what you are looking for but the list appended at
the end of this posting might be of interest to you.  You can
anonymous ftp tsbits16.arc from 128.214.12.3.  To anticipate a
question, the sources are not available. 

-------------------------------------------------------------------
Prof. Timo Salmi   
School of Business Studies, University of Vaasa,
P.O.Box 297, SF-65101 Vaasa, Finland
Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun
-------------------------------------------------------------------

Searching Archive: B:TSBITS16.ARC - Bits and conversions by T.Salmi 

Filename        Comment                             Date      Time    CRC
--------        --------------------------------    ----      ----    ---
BINTODEC.EXE    Binary to decimal                 08-08-88  00:03:30  E3B9
BITWISE.EXE     Binary operations with 10-base    01-30-88  13:20:52  B776
COMDIV.EXE      Largest common divisor            12-31-88  19:46:36  A2D6
CONVBASE.EXE    Conversion between number bases   03-05-88  22:29:36  4169
DECTOBIN.EXE    Decimal to binary                 08-08-88  00:03:48  AFC2
DECTOHEX.EXE    Decimal to hexadecimal            08-08-88  00:04:04  384E
FACTORS.EXE     Factors etc. of integers          01-30-88  13:22:04  7F0A
HEXTODEC.EXE    Hexadecimal to decimal            08-08-88  00:04:38  A03A
TSBITS.INF      Document                          12-30-88  14:51:58  071F
TSPROG.INF      List of PD programs from T.Salmi  03-24-89  12:07:44  EC87
----            ------             ------  -----
0010            109557              89180   19%