Skip to content

Instantly share code, notes, and snippets.

View metajack's full-sized avatar

Jack Moffitt metajack

View GitHub Profile
-module(strophe_xmpp).
-export([
presence/1,
presence/6,
message/4,
message/6,
iq/4,
iq/3
]).
test() ->
ok.
test() ->
ok.
info] [<0.54.0>] 127.0.0.1 - - 'GET' /_all_dbs 401
Exception in thread "indexer" net.sf.json.JSONException: A JSONArray text must start with '[' at character 1 of {"error":"unauthorized","reason":"Authentication required."}
at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:527)
at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:1146)
at net.sf.json.JSONArray._fromString(JSONArray.java:1226)
at net.sf.json.JSONArray.fromObject(JSONArray.java:151)
at net.sf.json.JSONArray.fromObject(JSONArray.java:129)
at org.apache.couchdb.lucene.Database.getAllDatabases(Database.java:47)
at org.apache.couchdb.lucene.Index$Indexer.updateIndex(Index.java:68)
at org.apache.couchdb.lucene.Index$Indexer.run(Index.java:54)
[debug] [<0.134.0>] 'GET' /test_index/_fti?q=test {1,1}
Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
{'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
{'Accept-Encoding',"gzip,deflate"},
{'Accept-Language',"en-us,en;q=0.5"},
{'Authorization',"Basic REDACTED"},
{'Connection',"keep-alive"},
{'Host',"localhost:5984"},
{'Keep-Alive',"300"},
{'User-Agent',"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7"}]
if (document.importNode) {
$(document.importNode(this)).appendTo(div);
} else {
// IE workaround
div.append(this.xml);
}
if [ $OSX ]
then
export JAVA_HOME=/Library/Java/Home
fi
CLASSPATH=.
export CLASSPATH
append_jardir_to_classpath()
{
jardir=$1
for j in `ls $jardir/*.jar`
do
if [ -z "$CLASSPATH" ]
then
CLASSPATH=$j
else
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>