The Artima Developer Community
Sponsored Link

Java Buzz Forum
Coffee Alert!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Russell Beattie

Posts: 727
Nickname: rbeattie
Registered: Aug, 2003

Russell Beattie is a Mobile Internet Developer
Coffee Alert! Posted: Jul 22, 2004 4:01 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Russell Beattie.
Original Post: Coffee Alert!
Feed Title: Russell Beattie Notebook
Feed URL: http://www.russellbeattie.com/notebook/rss.jsp?q=java,code,mobile
Feed Description: My online notebook with thoughts, comments, links and more.
Latest Java Buzz Posts
Latest Java Buzz Posts by Russell Beattie
Latest Posts From Russell Beattie Notebook

Advertisement
So I stopped by a corner coffee-shop on the way to work this morning and picked up a tall French Roast to go, only to find out that one of my coworkers had actually made coffee already! We decided that a solution to this problem needed to be found, so we decided to create an SMS Coffee Alert.

At first we used our Location Alert Engine to do it, which was like smacking a fly with a sledgehammer. So using SimpleWire's API, I whipped up a quick 20 line script in Java which can be called from bash script available to everyone in the office who uses Linux (that includes me now). The longest part of the process was figuring out a bug in my MessageFormat code (I was using {1} instead of {0} in the message in the .properties file). I love writing those quick functional scripts in Java.

So now we just open a terminal and type: "coffealert.sh Russell" and it'll sends out a text message to everyone who's added their phone number to the shared .properties file: "Russell has made coffee! No need to drop $3 on a latte on the way to the office."

I love working at a mobile company. Now we just need to hook this up to the coffee maker itself... Both ways. My coworker Joel just said "What I really want is to send an SMS and have the coffee maker start brewing..." Heh. We started thinking about all the extra MIDP phones we have strewn about... SMS-> MIDP -> Sockets -> Hacked Coffee Maker... Stay tuned.

:-)

-Russ

John Kerry For President

Read: Coffee Alert!

Topic: PHP 5.0 Released Previous Topic   Next Topic Topic: Functional Programming: Use closures and higher order functions to write modular Java code

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use