This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff test/javascript/tests/replicator_db_bad_rep_id.js | cat | |
diff --git a/test/javascript/tests/replicator_db_bad_rep_id.js b/test/javascript/tests/replicator_db_bad_rep_id.js | |
index 8f57eb0..bb6dd30 100644 | |
--- a/test/javascript/tests/replicator_db_bad_rep_id.js | |
+++ b/test/javascript/tests/replicator_db_bad_rep_id.js | |
@@ -11,14 +11,16 @@ | |
// the License. | |
couchTests.replicator_db_bad_rep_id = function(debug) { | |
- return console.log('TODO'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
poss.: | |
- run 10 times, expect x% | |
- ensure w=n=3 via ini tweaking (somewhere in dev/run?) | |
- accept n(=w)=1 ? | |
- retry-loop | |
- ... (ideas?!) | |
needed 4: | |
- w | |
- start_delay/start_splay of replicator | |
- (more?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
use this file except in compliance with the License. You may obtain a copy of | |
the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> couch_epi (compile) | |
==> b64url (compile) | |
==> cassim (compile) | |
==> meck (compile) | |
==> couch_log (compile) | |
==> lager (compile) | |
==> couch_log_lager (compile) | |
==> config (compile) | |
==> chttpd (compile) | |
==> couch (compile) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it's not about re-usability! - it's about manage-ability (incl. evolve-ability), also in hardening and maintenance phase | |
Generic code fails at that - and so does sloppy code (even thought it might work in the beginning or 4 "Hello, world!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
public class SQLiteJDBC { | |
public static void main(String args[]) throws SQLException, ClassNotFoundException { | |
Connection c = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// otherwise, some bad stuff occurs that takes HOURs to debug | |
// take that (condensed from several files): | |
$q.when("hey").then(function(v){console.log(v);}); // prints "hey" | |
$http.get("something").then(function(){/* do something */}); | |
// no flush | |
$q.when("hey").then(function(v){console.log(v);}); // prints NOTHING b/c function(v) NEVER gets called | |
// resolved via | |
$q.when("hey").then(function(v){console.log(v);}); // prints "hey" | |
$http.get("something").then(function(){/* do something */}); | |
$httpBackend.flush(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prepare | |
var adef=Promise.defer(); | |
var bdef=Promise.defer(); | |
var a=adef.promise; | |
var b=bdef.promise; | |
a.then(function(){console.log("A");}); | |
b.then(function(){console.log("B");}); | |
var ab=Promise.all([a, b]); | |
ab.then(function(){console.log("AB");}); | |
// stop here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node -e 'var net=require("net"); var client=net.connect({port: 1881}, function(){client.write("hey"); client.end();}); ' |