0149: "Sandwich"

This forum is for the individual discussion thread that goes with each new comic.

Moderators: Magistrates, Prelates, Moderators General

Postby EradicateIV » Mon Jun 04, 2007 4:40 am UTC

It feels good fully understanding this comic now.

Yay bash!
1010011010

Our truth is only as good as our assumptions.
User avatar
EradicateIV
 
Posts: 361
Joined: Mon Mar 19, 2007 7:33 pm UTC
Location: Brownsville, PA

Postby DestinedCruz » Sat Jun 09, 2007 7:14 pm UTC

Image

And I need that shirt, so very very very badly.[/img]
DestinedCruz
 
Posts: 2
Joined: Sat Jun 09, 2007 7:10 pm UTC

Postby dragonarcher8812 » Fri Jun 29, 2007 10:33 pm UTC

(05:48:28 PM) DragonArcher: error dropping privileges: Operation not permitted
(05:49:31 PM) Vicks: put sudo in front of it.
(05:49:56 PM) DragonArcher: sudo make me a sandwich
(05:50:02 PM) DragonArcher: sorry, hahaha had to say it
(05:50:13 PM) Vicks: That was so fucking dead on.

Vicks = my brother. He was helping me fix Amarok, and we had this conversation over Gaim. I love him.
User avatar
dragonarcher8812
 
Posts: 28
Joined: Fri Jun 22, 2007 4:56 am UTC

Re: "Sandwich" Discussion

Postby blockmar » Thu Nov 15, 2007 9:44 pm UTC

There is an alternative ending to this comic, if you are a bit lazy.

A: Make me a sandwich
B: No
A: sudo Make me a sandwich
B: You are not in sudoers. This incident will be reported.

xkcd is my favorite comic - just love it when Google Reader indicates a new comic in the feed. Thanks!
blockmar
 
Posts: 2
Joined: Thu Nov 15, 2007 9:37 pm UTC

Re: "Sandwich" Discussion

Postby lachatte » Sat Dec 08, 2007 11:14 pm UTC

I feel all cool now that I got this joke, seeing as how many people didn't (and considering how many of the comics I don't quite get). I laughed way too long at this one. I was going to try using sudo on my husband to make him do something, but the opportunity didn't present itself quickly enough, so I broke down and just showed him the comic (which he also laughed at a lot).
User avatar
lachatte
 
Posts: 25
Joined: Sat Dec 08, 2007 12:34 pm UTC

Re: "Sandwich" Discussion

Postby enk » Sun Dec 09, 2007 1:29 am UTC

Could make for a fun bash history is you aliased 'please' to sudo.

Also, this comic is the epitome of win.
phlip wrote:Ha HA! Recycled emacs jokes.
User avatar
enk
 
Posts: 754
Joined: Mon Sep 10, 2007 12:20 am UTC
Location: Aalborg, Denmark

Re: "Sandwich" Discussion

Postby tom333 » Fri Dec 14, 2007 6:42 am UTC

i had to find a definiton of sudo to get this one... im a windows-er and not all that great with computers, apart from being a user.... their still moderately black-box to me.... someone who also reads this told me to "pseudo make them a sandwich" ... and i was thinking "does that mean make you a fake sandwich? or a sandwich that is a demonstration of how sandwiches work or something??" it didnt make any sense... but he still seemed to find humour in it without understanding what the comic was about. i later explained the Super User do... thing to him... and he found it much funnier
This is my first ever sig.



also, i love you.
User avatar
tom333
 
Posts: 23
Joined: Sat Dec 08, 2007 10:49 am UTC

Re: "Sandwich" Discussion

Postby '; DROP DATABASE;-- » Sat Dec 15, 2007 5:14 am UTC

Hah, I never even noticed sudo <--> pseudo. Nice.

