rssHome » Ruby & Python

Ruby on Rails 3 Tutorial: Learn Rails by Example

Ruby on Rails 3 Tutorial: Learn Rails by Example

Book Description

™ 3 Tutorial: Learn by Example by Michael Hartl has become a must read for developers learning how to build apps.”
—Peter Cooper, Editor of Inside

Using Rails 3, developers can build web applications of exceptional elegance and power. Although its remarkable capabilities have made one of the world’s most popular web development frameworks, it can be challenging to learn and use. on Rails™ 3 Tutorial is the solution. Leading Rails developer Michael Hartl teaches Rails 3 by guiding you through the development of your own complete sample application using the latest techniques in Rails web development.

Drawing on his experience building RailsSpace, Insoshi, and other sophisticated Rails applications, Hartl illuminates all facets of design and implementation—including powerful new techniques that simplify and accelerate development.

You’ll find integrated tutorials not only for Rails, but also for the essential Ruby, HTML, CSS, JavaScript, and SQL skills you’ll need when developing web applications. Hartl explains how each new technique solves a real-world problem, and he demonstrates this with bite-sized code that’s simple enough to understand, yet novel enough to be useful. Whatever your previous web development experience, this book will guide you to true Rails mastery.

This book will help you
Download Now »

Sinatra: Up and Running

Sinatra: Up and Running

Book Description

Take advantage of Sinatra, the -based web application library and domain-specific language used by GitHub, LinkedIn, Engine Yard, and other prominent organizations. With this concise book, you will quickly gain working knowledge of Sinatra and its minimalist approach to building both standalone and modular web applications.

Sinatra serves as a lightweight wrapper around Rack middleware, with syntax that maps closely to functions exposed by HTTP verbs, which makes it ideal for web services and APIs. If you have experience building applications with , you’ll quickly learn language fundamentals and see under-the-hood techniques, with the help of several practical examples. Then you’ll get hands-on experience with Sinatra by building your own blog engine.

  • Learn Sinatra’s core concepts, and get started by building a simple application
  • Create views, manage sessions, and work with Sinatra route definitions
  • Become familiar with the language’s internals, and take a closer look at Rack
  • Use different subclass methods for building flexible and robust architectures
  • Put Sinatra to work: build a blog that takes advantage of service hooks provided by the GitHub API

Table of Contents
Chapter 1 Taking the Stage
Chapter 2 Fundamentals
Chapter 3 A Peek Behind the Curtain Download Now »

NumPy 1.5: Beginner’s Guide

NumPy 1.5: Beginners Guide

Book Description

In today’s world of science and technology, the hype is all about speed and flexibility. When it comes to scientific computing, is on the top of the list. is the fundamental package needed for scientific computing with . will give you both speed and high productivity. Save thousands of dollars on expensive software, while keeping all the flexibility and power of your favourite language.

NumPy 1.5 Beginner’s Guide will teach you about NumPy from scratch. It includes everything from installation, functions, matrices, and modules to testing, all explained with appropriate examples.

Numpy 1.5 Beginner’s Guide will teach you about installing and using NumPy and related concepts.

This book will give you a solid foundation in NumPy arrays and universal functions. At the end of the book, we will explore related scientific computing projects such as Matplotlib for plotting and the SciPy project through examples.

NumPy 1.5 Beginner’s Guide will help you be productive with NumPy and write clean and fast code.

What you will learn from this book:

  • Installing NumPy
  • Learn to load arrays from files and write arrays to files
  • Work with universal functions Download Now »

Python and AWS Cookbook

Python and AWS Cookbook

Book Description

If you intend to use Web Services () for remote computing and storage, is an ideal language for developing applications and controlling your -based infrastructure. This cookbook gets you started with more than two dozen recipes for using with , based on the author’s boto library.

You’ll find detailed recipes for working with the S3 storage service as well as EC2, the service that lets you design and build applications. Each recipes includes a code solution you can use immediately, along with a discussion of why and how the recipes works. You also get detailed advice for using boto with and other cloud services.

This book’s recipes include methods to help you:

  • Launch instances on EC2, and keep track of them with tags
  • Associate and Elastic IP address with and instance
  • Restore an failed Elastic Block Store volume from a snapshot
  • Store and monitor your own custom metrics in CloudWatch
  • Create a bucket in S3 to contain your data objects
  • Reduce the cost of storing noncritical data
  • Prevent accidental deletion of data in S3

About the Author
Mitch Garnaat is a software developer at Eucalyptus Systems Download Now »

MongoDB and Python

MongoDB and Python

Book Description

Learn how to leverage with your applications, using the hands-on recipes in this book. You get complete code samples for tasks such as making fast geo queries for location-based apps, efficiently indexing your user documents for social-graph lookups, and many other scenarios.

This guide explains the basics of the document-oriented database and shows you how to set up a environment with it. Learn how to read and write to , apply idiomatic and patterns, and use the database with several popular web frameworks. You’ll discover how to model your data, write effective queries, and avoid concurrency problems such as race conditions and deadlocks.

The recipes will help you:

  • Read, write, count, and sort documents in a MongoDB collection
  • Learn how to use the rich MongoDB query language
  • Maintain data integrity in replicated/distributed MongoDB environments
  • Use embedding to efficiently model your data without joins
  • Code defensively to avoid keyerrors and other bugs
  • Apply atomic operations to update game scores, billing systems, and more with the fast accounting pattern
  • Use MongoDB with the Pylons 1.x, Django, and Pyramid web frameworks

Download Now »

Rails 3 in Action

Rails 3 in Action

Book Description

3 is a full stack, web framework powered by and this book is an introduction to it. Whether you’re just starting or you have a few cycles under your belt, you’ll appreciate the book’s guru’s-eye-view of idiomatic .

You’ll master Rails 3.1 by developing a ticket tracking application that includes routing, authentication and authorization, state maintenance, file uploads, email, and more. You’ll also explore powerful features like designing your own APIs and building a Rails engine. You will see Test Driven Development and Behavior Driven Development in action throughout the book, just like you would in a top Rails shop.

It is helpful for readers to have a background in , but no prior Rails experience is needed.

What’s Inside

  • Covers Rails 3.1 from the ground up
  • Testing and BDD using RSpec and Cucumber
  • Working with Rack

Table of Contents

  1. , the framework
  2. Testing saves your bacon Download Now »