svn commit: r736304 - in /couchdb/site/htdocs: ./ community/ docs/

2009-01-21 Thread jan
Author: jan
Date: Wed Jan 21 04:57:05 2009
New Revision: 736304

URL: http://svn.apache.org/viewvc?rev=736304&view=rev
Log:
Add links to pre-incubation mailing list archives.

Modified:
couchdb/site/htdocs/community/code.html
couchdb/site/htdocs/community/committers.html
couchdb/site/htdocs/community/index.html
couchdb/site/htdocs/community/issues.html
couchdb/site/htdocs/community/lists.html
couchdb/site/htdocs/community/lists.txt
couchdb/site/htdocs/community/standards.html
couchdb/site/htdocs/docs/index.html
couchdb/site/htdocs/docs/intro.html
couchdb/site/htdocs/docs/overview.html
couchdb/site/htdocs/downloads.html
couchdb/site/htdocs/index.html
couchdb/site/htdocs/roadmap.html
couchdb/site/htdocs/screenshots.html

Modified: couchdb/site/htdocs/community/code.html
URL: 
http://svn.apache.org/viewvc/couchdb/site/htdocs/community/code.html?rev=736304&r1=736303&r2=736304&view=diff
==
--- couchdb/site/htdocs/community/code.html (original)
+++ couchdb/site/htdocs/community/code.html Wed Jan 21 04:57:05 2009
@@ -62,8 +62,8 @@
 Mailing Lists
 Issue Tracking
 Source Code
-Coding Standards
 Committers
+Coding Standards
 http://planet.couchdb.com/";>Planet
 
 

Modified: couchdb/site/htdocs/community/committers.html
URL: 
http://svn.apache.org/viewvc/couchdb/site/htdocs/community/committers.html?rev=736304&r1=736303&r2=736304&view=diff
==
--- couchdb/site/htdocs/community/committers.html (original)
+++ couchdb/site/htdocs/community/committers.html Wed Jan 21 04:57:05 2009
@@ -62,8 +62,8 @@
 Mailing Lists
 Issue Tracking
 Source Code
-Coding Standards
 Committers
+Coding Standards
 http://planet.couchdb.com/";>Planet
 
 
@@ -71,29 +71,29 @@
 
   Committers
 
-http://damienkatz.net/";>Damien Katz, damien@apache.org
+http://damienkatz.net/";>Damien Katz, damien@apache.org
 
 Original developer and remains the project lead.
 
-http://jan.prima.de/";>Jan Lehnardt, jan@apache.org
+http://jan.prima.de/";>Jan Lehnardt, jan@apache.org
 
 Worked on the original UNIX port and now works on all ends in CouchDB.
He is a freelancing CouchDB consultant and gives presentations around the
world.
 
-http://bytesexual.org/nslater";>Noah Slater, nslater@apache.org
+http://bytesexual.org/nslater";>Noah Slater, nslater@apache.org
 
 Developed and maintains the Autotools build system and application
infrastructure. He is CouchDB’s release manager and maintains a 
number of
related packages for Debian GNU/Linux.
 
-http://www.cmlenz.net/";>Christopher Lenz, cmlenz@apache.org
+http://www.cmlenz.net/";>Christopher Lenz, cmlenz@apache.org
 
 Developed and maintains Futon, the Web administration console. He works on
the JavaScript view engine, SpiderMonkey and MochiWeb integration in
addition to an external Python client.
 
-http://jchris.mfdz.com";>J. Chris Anderson, jchris@apache.org
+http://jchris.mfdz.com";>J. Chris Anderson, jchris@apache.org
 
 Upgraded the Erlang JSON term format. Integrates community patches,
   particularly related to the HTTP API and the MapReduce system. Give talks and

Modified: couchdb/site/htdocs/community/index.html
URL: 
http://svn.apache.org/viewvc/couchdb/site/htdocs/community/index.html?rev=736304&r1=736303&r2=736304&view=diff
==
--- couchdb/site/htdocs/community/index.html (original)
+++ couchdb/site/htdocs/community/index.html Wed Jan 21 04:57:05 2009
@@ -60,8 +60,8 @@
 Mailing Lists
 Issue Tracking
 Source Code
