This document is obsolete, all the docs for porting are now at https://github.com/mitsuhiko/pocoo-sprint-18052013
sass -c -I app/assets/stylesheets/ app/assets/stylesheets/**/*.scss |
#Overview drip is an awesome command line tool that can be used to dramatically lower perceived JVM startup time. It does this by preloading an entirely new JVM process\instance and allowing you to simply use the preloaded environment. This has extraordinary results with jruby.
We reduced time to run rake environment
from 13 seconds to a mere 3.5 seconds. This is actually at or near MRI 1.9.3p327 (with falcon patch) speeds!
Adding a few addition jruby options will reduce startup time even further (down to 1.69 seconds).
#Install Drip Install drip if you haven't already (see https://github.com/flatland/drip)
This is how I debug SystemStackError when there is no stack trace.
My first attempt was:
begin
a_method_that_causes_infinite_recursion_in_a_not_obvious_way
rescue SystemStackError
puts caller
end
module.exports = { | |
pivotal: { | |
TOKEN: 'TOKEN' | |
PID: 'PID', | |
}, | |
sprintly: { | |
USER: "USER_EMAIL", | |
ID: 'PRODUCT_ID', | |
KEY: 'API_KEY' | |
}, |
web: bin/python test-webapp.py |
Heroku introduced a major update today to the platform. In addition to the press release and blog post, here is a list of all updated content:
Devcenter.heroku.com
describe "Dish", -> | |
describe "constructor", -> | |
beforeEach -> | |
@dish = new Dish 'Sirloin Steak $18.99 mains' | |
it "extracts title", -> | |
(expect @dish.title).toEqual('Sirloin Steak') |
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
- Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
require 'rubygems'; require 'active_resource'; require 'new_relic_api' | |
servers = File.open("server_count.txt", "r").first.to_i | |
instances_per_server = 6 | |
cpu_burn_for_system = 1000.0 * 0.20 | |
NewRelicApi.api_key = "<Your API Key>" | |
account = NewRelicApi::Account.find(:first); | |
application = account.applications[3]; |