Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Winfrey bsquared

  • Orange County, CA USA
View GitHub Profile
@bsquared
bsquared / regex_in_touchdb
Created Nov 13, 2012
Regex::Explain output
View regex_in_touchdb
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 Oct 23, 2012
Installing CouchDb Manually on Ubuntu
View ubuntu_couchdb_build_instructions.md
  • 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
View 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
TouchDb-Android Replication Errors
View tdb_repl_err.log
## createTarget=true, target does not exist
## https://admin:xxxxxxxx@bwcode4u.iriscouch.com/_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
You can’t perform that action at this time.