-Coding Standards
 Committers
+Coding Standards
 http://planet.couchdb.com/";>Planet
 
 
@@ -73,8 +73,8 @@
 Mailing Lists
 Issue Tracking
 Source Code
-Coding Standards
 Committers
+Coding Standards
 http://planet.couchdb.com/";>Planet
 
 

Modified: couchdb/site/htdocs/community/issues.html
URL: 
http://svn.apache.org/viewvc/couchdb/site/htdocs/community/issues.html?rev=736304&r1=736303&r2=736304&view=diff
==
--- couchdb/site/htdocs/community/issues.html (original)
+++ couchdb/site/htdocs/community/issues.html Wed Jan 21 04:57:05 2009
@@ -62,8 +62,8 @@
 Mailing Lists
 Issue Tracking
 Source Code
-Coding Standards
 Committers
+Coding Standards
 http://planet.couchdb.com/";>Planet
 
 

Modified: couchdb/site/htdocs/community/lists.html
URL: 
http://svn.apache.org/viewvc/couchdb/site/htdocs/community/lists.html?rev=736304&r1=736303&r2=736304&view=diff
==
--- couchdb/site/htdocs/community/lists.html (original)
+++ couchdb/site/htdocs/community/lists.html Wed Jan 21 04:57:05 2009
@@ -62,8 +62,8 @@
 Mailing Lists
 Issue Tracking
 Source Code
-Coding Standards
 Committers
+Coding Standards
 http://planet.couchdb.com/";>Planet
 
 
@@ -87,15 +87,17

[Couchdb Wiki] Update of "Installation" by JanLehnardt

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/Installation

The comment on the change is:
add page for apache proxy config

--
  '''Verifying the Installation'''
* ["Verify and Test Your Installation"]
  
+ '''Third Party Tool Configuration'''
+   * ["Apache As a Reverse Proxy"]
+ 


[Couchdb Wiki] Update of "Apache As a Reverse Proxy" by JanLehnardt

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

New page:
By Patrick Antivackis:


   ServerAdmin webmas...@dummy-host.example.com
   DocumentRoot "/opt/websites/web/www/dummy"
   ServerName couchdb.localhost
   AllowEncodedSlashes On
   ProxyRequests Off
   
  Order deny,allow
  Deny from all
  Allow from 88.164.1.48
  Allow from 127.0.0.1
   
   ProxyPass / http://localhost:5984/ nocanon
   ProxyPassReverse / http://localhost:5984/
   ErrorLog "logs/couchdb.localhost-error_log"
   CustomLog "logs/couchdb.localhost-access_log" common



[Couchdb Wiki] Trivial Update of "Apache As a Reverse Proxy" by JanLehnardt

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by JanLehnardt:
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

The comment on the change is:
formatting

--
  By Patrick Antivackis:
  
+ {{{
  
 ServerAdmin webmas...@dummy-host.example.com
 DocumentRoot "/opt/websites/web/www/dummy"
@@ -19, +20 @@

 ErrorLog "logs/couchdb.localhost-error_log"
 CustomLog "logs/couchdb.localhost-access_log" common
  
+ }}}
  


svn commit: r736387 - in /couchdb/trunk/share/www: script/futon.browse.js script/jquery.suggest.js style/layout.css

2009-01-21 Thread cmlenz
Author: cmlenz
Date: Wed Jan 21 11:40:19 2009
New Revision: 736387

URL: http://svn.apache.org/viewvc?rev=736387&view=rev
Log:
Add caching to the Futon autocompletion feature, and fix the positioning code.

