In GLSL, a subroutine is a mechanism for binding a function call to one of a set of possible function definitions based on the value of a variable. Subroutines therefore provide a way to select alternate implementations at runtime without swapping shader programs and/or recompiling, or using if statements along with a uniform variable.
In this article by David Wolff, author of OpenGL 4.0 Shading Language Cookbook, we'll demonstrate the use of subroutines by rendering a teapot twice. The first teapot will be rendered with the full ADS shading model described earlier. The second teapot will be rendered with diffuse shading only. A subroutine uniform will be used to choose between the two shading techniques.Read GLSL 4.0: Using Subroutines to Select Shader Functionality in full
Fragment shaders can make use of the discard keyword to "throw away" fragments. Use of this keyword causes the fragment shader to stop execution, without writing anything (including depth) to the output buffer. This provides a way to create holes in polygons without using blending. In fact, since fragments are completely discarded, there is no dependence on the order in which objects are drawn, saving us the trouble of doing any depth sorting that might have been necessary if blending was used. In this recipe by David Wolff, author of OpenGL 4.0 Shading Language Cookbook, we'll draw a teapot, and use the discard keyword to remove fragments selectively based on texture coordinates.Read GLSL 4.0: Discarding Fragments to Create a Perforated Look in full
This article by Dirk Manuel explains how to build and implement a Glossary.
A Glossary defines terms that are unique to a project or system, or new to your users. A Glossary typically consists of a number of term/description pairs. The added value that UPK provides is that instances of each term in exercises can be hyperlinked to the relevant entries in the Glossary.Read Glossary in UPK 3.5 in full
In this article by Mauricio Salatino, we will cover the main points that you need in order to start working with the jBPM framework.
This article will tackle, in a tutorial fashion, the first steps that you need to know in order to start using the framework with the right foot. We will follow a real example and transform the real situation into requirements for a real jBPM implementation.Read Getting Your Hands Dirty with jPDL: Part 1 in full
In this article by Brandon Ballentine, author of Desire2Learn for Higher Education Cookbook, we will cover the following recipes:
Copying course materials from a previous semester
Importing a publisher's course cartridge
Changing many due dates from one screen
Double-checking everything from the student view
Configuring your web browser
In this article by Douwe Pieter Van Den Bos, we will get ready for our Forms conversion and generation. In this part of our conversion project, we will investigate, analyze, and adjust some of the most important parts of our application. This means that we will set everything up for the generation of the application. We will discuss the following parts of the conversion project in this article:
- Investigating the components that will be generated
- Getting to know the database blocks in our Forms files
- Looking deeper into the block items inside our blocks and editing them
- Enhancing the queries on which our blocks are based
- Analyzing the triggers we have in the Forms XML files
- Massively changing the completeness and applicability of triggers or items
- Customizing the query that the blocks are based on in order to complete our generation
- Understanding the way our pages will be generated in APEX
- Editing the titles of our blocks and items
- Analyzing our business logic (probably the most important part)
There are, several ways to get MySQL for Python in a place such that your local Python installation can use it. Which one you use will depend as much on your familiarity with your operating system and with Python itself, as it will on which operating system and version of Python you are running.
In this article, by Albert Lukaszewski, PhD, author of MySQL for Python, we will cover the following:
- Where you can get MySQL for Python
- Installing MySQL for Python
- Importing the module into your programs
- Accessing online help about the MySQL for Python API and its accompanying modules
- How to connect to a database
- How to create a MySQL cursor proxy within your Python program
- How to close the database connection from Python
- How to access multiple databases within one program
A free and open-source Integrated Development Environment (IDE) for software developers. In this article by Atul Palandurkar, author of Instant NetBeans IDE How-to, you get all the tools you need to create professional applications with the Java platform such as follows :
- Desktop applications,
- Enterprise applications,
- Web applications, and
- Mobile applications,
In this article by Dr. Mark Alexander Bain, we will be dealing with building a Facebook application. However, before we jump into building a Facebook application, we need to spend some time looking at the Facebook platform, and by the end of this article you will:
- Understand what the Facebook Platform is, and how it relates to your application
- Know about the elements that make up the Facebook Platform, and how to test them without having to create an application
- Know how to set up the Facebook Platform, ready for your new application
In this article, we are going to hit the ground running. We are going to go from zero to a deployed website by the end of this article. This means that we are going to see an in-depth review of every setting.Read Getting Started withRapidWeaver in full
This definition is from the Zombie.js documentation at http://zombie.labnotes.org. Automating tests for your web application is crucial to having a quality product but doing it properly can be a painful experience. That is why most of the time this part of the project never gets implemented. Developers either limit themselves to testing the underlying business logic and control flow in isolation, or, if they really want to test the user interface, must resort to complicated setups where you somehow connect to real browsers and command them using remote scripts.
In this article by Pedro Teixeira from the book Using Node.js for UI Testing, we will cover following topics:
A brief history of software testing
Understanding the server-side DOM
How Zombie.js works internally
By the end of this article, you should understand how Zombie.js works and what types of applications can be tested using it.Read Getting Started with Zombie.js in full
This article by Faruk Akgul, author of ZeroMQ explains what a message queuing system is, discusses the importance of message queuing, and introduces ZeroMQ to the reader.
Before we start digging into ZeroMQ, let's first have a brief introduction on the general concept of message queues.Read Getting Started with ZeroMQ in full
In this article by Jonathan Fielding, the author of Instant jQuery Boilerplate for Plugins, we will have a look at creating our first plugin that manipulates the shape of the div element. You will be familiarized with both with jQuery plugin development and the jQuery Boilerplate template.
Let us write our first plugin. For this recipe, we will look at how we can create a plugin that manipulates the shape of a div element.
XenApp 6 is the leader in application hosting and virtualization delivery, allowing users from different platforms such as Windows, Mac, Linux, and mobile devices to connect to their business applications. It reduces resources and costs for application distribution and management.
In this article by Guillermo Musumeci, author of Getting Started with Citrix XenApp 6, we will learn:
- XenApp 6 and its features
- System requirements for the installation of XenApp 6
This article by April Hodge Silver, author of WordPress 3 Complete, will guide you through the process of setting up WordPress and customizing its basic features. You can choose between a couple of options regarding where your WordPress installation will live. Keep in mind that WordPress is relatively small (under 10 MB), easy to install, and easy to administer.
In this article, you will learn how to:
- Create a free blog on WordPress.com
- Install WordPress manually on your web host
Windows Installer XML (WiX) is a free XML markup from Microsoft that is used to author installation packages for Windows-based software. The underlying technology is Windows Installer, which is the established standard for installing desktop-based applications to any Windows operating system. It is used by countless companies around the world. Microsoft uses it to deploy its own software including Microsoft Office and Visual Studio. In fact, Microsoft uses WiX for these products.
In this article by Nick Ramirez, author of the book WiX: A Developer's Guide to Windows Installer XML, we will cover the following:
- Getting WiX and using it with Visual Studio
- Creating your first WiX installer
- Examining an installer database with Orca
- Logging an installation process
- Adding a simple user interface
Now that you have a functioning Chef Server running and the tools needed to interact with it, we will discuss the steps involved in setting up nodes that talk to the Chef service and will use the information provided to install software and set up the server.
This article by John Ewart, author of Instant Chef Starter will take you through the process of using Chef to provision a new Ubuntu 12.10 server and set it up as a LAMP (Linux, Apache, MySQL, and PHP) server as this is a very simple and quite common server configuration at the moment. The basic steps will be as follows:
Setting up the server.
Downloading and examining cookbooks.
Uploading cookbooks into your Chef Server.
Creating and assigning roles to the node.
Completing the process by applying changes to the node.
This article details Flight's advantages over other frameworks. This includes its shallow-learning curve, reliability, reusability, agnostic architecture, performance, and the idea of well-organized freedom. At the end of the article, you can find some specific scenarios such as single-page apps and classic web pages.Read Getting Started with Twitter Flight in full
In the previous article by Spencer Harbar, Lim Mei Ying, and Stefan Gobner, authors of Enhancing Microsoft Content Management Server with ASP.NET 2.0, we learnt how to install and configure MCMS 2002 Service Pack 2 (SP2), along with SQL Server 2005 and Visual Studio 2005 on a single developer workstation. In addition, we also covered the changes to the SP2 development environment and a number of tips for working within it. In this article, which is the third article of the article series, we will spend some time getting familiar with the MCMS Service Pack 2 development environment for Visual Studio 2005, which is slightly different from what we are used to with previous versions of Visual Studio. In addition we will create custom Visual Studio 2005 templates to overcome some of the issues that are present with the templates that shipped with MCMS SP2.Read Getting Started with the Development Environment Using Microsoft Content Management Server in full