Green Beer? Not Here!
I know I'm not the only Irish person that got a kick out of the green beer touting penguin on the cover of the March 2002 edition of Linux Journal. I'm also sure I'm not the only Irish person that thinks, "What's the big deal with green beer?" Although the cover story editorial states that "everyone can appreciate green beer", I'm not so sure. Read on.
My first exposure to the green beer phenomenon occurred when I was living and working in Toronto, Canada, during the early '90s. As chance would have it, I (quite mysteriously, of course) found myself in an Irish bar on Saint Patrick's Day with my fellow coworkers. A pitcher of beer promptly was plonked down on the table. I was shocked. Perhaps it was the lighting in the place, but I was sure that the beer in the pitcher was--green! Turned out it was. Apparently, such practice is the "done thing" in North America on Ireland's national day. Not wishing to upset my gracious Canadian hosts, and being a stranger in a foreign land, I decided that "when in Rome" was the best strategy on this occasion and accepted a glass. Then another. Then another. Oh, let's be honest, after that I lost count.
Some time later, a quick trip to the "facilities" was called for. As I headed for relief, a friend shouted after me, "You know, Paul, no one every buys beer--they just acquire it on a short term lease!" A few seconds later, I was to get my second shock.
What actually happened at this point is best expressed in a short Perl program (although at the time I thought I was either very close to death or had contracted some terrible disease):
#! /usr/bin/perl -w
my $p = 'normal';
while ( my $beer = <STDIN> )
{
if ( is_it_green( $beer ) )
{
$p = 'green';
}
print "You're gonna pee: $p\n";
}
Note that this program (which does compile successfully) assumes that standard input is redirected to your mouth prior to execution. This is a tricky enough task for most modern operating systems. The less said about standard output as it pertains to this program, the better. Also, note that (in honor of Saint Patrick) the "is_it_green" subroutine is to be added to the forthcoming Perl 6. Honest. (OK, a tiny white lie, but, as I'm being as silly, I can get away with a few really silly statements).
As it turns out, turning your beer green is not the done thing here in Ireland (the myth is exposed). The reason has more to do with our preferred pint than with food colorings. Adding green to black gives you black, and it ruins a good pint. Now, the fact that Ireland's national brewer was sold off a few years ago to a large, faceless, international drinks conglomerate has done nothing to hurt the sales of "the black stuff" throughout the four corners of the Emerald Isle. Just think of the alternatives: if it wasn't for Arthur Guinness, we'd all be drinking one of those trendy European beers or (heavens forbid) that which passes for beer in North America! So, a non-Irish owner of the national tipple is tolerable, just so long as things remain black.
While I'm in a myth-exposing mood, let me tackle a few more:
Central Heating has been standard in Irish homes for about 30 years now. Hot showers are not as traumatic an experience as they used to be.
Lavatories are now (conveniently) located inside Irish homes. This makes cold, stormy, winter nights that little bit easier to bear (pun most definitely intended).
Despite what your travel agent may tell you, not all Irish people live in thatched-roofed cottages. In fact, it is incredibly difficult to insure a thatched-roof property against fire. Most people prefer slate roofs, as mice tend not to create their homes in them.
Other myths that I cannot shed any light on (because they are all, of course, true) include:
Leprechauns do exist. Ask any Irish person and they will tell you that they have seen at least one at the bottom of their garden. This is hard to confirm because Leprechauns are traditionally very hard to catch.
A pot o' gold can be found at the end of any rainbow. Ask any Irish person and they will tell you that this is very true. However, I've yet to meet anyone that actually claims to have found the gold.
Saint Patrick banished all snakes from Ireland--we have none. This helps explain my cultural preference for Perl over Python. (Sorry, Python fans, I couldn't resist that one).
So, what has all of this to do with open source and Linux? In truth, nothing. But, if we can't have a bit of fun on Saint Patrick's Day, when can we?
To all the readers of (and staff at) Linux Journal: Happy Saint Patrick's Day!
Paul Barry, when not avoiding green beer, lectures at The Institute of Technology, Carlow, in Ireland. He is the author of Programming the Network with Perl (Wiley, 2002).
email: paul.barry@itcarlow.ie
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- Designing Electronics with Linux
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Dynamic DNS—an Object Lesson in Problem Solving
- Using Salt Stack and Vagrant for Drupal Development
- Build a Skype Server for Your Home Phone System
- Why Python?
- New Products
- A Topic for Discussion - Open Source Feature-Richness?
- Validate an E-Mail Address with PHP, the Right Way
- Tech Tip: Really Simple HTTP Server with Python
- Understanding the Linux Kernel
1 hour 27 min ago - General
3 hours 57 min ago - Kernel Problem
14 hours 16 sec ago - BASH script to log IPs on public web server
18 hours 27 min ago - DynDNS
22 hours 3 min ago - Reply to comment | Linux Journal
22 hours 35 min ago - All the articles you talked
1 day 59 min ago - All the articles you talked
1 day 1 hour ago - All the articles you talked
1 day 1 hour ago - myip
1 day 5 hours ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?



Comments
Green beer? Sounds
Green beer? Sounds interesting, I would love to try that and I wonder if the color will have any kind of relevance for the enjoyment level of the beer. Are there any beer clubs in Europe to serve this thing?
Re: Green Beer? Not Here!
Hey! Canadian beer is NOT American beer! Remember, the most important part about being Canadian is that you get to point out you're not American!
Re: Green Beer? Not Here!
Ever try O'Hara's Stout, by Carlow Brewing Company, you can get it in most off-licences in Dublin and its a damn site nicer than Guinness. And unlike Guinness O'Hara's is 100% Irish owned. It also won a Gold Medal in the Millenium International Brewing Awards.
Re: Green Beer? Not Here!
Let me let you into a little secret. As well as being Irish (by birth), I'm also Canadian (by choice). My wife and I took out citizenship while working/living there. And I did say 'North America'. Last time I looked, Canada was still very much in North America. And, I know all about the difference in the quality of the beer above and below the border!! But, no matter, it's still not "the black stuff". ;-) Cheers! Paul
Re: Green Beer? Not Here!
Saint Patrick banished all snakes from Ireland--we have none. This helps explain my cultural preference for Perl over Python.
Because of the overwhelming camel population in Ireland?
Re: Green Beer? Not Here!
Well, you know what they say about Camels, don't you? If you have to deal with a big, smelly Camel, better it's inside your tent pi**ing out, than outside your tent pi**ing in!! Actually, we have a few camels, in the zoo. But we have no snakes, so, I'm sorry, no python! :-) Yours in Perl, Paul.
Let us not forget green grits
Here in the southern US, where many Irish people settled, we enjoy green grits for St. Patrick's day breakfast. They're remarkable.
For the grits-deprived, you can find a working definition here.
I offer this alternative script for those who know they'll consume something green and would like a choice of comestables:
#! /usr/bin/perl -w
my $comestable;
while ( )
{
if ( /grits/i )
{
$comestable = 'grits';
}
else
{
$comestable = 'beer';
}
print "You're gonna have: $comestable
";
}
Re: Fix to code in
Whoops! The formatting of the code got a bit screwy on it's trip to the LJ website. That line near the bottom should read:print "You're gonna pee: $p
";Paul.
Re: Fix to code in
Actually, the good folk at LJ have fixed the formatting error. So, disregard my earlier comment.
Great thoughts. I love
Great thoughts. I love history like this and I teach on all Martin Luther drug rehab centers. Don't know if I'll tell my patients graders that Martin Luther wants them to have beer though.
Re: Fix to code in
I kinda ment I couldn't pee cause of the error... so I was gonna burst. Just a very small joke.
Thanks for the very good piece though! lotsa laughs!
Cheers!
Re: Fix to code
Glad you enjoyed the article. Also, I did get your original joke. Happy to see you got the "release" you were looking for. Cheers. Paul.
Re: Fix to code in
whoo! Glad you cleared that up, I thought I was gonna burst!