Cookbook

OpenVPN 2 Cookbook

It is capable of establishing direct links between computers across networks and firewalls. It is powerful software, but getting the most from it can be a daunting task.

OpenVPN 2 Cookbook provides solutions to common OpenVPN problems. The book covers everything a system administrator needs to manage and run an OpenVPN network, from point to point networks to troubleshooting.

OpenVPN 2 Cookbook offers all the information you need to successfully manage your network. Covering all the common networks, including point to point networks, multi-client tun style networks and multi client tap style networks, this practical guide gives quick answers to common questions and problems.

Each technical aspect is broken down into short recipes that demonstrate solutions with working code, then explain why and how that works. The book is intended to be a desk reference for users with a whole range of experience levels.

What you will learn from this book

  • Setting up point-to-point, routed as well as bridged VPNs
  • Determining the best type of OpenVPN set up for your networking needs
  • Configuring OpenVPN on Linux, Windows and Mac OS X
  • Using scripting and plugins to optimize your VPN setup
  • Troubleshooting your VPN setup
  • Using advanced OpenVPN techniques, such as proxy support, compression, different encryption algorithms
  • Setting up a public key infrastructure (PKI) for use with OpenVPN, including X509 certificates, certificate revocation lists and intermediary certificate authorities
  • Integrating a hardware security token or smart card into your VPN setup

Approach

This is a cookbook, with practical recipes providing tips and tricks to the most common problems and scenarios faced with OpenVPN.

Who this book is written for

This book is ideal for system administrators and networking professionals who are interested in building secure VPNs using OpenVPN. It is preferable that the reader has a basic knowledge of OpenVPN, as well as general network administration skills.

Linux Shell Scripting Cookbook

Solve real-world shell scripting problems with over 110 simple but incredibly effective recipes

  • Master the art of crafting one-liner command sequence to perform tasks such as text processing, digging data from files, and lot more
  • Practical problem solving techniques adherent to the latest Linux platform
  • Packed with easy-to-follow examples to exercise all the features of the Linux shell scripting language
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible
  • In Detail

    GNU/Linux is a remarkable operating system that comes with a complete development environment that is stable, reliable, and extremely powerful. The shell being the native interface to communicate with the operating system is capable of controlling the entire operating system. There are numerous commands on Linux shell which are documented but hard to understand. The man pages are helpful but they are very lengthy and it does not give any clues on key areas where commands can be used. Proper usage of shell commands can easily solve many complex tasks with a few lines of code, but most linux users don't have the right know-how to use the Linux shell to its full potential.

    Linux Shell Scripting Cookbook is a collection of essential command-line recipes along with detailed descriptions tuned with practical applications. It covers most of the commands on Linux with a variety of usecases accompanied by plenty of examples. This book helps you to perform complex data manipulations involving tasks such as text processing, file management, backups and more with the combination of few commands.

    Linux Shell Scripting Cookbook shows you how to capitalize on all the aspects of Linux using the shell scripting language. This book teaches you how to use commands to perform simple tasks all the way to scripting complex tasks such as managing large amounts of data on a network.

    It guides you on implementing some of the most common commands in Linux with recipes that handle any of the operations or properties related with files like searching and mining inside a file with grep. It also shows you how utilities such as sed, awk, grep, cut can be combined to solve text processing related problems. The focus is on saving time by automating many activities that we perform interactively through as browser with a few lines of script.

    This book will take you from a clear problem description to a fully functional program. The recipes contained within the chapter will introduce the reader to specific problems and provide hands-on solutions.

    This practical book will help you gain control over all the aspects of Linux using the powerful shell scripting language

    What you will learn from this book

    • Explore a variety of regular usage tasks and how it can be made faster using shell command
    • Couple frequently used commands like grep, find, sed, awk
    • Write shell scripts that can dig data from web and process it with few lines of code
    • Perform and automate tasks such as automating backups and restore with archiving tools
    • Understand file systems, file types and manipulations
    • Create and maintain file/folder archives, compression formats and encrypting techniques with shell
    • Set up Ethernet and Wireless LAN with the shell script
    • Monitor different activities on the network using logging techniques

    Approach

    This book is written in cookbook style and it offers learning through recipes with examples and illustrations. Each recipe contains step-by-step instructions about everything necessary to execute a particular task. The book is designed so that you can read it from start to end for beginner's or just open up any chapter and start following the recipes as a reference for advanced users.

    Who this book is written for

    If you are a beginner or an intermediate user who wants to master the skill of quickly writing scripts to perform various tasks without reading the entire man pages, this book is for you. You can start writing scripts and one-liners by simply looking at the similar recipe and its descriptions without any working knowledge of shell scripting or Linux. Intermediate/advanced users as well as system adminstrators/ developers and programmers can use this book as a reference when they face problems while coding.

