News: 1587366906

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Getting a pizza the action, AS/400 style

(2020/04/20)


Who, Me? Monday has shuffled into view once more and brought with it another Register reader confession in the form of our regular [1]Who, Me? column.

"Charles," for that is most definitely not his name, is the culprit this week in a cautionary tale of why displaying some sort of confirmation text is probably a good idea.

Our story takes place back in the mid 1990s, where Charles was running an AS/400 and PC network to support a regional gas company.

The [2]AS/400 was an IBM mid-range computer and launched back in 1988, succeeding the System/38 minicomputer of 1979. Compatible with much of the legacy code that went before it (to the point that AS stood for "Application System") the hardware did sterling work for small and medium sized business before being succeeded in 2000 by the IBM eServer iSeries.

For Charles, it was a tool for perfecting the company's Just In Time (JIT) propane delivery experiment on which he and the team laboured long into the night.

Keeping developers going is a challenge for many a manager, and energy boosting beverages such as Red Bull, [3]Happy Bunny Spaz Juice , good old fashioned coffee and diet coke all play their part. But to keep the engine running there is really only one fuel: pizza.

Rather than talk to an actual human, Charles opted to exercise his coding skills: "I wrote a quick proc to order pizza, it simply sent a fax to a local pizza shop with the order, I set flags to determine how many and what kind of pizzas."

Helpfully, "the proc was named 'pizza' with the flags following the proc."

So, a hungry developer could just type pizza into the command line, specifying the mountain of pepperoni needed and, presumably, if the cake-like 'Chicago Deep Pan' variety was required. The requested meal would then be delivered even if there may have been no accounting for taste. We can but hope that there was no flag for pineapple, for down that path lies savagery.

Pizza was arguably ahead of its time if one considers the food delivery needs of today.

All went swimmingly for a few months until Charles was yanked from a staff meeting by the receptionist. He had a delivery.

"56 pizzas."

Oops.

Fearing the worst, Charles ran a report and saw that his little utility had indeed been used. A sales clerk had entered the command 56 times and then scarpered when the mountain of pizza turned up.

"Luckily," said Charles, "the president of the company found it quite funny and paid for the pizza out of petty cash and the whole company got a free lunch."

The new hero of the company (at least as far those not responsible for the petty cash were concerned), Charles eventually caught up with the sales clerk and discovered the flaw in his nifty utility.

The clerk "admitted to typing pizza and pressing enter, but it didn't do anything, so he tried it 55 more times."

Pizza, pizza, pizza, pizza...

"I changed the security settings on pizza so only admins could order pizza and told the pizza shop there would be no more than one order at a time."

Hopefully he also added a bit of text along the lines of "Thank you for your order! Now please don't type 'pizza' again..."

Ever found your helpful bit of code abused by the unwary? Or had the boss cheerfully pay-up when all seemed expensively lost? You have? Then it is time to send an email to [4]Who, Me? and share your story. ®

Sponsored: [5]How To Accelerate Brilliant Digital Experiences With Low-Code



[1] https://www.theregister.co.uk/Tag/who-me

[2] https://www.ibm.com/ibm/history/exhibits/rochester/rochester_4010.html

[3] https://www.bevnet.com/reviews/happybunnyspazjuice/Happy_Bunny_Spaz_Juice

[4] mailto:whome@theregister.co.uk

[5] https://go.theregister.co.uk/tl/1936/-8552/how-to-accelerate-brilliant-digital-experiences-with-low-code?td=wptl1936

"Hopefully he also added a bit of text along the lines"

LDS

No, that's not how *nix works, it has to let users wondering about what happened "magically", you have to trust the system, admins and developers. Confirmations are for lusers. Then you get 56 pizzas - at least they should not have had pepperoni, I hope....

Re: "Hopefully he also added a bit of text along the lines"

Joe W

Exactly. I read somewhere that "it [unix] came with a set of distgustingly dangerous utilities that meant nothing but could render a system useless within seconds".

Play with

# fire

get burnt....

Re: "Hopefully he also added a bit of text along the lines"

Anonymous Custard

I read somewhere that "it [unix] came with a set of distgustingly dangerous utilities that meant nothing but could render a system useless within seconds".

Aren't they called users?

Re: "Hopefully he also added a bit of text along the lines"

Peter Gathercole

The dangerous commands comment should, obviously, carry a caveat of if you are running commands that you do not know what they do as a privileged user, you should have your privilege revoked immediatly .

I don't know how Unix got dragged in here, but ever since Unix edition 2 or 3 in the 1970s, you've had the concept of ordinary users and privileged users, so there has been no excuse to do day-to-day user tasks with a privileged account.

Re: "Hopefully he also added a bit of text along the lines"

jake

More properly, you should never have had the privilege in the first place.

Re: "Hopefully he also added a bit of text along the lines"

Anonymous Coward

And this is why I have $? as part of my shell prompt. Knowing the return code (roughly similar to errorlevel for you DOS-junkies) is incredibly useful.

Re: "Hopefully he also added a bit of text along the lines"

