Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Marking Time - Controlling a Noisemaker from a PC?

Cliff posted more than 12 years ago | from the two-horn-blows-every-hour-and-three-for-lunch dept.

Technology 33

fallen1 asks: "My company is engaged in making trusses for various home, business, and industrial applications. One thing our truss plant does not have is a signal device to keep everyone on schedule for shift starts, breaks, lunch, and so on. Currently the plant manager is responsible for making sure everyone takes off when they are supposed to. This is, of course, highly inefficient and is causing problems. They approached me, asking to research into time control devices that can signal all the starts and stops (our time clock is integrated into our POS/sales system). Of course, one of my first stops was Slashdot ;-). Please keep in mind I am fairly new to Linux. So, in the interest of trying to keep the cost down, does anyone know of a Linux software/hardware combo that can control a horn or bell - as well as length of ring/tone - for multiple events? Any feedback would be greatly appreciated." A friend of mine once wired his CD remote control to the computer and wrote a simple timer in C: Voila! A simple alarm clock (assuming the remote was pointed in the right direction). A similar principle would also work here. You could tie a computer to the aux-in of an amp, which is in turn tied to LARGE speakers at both ends of the plant, and have it make the right noises at the right time. I'm sure this has been done in a variety of ways, before. If you've done something like this with a computer, particularly at an industrial scale, please share the details.

cancel ×

33 comments

Sorry! There are no comments related to the filter you selected.

Click here?! (-1)

