Article Network

Using Hive non-interactively (Simple)

by Darren Lee | June 2013 | Open Source

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

Using Groovy Closures Instead of Template Method

by Nirav Assar | December 2010 | Java Open Source

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

Using Graphs to Manage Networks and Devices with Cacti 0.8

by Dinangkur Kundu S. M. Ibrahim Lavlu | July 2009 | Linux Servers Networking & Telephony

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

Using GLEW

by Ashwin Nanjappa | August 2013 | Open Source

The article Using GLEW by Ashwin Nanjappa, the author of Instant GLEW [Instant], shows how to use GLEW with your OpenGL code.

Read Using GLEW in full

Using Gerrit with GitHub

by Luca Milanesio | September 2013 | Open Source Web Development

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

Using Flowplayer in Plone 3

by Tom Gross | May 2010 | Open Source Web Development

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:

  1. We want to provide an audio database with static files for download.
  2. We have audio that we want to have streamed to the Internet (for example, as a podcast).
  3. We want a audio file/live show streamed to the Internet as an Internet radio service.
  4. 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
Read Using Flowplayer in Plone 3 in full

Using Faceted Search, from Searching to Finding

by Alfredo Serafini | December 2013 | Beginner's Guides Open Source

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

Using Execnet for Parallel and Distributed Processing with NLTK

by Jacob Perkins | November 2010 | Open Source

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
Read Using Execnet for Parallel and Distributed Processing with NLTK in full

Using Events, Interceptors, and Logging Services

by Fabio Mazanatti Nunes William Markito Oliveira | October 2013 | Enterprise Articles Oracle

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

Using different jQuery event listeners for responsive interaction

by Benjamin LaGrone | September 2013 | Cookbooks Open Source Web Development

In this article by Benjamin LaGrone, author of HTML5 and CSS3 Responsive Web Design Cookbook, will show you how to create an interactive widget that uses unobtrusive JavaScript, which uses different event listeners for desktop versus mobile devices. This article will be useful for building your own web app that can transition between the desktop and mobile versions without needing you to rewrite your entire JavaScript code. In addition, the JavaScript is unobtrusive and the page uses different CSS files through media queries for different devices.

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

Using Debug Perspective – setting breakpoints

by Anatoly Spektor | May 2013 | Java Open Source

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

Using Datastore Transactions in Google App

by Amy Unruh | November 2010 | AJAX Java

Google App Engine (GAE) is a platform and SDK for developing and hosting web applications, using Google's servers and infrastructure. Google Web Toolkit (GWT) is a development toolkit for building complex AJAX-based web applications using Java, which is then compiled to optimized JavaScript. Used together, GAE/Java and GWT provide an end-to-end Java solution for AJAX web applications, which can solve many of the problems that arise in developing, maintaining, and scaling web applications.

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

Using cross-validation

by Akhil Wali | April 2014 | Open Source

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

Using Content Type Effectively with Plone Intranet

by Víctor Fernández de Alba | August 2010 | Content Management Open Source Web Development

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
  • Collections
  • 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

Using ChronoForms to add More Features to your Joomla! Form

by Bob Janes | August 2010 | Joomla! Content Management Open Source Web Development

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"
Read Using ChronoForms to add More Features to your Joomla! Form in full

Using Cameras

by Chico Queiroz Matt Smith Zeeshan Chawdhary | August 2013 | Cookbooks Games

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

Using Business Rules to Define Decision Points in Oracle SOA Suite: Part 2

by Matt Wright | March 2009 | Architecture & Analysis BPEL SOA Web Services Java Oracle Web Development

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

Using Business Rules to Define Decision Points in Oracle SOA Suite: Part 1

by Matt Wright | March 2009 | Architecture & Analysis BPEL SOA Web Services Java Web Development

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

Using Business Rules to Define Decision Points in Oracle SOA Suite 11g R1- An Introduction

by Antony Reynolds Matt Wright | June 2010 | Enterprise Articles Oracle

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

Using Bean Validation (JSR 303) annotations with Apache MyFaces 1.2

by Bart Kummel | March 2010 | Java Open Source Web Development

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:

Read Using Bean Validation (JSR 303) annotations with Apache MyFaces 1.2 in full
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software