Article Network

All | June | May | April

Improving the Snake Game

by Rodrigo Silveira | July 2013 | Games Web Development

In this article by Rodrigo Silveira, the author of the book Learn HTML5 by Creating Fun Games, we will see how to enhance a snake game created in HTML5. This article is the second and final part of the series where we're building a more robust snake game. The first version of the game used five HTML5 concepts, namely 2D canvas rendering, offline application cache, web workers, typed arrays, and requestAnimationFrame.

The first version of the game used five HTML5 concepts, namely 2D canvas rendering, offline application cache, web workers, typed arrays, and requestAnimationFrame. In this version, we'll include two features from the new web storage API, namely local storage and session storage. We'll also look at a third API that is part of web storage, IndexedDB, as well as the web messaging feature, which includes cross-domain messaging.

Local storage and session storage are two mechanisms that allow us to save data on the user's browser using a key-value strategy. This is similar to a cookie, where every value must be a string. The difference between these two storage options and a cookie, first and foremost, is that a cookie is always sent back to the server through HTTP requests. This can be especially undesirable when we have larger amounts of data that we would like to store, since that data would be traveling around consuming extra bandwidth, and there is nothing that we can do about it. With HTML5's web storage, we can save more data locally, and that data never leaves the user's machine, though HTTP components like cookies do.

IndexedDB, also part of web storage, is similar to local and session storage, where data is stored in a key-value manner, but instead of values being limited to strings only, IndexedDB is more of an object store, where we can store entire JavaScript objects. Of course, IndexedDB is much more than a mere hash map that holds objects for us. As the name implies, this new API allows us to index these stored objects with the purpose of being able to search for them through a query system. In summary, IndexedDB is a NoSQL database accessed through an asynchronous programming interface.

Finally, the web messaging API provides an interface through which an HTML document can communicate with other HTML contexts. These documents can be related by iframes, in separate windows, and even in different domains.

Read Improving the Snake Game in full

Installing Drupal

by Bill Fitzgerald James G. Robertson | July 2013 | e-Learning Drupal e-Commerce Open Source Web Development

This article by James G. Robertson and Bill Fitzgerald the authors of Drupal for Education and E-Learning describes how to install the base Drupal application called Drupal core . By the end of this article, you will have a new Drupal site installed and ready to use.

Read Installing Drupal in full

Performance Tuning – Systems Running BPEL Processes

by Jaswant Singh Ravi Saraswathi | July 2013 | Enterprise Articles SOA Oracle

This article is written by Ravi Saraswathi and Jaswant Singh, the authors of Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial. This article covers performance tuning of SOA composite applications for optimal performance and scalability. The industry leading practices for the Oracle SOA Suite platform components, WebLogic server platform, JVM, operating systems, and load balancers are also included.

Performance tuning is an important step for any IT system implementation to optimize the systems and software resources needed for serving business functions. In other words, performance tuning enables us to optimize the system cost and performance to stay competitive in the market place. The process of performance tuning is iterative and in this article we will look into various systems and software components tuning options to optimize BPEL processes response time, scalability and availability, and underlying systems utilization.

Read Performance Tuning – Systems Running BPEL Processes in full

Using Prezi - The Online Presentation Software Tool

by Dr. Minerva M. Ladores | July 2013 | Open Source

In this article by Dr. Minerva M. Ladores, author of Instant Prezi Starter[Instant], we will see how to use the Prezi software for preparing unique and creative presentations. Prezi is a presentation software tool for presenting ideas on virtual canvas. It employs a user interface which allows users to zoom in and out of their presentation media.

Read Using Prezi - The Online Presentation Software Tool in full

Introduction to Modern OpenGL

by Muhammad Mobeen Movania | July 2013 | Cookbooks Games Open Source

The OpenGL API has seen various changes since its creation in 1992. With every new version, new features were added and additional functionality was exposed on supporting hardware through extensions. Until OpenGL v2.0 (which was introduced in 2004), the functionality in the graphics pipeline was fixed, that is, there were fixed set of operations hardwired in the graphics hardware and it was impossible to modify the graphics pipeline. With OpenGL v2.0, the shader objects were introduced for the first time. That enabled programmers to modify the graphics pipeline through special programs called shaders, which were written in a special language called OpenGL shading language (GLSL).

After OpenGL v2.0, the next major version was v3.0. This version introduced two profiles for working with OpenGL; the core profile and the compatibility profile. The core profile basically contains all of the non-deprecated functionality whereas the compatibility profile retains deprecated functionality for backwards compatibility. As of 2012, the latest version of OpenGL available is OpenGL v4.3. Beyond OpenGL v3.0, the changes introduced in the application code are not as drastic as compared to those required for moving from OpenGL v2.0 to OpenGL v3.0 and above.

In this article, by Muhammad Mobeen Movania author of Kevin Cardwell, the author of OpenGL Development Cookbook we will introduce the three shader stages accessible in the OpenGL v3.3 core profile, that is, vertex, geometry, and fragment shaders. Note that OpenGL v4.0 introduced two additional shader stages that is tessellation control and tessellation evaluation shaders between the vertex and geometry shader.

