July 19, 2012 Tagged: oop tell don't ask code Comments (View) Tell, Don’t Ask And now, a friendly message from your local Tell, don’t ask Department. Example 1 Not so good: <% if current_user.admin? %> <%= current_user.admin_welcome_message %> <% else %> <%= current_user.user_welcome_...
Sidekiq allows you to move jobs into the background for asynchronous processing. It uses threads instead of forks so it is much more efficient with memory compared to Resque.
#367 Celluloid Jul 18, 2012 | 11 minutes | Tools Celluloid puts an object-oriented spin on multi-threaded development. Here I cover the fundamental features of Celluloid in several examples. Subscribe to Watch Episode Tweet Show Notes 0 Comments Similar Episodes < Previous Episode Sub...
Latency: The New Web Performance Bottleneck Posted by igrigorik on July 19, 2012 — 0 comments 'High speed' connectivity is not all about bandwidth, latency is the new bottleneck for most web browsing applications - especially, for the mobile web. An overview of what latency is, how it...
Introduction to Data Visualization with Javascript for Rails Devs Posted by schneems on July 19, 2012 — 0 comments If you've played with rails but you're still pretty new to javascript come watch some videos and do a quick exercise on how to doData Visualization with Javascript using ...
Pluto - Another Planet Generator in Ruby Posted by geraldbauer on July 19, 2012 — 0 comments Lets you build web pages from published web feeds. Pass in one or more planet configuration files to the command line tool e.g. pluto ruby.yml . This will 1) fetch all feeds listed in ruby.yml...
July 18, 2011 Tagged: backbone.js workshops ruby on rails javascript Comments (View) Backbone.js on Rails: a new dynamic ebook We recently tweeted that this was the “summer of backbone.js”. 75% of our client projects are now using Backbone.js and Trajectory is using it heavily now as ...
Issues View all issues Summary Custom queries Documentation issues Open defects Open features Plugin issues Translation patches Feature #11445 Switch from Prototype to JQuery Added by Jean-Philippe Lang about 5 hours ago. Status: New Start date: Priority: Normal Due date: Assignee: Je...
Thursday, July 19, 2012 at 5:42AM Apple's app approval process is a real hurdle for anyone who wants to do rapid development of a project. I'm used to being able to deploy fixes many times in a day if need be. Fluid - Online editor to quickly mock up ioS or Android UIs. Safari/Chrome ...
ME TOO! and here is a backtrace. Using latest rvm (0.1.46), passenger, ruby 1.9.2-p0 (the new official release), latest rails master and bundler rc5. the trace shows that the correct bundler is used (from rvm ruby-1.9.2-p0 environment). "bundle check" reports nothing, "rails server" w...
create sub-plugin dynamically per tags, with template configuration and parameters
Hola, Estoy interesado en iniciar una comunidad de Ruby en Guadalajara Mexico. Antes de iniciar reuniones o cualquier otra actividad, me gustaría abrir este espacio para compartir ideas, sugerencias, problemas, etc. Gracias por sus comentarios Saludos
#147 Sortable Lists (revised) Oct 13, 2011 | 6 minutes | Views , Ajax Here I show how to use jQuery UI to make a sortable list and a "sort" action to handle the updating. Top it off with acts_as_list to make it feature complete. Subscribe to Watch Episode Tweet Show Notes ASCIIcast 57...
Wrap function definitions in wrapper functions Identify similar JavaScript code blocks Calculate similarity percentage between any two code blocks Compare code blocks to see how many specific tokens they differ by Extract the variant tokens by which similar code blocks differ Extract ...
Mechanize extends the power of Nokogiri allowing you to interact with multiple pages on the site: click links, submit forms, etc.
So how do you know when to use map or reduce on a collection? Simple. When iterating through an array, if you don’t want a return value from the operations, use each ; and if you’re looking for a return value, use the iterator method that delivers the type of value you want returned. ...
Second, notice that you don’t need to initialize a counter before using it. If you reference a key in an increment or decrement operation that doesn’t exist, it will be automatically vivified for you. Finally, as mentioned just a moment ago, numbers don’t appear anywhere in the list o...
> Does anyone know how to fix this? I want it to wait longer for > the web server to respond. Look in the docs/code and you shall find... OpenURI wraps net/http and net/https Looking in net/http finds these accessor methods: # Seconds to wait until connection is opened. # If the HTTP ...
NAME SYNOPSIS DESCRIPTION BUNDLE INSTALL --BINSTUBS ENVIRONMENT MODIFICATIONS RUBYGEMS PLUGINS bundle-exec(1) bundle-exec(1) NAME bundle-exec - Execute a command in the context of the bundle SYNOPSIS bundle exec command DESCRIPTION This command executes the command, making all gems sp...