#Red Dot Ruby Conf 2012
##Day 2 Summary of Reddot Ruby Conf 2012
###Due Props: Obie Fernandez - Redis on Ruby
- When to consider using Redis?
- SQL is overkill
- update-only data
- non-transactional needs
#Red Dot Ruby Conf 2012
##Day 2 Summary of Reddot Ruby Conf 2012
###Due Props: Obie Fernandez - Redis on Ruby
#Red Dot Ruby Conf 2012
##Day 1 Summary of Reddot Ruby Conf 2012
###Google: Ilya Grigorik - Building a Faster Web
####Learned a lot of metrics from Google's Ilya Grigorik:
``` | |
Snowy: ~/src/t:master$ be rake spec | |
Could not find json-1.7.0 in any of the sources | |
Run `bundle install` to install missing gems. | |
Snowy: ~/src/t:master$ git status | |
# On branch master | |
nothing to commit (working directory clean) | |
Snowy: ~/src/t:master$ git pull origin master | |
remote: Counting objects: 43, done. | |
remote: Compressing objects: 100% (18/18), done. |
Results for RVM debug: | |
system: | |
rvm 1.10.3 by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.beginrescueend.com/] | |
<ul id="opp-items"> | |
<li class="opp-featured"> | |
<img class="opp-feat-image" src="images/img-help-ondoy.jpg" /> | |
<h2 class="opp-feat-title">Help Ondoy Victims Today!</h2> | |
<img src="images/feat-line.gif" /> | |
<span class="opp-feat-type">Children & Youth</span> | |
<p class="opp-feat-date">June 1, 2011 - July 31, 2011</p> | |
<p class="opp-feat-number">21 Volunteers needed</p> | |
<a href="event-1.html"><img src="images/btn-learnmore.gif" border="none" /></a> | |
</li> |
<div id="opp-items"> | |
<div class="opp-featured"> | |
<div class="opp-feat-image"><img src="images/img-help-ondoy.jpg" /></div> | |
<div class="opp-feat-title"><h2>Help Ondoy Victims Today!</h2></div> | |
<img src="images/feat-line.gif" /> | |
<div class="opp-feat-type">Children & Youth</div> | |
<div class="opp-feat-date">June 1, 2011 - July 31, 2011</div> | |
<div class="opp-feat-number">21 Volunteers needed</div> | |
<a href="event-1.html"><img src="images/btn-learnmore.gif" border="none" /></a> | |
</div> |
M = 5 | |
XS = [1,3,4,5,9] | |
YS = [2,5.2,6.8,8.4,14.8] | |
#XS = [0,1,2,3,4] | |
#YS = [3,6,7,8,11] | |
def calc_w1 | |
((M * summation_of_x_and_y) - (summation_of_x * summation_of_y)) / ((M * summation_of_x_squared) - (summation_of_x * summation_of_x)) | |
end |
.tooltip | |
position: absolute | |
width: 250px | |
left: 0 | |
top: 0 | |
background-color: black | |
color: white | |
z-index: 999 | |
border: 2px solid #000 | |
+border-radius(5px) |
def link_to_with_current(*args) | |
html_class = args[2][:class] if args[2] | |
path = args[1].is_a?(Array) ? polymorphic_path(args[1]) : args[1] | |
if current_page?(path) | |
if html_class.nil? | |
html_class = "current" | |
else | |
html_class << " current" | |
end | |
if args[2] |
require 'rubygems' | |
require 'mechanize' | |
require 'net/http' | |
require 'json' | |
#get the tmbundle forkers | |
url = "http://github.com/api/v2/json/repos/show/cucumber/cucumber-tmbundle/network" | |
cuke_tmbundle_forkers = JSON.parse(Net::HTTP.get_response(URI.parse(url)).body).first[1].map{ |x| x["owner"] } | |
agent = Mechanize.new |