Article Network

Eloquent relationships

by Shawn McCool | January 2013 | Open Source

In this article by Shawn McCool, the author of Laravel Starter , we will discuss Eloquent relationships. Eloquent is Laravel's native ActiveRecord implementation. It is built upon Laravel's Fluent Query Builder. Due to the way in which Eloquent operates with Fluent, complex queries and relationships are easy to describe and understand.

Read Eloquent relationships in full

Elgg Social Networking - Installation

by Mayank Sharma | March 2009 | MySQL Open Source PHP

In addition to its impressive feature list, Elgg is an admin's dolly. In this tutorial by Mayank Sharma, we will see how Elgg can be installed in popular Linux web application rollout stack of Linux, Apache, MySQL, and PHP, fondly referred to as LAMP. As MySQL and PHP can run under Windows operating system as well, you can set up Elgg to serve your purpose for such an environment.

Read Elgg Social Networking - Installation in full

EJB 3.1: Working with Interceptors

by Richard M. Reese | July 2011 | Cookbooks Enterprise Articles Java

The use of interceptors provides a way of adding functionality to a business method without modifying the business method itself. The added functionality is not intermeshed with the business logic resulting in a cleaner and easier to maintain application. In the previous article we saw how the interceptors provide a means of moving code that is not central to a business method outside of the method. Here, we learn how to use interceptors to handle a number of different concerns including security and transactions.

In this article by Richard Reese, author of EJB 3.1 Cookbook, we will cover:

  • Using interceptors to enforce security
  • Using interceptors to handle transactions
  • Using interceptors to handle application statistics
  • Using lifecycle methods in interceptors
Read EJB 3.1: Working with Interceptors in full

EJB 3.1: Introduction to Interceptors

by Richard M. Reese | July 2011 | Cookbooks Enterprise Articles Java

Interceptors provide a way to achieve cross-cutting activities like logging, managing transactions, security, and other aspects of an application. This article by Richard Reese, author of EJB 3.1 Cookbook, explains how the interceptors provide a means of moving code that is not central to a business method outside of the method. Later we will learn how to use interceptors to handle a number of different concerns including security and transactions in the next article.

In this article, we will cover:

  • Creating the Registration Application
  • Defining and using interceptors
  • Using the InvocationContext to verify parameters
Read EJB 3.1: Introduction to Interceptors in full

EJB 3.1: Controlling Security Programmatically Using JAAS

by Richard M. Reese | June 2011 | Cookbooks Enterprise Articles Java

This article by Richard Reese, author of EJB 3.1 Cookbook, covers programmatic EJB security based upon the Java Authentication and Authorization Service (JAAS) API. It should be used when declarative annotation is not adequate to affect the level of security desired. This can occur when access is time-based. For example, a user may only be allowed to access certain services during normal business hours such as when the stock market is open.

Read EJB 3.1: Controlling Security Programmatically Using JAAS in full

EJB 3 Security

by Michael Sikora | September 2008 | Architecture & Analysis Java Open Source

Security is a wide ranging topic which operates on many levels and covers many technologies. The technologies involved include networks, operating systems, database systems, and application servers as well as manual procedures.

Application level security in the context of Java EE applications is provided by web and EJB containers. This article by Michael Sikora will be mostly concerned with EJB container security. However, as EJBs are often invoked from the web-tier we will take a brief look at web container security later in this article.

We will cover the following topics:

  • Java EE container security
Read EJB 3 Security in full

EJB 3 Entities

by Michael Sikora | January 2009 | Java Open Source

Entities are classes that need to be persisted; their state is stored outside the application, typically in a relational database. Unlike session beans, entities do not have business logic other than validation. As well as storing such entities, we want to query, update, and delete them. In this article by Michael Sikora, we will cover the following topics:

  • EJB 3 entities
  • Java persistence API
  • Mapping an entity to a database table
  • Metadata defaults
  • Introduction to the entity manager
  • Packaging and deploying entities
  • Generating primary keys
  • Overriding metadata defaults
Read EJB 3 Entities in full

Editing DataGrids with Popup Windows in Flex

