Skip to content

Instantly share code, notes, and snippets.

View bsquared's full-sized avatar

Brian Winfrey bsquared

  • Orange County, CA USA
View GitHub Profile
@bsquared
bsquared / regex_in_touchdb
Created November 13, 2012 21:19
Regex::Explain output
The regular expression:
(?-imsx:^abcdefghijklmnopqrstuvwxyz0123456789_$()+-/)
matches as follows:
NODE EXPLANATION
----------------------------------------------------------------------
(?-imsx: group, but do not capture (case-sensitive)
(with ^ and $ matching normally) (with . not
@bsquared
bsquared / ubuntu_couchdb_build_instructions.md
Created October 23, 2012 17:59
Installing CouchDb Manually on Ubuntu
  • make sure software is up to date.
    • sudo apt-get update
    • sudo apt-get upgrade
  • install dependencies - the order is important, some may need to removed and the reinstalled later in the list. For some reason there are one way conflicts. Some may be installed already and need not be re-installed. apt-get will let you know.
    • sudo apt-get build-dep erlang
    • sudo apt-get build-dep couchdb
    • sudo apt-get install libicu-dev libcurl4-gnutls-dev
    • sudo apt-get install automake autoconf libtool help2man
    • sudo apt-get install libmozjs-dev
  • sudo apt-get install libcurl4-openssl-dev
@bsquared
bsquared / couchdb.log
Created July 12, 2012 20:16
couchdb.log
[Thu, 12 Jul 2012 19:26:31 GMT] [error] [<0.20.0>] {error_report,<0.9.0>,
{<0.20.0>,std_error,
"File operation error: eacces. Target: ./couch_secondary_sup.beam. Function: get_file. Process: code_server."}}
[Thu, 12 Jul 2012 19:26:31 GMT] [error] [<0.20.0>] {error_report,<0.9.0>,
{<0.20.0>,std_error,
"File operation error: eacces. Target: ./couch_db_update_notifier_sup.beam. Function: get_file. Process: code_server."}}
[Thu, 12 Jul 2012 19:26:31 GMT] [error] [<0.20.0>] {error_report,<0.9.0>,
{<0.20.0>,std_error,
"File operation error: eacces. Target: ./couch_auth_cache.beam. Function: get_file. Process: code_server."}}
[Thu, 12 Jul 2012 19:26:31 GMT] [error] [<0.20.0>] {error_report,<0.9.0>,
@bsquared
bsquared / tdb_repl_err.log
Created May 30, 2012 00:50
TouchDb-Android Replication Errors
## createTarget=true, target does not exist
## https://admin:[email protected]/_log
[Tue, 29 May 2012 22:24:02 GMT] [info] [<0.273.0>] 10.77.61.252 - - GET /notes_test/_changes?feed=longpoll&heartbeat=300000 404
[Tue, 29 May 2012 22:24:02 GMT] [info] [<0.274.0>] 10.77.61.252 - - PUT /notes_test 401
## logcat
V/TouchNote( 470): starting TouchDB
V/TDCollateJSON( 470): SQLite3 handle is 1140848
V/TouchNote( 470): starting ektorp