Image

Over 70 clear and incredibly effective recipes to get the most out of the many tools and features of the ASP.NET MVC framework

  • Solutions to the most common problems encountered with ASP.NET MVC development
  • Build and maintain large applications with ease using ASP.NET MVC
  • Recipes to enhance the look, feel, and user experience of your web applications
  • Expand your MVC toolbox with an introduction to lots of open source tools
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

In Detail

ASP.NET MVC, one of the latest web development platforms from Microsoft, brings the power of MVC programming to ASP.NET development. It simplifies the task of application development and maintenance for developers. However, ASP.NET MVC is filled with so many features that developers end up looking for solutions to the many problems that are encountered in their routine development tasks.ASP.NET MVC 2 Cookbook will provide solutions for the very specific problems that are encountered while developing applications with the ASP.NET MVC platform. It consists of many recipes containing step-by-step instructions that guide developers to effectively use the wide array of tools and features of ASP.NET MVC platform for web development

ASP.NET MVC Cookbook is a collection of recipes that will help you to perform your routine development tasks with ease using the ASP.NET MVC platform. In this book you will be walked through the solution to several specific web application development problems. Each recipe will walk you through the creation of a web application, setting up any Visual Studio project requirements, adding in any external tools, and finally the programming steps needed to solve the problem. The focus of the book is to describe the solution from start to finish.

The book starts off with recipes that demonstrate how to work effectively with views and controllers - two of the most important ingredients of the ASP.NET MVC framework. It then gradually moves on to cover many advanced routing techniques. Considering the importance of having a consistent structure to the site, the book contains recipes to show how to build a consistent UI and control its look with master pages. It also contains a chapter that is packed with many recipes that demonstrate how to gain control of data within a view.

As the book progresses through some exciting recipes on performing complex tasks with forms, you will discover how easy it is to work with forms to jazz up the look of your web site. Building large applications with ease is one of the prime features of the MVC model. Therefore, this book also focuses on tools and features that make building large applications easier to manage. As data plays an important role in the MVC architecture, there are ample recipes dedicated to cover data validation, access, and storage techniques. Finally, the book demonstrates how to enhance the user experience of your visitors by controlling the data at the application, session, caching, and cookie level.

By the end of this book, you will have explored a wide array of tools and features available with the ASP.NET MVC platform

A fast-paced cookbook with recipes covering all that you wanted to know about developing with ASP.NET MVC

What you will learn from this book

  • Get to grips with views and build view content from the data passed
  • Work with actions and controllers to perform some important tasks such as creating a CAPTCHA system and generating a PDF order summary
  • Get a handle on complex routing issues such as using wild card parameters to support slug URLs
  • Create and use master pages to control application wide formatting
  • Handle the creation of master-detail pages with AJAX modal pop-ups
  • Use templated helpers, model binding, and areas to build large-scale applications with ease
  • Perform various validations to ensure that the data entered is correct
  • Access and store data with the different techniques available in ASP.NET MVC application development
  • Manage the data at the application, site, caching, and cookie level
  • Keep track of the number of visitors and maintain their information while they are at your site

Approach

Written in cookbook style, this book offers solutions to all common web development problems through recipes. Each recipe contains step-by-step instructions followed by the analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order.

Who this book is written for

This book is particularly written for web developers looking to transfer their knowledge from the ASP.NET Web Forms way of doing things to the ASP.NET MVC framework. As this book targets readers of various experience levels, you should be able to find recipes of a basic, intermediate, and advanced nature. Regardless of your experience level, each recipe will walk you through the solution in a step by step manner that anyone should be able to follow.

Image

Detailed hands-on recipes for creating the most useful types of graphs in R - starting from the simplest versions to more advanced applications

  • Learn to draw any type of graph or visual data representation in R
  • Filled with practical tips and techniques for creating any type of graph you need; not just theoretical explanations
  • All examples are accompanied with the corresponding graph images, so you know what the results look like
  • Each recipe is independent and contains the complete explanation and code to perform the task as efficiently as possible

In Detail

