Learning Devise for RailsA hands-on, all-in-one guide that gives you step-by-step instructions along with code examples to implement authentication systems in your application. This book will help you to implement various schemes of authentication systems including authorization and remote authentication, using Devise.
Helping you make your Rails applications more accessible and user-friendly; this book explains how to implement user sign-ins in Rails. It will also show you how to customize user authentication pages, such as sign-in, sign-up, forgot password, and account details, by making use of existing Devise views. In addition, you will learn about facilitating complex privilege rules using the CanCan gem. Finally, you will discover how to make sure your authentication codes work as expected by using integration tests. ...
The Problem with Native JavaScript APIsMany features inspired by popular JavaScript libraries are now available as native JavaScript APIs in today's powerful browsers. While that may seem convenient given all of the JavaScript you need to write, relying on these APIs will only make code maintenance more difficult in the long run.
In this report, Nicholas Zakas-consultant and former front-end tech leader at Yahoo! - provides a case study to show how different browsers can develop native APIs for the same specification and still end up with different interpretations. You'll discover how these APIs can tie your code to specific browsers, forcing you to upgrade application logic whenever new browsers and new browser versions are released. ...
Effective Monitoring and AlertingWith this practical book, you'll discover how to catch complications in your distributed system before they develop into costly problems. Based on his extensive experience in systems ops at large technology companies, author Slawek Ligus describes an effective data-driven approach for monitoring and alerting that enables you to maintain high availability and deliver a high quality of service.
Learn methods for measuring state changes and data flow in your system, and set up alerts to help you recover quickly from problems when they do arise. If you're a system operator waging the daily battle to provide the best performance at the lowest cost, this book is for you. ...
The Makerspace WorkbenchCreate a dynamic space for designing and building DIY electronic hardware, programming, and manufacturing projects. With this illustrated guide, you'll learn the benefits of having a Makerspace - a shared space with a set of shared tools - that attracts fellow makers and gives you more resources to work with. You'll find clear explanations of the tools, software, materials, and layout you need to get started - everything from basic electronics to rapid prototyping technology and inexpensive 3D printers.
A Makerspace is the perfect solution for many makers today. While you can get a lot done in a fully-decked out shop, you'll always have trouble making space for the next great tool you need. And the one thing you really miss out on in a personal shop is the collaboration with other makers. A Makerspace provides you with the best of both worlds. ...
HTML5: The Missing Manual, 2nd EditionHTML5 is more than a markup language - it's a collection of several independent web standards. Fortunately, this expanded guide covers everything you need in one convenient place. With step-by-step tutorials and real-world examples, HTML5: The Missing Manual shows you how to build web apps that include video tools, dynamic graphics, geolocation, offline features, and responsive layouts for mobile devices. ...
Java Network Programming, 4th EditionThis practical guide provides a complete introduction to developing network programs with Java. You'll learn how to use Java's network class library to quickly and easily accomplish common networking tasks such as writing multithreaded servers, encrypting communications, broadcasting to the local network, and posting data to server-side programs.
Author Elliotte Rusty Harold provides complete working programs to illustrate the methods and classes he describes. This thoroughly revised fourth edition covers REST, SPDY, asynchronous I/O, and many other recent technologies. ...
Programming iOS 7, 4th EditionIf you're grounded in the basics of Objective-C and Xcode, this practical guide takes you through the components you need for building your own iOS apps. With examples from real apps and programming situations, you'll learn how to create views, manipulate view controllers, and use iOS frameworks for adding features such as audio and video.
New iOS 7 topics covered include asset catalogs, snapshots, template images, keyframe and spring view animation, motion effects, tint color, fullscreen views and bar underlapping, background downloading and app refresh, Text Kit, Dynamic Type, speech synthesis, and many others. Example projects are available on GitHub. ...
RaphaelJSCreate beautiful, interactive images on the Web with RaphaëlJS, the JavaScript library that lets you draw Scalable Vector Graphics (SVG) right in the browser. With this concise guide, you'll quickly learn how to paint the screen with shapes and colors that you can turn into lively, animated graphics and visualizations.
Author Chris Wilson shows you how to create Raphaël objects and manipulate them with animation, transformations, and other techniques, using just a few lines of code. Packed with working examples, sample code, and cool hands-on projects, RaphaëlJS is ideal for new and experienced JavaScript programmers alike. ...
Learning jQuery DeferredsOrchestrating asynchronous function calls in JavaScript often leads to callback hell, but there is a reliable way to avoid this painful state of affairs. With this concise and simple guide, you'll learn how to use jQuery deferreds and promises, an elegant approach for managing asynchronous calls in both client and server applications.
This book contains 18 examples that use deferreds to solve progressively challenging real-world programming problems, along with 75 stimulating puzzles (and their solutions) that will help you understand how and when to use deferreds. You'll learn new tricks in a fun way, and become immersed in the practice of event-based programming. ...
Instant Mock Testing with PowerMockWriting good unit tests can be hard in situations where we have to deal with static, final, or private methods. Sometimes, even a good design is sacrificed for the sake of testability. A mocking framework's ability to create mocks for almost any scenario enables us to focus on accurately programming for a business environment.
Starting with a basic example of how to create a mock and verify a method invocation Instant Testing with PowerMock then demonstrates various features of PowerMock using clear, practical, step-by-step recipes. By the end of this book, you will be able to write unit tests for almost any scenario and suppress unwanted behaviour to effectively unit test your code. ...