In this article we will cover:

  • Setting up the OpenGL v3.3 core profile on Visual Studio 2010 using the GLEW and freeglut libraries
  • Designing a GLSL shader class
  • Rendering a simple colored triangle using shaders
  • Doing a ripple mesh deformer using the vertex shader
  • Dynamically subdividing a plane using the geometry shader
  • Dynamically subdividing a plane using the geometry shader with instanced rendering
  • Drawing a 2D image in a window using the fragment shader and SOIL image loading library
Read Introduction to Modern OpenGL in full

Introduction to HLSL language

by Doron Feinstein | June 2013 | Cookbooks

This article by Doron Feinstein, author of HLSL Development Cookbook, will help you to add some final touches to your rendered scene by changing the weather and adding some interactivity.

Read Introduction to HLSL language in full

Breaching Wireless Security

by Kevin Cardwell | June 2013 | Networking & Telephony Open Source

This article is by Kevin Cardwell, the author of BackTrack – Testing Wireless Network Security.This article introduces the reader to the way in which hackers typically break into networks.

In this article, we will discuss how hackers attack and breach wireless security. We do this to understand the various methods of attacking so that we can defend against them. There are a number of wireless attacks to discuss on wireless. An important point to understand is that attackers will follow a process and methodology when they attempt an attack, and the way to defend against this is to stop information from getting to the potential attacker. This can be a challenge when it comes to wireless. We group the attacks into several different categories. They are listed in the following table:

Probing and network discovery

Surveillance

Denial of Service

Masquerade

Rogue access point

Read Breaching Wireless Security in full

The important features of Tuxedo

by Biru Chattopadhayay | June 2013 | Enterprise Articles Oracle

In this article by Biru Chattopadhayay, author of Getting Started with Oracle Tuxedo,we will discuss various important built-in features (security, data-dependent routing, encryption, and so on) that come with the Tuxedo system and how these features can be used to make your application more secure, effective, and responsive to address your business needs. These features are configurable, and there is no need to do any custom development, hence they are very cost-effective and easy to use. We will also discuss responsibilities of Tuxedo administrator for administering the Tuxedo queue.

Read The important features of Tuxedo in full

Hubs

by Einar Ingebrigtsen | June 2013 | Open Source

This article by Einar Ingebrigtsen, author of SignalR Real Time Application Development, will cover how you connect a client with a server in a very different way, making it seem like you can call code directly on the client from the server and vice versa.

Topics covered in this article are as follows:

  • Setting up a Hub on the server

  • Working of the Hubs

  • Consuming a Hub from a .net client

  • Consuming a Hub from a JavaScript client

At this stage, the developer should be able to use Hubs, and our sample app will now be able to chat properly.

Read Hubs in full

Routing to an external ActiveMQ broker

by Francesco Marchioni | June 2013 | JBoss Java Open Source

In this article by Francesco Marchioni, author of JBoss AS 7 Development, will cover the following topics:

  • An overview of Java EE and JBoss AS 7

  • Preparing your environment for the installation

  • Downloading and installing JBoss AS 7

  • Verifying the JBoss AS installation

  • Installing other resources needed for development

Read Routing to an external ActiveMQ broker in full

Routing to an external ActiveMQ broker

by Henryk Konsek | June 2013 | Cookbooks Java Open Source

Usually, for practical purposes, we connect to the embedded Active MQ broker coming with ServiceMix out of the box. In real-world, however, you would probably need to connect to the standalone JMS broker. This article by Henryk Konsek, author of Instant Apache ServiceMix How-to,will teach how you can in the real world connect to the standalone JMS broker.

Read Routing to an external ActiveMQ broker in full

Creating your first collection (Simple)

by Alexandre Rafalovitch | June 2013 | Open Source

This article by Alexandre Rafalovitch, author of Instant Apache Solr for Indexing Data How-to [Instant], will help you create a basic Solr collection and populate it with a simple dataset in CSV format.

You will start this journey by creating your own first collection. However, even before that, please download the latest 4.x Solr distribution from https://lucene.apache.org/solr/. Also, go through the tutorial available at https://lucene.apache.org/solr/tutorial.html. This will both provide a taster for Solr's capabilities and will make sure that you understand the most basic ways of working with Solr.

Read Creating your first collection (Simple) in full

Creating your first heat map in R

by Sebastian Raschka | June 2013 | Open Source

In this article by Sebastian Raschka, author of Instant Heat Maps in R How-to [Instant], we will learn how to construct our first heat map in R from the AirPassenger data set, which is a standard data set included in the data package that is available with R distributions. For this task, we will use the levelplot() function from the lattice package and explore the enhanced features of the gplots package, the heatmap.2() function.

Read Creating your first heat map in R in full

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, 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

Understanding Maven

by Maurizio Pillitu Maurizio Turatti | June 2013 | Open Source

This article by Maurizio Turatti and Maurizio Pillitu, the authors of Instant Apache Maven Starter, introduces the most important terms of the Maven vocabulary.

In this article, we will cover the following:

  • A Maven project

  • Super POM

  • Artifact

  • Minimal pom.xml

  • Parent (also known as POM Inheritance)

  • Plugin

  • Repository

Read Understanding Maven 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