simont: A picture of me in 2016 (Default)
simont ([personal profile] simont) wrote2009-02-04 10:54 am

A very small shell script

ThinkGeek has sold, for many years, a T-shirt reading ‘Go away or I will replace you with a very small shell script’.

I've said a number of times to friends, but never got round to actually writing down anywhere, that I've always thought that shirt would be improved by a backprint reading:

#!/bin/bash
case $((RANDOM % 3)) in
0) echo "What?" ;;
1) echo "I don't understand." ;;
2) echo "Where's the tea?" ;;
esac

It just occurred to me this morning to wonder if ThinkGeek might like to hear that idea themselves. I looked around their website, and found they have a web form for submitting T-shirt ideas – and will even pay you if they use yours. Aha!

… not aha. It turns out that the terms and conditions for that programme require you to certify that you're in the USA or Canada. Apparently nobody anywhere else is capable of having worthwhile ideas.

[identity profile] uisgebeatha.livejournal.com 2009-02-04 11:01 am (UTC)(link)
Good idea! You should print your own and set up a rival shop catering to UK geeks ;)

Also, I was thinking of making another wheatfree cake this week as I have eggs to use up, and provided I'm lurgi-free by the end of the week it would be spiffy if you wanted to come eat it :-)

[identity profile] uisgebeatha.livejournal.com 2009-02-05 11:54 am (UTC)(link)
Goodo, it's been ages since I've seen you. I shall get on Gmail and arrange times and days and so on :)
zotz: (Default)

[personal profile] zotz 2009-02-04 11:04 am (UTC)(link)
You could license your script idea to someone in North America, to market it to them on your behalf.
gerald_duck: (ascii)

[personal profile] gerald_duck 2009-02-04 11:08 am (UTC)(link)
Back in 2007 I e-mailed orders@thinkgeek.com, suggesting they should sell the heavy metal t-shirt in hoodie form. I got a reply:

Thank you for your feedback! We always appreciate getting new ideas from our customers. While we don't do custom printing, I have forwarded your suggestion to the appropriate parties. Please let us know if you have any further suggestions.

So the e-mails are read. I don't know if that's a sufficiently encouraging response for you to bother sending them an e-mail, nor whether they'd give you any money if they used an idea submitted in that way.
lnr: Halloween 2023 (Default)

[personal profile] lnr 2009-02-04 11:24 am (UTC)(link)
I bought Mike that t-shirt for Christmas: he complains that several of the metals on there aren't very heavy at all :)

[identity profile] pseudomonas.livejournal.com 2009-02-04 12:38 pm (UTC)(link)
They ought at least to give other people the option of payment in ThinkGeek vouchers or something.

[identity profile] pjc50.livejournal.com 2009-02-04 12:39 pm (UTC)(link)
I think it may also be them not wanting to bother with non-American IP laws (e.g. not wanting to get into the whole continental mess of "droit moral")

[identity profile] cartesiandaemon.livejournal.com 2009-02-04 12:41 pm (UTC)(link)
Oh, I cynically assumed that was just a form autoresponse. I guess I shouldn't for thinkgeek.

[identity profile] cartesiandaemon.livejournal.com 2009-02-04 12:52 pm (UTC)(link)
ROFL. Touche.

I do love that script. (Although I keep wondering, is it safe to take the remainder of the random number? I thought that was risky. Although admittedly, even if it were, I don't expect Arthur Dent is cryptographically consistent.)

[identity profile] cartesiandaemon.livejournal.com 2009-02-05 03:51 pm (UTC)(link)
Oh, thank you. You're quite right, I'd hoped someone would do the analysis. The appropriate model should either be a program in a loop, or a program run less than every second (or however long it takes to say "what"). I just had an uneasy feeling that something was wrong.

Zaphod's original specification of the Arthur Dent script never mentioned good randomness.

Yeah, that's what I was thinking, but it didn't manage to prevent me saying anything. Of course, if you put all this in a footnote on the T-shirt, the T-shirt would be really geeky :)

[identity profile] http://users.livejournal.com/_kent/ 2009-02-04 01:17 pm (UTC)(link)
You're going to have to set a variable instructing it not to notice the difference between itself and a human brain.

[identity profile] tigerfort.livejournal.com 2009-02-04 02:47 pm (UTC)(link)
Well, the script doesn't contain any comments that it isn't a human brain, so you could argue that there's no evidence that it has noticed. But that isn't quite the same.