Serial Troller (556155) | more than 12 years ago | (#3423521)

No!

Big, ugly ads. Yeccch.

Oh, bite my dick.

Ten Rules of Anal Sex (-1)

diaper_tales (575224) | more than 12 years ago | (#3423542)

1. Anal intercourse is the least practiced form of anal sex.

There are many ways to enjoy the anus erotically. The most common techniques include touching the anal opening while masturbating or stimulating a partner's anus during intercourse or oral sex.

Some people enjoy the sensation of a finger - their own or a lover's - insinuated into their anal opening and gently rotated. Others may prefer the insertion of a dildo or vibrator beyond the anal opening and short anal canal into the larger rectum. Many men, including hetereosexuals, prefer this form of penetration.

Oral-anal lovemaking is popularly known as rimming. The very idea disgusts some people. Others enjoy performing it or allowing themselves to be probed in this special way.

2. Anal stimulation, including intercourse, is not painful if done properly.

The belief that anal stimulation, especially intercourse, has to hurt is a persistent and dangerous myth. Just as pain anywhere in the body indicates that something is wrong, so is the same true of the anal area. With its high concentration of nerve endings, the anus can produce extreme agony when it is mistreated. Yet it can be a source of great pleasure.

When a finger, object or penis is intorduced into the anus, the anal muscles go into spasm, as if fighting off an invasion. Pain will result if the partners do not wait for these muscles to relax. Under sufficient stress they will eventually collapse and the pain subside, unless further damage is done. But, any 'pleasure' afforded from this kind of activity derives mostly from the absence of discomfort.

Maximum anal pleasure requires the elimination of all pain or physical trauma from the anal experience. Self-protection on the part of the passive partner involves being ready to say "no" until he or she is ready to proceed. Readiness is a combination of physical relaxation, usually helped along by plenty of leisurely anal touching, and desire.

Occasionally the anal muscles are relaxes, but the passive partner is still not in the mood. Stimulation should mount only in proportion to the degree of receptivity.

3. Anal sex can be enjoyed even if it has been consistently uncomfortable in the past.

Sufficient desire alone does not necessarily guarantee pleasurable anal sex. Nor is an uncomfortable previous experience always the reason for a lack of interest in or desire for anal sex.

Chronic anal tension is the most common cause of anal discomfort during sex. Hemorrhoids and constipation are usually a sign of this condition. Tension can be relieved by touching the anus and becoming more familiar with it. An ideal time to explore the anal opening is while taking a shower or bath. Deep breathing also affects the anal muscles. Tensing the anus and the letting go in another way of learning to relax it. Anyone who enjoys masturbation might want to experiment with some form of anal stimulation, though he or she should stop if any discomfort occurs.

For many people the turning point in anal sex is when they allow a partner to massage the anus with the understanding that intercourse will not be attempted. Then the recipient of anal caresses can concentrate solely on the pleasure that this erogenous zone is capable of generating.

4. Two muscle rings called sphincters surround the anal opening. Each functions independently.

If you insert a finger about one half-inch into your anus and press your fingertip against the side, you can clearly feel the two sphincter muscles. There is less than a quarter-inch between them. The external sphincter is controlled by the central nervous system - just like the muscles of the hand, for example. You can readily tense and relax this sphincter whenever you want.

The internal sphincter is quite different. This muscle is controlled by the involuntary or autonomic part of the nervous system, which governs such functions as heartbeat and stress response.

The internal sphincter reflects and responds to fear and anxiety during anal sex. It will cause the anus to tense up automatically even if the passive partner is trying to relax. Thus, precautions about safety and comfort are essential here.

Even if a person does feel comfortable during anal sex, he or she may still need to learn voluntary control over his or her internal sphincter in order to relax it at will. Doing so requires regularly inserting a finger, perhaps in the shower each day, and feeling the internal sphincter. The muscle changes spontaneously and in response to behavior. In this instance, simply paying attention is more important than trying to relax. Anyone can gradually learn to control the internal sphincter at will.

5. Anal stimulation provides many kinds of pleasure

The highest concentration of nerve endings is around the anal opening itself. A finger can focus on them especailly effectively. When an object or penis is inserted beyond the anal opening into the rectum, other pleasures are involved. The outer protion of the rectum, like the vagina, has several nerve endings. The inner portion responds mostly to pressure.

Some people enjoy the feelings of pressure and fullness once they understand that these sensations do not presage an impending bowel movement. Rectal pressure is especially important to enthusiasts of "fisting," a form of anal sex in which several fingers or een the entire hand and forearm are inserted into the rectum and sometimes into the lower colon.

In men, the protate - which is just beyond the rectal wall, a few inches in, towards the front of the body - can be a source of pleasure when massaged by a finger, an object, or a penis. Also, the lower end of the penis, or "bulb," is near the anal opening opening. It is stimulated indirectly by most types of anal sex.

Anal pleasure can be psychological as well as physical. The anal taboo adds to the thrill of the forbidden. The most common anti-anal message (it's dirty!) sometimes returns as a source of raunchy, sleazy excitement. Rimming enthusiasts may enjoy the feeling that they are being disgustingly - and delightfully - perverse. Other people regard the anus as a secret, special place. Sharing it with a partner is an act of openness and giving.

6. Anal stimulation can lead to orgasm

A minority of men and women can respond orgasmically to anal sex without direct genital stimulation. Women probably do so through pelvic muscle contractions - and a small minority even though the sheer excitement of being anally penetrated. When men expereience an orgasm from anal stimulation, they tend to focus on the prostate. No doubt they are also responding to indirect stimulation of the penile bulb.

Orgasms from anal stimulation are most likely to occur when the participants become thoroughly absorbed in their sensations and fantasies. An lmost certain way to prevent such an orgasm is to be become determined to have one. Seeking an anal orgasm will create new pressures and disrupt the pleasure.

It must be remembered that most people require direct genital stimulation in order to climax. On the other hand, a few people have orgasms only with anal stimulation.

7. Diet contributes to the enjoyment of anal sex

Regular bowel movements are the major function of the anus and rectum. There must be sufficient fiber in a person's diet to make his or her feces soft, bulky and well formed. This allows a bowel movement to be produced without force or effort. Forced evacuations irritate anal tissues, causing discomfort and adding to muscular tensions. Fresh fruits, vegetables, whole grains or unprocessed bran are important sources of fiber.

8. Different rules of hygiene apply to the vagina and rectum

Since intercourse can be vaginal or rectal, many people assume the the same rules apply for the penetration of the vagina and rectum. Although both are lined with soft tissue and are capable of expanding, they are radically dissimilar.

The rectum is not straight. After the short anal canal which connects the anal opening to the rectum, the rectum tilts toward the front of the body. A few inches in, it curves back - sometimes as much as 90 degrees. Then, after a few more inches, it swoops toward the front of the body once again. A person can learn about the shape of his or her rectum by gently inserting a soft object, trying different angles and body positions and concentrating on how it feels. Make sure the object has a flared base so that if you loose your grip, it won't slip into the rectum and become irretrievable.

The rectum does not produce lubrication like the vagina but only a small amount of mucus. Therefore, rectal penetration always requires a lubricant. Chemical additives should be avoided. Water-based lubricants are latex-compatible.

The main function of the rectum is to act as a passageway for feces. But feces are not normally stored in the rectum except just prior to a bowel movement. Yet small amounts may remain in the rectum, expecially if the feces are not well formed. Anal douching before lovemaking will help some people especailly concerned with cleanliness to relax. For others the idea of dirtiness heightens the joy of the forbidden; for them, douching is anti-erotic.

9. Anal intercourse is not necessarily an act of dominance and submission.

The top-bottom imagery associated with anal intercourse is widespread. No doubt the belief that anal sex has to hurt contributes to this notion. And in fact some people are intensely excited by top-bottom fantasies about anal sex. The thought that they are submitting to such a degrading act is a terrific thrill. However, actual, not fantasized, anal pain can lead to trouble.

For others, the enjoyment of anal sex is inhibited by top-bottom imagery. The idea of surrendering control, and perhaps submitting to humiliation, causes immediate, protective tensing of the anal muscles. These individuals are more likely to relax and enjoy themselves if they can learn to regard anal sex as pleasurable rather than as an expression of power.

10. Anal sex can be perfectly safe, even beneficial.

The taboo against anal eroticism is perpetuated by the almost universal belief among physicians that anal sex is inevitably dangerous. No physical injury from anal stimulation results if both partners refuse to tolerate pain, never use force and avoid the use of drugs.

All the other risks center on sexually transmitted diseases. Each of the common STDs - gonorrhea, syphillis, herpes - can affect the anus. Intestinal parasites, bacteria or tiny bugs are usually passed along when fecal matter finds its way into someone's mouth or vagina, most likely through rimming.

AIDS has complicated the matter. The HIV virus can pass from the semen or blood of an infected person to the bloodstream of a partner through a tiny break in the rectal tissue during anal intercourse.

To avoid this risk, anal intercourse and rimming should not be practiced casually. Those who do enjoy anal intercourse should always use a condom. Rimming should always be accomplished by a latex barrier. Of course, in a monogamous realtionship with two healthy people, the risk of disease transmitted anally is reduced.

Thousands of men and women with chronic anal medical problems have restored their anal health by challenging their negative attitudes. This approach is indespensible for full erotic enjoyment of the anus.

Better Solutions Than A Linux Box (1)

AllMightyPaul (553038) | more than 12 years ago | (#3423537)

Wouldn't it make sense to buy one of those bell systems for far less? One that configures itself? Maybe a Linux box connecting to the time tracking system would make sense if you changed schedules a lot, but having a computer do this kind of work seems like overkill.

well (-1, Redundant)

Anonymous Coward | more than 12 years ago | (#3423551)

believe me, it works really really really well

Cron and PC Speaker/Sound Card.... (3, Insightful)

jsimon12 (207119) | more than 12 years ago | (#3423553)

Well, seeing as the computer has a good clock, just use cron to either :

a. play an MP3/WAV/AU whatever over the sound card, which in turn is plugged into the speaker

b. make some noise over the PC speaker (if for whatever reason you don't have a sound card, course this would require a little wiring, but not a whole hell of a lot)

Re:Cron and PC Speaker/Sound Card.... (1)

tongue (30814) | more than 12 years ago | (#3423725)

a. play an MP3/WAV/AU whatever over the sound card, which in turn is plugged into the speaker

Yeah, that's great until some wiseass replaces /etc/alarm/buzzer.mp3 with /path/to/pirated/music/beastie_boys_fight_for _your_right.mp3... see how long the plant manager has his job when the company president hears that one going off at 17:00...

Re:Cron and PC Speaker/Sound Card.... (1, Offtopic)

unitron (5733) | more than 12 years ago | (#3425031)

"Well, seeing as the computer has a good clock..."

What, no "+1, Funny"?

Re:Cron and PC Speaker/Sound Card.... (2)

unitron (5733) | more than 12 years ago | (#3430850)

I would have cheerfully accepted (hey, it's only karma) any downward moderation ( troll, flamebait, etc) on the above comment except "redundant" (which it isn't, as nobady else at the time had pointed out that computer RTC's are notorious for being about as accurate as the old mechanical automobile clocks, and even worse if there's an operating system playing around with the settings) or "off-topic", which it isn't because the original question was about getting a noise made at a particular time or times, which requires using something that can actually keep time accurately.

THIS post, by the way, IS off-topic.

it should be very easy to do (0)

Anonymous Coward | more than 12 years ago | (#3423558)

all you need to do is hook up a piezoelectric alarm to a voltage capacitor connected to the serial port.

The simplest method is always best. (2)

billn (5184) | more than 12 years ago | (#3423572)

No fancy serial port crap. No goofy controllers.

Crontab.
mpg123.
Appropriate sound card drivers.
A decently loud speaker setup.

A refurbished laptop would work excellent for this. Even an old one. Hell, I gotta 133mhz sitting here. Gimme 50 bucks for it. I'll even do the install.

Hm. No, I think I'll use it for a firewall. But you get the idea.

Re:The simplest method is always best. (0)

Anonymous Coward | more than 12 years ago | (#3424629)

wow, u r 3l33t!!!! firewall!!

Re:The simplest method is always best. (2)

Suppafly (179830) | more than 12 years ago | (#3426009)

Hell, I gotta 133mhz sitting here. Gimme 50 bucks for it.

how bout $30 plus shipping?

Re:The simplest method is always best. (1)

eggstasy (458692) | more than 12 years ago | (#3426780)

Whow. I would kill for a laptop and 133Mhz is more than enough.I used to have a 25Mhz monochrome which worked fine until the disk controller died... Are you serious about selling it for 50? I'd buy two of those! The shipping would kill me though, I live in Portugal.
I'm sorry for the off topic. Please dont mod me down, I have very little karma :(

Simple (1)

bpb213 (561569) | more than 12 years ago | (#3423607)

There are two ways to do it.

I will assume that this is a large place.

Your going to have to install wiring for speakers and the speakers themselves (or whatever your favorite 110 decibel alarm system has.. >:) ). Make sure all the wiring terminates in the room with the computer.

If they are speakers, sure, that $50 amp at radioshack would prolly work. (louder if needed, but the point is the same). In this case, mpg123 or xmms would would perfectly. (provided no one has a playlist running :) ).

Of course, if your a hardware hacker, there are numerous ways to write simple C programs to interface with the printer port, and also corresponding eletronic kits that can be set up as computer controlled relays and such.

Of course, where you where wanting different sounds for different events ("everyone stand for the coporate anthem"), then the mp3 or a wav player hooked up to an amp would be much more versitile, cost about the same, and be a lot easier to set up.

I wrote a program to control a parallel port. (1)

Futurepower(R) (558542) | more than 12 years ago | (#3423668)


I wrote a program to control a parallel (printer) port. It's easy, in several languages. There are eight data lines, so you have eight outputs.

It is possible to buy power controllers that control 30 amps from an isolated 5 milliampere 5 volt input, which is perfect for controlling from a computer.

Correction and amplification: (1)

Futurepower(R) (558542) | more than 12 years ago | (#3423876)


My comment above is only relevant if you need a seriously loud siren. In many large factories, this is necessary, because speakers just don't make enough sound. The sirens run on AC power, and would need to be controlled from a PC port.

If you have a sound system that is loud enough to signal to everyone, it is better to use a PC sound card, and control that from a timer program, as someone has said above. An advantage of a sound system is that you can configure the sound easily, and you can use it for voice.

Here's how I've seen it done (2, Informative)

krangomatik (535373) | more than 12 years ago | (#3423986)

I've seen x86 hardware running linux being used to control bells, lights, radios, etc at firestations for dispatch alerting. It was done with some custom made hardware controlled from the serial port that had relays that were used to control the devices. It was a headless solution that took all its user input from at keypad and display on a multiline text lcd. I'm pretty sure the relay box and software was custom for this, but you may be able to find a vendor that sells gear like this. So, yes, its possible, but no I don't know of an off the shelf solution.

The Easy Way (3, Interesting)

inKubus (199753) | more than 12 years ago | (#3424199)

Step 1: FORGET LINUX

Step 2: Go down to walmart and pick up 3 or 4 five-dollar alarm clocks.

Step 3: Wire the speaker outputs of each alarm clock to your PA system.

Label each clock for what the alarm is set for. Or maybe you could spend a few extra bucks and get one that has multiple alarms instead of 3 separate alarm clocks.

Or even better, use windows, download a shareware program that plays sound events. Then you don't have to worry about compiling in sound support, x,y,z, the headaches, trials and tribulations you will go thru being "new to linux" just to get some stupid clock setup.

Don't bother. I'm almost certain you can get some sort of standalone commercial timer unit also. For much cheaper.

Builtin windows software (1)

CTho9305 (264265) | more than 12 years ago | (#3487683)

start->run "tasks" (at least in XP. you should be able to find it for other versions). add a task to play a sound file, and leave your speakers on.

Sounds a lot like my alarm clock... (1)

Drakin (415182) | more than 12 years ago | (#3424238)

After realiseing just how quiet my alarm clock is, Ijust use my computer... set it to play full volume when I want to wake up (Beethoven's 5th Symphony is great to wake you up... rather starling too... never slept past the first 4 notes yet!)

As others have said, there's countless ways to do it, the simplest is to have a audio player play a file at a given time (or, for a schedualed event. IE, all shift changes have one sound, breaks another etc). Provideing your computer has a sound card in it, should be simple enough to hook it up to your PA system.

Re:Sounds a lot like my alarm clock... (0)

Anonymous Coward | more than 12 years ago | (#3435237)

I prefer Orff's Carmina Burana ;)

You have got to be joking... (2, Insightful)

jo42 (227475) | more than 12 years ago | (#3424396)

Forget cobbling up a Goldberg contraption. Go to your local marine store and buy some air power horns. Have the shop foreman blow the horns.

Re:You have got to be joking... (-1)

MMMMMMMMMMMMMMMMMMMM (537317) | more than 12 years ago | (#3424422)

Yes, have the foreman blow your horn.

If that's all the computer is going to do... (2)

stienman (51024) | more than 12 years ago | (#3424448)

Honestly Linux is overkill, as is a full computer. Chances are, however, very good that speed of development is paramount - it doesn't have to work so good the first time, just make it work. Then we'll evaluate it and refine it.

Therefore I'm going to stun, and yes, even shock, the slashdot crowd. I may be publicly skewered, but in the interest of your job and sanity:

Use DOS - 6.22 ought to work fine, but whatever you can find lying around will work. Make a simple QBasic program that has a simple interface, and makes simple sounds. It all fits onto one floppy disk, and runs under dos 3.x, through windows .NET server, including every reasonable Linux/Unix/BSD solution you can come up with.

Make it do simple beeps to the PC speaker and amplify it, or hook the parallel port up to a large bell or beeper. It'll fit on a single floppy, and will run on that old accounting computer no one wants to use.

If you want to have different sounds you can throw a sound card and hard drive in there and load a simple dos WAV player which won't take much CPU power. These can be called from Qbasic (or your language of choice - Turbo C 2 is free and comes with a useful IDE)

This project should take you an hour if you buy a PA system from Radio Shack. Your Boss will be impressed at your elite hacking skills, and you will be revered by workers across the factory floor.

And when you leave/get fired you can have it play "Who let the dogs out" or somesuch.

-Adam

Get The Work Alerter (3, Insightful)

gorillasoft (463718) | more than 12 years ago | (#3424466)

Don't bother setting up a computer system and hacking something out. Instead, just use something like The Work Alerter [timeclocking.com] , which is ready-made and allows up to 32 events. It even includes a speaker and you can set the duration of the sound from 1 to 99 seconds. It looks like additional speakers can be attached. It has a low cost of $389 and probably more reliable than hacking out a computer setup. Sometimes the right tool for the job is not Linux on a computer system.

(I'm not affiliated with them, it was just the first place listed in my search results.)

Re:Get The Work Alerter (0, Flamebait)

wholesomegrits (155981) | more than 12 years ago | (#3424474)

You fucking swine! How dare you say that some non-Linux system can do the job better! He has a hammer, and the world is his fucking nail. L4E Linux for Earth, baby. If it isn't done with linux, it wasn't done correctly.

Re:Get The Work Alerter (2)

Suppafly (179830) | more than 12 years ago | (#3425990)

Sometimes the right tool for the job is not Linux on a computer system.


yeh a windows computer could do this just fine using software easily retrieved from download.com or any similar freeware site.

Re:Get The Work Alerter (2)

ConceptJunkie (24823) | more than 12 years ago | (#3426830)

I agree, why in the world would someone need a full-blown computer when there are undoubtedly thousands of less-expensive devices designed for this exact purpose.

I was building an LED flashlight for my 2-year-old that would turn off after about a minute because he sometimes leaves it on. I certainly didn't consider using a Linux machine.

Re:Get The Work Alerter (1)

fallen1 (230220) | more than 12 years ago | (#3429720)

Yeah, I've looked at The Work Alerter as well. One of the reasons I posed this question is the multitude of 286/386/486 machines that I have access to from the upgrades my company has done. Guess I should have mentioned that in my post but it is usually a foregone conclusion that most geeks and even certain businesses have 3 or 30 laying around unused for whatever reason.

Thanks for the input so far from everyone though! :-)

First get the time right (2)

GMontag (42283) | more than 12 years ago | (#3424652)

First, get one of those atomic clock receiver cards to keep the PC time right, then pick one of the dozens of scripts that will cover this page to do the work and output through a sound card to an amp and the existing speakers.

do you really need this? (1)

tchdab1 (164848) | more than 12 years ago | (#3425010)

I realize that you most probably know your environment - certainly better than I do - and that you have been given a task to do (implement scheduled noise alerts), but from your brief description I can't help but wonder if the degree of, um, discipline that you seek to enforce is really counter-productive. Environments where I've worked where employees are free to decide where their breaks will be, how long they are, or if they should skip them to finish this detail they are working on, things seem to be happier and more in control.
I know, I'm being idealistic and probably unrealistic, but it needs to be said, and there, I said it.

Good luck.
DB

Cron + mpg123 | play (1)

finity (535067) | more than 12 years ago | (#3427497)

Why don't you hook the computer up to that big amp and those big speakers, set it to the correct time, and have cron run `mpg123` or `play` at the correct times. You could then have it play, out of the speakers, what shift was over or beginning, what time of the day it was, and so on. This would be very simple to setup and cost the price of the computer (which could be an old 486), the price of the amp and speakers and electricity.

If it was connected to the internet, you could even have cron make sure the time was correct to some atomic clock every now and then.

Try this: (Simple count-down timer code.) (0)

Anonymous Coward | more than 12 years ago | (#3429742)

Not to belabor the bleeding obvious or anything... But, back when I played EverQuest, I found I had a duty cycle (time actively playing vs time spent sitting there staring at the screen) of about 20%. (Generally 8+ minutes down to 2 minutes of fun. There's a reason I quit the game.) So I wrote this quick timer script to let me know when it was time to stop what I was doing and play the game again.

Nowadays, all I use it for is to time my laundry... Perhaps it would be of use to you? Particularly when combined with:

date "+%H"
date "+%M"
date "+%S"

For output: Run the soundcard line-out into your PA system with a patch-cord.

Sound files: I'm using .snd files from an old NeXT archive I found on the net, (http://www.peak.org/next/sound/soundfiles/ [peak.org] ), which is why I need to pass "-t .au" to play. You could always just record your own...

#!/bin/tcsh -f

# This will clear the screen in an X-TERM.
# Note: ^[ is a single character -- the ESCAPE character.
echo -n "^[[H^[[2J"

set TIMES = ""
set SOUNDS = ""

while ( $#argv > 0 )
if ( $1 =~ *.snd ) then
set SOUNDS = ( ${SOUNDS} $1 )
else
set TIMES = ( $TIMES $1 )
endif
shift
end

if ( "x${TIMES}" == "x" ) then
set COUNT = 500
else if ( ${#TIMES} == 1 ) then
set COUNT = ${TIMES[1]}
else if ( ${#TIMES} == 2 ) then
@ COUNT = ( ${TIMES[1]} * 60 ) + ${TIMES[2]}
else
if ( ${#TIMES} > 3 ) echo "Warning Ignoring extra numbers: ${TIMES[4-]}"
@ COUNT = ( ${TIMES[1]} * 3600 ) + ( ${TIMES[2]} * 60 ) + ${TIMES[3]}
endif

while ( ${COUNT} >= 0 )
@ HOURS = ${COUNT} / 3600
@ MINUTES = ( ${COUNT} % 3600 ) / 60
@ SECONDS = ${COUNT} % 60
echo -n " "
if ( ${HOURS} > 0 ) echo -n "${HOURS}:"
echo -n "${MINUTES}:${SECONDS}"
echo -n " "
echo -n "(${COUNT})"
echo -n " "
echo -n "\r"
sleep 1
@ COUNT --
end

echo ""

if ( "x${SOUNDS}" == "x" ) then
echo "\a"
echo "\a"
else
foreach SOUND ( ${SOUNDS} )
play -t .au ${SOUND}
end
endif

--
This is filler to bring up the average number of characters per line to avoid the slashdot/slashcode lameness filter. What an annoying piece of crud. I have to sit here typing endless worthless characters, and you need to pay for the bandwidth for them, all so my entry won't be considered lame. La de da... Oh what to say. How about griping about how Slashcode doesn't support the < PRE > HTML tag, which makes it such a pain to enter properly indented code... Oh well. At least it has < TT >, without which things would really be difficult. Ok. Is that enough nonsense yet? Nope. Not yet. Still needs more. Oh what to say. What to say... Running out of things to say here... Do you guys have any thoughts? Probably not... Ok. Lets try again... Still nothing. Needs yet more characters. And more. And more. Ok. Repeating entire line so far... This is filler to bring up the average number of characters per line to avoid the slashdot/slashcode lameness filter. What an annoying piece of crud. I have to sit here typing endless worthless characters, and you need to pay for the bandwidth for them, all so my entry won't be considered lame. La de da... Oh what to say. How about griping about how Slashcode doesn't support the < PRE > HTML tag, which makes it such a pain to enter properly indented code... Oh well. At least it has < TT >, without which things would really be difficult. Ok. Is that enough nonsense yet? Nope. Not yet. Still needs more. Oh what to say. What to say... Running out of things to say here... Do you guys have any thoughts? Probably not... Ok. Lets try again... Still nothing. Needs yet more characters. And more. And more. Ok. Repeating entire line so far...

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>