Commandline program for ordering Pizza

Hey drop us a line about the show. Feel free to ask questions, provide feedback and criticism, or just ramble on about anything your little heart desires.

Moderators: snarkout, Patrick, dann

Post Reply
Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Commandline program for ordering Pizza

Post by Tsuroerusu » Sun Mar 12, 2006 2:23 am

I was just goofing around on Freshmeat for fun and look what I ran into:
http://www.beigerecords.com/cory/pizza_party/

There's a video there showing it working, too bad it only works in the US :wink:
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

User avatar
snarkout
Site Admin
Posts: 1342
Joined: Tue Aug 16, 2005 9:35 pm

Post by snarkout » Sun Mar 12, 2006 2:30 am

Cool idea, too bad Domino's sucks ass.
Shared pain is lessened, shared joy is increased; thus do we refute entropy.
--Spider Robinson

Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Post by Tsuroerusu » Sun Mar 12, 2006 2:32 am

Snarkout wrote:Cool idea, too bad Domino's sucks ass.
Never tried, so I can't tell, but you gotta admit, the idea of setting this app up to run as a cron job is very cool. :D
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

User avatar
Ryochan7
Posts: 99
Joined: Wed Dec 15, 2004 10:18 pm
Location: Peoria, IL
Contact:

Post by Ryochan7 » Sun Mar 12, 2006 2:41 am

I remember reading about that app a few months ago and I still think that it is cool. This app just seems to embrace so many stereotypes about geeks that it is funny. The demonstration video is still pretty funny too. I don't like Dominos pizza though so I would never use it. On a somewhat random note, Pizza Party is in the AUR under the community repository.

http://aur.archlinux.org/packages.php?d ... =1&ID=3258
Linux User #357977
LUGOP is awesome

Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Post by Tsuroerusu » Sun Mar 12, 2006 3:09 am

We need something like this for Pizza Hut! :wink:
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

thetza
Posts: 146
Joined: Tue Jan 10, 2006 7:25 pm

Post by thetza » Sun Mar 12, 2006 3:46 am

When you get too lazy to pick up the phone to order pizza..........

Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Post by Tsuroerusu » Sun Mar 12, 2006 3:48 am

thetza wrote:When you get too lazy to pick up the phone to order pizza..........
Can you run the phone as a cronjob? :lol: :wink: :P
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

User avatar
CptnObvious999
Posts: 798
Joined: Fri Jun 03, 2005 7:54 pm
Location: Maryland
Contact:

Post by CptnObvious999 » Sun Mar 12, 2006 3:39 pm

Tsuroerusu wrote:
thetza wrote:When you get too lazy to pick up the phone to order pizza..........
Can you run the phone as a cronjob? :lol: :wink: :P
To Asterisk! :wink:

Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Post by Tsuroerusu » Sun Mar 12, 2006 3:49 pm

CptnObvious999 wrote:
Tsuroerusu wrote:
thetza wrote:When you get too lazy to pick up the phone to order pizza..........
Can you run the phone as a cronjob? :lol: :wink: :P
To Asterisk! :wink:
Yeah okay, but I mean't setting up a cronjob for ordering pizza over the phone :P
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

User avatar
Chess
Posts: 386
Joined: Thu Nov 17, 2005 2:06 pm
Location: Raleigh, NC
Contact:

Post by Chess » Mon Mar 13, 2006 12:09 pm

My bash skills are virtually nonexistant, but something like this?

Code: Select all

#!/bin/sh 
#If stomach is empty, order a pizza; otherwise, induce guilt trip
#
#version 0.01 alpha
#Chess Griffin, March 13, 2006
#

#Enter your variables here
LOCAL_DELIVERY="555-444-3333" #enter your local pizza delivery phone number
PIZZA_SIZE="12 inch" #enter your pizza size
TOPPINGS="pepperoni" #enter your pizza toppings
ADDRESS="123 Main Street" #enter your address

STOMACH_CONTENTS=cat /home/body/stomach

if [ "$STOMACH_CONTENTS" == "" ]; then
  echo "Dialing pizza place"
  dial $LOCAL_DELIVERY
  echo "I want a $PIZZA_SIZE with $TOPPINGS please.  My home address is $ADDRESS."
  else
  echo "Why are you ordering a pizza if you are not hungry?  Go for a run instead!"
fi
Chess Griffin

Tsuroerusu
Posts: 2551
Joined: Mon Sep 05, 2005 8:51 am
Location: Silkeborg, Denmark
Contact:

Post by Tsuroerusu » Mon Mar 13, 2006 2:05 pm

Chess you crack me up man! :lol: :lol: :lol:
Image
Image

"Hatred does not cease by hatred, but only by love. This is the eternal rule."
- Siddhattha Gotama (Buddha), founder of Buddhism.

thetza
Posts: 146
Joined: Tue Jan 10, 2006 7:25 pm

Post by thetza » Tue Mar 14, 2006 10:21 pm

obviously /home/body/stomach should be /dev/stomach!!

User avatar
treehead
Posts: 159
Joined: Wed Aug 17, 2005 3:20 pm
Location: detroit metro, usa

grocery scripting

Post by treehead » Wed Mar 15, 2006 4:44 pm

;this has actually been around a long time. i remember seeing this back when i had never even touched linux or unix at all and being very impressed.

;what someone needs to do is create hardware/write an API for your refrigerator and cupboards that monitors the levels of foods. you could then script against this API and make calls to the hardware (or maybe it would just send SNMP traps or something). when the system has aggregated a suffient amount of "low" groceries on the list, it orders them automatically from the grocery store. many grocery stores have at least a phone-in grocery service, so at the very least, you could script your system to call festival in conjunction with asterisk, read the list over the phone, and ask for the grocery store to call you when their ready.

;ok chess, go to work....

;treehead
"It is a widely accepted notion among painters
that it does not matter what one paints, as long as
it is well painted. This is the essence of
academicism. There is no such thing as a good
painting about nothing." --Mark Rothko

User avatar
Chess
Posts: 386
Joined: Thu Nov 17, 2005 2:06 pm
Location: Raleigh, NC
Contact:

Re: grocery scripting

Post by Chess » Wed Mar 15, 2006 5:38 pm

treehead wrote: ;ok chess, go to work....
;treehead
hehe, you wouldn't want me coding something like that, trust me.
Chess Griffin

Post Reply