Modified:
couchdb/trunk/share/www/script/futon.browse.js
couchdb/trunk/share/www/script/jquery.suggest.js
couchdb/trunk/share/www/style/layout.css

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=736387&r1=736386&r2=736387&view=diff
==
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Wed Jan 21 11:40:19 
2009
@@ -335,7 +335,7 @@
   var matches = [];
   for (var i = 0; i < docs.rows.length; i++) {
 var docName = docs.rows[i].id.substr(8);
-if (docName.substr(0, text.length) == text) {
+if (docName.indexOf(text) == 0) {
   matches[i] = docName;
 }
   }
@@ -350,7 +350,7 @@
   var matches = [];
   if (!doc.views) return;
   for (var viewName in doc.views) {
-if (viewName.substr(0, text.length) == text) {
+if (viewName.indexOf(text) == 0) {
   matches.push(viewName);
 }
   }

Modified: couchdb/trunk/share/www/script/jquery.suggest.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.suggest.js?rev=736387&r1=736386&r2=736387&view=diff
==
--- couchdb/trunk/share/www/script/jquery.suggest.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/jquery.suggest.js [utf-8] Wed Jan 21 
11:40:19 2009
@@ -15,13 +15,15 @@
   suggest = function(elem, options) {
 var timer = null;
 var prevVal = null;
+var cache = {};
+var cacheKeys = [];
 
 var input = $(elem).attr("autocomplete", "off");
-var offset = input.offset();
-var dropdown = $('')
-  .addClass(options.dropdownClass).appendTo("body").css({
-top: (offset.top + elem.offsetHeight) + "px",
-left: offset.left + "px",
+var pos = input.position();
+var dropdown = $('')
+  .addClass(options.dropdownClass).insertAfter(input).css({
+top: (pos.top + input.outerHeight()) + "px",
+left: pos.left + "px",
 minWidth: input.css("width")
   });
 
@@ -65,9 +67,20 @@
   var newVal = $.trim(input.val());
   if (force || newVal != prevVal) {
 if (force || newVal.length >= options.minChars) {
-  options.callback.apply(elem, [$.trim(input.val()), function(items, 
render) {
-show(items, render);
-  }]);
+  if (options.cache && cache.hasOwnProperty(newVal)) {
+show(cache[newVal].items, cache[newVal].render);
+  } else {
+options.callback.apply(elem, [newVal, function(items, render) {
+  if (options.cache) {
+if (cacheKeys.length >= options.cacheLimit) {
+  delete cache[cacheKeys.shift()];
+}
+cache[newVal] = {items: items, render: render};
+cacheKeys.push(newVal);
+  }
+  show(items, render);
+}]);
+  }
 } else {
   dropdown.hide();
 }
@@ -91,7 +104,7 @@
 item.appendTo(dropdown);
   }
   dropdown.slideDown("fast");
-  dropdown.children('li').click(function(e) {
+  dropdown.children("li").click(function(e) {
 $(this).addClass("selected");
 commit();
   });
@@ -133,8 +146,10 @@
 
   $.fn.suggest = function(callback, options) {
 options = $.extend({
+  cache: true,
+  cacheLimit: 10,
   callback: callback,
-  delay: 100,
+  delay: 250,
   dropdownClass: "suggest-dropdown",
   minChars: 1,
   select: null

Modified: couchdb/trunk/share/www/style/layout.css
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/style/layout.css?rev=736387&r1=736386&r2=736387&view=diff
==
--- couchdb/trunk/share/www/style/layout.css (original)
+++ couchdb/trunk/share/www/style/layout.css Wed Jan 21 11:40:19 2009
@@ -142,8 +142,8 @@
 /* Suggest results */
 
 ul.suggest-dropdown { border: 1px solid #999; background-color: #eee;
-  padding: 0; margin: 0; list-style: none; opacity: .85; position: absolute;
-  z-index: 1; display: none; -webkit-box-shadow: 2px 2px 10px #333;
+  padding: 0; margin: 0; list-style: none; opacity: .85;
+  -webkit-box-shadow: 2px 2px 10px #333;
 }
 ul.suggest-dropdown li { padding: 2px 5px; white-space: nowrap; color: #101010;
   text-align: left;
@@ -256,8 

[Couchdb Wiki] Update of "Apache As a Reverse Proxy" by PatrickAntivackis

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by PatrickAntivackis:
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

--
  By Patrick Antivackis:
+ 
+ This is a Virtual Host config to use Apache as a reverse Proxy for CouchDB.
+ You need at least to configure apache with the --enable-proxy 
--enable-proxy-http options and use a version higher than Apache 2.2.7
+ in order to use the nocanon option in the ProxyPass directive.
  
  {{{
  
@@ -12, +16 @@

 
Order deny,allow
Deny from all
-   Allow from 88.164.1.48
Allow from 127.0.0.1
 
 ProxyPass / http://localhost:5984/ nocanon


[Couchdb Wiki] Update of "Apache As a Reverse Proxy" by PatrickAntivackis

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by PatrickAntivackis:
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

--
  
  This is a Virtual Host config to use Apache as a reverse Proxy for CouchDB.
  You need at least to configure apache with the --enable-proxy 
--enable-proxy-http options and use a version higher than Apache 2.2.7
- in order to use the nocanon option in the ProxyPass directive.
+ in order to use the nocanon option in the proxypass directive.
  
  {{{
  


[Couchdb Wiki] Update of "Apache As a Reverse Proxy" by PatrickAntivackis

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by PatrickAntivackis:
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

--
  By Patrick Antivackis:
  
  This is a Virtual Host config to use Apache as a reverse Proxy for CouchDB.
- You need at least to configure apache with the --enable-proxy 
--enable-proxy-http options and use a version higher than Apache 2.2.7
+ You need at least to configure apache with the --enable-proxy 
--enable-proxy-http options and use a version equal or higher than Apache 2.2.7
  in order to use the nocanon option in the proxypass directive.
  
  {{{


svn commit: r736399 - /couchdb/trunk/share/www/script/jquery.suggest.js

2009-01-21 Thread cmlenz
Author: cmlenz
Date: Wed Jan 21 12:10:04 2009
New Revision: 736399

URL: http://svn.apache.org/viewvc?rev=736399&view=rev
Log:
The Futon autocomplete dropdown should reposition every time its shown, not 
only when its first created.

Modified:
couchdb/trunk/share/www/script/jquery.suggest.js

Modified: couchdb/trunk/share/www/script/jquery.suggest.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.suggest.js?rev=736399&r1=736398&r2=736399&view=diff
==
--- couchdb/trunk/share/www/script/jquery.suggest.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/jquery.suggest.js [utf-8] Wed Jan 21 
12:10:04 2009
@@ -19,13 +19,8 @@
 var cacheKeys = [];
 
 var input = $(elem).attr("autocomplete", "off");
-var pos = input.position();
 var dropdown = $('')
-  .addClass(options.dropdownClass).insertAfter(input).css({
-top: (pos.top + input.outerHeight()) + "px",
-left: pos.left + "px",
-minWidth: input.css("width")
-  });
+  .addClass(options.dropdownClass).insertAfter(input);
 
 input
   .blur(function() {
@@ -91,8 +86,12 @@
 function show(items, render) {
   if (!items) return;
   if (!items.length) { dropdown.hide(); return; }
+  var pos = input.position();
+  dropdown.empty().css({
+top: (pos.top + input.outerHeight()) + "px", left: pos.left + "px",
+minWidth: input.css("width")
+  });
   render = render || function(idx, value) { return value; }
-  dropdown.empty();
   for (var i = 0; i < items.length; i++) {
 var item = $("").data("value", items[i]);
 var rendered = render(i, items[i]);




svn commit: r736400 - /couchdb/trunk/share/www/script/futon.browse.js

2009-01-21 Thread cmlenz
Author: cmlenz
Date: Wed Jan 21 12:11:31 2009
New Revision: 736400

URL: http://svn.apache.org/viewvc?rev=736400&view=rev
Log:
Fix for view name encoding in Futon, for database names containing slashes. 
Closes COUCHDB-214 (again).

Modified:
couchdb/trunk/share/www/script/futon.browse.js

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=736400&r1=736399&r2=736400&view=diff
==
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Wed Jan 21 12:11:31 
2009
@@ -103,7 +103,8 @@
 viewName = $.cookies.get(dbName + ".view", "");
 if (viewName) {
   this.redirecting = true;
-  location.href = "database.html?" + dbName + "/" + viewName;
+  location.href = "database.html?" + encodeURIComponent(dbName) +
+"/" + encodeDocId(viewName);
 }
   }
   var db = $.couch.db(dbName);
@@ -969,7 +970,7 @@
 if (parts[0] == '_design') {
   parts.shift();
   encoded = encodeURIComponent(parts.join('/'));
-  return '_design/'+encoded;
+  return '_design/' + encoded;
 } else {
   return encodeURIComponent(docid);
 }




[Couchdb Wiki] Update of "Apache As a Reverse Proxy" by GlennRempe

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by GlennRempe:
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy

--
 ServerName couchdb.localhost
 AllowEncodedSlashes On
 ProxyRequests Off
+KeepAlive Off
 
Order deny,allow
Deny from all


[Couchdb Wiki] Update of "CouchDB in the wild" by blackmagic rue

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by blackmagic rue:
http://wiki.apache.org/couchdb/CouchDB_in_the_wild

--
   * [http://github.com/jtulloch/scanty/tree/master Scanty on the Couch], a 
port of Adam Wiggins' Scanty blog software
  
  == Websites ==
+   * [http://www.gpirate.com/ Gpirate], world's biggest torrent search engine
* [http://www.teenwag.com/ Teenwag], a Teen Social network
* [http://www.youfindr.com/ Youfindr], a Social search engine
* [http://www.wego.com/ Wego], a travel search website
@@ -30, +31 @@

  == Facebook Applications ==
* [http://apps.facebook.com/ukissme/ Will you Kissme], Dating game
* [http://apps.facebook.com/getlucky/ Horoscope], Horoscopes
- 
+   * [http://apps.facebook.com/bdayecards/ Birthday Greeting cards], Greeting 
cards
  
  == Internal Use ==
  


[Couchdb Wiki] Trivial Update of "View Snippets" by GlennRempe

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by GlennRempe:
http://wiki.apache.org/couchdb/View_Snippets

--
- This page collects code snippets to be used in your ["Views"]. They are 
mainly ment to help getting your head arround the map/reduce approach to 
databases. Keep in mind that the the Futon Web-Client silently adds group=true 
to your views.
+ This page collects code snippets to be used in your ["Views"]. They are 
mainly meant to help get your head around the map/reduce approach to accessing 
database content. Keep in mind that the the Futon web client silently adds 
group=true to your views.
  
  == Get docs with a particular user id ==
  


[Couchdb Wiki] Trivial Update of "View Snippets" by GlennRempe

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by GlennRempe:
http://wiki.apache.org/couchdb/View_Snippets

The comment on the change is:
Spelling

--
  
  Then query with key=USER_ID to get all the rows that match that user.
  
- == Get all documents which have an attatchment ==
+ == Get all documents which have an attachment ==
  
  This lists only the documents which have an attachment.
  
@@ -29, +29 @@

  In SQL this would be something like {{{SELECT if FROM table WHERE attachment 
IS NOT NULL}}}.
  
  
- == Count documents which and without an attachment ==
+ == Count documents with and without an attachment ==
  
  Call this with ''group=true'' or you only get the combined number of 
documents witch and without attachments.
  


[Couchdb Wiki] Update of "View Snippets" by GlennRempe

2009-01-21 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The following page has been changed by GlennRempe:
http://wiki.apache.org/couchdb/View_Snippets

The comment on the change is:
Spelling

--
  
  == Count documents with and without an attachment ==
  
- Call this with ''group=true'' or you only get the combined number of 
documents witch and without attachments.
+ Call this with ''group=true'' or you only get the combined number of 
documents with and without attachments.
  
  {{{
  map: function(doc) {
if (doc._attachments) {
- emit("with attatchment", 1);
+ emit("with attachment", 1);
}
else {
- emit("without attatchment", 1); 
+ emit("without attachment", 1); 
}
  }
  reduce: function(keys, values) {