With more than two million users worldwide, R is one of the most popular open source projects. It is a free and robust statistical programming environment with very powerful graphical capabilities. Analyzing and visualizing data with R is a necessary skill for anyone doing any kind of statistical analysis, and this book will help you do just that in the easiest and most efficient way possible.

Unlike other books on R, this book takes a practical, hands-on approach and you dive straight into creating graphs in R right from the very first page.

You want to harness the power of this open source programming language to visually present and analyze your data in the best way possible - and this book will show you how.

The R Graph Cookbook takes a practical approach to teaching how to create effective and useful graphs using R. This practical guide begins by teaching you how to make basic graphs in R and progresses through subsequent dedicated chapters about each graph type in depth. It will demystify a lot of difficult and confusing R functions and parameters and enable you to construct and modify data graphics to suit your analysis, presentation, and publication needs.

You will learn all about making graphics such as scatter plots, line graphs, bar charts, pie charts, dot plots, heat maps, histograms and box plots. In addition, there are detailed recipes on making various combinations and advanced versions of these graphs. Dedicated chapters on polishing and finalizing graphs will enable you to produce professional-quality graphs for presentation and publication. With R Graph Cookbook in hand, making graphs in R has never been easier

What you will learn from this book

  • Construct multiple graph matrix layouts
  • Summarize multivariate datasets with a single graph
  • Create custom graph functions to avoid code repetition
  • Make and re-use visual themes for graphs
  • Save and export graphs in various formats to print or publish
  • Learn to use fonts and annotations in graphs on Windows, Mac, and Linux
  • Combine different graph types to give a better visual summary of complex datasets
  • Present geographical data on maps
  • Use heatmaps to spot trends and anomalies in large datasets
  • Add scientific annotations and formulae to label graphs
  • Add text descriptions to create graph presentation handouts
  • Create beautiful color palettes and apply them to graphs

Approach

This hands-on guide cuts short the preamble and gets straight to the point - actually creating graphs, instead of just theoretical learning. Each recipe is specifically tailored to fulfill your appetite for visually representing you data in the best way possible.

Who this book is written for

This book is for readers already familiar with the basics of R who want to learn the best techniques and code to create graphics in R in the best way possible. It will also serve as an invaluable reference book for expert R users.

Image

Over 70 simple incredibly effective recipes for taking control of Yahoo! User Interface Library like a Pro

  • Easily develop feature-rich internet applications to interact with the user using various built-in components of YUI library
  • Simple and powerful recipes explaining how to use and implement YUI 2.x components
  • Gain a thorough understanding of the YUI tools
  • Plenty of example code to help you improve your coding and productivity with the YUI Library
  • Hands-on solutions that takes a practical approach to recipes

In Detail

The Yahoo! User Interface (YUI) Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML, and AJAX. Although you can create stylish Internet applications by modifying its default components, even advanced users find it challenging to create impressive feature-rich Internet applications using YUI.

This book will help you learn how to use YUI 2.x to build richer, more interactive web applications that impress clients and wow your friends. It has recipes explaining over twenty-five YUI components, showing how to use them, and how to configure them to meet your needs. Each covered component will have extractable code samples that showcase the common ways that the component is used.

The book starts by explaining the core features of YUI 2.x, the utilities that the rest of the library depends on and that will make your life easier. It then explains how to build UI components and make AJAX requests using the YUI framework. Each recipe will cover the most common ways to use a component, how to configure it, and then explain any other features that may be available. We wrap things up by looking at some of the recent beta components and explain how to use them, and how they may be useful on your web application.

For each of the recipes, there is an introductory example, then more advanced examples, followed by an explanation of how the component works and what YUI is doing. For more experienced developers, most recipes also include additional discussion of the solution, explaining to further customize and enhance the component.

This practical book, packed with easy-to-follow recipes, will help you create modern rich internet applications using the most powerful components of Yahoo! User Interface Library (YUI)

What you will learn from this book

  • Understand how YUI 2.x works and what features are available
  • Understand how YUI components interact with the DOM, and why
  • Effortlessly search the DOM and listen for end-user events
  • Simplify retrieving server-side data using AJAX and DataSource
  • Learn how to load your scripts and CSS on demand
  • Create sophisticated HTML-based panels, tooltips, and dialogs
  • Make interactive inputs with AutoComplete
  • Harness the power of drag and drop for your UI
  • Build sortable, dynamic tables using DataTable
  • Design richer user interfaces using YUI buttons and menus
  • Show data hierarchies using the TreeView
  • Explore some of the more recent beta components
  • Take control of your UI as you master YUI 2.x