jake

Who said anything about *nix?

Re: "Hopefully he also added a bit of text along the lines"

Peter Gathercole

The mantra with many operating systems is "If it completes silently, it worked".

This has never seemed a problem to me, at least not until you get a command that fails silently.

Re: "Hopefully he also added a bit of text along the lines"

Terry 6

That's not how humans function. We are designed to seek confirmation feed back. You ask for something, the other person says OK. They don't just hand it to you. If the computer screen doesn't say it's doing something, that implies it is not doing anything.

I've often suspected that computer human interfaces (UI) are designed by people who aren't very good with people. Then tested on people who like computers, ( which is why they do testing of them) not people.

If you really want to test an idea for a UI design ask a retired double-glazing salesman, a politician or a con man ( pretty much the same thing tbh) - they understand, intuitively, how people function or they fail at the job.

ONU

SVV

OS/400sNotUnix

Although it does have a unix command line that isn't really unix. When IBM renamed their systems about 20 years ago, OS/390 became z/OS as the mainframes were rebranded as z series. Because the AS/400 became the i series, the operating system OS/400 should really have been renamed i/OS. Instead it's apparently called IBM i. Although nobody who uses it actually calls it that. If you aren't starting to get confused, then you might like this operating system. Otherwise, you can join everyone else who finds it's uppercase vowel free tribute to mainframe job control languages of decades past CMPLTLY FCKNG RRTTNG.

He didn't resign out of shame?

MrMerrymaker

I guess he kneaded the dough...

Re: He didn't resign out of shame?

jake

This crusty old hacker thinks your comment was cheesy and in need of a beer.

Re: He didn't resign out of shame?

Anonymous Coward

I'm surprised he wasn't given his marching orders and wood-fired...

Re: He didn't resign out of shame?

Korev

These puns deliver today...

56!

Chris G

That tower of pizza was probably unstable.

Re: 56!

jake

It was totally stable when the problem was divided between multiple servers.

Re: 56!

terrythetech

56 factorial is 7.109985878×10⁷⁴ according to my calculator app. That is one almighty big tower of pizza, it probably distorts the space time continuum which would almost certainly make it unstable.

Re: 56!

ibmalone

It could have been worse. Asking for everyone's order from the takeaway menu was going fine until we got to Graham's number.

So the pizza shop got 56 separate faxes all the same.

tip pc

It should have at least added the users name and number to the order.

56 faxes for the same pizza to the same place should have looked suspicious.

The pizza shop sjouke have at least phoned to confirm.

Pineapple good. Pepperoni bad.

Shadow Systems

A thin crust, Canadian bacon & pineapple is yummy. Anything with pepperoni on it isn't fit to feed the dog.

If you think otherwise then you are an Abomination Unto Nuggin & should be spanked with rancid sourkraut as punishment.

*Blows an exuberent, boisterous, feisty raspberry like a Frenchman atop the castle wall*

=-D

Re: Pineapple good. Pepperoni bad.

simonlb

Putting pineapple on a pizza is like putting anchovies on ice cream - a perverse level of sickness that no one ever needs to experience. And remember, just because you can do something does not mean that you should. Ever.

Pepperoni on the other hand.....

Re: Pineapple good. Pepperoni bad.

Anonymous Coward

"Putting pineapple on a pizza is like putting anchovies on ice cream"

In my house, pizza should have ham, pineapple and peach slices, ever since I discovered this in Argentina 16 years ago. Be careful when ordering in a language you don't speak very well:- when we ordered a similar pizza from another shop in a different city, we got one with something we were pretty sure was leeks, along with thousand island dressing and glace cherries as well as the ham and pineapple....

Re: Pineapple good. Pepperoni bad.

Anonymous Custard

This reminds me of the first time I had Sweet and Sour Pork in the Netherlands (many years ago).

It seems their version of it translates as pieces of pork, battered, fried and served with a tinned fruit salad. Suffice it to say it never got ordered again, lesson learned.

Re: Pineapple good. Pepperoni bad.

Tom 38

If we're going down the "pineapple on pizza is an unholy abomination unto Italians", remember that there is no such thing as "pepperoni" in Italy. Closest thing by spelling is peperoni , which are sweet bell peppers and peperoncini , which are hot chilli peppers. For something close to the American pepperoni, you'd want salsiccia piccante , which literally means spicy sausage, and there are many fine varieties.

Re: Pineapple good. Pepperoni bad.

jake

If your sauerkraut has gone rancid, you've done something very, very wrong and are already being punished quite enough ...

Re: Pineapple good. Pepperoni bad.

Chris G

Pineapple on a pizza is an aberration and an abomination,it is against both the laws of nature and civilised behaviour. It is akin to putting sultanas into an otherwise decent curry, in such directions lies the route to hell and damnation.

Savagery?

bofh1961

Pineapple on a pizza is the sign of true greatness.

Re: Savagery?

Chloe Cresswell

Surely the cheese is the sign of grateness...

Re: Savagery?

jake

You don't grate proper mozzarella, you shred it.

Re: Savagery?

