Skip to content

Instantly share code, notes, and snippets.

View allenluce-zz's full-sized avatar

Allen Luce allenluce-zz

  • Substantial
  • Seattle
View GitHub Profile
| pairings | initial load | sorting click | pagination click |
|----------+--------------+---------------+------------------|
| 1000 | 15s | 12s | 12s |
| 500 | 7.5s | 5.26s | 5.29s |
| 250 | 6.14s | 3.04s | 2.95s |
| 100 | 3.97s | 1.42s | 1.39s |
| 50 | 3.45s | 813ms | 813ms |
dug@var-som-am35:~/src/redmine-2.1.2$ gem install bundler
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
dug@var-som-am35:~/src/redmine-2.1.2$
module Capybara
class Server
def initialize
@port = ...
end
end
end
from repoze.lemonade.content import create_content
from opencore.models.interfaces import IProfile
from opencore.security.policy import to_profile_active
groups = ('group.KarlStaff',)
lastname = "Reynolds"
email = "nobody@nowhere.com"
users = root.users
profiles = root['profiles']
(working db)
zodb=# \z public.current_object
Access privileges
Schema | Name | Type | Access privileges | Column access privileges
--------+----------------+-------+-------------------+--------------------------
public | current_object | table | |
(failing db)
On the project view:
+ Can you confirm that these are new, additional data that we will
collect from the user, keep associated with a project, and allow the
owning user to edit?
- Project Title
- Project photo
- Project location
- Project description
- Focus area association
- Twitter hash tags associated with this project
require "mechanize"
require "benchmark"
story = "my-cow-ate-my-homework"
env = :staging
urls = {
:staging => 'http://hcd-connect-staging.herokuapp.com/stories/',
:devel => 'http://127.0.0.1:6544/stories/'
}
@allenluce-zz
allenluce-zz / gist:3191202
Created July 28, 2012 00:32
Commit 799b2c7d
commit 799b2c7debb78643eec2afcd4691f334f5486a10
Author: Alex May <alex.k.may@gmail.com>
Date: Tue Mar 20 13:50:34 2012 -0700
bump up event stack size
- should be enough to hold 1 year's worth of events now
diff --git a/src/opencore/opencore/models/contentfeeds.py b/src/opencore/opencore/models/contentfeeds.py
index 243c841..e6f6747 100644
@allenluce-zz
allenluce-zz / gist:3191201
Created July 28, 2012 00:32
Commit 3c24d247
commit 3c24d247ec2fc421cfdf05f53314284634307542
Author: Alex May <alex.k.may@gmail.com>
Date: Sun Apr 15 13:02:00 2012 -0700
set sane limits on stack size
- we know that stacks of size 10k+ cannot be iterated through
quickly enough to serve web requests
diff --git a/src/opencore/opencore/models/contentfeeds.py b/src/opencore/opencore/models/contentfeeds.py
@allenluce-zz
allenluce-zz / gist:3191199
Created July 28, 2012 00:31
Commit 07b0e595
commit 07b0e595d0c35bea2476a499161785cdc1204864
Author: Alex May <alex.k.may@gmail.com>
Date: Wed Mar 28 14:54:01 2012 -0700
use context's topics, not contents
diff --git a/src/opencore/opencore/models/contentfeeds.py b/src/opencore/opencore/models/contentfeeds.py
index 51de399..4a71ee3 100644
--- a/src/opencore/opencore/models/contentfeeds.py
+++ b/src/opencore/opencore/models/contentfeeds.py