Raspbian OS Programming with the Raspberry Pi: IoT Projects with Wolfram, Mathematica, and Scratch 1st Edition Agus Kurniawan instant download
Raspbian OS Programming with the Raspberry Pi: IoT Projects with Wolfram, Mathematica, and Scratch 1st Edition Agus Kurniawan instant download
https://textbookfull.com/product/raspbian-os-programming-with-
the-raspberry-pi-iot-projects-with-wolfram-mathematica-and-
scratch-1st-edition-agus-kurniawan/
https://textbookfull.com/product/raspbian-os-programming-with-
the-raspberry-pi-iot-projects-with-wolfram-mathematica-and-
scratch-black/
https://textbookfull.com/product/iot-projects-with-nvidia-jetson-
nano-ai-enabled-internet-of-things-projects-for-beginners-agus-
kurniawan/
https://textbookfull.com/product/arduino-programming-with-net-
and-sketch-1st-edition-agus-kurniawan/
https://textbookfull.com/product/arduino-programming-with-net-
and-sketch-1st-edition-agus-kurniawan-2/
Biota Grow 2C gather 2C cook Loucas
https://textbookfull.com/product/biota-grow-2c-gather-2c-cook-
loucas/
https://textbookfull.com/product/hands-on-start-to-wolfram-
mathematica-and-programming-with-the-wolfram-language-cliff-
hastings/
https://textbookfull.com/product/raspberry-pi-os-text-editors-
git-and-lxc-a-practical-approach-raspberry-pi-os-system-
administration-with-systemd-1st-edition-robert-m-koretsky/
https://textbookfull.com/product/practical-internet-of-things-
with-javascript-build-standalone-exciting-iot-projects-with-
raspberry-pi-3-and-javascript-1st-edition-arvind-ravulavaru/
https://textbookfull.com/product/beginning-arduino-nano-33-iot-
step-by-step-internet-of-things-projects-1st-edition-agus-
kurniawan/
TECHNOLOGY IN AC TION™
Raspbian OS
Programming with
the Raspberry Pi
IoT Projects with Wolfram,
Mathematica, and Scratch
—
Agus Kurniawan
Raspbian OS
Programming with the
Raspberry Pi
IoT Projects with Wolfram,
Mathematica, and Scratch
Agus Kurniawan
Raspbian OS Programming with the Raspberry Pi: IoT Projects with
Wolfram, Mathematica, and Scratch
Agus Kurniawan
Depok, Indonesia
iii
Table of Contents
iv
Table of Contents
v
Table of Contents
vi
Table of Contents
Index�������������������������������������������������������������������������������������������������177
vii
About the Author
Agus Kurniawan is a lecturer, researcher, IT consultant, and an author. He
has 17 years of experience in various software and hardware development
projects, delivering materials in training and workshops, and technical
writing. He has been awarded the Microsoft Most Valuable Professional
(MVP) award 14 years in a row.
His topic interests are software engineering, embedded system,
networking, and security system. He has been working as lecturer and
researcher at the Faculty of Computer Science, Universitas Indonesia.
Currently, he is pursuing a PhD in computer science at the Freie
Universität Berlin, Germany. He can be reached on his blog at
http://blog.aguskurniawan.net and Twitter at @agusk2010.
ix
About the Technical Reviewer
Massimo Nardone has more than 22 years of experiences in security, web/
mobile development, cloud, and IT architecture. His true IT passions are
security and Android.
He has been programming and teaching how to program with Android,
Perl, PHP, Java, VB, Python, C/C++, and MySQL for more than 20 years.
He holds a Master of Science degree in Computing Science from the
University of Salerno, Italy.
He has worked as a Project Manager, Software Engineer, Research
Engineer, Chief Security Architect, Information Security Manager, PCI/
SCADA Auditor, and Senior Lead IT Security/Cloud/SCADA Architect for
many years.
Technical skills include: Security, Android, Cloud, Java, MySQL,
Drupal, Cobol, Perl, web and mobile development, MongoDB, D3, Joomla,
Couchbase, C/C++, WebGL, Python, Pro Rails, Django CMS, Jekyll,
Scratch, etc.
He currently works as Chief Information Security Office (CISO) for
Cargotec Oyj.
xi
Acknowledgments
We would like to thank Apress for all their help in making this book
possible. Specifically, we would like to thank Aaron Black, our acquisitions
editor, and Jessica Vakili, our coordinating editor, for helping us complete
the Raspbian book.
Special thanks to our development editor, James Markham, and
technical reviewers, Chaim Krause and Massimo Nardone, for all of their
suggestions during the editorial review process that helped make this a
great book.
We would also like to thank the Raspberry Pi and Raspbian
communities anywhere in the world for contributing and making learning
Raspberry Pi with Raspbian easy.
Last but not least, a thank you to my wife, Ela and my children, Thariq
and Zahra, for their great support while I completed this book.
xiii
Introduction
Raspberry Pi is a mini computer that you can operate as a normal
computer. The Raspberry Pi board is one of recommended development
boards with IoT platforms. There are many features on the Raspbian OS
and Raspberry Pi boards that you can use to build IoT programs in various
scenarios. Raspberry Pi is designed to enable you to scale its capabilities
through GPIO pins that are suitable for your business and research needs.
Raspbian OS Programming with the Raspberry Pi is a quick reference
to build programs on top of the Raspbian OS on a Raspberry Pi board.
You’ll start by learning Raspbian shells to develop programs. You will go
through a step-by-step guide with project samples to learn the ins and outs
of the Raspbian OS development. You will also learn about the Wolfram
language, Mathematica, and Scratch.
xv
Introduction
xvi
CHAPTER 1
Introduction
to Raspberry Pi
Raspberry Pi is a development board that can be applied to build IoT
applications. Various sensors and actuator devices can be attached to the
board. In this chapter, we explore Raspberry Pi and cover its models.
We also learn how to set up the board for the first time.
The following list of topics is covered in this chapter:
2
Chapter 1 Introduction to Raspberry Pi
1.2 R
eviewing the Raspberry Pi Board
Models
There are several Raspberry Pi models that we can use to perform specific
purposes. The latest model as I am writing this book is Raspberry Pi 3
Model B+. This board consists of Broadcom BCM2837B0, Cortex-A53
(ARMv8) 64-bit SoC @ 1.4GHz, with 1GB LPDDR2 SDRAM. The board
also provides Ethernet, WiFi, and Bluetooth 4.2 (BLE). You can see the
Raspberry Pi 3 Model B+ board in Figure 1-1. For further information
about Raspberry Pi 3 Model B+, see https://www.raspberrypi.org/
products/raspberry-pi-3-model-b-plus/.
If you have concerns about hardware size, Raspberry Pi Foundation
has an even smaller version, which is half the size of a credit card. It is
called the Raspberry Pi Zero. There are two models—Raspberry Pi Zero and
Raspberry Pi Zero Wireless. The first model was released in November 2015.
The last model that has a WiFi module was released in February 2017. Both
models run Broadcom BCM2835 MCU with 512MB RAM. You can see the
Raspberry Pi Zero Wireless board form in Figure 1-2.
3
Chapter 1 Introduction to Raspberry Pi
You also can see and compare several Raspberry Pi models based on
processor, RAM, and network module availability in Table 1-1.
4
Chapter 1 Introduction to Raspberry Pi
Technically, all the Raspberry Pi models that are shown in Table 1-1
are designed for personal makers and hobbyists. There are limited GPIO
pins on each Raspberry Pi model. If you need more GPIO pins on the
board, you can extend it using GPIO extender modules. The Raspberry Pi
Foundation also released the Raspberry Pi model for industry purposes. It
is called the Raspberry Pi Compute Module. Currently, the latest model is
Raspberry Pi Compute Module V3.
Raspberry Pi Compute Module V3 board hosts 120 GPIO pins, an
HDMI port, a USB port, two camera ports, and two display ports. You
can see the board form in Figure 1-3. For further information about the
Raspberry Pi Compute Module V3, visit the official website at http://
socialcompare.com/en/comparison/raspberrypi-models-comparison.
5
Chapter 1 Introduction to Raspberry Pi
If you have experience using Debian and Ubuntu Linux, you should be
familiar with Raspbian OS since this OS is built based on Debian Linux and
optimized on a Raspberry Pi board with ARMv6 CPU.
This book uses Raspbian OS for testing and evaluation. You can
download the Raspbian image file at https://www.raspberrypi.org/
downloads. Currently, Raspbian provides desktop and lite versions. You
can see the download image in Figure 1-4. The Raspbian desktop version is
running Raspbian OS with an installed desktop runtime. The Raspbian lite
version is designed for light usage. It means you will obtain the Terminal
runtime.
6
Chapter 1 Introduction to Raspberry Pi
1.4 S
etting Up Raspbian OS on Raspberry
Pi Boards
The Raspberry Pi models don’t have internal storage unless you’re using
the Raspberry Pi Compute Module. You should attach external storage,
such as an SD card or a microSD card. The new Raspberry Pi board model
uses microSD for external storage.
I recommended that you use a microSD card that’s 16GB. You can
install some libraries, frameworks, and tools for your personal and
business needs. In this section, I’m going to show you how to set up
Raspbian OS on a Raspberry Pi 3 board.
First, download the Raspbian OS image. You can download it at
https://www.raspberrypi.org/downloads. For demo purposes, I chose
the Raspbian Stretch with desktop, as shown in Figure 1-4. To flash the
Raspbian image into the microSD card, you can use Etcher. It’s free and
available for Windows, Mac, and Linux. You can see the Etcher application
in Figure 1-5. Download it from https://etcher.io, based on your
platform, and then install it.
7
Chapter 1 Introduction to Raspberry Pi
The Etcher application is easy to use. You can just select your Raspbian
image and target the drive of the microSD card on your computer. Some
computers don’t have microSD card readers, so you need an SDcard
reader. Then put your microSD card into the reader.
After completing the flashing Raspbian step, you can plug your
keyboard, mouse, and monitor into the Raspberry Pi board.
Details about Raspbian installation on the Raspberry Pi board can be
found in the official guideline manual at https://www.raspberrypi.org/
documentation/installation/installing-images/README.md.
8
Chapter 1 Introduction to Raspberry Pi
Wait several minutes to ensure Raspbian has started. You should get
your Raspbian IP address from your router. Now open the SSH
client application. For Windows, you can use the PuTTY application at
https://www.putty.org. For Linux and Mac, you can use the Terminal.
For instance, the Raspbian IP address is 192.168.1.21 and the username is
pi. Then type this command.
$ ssh [email protected]
9
Chapter 1 Introduction to Raspberry Pi
You should be able to access the Raspbian Terminal remotely. You can
see an example of remote SSH in Figure 1-7.
$ sudo raspi-config
10
Chapter 1 Introduction to Raspberry Pi
From the main menu (see Figure 1-8), you can select the Advanced
Options menu. Then, you should see the form that is shown in Figure 1-9.
Select the Expand Filesystem option. After that, you will obtain
confirmation. If you’re done, Raspbian will expand your disk.
11
Chapter 1 Introduction to Raspberry Pi
12
Chapter 1 Introduction to Raspberry Pi
After you select one of the WiFi SSIDs, you probably will be asked for
the SSID pin. Fill in the SSID pin and then your Raspbian will connect to
the network.
13
Chapter 1 Introduction to Raspberry Pi
14
Chapter 1 Introduction to Raspberry Pi
If you click on the Raspberry Pi logo on the top-left, you should see a
main menu, as shown in Figure 1-12. You can see a list of applications and
the managing systems.
For instance, open a browser from the Internet menu. You can surf the
Internet as you do in a normal browser. Raspbian installed Chromium as
its default browser application. You can see this browser in Figure 1-13.
15
Chapter 1 Introduction to Raspberry Pi
16
Other documents randomly have
different content
chivalrous, hospitable and sporty. Jack Diamond is a representative
Virginian. He is all right.”
“Yis, he seems to be since he got back inther this parrut av th’
country, but it’s a growler Oi thought he wur at firrust.”
“He did not seem like himself while we were in the West,”
confessed Frank. “I was surprised at the change in him, but I knew
it was not natural, and I bore with him.”
The others came up, Frank mounted his wheel, and they all
rode along together, chatting pleasantly. Frank was questioned, and
he told of his trip across the continent and back, arousing Kenneth
St. Ives’ interest.
“Well, you must have had sport!” Kenneth exclaimed. “I should
have enjoyed that. Say, father, we must get up something in the way
of sport while they are at Springbrook. Can’t we have a hunt?”
“It’s too early in the season, my son,” smiled Mr. St. Ives.
“I don’t know about that,” declared Kenneth. “We’re liable to
have a frost any morning now. It is chilly at times for this season.
Perhaps to-morrow morning——”
“The Meadowfair Club visits us to-morrow, you know.”
“I had forgotten that. So much the better! If Mr. Merriwell and
his friends will stay, we’ll find some sort of sport to amuse them.”
The top of the hill was reached, and then Springbrook Farm was
pointed out, lying on a hillside two miles distant. It was a beautiful
place. The great stables seemed modern, but the house was an
immense colonial mansion, surrounded by tall trees. The farming
land was a broad prospect of cleared land, upon which were great
meadows and small groves. Cattle and horses were to be seen, and
it had the appearance of a stock or dairy farm.
“There is the place, Mr. Merriwell!” cried Kenneth St. Ives; “and
a more beautiful spot is not to be found in all Pennsylvania.”
Frank did not wonder at Kenneth’s enthusiasm.
Not far from the old mansion was a small lake, with a boathouse
on the shore, and some boats lying near.
Frank felt sure that the rest of the party could not be far behind,
so Barney would not be compelled to wait long; but it was necessary
that some one should meet them, as Springbrook Farm lay off from
the main highway, being reached by means of a private drive, and
the bicyclists, unless notified, would not know Frank contemplated
stopping there.
Barney was willing to wait for them, and so the others rode
onward, Frank wheeling along and chatting with them all.
Stephen Fenton was seen riding up the last incline toward the
distant mansion, still forcing his horse.
When the place was reached a hostler was at work over Firefoot
in one of the stables, and the animal showed the abuse it had
received.
Mr. St. Ives dismounted and looked Firefoot over, observing:
“That’s fine shape for a horse to be in after a canter along the
road. The creature could not look worse if it had been following the
hounds across country. I think Stephen will have to take another
horse the next time he goes out.”
“Beggin’ yer pardon, sir,” said the hostler, with gruff respect;
“but he says as how he were not to blame. You knows, sir, as how
this beast is onruly, sir, an’ Mr. Fenton says it were skeered by some
saucy chaps on bisuckles that paid no attention to its snortin’ an’
rearin’. You know yerself, sir, as how most of the bisuckle riders are
sassy villains, sir.”
This was said regardless of the fact that Frank had trundled his
wheel into the stable, and the hostler could not help knowing a
cyclist was hearing every word he spoke.
Preston St. Ives did not deign to make any reply to the hostler’s
words, but said:
“See that Firefoot is well rubbed down and cared for, Wade. You
need not let Stephen have him again. Remember.”
“All right, sir—all right,” muttered the hostler, glancing at Frank
in a side-long manner. “You knows your business, sir, an’ I’m here to
take your orders, sir.”
The hostler had several assistants, and they were on hand to
care for the animals just brought in.
Kenneth showed Frank where to leave his wheel, and then
Merry followed the youth into the house.
CHAPTER XXI—TWO ENCOUNTERS
A jolly party it was. They laughed, and joked, and told stories. They
ate, and drank, and were happy. Browning fairly groaned with
satisfaction, and then tried to disguise the groan by a cough. Hans
gasped as he looked about at the good things with which the table
was loaded, and his eyes bulged.
“Shimminy Ghristmas!” he gurgled. “I feel like all dot stuff could
ead me up und not half dry. I ain’d seen nottings like dot for so long
dot you don’d rememper id.”
“Wal, gol darned ef this air ain’t a slappin’ good layout!”
observed Ephraim. “I was beginnin’ to wish I was to hum on the
farm where I could git some baked ’taturs, but baked ’taturs won’t
cut no ice with me arter I git threw with this fodder.”
“Hearty appetites are in vogue at Springbrook Farm,” laughed
Kenneth; “and I want you all to eat till you are perfectly satisfied.
Athletes should eat well at times.”
“Yaw,” nodded Hans, “I pelief me; but dot Vrankie Merrivell
peen keepin’ der barty in draining so much dot I don’d had nottings
to ead vot you like two veeks a time at. Dot kindt uf pusiness makes
you got fat like a ghost.”
“Speaking about ghosts,” said Kenneth, with a sly wink at
Merriwell, “there is a story that our summerhouse is haunted. As you
fellows are going to stop there to-night, I trust you will not be
troubled by spirits.”
Hans’ jaw dropped.
“Vot?” he squawked. “I don’d toldt you dere peen a ghost dot
house in?”
“Sure,” nodded Kenneth. “Those who have seen it describe it as
a tall, white figure, and those who have felt it say it has clammy, ice-
cold hands.”
“Woo!” cried Hans, shivering. “I don’d pelief I vant to slept dot
summerhouses in!”
“Oh, the ghost only appears occasionally, and it is not at all
likely it will visit the summerhouse to-night.”
“Vale, you don’d know apout dot. Uf dot ghost heard I vos here,
he peen sure to come. Uf you gif me a bistol und dot ghost came,
mape he peen aple to shot me.”
“You mean that you will be able to shoot the ghost.”
“Yaw, I meant dot I peen aple to peen shot der ghost py.”
“That wouldn’t hurt him any. Spooks don’t mind being shot.”
“I don’d toldt you dot? Oxcuse me! I vill slept py der open air. I
don’d care apout sleepin’ in dot summerhouses.”
“Oh, say!” exclaimed Ephraim; “gol darn it! can’t you see you’re
bein’ guyed. There ain’t no ghost there at all.”
“How you known dot, Efy?”
“Why, see um larf at ye! Can’t you tell by the way they act?”
But the Dutch boy was not satisfied, and it worried him greatly
to think he might be visited by a ghost that night. He insisted that
he would not sleep in the Summerhouse unless provided with a gun.
After supper however, Kenneth took Hans aside and explained
that a bullet from a gun or a charge of grapeshot and canister out of
a cannon would not have the least effect on a ghost, but that ghosts
could not stand water.
“In the room where you are to sleep to-night,” said Kenneth,
“there is a hose pipe with a stopcock nozzle. All you need to do is
take the nozzle end of the pipe to bed with you. If the spook
appears, point the nozzle at him, turn the stopcock, and let him have
it. He will be knocked out in the first round.”
“Vos dot der lefel on?” asked Hans, suspiciously.
“That is strictly on the level,” assured Kenneth,
“Vale, den I done dot. Let dot ghost come, und I vill gif him der
greadest path vot I efer got.”
In the meantime, Frank Merriwell had taken Ephraim aside, and
was saying:
“Gallup, you must scare the wits out of that Dutchman to-night.
You are the tallest one in the party, and so you must wrap yourself
in a sheet and play ghost on him. St. Ives is going to fix it so we can
all hide behind a curtain in one corner of the room and see the fan.
Will you do the trick?”
“Course I will,” nodded Ephraim. “I’ll skeer the Dutchman aout
of his senses, b’gosh! Won’t it be heaps of fun!”
“Sure it will,” nodded Frank. “You must strip yourself of all your
clothes, so you will look as gaunt as possible, then wrap the sheet
around you and stalk in on Hans. He’ll have a fit.”
“Haw! haw! haw!” laughed the Vermonter. “I know I’ll die of
larfin’ to see him! Haw! haw! haw!”
So it was arranged, and Frank hastened to tell the other boys.
“This is where Ephraim gets taken in,” smiled Merry. “Kenneth
St. Ives has arranged for him to turn the hose on the spook, if one
appears. If Hans is not too frightened to do anything, he’ll give
Ephraim the surprise of his life. With nothing but a sheet over him,
the water from the hose will go through to Gallup’s skin the first
squirt, and we’ll be where we can see the fun.”
With no small difficulty Hans was induced to sleep alone in a
room of the summerhouse. At one end of the room was an alcove
that served as a wardrobe. In front of this alcove was a curtain.
Kenneth arranged it so that the hose attached to the private
waterworks of Springbrook Farm was run in at the window of the
Dutch boy’s room, and a full head of pressure kept on. He showed
Hans how to turn the stopcock and let the water fly at the spook.
Just before the party was ready to retire Frank came upon
Gallup and Dunnerwust, who were talking together and laughing in
an odd manner.
“Here!” exclaimed Merry, “what are you fellows chuckling over?”
He was afraid the Dutch boy had told Ephraim about the
manner in which he expected to vanquish the ghost.
“Haw! haw! haw!” laughed Ephraim. “I was jest tellin’ him I’d
eat the gol darn ghost if he’d ketch it.”
“Yaw!” chuckled Hans; “und I toldt him I peen retty to pet zwi
tollars der ghost vould ketch it. He don’d know vot I mean py dot,
un don’d you toldt him nottings.”
Frank hastened to get the two boys apart, and remained with
Hans till the latter was ready to go to bed.
“You don’d pelief dere peen any ghost, did you, Vrankie?” asked
the Dutch lad, sleepily.
“Of course not,” assured Frank. “That’s a guy yarn St. Ives gave
you. There’s nothing in it.”
“Vale, I peen so sleeby I can’d kept meinseluf avake no longer.
Good-nighd, poys. I vas goin’ to ped.”
Then Hans waddled off to his room.
It was not far from midnight when the boys arose and prepared
for the fun. Kenneth St. Ives was on hand. He had provided some
ice for Ephraim.
“When we all get behind the curtain that hangs before the
alcove,” said Kenneth, “you come into the room, Gallup, stalk up to
the bed and run this piece of ice around over the Dutchman’s face.
If that don’t frighten him out of his wits, I’ve made a big mistake.”
“It’s a yell thot’ll wake ivrybody fer a moile he’ll be afther givin’
whin he fales th’ oice an’ sees Ephraim in the whoite shate,”
chuckled Barney.
In pajamas and nightclothes, the boys tiptoed up to the door of
Hans’ room, opened it softly, and listened.
Hans was snoring.
One by one, the young jokers slipped into the room and
concealed themselves behind the curtain. The moon was up, and a
broad strip of light came in by the window and made the room light
enough for them to watch what was to take place.
With a sharp knife, which went the rounds, each boy cut a slit in
the curtain so he could peer out.
When everything was ready for the appearance of the “ghost,”
they were startled to hear Hans muttering:
“I know how to feex you. Vater—goot coldt vater; Oh, uf I don’d
gif you a path, you vos a liar!”
“He is sleeping in his talk—I mean, talking in his sleep,”
whispered Rattleton. “He is thinking of the way he will fix the ghost.
Oh, my! what a joke!”
Then he clasped a hand over his mouth to keep from laughing
aloud to think what fun they would have.
“Ven you peen all retty you said so,” muttered Hans, apparently
continuing to talk in his sleep.
“Wal,” said the “ghost,” speaking aloud, to the astonishment of
the boys behind the curtain, “I ruther guess ev’rything’s all ready.
Let her rip!”
Then the curtain behind which the jokers crouched was
suddenly snatched away.
At the same instant, Hans sat up in bed, and turned the
stopcock of the hose.
Swish—spat!
A powerful stream of chilling water shot through the air directly
toward that alcove. If struck the astounded boys, drenching them in
a moment and knocking some of them over. The others piled upon
the fallen ones, and all shouted with astonishment and disgust.
Then Hans, grasping the hose, bounced to his feet, standing
upright in the middle of the bed, and poured the stream of cold
water down upon that struggling, squirming mass in the corner.
“Oh, say, vot a shoke dot vos!” cried the Dutch boy, swaying the
nozzle of the hose to evenly distribute the water over all the boys.
“Ain’d you hafin’ fun mit us! I don’d belief you nefer seen der peat uf
dese shoke before all your life in! You don’d vorget der fun vat you
had mit us to-nighd a long dime in.”
“Haw! haw! haw!” roared Ephraim. “Soak it to um, Hans! Ain’t
they havin’ a regular picnic with us! Ho! ho! ho! This is more fun
than hoein’ ’taters!”
“Stop it!” cried Rattleton, gasping for breath. “You blundering
Dutchman turn that hose——Woogh-uh-oogh-uh—oogh!”
The stream from the hose had struck Harry full and fair in the
mouth, and he was nearly drowned.
“Oi’ll murther thot Dutch chaze!” shouted Mulloy. “Oi won’t lave
a whole bone in his body! Oi’ll—— Wa-ow! Murther! Boo! Thot’s
cold! It’s dead Oi am intoirely!”
“Hello, Parney!” called Hans, mockingly; “how you don’d like dot
ghost pusiness, hey? Don’d id peen vunny!”
“Thunder and guns!” roared Browning. “This will give me
another Arkansaw chill! Somebody will get hurt when I find out who
put up this job on me!”
Hodge and Diamond made a desperate attempt to get away, but
Hans saw them, and gave them a straight shot that knocked them
down again in the midst of the struggling, squirming, kicking and
shouting lads.
“Great Cæsar!” cried Kenneth St. Ives, as he untangled himself
from the drenched and kicking mass. “The joke is on us!”
“It looks that way from the road,” admitted Frank, who was
laughing heartily as he crowded his body back into a corner to get
away from the water. “That confounded Yankee was too sharp to be
taken in, and he put up this job with Hans. Goodness! hear him
laugh!”
Ephraim was haw-hawing in a manner that told how delighted
he was, and the roly-poly Dutch boy was dancing up and down on
the bed, as he continued to drench the shivering, scrambling,
shouting lads in the alcove.
“Oh, don’d you think dese pen der most fun I efer had!” gurgled
Hans. “Dese peen der vay to got a shoke a ghost on. Yaw! Vot do I
think uf dese ghost pusiness now, hey?”
“Haw! haw! haw!” roared Ephraim, holding onto his sides, and
doubling up with laughter. “Gol darned ef this wouldn’t make a kaow
larf! Give it to um, Hans!”
“Oh, yaw, I peen goin’ to cool them down. After ’dese don’d you
pelief me ven dey toldt you I vos scared mit a ghost. Hello,
Raddleton! Oxcuse me uf you got der vay in. I didn’d seen you pime-
py. You oxbect I vos havin’ a goot time, hey?”
Harry had been untangling himself from the others, and now he
tried to get up, but the stream of water struck him behind the ear,
and keeled him over once more, plumping his head with great force
fairly into Browning’s stomach.
“Thunder and lightning!” roared the big fellow. “I’d rather be in
a football rush! I’ll give ten dollars to anybody who will pull me out
of this and get me out of the room. My eyes are full of water, and I
can’t see.”
“You don’d haf to took a shower path der morning in,
Prowning,” laughed Hans.
Then St. Ives and Merriwell got hold of each other, and made a
break for the door, doing it so suddenly that they escaped before the
Dutch boy could turn the hose on them. They remained outside,
laughing and calling to the others, who came stumbling blindly out,
one by one, dripping wet and hopping mad.
“The joke is on us, boys,” laughed Frank, “and we may as well
make the best of it. It’s no use to kick.”
CHAPTER XXIII—CHOICE OF
PONIES
Tang! tang!
It was the timekeeper’s gong, and the game of polo was begun
with a charge.
Each team had lined up within twenty feet of their respective
goals, and, as the ball was dropped in center field, the little ponies
tore forward like blooded racers.
It was a spectacle to send the blood leaping in an instant.
For all that the game had been hastily gotten up, the boundary
line was crowded with the élite of the countryside. It seemed as if
people had risen from the ground.
Merriwell’s friends were all together, and, with the possible
exception of Browning, they were keenly interested. Bruce was
stretched out in a lazy position on the ground, seemingly as
apathetic as usual.
Bart Hodge’s dark eyes were gleaming and his cheeks glowing.
“Oh, if I could have taken part in that!” he muttered. “I don’t
believe Diamond can play the game a bit better than I can.”
Bart was disappointed, and a feeling of jealousy toward
Diamond had been aroused in his heart. It began to seem that Frank
cared too much for Jack.
“It’s queer, too,” thought Hodge. “Diamond was growling all the
time while we were in the West, and he made the rest of the crowd
tired. Merry is the only one who has had any patience with him; but
that’s just like Frank. He’s mighty queer, and I don’t understand him
now, for all that I have known him so long.”
Kenneth St. Ives was captain of the Springbrook side, while Paul
Stone commanded the other side.
“Soy,” cried Mulloy, “will yez take a look at thot ould bob Frankie
is shtraddle av! Did yez ivver see th’ loikes av thot?”
“Gol darned ef that don’t look jest like dad’s old plaow hoss!”
laughed Ephraim Gallup. “Ther sight of that critter makes me wish I
was to hum on the farm. I’m humsick, b’gosh!”
Bruce Browning grunted and looked disgusted.
“Merry must be a fool to take such a pony!” he growled.
“They’re making a guy of him.”
“G’way dar, boy!” muttered Toots, shaking his head. “Don’t yeh
beliebe yehself! Dey don’ mek no guy ob dat boy ver’ much.”
“Say, Browning,” cried Rattleton, excitedly, “you ought to know
better than to think anybody can fake a mool—I mean make a fool
of Frank.”
“Yaw!” nodded Hans; “I oughter known petter dan dot, hand’t
you? Vot do I take you for, Prowning! Vere you peen all my life, ain’d
id? You don’d fool Vrankie Merrivell haluf so much as I think you can,
you pet my axidental bolicy.”
In the opening charge Frank did not get in quite as quick as the
others. Mounted on Liner, Steve Fenton shot down on the ball, and
with a skillful crack, sent it skimming toward the Springbrook goal,
causing a shout to go up from the spectators.
“He’ll make a goal for Meadowfair, in less than two——Great
Scott! how’d the boy do that?”
Frank, somewhat behind the others, had caught the ball as it
skimmed like a bullet over the ground, even though it seemed that
he must have swung his mallet almost at the same instant as
Fenton. The first crack was answered by a second, and the
basswood ball suddenly went skimming back toward the Meadowfair
side, with Diamond racing after it to send it through.
But Liner showed his mettle. It did not seem that Fenton paid
the least attention to the pony, but the creature twisted about in a
moment, and carried its rider along at Diamond’s side.
It was a brief but most exciting race, and the spectators
cheered and waved their handkerchiefs.
“Go it, Diamond, old boy!” cried Harry Rattleton.
“Go id, Shack, oldt poy!” shouted Hans, hopping about like a
toad. “You vill pet on my head!”
“Git doawn an’ crawl, gol darn ye!” whooped Ephraim. “Naow hit
her a knockaout blow, and—— Great gosh!”
In a most skillful manner Fenton’s pony had forced Diamond’s
mount over, and the dark-faced man swung across in time to get a
crack at the ball. The skill with which he struck it told that he was
the most dangerous player on the Meadowfair side.
“Look out there, Harden!” cried St. Ives.
Harry stopped the ball, but it caromed from his mallet and came
near going out of bounds. In a twinkling there was another hot rush
and a threatened crash. Immediately all the players were clumped
about the ball.
“Where are you, number one?” cried Paul Stone. “Strike, Kimball
—strike, man! What’s the matter with you?”
For some moments the ball “hung,” and the players “dribbled”;
but they were cool, and Lock made a neat and quick turn, passing
the ball to Fenton, who took it up and hit it to boundary.
Over the board went the ponies, and the sticks crooked as they
tried to give the ball a fillip outside. But Diamond, “half-back” for
Springbrook, saw his opportunity, made a rush and a hard
backhander on the near side, and out shot the little white sphere on
its way to glory.
Merriwell was on it, as if he had been waiting for that very play.
His stick, which he had selected with great care, seemed to swing
free for a moment from the strap about his wrist, then the malacca
did its work.
“Hooray!” cried Ephraim Gallup. “It’s a goal sure! Hooray!”
“Yaw!” screamed Hans, “id peen a dandy!”
“Outside! outside!”
“Who says outside?” snapped Rattleton. “The referee? I know
better! It’s a goal sure!”
“Outside, I tell you!” came the voice of the referee, and the
game stopped.
It was a disappointment for Frank’s friends, for they had felt
certain he would make a goal, but the fairness of the referee was
not to be questioned.
The captain of the Meadowfairs had the strike-off, and the
Springbrooks fell back from the line.
But Stone was cunning, and he gave the ball a clever sweep to
right field, and away from his goal. His “forward” knew the trick, and
Liner was keyed up for a race to boundary.
But Frank had seen that trick before, and he resolved to find out
what sort of stuff Coffin Head was made of, now that there was a
good opportunity. The pony had handled himself with such ease and
skill, for all of his awkward and homely appearance, that Merry was
more than delighted, and now came the supreme test.
Liner flew out after the ball, upon which Fenton’s eyes were
steadily fastened. But Coffin Head was in the race, and the old crock
didn’t do a thing but spread himself. The way he tore along over the
ground amazed everybody who saw it. It seemed that the old horse
had renewed his youth and was out for blood. He made the run of
his life to get his rider on that ball. Like a meteor he flew across the
green, and Liner was fairly beaten, causing Frank Merriwell’s friends
and admirers to rise up and shout with astonishment and delight.
The check was too sudden, however, and the old pony slid on
his haunches. Then up rushed a mass of men and ponies, making
for a moment a wild mêlée.
Kimball got a crack at the ball, but it glanced off the ribs of
Harden’s pony, causing the animal to wince and swerve.
That let in Merriwell, who had brought Coffin Head about, and
he made a skillful stroke. As he did so, he felt something whistle
past his head, and realized that he had narrowly escaped a blow
that must have spoiled the effectiveness of his work.
Frank did not take his eyes off the ball; but, nevertheless, he
saw it was Fenton who had attempted the foul stroke, being unable
to reach the ball himself.
Diamond went down on the sphere with a rush, and carried it
along toward the enemy’s posts. With a clean lead at the proper
moment, the Virginian, who had already showed himself a perfect
horseman and perfect polo player, sent the white ball sailing through
the timber, and Springbrook had made the first goal.
CHAPTER XXV—THE END OF THE
GAME
Diamond was heartily congratulated, and his dark face flushed with
pleasure over his success.
“But I didn’t do it alone,” he declared. “Merriwell deserves as
much or more credit, for he sent it out of the bunch, and gave me
my chance at it.”
“You fellows must have played together a great deal,” said
Harden. “You work together perfectly.”
Frank laughed.
“We never played together in a game before,” he said. “I didn’t
know Diamond played polo till a short time ago.”
“It’s remarkable!” smiled St. Ives, who was delighted over the
work of his team. “And old Coffin Head is right in the game.”
“You bet!” cried Merry. “He is an old dandy! I wouldn’t swap him
for Liner now!”
“But he has not done such work this season. He is in his old-
time trim, and I believe two-thirds of it comes from his rider.”
Diamond touched Frank’s arm, and drew him aside.
“Say, Frank,” he whispered, “do you know you came near
getting a crack over the head?”
“Sure,” nodded our hero.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com