Skip to content

Instantly share code, notes, and snippets.

View janl's full-sized avatar
🛋️
Drop ICE

Jan Lehnardt janl

🛋️
Drop ICE
View GitHub Profile
@janl
janl / hu.md
Created November 3, 2013 14:08 — forked from OleMchls/gist:7290586

Title: Service Orientated Architecture to scale to infinity and beyond or Service Orientated Architecture for robust and scalable systems

Proposal: Software Architecture is hard. And when your business grow, its getting even harder because scaling doesn’t come out the box and it’s not only the software which grows it’s also the team. So you have to find a way how to scale your software in a way that it stays easy maintainable for growing teams and scalable. I’d like to talk about Service Orientated Architecture in general and also share some experience and give some examples where SOA would save your ass and maybe places where SOA isn’t the best idea to implement.

[19:37:56.969] "Listening for alt-T alt-T to start TogetherJS"
[19:37:57.241] TypeError: component.thumbnail is null @ http://localhost:5000/javascripts/designer.js:307
[19:37:59.102] Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ http://localhost:5000/vendor/jquery/jquery.min.js:4
+ ./bin/grunt test
path.existsSync is now called `fs.existsSync`.
Running "clean:release" (clean) task
Cleaning "dist/"...OK
Cleaning "app/load_addons.js"...OK
Running "clean:watch" (clean) task
Running "jshint:all" (jshint) task
>> 47 files lint free.
> diff -u hoodie.js hoodie2.js
--- hoodie.js 2013-09-02 12:53:25.000000000 +0100
+++ hoodie2.js 2013-09-02 13:24:32.000000000 +0100
@@ -187,7 +187,7 @@
// way to register. Lowercase hoodie is used because AMD module names are
// derived from file names, and Hoodie is normally delivered in a lowercase
// file name.
- define('hoodie', function () {
+ define(function () {
return Hoodie;
1. Download https://dl.dropboxusercontent.com/u/82149/Apache-CouchDB-1.4.0.zip
2. Double click to unzip
3. Make sure no other CouchDB is running (on port 5984)
4. Double click the “Apache CouchDB” App
5. Wait for Futon to show up in your default browser.
6. Got to “Verify Installation” and run “Verify Installation”.
7. You are done, please report your results here :)
8. Do *not* run the JS test suite.
diff --git a/doc/Makefile.am b/doc/Makefile.am
index a3075ff..44b6ab1 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -19,7 +19,7 @@ AM_MAKEINFOFLAGS = --no-split
TEXI2HTML_FLAGS = -split_chapter
TEXINFO_TEX = ../build-aux/texinfo.tex
-info_TEXINFOS = autoconf.texi standards.texi
+#info_TEXINFOS = autoconf.texi standards.texi
@janl
janl / diff.js
Last active December 21, 2015 14:29
diff --git a/lib/account_manager.js b/lib/account_manager.js
index a46aa93..c018b4b 100644
--- a/lib/account_manager.js
+++ b/lib/account_manager.js
@@ -17,7 +17,25 @@ exports.start = function (manager, callback) {
var feed = couchr.changes(user_db, {include_docs: true});
feed.on('change', function (change) {
- am.emit('change', change);
+ console.log('handle account change: %j', change);
What’s new in Apache CouchDB 0.11 — Part Two: Views; JOINs Redux, Raw Collation for Speed
Hi again! It’s Jan again. Thanks for coming back. If you missed Part One, here’s your chance to catch up.
CouchDB JOINs Redux
When I started out talking about CouchDB (back in 2006) people were rarely aware of any databases that didn’t use SQL for querying. An frequent question was “How do I do JOINs?” — The short answer is “You don’t”. People worried about retrieving “related data” from a non-relational database.
Turns out “related data” and “relation” have very little in common (the first is groups of data, the second is a mathematical term that refers to a multivalued mapping more commonly called a “table” ). Long story short there was (and still is) confusion.
TypeError: 'undefined' is not an object (evaluating 'navigator.id.get')
line: 5013
message: "'undefined' is not an object (evaluating 'navigator.id.get')"
sourceURL: "http://127.0.0.1:6025/assets/vendor/hoodie.js"
stack: "signIn@http://127.0.0.1:6025/assets/vendor/hoodie.js:5013↵signInWith@http://127.0.0.1:6025/assets/vendor/hoodie.js:830↵eval code↵eval@[native code]↵_evaluateOn↵↵_evaluateAndWrap↵↵evaluate↵↵[native code]"
__proto__: Error
constructor: function TypeError() {
message: ""
name: "TypeError"
toString: function toString() {
> grunt build
Running "jshint:files" (jshint) task
>> 17 files lint free.
Running "shell:test" (shell) task
module.js:340
throw err;
^
Error: Cannot find module '/Users/jan/Work/hoodie/hoodie.js/node_modules/karma/bin/karma'