by Keith Lee | December 2009 | Web Development

The DataGrid is a commonly used component when creating applications in Flex. The component can represent columnar data with ease when connected to a dataProvider. There is a method of editing the data in the DataGrid without using an itemEditor. Of course, there is nothing wrong with using an itemEditor, but this alternative method of using a PopUp window deserves some consideration when implementing applications. This article by Keith Lee describes how to create a DataGrid, display a popup for each row of the DataGrid and add, edit or remove data from the DataGrid using the PopUp.

Read Editing DataGrids with Popup Windows in Flex in full

Editing attributes

by Anita Graser | September 2013 | Open Source

In this article by Anita Graser, author of the book Learning QGIS 2.0, we will explain how to edit the attributes in QGIS. Quantum GIS (often abbreviated QGIS) is a cross-platform free and open source desktop geographic information system (GIS) application that provides data viewing, editing, and analysis capabilities.

Read Editing attributes in full

Echo Server/Clients

by John Torjo | May 2013 | Open Source

In this article by John Torjo, author of Boost.Asio C++ Network Programming, we'll implement a small client/server application, which is probably the easiest client/server application you will ever write. This is the Echo application, a server that echoes back anything a client writes, and then closes the client's connection. The server can handle any number of clients. As each client connects, it sends a message. The server receives the full message and sends it back. After that, it closes the connection.

Therefore, each Echo client connects to the server, sends a message, and reads what the server replies, making sure it's the same message it sent and finishes talking to the server.

Read Echo Server/Clients in full

eBook Offer of the Day

by | June 2011 |

eBook Offer Of The Day: 

Buy any Magento eBook and get 40% off. Hurry! This is a limited period offer.

Read eBook Offer of the Day in full

Easy guide to understand WCF in Visual Studio 2008 SP1 and Visual Studio 2010 Express

by Jayaram Krishnaswamy | August 2010 | Enterprise Articles Microsoft

WCF short for Windows Communication Foundation, the latest Microsoft programming architecture has superseded earlier technologies like COM, DCOM, etc. WCF is the Microsoft programming model for building distributed applications for .NET. Visual Studio suite of products provides an easy to use interface for developing WCF applications. Using these IDEs a number of different types of WCF applications can be built.

The emphasis of this article by Dr. Jayaram Krishnaswamy is to show to the user how to leverage the IDE for understanding the ins and outs of a WCF application and learn about the available development tools. Visual Studio 2008 SP1 makes it very easy to create WCF projects. The Visual Studio 2010 Express which is a free program can also be used similar to the way described for Visual Studio 2008 SP1 in this article. In understanding basic WCF you need to go no further than the Visual Studio IDE.

This article describes the default template available in VS 2008 (also works the same in VS2010 Express) to create a WCF application and to understand the out of the box WCF development tools namely the WCF Service Host and WCF Test Client. Along with modifying the service and service contract, publishing the service to the Internet Information Services is also described where in the local host is an IIS7 web server.

Read Easy guide to understand WCF in Visual Studio 2008 SP1 and Visual Studio 2010 Express in full

Easily Writing SQL Queries with Spring Python

by Greg L. Turnquist | May 2010 | Open Source

Spring Python takes the concepts of the Spring Framework and Spring Security, and brings them to the world of Python. It isn't a simple line-by-line port of the code. Instead, it takes some powerful ideas that were discovered in the realm of Java, and pragmatically applies them in the world of Python.

Spring (Java) provides many simple, easy-to-use functional parts to assemble applications instead of a monolithic framework to extend. Spring Python uses this same approach. This means we can use as little or as much Spring Python as we need to get the job done for each Python application.

In this article by Greg Lee Turnquist, Author of Spring Python 1.1, we will show you how to rapidly write pure SQL queries without dealing with mind-numbing boilerplate code. It also shows how Spring Python works nicely with ORM-based persistence.

Read Easily Writing SQL Queries with Spring Python in full

Easily modifying a page with Joomla! 1.5

by Chuck Lanham James Kennard | June 2010 | Joomla! Open Source

