Conventions
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: "Note that in the case of Windows, msvcrt
is the MS standard C library containing most of the standard C functions and uses the cdecl
calling convention (on Linux systems, the similar library would be libc.so.6
)."
A block of code is set as follows:
def multi_hash(filename): """Calculates the md5 and sha256 hashes of the specified file and returns a list containing the hash sums as hex strings."""
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"><System><Provider Name="Microsoft-Windows-Security-Auditing" Guid="54849625-5478-4994-a5ba-3e3b0328c30d"></Provider>
<EventID Qualifiers="">4724</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>13824</Task>
Any command-line input or output is written as follows:
user@lab:~$ virtualenv labenv New python executable in labenv/bin/python Installing setuptools, pip...done.
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: "When asked to Select System Logs, ensure that all log types are selected."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.