RE: Perl and bad characters

2018-04-07 Thread Keith Gable
The last line is you taking user input and putting it into a shell argument without escaping. Use a real HTTP library so that you don’t get exploited by a robot. Does this still persist if you use a real HTTP library? From: Bill Stephenson

RE: Login link missing in 1.5 with Window IE 8

2014-02-21 Thread Keith Gable
IE 8 is very old. If you're on an operating system where IE 8 is the newest IE available, you're going to be out of support in April unless you throw money at Microsoft. IE 9 should work. Sent from my Windows Phone From: Jason

RE: Passing permanent changing arguments to a view?

2014-02-18 Thread Keith Gable
I’ve found it is a lot easier to use GeoCouch to do these kinds of queries. That said, you will have to create a bounding box (rather than a radius), which means you’ll need to use the Haversine formula client-side to figure out how big to make the box. If you want a radius of 5km, you’ll

RE: Login link missing in 1.5 with Window IE 8

2014-02-18 Thread Keith Gable
From: jas...@bearriver.com Subject: Re: Login link missing in 1.5 with Window IE 8 Date: Tue, 18 Feb 2014 18:16:33 -0800 To: user@couchdb.apache.org Windows 7. IE 8. .. Ouch. Well, you certainly _can_ use IE9 on that platform, and I tell my enterprise customers to

RE: Login link missing in 1.5 with Window IE 8

2014-02-18 Thread Keith Gable
From: ziggythehams...@outlook.com To: user@couchdb.apache.org Subject: RE: Login link missing in 1.5 with Window IE 8 Date: Tue, 18 Feb 2014 20:26:51 -0600 This ought to be a simple fix if Futon otherwise works. Somebody surely has written an

RE: CouchDB: Automatically resizing images

2013-11-20 Thread Keith Gable
You could probably add a proxy handler thing like CouchDB Lucene used at one point, then have it fetch the attachment and run IM and return the image. Sounds like a great way to exhaust server resources though. From: Hank Knight Sent: 11/20/2013 17:53 To: user@couchdb.apache.org Subject: Re:

RE: CouchDB: @ in username messing up curl

2013-11-13 Thread Keith Gable
Can't you go -u em...@site.com --pass password? From: Hank Knight Sent: 11/13/2013 20:43 To: user@couchdb.apache.org Subject: Re: CouchDB: @ in username messing up curl I tried encoding the @ but that does not work either! curl -kX -u nlbdmobz%40sharklasers.com:password123 POST \

RE: CouchDB: Remote IP Address in Map Function

2013-11-13 Thread Keith Gable
And on that note... Maps aren't like SQL queries. They're designed to run against the data to produce indexable data. Think about it like a SQL index that you are building. You obviously can't include the remote user's information in a SQL index because that is built when things change. The same

RE: Seeking for professional training help with CouchDB

2013-11-12 Thread Keith Gable
I'd also like to add decisionpt.com to that list. We do professional developer training/consulting for all kinds of technologies. We're US-based (we don't do offshore outsourcing). The Couch Firm is good as well, not sure about their location or if they do onsite training. Sorry about the hijack!

RE: Storage limitations?

2013-11-10 Thread Keith Gable
I don't know why you couldn't have many thousands of 3MB attachments. For performance, I would make each comment a new document and fetch the comments with a view and set include_docs to true. Putting all of the comments in a thread into one document works, but it is not going to work well when

RE: CouchDb startup error: Failure to start Mochiweb

2013-11-09 Thread Keith Gable
There should be an init script. Try: service couchdb start If that doesn't work: sudo su -u couchdb couchdb From: Alexander Gabriel Sent: 11/9/2013 15:27 To: user@couchdb.apache.org Subject: CouchDb startup error: Failure to start Mochiweb Hi experts I've installed a droplet at digitaloceans.com

RE: CouchDb startup error: Failure to start Mochiweb

2013-11-09 Thread Keith Gable
That should be sudo service couchdb start :-) From: Keith Gable Sent: 11/9/2013 17:11 To: Alexander Gabriel; user@couchdb.apache.org Subject: RE: CouchDb startup error: Failure to start Mochiweb There should be an init script. Try: service couchdb start If that doesn't work: sudo su -u couchdb

