20 April 2014

The Ruby Reflector

Topic

Ruby on Rails

  Source Favicon
By David of Signal vs. Noise 6 days ago.
Email

In Rails, that's the almighty X-Runtime header — reported to the 6th decimal of a second, for that extra punch of authority. A clear target, easily measured, and in that safe realm of your own code to make it appear fully controllable and scientific. But what good is saving off milliseconds for a 50ms internal target, if your shit (or non-existent!) CDNs are costing you seconds in New Zealand? Pounds, not pennies, is where the wealth is.

Yet that's still the easy, level one, …

37signals.com Read
  Source Favicon
By Arun Gupta of Videos matching: rubyonrails over 4 years ago.
Email

Track your running miles ... JRuby, Ruby-on-Rails, GlassFish, NetBeans, MySQL, YUI

A simple web application that allows to track your running miles and generate charts to monitor progress.

From: arungupta

Views: 440

0 ratings Time: 07:22 More in Science & Technology

youtube.com Read
  Source Favicon
Email

You can also use delegate_method for usage of Rails's delegate method or other forms of delegation: class Human < ActiveRecord::Base has_one :robot delegate :work, to: :robot

# alternatively, if you are not using Rails def work robot.work end

def protect robot.protect('Sarah Connor') end

def speak robot.beep_boop end end

# RSpec describe Human do it { should delegate_method(:work).to(:robot) } it { should delegate_method(:protect).to(:robot).with_arguments('Sarah …

robots.thoughtbot.com Read
  Source Favicon
By Kunto Aji Kristianto of Railsmine 7 days ago.
Email

While implementing Linkedin share-button on my Rails 4 application with turbolinks enabled, I encountered problem how to reload Linkedin share-button correctly because my code always showing "duplicate in.js loaded, any parameters will be ignored".

After a little googling , I found that I just need to flush old Linkedin instance by "delete IN". Here is my solution to implement Linkedin share-button with Turbolinks in Rails 4.0.0.

Official Implementaion

railsmine.net Read
  Source Favicon
By Stephen Delano of Chef Blog 11 days ago.
Email

…address several identified potential Denial of Service vulnerabilities in the Rails framework.

[ libcurl] Patch for wrong re-use of connections ( CVE-2014-0138)

[ libcurl] Patch for address wildcard certificate validation ( CVE-2014-0139)

[ libcurl] Patch for not verifying certs for TLS to IP address / Darwinssl ( CVE-2014-1563)

[ libcurl] Patch for not verifying certs for TLS to IP address / Winssl ( CVE-2014-2522)

[ openssl] Patch for heartbeat extension …

opscode.com Read
  Source Favicon
By Patrick of Kalzumeus Software 11 days ago.
Email

CVE-2013-0156 was the Rails YAML deserialization vulnerability. "Oh! I remember that one!", said the technologists in the room. Your bosses don't. Your bosses / stakeholders / customers / family / etc also cannot immediately understand, on hearing the words " Rails YAML deserialization vulnerability", that large portions of the Internet nearly died in fire .

Compare " Heartbleed" to CVE-2014-0160, which is apparently the official classification …

kalzumeus.com Read
  Source Favicon
By miraculous1 of mir.aculo.us 12 days ago.
Email

If you're using cookie-based sessions in Rails (or similar environments) you must switch to a new encryption secret. Your current secret may have been compromised, allowing attackers to log in as anyone to your service. Unfortunately this means all your users will have to log in again.

Ask your users to change their passwords. As this security issue means that server memory may have been compromised as well as past traffic could be decrypted, passwords should be considered to be compromised. …

mir.aculo.us Read
  Source Favicon
By Lucas Mazza of Plataformatec Blog 12 days ago.
Email

…more important idea: the promise of a default approach for environment aware custom configuration on Rails applications. Over the years the community created several ways to manage such configuration so every app out there deals with this differently, but now we can use the Rails default as a standard just like we do with the app folder or the routing patterns, taking the configuration madness outside the list of things to worry about when working with Rails. So instead of dealing with multiple …

blog.plataformatec.com.br Read
  Source Favicon
Email

rails backend . The plugin became reasonably popular and was being used in many Rails apps.

Recently we upgraded it to include an efficient full-sized, drag & drop calendar functionality within a Rails Engine and release it as a gem . With Rails 4 deprecating Rails:: Plugin( commit ) this would come really handy.

It easily blends within a rails application. Provides a great UI experience with the use of AJAX to fetch events on-the-fly for each …

vinsol.com Read
  Source Favicon
By Patrick of Kalzumeus Software 17 days ago.
Email

Tarsnap is the world's best secure online backup service. It's run by Colin Percival, Security Officer Emeritus at FreeBSD, a truly gifted cryptographer and programmer. I use it extensively in my company, recommend it to clients doing Serious Business (TM) all the time, and love seeing it successful.

It's because I am such a fan of Tarsnap and Colin that it frustrates me to death . Colin is not a great engineer who is bad at business and thus compromising …

kalzumeus.com Read