Re: new ReferenceError(options is not defined)

2012-02-01 Thread Jason Smith
On Wed, Feb 1, 2012 at 10:38 AM, Mark Hahn m...@hahnca.com wrote:  do you have a validate_doc_update function with any mention of an options label? No, I don't.  I don't have anything named options in my db setup.   I suspect the options part of your node code is a red herring. When I get

Re: duplicate lines in futon config screen

2012-02-01 Thread Dave Cottlehuber
On 1 February 2012 05:29, Mark Hahn m...@hahnca.com wrote: I got strace working.  It is only opening the default.d directory, local.d directory (both empty) and my default.ini and local.ini files.  I'm ignoring futon now since it doesn't agree with the actual behavior.  It is easy to tell what

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
That's invalid JavaScript. headers is inserted in this hash/map without a value. On Jan 31, 2012 4:49 PM, CGS cgsmcml...@gmail.com wrote: At line 6 from your node code snippet you defined variable options: options = {host: 'localhost', port: mh.dbPort, method: 'PUT', headers, path: dbPath}

CouchDB _bulk_docs allocating far more memory than needed?

2012-02-01 Thread Shawn Chidester
I'm attempting to post a single 150 MB document to my couchdb server. The application that does the post usually has more than one document to post so it always uses _bulk_docs, even for one document. According to the crash message the couchdb server (or erlang) is tring to allocate 4 GB or

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
That's a feature of coffeescript. A var by itself is expanded to {headers:headers}. It makes for very readable code if you name your local variables to match. hash = {var1, var2, var3} and{var1, var2, var3} = hash It makes it very easy to use hashes for function arguments. Sorry if

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
Not knowing anything about node, but is CouchDB trying to execute the CoffeeScript or the compiled JavaScript? On Feb 1, 2012 10:58 AM, Mark Hahn m...@hahnca.com wrote: That's a feature of coffeescript. A var by itself is expanded to {headers:headers}. It makes for very readable code if you

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
The coffeescript is converted to javascript whenever I save it. So nothing sees the coffeescript but me. On Wed, Feb 1, 2012 at 9:25 AM, Keith Gable zi...@ignition-project.comwrote: Not knowing anything about node, but is CouchDB trying to execute the CoffeeScript or the compiled JavaScript?

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
And technically, coffeescript isn't part of node. It is just javascript which runs anywhere, like the browser. I even write my couchdb views in coffeescript. Works great. Think of it as complex editor macros.

Re: CouchDB _bulk_docs allocating far more memory than needed?

2012-02-01 Thread Dave Cottlehuber
On 27 January 2012 22:05, Shawn Chidester schides...@attensity.com wrote: I'm attempting to post a single 150 MB document to my couchdb server.  The application that does the post usually has more than one document to post so it always uses _bulk_docs, even for one document. According to

Using Ext-JS

2012-02-01 Thread Adam Augusta
Has the CouchDB developer community congealed around any particular praxis when it comes to using Ext-JS with CouchDB? Peter Muller created a patch for Ext-JS that makes the framework more amenable to a document structure, but that was early last year, and it's still not integrated into the main

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
Right, but if you're getting an error from CouchDB that contains CoffeeScript, then clearly CouchDB is attempting to execute CoffeeScript as JavaScript, which isn't valid. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Web Developer On

Re: Using Ext-JS

2012-02-01 Thread Ryan Ramage
Example couchapp using Ext-JS from @David Feinberg https://github.com/rawberg/Hub-List_GTD-Productivity On Wed, Feb 1, 2012 at 3:52 PM, Adam Augusta rox...@gmail.com wrote: Has the CouchDB developer community congealed around any particular praxis when it comes to using Ext-JS with CouchDB?

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
What makes you think the error contains coffeescript? On Wed, Feb 1, 2012 at 3:16 PM, Keith Gable zi...@ignition-project.comwrote: Right, but if you're getting an error from CouchDB that contains CoffeeScript, then clearly CouchDB is attempting to execute CoffeeScript as JavaScript, which

Re: Using JavaScript libs in a view's map function

2012-02-01 Thread Luscus Readbeard
Thanks for your answers, @Paul: right, for CommonJS I was talking bullshit... Thanks to point it out. @Jens: this is what I am trying to do: I have one app managing an hierarchy of documents of different types - every parent can have 0 or n childs. In the end the app mainly uses the document

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
You pasted respStr = ... - that part looks like CoffeeScript, and I assumed it was being spat at you by CouchDB. Rereading clarified that for me. I agree with others that the ReferenceError is being thrown at you from JavaScript, but I don't know why that is. Does your compiled CoffeeScript make

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
I don't have any validation function. On Wed, Feb 1, 2012 at 3:37 PM, Keith Gable zi...@ignition-project.comwrote: You pasted respStr = ... - that part looks like CoffeeScript, and I assumed it was being spat at you by CouchDB. Rereading clarified that for me. I agree with others that the

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
So you're PUTting an attachment and getting a JavaScript error? Unless I'm forgetting something, wouldn't that have to come about from a validation function? --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Web Developer On Wed, Feb 1,

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
I know I have no validation function because I've never written one in my life. Someone else said that it was from javascript. It starts with OS Process error. Is that normally what you get if you have a javascript error? Does it say that because the javascript is running in another process?

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
Yes, JavaScript errors will give you an OS process error because they run in a separate process (couchjs). Maps and reduces will execute any time you update a document, so maybe this is a map or reduce function. But then how did it work initially? On Feb 1, 2012 6:27 PM, Mark Hahn m...@hahnca.com

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
Thanks. I guess everyone thought I new what OS Process error meant. I will investigate based on this new understanding. On Wed, Feb 1, 2012 at 4:32 PM, Keith Gable zi...@ignition-project.comwrote: Yes, JavaScript errors will give you an OS process error because they run in a separate process