22 May 2013

The Ruby Reflector

Topic

FIRST

  Source Favicon
By Sarah Milstein of Lessons Learned 15 days ago.
Email

a look . You may also know of her through the Head First book series , which has a winning pedagogical approach based on brain science that Kathy and her partner Bert Bates researched extensively. In other words, Kathy's got game as a speaker and as a teacher, and her methods are rooted in a deep understanding of how people work. Of note: Kathy wants to do this training on a volunteer basis, because it will be rewarding for her--which tells you something …

startuplessonslearned.blogspot.c Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 1 month ago.
Email

jQuery 2.0 Released - Make sure you read about the supported browser changes before you switch.

Let Nunes Do It - Easily extend and consume Rails instrumentation.

Coffee-Rails - First piece of Rails 4.0 to put out a non-beta 4.0.0 version, I think.

Amanda - Blog entine that yets you write in Markdown, save on Dropbox, and store in Redis.

afreshcup.com Read
  Source Favicon
Email

First, MyISAM, with MySQL 5.5, on the SEO data set: mysql: SELECT id, title, MATCH(title, body) AGAINST ('arizona business records' IN NATURAL LANGUAGE MODE) AS score FROM seo_test_myisam ORDER BY 3 DESC LIMIT 5; +------+-----------------------------------------------------------------------+--------------------+ | id | title | score | +------+-----------------------------------------------------------------------+--------------------+ …

mysqlperformanceblog.com Read
  Source Favicon
Email

I'd like to clarifying two things. First, DBD::mysql v3.0007 was released in September 2006, but this very old problem still exists today because CentOS 5 is still a popular Linux distro . So this isn't "breaking news", and Perl and DBD::mysql have handled UTF-8 correctly for nearly the last decade. Second, just a reminder: all Percona Toolkit tools that connect to MySQL have a -charset option and an "A" DSN option for setting …

mysqlperformanceblog.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 4 months ago.
Email

For ongoing updates on the rubygems.org situation, see their incident update document on Google Docs.

Rubygems.org compromised - Yes, it was, by another YAML parsing vulnerability. There's a lot of work going on (including rebuilding the site from scratch) and a lot of speculation. Personally, I wouldn't install any gems (except from trusted sources) until we see a new site and a post-mortem.

Sublime Text 3 First Look - A few things to know about …

afreshcup.com Read
  Source Favicon
By Lee Atchison of New Relic 4 months ago.
Email

* First is the Redis name we use to store the hash. Use a name that contains the day, so you end up generating a new hash each day to keep track of your results by day.

* Second is the hash key. Use visitor_id as the key into the hash.

* Third is the value of the hash. It's represented by an integer that starts at 0 and is incremented by the specified amount. In this case, we simply want to record a count of hits, so we increment by one.

The Redis EXPIRE command is used to remove …

newrelic.com Read
  Source Favicon
By Leigh Shevchik of New Relic 6 months ago.
Email

* :class_name — First part of metric name. Default is a current class

Here is a small example of custom background task implementation using JRuby thread actors.

ApplicationController : def enqueue_task(opts={}) job_params = { class_name: "Scheduler::#{self.class.name}", name: params[:action], params: params } Scheduler.enqueue(job_params) {yield} end

Scheduler:: WorkerActor : //job_params are stored in job.params after enqueue def process_job(job) …

newrelic.com Read
  Source Favicon
On ZURB 7 months ago.
Email

Sahil Lavingia, the First Designer of Pinterest

When Sahil Lavingia was a computer science student at USC, he was recruited by Ben Silbermann to get Pinterest off the ground. Soon Sahil was packing his bags and dropping out of college to become one of the founding members of the popular pinboard site.

As the first designer for Pinterest, Sahil plugged away at the front-end code to building the iPhone app. He was instrumental in creating the look and feel of the site that …

zurb.com Read
  Source Favicon
By Peter Cooper of Ruby Inside 10 months ago.
Email

Sex Machine: Get Gender from First Name

This unfortunately named gem leans on a open source name-to-gender tool to give similar functionality to Rubyists.

jruby-memcached: Surprisingly, A Memcached Libary for JRuby

classy_enum: Class Based Enumerator Gem for Rails

Adds class-based enumerator functionality to ActiveRecord attributes.

Hamster: Efficient, Immutable, Thread-Safe Collection Classes

Rubyception: A Realtime Rails Log…

rubyinside.com Read
  Source Favicon
By Peter Cooper of Ruby Inside 11 months ago.
Email

Lessons Learned: The First Six Months of Running a Rails Consultancy

Watching and Listening

Facebook Authentication in Rails (RailsCasts)

Ryan Bates shows us how to create a new Facebook application, configure it, add authentication with the omniauth-facebook gem and top it off with client-side authentication using the JavaScript SDK.

Complex Made Simple: Sleep Better with TorqueBox

At RailsConf 2012, Lance Ball spoke about TorqueBox, …

rubyinside.com Read