User Control Panel
Advertisements

HELP US, HELP YOU!

blood alchohol concentration

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Services
View unanswered posts
Author Message
MeltingWax
Member
Member


Joined: 27 Jan 2004
Posts: 132
Location: I dunno, but the padded walls are sweet...
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Tue Jan 04, 2005 6:19 pm    Post subject: Reply with quote

I did basically nothing, except called a single subroutine from the Acme::Drunk module, so don't give me any credit Razz

The module supposedly has an option for gender, but it doesn't seem to make a difference in the concentration whether I set the gender or not.

example:

Code:
http://www.meltingwax.net/cgi-bin/services/bac.pl?hours=.1&bodyweight=50&alcoholweight=22


Paramaters Info:

hours
>how many hours since you started drinking. Accepts decimels.

bodyweight
>how many pounds you weigh.

alcoholweight
>how much you've drank, in ounces


Encase you ever want to host it on your own server or modify it, here is all I wrote

Code:
<br />#!/usr/bin/perl<br /><br />use lib "./lib";<br />use Acme::Drunk;<br />use CGI;<br />use CGI::Carp;<br />$cgi = new CGI;<br /><br /><br /><br /># Get the variables and lower case them.<br /><br />#$gender           = $cgi->param('gender');<br />$hours             = $cgi->param('hours');<br />$bodyweight     = $cgi->param('bodyweight');<br />$alcoholweight  = $cgi->param('alcoholweight');<br /><br /><br /># bac mean blood alcohol concentration<br />$bac = drunk(<br />               #gender            => $gender,           # MALE or FEMALE<br />                hours              => $hours,             # hours since start of binge<br />                body_weight    => $bodyweight,     # body weight in lbs<br />                alcohol_weight => $alcoholweight,  # oz of alcohol<br />              );<br /><br /><br /># Print the Content-Type Header...<br />print "Content-Type: text/html\n\n";<br /><br /># Finally, print the output<br />print $bac;<br /><br />


I am aware that everything that has to do with gender is commented.

Here's the CPAN module URL...
http://search.cpan.org/~cwest/Acme-Drunk-0.01/

As I said before, don't give me any credit for this command Razz
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Tue Jan 04, 2005 7:54 pm    Post subject: Reply with quote

QUOTE(MeltingWax @ Jan 4 2005, 01:19 PM)
As I said before, don't give me any credit for this command Razz

WOW!! GREAT COMMAND! YOU ARE THE BEST CODER IN THE ENTIRE WORLD!!!
__________

Hey, somebody was going to do it, I just figured I'd be the first one to not read your post and compliment you on the command. Razz

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Tue Jan 04, 2005 8:17 pm    Post subject: Reply with quote

QUOTE(Cer @ Jan 4 2005, 08:54 PM)
YOU ARE THE BEST CODER IN THE ENTIRE WORLD!!!

No, that's me.

*cough*




(For anyone "slow", I was joking, and am not an arrogant jerk [most of the time])

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Services All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group