Synopses & Reviews
If youre curious about how things work, this fun and intriguing guide will help you find real answers to everyday problems. By using fundamental math and doing simple programming with the Ruby and R languages, youll learn how to model a problem and work toward a solution.
All you need is a basic understanding of programming. After a quick introduction to Ruby and R, youll explore a wide range of questions by learning how to assemble, process, simulate, and analyze the available data. Youll learn to see everyday things in a different perspective through simple programs and common sense logic. Once you finish this book, you can begin your own journey of exploration and discovery.
Here are some of the questions youll explore:
- Determine how many restroom stalls can accommodate an office with 70 employees
- Mine your email to understand your particular emailing habits
- Use simple audio and video recording devices to calculate your heart rate
- Create an artificial society—and analyze its behavioral patterns to learn how specific factors affect our real society
Programming is not just for geeks. If youre curious about how things work, and want to get programmatic solutions to everyday problems, this intriguing book will help you find what youre looking for. By using some fundamental math and simple Ruby and R constructs, youll learn how to model the problem and work toward a solution.
Discover reasons why things are the way they are by spelunking data freely available on the Internet. Youll model and simulate environments and systems, and then observe and analyze the results. See the world around you through programming eyes.
About the Author
Sau Sheong Chang has been in software development, mostly web applications and recently cloud- and data-related systems, for almost 17 years and is still a keen and enthusiastic programmer. He has been active in programming with Ruby for the past 6 years and recently started with R for the past year. He is active in the local developer communities, especially in the Singapore Ruby Brigade. In April 2011 he co-organized the first and largest Ruby conferences in Southeast Asia, the RedDotRubyConf.
He has published 2 books, the first in 2008 titled Ruby on Rails Mashup Projects and the second in 2010, titled Cloning Internet Applications with Ruby. Both books were published by Packt Publishing.
Mr. Chang is currently the Director of Applied Research in HP Labs Singapore, with research focusing on cloud computing and big data. His previous roles include a stint as the CTO of a popular online gaming company and Director of Engineering for Yahoo! Southeast Asia.
More detailed information can be found from http://www.saush.com/profile.
Table of Contents
Preface; Explorers Ahoy!; Data, Data, Everywhere; Bringing the World to Us; Packing Your Bags; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: The Hat and the Whip; 1.1 Ruby; 1.2 Shoes; 1.3 Wrap-up; Chapter 2: Into the Matrix; 2.1 Introducing R; 2.2 Using R; 2.3 Programming R; 2.4 Charting; 2.5 Wrap-up; Chapter 3: Offices and Restrooms; 3.1 The Simple Scenario; 3.2 Representing Restrooms and Such; 3.3 The First Simulation; 3.4 Interpreting the Data; 3.5 The Second Simulation; 3.6 The Third Simulation; 3.7 The Final Simulation; 3.8 Wrap-up; Chapter 4: How to Be an Armchair Economist; 4.1 The Invisible Hand; 4.2 A Simple Market Economy; 4.3 Resource Allocation by Price; 4.4 Wrap-up; Chapter 5: Discover Yourself Through Email; 5.1 The Idea; 5.2 Grab and Parse; 5.3 Discover Yourself; 5.4 Text Mining; 5.5 Wrap-up; Chapter 6: In a Heartbeat; 6.1 My Beating Heart; 6.2 Auscultation; 6.3 Oximetry; 6.4 Wrap-up; Chapter 7: Schooling Fish and Flocking Birds; 7.1 The Origin of Boids; 7.2 Simulation; 7.3 Roids; 7.4 The Boid Flocking Rules; 7.5 Supporting Rules; 7.6 A Variation on the Rules; 7.7 Going Round and Round; 7.8 Putting in Obstacles; 7.9 Wrap-up; Chapter 8: Money, Sex, and Evolution; 8.1 It's a Good Life; 8.2 Money; 8.3 Sex; 8.4 Evolution; 8.5 Wrap-up; Colophon;