View schema
1 2 3 4 5 6 7 8 9 10
/*
Products flow from one location to another. This is tracked with deliveries.
 
Delivery:
amount
sourceId
targetId
productId
*/
Delivery.belongsTo(Location, { as: 'source' })
View mixin.js
1 2 3 4 5 6 7 8 9 10
var transitionend = require('transitionend-property')
 
module.exports = {
onTransitionEnd: function(el, fn) {
var self = this
function handler(event) {
fn.call(self, event)
el.removeEventListener(event.type, handler)
}
el.addEventListener(transitionend, handler, false)
View style.css
1 2 3 4 5 6 7 8
body {
font-family: Georgia, serif;
color: #222;
line-height: 1.5;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
View index.html
1 2
<!-- in den <head> -->
<meta name="viewport" content="width=device-width, initial-scale=1">
View main.css
1 2 3 4 5 6 7 8 9 10
/* ganz ans Ende der main.css */
body {
margin: 0;
padding: 14px;
font-family: Georgia, serif;
font-size: 16px;
color: #222;
line-height:1.5;
background-color:white;
background-position: top left;
View transaction.js
1 2 3 4 5 6 7 8 9 10
{
"product": "product-id",
"from": "storage",
"to": "sold",
"volume": 10
}
// or
{
"product": "product-id",
"from": "delivery",
View gist:d287654447f2bce0b7b5
1 2 3 4 5 6
root@24e94f9f65f8:/# ls -l /usr/local/var/lib/
total 4
drwxrwxrwx 2 couchdb couchdb 4096 May 10 14:58 couchdb
root@24e94f9f65f8:/# sudo -i -u couchdb couchdb
sudo: unable to change directory to /usr/local/var/lib/couchdb: Permission denied
root@24e94f9f65f8:/#
View gist:10389088
1 2 3 4 5 6 7 8 9 10
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 
libssl-dev : Depends: libssl1.0.0 (= 1.0.1-4ubuntu3) but 1.0.1-4ubuntu5.12 is to be installed
Recommends: libssl-doc but it is not going to be installed
View http.log
1 2 3 4 5 6 7 8 9 10
ab -n 100 -k http://klaemo.me:5984/test/hello
 
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
 
Benchmarking klaemo.me (be patient).....done
 
 
Server Software: CouchDB/1.5.0
View dmesg.log
1 2 3 4 5 6 7 8 9 10
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.13.3-tinycore64 (root@11238c149617) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 SMP Wed Feb 19 01:15:06 UTC 2014
Command line: loglevel=3 user=docker console=ttyS0 console=tty0 nomodeset norestore base initrd=/boot/initrd.img BOOT_IMAGE=/boot/vmlinuz64
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x000000003ffeffff] usable
Something went wrong with that request. Please try again.