RE: Database too large for partition

2013-07-11 Thread Keith Gable
Another, less desirable, option is software RAID or LVM. You could create several 1TB EBS volumes and add them to a volume group with LVM and create a logical volume that spans those disks. No redundancy though, so if you lose an EBS volume, you probably lose the entire disk. So you could use

RE: How to give user feedback on view progress

2013-05-04 Thread Keith Gable
You could periodically pre-warm the views in a cron job and then only worry about data transfer, which you can display progress of using standard HTTP techniques. From: Alexander Gabriel Sent: 5/4/2013 9:04 AM To: user@couchdb.apache.org Subject: How to give user feedback on view progress Hi

RE: _replicator database and proxies

2013-04-24 Thread Keith Gable
Here's a possibility. You want to replicate behind the proxy and on the other side of the proxy. A global proxy setting breaks that. From: Steven Barlow Sent: 4/24/2013 9:12 AM To: user@couchdb.apache.org Subject: Re: _replicator database and proxies Thanks for the comments. I appreciate that

Re: CouchDB not reachable (beginner's question)

2013-04-15 Thread Keith Gable
But you're SSHing as root, which is probably worse than opening CouchDB to the world with no password. --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple Certified Technical Coordinator Mobile Application Developer / Web Developer On Mon, Apr 15, 2013 at 8:45 AM, Tim

Re: CouchDB not reachable (beginner's question)

2013-04-15 Thread Keith Gable
setting up CouchDB to listen on all interfaces (0.0.0.0), I would not suggest trying to create an operating system. --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple Certified Technical Coordinator Mobile Application Developer / Web Developer On Mon, Apr 15, 2013 at 7:36 AM

Re: Distinct values with range

2013-04-15 Thread Keith Gable
Output keys like so: [2010, 7, 10, Australia] Reduce function would be _count. startkey=[year,month,day,null] endkey=[year,month,day,{}] --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple Certified Technical Coordinator Mobile Application Developer / Web Developer On Sun

Re: CouchDB not reachable (beginner's question)

2013-04-15 Thread Keith Gable
http://serverfault.com/questions/57962/whats-wrong-with-always-being-root --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple Certified Technical Coordinator Mobile Application Developer / Web Developer On Mon, Apr 15, 2013 at 9:15 AM, Tim Tisdall tisd...@gmail.com wrote

Re: CouchDB not reachable (beginner's question)

2013-04-15 Thread Keith Gable
wow indeed. --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple Certified Technical Coordinator Mobile Application Developer / Web Developer On Mon, Apr 15, 2013 at 9:18 AM, Robert Newson rnew...@apache.org wrote: wow. On 15 April 2013 15:15, Tim Tisdall tisd

Re: CouchDB not reachable (beginner's question)

2013-04-15 Thread Keith Gable
of other servers (because the password or key is known), and a really bad day. If you were using key-based authentication, it would be slightly better, but why not log in as you@server and use sudo if needed? Certainly you don't need root to do SSH tunneling. --- Keith Gable A+, Network+, and Storage

Re: How To Retrieve JUST The Latest Rev Of A (Design) Doc - Check For CouchApp Update

2013-04-07 Thread Keith Gable
using their whitelist. Otherwise, you can try to set up CORS. Then, use a normal Ajax request. There are also a few libraries which do browser-specific things to make JSONP less crappy, but I don't think they'll work for you. --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple

Re: Google Summer of Code topics

2013-03-23 Thread Keith Gable
If I understand you correctly, you want the ability to build a graph. I think this could be a plugin (like geocouch). Also it would be a great feature. On Mar 23, 2013 5:20 AM, Andrey Kuprianov andrey.koupria...@gmail.com wrote: I have that too, but it's just and emulation. Not really a partial

Re: Serving Simple HTML page to Public IP from CouchDB

2013-03-20 Thread Keith Gable
if 184.75.155.16 is a router that is port forwarding port 5984 to 192.168.0.1:5984 (with some exceptions: some routers are advanced and intelligently reroute your packet to the proper destination). --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple Certified Technical Coordinator

Re: view crashes chrome

2013-03-06 Thread Keith Gable
On Tue, Mar 5, 2013 at 12:22 PM, Jens Alfke j...@couchbase.com wrote: You’re right; it looks like Chrome hasn’t migrated to 64-bit yet on Mac either. I wonder why not? http://i.qkme.me/3t9dov.jpg :)

Re: What does this warning mean?

2013-03-04 Thread Keith Gable
)? --- Keith Gable A+, Network+, and Storage+ Certified Professional Apple Certified Technical Coordinator Mobile Application Developer / Web Developer On Mon, Mar 4, 2013 at 4:51 PM, TAE JIN KIM snoweb...@hotmail.com wrote: Hello, Thanks for your answer. I believe, in XP, there are some issue

Re: Attachment upload progress

2013-02-12 Thread Keith Gable
I will +1 this recommendation :-) On Feb 12, 2013 11:20 AM, Mark Hahn m...@hahnca.com wrote: Use https://github.com/blueimp/jQuery-File-Upload. It is awesome. Drag and drop. Progress indicators. Multiple files. On Tue, Feb 12, 2013 at 9:05 AM, Travis Paul t...@vispaul.me wrote: I'm was

Re: Bad special document member: __VERSION__

2012-12-28 Thread Keith Gable
Easier would be something like { data: your object here } though. On Dec 28, 2012 4:52 PM, Stanley Iriele siriele...@gmail.com wrote: Hey which couchdb version are you using?...is this 1.2? Or later?. I noticed that an underscore was used for reserved words so I just prepend some some special

Re: request with OR conditions

2012-12-07 Thread Keith Gable
I would be curious how you're doing the AND part. If you're querying the view with multiple keys, you could look into keys that are arrays and see if that works for you. On Dec 7, 2012 12:39 AM, Aleksey Kluchnikov al...@ximad.com wrote: Hi all. I need choose database for new project. CouchDB

Re: Binding to multiple addresses

2012-12-01 Thread Keith Gable
Also, you won't be able to connect to 0.0.0.0 itself because it is a special address used by the networking stack in the OS to mean all adapters. So if 127.0.0.1 and your public address are working, you did it right. On Nov 28, 2012 5:28 AM, Dave Cottlehuber d...@jsonified.com wrote: On 28

Re: decentralized chat

2012-11-23 Thread Keith Gable
NB: I was an IRC server/client developer in a past life. I don't think you're going to be able to reliably solve the dual NAT issue for everyone. A mesh-type database like CouchDB would work well for decentralized chat, but one thing I would do would be to digitally sign every message. You'd have

Re: Clearing a database.

2012-11-05 Thread Keith Gable
You have to specify the revision you have to delete though. DELETE /db/doc?rev=blah DELETE /db, PUT /db should work --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application Developer / Web Developer On Mon, Nov 5, 2012

Re: Storing text/plain attachments and digest

2012-11-03 Thread Keith Gable
Another option would be to send the files as application/octet-stream. I don't think those are compressed. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application Developer / Web Developer On Thu, Nov 1, 2012 at 9:09 PM

Re: kanso hosting?

2012-10-24 Thread Keith Gable
Try password-based authentication first. Once that's working, then work on key-based authentication. If you're using PuTTY, you have to run Pageant and also convert the key to PuTTY format. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional

Re: kanso hosting?

2012-10-24 Thread Keith Gable
authentication. Some ancient and/or misconfigured systems require more steps. Don't use those. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application Developer / Web Developer On Wed, Oct 24, 2012 at 1:44 PM, Mark Hahn m...@hahnca.com

Re: Problems installing CouchDB 1.2.0 in Ubuntu 10.04.4 LTS Server (lucid)

2012-09-29 Thread Keith Gable
Not sure if I follow you. I think build-couchdb is doing the right thing. Without GeoCouch it would just require making a user, a group, and a directory (or not even that if you aren't doing it for production). With GeoCouch, I also have to load GeoCouch in the couchdb script because the

Re: Problems installing CouchDB 1.2.0 in Ubuntu 10.04.4 LTS Server (lucid)

2012-09-29 Thread Keith Gable
be... :-) On Sep 29, 2012 12:18 PM, Noah Slater nsla...@tumbolia.org wrote: Sorry, I specifically meant providing a shell to the user in the init.d script. On Sat, Sep 29, 2012 at 4:27 PM, Keith Gable zi...@ignition-project.com wrote: Not sure if I follow you. I think build-couchdb is doing the right

Re: SSL problems

2012-09-25 Thread Keith Gable
s_client to debug the SSL connection (see: http://rackerhacker.com/2012/02/07/using-openssls-s_client-command-with-web-servers-using-server-name-indication-sni/) on your client. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application

Re: Multiple authentication DBs

2012-09-21 Thread Keith Gable
Couldn't you technically replicate the other DB into the main one? On Sep 21, 2012 8:11 AM, Adam Kocoloski kocol...@apache.org wrote: On Sep 20, 2012, at 6:48 AM, Ramkrishna Kulkarni ramkrishna.kulka...@gmail.com wrote: Hello, Is it possible to set multiple DBs as authentication DBs? Or

Re: Wildcard search on startkey and endkey

2012-09-17 Thread Keith Gable
CouchDB is a lot easier to understand if you think about querying views alphabetically like a card catalog. You can say AA to BZ but you cannot say *A to *Z. That said, CouchDB Lucene is actually built for those kinds of queries (and more) and it is really simple to use. Try it out. On Sep 17,

Re: Problems installing CouchDB 1.2.0 in Ubuntu 10.04.4 LTS Server (lucid)

2012-09-13 Thread Keith Gable
with this is because IrisCouch does everything BUT CouchDB Lucene.) --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application Developer / Web Developer On Thu, Sep 13, 2012 at 4:07 AM, Daniel Gonzalez gonva...@gonvaled.comwrote: Hi, I am

Re: ip_conntrack problems

2012-09-10 Thread Keith Gable
Is there a similar increase in HTTP requests? It sounds to me that your web server is executing your PHP script, which is making requests into CouchDB. So an increase in requests would result in an increase of CouchDB requests. --- Keith Gable A+ Certified Professional Network+ Certified

Re: Rewrite with startkey, endkey and \u9999

2012-09-10 Thread Keith Gable
Doesn't [] come after \u? Couldn't you do this? startkey=[language, query] endkey=[language, query, []] --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application Developer / Web Developer On Mon, Sep 10, 2012 at 9:37 AM

Re: Rewrite with startkey, endkey and \u9999

2012-09-10 Thread Keith Gable
Well, I like Lucene, but that doesn't really help your problem at all :) --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application Developer / Web Developer On Mon, Sep 10, 2012 at 10:58 AM, Aurélien Bénel aurelien.be

Re: Creating user with no password

2012-07-24 Thread Keith Gable
Did you try password: null? On Jul 24, 2012 8:55 AM, Aliaksandr Barysiuk a.barys...@gmail.com wrote: Hello, Is it possible to create user without a password? I tried to create user like this curl -X POST http://say.couchdb:5984/_users -d '{_id:org.couchdb.user:* *test, name:test, roles:[],

Re: Creating user with no password

2012-07-24 Thread Keith Gable
, Aliaksandr Barysiuk a.barys...@gmail.com wrote: Yes, in different variations - still no success On 24/07/12 17:26, Keith Gable wrote: Did you try password: null? On Jul 24, 2012 8:55 AM, Aliaksandr Barysiuk a.barys...@gmail.com wrote: Hello, Is it possible to create user without

Re: Creating user with no password

2012-07-24 Thread Keith Gable
you Alex On 24/07/12 17:37, Keith Gable wrote: Well, the examples you put in your original post don't show you trying null - they show you trying an empty string, which would be different in JSON, but possibly the same to CouchDB. Someone a bit more knowledgeable is going to have to help I

Re: random access to log db

2012-07-23 Thread Keith Gable
This could be done with CouchDB. You need a view that emits the ID and then ?startkey=200endkey=299 on the view. Add include_docs=true if you want the log doc too. Not sure how you guarantee the numbers will increase atomically though. On Jul 23, 2012 6:24 PM, Mark Hahn m...@hahnca.com wrote: I

Re: Error after creating hundred of views

2012-07-11 Thread Keith Gable
it in a previous thread named Map/reduce problem (02 Jul). I ended up creating a view for each doc.type where the key is simply the data, and that means having lots of views. I didn't know of any limitations concerning the number of views a database can have. On Wed, Jul 11, 2012 at 1:31 AM, Keith

Re: Error after creating hundred of views

2012-07-11 Thread Keith Gable
that. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application Developer / Web Developer On Wed, Jul 11, 2012 at 3:17 PM, João Ramos joao.si...@gmail.com wrote: Forget want I said: I really don't need that many views

Re: Error after creating hundred of views

2012-07-10 Thread Keith Gable
I would want to know why you're creating so many views. Views aren't queries. I have maybe a dozen and my application is pretty large. On Jul 10, 2012 7:15 PM, João Ramos joao.si...@gmail.com wrote: Something is still not right. I increased the filedescriptors to 4096 and the same thing keeps

Re: bind_address requires numeric addresses

2012-07-10 Thread Keith Gable
It probably does, but bind_address is what TCP/IP interface to listen on. In a similar vein, Apache doesn't let you Listen on host names, because you're listening on a TCP/IP interface, not a domain name. And domain name address records can map to different IPs based on where the request

Re: Couchbase Mobile to CouchDB on AWS - Looking for instance sizing advice.

2012-07-04 Thread Keith Gable
I would use at least a m1.small, but if a service provider is too slow, either they really suck, or you need much more infrastructure than they have. I assume they have several servers, and they're probably better than m1.small... so rolling your own here is probably not going to be cost

Re: Migrate htpasswd users to _users?

2012-06-08 Thread Keith Gable
/couchdb/couch_httpd_auth.erlbut have no idea where to start on modifying as a plugin. Worst case I just make all my users reset their passwords. - Jim Sent from my iPad On Jun 7, 2012, at 7:12 PM, Keith Gable zi...@ignition-project.com wrote: htpasswd supports several different hash

Re: Migrate htpasswd users to _users?

2012-06-07 Thread Keith Gable
htpasswd supports several different hash schemes. $apr1$ is the default and isn't very portable (though is supported by nginx) because it's not exactly MD5 as generated by crypt(). On Jun 7, 2012 4:15 PM, Jim Klo jim@sri.com wrote: Wondering if there is a way to easily migrate a flat file of

Re: Request object in validate_doc_update

2012-05-29 Thread Keith Gable
, database servers should never handle the presentation layer. (This applies for RDBMSes too. I shouldn't be able to execute a SQL query and get back CSV, JSON, XML, etc.) --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Mobile Application

RE: Am I doing something fundamentally wrong?

2012-05-25 Thread Keith Gable
View generation only takes a second for me... my data set is half a GB or so and it takes up around 800MB including about a dozen views. One thing to remember is never to emit whole documents or doc IDs. Those are included for free, so emitting a doc or doc id is a waste of CPU cycles and space.

RE: Am I doing something fundamentally wrong?

2012-05-25 Thread Keith Gable
...@gmail.com] On Behalf Of Keith Gable Sent: 25 May 2012 16:00 To: user@couchdb.apache.org Subject: RE: Am I doing something fundamentally wrong? View generation only takes a second for me... my data set is half a GB or so and it takes up around 800MB including about a dozen views. One thing

RE: Am I doing something fundamentally wrong?

2012-05-24 Thread Keith Gable
Regarding the space used... do you compact the database often? On May 24, 2012 4:47 AM, Mike Kimber mkim...@kana.com wrote: Aurélien, Thanks for the response and apologies I didn't get a notification (e-mail) of my original post (or the 2nd one) or your response. When I look at my original

Re: couchdb 1.2 on RHEL6 :: OS reboots under load

2012-05-22 Thread Keith Gable
ESX or ESXi? Also I'd check that you have the latest possible pvscsi and VMware balloon kernel modules. When I ran an ESXi server, I found that the pvscsi driver sometimes had problems (on Windows too), and eventually they put out new guest additions. On May 22, 2012 6:20 PM, Dave Cottlehuber

Re: Hierarchical comments Hacker News style

2012-05-20 Thread Keith Gable
Integers as strings: [1, 2, 3] Integers as integers: [1, 2, 3] On May 20, 2012 3:37 AM, Luca Matteis lmatt...@gmail.com wrote: On Sun, May 20, 2012 at 6:08 AM, Jim Klo jim@sri.com wrote: I'm not sure I'm following the whole thread, but why are you storing integers as strings? If

Re: Hierarchical comments Hacker News style

2012-05-20 Thread Keith Gable
I'm not sure I'm following the whole thread, but why are you storing integers as strings? If you store them as numbers, they would collate right I think. Hi Jim, Can you provide an example? I merely provided an example of using integers as integers. --- Keith Gable A+ Certified

Re: problems with etc/init.d/couchdb script

2012-05-11 Thread Keith Gable
Did you chown -R? You want the files in the directory to also be owned by couchdb:couchdb. On May 11, 2012 8:13 PM, Tim Tisdall tisd...@gmail.com wrote: Okay, I managed to figure out the problem with outputting STDERR, I had mistyped the path in /etc/default/couchdb. oops! So, now I can get a

Re: problems with etc/init.d/couchdb script

2012-05-10 Thread Keith Gable
Did you mean /var/log/couchdb? On May 10, 2012 1:46 PM, Tim Tisdall tisd...@gmail.com wrote: I've tried doing lots of Google searches for an answer to this, but I haven't been successful... I've installed Couchdb 1.2 from source on Debian 6. I configured it with *--localstatedir=/var

Re: Schema Design when migrating data from relational into document

2012-04-09 Thread Keith Gable
I'd go the first route, but salaries and titles should be arrays of hashes: titles: [ { name: xxx, from: xxx, to: xxx } ] If you want to decouple the data, like if you wanted a list of all titles, you'd use CouchDB views. On Apr 9, 2012 6:07 AM, Mohammad Prabowo riz...@gmail.com wrote: Hi,

Re: PUT json data

2012-02-18 Thread Keith Gable
The docs are crystal clear to me, and I don't use the bulk docs API. Though I do admit that the docs do assume you know how to use cURL, and if you don't, then I can see where they wouldn't be very helpful. I have noticed that there are a lot of people that attempt to use CouchDB without a

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}

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
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 this was off-topic. I love coffeescript. On Wed, Feb 1, 2012 at 8:17 AM, Keith Gable zi...@ignition-project.com wrote

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

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
sense if you read it? Maybe your validation function isn't valid JavaScript for one reason or another, or maybe it's valid but it's attempting to initialize options in a way that CouchDB isn't liking. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified

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 Keith Gable
in another process? Do view maps run in on an attachment put? Is there any other javascript code that runs on a put? On Wed, Feb 1, 2012 at 3:53 PM, Keith Gable zi...@ignition-project.com wrote: So you're PUTting an attachment and getting a JavaScript error? Unless I'm forgetting something

Re: Modeling a tree in couchdb.

2012-01-02 Thread Keith Gable
The method I use is to have a field called path, which contains a list of IDs, and the last item in the list/array is the current document's ID. The downside is that you have to assign the IDs yourself, but the upside is that it's easy to query. --- Keith Gable A+ Certified Professional Network

Re: Modeling a tree in couchdb.

2012-01-02 Thread Keith Gable
That's true, but in my case moving big branches doesn't happen. --- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer On Mon, Jan 2, 2012 at 4:07 PM, Jo-Erlend Schinstad joerlend.schins...@gmail.com wrote: Den 02. jan. 2012 22:53, skrev Keith Gable

Re: Unable to access all the documnets by 'documentType' property

2011-12-26 Thread Keith Gable
Isn't it view_by_whatever? Then again I do use an older CouchRest. On Dec 26, 2011 2:17 AM, Shreekumar shreeku...@worlditlab.com wrote: after making changes in view as follows, as u suggested function(doc) { emit(doc.documentType, null); } I tried the command as follows

Re: Merry Christmas!

2011-12-24 Thread Keith Gable
I'm tired of explaining how this holiday was originally a celebration of the winter solstice prior to the formation of the Church. Someone else do it. On Dec 24, 2011 3:22 PM, Mark Hahn m...@hahnca.com wrote: Don't worry, we pastafarians are not offended by xmas.

Re: Image upload from App

2011-12-05 Thread Keith Gable
countless nights doing basic things that should just work (and do natively and in web browsers). At this point, I think I could have written the app I'm working on in ARM assembler and spent less time debugging. :( --- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer

Re: Image upload from App

2011-11-24 Thread Keith Gable
Also, Titanium sucks and you can only GET and POST. Rails supports X-HTTP-Method-Override, which permits you to specify the HTTP method when posting, but I don't know about CouchDB. If CouchDB doesn't, you can't use Titanium's HTTPClient to do this. On Nov 24, 2011 8:33 AM,

Re: ssl problem

2011-11-24 Thread Keith Gable
Put the contents of the intermediate certificate file after the contents of your certificate and save a new file. Use that as your certificate. On Nov 24, 2011 12:00 PM, Jeremy Smith jeremyasm...@yahoo.com wrote: Hi, I have a godaddy ssl certificate and I am not sure how to tell couch to use

Re: Installing CouchDB on ISP server

2011-11-11 Thread Keith Gable
will be able to access your CouchDB instance, so be sure not to run it in Admin Party mode. --- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer On Fri, Nov 11, 2011 at 8:05 PM, Stephan Bardubitzki step...@bardubitzki.com wrote: Our ISP doesn't has any problem

Re: Help installing CouchDB on Ubuntu

2011-10-28 Thread Keith Gable
You say Gentoo worshipper like it's a bad thing. ;-) And on that note, CouchDB installed wonderfully on my Gentoo install. :-) But I see where you're coming from. Which is why I think that iriscouch made build-couchdb but I may be mistaken. On Oct 28, 2011 9:40 PM, Jim Klo jim@sri.com wrote:

Re: Binary logs?

2011-10-27 Thread Keith Gable
Honestly, I'd rm the log and go on my way. Am I horrible? On Oct 27, 2011 2:34 PM, CGS cgsmcml...@gmail.com wrote: I don't know. It may be a core dump from Erlang or other things which went wrong when you started CouchDB for the first time. It is hard to say if the problem cannot be

Re: High latency (40ms) and low request rate (10 rps) under windows

2011-10-27 Thread Keith Gable
I've had similar experience, though never with enterprise (Seagate ES or equivalent) drives. More writes and thrashing in general seems to make normal drives die sooner. I have only anecdotal evidence though, so it could just be coincidental. On Oct 27, 2011 1:18 PM, CGS cgsmcml...@gmail.com

Re: Emiting a Doc from Erlang View

2011-10-02 Thread Keith Gable
I wouldn't emit a document in a view because you can always use include_docs to get the doc. On Oct 2, 2011 7:52 PM, Thomas Van de Velde thomase...@gmail.com wrote: Hi, How can I emit the document as part of an Erlang view? Emit(Something,*Doc*) doesn't work. Is there a good sample app or

Re: Create Content-MD5 hash

2011-09-27 Thread Keith Gable
of the raw bits by doing this: Base64.encode64(Digest::MD5.digest(your_file_iostream)) Hope that helps. --- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer On Tue, Sep 27, 2011 at 9:47 AM, Moritz Post mp...@eclipsesource.comwrote: Hi Robert Thanks

Re: Android with Remote Couch

2011-09-15 Thread Keith Gable
, there was a discussion on this list about it, and someone wrote a Node.js proxy for it, but I only vaguely remember it. Also, sometimes PhoneGap will bypass the cross-domain restriction. For example, on iOS 4, you can get remote JSON all day long, but on iOS 3, you have to use JSONP. --- Keith Gable A+ Certified

Re: binaries for OSX ?

2011-08-16 Thread Keith Gable
Download their .app, show package contents, find the binaries, copy to your .app. Or is it distributed as a .pkg? --- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer On Tue, Aug 16, 2011 at 12:24 PM, m...@lavabit.com wrote: hi Jens and Ryan

Re: couchdb sync with dropbox?

2011-08-05 Thread Keith Gable
I doubt CouchDB will be able to do this without you coding anything to sync on the server side. And it sounds like you want to use CouchDB on the local devices and not have a central server. Have you considered using Lawnchair and just replicating the client's JSON to Dropbox? --- Keith Gable

Re: CouchDB as a windows service.

2011-08-04 Thread Keith Gable
On Aug 4, 2011 9:22 AM, Walter Torres wal...@torres.ws wrote: I have Apache and mySQL running, as a SERVICE, without REG KEYS. Impossible. You still have to have the service keys in the registry that tell Windows how to start/stop services. Maybe CouchDB is attempting to install this for you or

Re: CouchDB as a windows service.

2011-08-04 Thread Keith Gable
On Thu, Aug 4, 2011 at 10:31 AM, Walter Torres otrwal...@gmail.com wrote: When I installed erlsrv.exe as a SERVICE, windows created the SERVICE REG KEYS. It appears in the SERVICES control and it allows me to attempt to start it. Did *you* create the service, or did you copy and paste the

Re: CouchDB as a windows service.

2011-08-04 Thread Keith Gable
Euphemism for format and reinstall. :) On Aug 4, 2011 12:49 PM, Dennis Redfield dennis.lee.redfi...@gmail.com wrote: nuke and pave? On Thursday, August 4, 2011, Keith Gable zi...@ignition-project.com wrote: On Thu, Aug 4, 2011 at 10:31 AM, Walter Torres otrwal...@gmail.com wrote: When I

Re: CouchDB as a windows service.

2011-08-04 Thread Keith Gable
I see that your problem is now solved after I replied. Go Gmail :) On Thu, Aug 4, 2011 at 3:11 PM, Keith Gable zi...@ignition-project.com wrote: On Thu, Aug 4, 2011 at 2:34 PM, Walter Torres wal...@torres.ws wrote: sc.exe create CouchDBServer binPath= L:\etc\couchdb\erts-5.8.4\bin\erlsrv.exe

