Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Java - Secret Santa 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Hi Guys,

I've just written a Java Secret Santa program.

It's source code only but if you want it it works really well.

You put in a list of people (with email addresses) and you can change the message (and SMTP server) and it sends out emails to everyone on the list with their recipient.

It checks so that no person receives themself as a recipient.

If anyone wants the source then let me know. :D

Also good as no one will no who has got who (not even the person setting it up :D).

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Mon Dec 07, 2009 4:45 pm
Profile WWW
Official forum cat lady
User avatar

Joined: Fri Apr 24, 2009 8:04 am
Posts: 11039
Location: London
Reply with quote
Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

_________________
Still the official cheeky one ;)

jonbwfc wrote:
Caz is correct though


Mon Dec 07, 2009 4:55 pm
Profile
Moderator

Joined: Thu Apr 23, 2009 6:13 pm
Posts: 7262
Location: Here, but not all there.
Reply with quote
Secret Santa. Another nasty US import. :P

_________________
My Flickr | Snaptophobic Bloggage
Heather Kay: modelling details that matter.
"Let my windows be open to receive new ideas but let me also be strong enough not to be blown away by them." - Mahatma Gandhi.


Mon Dec 07, 2009 4:56 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
oceanicitl wrote:
Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

As long as you have an SMTP server it'll work :D

You just have to type in the names and email addresses of the people involved. :D

It's source though so you'll need to run it from Eclipse or whatever.

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Mon Dec 07, 2009 5:00 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
Fogmeister wrote:
oceanicitl wrote:
Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

As long as you have an SMTP server it'll work :D

You just have to type in the names and email addresses of the people involved. :D

It's source though so you'll need to run it from Eclipse or whatever.


Could you not jar it up?


Mon Dec 07, 2009 7:48 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
forquare1 wrote:
Fogmeister wrote:
It's source though so you'll need to run it from Eclipse or whatever.

Could you not jar it up?

Or write it in PHP and host it somewhere (8-p)

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Mon Dec 07, 2009 7:51 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
forquare1 wrote:
Fogmeister wrote:
oceanicitl wrote:
Secret Santa in a recession? We made gifts last year rather than buying. Was a lot more fun.

If you get it working with Lotus Notes let me know ;)

As long as you have an SMTP server it'll work :D

You just have to type in the names and email addresses of the people involved. :D

It's source though so you'll need to run it from Eclipse or whatever.


Could you not jar it up?

I did it at work whilst I was supposed to be working and had to download and instal the Java JDK from scratch so I didn't have time to play around with building it properly.

I'll give it a go now from home :D

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Mon Dec 07, 2009 8:36 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Grr... fricking xCode.

Downloading NetBeans now :D

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Mon Dec 07, 2009 9:35 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
Fogmeister wrote:
Grr... fricking xCode.

Downloading NetBeans now :D

Why not Eclipse? XCode is nice for Objective C, but I can't stand it for much else, although it will do other stuff.

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Mon Dec 07, 2009 9:45 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
EddArmitage wrote:
Fogmeister wrote:
Grr... fricking xCode.

Downloading NetBeans now :D

Why not Eclipse? XCode is nice for Objective C, but I can't stand it for much else, although it will do other stuff.

Dunno really.

I like NetBeans.

I also like Eclipse and NetBeans was the first one I thought of.

LOL, I just checked and I already have Eclipse :lol:

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Mon Dec 07, 2009 9:50 pm
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 6:27 pm
Posts: 12251
Reply with quote
HeatherKay wrote:
Secret Santa. Another nasty US import. :P


I did a secret Santa where I work. I spoilt the fun for myself by seeing what I was buying myself. *sigh*

_________________
All the best,
Paul
brataccas wrote:
your posts are just combo chains of funny win

I’m on Twitter, tweeting away... My Photos Random Avatar Explanation


Mon Dec 07, 2009 10:04 pm
Profile
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 4876
Location: Newcastle
Reply with quote
Set up a Google source repo?

Pretty cool to go to someone "Yeah you can see all my work <here>"

_________________
Twitter
Charlie Brooker:
Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.


Mon Dec 07, 2009 10:19 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 7:26 pm
Posts: 17040
Reply with quote
HeatherKay wrote:
Secret Santa. Another nasty US import. :P

I'm with the future PM. When the heck did this become part of British Christmas ritual?

Jon


Mon Dec 07, 2009 10:49 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:19 pm
Posts: 5071
Location: Manchester
Reply with quote
Buying a present for someone creates an obligation for them to do the same, all it does is increase consumption, usually on pointless rubbish. Don't do it. :D


Mon Dec 07, 2009 10:55 pm
Profile
Legend

Joined: Sun Apr 26, 2009 12:30 pm
Posts: 45931
Location: Belfast
Reply with quote
jonbwfc wrote:
HeatherKay wrote:
Secret Santa. Another nasty US import. :P

I'm with the future PM. When the heck did this become part of British Christmas ritual?

Jon


In my work, it's something for the women to dramatize and 'have a giggle about' :roll:

_________________
Plain English advice on everything money, purchase and service related:

http://www.moneysavingexpert.com/


Mon Dec 07, 2009 11:09 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.