"Today, we’re going to learn how to implement a simple user authentication system in a Rails application from scratch. Along the way, we’ll examine best practices to help avoid common – and costly – mistakes."
- imabonehead
from Bookmarklet
"Caching in Rails is covered occasionally. It is covered in very basic detail in the caching guide. Advanced caching is left to reader. Here’s where I come in. I recently read part of Ryan Bigg’s Rails 3 in Action upcoming Rails book (review in the works) where he covers caching. He does a wonderful job of giving the reader the basic sense of how you can use page, action, and fragment caching. The examples only work well in a simple application like he’s developing in the book. I’m going to show you how you can level up your caching with some new approaches."
- imabonehead
from Bookmarklet
"Ruby on Rails creator David Heinemeier Hansson has released version 3.1 of his open-source Web application development framework, adding new features that should speed the rendering of Web pages for users."
- imabonehead
from Bookmarklet
"I’ve been playing a lot with node lately thanks to this PeepCode screencast and since Heroku released their new Celadon Cedar stack I’ve been wanting to benchmark ruby versus node.js for a restful API which I need to build. At first I tried to compare bare node.js against eventmachine_httpserver. It did quickly became obvious that this kind of micro-benchmark wasn’t going to be very helpful in deciding which one to choose."
- imabonehead
from Bookmarklet
"In this article, I’ll focus on using a Java library from Ruby. You see, if you were to tinker with a single Java method, you would need to write a complete program with “public static void main(String[] args)”. As we will demonstrate here, with JRuby IRB, it becomes almost trivial to play with Java methods. We will use the unique Java library Akka here. According to the Akka website, “using the Actor Model together with Software Transactional Memory [Akka raises] the abstraction level and provides a better platform to build correct concurrent and scalable applications.”"
- imabonehead
from Bookmarklet
"Today marks a very special occasion in the history of Heroku, as we are honored to announce that Yukihiro "Matz" Matsumoto, the creator of Ruby, has joined the Heroku team as Chief Architect, Ruby."
- imabonehead
from Bookmarklet
"Ruby has the concept of a special type of code “block.” These Ruby blocks are essentially syntactic sugar for passing a lambda (an anonymous function) to a method as an argument. Possibly the most common example of a Ruby block is the each block iterator..."
- imabonehead
from Bookmarklet
"At pebble.it where I work we have a Ubuntu 10.04 LTS server for our Rails and Ruby projects. We use this mostly internally but sometimes expose sites outside of our network to allow clients to quickly review work. When we started the business we built the Rails stack using the standard tools - Apache and Passenger. As our client list grew and we took on a couple of legacy projects we found that this stack no longer matched the environments that we were deploying too and didn't give us the flexibility we wanted. So here's how we changed it."
- imabonehead
from Bookmarklet
"In which I provide easy instructions to try a new patch that drastically improves the start up time of Ruby applications, in the hope that with wide support it will be merged into the upcoming 1.9.3 release. Skip to the bottom for instructions, or keep reading for the narrative."
- imabonehead
from Bookmarklet
"Tonight I had my first meeting with Eric and Ryan to discuss the areas of greatest tensions with the current state of RubyGems. The meeting was quite productive and my personal impression is that despite the intense drama in recent weeks, that both Eric and Ryan realize that there are issues that need addressing and are willing to make concrete steps to ease tensions. The following list outlines specific changes that they plan to make happen..."
- imabonehead
from Bookmarklet
"Want the RubyGems maintainers to take you seriously? It's not as hard as you might think. In fact, I can give you three counterexamples illustrating what not to do, and pretty much tell the whole story."
- imabonehead
from Bookmarklet
"So far in the Java.next() series I’ve discussed only languages that were engineered from the start to run on the JVM (Groovy, Scala and Clojure). However, a lot of good programming languages existed even before the inception of the idea to run languages other than Java on top of the JVM. Some notable examples are Ruby and Python for instance. Today I’ll be writing about JRuby - the pure Java port of the Ruby programming language (and undoubtedly the most advanced and widely adopted of the 9 (!) actively maintained Ruby ports)."
- imabonehead
from Bookmarklet
"If you’re a developer that wants to be able to test without having to deploy to a remote server, or if you work with different projects that have different configurations, this screencast is for you. While we use Ruby-based tools for this (Vagrant and Knife), the same directions can be applied to set up any type of server: memcache servers, Python, PHP, etc…"
- imabonehead
from Bookmarklet
"Ruby is a one of the most popular languages used on the web. We’ve recently started a new Session here on Nettuts+ that will introduce you to Ruby, as well as the great frameworks and tools that go along with Ruby development. Today, we’ll look at the Dir and File classes, and how we can use them to work with directories and files."
- imabonehead
from Bookmarklet
"But despite some problems found, Vagrant does now work on 64-bit Windows with the exception of a couple features, which are entirely optional. I recommend viewing the setup guide for Vagrant on 64-bit Windows for those interested."
- imabonehead
from Bookmarklet
"Today, I’m going to show you a quick example of building a simple Rails 3 application to give you an idea of what working with Rails is like. For this tutorial in two parts, we’ll be building a database-backed application: a URL shortener named “Shorty.” In the first part, you’ll learn how to install Ruby on Rails, generate an application and create a Model. In the second part, we’ll move on to creating a Controller, writing a View and then we’ll wrap it all up."
- imabonehead
from Bookmarklet
"Let’s reflect on how we can use NoSQL with Ruby. In order to do so, we will review the following NoSQL databases: Cassandra, MongoDB and CouchDB. Ruby supports each one of them over corresponding gems. In this blog post we will be using Ruby 1.8.7 with Rails 3.0 under Ubuntu 9.10 OS."
- imabonehead
from Bookmarklet
No desire to make a social media app. I'm only interested in Rails and somewhat in nosql technologies. I used to develop in-house rails app for my current employer.
- imabonehead
Installing a monitored Mongodb, Ruby 1.9, Nginx stack with Passenger on Ubuntu Linux | Ruby on Rails, London - The Blog by Dynamic50 - http://blog.dynamic50.com/2010...
"In the spirit of nosql, today I am going to show you how to install a Rails stack on Ubuntu using Mongodb, Nginx, Passenger, Ruby 1.9 and all nicely monitored using monit, my monitoring tool of choice (why don’t I use god I hear you ask? => monit = easy maintenance and less resource heavy)."
- imabonehead
from Bookmarklet
"I was having a friendly dispute with a co-worker the other day, we were talking about what technology to use to count the number of impressions viewed in a certain time period. I was of the opinion that MongoDB could handle the load just fine, and he was of the mind that Redis was the solution to go with. I decided to put it to the test and here are my results. I wrote the following quick ruby class and ran it on my MacBook Pro: here are the results..."
- imabonehead
from Bookmarklet
"JRuby 1.6 is now available as a release candidate. It provides support for the latest Ruby release while enhancing Microsoft Windows compatibility. JRuby 1.6 is the first JRuby release to support the Ruby 1.9.2, the latest release of the Ruby language. " From JRuby 1.5 to 1.6 there have been over 1,900 commits and we've made a lot of changes, primarily around adding solid Ruby 1.9.2 support," Thomas Enebo, JRuby project lead, told InternetNews.com. "With JRuby 1.6, we can now run in Ruby 1.8.7 or in 1.9.2 mode.""
- imabonehead
from Bookmarklet
"Running a high-traffic site with little room for downtime could make deploying large changes daunting. What if your new code has a large impact on performance? We’ve been in this situation several times with Hoptoad as we make large changes and improvements to the codebase. Things like changing databases, upgrading major versions of Rails, and adding queueing can have unpredictable effects on performance. Little things can have a big effect, too, when most of your traffic is focused in one write-heavy API endpoint. We’ve boosted our confidence in rolling out these changes by performance testing ahead of time. We’ve tried a variety of synthetic load testing approaches, but the most realistic way to do this is by using real traffic."
- imabonehead
from Bookmarklet
"Lately, I've been toying around with native Android application development using Java. It got me hooked on using RoboGuice and Google Guice. Coming from a dynamic language background, it got me thinking as to why I never felt the need for a dependency injection framework before. Guess what? Ruby and Python both come with their own built-in dependency injection framework! Heresy? Well let's check out this small example and see if it's the case or not."
- imabonehead
from Bookmarklet
"Today I’m happy to finally release the Envy Labs Rails 3 Cheat Sheets. I know they’re a little late to the game (with Rails 3 being released months ago), but working on Rails for Zombies caused a small delay. Some of these sheets may be a review if you’ve already been working with Rails 3 for a few months now, but they’re great if you’re just now getting the hang of it or you want a good reference guide."
- imabonehead
from Bookmarklet
"The yield statement is a very important concept to understand when building a Ruby DSL. The functionality provided by yield allows a developer to pass off control temporarily to allow for configuration or advanced functionality. Yielding is a pattern that completely pervades the Ruby language, including the Ruby standard library (the functionality included with the language itself). If you’ve ever used the Array#map (or Array#collect) functionality, that’s one example of a yield pattern. An example use to increment all the items in an array would look like this..."
- imabonehead
from Bookmarklet
"There are two great gems that you can use if you’re on Rails 2.3+ or 3.0+. Josh Peek’s Rack::SSL is simple and works well, while Tobias Matthies’ Rack::SslEnforcer has more configuration options. I recommend Rack::SSL unless you need more complexity."
- imabonehead
from Bookmarklet
"A freelancer is a self-employed person who pursues a profession without a long-term commitment to any particular employer. Your curiosity in this opportunity was probably sparked by posts marked “Freelance” or “Work from anywhere” on the myriad of job boards around the Web. Freelancing is equal parts freedom and responsibility. While you have the freedom to choose when you work, where you work and what you work on, you are also responsible for everything: deadlines, finding work, the quality of your work, communication and so much more."
- imabonehead
from Bookmarklet