Approach

This book contains recipes that showcase the common components of YUI, providing suggested examples of use, and a detailed explanation. Except for the first three chapters, which cover the 3 components of YUI that form the foundation for all other components, this book is not meant to be read cover-to-cover. Each recipe is presented as a separate, standalone entity and reading of other prior recipes is not required. Each chapter tackles a particular component or set of related components, introducing the component and explaining how to use it.

Who this book is written for

If you are a web application developer and have some prior experience with or interest in using YUI 2.x to improve the UI of their web applications, then this book is for you. It assumes the reader has prior knowledge of JavaScript, HTML, CSS, and basic understanding of how a website works. This book provides an easy-to-use guide for implementing YUI 2.x components, and does not require an expertise in either JavaScript or YUI.

Image

You can build a variety of amazing apps on the iOS platform—and every one of them presents a unique set of problems. With the recipes in this cookbook, you'll go beyond theory to solve the vexing, real-life issues you’re likely to face when creating apps for the iPhone, iPad, or iPod Touch. Each recipe provides a clear solution and sample code that you can use right away.

You'll find solutions for working with development frameworks in iOS SDK 4 and technologies such as Cocoa, Objective-C, Xcode, and Interface Builder. Whether you have a little or a lot of experience with iOS development, you’ll find the help you need for every phase of the process, from initial idea to completed project.

  • Work with Objective-C classes, objects, properties, delegates, and memory management
  • Construct a user interface with gesture recognizers
  • Develop location-aware applications with the Map Kit and Core Location APIs
  • Build apps that play audio and video, manage calendars and events, access contacts and groups, or tap into the Photo Library
  • Use the Core Motion framework to access the accelerometer and gyroscope
  • Maintain persistent storage for iOS apps with the Core Data framework
  • Create multitasking-aware apps that let users leave and return without losing their place
Image

The best way to showcase a powerful new technology is to demonstrate its real-world results, and that's exactly what this new Cookbook does with Adobe Flex 3.

Wide ranging and highly practical, Flex 3 Cookbook contains more than 300 proven recipes for developing interactive Rich Internet Applications and Web 2.0 sites. You'll find everything from Flex basics, to solutions for working with visual components and data access, to tips on application development, unit testing, and using Adobe AIR.

You also get ideas from the development community. Through its Flex Cookbook website (www.adobe.com/devnet/), Adobe invited Flex developers to post their own solutions for working with this technology, and from hundreds of posts, the authors chose the best and most useful solutions to supplement Flex 3 Cookbook.

Each recipe inside provides a solution to a common problem, explains how and why it works, and offers sample code that you can put to use immediately. Topics include:

  • Containers and dialogues
  • Working with Text
  • Data driven components
  • DataGrid and Advanced DataGrid
  • ItemRenderers and Editors
  • Images, bitmaps, videos, and sounds
  • CSS, styling, and skinning
  • States and effects
  • Working with Collections, arrays, and DataProviders
  • Using DataBinding
  • Validation, formatting, and regular expressions
  • Using Charts and data visualization
  • Services and Data Access
  • Using RSLs and Modules
  • Working with Adobe AIR

Whether you're a committed Flex developer or still evaluating the technology, you'll discover how to get quick results with Flex 3 using the recipes in this Cookbook. It's an ideal way to jumpstart your next web application.

Image

With this collection of proven recipes, you have the ideal problem-solving guide for developing interactive Rich Internet Applications on the Adobe Flash Platform. You'll find answers to hundreds of common problems you may encounter when using Adobe Flex, Flex 4 Framework, or Flash Builder, Adobe's GUI-based development tool.

Flex 4 Cookbook has hands-on recipes for everything from Flex basics to solutions for working with visual components and data access, as well as tips on application development, unit testing, and Adobe AIR. Each recipe provides an explanation of how and why it works, and includes sample code that you can use immediately. You'll get results fast, whether you're a committed Flex developer or still evaluating the technology. It's a great way to jumpstart your next web application.

Topics include:

  • Using Spark Component
  • Text Layout Framework
  • Groups and Layout
  • Spark List and ItemRenderer
  • Images, bitmaps, videos, and sounds
  • CSS, styling, and skinning
  • States and Effects
  • Working with Collections
  • Using DataBinding
  • Validation, formatting, and regular expressions
  • Using Charts
  • Services and Data Access
  • Using RSLs and Modules
  • Working with Adobe AIR 2.0
