background preloader

Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl

Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl
Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E. About the author Copyright and license 1.1 Introduction

NoSQL Data Modeling Techniques « Highly Scalable Blog NoSQL databases are often compared by various non-functional criteria, such as scalability, performance, and consistency. This aspect of NoSQL is well-studied both in practice and theory because specific non-functional properties are often the main justification for NoSQL usage and fundamental results on distributed systems like the CAP theorem apply well to NoSQL systems. At the same time, NoSQL data modeling is not so well studied and lacks the systematic theory found in relational databases. In this article I provide a short comparison of NoSQL system families from the data modeling point of view and digest several common modeling techniques. I would like to thank Daniel Kirkdorffer who reviewed the article and cleaned up the grammar. To explore data modeling techniques, we have to start with a more or less systematic view of NoSQL data models that preferably reveals trends and interconnections. Key-Value storage is a very simplistic, but very powerful model. Conceptual Techniques

Learn Python - Free Interactive Python Tutorial Heroku | Cloud Application Platform Microjs: Fantastic Micro-Frameworks and Micro-Libraries for Fun and Profit! A Unix and Perl Primer for Biologists Available translations of this page: Belorussian Deutsche Russian Serbian We have written a basic introductory course for biologists to learn the essential aspects of the Perl programming language. This started as a course for grad students at UC Davis, and we then ran it as a one week intensive course for anyone on campus who was interested (sponsored by the UC Davis Genome Center). The course is very much aimed at people with no prior experience in either programming or Unix. Although this course was initially developed for biologists, we feel that it is suitable for anyone in the life sciences...you don't need to have experience with bioinformatics to use this material. To start the course, you first need to download the course material (a set of test files and directories that relates to the documentation). Unix and Perl Primer for Biologists - v3.1.1 last updated: October 2012 We hope you enjoy this course and find it useful for your work. Keith Bradnam & Ian Korf Korf Lab in the news

Ruby Kickstart Designing a Secure REST (Web) API without OAuth Situation You want to develop a RESTful web API for developers that is secure to use, but doesn’t require the complexity of OAuth and takes a simple “pass the credentials in the query” approach… or something equally-as-easy for people to use, but it needs to be secure. You are a smart guy, so you start to think… Problem You realize that literally passing the credentials over HTTP leaves that data open to being sniffed in plain-text; After the Gawker incident, you realize that plain-text or weakly-hashed anything is usually a bad idea. You realize that hashing the password and sending the hash over the wire in lieu of the plain-text password still gives people sniffing at least the username for the account and a hash of the password that could (in a disturbing number of cases) be looked up in a Rainbow Table. That’s not good, so you scratch your head some more… “Still not quite right!” Solution So you keep searching for articles on “secure API design“… That seems pretty straight forward.

Computer Programming Basics A computer program is nothing but a set of instructions, which when executed, give results to a certain operation. These instructions need to be written logically, i.e, they should be in a flow, and before writing the program, you need to decide the flow of the program. Remember, the computer is a very intelligent machine, but it can do only what you ask it to do. Machine-Level Language At root level, a computer works in bits and bytes. Assembly Language An assembly language is just one level above low-level machine language. High-Level Language High-level languages are far simpler to understand than assembly language or machine-level language. Basic Steps to Write a Computer Program Some of the basic factors that you need to take care of, when writing a computer program have been mentioned below. Plan and Design the Logic of the Program: Logic is the backbone of your computer program. Optimize your Code: This is very important.

Infographic Creation Made Easy with Visual.ly Create Today marks an important milestone for Visual.ly: the release of our tools for automatic infographic creation. Our team has made hundreds of infographics, so we know how hard it can be to find the data, do the necessary research, and make sure you are following the principles of good data visualization, while still coming up with a design that people will want to hang on their wall and spread through the interwebs. That’s why we’ve built data feeds into a number of infographic designs, created for you by our team of expert designers. We are social creatures, so we thought it only natural to start with Twitter and Facebook. Another reason was our launch at the SXSW Festival, a place where many new stories are being told. But this is just the beginning. Once you’ve created an infographic with Visual.ly Create, we hope you’ll share it with the community by posting to your Visual.ly profile or sharing with your friends on social networks.

Essential JavaScript Design Patterns For Beginners Design patterns are reusable solutions to commonly occurring problems in software design. They are both exciting and a fascinating topic to explore in any programming language. One reason for this is that they help us build upon the combined experience of many developers that came before us and ensure we structure our code in an optimized way, meeting the needs of problems we're attempting to solve. Design patterns also provide us a common vocabulary to describe solutions. In this book we will explore applying both classical and modern design patterns to the JavaScript programming language. Target Audience This book is targeted at professional developers wishing to improve their knowledge of design patterns and how they can be applied to the JavaScript programming language. Some of the concepts covered (closures, prototypal inheritance) will assume a level of basic prior knowledge and understanding. Acknowledgments Credits Reading JavaScript: The Definitive Guide by David Flanagan A context

The First 45 Years Of Star Trek I feel almost childishly uneducated when it comes to Star Trek, and the culture that surrounds this quite amazing series of movies and TV shows. There is no doubt Star Trek has had a huge impact on society, and I think the cast members should feel proud that they have been a part of a world-changing concept that will only grow stronger with time. There are gadgets, technologies and styles all derived from Star Trek, and I am sure no one could disagree with me when I say that Star Trek has had as much of an impact on the world as Star Wars, if not more. It’s once again a question about which side you vote for. It’s with fascination that I begin to read and look through this information packed Star Trek infographic which replays 45 years of pure sci-fi history.

Multi-Device Layout Patterns Through fluid grids and media query adjustments, responsive design enables Web page layouts to adapt to a variety of screen sizes. As more designers embrace this technique, we're not only seeing a lot of innovation but the emergence of clear patterns as well. I cataloged what seem to be the most popular of these patterns for adaptable multi-device layouts. To get a sense of emerging responsive design layout patterns, I combed through all the examples curated on the Media Queries gallery site several times. Mostly Fluid The most popular pattern was perhaps surprisingly simple: a multi-column layout that introduces larger margins on big screens, relies on fluid grids and images to scale from large screens down to small screen sizes, and stacks columns vertically in its narrowest incarnations (illustrated below). I dubbed this pattern "mostly fluid" because the core structure of the layout really doesn't change until the smallest screen width. Column Drop Layout Shifter Tiny Tweaks Off Canvas

Related: