Skip to content

Instantly share code, notes, and snippets.

View jchris's full-sized avatar

Chris Anderson jchris

View GitHub Profile
16:26:53.738| Logging mode 2 enabled in domains: {CBLDatabase, CBLModel, RemoteRequest}
16:26:53.740| CBLDatabase: Starting replicator manager for CBLManager[/Users/jchris/Library/Application Support/iPhone Simulator/6.1/Applications/85364980-089C-47E4-BB88-0ED6B3BA3153/Library/Application Support/CouchbaseLite]
16:26:53.753| CBLDatabase: Created CBLManager[/Users/jchris/Library/Application Support/iPhone Simulator/6.1/Applications/85364980-089C-47E4-BB88-0ED6B3BA3153/Library/Application Support/CouchbaseLite]
16:26:53.753| CBLDatabase: Opening CBLDatabase[<0x7648760>chats]
16:26:53.753| CBLDatabase: Open /Users/jchris/Library/Application Support/iPhone Simulator/6.1/Applications/85364980-089C-47E4-BB88-0ED6B3BA3153/Library/Application Support/CouchbaseLite/chats.touchdb (flags=200006)
16:26:53.840| CBLDatabase: Begin transaction (level 1)...
16:26:53.842| CBLDatabase: Commit transaction (level 1)
16:26:53.843| CBLLiveQuery: Initial row count is 0
16:26:53.856| CBLDatabase: Opening CBLDatabase[<0x7647f60>_rep
➜ TouchBooksAlloy git:(public-api) titanium build -p iphone
Titanium Command-Line Interface, CLI version 3.0.24, Titanium SDK version 3.0.2.GA
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[ERROR] No app.js found
Ensure the app.js file exists in your project's "Resources" directory.
@jchris
jchris / gist:5580341
Created May 14, 2013 22:54
error with npm install couchbase
➜ twitterfight brew install libcouchbase
==> Downloading http://packages.couchbase.com/clients/c/libcouchbase-2.0.6.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/opt/boxen/homebrew/Cellar/libcouchbase/2.0.6 --disable-examples --disable-tests --disable-couchbasemock
==> make install
🍺 /opt/boxen/homebrew/Cellar/libcouchbase/2.0.6: 105 files, 912K, built in 13 seconds
➜ twitterfight npm install couchbase
npm http GET https://registry.npmjs.org/couchbase
npm http 304 https://registry.npmjs.org/couchbase
npm http GET https://registry.npmjs.org/bindings
@jchris
jchris / idle netstat
Created June 10, 2013 16:27
netstat -an at various times, debugging sync gateway
➜ sync_gateway git:(master) ✗ netstat -an
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 127.0.0.1.8091 127.0.0.1.51468 ESTABLISHED
tcp4 0 0 127.0.0.1.51468 127.0.0.1.8091 ESTABLISHED
tcp46 0 0 *.4985 *.* LISTEN
tcp46 0 0 *.4984 *.* LISTEN
tcp4 0 0 127.0.0.1.11210 127.0.0.1.51465 ESTABLISHED
tcp4 0 0 127.0.0.1.51465 127.0.0.1.11210 ESTABLISHED
tcp4 0 0 127.0.0.1.11210 127.0.0.1.51464 ESTABLISHED
@jchris
jchris / CouchChat-config.js
Created June 17, 2013 18:42
can't access /chat/_persona
{
"log": ["CRUD", "REST+"],
"databases": {
"chat": {
"browserid" : {
"origin" : "http://mineral.local:4984/"
},
"users": {
"GUEST": {"disabled": true},
@jchris
jchris / sg crash.log
Created June 20, 2013 23:19
test makes Sync Gateway crash if you run it over and over again and control c it if it gets stuck and run it again
16:17:18.807032 Reset guest user to config
16:17:18.807057 Starting auth server on :4985
16:17:18.819518 Starting server on :4984 ...
16:17:25.028532 HTTP: GET /db/
16:17:25.029184 WARNING: all_docs got error: Reduce is not supported yet, sorry -- db.(*Database).queryAllDocs() at database.go:299
16:17:25.182783 HTTP: GET /db/
16:17:25.182877 WARNING: all_docs got error: Reduce is not supported yet, sorry -- db.(*Database).queryAllDocs() at database.go:299
16:17:25.189725 HTTP: GET /db/_changes?filter=sync_gateway%2Fbychannel&feed=continuous&channels=ok%2Cabc%2Cempty
16:17:25.189957 HTTP: GET /db/test-doc-b
16:17:25.190017 HTTP: --> 404 missing
@jchris
jchris / gist:5833937
Created June 21, 2013 20:06
test output timeout PUT
➜ node-tap git:(node-test) ✗ npm test
> [email protected] test /Users/jchris/code/cb/mobile/sync_gateway/tests/node-tap
> tap ./test --tap
# assert-test.js
# TAP version 13
# reachable
ok 1 no error
ok 2 correct db name
@jchris
jchris / CouchbaseLite.framework
Created July 2, 2013 15:03
`tree` of CouchbaseLite.framework
CouchbaseLite/iOS/CouchbaseLite.framework
├── CouchbaseLite
├── Headers
│   ├── CBLAttachment.h
│   ├── CBLDatabase+Attachments.h
│   ├── CBLDatabase+Insertion.h
│   ├── CBLDatabase+Internal.h
│   ├── CBLDatabase+LocalDocs.h
│   ├── CBLDatabase+Replication.h
│   ├── CBLDatabase.h
<?xml version="1.0"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="com.couchbase.litegap" version="0.1.0">
<name>LiteGap</name>
<platform name="ios">
<config-file target="config.xml" parent="/widget/plugins">
<plugin name="LiteGap" value="LiteGap"/>
</config-file>
<header-file src="src/ios/LiteGap.h"/>
<source-file src="src/ios/LiteGap.m"/>
<framework src="libsqlite3.dylib"/>
<?xml version="1.0"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="com.couchbase.litegap" version="0.1.0">
<name>LiteGap</name>
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<feature name="LiteGap">
<param name="ios-package" value="LiteGap" />
<param name="onload" value="true" />
</feature>
</config-file>