Also, the correct answer, according to GCC:
make: *** No rule to make target `me'. Stop.
poxic wrote:You suck. And simultaneously rock. I think you've invented a new state of being.
User avatar
'; DROP DATABASE;--
 
Posts: 3284
Joined: Thu Nov 22, 2007 9:38 am UTC
Location: Midwest Alberta, where it's STILL snowy

Re: "Sandwich" Discussion

Postby e946 » Tue Jan 01, 2008 10:53 am UTC

I found this comic pasted up outside of one of the testbed doors in the CIS building at Argonne National Laboratory, along with a few others. I'd take a picture of it, but i'm pretty sure that's illegal.
Last edited by e946 on Wed Jan 02, 2008 4:55 am UTC, edited 1 time in total.
User avatar
e946
 
Posts: 621
Joined: Wed Jul 11, 2007 6:32 am UTC

Re:

Postby J Spade » Wed Jan 02, 2008 2:00 am UTC

Sitnaltax wrote:For the uninitiated: "sudo" is the Unix-style command for "execute this command as the superuser."


hence, SuperUser DO.
User avatar
J Spade
Luppoewagan
 
Posts: 523
Joined: Wed Apr 18, 2007 7:56 pm UTC
Location: Up a creek without a paddle

Re: "Sandwich" Discussion

Postby Graham » Tue Jan 22, 2008 10:54 pm UTC

Yay I finally "get" this comic after my first encounter with Damn Small Linux - which promptly blank screened me after the boot process (no, not blank with a command prompt). I feel so much more enlightened now (I also now understand the killer toaster comic), and I'm sure I'll get it working sometime probably with the use of sudo :)
Disclaimer: I cannot be held responsible for any harm you may come to as a result of reading my posts. You do so at your own risk.
Graham
 
Posts: 9
Joined: Sun Jan 06, 2008 2:16 am UTC

Re: "Sandwich" Discussion

Postby ObsidianX » Thu Mar 20, 2008 3:25 am UTC

I got bored... decided to code this in a few languages:

C: makemeasandwich.c
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
        char *my_user = getenv("USER");
        if(strcmp(my_user, "root") == 0)
                printf("Okay!\n");
        else
                printf("Make your own damn sandwich!\n");
        return 0;
}


Java: makemeasandwich.java
Code: Select all
class makemeasandwich {
        public static void main(String[] args){
                if(System.getProperty("user.name").compareTo("root") == 0)
                        System.out.println("Okay!");
                else
                        System.out.println("Make your own damn sandwich!");
        }
}


PHP: makemeasandwich.php
Code: Select all
#!/usr/bin/env php
<?php

if(getenv("USER") == "root")
        echo "Okay!\n";
else
        echo "Make your own damn sandwich!\n";

?>


Python: makemeasandwich.py
Code: Select all
#!/usr/bin/env python
import os

if os.geteuid() == 0:
        print "Okay!"
else:
        print "Make your own damn sandwich!"


Bash: makemeasandwich.sh
Code: Select all
#!/bin/bash

if [ `id -u` == 0 ] ; then
        echo "Okay!"
else
        echo "Make your own damn sandwich!"
fi


You can run all of these as a sudoer as such:
Code: Select all
$ ./makemeasandwich
Make your own damn sandwich!
$ sudo ./makemeasandwich
Okay!


Enjoy!
ObsidianX
ObsidianX
 
Posts: 3
Joined: Thu Mar 20, 2008 12:59 am UTC

Re: "Sandwich" Discussion

Postby Editer » Tue May 20, 2008 3:38 pm UTC

From Xeni Jardin:

Image
These days, if you don't have ADD, you not paying close enough attention. -- J.P. Barlow
User avatar
Editer
 
Posts: 65
Joined: Mon Mar 31, 2008 4:17 am UTC

Re:

Postby Appity » Wed May 21, 2008 4:44 am UTC

DestinedCruz wrote:Image

And I need that shirt, so very very very badly.[/img]


How do I make the interaction of the console resemble the quoted image (make me a sandwich) rather than a few posts up where I actually execute a program (./makemeasandwich, or at best, make_me_a_sandwich) to get the desired result?
Appity
 
Posts: 6
Joined: Wed May 21, 2008 4:33 am UTC

Re: "Sandwich" Discussion

Postby bridge » Wed May 21, 2008 8:24 pm UTC

Appity wrote:How do I make the interaction of the console resemble the quoted image (make me a sandwich) rather than a few posts up where I actually execute a program (./makemeasandwich, or at best, make_me_a_sandwich) to get the desired result?


Code: Select all
me:
   @if [ $(USER) == "root" ]; then echo ok; \
   else echo "make it yourself"; fi;
   
a:
   @echo >/dev/null
   
sandwich:
   @echo >/dev/null


Copy this in a file named "Makefile"
then from the same directory try
Code: Select all
$make me a sandwich
make it yourself
Excuse my Super Mario accent
User avatar
bridge
 
Posts: 195
Joined: Sun Feb 03, 2008 2:24 pm UTC
Location: Zurich < x < Rome

Re: "Sandwich" Discussion

Postby Appity » Wed May 21, 2008 8:56 pm UTC

Thanks!
Appity
 
Posts: 6
Joined: Wed May 21, 2008 4:33 am UTC

Re: "Sandwich" Discussion

Postby lowbart » Thu May 22, 2008 12:49 pm UTC

enk wrote:Could make for a fun bash history is you aliased 'please' to sudo.


Or "Would you kindly".
...a fish called the Henamo grunter, named because it makes grunting noises from its swim bladder.
v1nsai wrote:Yes, I'm Linux, how can I help you ma'am?
User avatar
lowbart
 
Posts: 668
Joined: Sun Dec 09, 2007 10:00 pm UTC
Location: northeastern USA

Re: "Sandwich" Discussion

Postby Barthanatos » Thu May 22, 2008 6:42 pm UTC

I used the livery editor in Forza2 (Xbox 360 racing sim) to make a custom paintjob on one of my cars featuring this comic.

Linky:
http://forums.xkcd.com/viewtopic.php?f=21&t=22804
User avatar
Barthanatos
 
Posts: 16
Joined: Mon May 19, 2008 2:27 pm UTC
Location: Kitsap

Re: "Sandwich" Discussion

Postby Skunjolf » Sun Sep 07, 2008 7:46 am UTC

Sorry for dragging up such an old thread (and on my first post!) but I got a little bored, so I patched make (well, gmake) so it responds appropriately to the 'make me a sandwich' command.
The patch file is at http://pipo.zapto.org/~kyle/devel/make-xkcd/make-3.81-xkcd.patch.
The ebuild (for Gentoo users) is at http://pipo.zapto.org/~kyle/devel/make-xkcd/make-3.81.ebuild.
Skunjolf
 
Posts: 2
Joined: Sun Sep 07, 2008 7:23 am UTC

Re: "Sandwich" Discussion

Postby Magilla » Thu Oct 23, 2008 2:11 pm UTC

Strangely, a friend has also done this.

git: http://github.com/broady/xkcdsandwich/tree/master
They perceive my perambulations upon my gyroscopically-balanced personal transportation device, and have thus concluded that I am of Caucasian decent, and, while intelligent, I am also somewhat socially inept. - Peculiar Alfred
User avatar
Magilla
 
Posts: 478
Joined: Wed Mar 19, 2008 11:28 pm UTC
Location: Esperance, Western Australia

Re: "Sandwich" Discussion

Postby sepharoth213 » Sat Jan 10, 2009 3:35 am UTC

did this for french class,
Image
thought you might be interested to see it.
=]
sepharoth213
 
Posts: 1
Joined: Sat Jan 10, 2009 3:28 am UTC

Re: "Sandwich" Discussion

Postby Shikuro22 » Sun Jan 11, 2009 12:17 am UTC

It makes WAY more sense now, specially to someone like me who's computing skill is -40.
Only two days after finding this site i saw a girl at my local station wearing the sandwich shirt!!!!!!
Shikuro22
 
Posts: 2
Joined: Sun Jan 11, 2009 12:04 am UTC
Location: Chicken

Re: "Sandwich" Discussion

Postby IHOPancake » Sun Mar 01, 2009 6:49 am UTC

Check this out.
82.7% of statistics are made up on the spot.
IHOPancake
 
Posts: 35
Joined: Fri Jan 23, 2009 2:29 am UTC
Location: Case Western Reserve University

Re: "Sandwich" Discussion

Postby scarletmanuka » Tue Mar 03, 2009 3:39 am UTC

Ctrl-Alt-Delete has a different response to the sandwich request. Not as funny as xkcd's in my opinion. :mrgreen:
scarletmanuka
 
Posts: 509
Joined: Wed Oct 17, 2007 4:29 am UTC
Location: Perth, Western Australia

Re: "Sandwich" Discussion

Postby nellim » Mon May 04, 2009 8:35 pm UTC

I've got in idea for one along the same lines. Its highly controversial. First you have the devil and a save person. The devil goes, "Your soul shall be mine!" and the save person goes, "No, I have been saved!" The devil grins. "sudo chmod 777," says the Devil. The saved person turns green. The devil laughs, "Your soul is now mine!!!" "No Microsoft, why have your forsaken me!!!", says the person, "sudo shred || rm " says the Devil. "NO!!!!!" says the person as he poofs into nothing.

What do you think?
nellim
 
Posts: 1
Joined: Mon May 04, 2009 8:28 pm UTC

Re: "Sandwich" Discussion

Postby gerevtw » Wed Dec 09, 2009 4:58 pm UTC

This works in Jaunty.
Attachments
149a.png
149a.png (33.75 KiB) Viewed 11533 times
gerevtw
 
Posts: 1
Joined: Wed Dec 09, 2009 4:44 pm UTC

Re: "Sandwich" Discussion

Postby Exüberance » Tue Jan 12, 2010 8:25 pm UTC

Alternatively, you can make the aliases
Code: Select all
alias sudo='sudo ' # (note the space)  this is required for your shell to parse aliases after the sudo command
alias make="/xkcd" # or replace "/xkcd" with some other location where you put your shell script

and add them to your .bashrc

then make a shell script containing:
Code: Select all
#!/bin/bash
if [ "$*" == "me a sandwich" ]; then
  if [ "`whoami`" == "root" ]; then
    echo "Okay."
  else
    echo "What? Make it yourself."
  fi
else
  make $*
fi

and save it wherever. I just put it at /xkcd
Now whenever you type "make me a sandwich" (you don't need a makefile) it will respond as expected. Otherwise, it will behave as "make" normally would. :)
User avatar
Exüberance
 
Posts: 23
Joined: Mon Oct 06, 2008 5:33 pm UTC

Re: "Sandwich" Discussion

Postby raf_kig » Sun Feb 07, 2010 5:47 pm UTC

you shouldn't be checking env to authenticate the user :-)

Code: Select all
user@hostname /tmp % cat << MMAS > mmas.c
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main(void){
            char *my_user = getenv("USER");
            if(strcmp(my_user, "root") == 0)
                    printf("Okay!\n");
            else
                    printf("Make your own damn sandwich!\n");
            return 0;
    }
`heredoc> MMAS
user@hostname /tmp % gcc mmas.c && USER=root ./a.out
Okay!
raf_kig
 
