Because loading gems can take longer than you think
Now available as a gem - get it here
#!/usr/bin/env ruby | |
# This interactive script decodes the _session cookie contents of the Rails | |
# Session Store. It can be useful when debugging session-related problems. | |
# Be aware that Firefox doesn't update the cookie contents on every request when | |
# you keep the according dialog open. If you have to debug HTTP regularly, I can | |
# recommend the Charles Web Debugging Proxy (http://www.charlesproxy.com/) | |
puts("Loading...") | |
Signal.trap("INT") { puts "\n" ; exit } |
PCRE (required by Nginx) not installed, downloading it... | |
# wget -O /tmp/ubuntu-passenger-7717/pcre.tar.gz ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz | |
--2011-12-15 18:38:20-- ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz | |
=> `/tmp/ubuntu-passenger-7717/pcre.tar.gz' | |
Resolving ftp.csx.cam.ac.uk... 131.111.8.80 | |
Connecting to ftp.csx.cam.ac.uk|131.111.8.80|:21... connected. | |
Logging in as anonymous ... Logged in! | |
==> SYST ... done. ==> PWD ... done. | |
==> TYPE I ... done. ==> CWD (1) /pub/software/programming/pcre ... done. | |
==> SIZE pcre-8.12.tar.gz ... done. |
# set max_body_size and http_basic_auth in your nginx config | |
require 'rubygems' | |
require 'sinatra' | |
get '/' do | |
"none ya business" | |
end | |
Because loading gems can take longer than you think
Now available as a gem - get it here
##Realtime Analytics
http://www.mongodb.com/presentations/real-time-analytics-mongodb-webinar
http://blog.mongohq.com/first-steps-of-an-analytics-platform-with-mongodb/
http://rubayeet.wordpress.com/2013/12/29/web-analytics-using-mongodb-aggregation-framework/
http://docs.mongodb.org/ecosystem/use-cases/pre-aggregated-reports/
Comparison of GeoMesa and GeoWave (single none configuration)
# This simplest thing is to clone Jim's repo (https://github.com/jimweirich/gilded_rose_kata) and then | |
# put this file in the root directory. | |
gem 'minitest', '~> 4.7' | |
require "minitest/autorun" | |
require "minitest/reporters" | |
MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new | |
require_relative './gilded_rose' |