Archives - 18 March 2012, Sunday

  • Made in China

    mislav.uniqpath.com 18 Mar '12, 11pm

    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...

  • どうやって環境・組織を作っていくのか?世界的な課題である。PIVOTAL LABSいわく、「席の座り方(座席の配置)一つでもコミュニケーションを改善することができる」 #lwseminar

    Pivotal Labs: Home

    pivotallabs.com 18 Mar '12, 4pm

    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

    rubyflow.com 18 Mar '12, 10pm

    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

    rubyflow.com 18 Mar '12, 6pm

    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...

  • Open Source Report #7

    afreshcup.com 18 Mar '12, 2pm

    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...

  • Doublet Pool photo: /cc @duncan

    Clarkware › Doublet Pool

    clarkware.com 18 Mar '12, 9pm

    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...

  • Detecting device size & orientation in CSS

    mislav.uniqpath.com 18 Mar '12, 3pm

    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...

  • 'Rack Documentation'

    rack.rubyforge.org 18 Mar '12, 2am

    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

    rubygems.org 18 Mar '12, 1pm

    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)

    railscasts.com 18 Mar '12, 10pm

    #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...

    Related:
    1. #164 Cron in Ruby (revised) railscasts.com 18 Mar '12, 9pm
  • #303 Publishing a Gem (pro)

    railscasts.com 18 Mar '12, 10pm

    #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...

  • Use Bundler's binstubs!

    robots.thoughtbot.com 18 Mar '12, 11am

    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...

    Related:
    1. bundler rubygems.org 24 Mar '12, 1am
  • Trivium: 18mar2012

    chneukirchen.org 18 Mar '12, 11pm

    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...

  • #164 Cron in Ruby (revised)

    railscasts.com 18 Mar '12, 9pm

    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.

  • PufferPages - простая CMS-надстройка — RubyFlow.ru

    rubyflow.ru 18 Mar '12, 4pm

    Я работаю с руби и рельсами достаточно долго и единственное, что меня в них всегда смущало - я не мог найти подходящей цмски. Идея в том, что практически в каждом проекте существуют несколько контентных страниц, типа about_us или contacts, но они очень слабо ложатся на идеологию рельс...

  • #301 Extracting a Ruby Gem (pro)

    railscasts.com 18 Mar '12, 10pm

    #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 ...

  • add_index (ActiveRecord::ConnectionAdapters::SchemaStatements)

    apidock.com 18 Mar '12, 2pm

    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...

  • Ruby5:

    ruby5.envylabs.com 18 Mar '12, 11am

    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 - быстрый JSON-парсер/дампер — RubyFlow.ru

    rubyflow.ru 18 Mar '12, 1pm

    Oj или Optimized JSON - это библиотека, которая создавалась как более быстрая альтернатива Yajl и другим общепризнанным парсерам JSON. Oj парсит JSON в два раза быстрее, чем Yajl, а "пишет" (сериализует объекты) в три раза быстрее, чем Yajl. Oj имеет четыре режима сериализации: :stric...

  • wisepdf – wkhtmltopdf done right — RubyFlow.ru

    rubyflow.ru 18 Mar '12, 9pm

    wisepdf – wkhtmltopdf done rightIgor Alexandrov Всем привет! Предлагаю вам еще один свой Gem. После долгого общения с прекрасными обертками для wkhtmltopdf – wicked_pdf и PDFKit, я всё-таки решил написать свой. И как обычно бывает в таких ситуациях – попытаться сделать это правильнее,...

  • Is Set#freeze broken?

    ruby-forum.com 18 Mar '12, 2am

    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...

  • DataMapper - Associations

    datamapper.org 18 Mar '12, 2pm

    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 ...

  • Support: rubyforge-help

    rubyforge.org 18 Mar '12, 9am

    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...

  • #327 MiniTest with Rails (pro)

    railscasts.com 18 Mar '12, 4pm

    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 ...

  • insert (String)

    apidock.com 18 Mar '12, 5am

    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...