In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The appname variable is the name of your Heroku application.."
A block of code is set as follows:
var Kafka = require('no-kafka');
var brokerURLs = process.env.KAFKA_URL.replace(/\+ssl/g,'');
var producer = new Kafka.Producer({
connectionString: brokerURLs,
ssl: {
certFile: './client.crt',
keyFile: './client.key'
}
});
producer.init();
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
heroku addons:attach $POSTGRES_ADDON_ID
# Generate a random key.
export ACCESS_KEY="$RANDOM-$RANDOM-$RANDOM-$RANDOM"
Any command-line input or output is written as follows:
$ tar zxvf apache-predictionio-0.10.0-incubating.tar.gz
$ cd apache-predictionio-0.10.0-incubating
$ ./make-distribution.sh
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Once the installation is complete, the next steps are to create a permission set for users requiring access. Assign the user, the permission for Automatic Activity Capture."