The Jedi Academy. THE Place for Jedi training.
News
Content
The Academy
Learn
Communicate
Personal


PHP toys! -DJ Sith - Dec 21 02:26pm

Hey gang, one of our great PHP (and Java) goons JavaGuy has been working hard on his email server notify script thingamajigger. Check it out. This is perfect for you kids who are on the go and need to check up on our servers and is quite useful to boot!

Here's how it works:


1. Send an e-mail to notify-academy@sammckee.com.


2. If there is anyone playing on the KS, DJ or Gamecity server, you'll get a message back saying how many people are on each server. It doesn't check the classes-only server.


3. If there is no one playing, it will keep checking every sixty seconds for half an hour. If anyone else logs on during that time, you'll get an e-mail saying how many people are on each server.


4. If you send it another e-mail before the half hour is up, it just resets the timer to zero, and you get another half hour.


5. This is the really cool part, but I need more people to use it to find out if it has bugs or not: If nobody is on any of the Academy servers, but someone else is also in the notification queue, you'll get a message telling you that someone else is awaiting notification and wants to play, even though nobody is actually on.


Try this with a cell phone that has text messaging. It's way cool to be able to go do something else while waiting to play and get paged when someone comes on.


VERY cool, JavaGuy!

  Login and add your comment!  
Comments
Dec 31 2002 01:50am

Bubu
 - Hubbub
 Bubu

nice work javadude!! :jj:
_______________
make install -not war

Dec 22 2002 11:07pm

Jigsawcity
 - Ex-Student
 Jigsawcity

haha, java GOON
_______________
Turmoil, pain, dissention... Can you feel it?
That is why I am here. It is you who take my hand, and lift me up above those who envy.


Dec 21 2002 02:44pm

Eldrin
 - Ex-Student

I doubt I'll use it but sound like a VERY useful program. Good Work!

Dec 21 2002 12:50pm

JavaGuy
 - Student
 JavaGuy

For the record, the "meat" of this application is not in php but--what else?--Java.

I'm seeing a few SMTP errors in the log, and I'm wondering if it wasn't trying to send messages to multiple user at once. ;p I've added the "synchronized" keyword to the function that sends out the e-mail, which I should have thought to do in the first place.

Thanks for everyone's patience if there are a few remaining bugs to be squashed. If this utility is popular enough, I might add features to let each user customize it to his own particular uses (for example, you might want to request notification for other servers and even for other Quake-engine games).

_______________
My signature is only one line. You're welcome.

Dec 21 2002 11:47am

Lord Exar Kun
 - Student
 Lord Exar Kun

Good work Javaguy!
_______________
-Retired april the 19th 2004

Dec 21 2002 11:21am

(SKX) Dark Blade
 - Student
 (SKX) Dark Blade

Hehe very good idea. I just use all seeing eye though :). I can even see into the class only server.
_______________
What is the difference between love and Herpes? Herpes lasts forever.
(CDC joke)
Padawans: Trad Redav, Darth Jello, Tallepyon, Shang Chi, Dopp, Karlin Duke, AuroN, Koushka, Damon, and Katan
Brother to Xanatos


Dec 21 2002 09:32am

Preadator Kallata'n
 - Student
 Preadator Kallata'n

erm...slight problem...i sent a blank e-mail (no subject and no text) through my hotmail account to the system and it hasn't e-maild me back yet. At the same time, i checked with qtracker to see who was on - 4 ppl on NL at the time.

Now 6 ppl and i'm still awaiting that e-mail...
_______________
««¤¤¤{{PREÅÐÅT¤R ka¦¦ata'n}}¤¤¤»»

Founder of RSPCT (The Royal Society of the Prevention of Cruelty to Toasters)


Dec 21 2002 09:09am

Jedi_Wing
 - Ex-Student
 Jedi_Wing

Cool!
_______________
http://www.thejediacademy.net/forums_detail_page.php?f_id=159
http://www.thejediacademy.net/show_profile.php?f_id=1386


Dec 21 2002 08:44am

JavaGuy
 - Student
 JavaGuy

Can you get pathfinder to send you an e-mail when someone logs in? I couldn't find such a feature in it.

What I was thinking when I wrote this is that I don't want to have to be at--or even near--my computer while I wait for notification. I want to be able to go upstairs to read or even down the block for a beer and have a message sent directly to my cell phone when someone logs on. This utility does precisely that if you have a cell phone with text messaging (most do nowadays). That's why I wrote this.


_______________
My signature is only one line. You're welcome.

Dec 21 2002 03:52am

Kit Fisto [JAP]
 - Ex-Student
 Kit Fisto [JAP]

Javaguy,

Nice donne. It's not so easy to do something like that but.....
Why inventing things a second time. I use pathfinder to see who is on the servers without login on the game. I've got every detail of the server updated permanently. When you double-click you can directly join that server too.

Only point 5 is a new and very interesting thing.

Where can you find pathfinder....
http://home.t-online.de/home/christian.rodemeyer/pathfinder.htm

Don't shoot me if I'm wrong ... :o)

This comment was edited by Kit Fisto [JAP] on Dec 21 2002 03:53am.

  Login and add your comment!