Image

Clear step-by-step recipes for building impressive rich internet applications using the Ext JS JavaScript library

  • Master the Ext JS widgets and learn to create custom components to suit your needs
  • Build striking native and custom layouts, forms, grids, listviews, treeviews, charts, tab panels, menus, toolbars and much more for your real-world user interfaces
  • Packed with easy-to-follow examples to exercise all of the features of the Ext JS library
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

In Detail

Using Ext JS you can easily build desktop-style interfaces in your web applications. Over 400,000 developers are working smarter with Ext JS and yet most of them fail to exercise all of the features that this powerful JavaScript library has to offer.

Get to grips with all of the features that you would expect with this quick and easy-to-follow Ext JS Cookbook. This book provides clear instructions for getting the most out of Ext JS with and offers many exercises to build impressive rich internet applications. This cookbook shows techniques and "patterns" for building particular interface styles and features in Ext JS. Pick what you want and move ahead.

It teaches you how to use all of the Ext JS widgets and components smartly, through practical examples and exercises. Native and custom layouts, forms, grids, listviews, treeviews, charts, tab panels, menus, toolbars, and many more components are covered in a multitude of examples.The book also looks at best practices on data storage, application architecture, code organization, presenting recipes for improving them--our cookbook provides expert information for people working with Ext JS.

What you will learn from this book

  • Work with different browsers, platforms, and the DOM, as well as determine and understand the different ExtJS data types
  • Create your own custom Ext JS data types as you extend their functionality
  • Build great-looking and friendly forms by using client and server-side field validation, form loading, submission, field customization, and layout techniques
  • Explore the different layouts provided by the Ext JS library as well as create your own, and understand their common uses
  • Display, edit, and group tabular data generated by the server using Grid Panels
  • Explore the advantages and the efficiency tradeoffs of widgets such as Combo boxes
  • Use the drag and drop features of the grid component, data editing with the new RowEditor Class, and the new lightweight ListView component
  • Explore multiple ways of displaying master-details relationships
  • Group components or information under the same container to build hierarchical views of information by using TabPanel components
  • Use patterns to build a solid and flexible application architecture and implement additional design patterns such as auto-saving form elements, component state management, and code modules to build robust and flexible applications with Ext JS
  • Build your own custom components on top of the Ext framework and enhance the custom components created by the Ext JS users' community

Approach

The Ext JS Cookbook contains step-by-step instructions for Ext JS users to build desktop-style interfaces in their own web applications. The book is designed so that you can refer to it chapter by chapter, or you can look at the list of recipes and read them in no particular order.

Who this book is written for

The Ext JS Cookbook is for Ext JS users who want a book of useful techniques, with explanations, that they can refer to and adapt to their purposes. Developers who are already familiar with Ext JS will find practical guidance and numerous examples covering most of the library's features and components that can be used as a solid foundation to build upon when creating rich internet applications.

Image

The best way to showcase a powerful new technology is to demonstrate its real-world results, and that's exactly what this new Cookbook does with Adobe Flex 3.

Wide ranging and highly practical, Flex 3 Cookbook contains more than 300 proven recipes for developing interactive Rich Internet Applications and Web 2.0 sites. You'll find everything from Flex basics, to solutions for working with visual components and data access, to tips on application development, unit testing, and using Adobe AIR.

You also get ideas from the development community. Through its Flex Cookbook website (www.adobe.com/devnet/), Adobe invited Flex developers to post their own solutions for working with this technology, and from hundreds of posts, the authors chose the best and most useful solutions to supplement Flex 3 Cookbook.

Each recipe inside provides a solution to a common problem, explains how and why it works, and offers sample code that you can put to use immediately. Topics include:

  • Containers and dialogues
  • Working with Text
  • Data driven components
  • DataGrid and Advanced DataGrid
  • ItemRenderers and Editors
  • Images, bitmaps, videos, and sounds
  • CSS, styling, and skinning
  • States and effects
  • Working with Collections, arrays, and DataProviders
  • Using DataBinding
  • Validation, formatting, and regular expressions
  • Using Charts and data visualization
  • Services and Data Access
  • Using RSLs and Modules
  • Working with Adobe AIR

Whether you're a committed Flex developer or still evaluating the technology, you'll discover how to get quick results with Flex 3 using the recipes in this Cookbook. It's an ideal way to jumpstart your next web application.

Pages

Subscribe to RSS - Cookbook