So far, we have only used Hive through its interactive console. In this article by Darren Lee, author of Instant Apache Hive Essentials How-to [Instant], we will learn how Hive supports uses cases, such as periodic ETL jobs, by rerunning the top athletes query in batch mode from the command line. This support allows us to use external tools to start Hive jobs and capture their output.Read Using Hive non-interactively (Simple) in full
A good software developer always keeps the DRY principle in mind. Whenever code is duplicated, maintainability problems are introduced and the code base becomes difficult to understand. Java developers often rely on the template method pattern to reuse code. Groovy's closure programming concept is an alternative way to solve similar problems. Closures provide a concise way to pass around code without the ceremony involved with design patterns. This article by Nirav Assar will demonstrate how closures are used to embrace the DRY principle.Read Using Groovy Closures Instead of Template Method in full
In this article by Dinangkur Kundu and S. M. Ibrahim Lavlu, we will see how to add network-attached devices in the Cacti system and produce graphs to monitor LAN-sized installations to complex networks with hundreds of devices. It is fairly easy to manage devices through the Cacti web front-end. It provides a fast poller, advance graph templating, and multiple data acquisition methods out of the box, wrapped in an easy to use interface that makes sense to the network administrator.Read Using Graphs to Manage Networks and Devices with Cacti 0.8 in full
In this article by Luca Milanesio, author of the book Learning Gerrit Code review, we will learn about Gerrit Code revew. GitHub is the world's largest platform for the free hosting of Git Projects, with over 4.5 million registered developers. We will now provide a step-by-step example of how to connect Gerrit to an external GitHub server so as to share the same set of repositories. Additionally, we will provide guidance on how to use the Gerrit Code Review workflow and GitHub concurrently.
By the end of this article we will have our Gerrit installation fully integrated and ready to be used for both open source public projects and private projects on GitHub.Read Using Gerrit with GitHub in full
This article series by Tom Gross, author of Plone 3 Multimedia, explains how to add audio content to Plone and enhance its features with Plone4Artists products. It also shows how to include audio data in HTML with plugins and Flash.
There are at least four use cases when we think of integrating audio in a web application:
- We want to provide an audio database with static files for download.
- We have audio that we want to have streamed to the Internet (for example, as a podcast).
- We want a audio file/live show streamed to the Internet as an Internet radio service.
- We want some sound to be played when the site is loaded or shown.
In this article we will discuss three of the four cases. The streaming support is limited to use case 2. We can stream to one client like a podcast does, but not to many clients at once like an Internet Radio does. We need special software such as Icecast or SHOUTcast for this purpose. Further, we will investigate how we solve use cases 1, 2, and 3 with the Plone CMS and extensions. Technically, these are the topics covered in this article:
- Manipulation of audio content stored as File content in Plone
- The different formats used for the binary storage of audio data
- Storing and accessing MP3 audio metadata with the ID3 tag format
- Managing metadata, formats, and playlists with p4a.ploneaudio in Plone
- Including a custom embedded audio player in Plone
- Using the Flowplayer product to include an audio player standalone in rich text and as a portlet
- Previewing the audio element of HTML5
- Extracting metadata from a FLAC file using mutagen
In this article, Alfredo Serafini, the author of Apache Solr Beginner's Guide, covers how to perform a faceted search.Read Using Faceted Search, from Searching to Finding in full
Natural Language Processing is used everywhere—in search engines, spell checkers, mobile phones, computer games, and even in your washing machine. Python's Natural Language Toolkit (NLTK) suite of libraries has rapidly emerged as one of the most efficient tools for Natural Language Processing.
In this article by Jacob Perkins, author of the book Python Text Processing with NLTK 2.0 Cookbook, we will cover:
- Distributed tagging with execnet
- Distributed chunking with execnet
- Parallel list processing with execnet
In this article written by Fabio Mazanatti Nunes and William Markito Oliveira authors of the book, Getting Started with Oracle WebLogic Server 12c: Developer's Guide, we are going to briefly introduce two concepts of Java EE development: interceptors and events. We will also see how to integrate these concepts with WebLogic services. It's a common misunderstanding that these technologies are complex and difficult to use, but after working with examples of this article, it will become clear that they are powerful yet easy to use. Along the way, we will cover WebLogic Server's logging services, which shows us how to configure the framework, how to write messages to it, and how to read them using the administration console.Read Using Events, Interceptors, and Logging Services in full
There are a number of things we are going to build in this article, so hang on tight.Read Using different jQuery event listeners for responsive interaction in full
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 full
In the previous article we looked at ways to structure and access data objects to make your application faster and more scalable.
This article by Amy Unruh, co-author of the book Google App Engine Java and GWT Application Development, describes the Datastore transactions, what they do, and when and how to use them.Read Using Datastore Transactions in Google App in full
In this article by Akhil Wali, author of Clojure for Machine Learning, we will discuss several methods that can be used to improve the effectiveness of a given machine learning model. We will also implement a working spam classifier as an example of how to build machine learning systems that incorporate evaluation.Read Using cross-validation in full
Building a successful intranet is not an easy job. When we are asked to build an intranet there is always an implicit requirement that doesn't show in any requirement list. This requirement is easy in concept, but hard to achieve: the intranet must be a success in terms of usability and use. The last thing we will want is that it ends up being one of those web services that people barely use. In this article, by Víctor Fernández de Alba, author of Plone 3 Intranets, we will cover the key factors for the success of an intranet and the effective use of the content types.
We will cover the following topics:
- Navigation and taxonomy
- Table of contents
- Next/previous folder
- Presentation mode
- Best practices for third-party content types
We can make building an intranet an easy task if we want to do so. As we already know, a content type is not only an information container; it also defines the way the information is shown to the consumer via the content view. We will learn to use the right content type and its right view for the right job. Another crucial factor is to extend wisely our default content type set via third-party add-on products. We will learn how to choose and use them correctly.Read Using Content Type Effectively with Plone Intranet in full
Joomla! is a fantastic way to create a dynamic CMS. Now, you want to go to the next step and interact with your users. Forms are the way you ask questions and get replies. ChronoForms is the extension that lets you do that and this article tells you how.
In the previous article we covered:
- Adding a validated checkbox
- Adding an "other" box to a drop-down
- Sending an SMS message on submission
- Signing up to a newsletter service
- Adding a conversion-tracking script
In this article by Bob Janes, author of the book ChronoForms 3.1 for Joomla! site Cookbook , we will cover the following features:
- Showing a YouTube video
- Adding a bar-code to a for m e-mail
- Adding a character counter to a textarea
- Creating a "double drop-down"
In this article by Matt Smith and Chico Queiroz, the authors of Unity 4.x Cookbook, we will cover:
- Creating a picture-in-picture effect
- Switching between multiple cameras
- Customizing the lens flare effect
- Making textures from screen content
- Zooming a telescopic camera
- Making an inspect camera
- Creating particle effects using Shuriken
- Displaying a mini-map
As developers, we should never forget to pay attention to the cameras. After all, they are the windows from which our players see our game. In this article, we will take a look at ways of making them more interesting within the player experience.Read Using Cameras in full
In the previous part of the article we looked at how we can use the Oracle Business Rules engine to implement business rules, and how we can invoke these from within BPEL as a decision service.
In this part by Matt Wright, we will have a look at how to create a Decision Service.Read Using Business Rules to Define Decision Points in Oracle SOA Suite: Part 2 in full
In this two part article by Matt Wright, we will look at how we can use the Business Rules engine to externalize rules from a BPEL process into a separate decision service. Once we've done this, we will know how to invoke the rule from a BPEL process. At run time there may be many potential paths through a BPEL process, controlled by conditional statements such as switch or while activities. Typically the business rules that govern which path to take at any given point are written as XPath expressions embedded within the appropriate activity.
Although this is an acceptable approach, we often find that while the process itself may be relatively static, the business rules embedded within the activities may change on a more frequent basis. This will require us to update the BPEL process and redeploy it even though the process flow itself hasn't changed. In addition, by embedding the rule directly within the decision point, we often end up having to re-implement the same rule every time it is used, either within the same process or across multiple processes. Apart from being inefficient, this can lead to inconsistent implementations of the rules as well as requiring us to update the rule in multiple places every time it changes.Read Using Business Rules to Define Decision Points in Oracle SOA Suite: Part 1 in full
In this article by Antony Reynolds and Matt Wright, authors of Oracle SOA Suite 11g R1 Developer's Guide, we will discuss the new Rules Editor in 11gR1, including Decision Tables and how we can incorporate rules as decision points within a BPEL Process.Read Using Business Rules to Define Decision Points in Oracle SOA Suite 11g R1- An Introduction in full
This article by Bart Kummel, author of Apache MyFaces 1.2 Web Application Development, shows how we can use Bean Validation (JSR 303) annotations to declaratively define validation rules in our Java EE application. In this article, Apache MyFaces Extensions Validator (ExtVal) is used to generate the JSF validators, based on Bean Validation annotations. While JSF 2.0 has native support for Bean Validation, ExtVal can also be used with JSF 1.2. And ExtVal offers some possibilities that cannot be achieved with the default JSF 2.0 Bean Validation support.
This article is the third in a series of ExtVal articles. Other articles in this series:
- Apache MyFaces Extensions Validator is the first article in the series and introduces ExtVal.
- Customizing and extending Apache MyFaces ExtVal shows the flexibility of ExtVal and how we can customize and extend it.