In addition to rendering the output of our extensions, we will often find it beneficial or even necessary to alter the normal flow by redirecting the browser to another page, or by customizing the generated document or page. Using a number of classes and libraries that Joomla! provides we can significantly enhance the user experience.

In this article by,Chuck Lanham and James Kennard, author of Mastering Joomla! 1.5 Extension and Framework Development,we will cover:

  • The application message queue and redirecting the browser
  • Session-level input validation
  • Modifying document properties specifically for our extensions
Read Easily modifying a page with Joomla! 1.5 in full

Ease the Chaos with Automated Patching

by Porus Homi Havewala (Oracle Certified Master) | April 2013 | Enterprise Articles Oracle

This article by Porus Homi Havewala (OCM), author of Oracle Enterprise Manager Cloud Control 12c: Managing Data Center Chaos , demonstrates how Cloud Control 12c allows automated patching of Oracle databases in the data center, thus making it possible to easily apply critical patch updates or patch set updates on a quarterly basis. The Patching Designer selects from a list of recommended patches, creates a patch plan template, and publishes it to the Patching Operator, who then creates a patch plan to apply the patch to target databases. After the initial selection, the download, validation and deployment of the patch (single or multiple) is fully automated, thus enabling mass deployment of patches to multiple database homes at prescheduled times. The new feature of out-of-place patching is explained in this article, as is the patch plan templates.

Read Ease the Chaos with Automated Patching in full

Earning Your First Gold

by Eric Dekker | August 2013 | Games Open Source

The most effective gold makers think about gold-making in every aspect of their gameplay and that is how they get the most out of their gold-making endeavors.

This article by Eric Dekker, author of World of Warcraft Gold Strategy Guide, will get you used to the idea of gold-making and how to work it into your daily game life. You will learn about:

  • Why you need starting capital
  • Selling out-of-the-way items to players who are too lazy to get the items themselves
  • Saving gold by reducing unnecessary expenses
  • Earning gold for every activity you carry out in the game
Read Earning Your First Gold in full

Dynamically enable a control (Become an expert)

by Don Rudder | May 2013 | Web Graphics & Video

There may come a time when you need to prevent the user from being able to click one of your command buttons. The Revit API supports enabling and disabling commands by implementing the IExternalCommandAvailability interface and applying it to a button class. Your reasons for disabling a command can be just about anything you want. Some examples might include scenarios such as the state of the current model not meeting your application's requirements, the model name may not meet a specific requirement that you specify, or maybe the wrong flavor of Revit was used to open the model.

In this article by Don Rudder, author of Instant Autodesk Revit 2013 Customization with .NET How-to [Instant], we are going to cover recipes for enabling and disabling control for commands.

Read Dynamically enable a control (Become an expert) in full

Dynamic Theming in Drupal 6 - Part 2

by Ric Shreves | December 2008 | MySQL Content Management Drupal Open Source PHP

In Part 1 we had a look at running multiple templates, and at creating dynamic elements and styles. In this article by Ric Shreves, we will discuss about Creating Dynamic CSS Styling and Working with Template Variables.

Read Dynamic Theming in Drupal 6 - Part 2 in full

Dynamic Theming in Drupal 6 - Part 1

by Ric Shreves | December 2008 | MySQL Content Management Drupal Open Source PHP

The Drupal system, when combined with the PHPTemplate engine, gives you the ability to create logic that will automatically display templates or specific elements in response to the existence of certain conditions. In this two part article by Ric Shreves, we will look at running multiple templates, and at creating dynamic elements and styles. Among the techniques covered in these articles ( Part 1 and Part 2 ) are: using suggestions—naming conventions—to control template display, the use of $body_classes to create dynamic styling, and the implementation of the preprocessor function.

Read Dynamic Theming in Drupal 6 - Part 1 in full

Dynamic POM

by Jonathan Lalou | November 2013 | Games Open Source

This article is written by Jonathan Lalou author of the book Apache Maven Dependency Management. As a disclaimer, beware the following example is used for its pedagogical interest and may fit some situations, but does not match best practices for many other projects. Among other theoretical and practical reasons, common IDEs have some difficulties to support full dynamic POMs.

Read Dynamic POM 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