Ben Bonsall

You aren't supposed to use the wet mozzarella on pizza, it should be the grated dryer stuff. The wet stuff takes too long to melt compared to the cooking time of the rest of the ingredients...

The wet stuff is for eating raw. Preferably with a sprinking of fresh basil. But straight out of the packet is fine.

(could be a lie, I was told it by a Neapolitan though, so you never know.)

Re: Savagery?

jake

"The wet stuff takes too long to melt compared to the cooking time of the rest of the ingredients..."

Sounds like your pizza oven isn't hot enough. Mine runs around 900F (480C) on the deck, and around 1200F (650C) in the dome. Cooks a pie in under 90 seconds.

Re: Savagery?

jake

True greatness is the combination of thin slices of proper country ham and pineapple on pizza.

Re: Savagery?

Terry 6

And adds 1 to your 5 a day.

Throw in a pack of Jaffa Cakes and the tomato topping of the pizza and you're 50% of the way there.

Never mind the actual pizza

Daniel Bower

When is 'Charles' going to lob an IP infringement bomb at Just Eat et al?..

A real pizza

chivo243

Has pizza sauce (with oregano, basil, black pepper, garlic) Italian sausage, made in Chicago, crispy bacon, fresh tomato slices and fresh jalapeño slices and shredded mozzarella cheese on a thin crust. Hit it with some fresh ground Parmesan when it comes out of the oven...

Now I've done it, gone and made myself really hungry before lunch!

Re: A real pizza

jake

"Italian sausage, made in Chicago"

Why would I want to pay to have sausage shipped all the way from Chicago to Sonoma when I can make it at home cheaper and tastier?

The rest of your recipe sounds like it'd hit the spot, though ... Maybe lunch tomorow.

Re: A real pizza

Terry 6

A few years ago, in Venice, in quite a smart restaurant, I had pizza with chips on top. It was a menu item. So I chose it. Mostly so that from then on if anyone challenges the idea I can prove that authentic Italian Pizza can have a chip topping. :-)

Re: A real pizza

fozzy73

You get it there only because so many tourists order it. No Italian restaurant worthy of it's name in a non turistic area would offer such an aberration as a pizza with chips or with pineapple....

there are ecceptions. which as I said aren't worthy of their name.

Re: A real pizza

Anonymous Coward

"Italian sausage, made in Chicago" - Um, no. By definition it's "Chicago sausage", which sounds infinitely less appetizing.

Re: A real pizza

Loyal Commenter

I'd advise you against travel to Naples, I don't think they'd take kindly to that sort of talk.

At least you chose a thin crust. None of that "deep pan" rubbish (if you're cooking it in a pan, you've already gone wrong).

All the sugar, twice the caffeine ...

Blofeld's Cat

" ... energy boosting beverages ...

IIRC Most of the projects I worked on in the early '90s were fuelled by pepperoni pizza and Jolt Cola .

Re: All the sugar, twice the caffeine ...

jake

Starting in the mid 1980s, most of Silly Con Valley was built on Pizza (any variety, as long as someone else was paying) and either Jolt or DrPepper, with a few Sprite holdouts. Coke and Pepsi didn't even get an honorable mention.

WORST. PIZZA. EVER.

trevorde

Ordered a pizza in 1999, during the early days of the internet. Entered my credit card details, clicked submit and waited... I suspect that it just faxed an order to the local pizza shop. Anyway, my Thai yellow chicken curry pizza (goes well with beer!) arrived after 45 mins. The most amazing thing was not that the pizza combination was awful but that it arrived at all.

Re: WORST. PIZZA. EVER.

jake

Early days? In 1999 the Internet was thirty years old ...

Re: In 1999 the Internet was thirty years old

PerlyKing

Yeah, no. Not according to [1]Vint Cerf, Jon Postel et al . There were networks such as ARPANET, but not the Internet.

[1] https://www.internetsociety.org/internet/history-internet/brief-history-internet/

Re: WORST. PIZZA. EVER.

Little Mouse

It can't have been worse than the "seafood" pizza that I ordered once in Perth (Scotland).

Smoked haddock & crabsticks. On a pizza. Mmmmmm.

Re: WORST. PIZZA. EVER.

Terry 6

Worst Pizza I've ever had was 25 years ago. Iin Edinburgh In an Italian restaurant. During the festival. Took 40 minutes to arrive. Topping was unrecognisable. Base was burnt. Waiter not interested. I marched into the kitchen and dumped it onto the pass, burnt side up. That got results.

Re: WORST. PIZZA. EVER.

Sam not the Viking

"Do you deliver......"

Re: WORST. PIZZA. EVER.

Loyal Commenter

One liver and bacon pizza then please!

Re: WORST. PIZZA. EVER.

Anonymous Coward

Gah! I thought I'd had the worst pizza ever as a teenager on Lanzarote - all I remember were the strawberries & bananas - but your seafood pizza does sound *much* worse!

No matter whether th' constitution follows th' flag or not, th' supreme
court follows th' iliction returns.
-- Mr. Dooley