There is a particular detail that is most interesting to me in the aftermath of Mr. Daisey and the Apple factory episode of This American Life and its subsequent retraction , and that is that even the shameless, fabricated and dramatized Apple bashing was a high point for both This Am...
Movember Mohawks This year Pivotal Labs enlarged the definition of Movember to include mohawks, a mustache for your head. Watch as the... [More ] Hadoop for Rubyists Is your MySQL groaning under too much data? Tired of waiting hours for analytics rake tasks? Loren Siebert discusses le...
wisepdf – wkhtmltopdf done right Posted by alexandrov on March 18, 2012 — 0 comments After a couple of weeks spent with WickedPDF and PDFKit I understood, that I can make something better. And it is called wisepdf! It works with Rails 2.3 and above, it correctly supports Assets Pipeli...
Decoupling Persistence from your Domain Posted by moonmaster9000 on March 18, 2012 — 0 comments A method for using either inheritance (with naming conventions) or mixins to segregate persistence concerns from your domain models. README / example code on github here . Blog post / comme...
Confession time : my string of daily contributions to open source crashed and burned shortly after the last Open Source Report. Things heated up at two of my paying clients, to the point where I've been stumbling out of bed, having breakfast, and diving right into paid code. Time to g...
Duncan , Nicole, and I spent a delightful afternoon last fall wandering around the hot springs of the Upper Geyser Basin in Yellowstone. Most visitors to this area come for the big water works: Old Faithful. But just a short walk from the crowds you'll find equally-impressive pools of...
Gone are the days when we could safely assume that most our site visitors would have at least a 1024px-wide screen resolution. With smartphones and tablet computers on the rise, you visitors could also be browsing the web with screen widths ranging from 320px upwards. Does your site l...
Alex Beregszaszi, Alexander Kahn, Anil Wadghule, Aredridel, Ben Alpert, Dan Kubb, Daniel Roethlisberger, Matt Todd, Tom Robinson, Phil Hagelberg, S. Brent Faulkner, Bosko Milekic, Daniel Rodríguez Troitiño, Genki Takiuchi, Geoffrey Grosenbach, Julien Sanchez, Kamal Fariz Mahyuddin, Ma...
gothonweb 0.0.1 originates from "learn ruby the hard way" install gem install gothonweb Download Documentation Subscribe Stats Authors pengquankun 4 total downloads 4 for this version Owners Bundler gem "gothonweb", "~> 0.0.1" Versions 0.0.1 March 18, 2012
#72 Adding an Environment (revised) Jan 19, 2012 | 4 minutes | Rails comes with three environments: development, test, and production, but it is easy to add your own. Here I show how to add a separate staging environment and how to start up Rails under this. Subscribe to Watch Episode...
#303 Publishing a Gem Nov 28, 2011 | 11 minutes | Tools In this second part on making a gem, you will learn how to publish a gem by releasing it to rubygems.org, testing it through Travis CI, documenting it on RubyDoc.info, and advertising it on various sites. Subscribe to Watch Episo...
普通の意味で言うとスレッドなんだけども、マーキングのスレッドが 2 つと専用のデータタイプ別コレクションのスレッドが同時に走って、必要なやつからどんどん、どんどん足りなくなったやつから優先度で走るわけ。で、GC のマーキングが 2 つあるのはですね、snapshot at the beggining じゃなくて、dynamic のやつな方なので、ようするに pointer が付け替えられたときに、snapshot は前のやつを取っとくでしょ?
January 5, 2012 Tagged: rvm bundler binstubs Comments (View) Use Bundler’s binstubs! If you’re not using bundler’s binstubs with RVM integration yet, you should give it a try! This means you don’t have to type “bundle exec” ever again. Setup: One time, run chmod +x $rvm_path/hooks/aft...
My Git Habits , by Mark J. Dominus. Quite individual, but very thoughtful. The Man Who Broke Atlantic City , “Don Johnson won nearly $6 million playing blackjack in one night, single-handedly decimating the monthly revenue of Atlantic City’s Tropicana casino.” Exciting. The Bisexualit...
Cron is a common solution for recurring jobs, but it has a confusing syntax. In this episode I show you how to use Whenever to create cron jobs using Ruby. Some alternative scheduling solutions are also mentioned.
Я работаю с руби и рельсами достаточно долго и единственное, что меня в них всегда смущало - я не мог найти подходящей цмски. Идея в том, что практически в каждом проекте существуют несколько контентных страниц, типа about_us или contacts, но они очень слабо ложатся на идеологию рельс...
#301 Extracting a Ruby Gem Nov 21, 2011 | 16 minutes | Plugins , Testing In this episode I show how to extract a Ruby Gem from an existing Rails application, test it with RSpec and Supermodel, and add a Railtie. Subscribe to Watch Episode Tweet Show Notes ASCIIcast 5 Comments Similar ...
Adds a new index to the table. column_name can be a single Symbol, or an Array of Symbols. The index will be named after the table and the column name(s), unless you pass :name as an option. Examples Creating a simple index add_index (:suppliers, :name) generates CREATE INDEX supplier...
Episode #255 - March 16th, 2012 March 16, 2012 Locally precompile assets, Enumerable::Lazy, rspec 2.0 RC, new ruby and rails doc site, decent exposure, DDD for Rails Devs, and a ruby wrapper for the ESPN API. Episode #254 - March 13th, 2012 March 13, 2012 Compass 0.12 gets a speed boo...
Oj или Optimized JSON - это библиотека, которая создавалась как более быстрая альтернатива Yajl и другим общепризнанным парсерам JSON. Oj парсит JSON в два раза быстрее, чем Yajl, а "пишет" (сериализует объекты) в три раза быстрее, чем Yajl. Oj имеет четыре режима сериализации: :stric...
wisepdf – wkhtmltopdf done rightIgor Alexandrov Всем привет! Предлагаю вам еще один свой Gem. После долгого общения с прекрасными обертками для wkhtmltopdf – wicked_pdf и PDFKit, я всё-таки решил написать свой. И как обычно бывает в таких ситуациях – попытаться сделать это правильнее,...
On Nov 10, 9:43 pm, Vasyl Smirnov <vasyl.smir...@gmail.com> wrote: > I've tried to freeze a Set instance, and it turned out not working: The following fixes the problem: require 'set' # Patch for Set to make freeze work. class Set def freeze @hash.freeze self end def frozen? @hash.fro...
Associations are a way of declaring relationships between models, for example a blog Post "has many" Comments, or a Post belongs to an Author. They add a series of methods to your models which allow you to create relationships and retrieve related models along with a few other useful ...
By: Thibaut Barrère Can I set up a redirect 301 on a project? [ reply ] 2012-03-18 09:11 Hello, as I have set up a new website at http://www.activewarehouse.info , I'd like to enable a permanent redirect from both urls: http://activewarehouse.rubyforge.org/ http://activewarehouse.ruby...
Ryan, do you already use MiniTest instead of the "classic" stack around RSpec ect as your standard approach? Or does it depends and differ from project to project? Are there still some gaps, some gems of the testing-ecosystem (like guard, spork, vcr, jasmine ect) that do not work yet ...
It’s very easy. First we begin our placeholder with “%”, then we specify a zero (0) to signify padding with zeros. If we omitted this zero, the number would be padded with spaces instead. When we have done that, just specify the target length of the string. At last a single “d” is pla...