1

The Ruby Show #126: Jason's Helper

In this episode, Jason and Dan congratulate the Rails core team for their fantastic release timing (right before we air instead of after). About 10 hours ago From The Ruby Show

1

Efficiency of find -exec vs. find | xargs

This is a quick tip for anyone writing a cron job to purge large numbers of old files. Without xargs, this is a pretty common way to do such a purge, in this case of all files older than 31 days: find /path/to/junk/files -type f -mtime +31... about 18 hours ago From End Point

3

Spree: Working with Sample Product Data

It's taken me a bit of time to gain a better understanding of working with Spree sample data or fixtures, but now that I am comfortable with it I thought I'd share some details. The first thing you might wonder is why should you even care about... 8 days ago From End Point

1

Ruby on Rails 3 Tutorial book (including PDF downloads)

I'm pleased to announce the availability of the Ruby on Rails 3 Tutorial book, a version of the Rails Tutorial book fully up-to-date with Rails 3.0. As always, the book is available for free online, and as of today it is also available for... 1 day ago From Rails Tutorial News

1

Episode #97 - July 27, 2010

Ilya Grigorik talks Fibers, while fake_arel, Rack-Gist, and Coloration get introduced. Also, Choco and some helpful Git tips sneak their way into this episode of Ruby5. Listen to this episode on Ruby5 Become a sponsor of Ruby5 ... 2 days ago From Ruby5

1

Localize $@ in DESTROY

I have been conditioned now for many years to trust the relationship of $@ to its preceding eval. The relationship goes something like this: if you have string or block eval, immediately after its execution, $@ will either be false or it will... 2 days ago From End Point

1

What’s New in Bundler 1.0.0.rc.1

Taking into consideration the huge amount of feedback we received during the Bundler 0.9 series, we streamlined Bundler 1.0 significantly, and made it fit user expectations better. Whether you have used bundler before or not, the easiest way to... 3 days ago From Katz Got Your Tongue?

1

Standup 7/23/2010: Workin' in a RubyMine, going down-down

"I've upgraded Firefox to 3.6 and my selenium and cucumber specs are busted. Anyone else have this issue?" The selenium-rc jar that comes with webrat needs to be manually updated to the latest version. See... 6 days ago From Pivotal Blabs

1

Episode #96 - July 23, 2010

Briantree gateway gem, Fabrication, Green Letters, Use Bundler in your Gems, Integrum's code test, redis-load, and capistrano-spec! Listen to this episode on Ruby5 This episode is sponsored by NewRelic RPM his episode is... 6 days ago From Ruby5

1

Standup 7/22/2010: XML JS scrimmage. Go!

Ask for Help "Is there a good heap analyzer to debug some memory issues in our app?" Some options to look into include rubyprof, valgrind, bleakhouse and memprof. "Anyone else having problems with RubyMine 2.02 allowing the... 7 days ago From Pivotal Blabs

1

Handy Ruby one liners by David Thomas

HANDY ONE-LINERS FOR RUBY November 16, 2005 compiled by David P Thomas version 1.0 Latest version of this file can be found at: www.fepus.net/ruby1line.txt Last Updated: Wed Nov 16 08:35:02... 7 days ago From Axon Flux

1

Standup 7/21/2010: Heroku Logs have Shorter Memory than a Mayfly

Ask for Help "Is there a way to get better access to the logs in Heroku?" heroku logs only displays the last 100 lines; This isn't even enough for the full stack trace of the last error in many cases. One team is having problems... 8 days ago From Pivotal Blabs

1
The Road to Passenger 3: Technology Preview 4 – Adding new features and rem...

In the past two years that we’ve been developing Phusion Passenger, we’ve received not only many feature requests but also many criticisms about certain limitations. Some feature requests have been implemented in Phusion Passenger 2.x, some... about 1 hour ago From Phusion Corporate Blog

1
Distributed Transactions and Two-Phase Commit

The typical example of a transaction involves Alice and Bob, and their bank. Alice pays Bob $100, and the bank needs to debit Alice and credit Bob. Easy enough, provided the server doesn't crash. But what happens if the bank debits Alice, and... about 4 hours ago From End Point

Twitter

rbates Mibew Messenger is some of the cleanest PHP code I've ever seen. Works great too. mibew.org/ 32 minutes ago [RT]

rbates Liking my new wallet. It's just big enough to hold everything I need, and no bigger. amzn.to/d1paGh about 1 hour ago [RT]

bansalakhil "A few git tips you didn't know about" tinyurl.com/32umtry #git #yam about 13 hours ago [RT]

merbist so Sinatra is allocating a bunch of bignums for every requests, I guess that will require more investigation tomorrow /cc @bmizeranyy about 14 hours ago [RT]

merbist GC cycle stats: [9%] 2268 freed bignums. #WTF about 15 hours ago [RT]