Re: accessing common data within show function

2011-07-21 Thread Keith Gable
On Thu, Jul 21, 2011 at 7:42 AM, Vivek Pathak vpat...@orgmeta.com wrote: This would make it hard to edit the html in a normal editor. Now I can keep my (templatized) html intact in a file, and upload it to a place it couchdb. I take this to mean that you use some sort of editor with a

Re: RESTful document structure

2011-07-11 Thread Keith Gable
share a db. -- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer

Re: Help using couchdb-lucene 0.6.0

2011-07-10 Thread Keith Gable
. But changing the local.url to http://0.0.0.0:5986 didn't have any effect, it was still complaining Connection to http://localhost:5984 refused. thanks for the tip. doron On Sun, Jul 10, 2011 at 4:19 AM, Keith Gable zi...@ignition-project.com wrote: It sounds like your config file isn't getting

Re: RESTful document structure

2011-07-10 Thread Keith Gable
is that they make sense. You can logically group together things that go together, which can lead to nice reusable and replicator friendly components. Christian Carter On Sat, Jul 9, 2011 at 6:13 PM, Keith Gable zi...@ignition-project.com wrote: I can't really answer your

Re: Help using couchdb-lucene 0.6.0

2011-07-10 Thread Keith Gable
worked) the locate cmd on my machine didn't find the first file so i was sure there is only one file. thanks again. Doron On Sun, Jul 10, 2011 at 10:56 AM, Keith Gable zi...@ignition-project.com wrote: These are two separate config files IIRC. In one, you're telling the CouchDB side how

Re: RESTful document structure

2011-07-09 Thread Keith Gable
to phrase the same question: why do design docs exist? -- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer

Re: Help using couchdb-lucene 0.6.0

2011-07-09 Thread Keith Gable
, -- doron -- doron -- Keith Gable A+ Certified Professional Network+ Certified Professional Web Developer

Re: json date representations

2011-07-06 Thread Keith Gable
In JavaScript, the native date representation is the number of milliseconds since the Unix Epoch. I assume this applies in JSON/CouchDB. On Jul 6, 2011 1:52 PM, Peter Nolan peterwno...@gmail.com wrote: Not to hijack the thread, but what is couchdb's standard for dates? For example, if i save a

  1   2   >