Posts: 1
Joined: Sun Feb 07, 2010 5:42 pm UTC

Re: 0149: "Sandwich"

Postby Pragma1700 » Mon Oct 17, 2011 8:34 pm UTC

Someone at Apple likes xkcd?

http://www.reddit.com/r/funny/comments/ldlhe/siri_listens_to_authority/
Pragma1700
 
Posts: 1
Joined: Mon Oct 17, 2011 8:32 pm UTC

Re: 0149: "Sandwich"

Postby Paulmichael » Thu Nov 10, 2011 6:49 pm UTC

Pragma1700 wrote:Someone at Apple likes xkcd?

http://www.reddit.com/r/funny/comments/ ... authority/


I saw that after Googling to see if anyone else had thought to ask Siri that! Hilarious.
Paulmichael
 
Posts: 34
Joined: Wed Jul 29, 2009 7:06 am UTC

Re:

Postby Isaac » Fri Nov 11, 2011 11:23 am UTC

Andy wrote:(*) Yes, I can't spell this word. Typically I google for the word to fix it up. But now that that has happened easily over 5 times, I don't think I will ever learn how. So, now I'm trying to change the spelling of the word, to something I can manage... and now google won't think less of me for misspelling a word lots of times.


My spelling improved vastly when I realized that if you google my former spellings' of certain words, it will turn up nothing but things that I've written.
Isaac
 
