Packt Open Source

Packt Open Source books
Packt Open Source books will continue to be built around the “community experience distilled” motto, focussing on taking real advice from the community around projects, and refining and distilling it into easy to follow specialist information.
Through this, the Open Source Royalty Scheme will continue to support open source projects, offering a royalty for the sale of each book to the project on which that book was written.
Believe in Open Source
Open Source Awards
The Open Source Awards is an annual online event held by Packt Publishing to distinguish excellence among Open Source projects. We aim to play our part in the growth of Open Source software and see the annual Award as the ultimate platform for not only appreciating the great things projects have given back to the community but also supporting projects who have future potential to change things for the better.
Open Source Project Royalty Scheme
Packt believes in open source and helping to sustain and support its unique projects and communities. Therefore, when we sell a book written on an open source project, we pay a royalty directly to that project. As a result of purchasing one of our Open Source books, Packt will have given some of the money received to the Open Source project.
In the long term, we see ourselves and yourselves, as customers and readers of our books, as part of the Open Source ecosystem, providing sustainable revenue for the projects we publish on. Our aim at Packt is to establish publishing royalties as an essential part of the service and support business model that sustains open source.
To read up on the projects that are supported by the Packt Open Source Project Royalty Scheme, click the appropriate categories below:
Content Management System (CMS)
Latest Articles
Play! Framework 2 – Dealing with Content
A web application always has, at some point, the need to deal with multiple types of content. Common content types include JSON, XML, HTML, but there could also be images or even videos to be stored and streamed. Play! 2 provides a clean way of dealing with such content types with the help of body parsers.
We won't cover the implementation details of such body parsers, because it's purely based on a functional concept, Iteratee, and thus their implementations are in Scala only. However, we'll see how they are used and how we can gain benefits from them.
In this article by Andy Petrella author of Learning Play! Framework 2, we'll update and clean up a bit of what we have been doing so far in order to enable several workflows. So we will only be using examples we have learned up to now. The following is what will be achieved:
-
Make the Chat and Item classes persistent using Ebean
-
Create a link between an item and a user (a user's reply in a chat)
-
Introduce a new type, Image, that will be part of a chat as an attachment
-
Enable a user to connect
-
Browse all chat instances
-
Allow the connected user to reply in a chat
-
Allow the connected user to attach an image to a chat
-
Show examples of UIs
-
Create an action that outputs a requested image
-
Create an action that provides an Atom feed of all chats which have specific users getting involved (kind of like following)
Analyzing network forensic data (Become an expert)
Having some skill with Tshark and analyzing our network on a regular basis can help us greatly in identifying multiple security issues. Besides the network attacks previously seen, we can intelligently use Tshark to investigate security incidents whose origin is unknown. In this article by Borja Merino, author of Traffic Analysis with Tshark How-to, we will discuss a couple of examples, data exfiltration by a malicious user and an internal network intrusion.
Read Analyzing network forensic data (Become an expert) in fullBuilding a bar graph cityscape
This article by Ken Lim, author of Instant Rainmeter Desktop Customization Tool How-to, explains the method of customizing your Windows desktop wallpaper with a live cityscape for different CPU processes. The article, will guide you through the ways to customize your Windows desktop wallpaper using Rainmeter.
Read Building a bar graph cityscape in fullQuick Start into Selenium Tests
In this article by Unmesh Gundecha, author of Instant Selenium Testing Tools Starter, we will show you how to record a test using Selenium IDE. During the recording, we will add some additional commands to the test and run the recorded test.
A test is a basic building block in Selenium IDE. It contains commands for navigation, test steps, and checks for expected versus the actual state of the application. In this article we will show you how to create your first test and execute this test with Selenium IDE.
Read Quick Start into Selenium Tests in fullMove Further with NumPy Modules
NumPy has a number of modules that have been inherited from its predecessor, Numeric. Some of these packages have a SciPy counterpart, which may have fuller functionality. The numpy.dual package contains functions that are defined both in NumPy and SciPy. The packages discussed in this article are also part of the numpy.dual package.
In this article by Ivan Idris from the book NumPy Beginner’s Guide - Second Edition, we shall cover the following topics:
- The linalg package
- The fft package
- Random numbers
- Continuous and discrete distributions
Tracking Faces with Haar Cascades
This article by Joseph Howse, author of OpenCV Computer Vision with Python introduces some of OpenCV's tracking functionality, along with the data files that define particular types of trackable objects. Specifically, we look at Haar cascade classifiers, which analyze contrast between adjacent image regions to determine whether or not a given image or subimage matches a known type. We consider how to combine multiple Haar cascade classifiers in a hierarchy, such that one classifier identifies a parent region (for our purposes, a face) and other classifiers identify child regions (eyes, nose, and mouth).
We also take a detour into the humble but important subject of rectangles. By drawing, copying, and resizing rectangular image regions, we can perform simple manipulations on image regions that we are tracking.
By the end of this article, we will integrate face tracking and rectangle manipulations into Cameo. Finally, we'll have some face-to-face interaction!
All the finished code for this article can be downloaded from my website: http://nummist.com/opencv/3923_04.zip.
Read Tracking Faces with Haar Cascades in fullWhat is OpenLayers?
In this article by Alessio Di Lorenzo and Giovanni Allegri, the authors of the book Instant OpenLayers Starter, we will discuss some basic points about OpenLayers
OpenLayers is an open source map viewing library, originally developed and released by MetaCarta under a BSD license. It is written in pure JavaScript and makes it easy to incorporate interactive maps from a variety of sources into your web pages and applications.
Read What is OpenLayers? in fullTips and Tricks
In this article by Rachel McCollin,authors of WordPress Theme Development - Beginner's Guide we'll look at some added extras, some additional bells and whistles you can use to make your theme just that bit better.
You'll learn how to create and make use of additional template files to add extra flexibility and functionality to your theme, as well as how to use conditional tags to display different content in different parts of your site. You'll also learn how to make use of the Theme Customizer and optimize your site for SEO.
You can create perfectly good, workable WordPress themes without any of these extras, but you'll find that you can take your WordPress themes much further with these techniques.
So let's get going!
Read Tips and Tricks in fullUsing Debug Perspective – setting breakpoints
The article, Using Debug Perspective, will guide you through the ways of setting up breakpoints and navigate through the code using various breakpoint manipulation options. This article by Anatoly Spektor, author of Instant Eclipse Application Testing How-to, will guide you to learn what breakpoints are and how to use them. After reading this article, you will be able to effectively debug Java applications of any scope. Fortunately, any prior knowledge of Eclipse is not required; thus it is suitable for developers with any level of experience in Eclipse application development and testing.
Read Using Debug Perspective – setting breakpoints in fullBig Data Analysis
This article created by Jonathan R. Owens, Jon Lentz, and Brian Femiano, authors of Hadoop Real-World Solutions Cookbook, contains recipes designed to show how you can put Hadoop to use to answer different questions about your data. Several of the Hive examples will demonstrate how to properly implement and use a custom function (UDF) for reuse in different analytics. There are two Pig recipes that show different analytics with the Audioscrobbler dataset and one MapReduce Java API recipe that shows Combiners.
In this article, we will cover:
-
Counting distinct IPs in weblog data using MapReduce and Combiners
-
Using Hive date UDFs to transform and sort event dates from geographic event data
-
Using Hive to build a per-month report of fatalities over geographic event data
-
Implementing a custom UDF in Hive to help validate source reliability over geographic event data
-
Marking the longest period of non-violence using Hive MAP/REDUCE operators and Python
-
Calculating the cosine similarity of Artists in the Audioscrobbler dataset using Pig
-
Trim outliers from the Audioscrobbler dataset using Pig and datafu
Learning to apply Apache Hive, Pig, and MapReduce to solve the specific problems you are faced with can be difficult. The recipes in this article present a few big data problems and provide solutions that show how to tackle them. You will notice that the questions we ask of the data are not incredibly complicated, but you will require a different approach when dealing with a large volume of data. Even though the sample datasets in the recipes are small, you will find that the code is still very applicable to bigger problem spaces distributed over large Hadoop clusters.
The analytic questions in this article are designed to highlight many of the more powerful features of the various tools. You will find many of these features and operators useful as you begin solving your own problems.
Read Big Data Analysis in full

