Event Badge Generator
Event Badge Generator, Order Processor
Is a widely quoted paraphrase of a line of dialogue from the 1948 film The
Treasure of the Sierra Madre.[1] That line was in turn derived from dialogue
in the 1927 novel, The Treasure of the Sierra Madre, which was the basis for
the film. The original version of the line appeared in B. Traven’s novel
The Treasure of the Sierra Madre (1927):
"All right," Curtin shouted back. "If you are the police, where
are your badges? Let's see them."
"Badges, to god-damned hell with badges! We have no badges.
In fact, we don't need badges. I don't have to show you any
stinking badges, you god-damned cabrón and chinga tu madre!"
The line was popularized by John Huston’s 1948 film adaptation of the novel,
which was altered from its content in the novel to meet the Motion Picture
Production Code regulations severely limiting profanity in film.[3] In one
scene, a Mexican bandit leader named “Gold Hat”[4] (portrayed by
Alfonso Bedoya) tries to convince Fred C. Dobbs (Humphrey Bogart)[5]
that he and his company are Federales:
Dobbs: "If you're the police, then where are your badges?"
Gold Hat: "Badges? We ain't got no badges. We don't need no
badges. I don't have to show you any stinkin' badges!"
The point was that without a badge, Dobbs had no way to validate Gold Hat
was a Federale when in fact he was actually a bandit.
- Stylish - yes, you too can have one and wear it proudly
- Informative - name, rank, title
- Color Coded for Info at a Glance
- Personalization - unique info about the holder
- Globally Unique ID - no two badges can be the same
- Ability to transfer assets digitally via machine vision (e.g. a QR-Code)
- Ability to revoke access on badge - e.g. de-authorize
The intention of this script is to perform the required data mining on a minimal set of unique labeled
attributes information to hit the above goals
Install Perl on a Modern Debian distribution, install packages below:
- cpan Text::CSV
- cpan Image::Magick
- cpan Imager::QRCode
- cpan GD
- cpan GD::Barcode
- cpan Data::GUID
- cpan File::Slurp
- cpan MIME::Base64
- cpan Crypt::OpenSSL::RSA
- cpan Digest::SHA
NOTE: cpan -l will list installed packages.
Once all of the PNG files are in the badges directory and a complete set
has been generated, you can use ImageMagick convert from the command line
to round all of the edges like the below command which can be run in C-Shell
from within the badges directory:
foreach i (ls *.png
)
echo $i
convert $i \
( +clone -alpha extract \
-draw ‘fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0’ \
( +clone -flip ) -compose Multiply -composite \
( +clone -flop ) -compose Multiply -composite \
) -alpha off -compose CopyOpacity -composite $i
end
WooCommerce Orders exported as CSV will be used to autogenerate the PDF for Banquet dinners and everything ordered
from the site.