Linux-Misc Digest #728, Volume #18 Fri, 22 Jan 99 22:13:09 EST
Contents:
Re: Apache (Jim Buchanan)
Re: how to start programming in Linux (Jerry Lynn Kreps)
How do I get started ("anon")
tar problems ("joshr")
Re: Playing mp3 files (Chris Eilbeck)
Re: Scanner Support - Parallel Port Device ([EMAIL PROTECTED])
Re: A newbie versus "vi" (Andrew)
Re: Playing mp3 files (Niels Martens)
Re: SAMBA observations and questions (Phil Brutsche)
Re: Slackware and Oracle 8 (Anthony Suddaby)
Re: tar problems (Jim Richardson)
Re: How to print a man page? (Jim Richardson)
Re: working on new vector drawing program (Gary Momarison)
Re: Neural Network Applications? ([EMAIL PROTECTED])
PINE to check on mail? ("Alex")
Linux: making phonecalls without a phone (Neil Zanella)
Re: X server conection ? (David Bubar)
Q: efax/hylafax setup??? (Markus Wollgarten)
linux/gnu newform command? (joh)
Re: X on a laptop (Tamas Piri)
Re: Installing Applixware 4.4.1 demo on Debian system ([EMAIL PROTECTED])
Re: Can't compile kernel with sound card support, HELP! (Bill Unruh)
Re: 2038 and Linux (Doug DeJulio)
C For Raw Beginners. (WAS: how to start programming in Linux) (Bloody Viking)
Re: get your money back for Windows preinstalled ("Mauro Giacomet")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Jim Buchanan)
Subject: Re: Apache
Date: 21 Jan 1999 15:39:30 GMT
[EMAIL PROTECTED] wrote:
> Is there an RPM for the APACHE web server?
I'm sure there is, but don't be afraid to compile it from source.
The entire procedure:
./config -PREFIX=/usr/local
make
su
make install
Then edit /usr/local/apache/conf/httpd.conf (you'd have to do this
with an RPM as well), and run "/usr/local/apache/bin/apachectl start"
You then have a running web server.
--
Jim Buchanan [EMAIL PROTECTED] [EMAIL PROTECTED]
================= http://members.iquest.net/~jbuchana ====================
"I think one general rule of software design is that you should be
writing a program that you want to use." -Eric Allman
==========================================================================
------------------------------
From: Jerry Lynn Kreps <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: how to start programming in Linux
Date: Fri, 22 Jan 1999 17:07:58 -0600
Kelvin Leung wrote:
>
> Hello,
>
> I am not a real programmer. I had some experience in C back in MSDOS age
> years ago. I would like to start writing some simulation software in Linux
> envirnonment. Can anyone tell me where should I start it? Should I write
> it in GNOME or KDE or both? I'm a Newbie and may be I am asking a dumb
> question. Please tell me. Thanks.
>
> Kelvin
I agree with GUI being too complex to start with as a newbie.
Also, there are several kinds of programming in Linux: C, C++, Perl,
Python and several kinds of toolkits: Qt, GTk, etc., and even wrapper
generators like SWIG.
Start by reviewing shell programming with the book: "Beginning Linux
Programming", ISBN 1-874416-68-0, from Wrox press, Neil Matthew and
Richard Stones. It will start by developing a CD inventory programming
using bash shell programming Then it discusses terminals, curses (looks
like programs written for use in DOS), and goes into processes, signals,
pipes, sockets and then introduces the Tcl (Tool command language) and
Tk (Tool kit). BTW, you can get a neat visual developer front end called
Visual-Tcl. Then the book covers programming for X, for the internet
and CGI, and finally portability issues.
Come up to speed in C++ with "Practical C++ programming" by Steve
Qualline, from O'reilly press. ISBN: 1-56502-139-9.
Another book to help is "Linux Application Development" by Michael K.
Johnson and Erik W. Troan.
It has lots of coding samples to enter and try. It introduces the
Makefile and the make command, the debugger, the gcc, the electric fence
and other tools used in the code-test-debug cycle.
Get "GNU Emacs" from O'Reilly to really learn how to use Emacs.
Have fun!
Jerry
------------------------------
From: "anon" <[EMAIL PROTECTED]>
Subject: How do I get started
Date: Thu, 21 Jan 1999 09:04:44 -0800
I am finally ready to try Linux, where do I download it from, how do I begin
the installation, do I need anything besides what I download. thanks for the
help.
Please email responses to [EMAIL PROTECTED]
------------------------------
From: "joshr" <[EMAIL PROTECTED]>
Subject: tar problems
Date: Thu, 21 Jan 1999 10:50:24 -0500
ok, i am an admitted newbie at this linux thing, that out of the way i have
a question. i have redhat 5.2 and i would like to install a mp3 player for
Xwindows. when i go to untar the file nothing happens. it will just sit
there and stare at me and i have to ^c out to get my prompt back. the
command line i am using is "tar -x <filename>" this is correct, is it not? i
looked in all my books on the subject and the closest thing i got to an
explanation is that "tar is a slow process" ok, but does it take 5-10
minutes to untar something? i wouldn't think so. any help is greatly
appreciated.
-josh
------------------------------
From: Chris Eilbeck <[EMAIL PROTECTED]>
Crossposted-To: uk.comp.os.linux,alt.os.linux
Subject: Re: Playing mp3 files
Date: 22 Jan 1999 22:27:47 +0000
Chris Allen <[EMAIL PROTECTED]> writes:
> Chris Eilbeck wrote:
> >
> > Freeamp is nice, not quite finished but certainly workable and
> > visually pleasant.
>
> I'm using it right now. I haven't had any problems or issues with it at
> all.
The only problem (and this is a minor niggle, really) is having to kill
and restart the app to select a new list of mp3s.
Chris
--
Chris Eilbeck
mailto:[EMAIL PROTECTED]
Linux - Don't fear the Penguin
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.questions,linux.redhat.misc
Subject: Re: Scanner Support - Parallel Port Device
Date: Thu, 21 Jan 1999 11:34:53 -0600
Alex McCreath wrote:
>
> Hi, my name is Alex. I recently bought a Canon CanoScan FB 620P scanner
> that works like a beaut under....Win95 (yechhh). However, its a parallel
> port device (with a pass through to my printer) and I cannot find a damn
> thing about how to use it with Linux (RH5.2 installed on an old P120
> machine - must be time for an upgrade..groan). What I need is some
> advice on the following:
>
> a. Where I can get a (generic or specific) device driver for my
> parallel port scanner?
>
> b. What must I do to set up a new device driver (I'm a bit of a
> newbie).
>
> c. What free/shareware/commercial scanner applications are 'out
> there'.
>
> Regards,
>
> Alex McCreath
I have one too, and there are no drivers for parallel port scanners on
Linux. SANE is SCSI. Seems these manufacturers don't want to release the
details on how they manipulate the parallel port to make it pass data in
ways never intended by its creators.
Howard C. Shaw III
------------------------------
From: Andrew <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: A newbie versus "vi"
Date: Thu, 21 Jan 1999 17:28:03 +0000
On Wed, 20 Jan 1999 we all gathered round and David Augros was heard to
say: "A newbie versus "vi""
>emacs takes forever to load.
When you say this, is it from the position of using command line Linux
stuff that is (reportedly) very fast, or is it compared to something
Windows based like Word?
(PS. I am aware that emacs has much more power than Word, the comparison
was over loading time only.)
--
Andrew Arbon
[EMAIL PROTECTED]
http://www.gatekeeper.demon.co.uk/
------------------------------
From: Niels Martens <[EMAIL PROTECTED]>
Crossposted-To: uk.comp.os.linux,alt.os.linux
Subject: Re: Playing mp3 files
Date: Sat, 23 Jan 1999 01:41:50 +0100
Chris Eilbeck wrote:
>
> Chris Allen <[EMAIL PROTECTED]> writes:
>
> > Chris Eilbeck wrote:
> > >
> > > Freeamp is nice, not quite finished but certainly workable and
> > > visually pleasant.
> >
> > I'm using it right now. I haven't had any problems or issues with it at
> > all.
>
> The only problem (and this is a minor niggle, really) is having to kill
> and restart the app to select a new list of mp3s.
>
> Chris
> --
> Chris Eilbeck
> mailto:[EMAIL PROTECTED]
> Linux - Don't fear the Penguin
Try x11amp, it�s great !
--
^^
<o o>
~~-ooO-(��)-Ooo-~~{Niels Martens, [EMAIL PROTECTED]}~~
------------------------------
From: Phil Brutsche <[EMAIL PROTECTED]>
Subject: Re: SAMBA observations and questions
Date: Thu, 21 Jan 1999 11:38:24 -0600
On Wed, 20 Jan 1999, Raj Rijhwani wrote:
> I've managed to edge a Linux system into my Windross 95/NT saturated
> place of work (YAY!). It's to be used as a bridge between an existing
> FTP server on Win95 and and HP-9000 by SMB and NFS respectively. (Don't
> suggest I run the FTP server on Linux native - for the immediate future
> the "I wouldn't start from here" philosophy isn't an option. The FTP
> server may well migrate in the future, but not immediately.) As a
> solution the
>
> HP-9000 <-- NFS -- Linux <-- SMB -- Win95
>
> works (after a fashion) and I can read directly from the HP files on
> the FTP server.
Question: Wouldn't it have worked better to run Samba directly on the
HP-9000? The 'middle man' could be eliminated (saving costs) and the
problem you describe would be non-existant.
======================================================================
Phil Brutsche [EMAIL PROTECTED] | [EMAIL PROTECTED]
Microsoft: "Where do you want to to today?"
Linux: "Where do you want to go tomorrow?"
------------------------------
From: Anthony Suddaby <[EMAIL PROTECTED]>
Subject: Re: Slackware and Oracle 8
Date: Thu, 21 Jan 1999 21:46:29 +0000 (GMT)
In article <Pine.LNX.3.96.990120023715.643C-100000@cimprn>,
Hans van Zijst <[EMAIL PROTECTED]> wrote:
> On Tue, 19 Jan 1999 [EMAIL PROTECTED] wrote:
> > Will the free download version of Oracle 8 run under Slackware?
> > I've read that it there are versions of it available for Red Hat
> > and SuSE but haven't heard much about running it on Slackware.
> I don't think it will run under Slackware, at least not without a lot of
> work. SuSE and Red Hat use different libraries than Slackware. Oracle was
> compiled on these libs (glibc2) and so it won't run with libc5, which is
> used by almost all other Linux distributions.
[snip]
SuSE 5.3 usess libc5; SuSE 6.0, which is as yet only available in a German
version, uses glibc2. You could wait until SuSE 6.? comes out in English,
which should be soon.
Debian 2.0 uses glibc2, and has its own advantages, as, I am sure, does
RedHat(which has used glibc2 since 5.0).
IMH and linux newbie O, it would be much simpler to instal a glibc2
distribution at this time.
regards
--
Anthony Suddaby [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Jim Richardson)
Subject: Re: tar problems
Date: 23 Jan 1999 00:51:16 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 21 Jan 1999 17:10:21 +0000,
Gert Wollny, in the persona of <[EMAIL PROTECTED]>,
brought forth the following words...:
>joshr wrote:
>>
>> ok, i am an admitted newbie at this linux thing, that out of the way i have
>> a question. i have redhat 5.2 and i would like to install a mp3 player for
>> Xwindows. when i go to untar the file nothing happens. it will just sit
>> there and stare at me and i have to ^c out to get my prompt back. the
>> command line i am using is "tar -x <filename>" this is correct, is it not? i
>> looked in all my books on the subject and the closest thing i got to an
>> explanation is that "tar is a slow process" ok, but does it take 5-10
>> minutes to untar something? i wouldn't think so. any help is greatly
>> appreciated.
>tar -x <bla> tries to read from /dev/tape
>
>ever tried "man tar"? Should give you all the answers you need.
>
>
>
tar xvf filename
for straight tar file
tar xvzf filename
for gzip'd tarfiles.
--
Jim Richardson
Anarchist, pagan and proud of it
WWW.eskimo.com/~warlock
Linux, because life's too short for a buggy OS.
------------------------------
From: [EMAIL PROTECTED] (Jim Richardson)
Subject: Re: How to print a man page?
Date: 23 Jan 1999 00:51:15 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 21 Jan 1999 17:14:21 -0600,
Rich Grise, in the persona of <[EMAIL PROTECTED]>,
brought forth the following words...:
>[EMAIL PROTECTED] wrote:
>> Is there any way to
>> print the man or xman page in it's original formating?
>
>Well, I ran man man on one xterm, and ps auw on another, and came up
>with this:
<interesting way of printing man pages clipped.>
the easiest way (at least for me.) is
man -t command |lpr
or
man -t command > foo; gv foo
THis assumes that you have a postscript capable printer on lpr, or
some ps filter, the other method requires gv (obviously) and a supported or
postscript printer.
--
Jim Richardson
Anarchist, pagan and proud of it
WWW.eskimo.com/~warlock
Linux, because life's too short for a buggy OS.
------------------------------
From: Gary Momarison <[EMAIL PROTECTED]>
Subject: Re: working on new vector drawing program
Date: 21 Jan 1999 10:08:50 -0800
Ralf Engels <[EMAIL PROTECTED]> writes:
> ps. yes, I heard of KIllustrator. No, I don't think I could
> support qt or koffice, but I downloaded the code and will
> look at their ideas.
Then you might also care to know about
<A HREF="http://www.online.de/home/sketch/">
Sketch</A>  "similar to CorelDraw or Adobe Illustrator"
or
<A HREF="http://www.uni-ulm.de/~s_tvolk/chemtool.html">
chemtool</A>  "to draw organic molecules easily under X"
And there's a drawing tool for the Fresco graphics library that
might have some ideas for you. It has an interesting demo of its
embedding feature, in that one can insert an image of the drawing
tool into a document and then use that embedded "image" just
like the original one (buttons & menus work, etc.).
http://www.aa.net/~swear/pedia/fresco.html
--
Look for Linux info at http://www.dejanews.com/home_ps.shtml and in
Gary's Encyclopedia at http://www.aa.net/~swear/pedia/index.html
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Neural Network Applications?
Date: 21 Jan 1999 17:57:22 GMT
In his obvious haste, Tom Fawcett <[EMAIL PROTECTED]> babbled thusly:
: nospam@nospam!.kom (Steve) writes:
:> Does anybody know if there are any public domain neural network
:> statistical packages available for Linux?
: What do you want, a neural network package or a statistics package?
: Try this:
: http://SAL.KachinaTech.COM/index.shtml
: and check out the comp.ai.neural-nets FAQ, which has a large index of NN
: packages.
I think SNNS is free to download, although whether it's public domain or
not is another matter.
--
______________________________________________________________________________
|[EMAIL PROTECTED]| |
| Andrew Halliwell | "The day Microsoft makes something that doesn't |
| Finallist in:- | suck is probably the day they start making |
| Computer science | vacuum cleaners" - Ernst Jan Plugge |
==============================================================================
|GCv3.12 GCS>$ d-(dpu) s+/- a C++ US++ P L/L+ E-- W+ N++ o+ K PS+ w-- M+/++ |
|PS+++ PE- Y t+ 5++ X+/X++ R+ tv+ b+ DI+ D+ G e>e++ h/h+ !r!| Space for hire |
==============================================================================
------------------------------
From: "Alex" <[EMAIL PROTECTED]>
Subject: PINE to check on mail?
Date: Fri, 22 Jan 1999 13:15:34 -0500
Does anyone know how to make PINE v4.91 to receive mail from a pop server? I
configured it to send but alas, failed in configuring it receive e-mail.
Does anyone know?
Please mailto: [EMAIL PROTECTED]
Thanks
Alex
------------------------------
From: Neil Zanella <[EMAIL PROTECTED]>
Subject: Linux: making phonecalls without a phone
Date: Thu, 21 Jan 1999 14:25:40 -0330
Hello,
I am looking for a Linux application to do the following:
hardware requirements:
- modem, sound card, microphone, headsets
or
- voice modem, microphone, headsets
description:
An X11 GUI allows you to click on the numbers to dial
while the computer is on. The person dialing can talk throuch
microphone and headsets. The modem is not in use before one
dials. Hence one can make normal phone calls (not internet
phone calls) without owning a phone.
Is there such an application. This would the extra benefit of reducing the
clutter around the computer.
Thanks,
Neil Zanella
[EMAIL PROTECTED]
------------------------------
From: David Bubar <[EMAIL PROTECTED]>
Subject: Re: X server conection ?
Date: Thu, 21 Jan 1999 13:13:03 -0500
Daniel Wetzler wrote:
>
> Hallo,
>
> I try to establish an x server connection betweeen a Linux system and a
> solaris system but don`t know
> exactly how to export the display on Linux.
>
> export display <ip> didn`t work......
>
> Does someone know how I handle this ?
>
> Daniel
try export DISPLAY=<ip>:0.0
of course this works only for borne/korn shell or derivatives like the
POSIX shell or bash.
csh or others use other nomenclature like setenv and such.
--
==========================================================
David Bubar http://www.albany.net/~bubar [EMAIL PROTECTED]
LTI http://www.ltionline.com [EMAIL PROTECTED]
------------------------------
Date: Thu, 21 Jan 1999 18:57:53 +0100
From: Markus Wollgarten <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Q: efax/hylafax setup???
Hi all,
is there someone who could kindly provide me his or hers configuration
files to make a USR Sportster Message Plus x2 modem (bought after 1997)
sending faxes from my linux computer using efax or hylafax?
I tried a lot of things, followed all the manuals, but no success so
far.
Thanks a lot in advance!
Markus
[EMAIL PROTECTED]
http://www.iap.ethz.ch/users/wollgarten/index.html
------------------------------
From: joh <[EMAIL PROTECTED]>
Subject: linux/gnu newform command?
Date: 21 Jan 1999 09:41:44 -0500
My redhat 5.1 distribution didnt' come with an equivalent of the Unix
newform command, and I can't seem to find one on the gnu page. Is
there one? I suppose I could write a shell script that would do the same
thing using sed, but if there's a "real" version out there, I'd prefer
that.
--
o ! [EMAIL PROTECTED]
j h [nix the x to reply]
------------------------------
Date: Thu, 21 Jan 1999 19:19:20 +0100
From: Tamas Piri <[EMAIL PROTECTED]>
Subject: Re: X on a laptop
Upali Bandara wrote:
>
> A friend of mine is using a laptop (Highscreen Advanced II). Now we try
> to install the X server: No success. Its screen does 800/600 @ 16 Bit
> under 95. What can we do? Which monitor type shall we tell to
> Xconfigurator? Which refreshing rate? Which Server?
>
> Samuel
I prefer Linux Laptop Home Page somewhere on www.linux.org. I found
totally good configurations to my laptop ( not the same type ).
Tamas
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Installing Applixware 4.4.1 demo on Debian system
Date: Thu, 21 Jan 1999 18:32:28 GMT
In article <[EMAIL PROTECTED]>,
Daniel Dui <[EMAIL PROTECTED]> wrote:
> I got the RPMs for Applixware demo from the CD given with Rad Hat 5.2
>
> How can I install it on a Debian system?
>
> I tryed to use alien, but with poor results.
>
> thanks in advance
>
> Daniel
In the Applix directory there's a script called install-applix. After cd'ing
to the directory, invoke it by typing ./install-applix and you should be good
to go. That's the way I installed it on my RH5.2 system, didn't bother with
RPM. Be aware that it takes about 250MB+ of disk space, and is crippled (one
page of presentation graphics, 80x24 spreadsheet, etc. But fine for "fly
before buy".
jch
============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: Can't compile kernel with sound card support, HELP!
Date: 21 Jan 1999 19:02:24 GMT
In <[EMAIL PROTECTED]> Niklas Lundin <[EMAIL PROTECTED]> writes:
>I have RedHat 5.2 installed on my laptop. Everything worked fine, except
>apm.
>I have changed the default configuration to include apm support such as
>power-off
>on shutdown. This compiles fine. Them I noticed that sound wasn't
>supported. I
>changed the configuration to include sound card support and ran as usual
Redhat has sound already inculded. It must however be set up. If you
have a soundblaster type card, use sndconfig. No need to recompile the
kernel. Just make sure that you are running kerneld so modules can be
loaded when needed
------------------------------
From: [EMAIL PROTECTED] (Doug DeJulio)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: 2038 and Linux
Date: 21 Jan 1999 14:06:40 -0500
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
>>These are two different problems. The Y2K problem is about the way dates
>>are stored in persistent files. The 2038 bug is the way dates are
>>represented inside the OS. I don't know any application that stores
>>dates as seconds since 1970.
>
>tar does.
>
>(begin extract)
> The `mtime' field is the modification time of the file at the time
>it was archived. It is the ASCII representation of the octal value of
>the last time the file was modified, represented as an integer number of
>seconds since January 1, 1970, 00:00 Coordinated Universal Time.
>(end extract)
This is fine.
"ASCII representation of the octal value" effectively means "unlimited
precision". The 2038 problem only relates to *32-bit* data. This
data representation will work perfectly well with 64-bit time types.
No problem at all.
Basically, it sounds like tar is using *exactly* the correct solution
to this problem, if the future holds 64-bit time_t values.
It doesn't depend on the binary representation of the data on a given
machine (ie. it's byte-order independant), it doesn't depend on the
size of the data type, it works with the current system, and it works
with the most popular proposed solution, all without modification.
Yay tar!
--
Doug DeJulio | mailto:[EMAIL PROTECTED]
HKS, Incorporated | http://www.hks.net/~ddj/
------------------------------
From: Bloody Viking <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.lang.c
Subject: C For Raw Beginners. (WAS: how to start programming in Linux)
Date: 23 Jan 1999 02:18:38 GMT
In comp.os.linux.advocacy Kelvin Leung <[EMAIL PROTECTED]> wrote:
: I am not a real programmer. I had some experience in C back in MSDOS age
: years ago. I would like to start writing some simulation software in Linux
: envirnonment. Can anyone tell me where should I start it? Should I write
I'm not a "real" programmer either. I write only the simplest C code.
Here's what I do. I take a pre-existing piece of my own sourcecode and
type at the prompt "pico source.c" and start editing away. When I want to
test it, I exit the text editor, and type "gcc source.c" then test run the
a.out it creates. The a.out is the executable. Most of what I do with C is
math type stuff, and I normally use shell scripts to run the executable to
redirect files to stdin and redirect stdout. I can make C read and write a
file,, so I simply use another old sourcecode as a start and code away.
You are probably a lot better at C than I am, but that hasn't stopped me.
Still, you can likely start coding in C using a text editor and the
compiler. I'm sure you can make a source directory tree, a Makefile, and
use Make, which I don't know how. Still, all you need to start with is a
text editor and the compiler. There is probably an integrated development
environment, but I don't know about it. Others may know, or if you really
want an IDE for coding, you could make one! :) If you make a Borland style
IDE for C coding, please make it GNU and for those who like the command
line! :) The C used in Linux is the Real-McCoy ANSI C, no tricks or
bullshit. If you code in ANSI C, you'll love Linux C!
For raw C beginners, here's a piece of working sourcecode to get you
started. Have fun with it!
---begin sourcecode for my .sig countdown---
#include <stdio.h>
#include <math.h>
float income, expence, output;
main()
{
scanf("%f", &income);
scanf("%f", &expence);
output = income * expence;
printf("%f", output);
printf("\n");
}
---end sourcecode---
All it does is add 2 numbers from stdin. I use this as the "seed" source
for hacking up math proggies. Last year, the government came up with a
body fat formula, and I hacked up a C proggie that takes height and weight
at stdin.
Here is the GNU body fat proggie again, for the benefit of C newbies:
---begin fat.c---
#include <stdio.h>
#include <math.h>
float mass, height, output, ideal;
main()
{
/* The Fat Programme */
/* */
/* The variables "mass" is your weight in pounds and "height" is in */
/* inches. The output of the programme is your Body Mass Index. */
printf("Enter your weight in Pounds:\n");
scanf("%f", &mass);
printf("Enter your Height in inches:\n");
scanf("%f", &height);
output = mass * 703 / (height * height);
ideal = 25 * height * height / 703;
printf("\n%f", output);
/* Fun note here is the first if-then and the strategic placement of */
/* lone printf return key afterwards. */
if(output<25)
{
printf(" is your Official Body Mass Index! Congratulations for being");
printf(" healthy!\n");
printf("You're doing America a favour!");
}
printf("\n");
/* Now, for an "if-then" routine that embeds a second one... */
if(output>=25)
{
if(output<30)
{
printf("You're a Fat Slob! Lose some weight!");
}
}
/* Now, for a simple if-then.... */
if(output>=30)
{
printf("You're a fucking blimp! What have you got to say for
yourself?\n");
printf("Lose some god damn weight NOW!!!!");
}
printf("\n");
if(output>=25)
{
printf("\n");
printf("%f pounds is how much you've got to lose, slob.", mass-ideal);
printf("\n");
}
}
---end fat.c---
Have fun! My C style is much like that of an old BASIC programmer. These 2
sourcecodes should help out the rawest newbie in C programming. I have
evolved a modular style of programming, but not like you'd see in Make. I
use shell scripts and C like an ols DOS hack who'd use a batch script and
QBASIC routines to do stuff in either language he couldn't do otherwise.
Even though I've been using Linux for 4 years, I still programme like a
DOS hack. All the CPU power used in my .sig is done in this admittedly
crude manner. You can call it laziness if you like, but it gets the job
done. Yes, my pet methods waste CPU cycles.
If nothing else, this above does prove you don't have to be an expert
programmer to enjoy using Linux. :) I am FAR from ever being any kind of
expert! I took up C in part when I got a conditional to work in a shell
script, but later forgot how. I merely hacked away in C a bit to
compensate. Becuse I traditionally don't mess with error checking (I know,
a bad idea) that made me appreciate simple file formats.
I don't expect to be writing any "killer apps" any time soon - or ever. I
might well hack up a countdown suite or backdate suite for Y2K+38. But I
won't be hacking up a word processor! :) I simply don't have patience like
most people have. :(
--
CAUTION: Email Spam Killer in use. Leave this line in your reply! 152680
T-minus 343 Days, 4 Hours, and 29 Minutes until Y2K and counting.
3434298 bytes of spam mail deleted. http://www.wwa.com/~nospam/
------------------------------
From: "Mauro Giacomet" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,alt.os.linux
Subject: Re: get your money back for Windows preinstalled
Date: Fri, 22 Jan 1999 20:22:51 -0600
>So I needed to re-install Windows to turn off Hibernation. Yes, you
>read that correctly - even though Hibernation is a BIOS "feature", you
>need Windows installed to turn it off.
>
>I wonder why the US DOJ has so much trouble proving MS being a Monopoly.
Because they don't ask this simple question:
"Why when you go buy a computer do you get Windows for "free"?"
You should be able to buy the machine and then buy the OS.
The majority of the customers, looking at the above quoted "free", realize
that the price of the OS is included in the price of the machine. Why would
they throw away the money they've already paid for the OS? Unless they are
like us.
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Misc Digest
******************************