Games, Diversions & Perl Culture. Best of the Perl Journal - Helion
ISBN: 978-14-493-9778-4
stron: 588, Format: ebook
Data wydania: 2003-05-22
Księgarnia: Helion
Cena książki: 152,15 zł (poprzednio: 176,92 zł)
Oszczędzasz: 14% (-24,77 zł)
The Perl Journal (TPJ) did something most print journals aspire to, but few succeed. Within a remarkable short time, TPJ acquired a cult-following and became the voice of the Perl community. Every serious Perl programmer subscribed to it, and every notable Perl guru jumped at the opportunity to write for it. Back issues were swapped like trading cards. No longer in print format, TPJ remains the quintessential spirit of Perl--a publication for and by Perl programmers who see fun and beauty in an admittedly quirky little language.Games, Diversions, and Perl Culture is the third volume of The Best of the Perl Journal, compiled and re-edited by the original editor and publisher of The Perl Journal, Jon Orwant. In this series, we've taken the very best (and still relevant) articles published in TPJ over its 5 years of publication and immortalized them into three volumes.The 47 articles included in this volume are simply some of the best Perl articles ever written on the subjects of games, diversions, and the unique culture of this close-knit community, by some of the best Perl authors and coders. Games, Diversions & Perl Culture focuses on entertaining topics that make Perl users such fanatics about the language. You'll find all of the playful features TPJ offered over the years, including the Obfuscated Perl Contests, Perl Quiz Shows, humor articles, and renowned one-line recipes. The book also contains a panoply of quirky applications of Perl, including genetic algorithms, home automation, music programming, and an entire section on natural language processing.This anthology is an unmatched compendium of Perl lore.
Osoby które kupowały "Games, Diversions & Perl Culture. Best of the Perl Journal", wybierały także:
- Perl. Mistrzostwo w programowaniu 44,00 zł, (22,00 zł -50%)
- Wielkie umysły programowania. Jak myślą i pracują twórcy najważniejszych języków 79,00 zł, (47,40 zł -40%)
- Learning Perl. Making Easy Things Easy and Hard Things Possible. 7th Edition 169,00 zł, (118,30 zł -30%)
- 100 sposobów na Perl 39,00 zł, (29,25 zł -25%)
- Mastering Perl. 2nd Edition 167,03 zł, (143,65 zł -14%)
Spis treści
Games, Diversions & Perl Culture. Best of the Perl Journal eBook -- spis treści
- Games, Diversions, and Perl Culture: Best of the Perl Journal
- A Note Regarding Supplemental Files
- Preface
- Finding Perl Resources
- Conventions Used in This Book
- Using Code Examples
- Comments and Questions
- Acknowledgments
- 1. Introduction
- I. Culture
- 2. Wherefore Art, Thou?
- Music to My Ears
- 3. TPJ Cover Art: From Camels to Spam
- TPJ #1: The Camel
- TPJ #2: The Pearl
- TPJ #3: RSA on Greenbar
- TPJ #4: Etch-a-Sketch.
- TPJ #5: Commodities
- TPJ #6: Scrabble
- TPJ #7: Spiderball
- TPJ #8: The Coffee Cup Fiasco
- TPJ #9: Drummer/Coder Wanted
- TPJ #10: The Underwood Typewriter
- TPJ #11: The Conspiracy
- TPJ #12: The Atari Perl Cartridge
- TPJ #13: Dance Remixes
- TPJ #14: Outlook Not So Good
- TPJ #15: Braille blocks
- TPJ #16: e. e. cummings Gravestone
- TPJ #17: Napster
- TPJ #18: Spam
- TPJ #19: Monopoly Money
- TPJ #20: WAP
- 4. Perl Style
- Background
- Existing Measures
- The Basic Units
- The Tool
- Usage
- Why This Should Be Hard To Do
- The Perl Compiler to the Rescue
- Future Directions
- Acknowledgments
- 5. Home Automation with MisterHouse
- HA! Perl?
- MisterHouse
- Objects in the Home
- Talking and Listening
- A Smart TV Guide
- Whole House CallerID
- Squeaky Stairs
- You Have Mail
- Say What?
- Give Your House a Brain
- 6. Home Automation: The X10 Nitty-Gritty
- Simple Output Commands: The CM17
- The ControlX10::CM17 and ControlX10::CM11 Modules
- Whats in a Command?
- Timing Issues
- Bidirectional I/O with the CM11
- A Few More Considerations
- 7. A Day in the Life of comp.lang.perl.misc
- A Little History
- How the Day in the Life Was Done
- The Raw Statistics
- The Days Weather Report
- Netiquette Nits
- The Regulars
- The Future of comp.lang.perl.misc
- 2. Wherefore Art, Thou?
- II. Science
- 8. Perl-fect Sundials
- Building Your Own
- 9. Genetic Algorithms
- The Genetic Code
- Assembling an Organism
- Survival of the Fittest
- Sex and Mutation
- The Terrifying Results
- Other Applications
- Going Further
- Other Fitness Functions
- Resources
- 10. How Perl Saved the Human Genome Project
- Bioinformatics and Perl
- Other Uses for Perl
- Problems with Perl
- 11. PDL: The Perl Data Language
- The perldl Shell
- Listing of a Few PDL Functions
- Where Are We Now?
- 8. Perl-fect Sundials
- III. Language
- 12. Chatbot::Eliza
- How It Works
- What Now?
- References
- 13. Infobots and Purl
- IRC
- Bots and Infobots
- So What?
- Are You Spongeworthy?
- You Cant Do That in Public!
- What Are You Thinking?
- Idiot Savant
- A Sense of Play
- What? We Ordered No Pizzas!
- Future Directions
- Where to Get It
- Acknowledgments
- References
- 14. Speech Synthesis
- Pre-Recorded Sentences
- Lexical Synthesis in One s///
- The Out-of-Vocabulary Problem: Synthesis in One s///e
- Text-to-Phoneme Conversion
- More Context: Two Substitutions
- What Else?
- References
- 15. Lazy Text Formatting
- Text::Autoformat
- Paragraphs
- Quoting
- Lists
- Quotations
- Widows
- Justification and Sentencing
- Future Features
- 16. Perl and MIDI: Simple Languages, Easy Music
- Hard Things Possible
- Approach 1: A Novel Language
- Approach 2: An Extensional Language
- Easy Things Easy
- Behold MIDI::Simple!
- Relative Notes
- Percussion, Uniformity, and noop
- The Object-Oriented Interface
- Using synch, and Some Actual Music
- Mod, Canons, and Rounds
- Future Features
- References
- 17. Braille Contractions and Regular Expressions
- Braille and Contractions
- Sample Text in Braille
- Linguistic Rule Systems
- Generativity Systems
- Optimality Systems
- Regex Replacement as a First Hack
- Contexts in Regular Expressions
- Embedding Code in Regular Expressions
- Rules as Exceptions
- Testing It
- Its Alive!
- 18. Hypernyms, Hyponyms, Pertainyms, and Other Word Relationships
- Concepts in Wordnet
- Converting the Data
- Installing Lingua::Wordnet
- Basic Usage
- Movin It Up a Level
- Other Word Relationships
- Other Useful Functions
- Whats Next?
- 19. Parsing Natural Language
- I See a Pattern Developing
- Link Grammar
- Lingua::LinkParser
- Irregular Regular Expressions, Overloaded
- What Sucks? What Rocks?
- What Sucks, Regex Style
- The What-Sucks-Ometer
- Theres Lots More Here
- References
- A Full Lingua::LinkParser Example
- 20. Word Morphology
- Morphology: Word Form and Structure
- Morphological Analysis and Perl
- Constructing a Word Frequency List
- Morphological Inflections and Derivations
- Representing a Single Rule
- Representing Many Rules
- Telling Good from Bad
- The Key Insight!
- Implementing It
- Applying the Derivation Process to All Tokens
- Summary
- Future Work
- 21. Smart Matching for Human Names
- Installing the Modules
- Module Contents
- Using the Modules
- What They Do
- Matching Nicknames
- Conclusion
- 22. Localizing Your Perl Programs
- A Localization Horror Story: It Could Happen to You
- The Linguistic View
- Breaking gettext
- Replacing gettext
- Buzzwords: Abstraction and Encapsulation
- Buzzword: Isomorphism
- Buzzword: Inheritance
- Buzzword: Concision
- The Devil in the Details
- Proof in the Pudding: Localizing Web Sites
- References
- 23. Internationalized Sorting
- Default sort Versus Normal English Sorting
- Locale-Based Sorting
- Spanish: Cana y Caa
- Spanish: Chorizo, Chimichangas, Chicharrones, y Churros
- Bi-Level Sorting to the Rescue
- English: Résumé and Resume
- Optimizing with Memoization
- Sorting it All Out
- 24. Simulating Typos with Perl
- Simulating the Typos
- How to Identify Words
- Typos in Other Languages
- Results
- References
- 25. Correcting Typos with Perl
- Why Was It Written?
- How Does It Work?
- The Sub::Approx Module
- The Symbol::Approx::Sub Module
- Future Plans
- Afterword
- 26. Learning Japanese with an HTML Filter
- The Web
- Dictionary Database
- The CGI Script
- Taking It a Step Further
- Conclusion
- wwwkan.pl
- 12. Chatbot::Eliza
- IV. Games and Quizzes
- 27. Games in Perl
- Strategy Games
- Cards
- Dice
- Word Games
- Twitch Games
- 28. The Prisoners Dilemma
- The Iterated Prisoners Dilemma
- The Three-Way Prisoners Dilemma
- The Prisoners Dilemma Programming Contest
- Results of the Contest
- 29. The Rezrov Infocom Game Interpreter
- Resurrecting the Z-Machine
- Enter the Camel
- Whats It Do?
- The Joy of vec
- Tinkering with the Z-Machine
- Teleport
- Bamf
- Pilfer
- Universal Command Set
- Interface Abstraction
- Performance Considerations
- Quantity Is Job One
- A Plea for Inlining
- Conclusion
- References
- 30. Tktk: A Perl/Tk Solitaire Game
- The Rules
- A First Cut
- Shuffling
- Layout
- Show the Tableau!
- Would You Like to Play a Game?
- Making the Moves
- Laying the Base
- Pickup Lines
- Oops!
- Finishing Touches
- 31. The First Perl/Internet Quiz Show
- Toss-up Questions
- Bonus Questions
- The Answers
- Toss-up Answers
- Bonus Answers
- 32. The Second Perl/Internet Quiz Show
- Sample Questions
- Toss-up Questions
- Bonus Questions
- The Answers
- Toss-up Answers
- 33. The Third Perl/Internet Quiz Show
- Toss-up Questions
- Bonus Questions
- Toss-up Answers
- Bonus Answers
- 34. The Fourth Perl/Internet Quiz Show
- Toss-up Questions
- Bonus Questions
- Toss-up Answers
- Bonus Answers
- Toss-up Questions
- 35. The Perl Whirl Quiz Show
- Toss-up Questions
- Bonus Questions
- Toss-up Answers
- Bonus Answers
- 36. The Perl Wizards Quiz
- Answers
- 27. Games in Perl
- V. Poetry
- 37. Just Another Perl Haiku
- The Tao of Haiku
- Haiku Online
- Artificial Haiku
- The Coy Module
- A Note About the Name
- Inside the Coy Module
- Mere Words
- Random Harvesting
- Filling in the Blanks
- The Other Type of Grammar
- Counting the Beat
- But Does the Bear Dance?
- Extending the Module
- Is There a Poet in the House?
- It Seemed Like a Good Idea at the Time
- 38. Searching for Rhymes with Perl
- Where to Look
- Preparing the Data
- Searching the Prepared Data
- Counting Syllables
- Coping with (Syllabic) Stress
- A Simple mpron Searcher
- Accommodating Another Notation
- 39. The Perl Poetry Contest
- The Categories
- The Results
- Best Poem Port
- Haiku
- A Perl Program That Generates Poetry
- Obfuscated Poetry?
- Best of Show
- 37. Just Another Perl Haiku
- VI. Politics
- 40. Pairwise Voting
- The Preference Ballot
- Impossibility Theorems
- The Borda Method
- The Hare Method
- Pairwise Election Methods
- Condorcets Method
- Smiths Method
- Copelands Method
- The Algorithms
- The Pairwise Engine
- Using CGI to Spit It All Out
- Random Thoughts
- References
- Sites
- 41. Secure Internet Voting
- About Secure Elections
- The Database Schema
- Generating VRNs
- The E-Ballot
- The vote Program
- Lines 04: Load Modules
- Lines 57: Define Constants and Globals
- Lines 89: Connect to the Database
- Lines 1020: Start the Page
- Lines 2122: Initialize Globals
- Lines 2326: Handle a Submitted Ballot
- Lines 2730: Generate a New Ballot
- Lines 3134: Finish up
- Lines 4060: get_globals Subroutine
- Lines 6171: The generate_ballot Subroutine
- Lines 72104: The voting_matrix Subroutine
- Lines 105116: The registration_number Subroutine
- Lines 117123: The vote Subroutine
- Lines 124165: The validate Subroutine
- Lines 166205: The enter_ballot Subroutine
- Lines 209223: Utility Subroutines
- Tallying the Votes
- 42. Perl and Nuclear Weapons Dont Mix
- A Little Rocket Science
- Red Alert!
- 40. Pairwise Voting
- VII. Obfuscated Perl
- 43. The Zeroth Annual Obfuscated Perl Contest
- The Categories
- How It Works
- Hints and Suggestions
- So There You Have It
- Results
- Best Four-Line Signature
- Most Powerful
- Most Creative
- Best The Perl Journal
- 44. The First Obfuscated Perl Contest
- Results
- Most Powerful
- Most Creative
- Best The Perl Journal
- Best Year 2000 Error
- Best of Show
- Results
- 45. The Third Obfuscated Perl Contest
- Most Powerful
- Most Creative
- Best The Perl Journal
- Best of Show
- 46. The Fourth Obfuscated Perl Contest
- Results
- The First Circle: Print The Perl Journal
- The Second Circle: Do Something Powerful
- The Third Circle: Be Creative
- The Fourth Circle: Make Believe Youre Another Language
- Results
- 47. The Fifth Obfuscated Perl Contest
- Results
- Create a Diversion
- World Wide Wasteland
- Inner Beauty
- The Old Standby
- Results
- 48. One-Liners
- Useful One-Liners
- How to Use the Perl Debugger as a Command-Line Interpreter
- Picking Random Elements from an Array
- Evaluating Expressions Inside Double Quotes
- Little-Known Magic Scalar Variables
- A Demonstration of Perl/Tk Widgets
- Using Perl from Emacs
- Using Perl from vi
- Finding Substrings
- Simple Numeric Tests
- Adding a Long List of Numbers on the Command Line
- Printing Perls Include Path
- Extracting Unique Elements from a List
- Extracting, Sorting, and Printing Unique Words from a File
- Counting the Number of Lines in a File
- Counting Pod and Code Lines
- Separating the Header and Body of a Mail Message
- Sleeping for Less Than a Second
- Listing Installed Modules
- Another Way to List Installed Modules
- Preserving Case in a Substitution
- Finding the Longest Common Prefix and Suffix
- DeMorgans Rule
- Uuencoding Attachments
- When to Split and When to m//g
- Transposing a Two-Dimensional Array
- Suppressing Backquote Interpolation
- Stripping the Eighth Bits from a String
- Replacing Tabs with Spaces
- A Cheap Alarm Clock
- Primality Testing with a Regular Expression
- Factoring Numbers
- Little-Known Facts About qr
- Halving an Array
- Daylight Savings Time
- Tracking File Progress
- Timing Your Program
- Stringifying Data Structures
- Indenting a Here Document
- Printing All Capitalized Words
- Generating Randomly-Colored xterms
- Extracting PostScript from Windows-Generated PCL Files
- Graphing a Bent Torus with PDL
- Detecting Unbalanced Parentheses, Brackets, and Braces
- Extracting Parenthetical Contents
- Converting a GIF Image to an HTML Table
- Identifying CVS Files That Arent Up To Date
- Displaying All Perls Error Messages
- How to Patch Your Netscape Binary to Enable Strong Encryption
- A Little-Known Way to Create References
- Not So Useful One-Liners
- Regular Expression Epigram
- Avoiding Asteroids with Perl
- Maze Generation
- The Pontifex Cryptosystem
- Perl in Sphere, the Movie
- An Absurd Way to Convert from Decimal to Binary
- Swatch Internet Time
- The Game of Life
- Ransom Notes
- Triggering the F00F Pentium Bug
- Magic Cards
- Perl Poem: down.pl
- Perl Poem: 143
- Perl Poem: If Dr. Seuss Were a Perl Programmer
- Perl Poem: Object-Oriented Perl
- Happy Birthday!
- Useful One-Liners
- 43. The Zeroth Annual Obfuscated Perl Contest
- Index
- Colophon
- Copyright