- steelcase leap - http://www.steelcase.com/en/products/category/seating/task/leap/pages/overview.aspx
- humanscale freedom - http://www.humanscale.com/products/product_detail.cfm?group=FreedomTaskChairWithHeadrest
- herman miller aeron - http://www.hermanmiller.com/products/seating/performance-work-chairs/aeron-chairs.html
- herman miller setu - http://www.hermanmiller.com/products/seating/multi-use-guest-chairs/setu-chair.html
Ruby 2.1.0 in Production: known bugs and patches | |
Last week, we upgraded the github.com rails app to ruby 2.1.0 in production. | |
While testing the new build for rollout, we ran into a number of bugs. Most of | |
these have been fixed on trunk already, but I've documented them below to help | |
anyone else who might be testing ruby 2.1 in production. | |
@naruse I think we should backport these patches to the ruby_2_1 branch and | |
release 2.1.1 sooner rather than later, as some of the bugs are quite critical. | |
I'm happy to offer any assistance I can to expedite this process. |
run -> (_) { [ 200, { 'Content-Type' => 'text/html', }, ['success'] ] } |
A future version of Ember will come with a new templating engine known as HTMLBars.
The original motivation for HTMLBars was to allow helpers and properties to have better contextual information about what they were bound to.
So for example, consider a template like this:
require 'benchmark/ips' | |
require "action_controller/railtie" | |
class BlogApplication < Rails::Application | |
config.eager_load = false | |
config.root = File.dirname(__FILE__) | |
config.session_store :cookie_store, key: 'session' | |
config.secret_key_base = 'secret' | |
end |
There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.
So, these are the different settings we are going to compare:
- Go HTTP standalone (as the control group)
- Nginx proxy to Go HTTP
- Nginx fastcgi to Go TCP FastCGI
- Nginx fastcgi to Go Unix Socket FastCGI
# Assertion for checking the number of queries executed within the &block | |
def assert_queries(num = 1, &block) | |
queries = [] | |
callback = lambda { |name, start, finish, id, payload| | |
queries << payload[:sql] if payload[:sql] =~ /^SELECT|UPDATE|INSERT/ | |
} | |
ActiveSupport::Notifications.subscribed(callback, "sql.active_record", &block) | |
ensure | |
assert_equal num, queries.size, "#{queries.size} instead of #{num} queries were executed.#{queries.size == 0 ? '' : "\nQueries:\n#{queries.join("\n")}"}" |
require "active_support" | |
require "active_support/key_generator" | |
require "json" | |
# Based on https://gist.github.com/mattetti/7624413 | |
module JsonSessionSerializer | |
def self.load(value) | |
begin | |
JSON.parse(value) | |
rescue JSON::ParserError |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
#!/bin/bash | |
set -exo pipefail | |
BUILD_ENV=$1 | |
if [ `uname` == 'Darwin' ]; then | |
OSX=1 | |
JSCOMPRESSOR="yuicompressor --type js" | |
else | |
OSX= |