Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Michaels-MacBook-Air-2:rioseo mlmiller$ clou
Traceback (most recent call last):
File "/usr/local/bin/clou", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2607, in <module>
parse_requirements(__requires__), Environment()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: BeautifulSoup==3.2
Michaels-MacBook-Air-2:rioseo mlmiller$ python
Legend:
[ndbs, nviews, disk_size_MB, view_size_MB]
["easybib",2011,240], [14, 340959356, 19, 516327.07637023926, 161763.2385749817]
["bibcloud",2011,240], [7, 109515948, 11, 241253.35371685028, 23603.850459098816]
Dec 3 21:29:20 lb1 haproxy[23791]: 127.0.0.1:43943 [03/Dec/2012:21:29:20.434] http_proxy pmproduction/db2 22/0/1/280/303 201 23368 - - ---- 53/53/48/10/0 0/0 {restkit/4.2.0} {7dfbdd83|35} "POST /deliveryevent_production/_bulk_docs?batch=ok HTTP/1.1"
Dec 3 21:29:21 lb1 haproxy[23791]: 127.0.0.1:43933 [03/Dec/2012:21:29:20.579] http_proxy pmproduction/db3 21/0/7/459/488 201 23307 - - ---- 53/53/48/19/0 0/0 {restkit/4.2.0} {0d970017|57} "POST /deliveryevent_production/_bulk_docs?batch=ok HTTP/1.1"
Dec 3 21:29:21 lb1 haproxy[23791]: 127.0.0.1:43943 [03/Dec/2012:21:29:20.737] http_proxy pmproduction/db4 23/0/1/424/448 201 23333 - - ---- 53/53/48/11/0 0/0 {restkit/4.2.0} {aa10d92a|36} "POST /deliveryevent_production/_bulk_docs?batch=ok HTTP/1.1"
Dec 3 21:29:21 lb1 haproxy[23791]: 127.0.0.1:43933 [03/Dec/2012:21:29:21.066] http_proxy pmproduction/db1 23/0/0/374/398 201 23270 - - ---- 53/53/48/11/0 0/0 {restkit/4.2.0} {9a0aacdb|48} "POST /deliveryevent_production/_bulk_docs?batch=ok HTTP/1.1"
Dec 3 21:29:21 lb1
curl -X GET 'http://mlmiller.cloudant.com/planes/_all_docs?limit=1&include_docs=true' | python -m json.tool
{
"offset": 0,
"rows": [
{
"doc": {
"": "",
"Accident Number": "CHI08IA119",
"Air Carrier": "MESABA AVIATION INC",
"Aircraft Category": "Airplane",
curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/date?key=\[1994,4\]&reduce=false' | more
{"total_rows":68387,"offset":34959,"rows":[
{"id":"88601d815897032516f87f0c510c7c60","key":[1994,4],"value":[1,1]},
{"id":"88601d815897032516f87f0c510c87b7","key":[1994,4],"value":[1,0]},
{"id":"88601d815897032516f87f0c510c951a","key":[1994,4],"value":[1,2]},
{"id":"88601d815897032516f87f0c510c9b0a","key":[1994,4],"value":[1,0]},
{"id":"88601d815897032516f87f0c510c9bbb","key":[1994,4],"value":[1,0]},
{"id":"88601d815897032516f87f0c510c9c15","key":[1994,4],"value":[1,1]},
{"id":"88601d815897032516f87f0c510c9d6d","key":[1994,4],"value":[1,0]},
{"id":"88601d815897032516f87f0c510ca925","key":[1994,4],"value":[1,0]},
curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/date?group_level=2&startkey=\[1994\]&endkey=\[1995\]'
{"rows":[
{"key":[1994,0],"value":[116,60]},
{"key":[1994,1],"value":[142,42]},
{"key":[1994,2],"value":[191,67]},
{"key":[1994,3],"value":[179,72]},
{"key":[1994,4],"value":[224,74]},
{"key":[1994,5],"value":[223,98]},
{"key":[1994,6],"value":[267,131]},
{"key":[1994,7],"value":[260,101]},
curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/date?group_level=0'
{"rows":[
{"key":null,"value":[68387,38652]}
]}
curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/date?group_level=1' | more
rows":[
{"key":[1982],"value":[3593,1585]},
{"key":[1983],"value":[3556,1273]},
{"key":[1984],"value":[3457,1229]},
{"key":[1985],"value":[3096,1648]},
{"key":[1986],"value":[2880,1180]},
{"key":[1987],"value":[2828,1237]},
curl -X GET 'http://mlmiller.cloudant.com/planes/_design/example/_view/date?group_level=2' | more
{"rows":[
{"key":[1982,0],"value":[207,185]},
{"key":[1982,1],"value":[232,96]},
{"key":[1982,2],"value":[280,95]},
{"key":[1982,3],"value":[303,113]},
{"key":[1982,4],"value":[387,133]},
{"key":[1982,5],"value":[349,106]},
{"key":[1982,6],"value":[433,283]},
{"key":[1982,7],"value":[399,96]},