Posts: 27
Joined: Sat Jan 17, 2009 12:49 pm UTC

Re: 0149: "Sandwich"

Postby ruleeet » Tue Nov 15, 2011 12:40 pm UTC

Pragma1700 wrote:Someone at Apple likes xkcd?

http://www.reddit.com/r/funny/comments/ldlhe/siri_listens_to_authority/

Why not? :)
ruleeet
 
Posts: 8
Joined: Mon Nov 14, 2011 11:06 am UTC

Re: 0149: "Sandwich"

Postby mscha » Sun Nov 17, 2013 4:22 am UTC

Just a quick note that the latest version of Google Now on Android devices supports this dialogue. (If you can get it to correctly understand "sudo", took me like 10 tries.)

Hey Google...
ping
Make me a sandwich
What? Make it yourself.
Hey Google...
ping
sudo make me a sandwich
Okay.
List¹ of all Frames of Time and after Time.
New here? Questions? Check the wiki.
Don't worry, feed molpies⁴.
Image
Default footnotes; standard OTT-np2166m 1.2:
Spoiler:
Image
Image
User avatar
mscha
 
Posts: 4885
Joined: Tue Mar 26, 2013 10:21 pm UTC
Location: NL

Re: 0149: "Sandwich"

Postby Copper Bezel » Sun Nov 17, 2013 5:01 am UTC

Awesome. = D And it had trouble with sudu for me, too (took three tries.)
~ I know I shouldn't use tildes for decoration, but they always make me feel at home. ~
User avatar
Copper Bezel
 
Posts: 799
Joined: Wed Oct 12, 2011 6:35 am UTC
Location: Mission, Kansas, USA

Re: 0149: "Sandwich"

Postby Rikki-Tikki-Tavi » Sun Nov 17, 2013 4:34 pm UTC

On the off chance that I am the first who had this idea, I post my work of the last 10 minutes.

I think anyone using dd can relate...
Attachments
sandwich.png
Rikki-Tikki-Tavi
 
Posts: 2
Joined: Tue Oct 27, 2009 10:41 pm UTC

Previous

Return to Individual XKCD Comic Threads

Who is online

Users browsing this forum: lmjb1964, stickler and 22 guests