MikeG1 The next time a customer brings me a domain registered with GoDaddy I'm tearing up the contract. about 20 hours ago [RT]

MikeG1 Array of n elements, need to select 4 at random with no duplicates. Best ruby way to do it? about 22 hours ago [RT]

lifo HA! What are the odds ?! Minchin show currently on E4+1 - first I've seen him on the TV. about 23 hours ago [RT]

lifo <3 Tim Minchin http://www.youtube.com/watch?v=78XrI_2bPVA about 23 hours ago [RT]

dhh If you can't make money off 30 million units sold, you're doing it wrong. LG posts Q2 loss: bit.ly/aE3x6i 1 day ago [RT]

MikeG1 Dear Integra: bit.ly/bcCckc is not a confidence builder. 1 day ago [RT]

merbist I'll try to write a blog post about my findings on how to deal with extremely high/concurrent non-cacheable requests using Ruby. 1 day ago [RT]

merbist profiling Ruby 1.9's GC and being horrified by how much ActiveRecord is giving the GC a hard time (and that's without Rails) 1 day ago [RT]

MikeG1 Anyone have any experience with bit.ly/ditGcI ? 2 days ago [RT]

rbates Must... Resist... StarCraft II.... 2 days ago [RT]

lifo Runkeeper/iPhone fail :-( runkeeper.com/user/lifo/activity/13531525 It was just 2 miles not 6.35! At least it got the timing right. 2 days ago [RT]

lifo More MetaWhere improvements from @erniemiller - bit.ly/bEJtDH 2 days ago [RT]

rbates What is 26 years old and 5,822 lines of Pascal in a single file? It's the MacPaint source code! bit.ly/aDIYO5 2 days ago [RT]

MikeG1 Mom: "These hands are dirty. You should wash them." 6yo: "I tried that one time." 2 days ago [RT]

bansalakhil jQuery.Syntax: Simple jQuery syntax highlighter tinyurl.com/2vpqa3v #jQuery #yam 2 days ago [RT]

MikeG1 "The owners of the Ritz new nothing of the sale" - really now, BBC. bit.ly/d1eON6 2 days ago [RT]

4
An Introduction to Refinery CMS – A Rails Content Management System

Refinery CMS is an open source Ruby on Rails CMS for small businesses. The project was originally closed source for 4 years at Resolve Digital until it was finally released to the open source community in mid 2009. Refinery focuses on doing... 7 days ago From Rails Inside

1
PostgreSQL: per-version .psqlrc

File this under "you learn something new every day." I came across this little tidbit while browsing the source code for psql: you can have a per-version .psqlrc file which will be executed only by the psql associated with that major version. ... about 23 hours ago From End Point

1
Grep anything from your Enumerables

grep is a nice little method to select elements from an Enumerable that match a certain pattern. For example, you can look for string- or regular expression matches: ["Test", "Foo", "Bar"].grep 'Foo' => ["Foo"] ["Test", "Foo", "Bar"].grep... 1 day ago From Ruby Quicktips

1
PostgreSQL: Dynamic SQL Function

Sometimes when you're doing something in SQL, you find yourself doing something repetitive, which naturally lends itself to the desire to abstract out the boring parts. This pattern is often prevalent when doing maintenance-related tasks such as... 1 day ago From End Point

1
Drink#65: Your Ruby on Rails Juice

Lemonade by floodkoffRiding Rails: Rails 3.0: Release candidate!: David announces the release of Ruby on Rails 3.0 RC.Episode 223: Charts: Ryan Bates with another great post on Ruby on Rails 3 controller changes.What’s New in Bundler... 2 days ago From Drink Rails

1
Standup 07/26/2010: The Bleeding Edge of Bundler

Interesting Things Bundler 1.0.0.rc.1 was released - try it out and help find any issues! There was a warning that running thin in dev mode can cause all requests to be cached in memory... not so thin. Running in production mode doesn't... 2 days ago From Pivotal Blabs

1
Episode 224: Controllers in Rails 3

Embedded flash notices, permanent cookies, and the details of respond_with are in this episode. 3 days ago From Railscasts

1
PostgreSQL: Migration Support Checklist

A database migration (be it from some other database to PostgreSQL, or even from an older version of PostgreSQL to a nice shiny new one) can be a complicated procedure with many details and many moving parts. I've found it helpful to construct a... 6 days ago From End Point

1
The Ruby Show #125: Curator of Awesomeness

Jason amazes Dan with his awesome Ruby news and link curation. 7 days ago From The Ruby Show

1
How to initialize a multidimensional Array

Array.new takes a block you can use to initialize a multidimensional Array: a = Array.new(8) { Array.new(8) } This example will create a two-dimensional Array with a size of 8 × 8 elements. (via Nooby question : multidimensional arrays) 7 days ago From Ruby Quicktips

1
A Gentle Introduction to Isolation Levels

Hello all, Our latest post is from a special guest and Engine Yard partner Xavier Shay. He'll be running a pair of training sessions on "using your database to make your Ruby on Rails applications rock solid" at Engine Yard's San Francisco... 8 days ago From Engine Yard

1

Everyone Who Tried to Convince Me to use Vim was Wrong

A couple weeks ago, I took the plunge and switched to vim (MacVIM, to be precise). It wasn’t the first time I tried to make the switch, and I had pretty much written it off entirely. Why? Because the past few times I tried switching to... about 16 hours ago From Katz Got Your Tongue?

2

Learn how to build AWESOME mobile HTML5 apps

Want to learn how to build mobile web apps that use advanced CSS features like gradients and transformations, and HTML5 features like canvas, touch, audio, 2D and 3D animations, and more? Like you’ve seen on everytimezone.com and... 3 days ago From mir.aculo.us

1

Oh, that's why you should use Varnish and not Squid.

The really short answer is that computers do not have two kinds of storage any more. It used to be that you had the primary store, and it was anything from acoustic delaylines filled with mercury via small magnetic dougnuts via transistor... about 23 hours ago From Axon Flux

1

Deploying to Heroku with Rails 3.0.0.rc

The Ruby on Rails Tutorial book uses the latest version of Rails, which is the current release candidate of Rails 3.0.0.rc. Unfortunately, at the time of this writing, you can't deploy applications to Heroku using the Rails release candidate... about 23 hours ago From Rails Tutorial News

1

Drink#66: Your Ruby on Rails Juice

Grep anything from your Enumerables: Nice little tip to simplify enumerable select.Deploying Your Ruby on Rails Application Using Git and Capistrano ...: Cameron shares a capistrano deploy file for the community.Mailman from RSoC: Read emails... 1 day ago From Drink Rails

ARCHIVES

July
27282930
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
293031
1

When JavaScript makes no sense

Here are some of the more weird things I’ve found over the years when using JavaScript. My most favorite quirk ever is: typeof NaN // => number Recently, I stumbled upon the “magic increasing number”: ... 1 day ago From mir.aculo.us

1

Burger King

Me: can I have a Whopper meal with diet coke, but with onion rings instead of chips? BK: sorry, we cannot do that ME: Ok, can I have a whopper burger on its own, diet coke, and onion rings? BK: Ok … Price of chips: 1.99 Price of onion... 2 days ago From Mendable

1

Rails 3 RC!

Ask for Help "What good OpenID solutions are there for rails?" Janrain provides a service and the rpx_now gem that can handle a lot of the OpenID logic for you. Interesting Things You can use rvm with the --rvmrc --create... 2 days ago From Pivotal Blabs

1

Ruby LipDub – The Making Of!

As some of you remember a while ago our super-talented Ruby on Rails Team made a Ruby LipDub. We had loads of fun while shooting it and have a ton of behind-the-scenes material. Now, it’s the time to share it. Ladies and Gents, that’s... 2 days ago From Applicake

1

Rails 3.0: Release candidate!

High off Baltimore Pandemic and Yellow Tops, I believe we promised a release candidate shortly after RailsConf. As things usually go in open source, we gorged ourselves on fixes and improvements instead. But all to your benefit. We’ve had 842... 3 days ago From Ruby on Rails.org

1

Returning

schmidt-happens: Ruby/Rails never ceases to amaze me. Once again while digging around in the source code of Rails I came across Object#returning. Let me introduce you to this little gem. If you have been writing code for any amount of time... 4 days ago From Ruby Quicktips

1

August 3rd

We are going to be opening Harmony’s doors on August 3rd. It has been a long time coming and I am excited/nervous about the launch, but that is no reason to keep things locked up. We already have over 60 live sites and several paying... 6 days ago From RailsTips

1

Marcin at Euruko – a conference debut

I was asked to write a few words about my Euruko presentation (Vimeo video here). It was an amazing experience so I thought it would be a great opportunity to share it. If you’re interested, you can find the code for the presentation here and... 6 days ago From Applicake

1

do it like rake

If you must require RubyGems in your Ruby library, do it like Rake: begin require 'rake' rescue LoadError require 'rubygems' require 'rake' end Everyone wins. 7 days ago From ones zeros majors and minors

1

One team, one Tracker project

I often hear questions from Pivotal Tracker users about how to organize teams and projects. We also see many requests for features that would make it easier to see stories from across multiple projects. Tracker is designed for full immersion... 7 days ago From Pivotal Blabs

1

Drink#64: Your Ruby on Rails Juice

Lemonade and Lime by nickwheelerozEmail validation in Ruby On Rails without regexp « La rolls des blogs: Hallelujah shares his email validation example code that doesn't use regular expressions and uses a Rails 3 way of custom... 8 days ago From Drink Rails