00:00:28  <mbalho>it connected without crashing!
00:00:38  <mbalho>havent tried sending any data yet though
00:01:10  <mbalho>on both sides its doing stream.pipe(master.createStream({tail: true})).pipe(stream) and it didnt throw any errors
00:01:15  <mbalho>but the dbs are empty
00:01:25  <brycebaril>Nice! I don't think I need sublevel for my leveljs stuff but I'm interested to hear what all you find that's compatible
00:02:05  <brycebaril>Does that do a persistent replication between browser/multi?
00:02:09  <mbalho>well i just need it because level-replicate is written on top of it
00:02:12  * mcollinajoined
00:02:21  <mbalho>brycebaril: theoretically yes it should do streaming multi master replication
00:03:31  <brycebaril>Next step, webrtc? ;)
00:03:56  <mbalho>gotta wait for {reliable:true} to land, which is chrome 28 i think
00:04:06  * julianduquequit (Ping timeout: 252 seconds)
00:05:11  <mbalho>hmm levelweb hangs for me
00:05:21  <mbalho>npm install levelweb -g; levelweb foo.db
00:05:30  <mbalho>then it says 'https server listening on localhost port 8080'
00:05:34  <mbalho>but that page never loads anything
00:05:43  <mbalho>hij1nx: am i doin it rong
00:06:27  <mbalho>oh maybe i didnt set a password
00:06:43  <mbalho>nah still hangs
00:06:51  * mcollinaquit (Ping timeout: 252 seconds)
00:08:22  <mbalho>OH if you dont specify https:// in the url it hangs forever
00:09:58  * mrevilquit (Remote host closed the connection)
00:10:43  <mbalho>ok it seems my data made it into the server over levelup, sublevel and level-replicate
00:10:50  <mbalho>but trying to view it in levelweb crashes levelweb
00:10:54  <mbalho>so not sure if my fault or otherwise
00:12:23  <mbalho>what the effing eff https://github.com/rvagg/node-levelup/blob/master/lib/read-stream.js#L56-L59
00:12:48  <mbalho>my key is 'hello' and that code is throwing 'unexpected token h'
00:13:10  <mbalho>my brain cant even parse the flow control...
00:14:05  <mbalho>is it like if {} else{} if else{} if else{} or something?
00:14:25  <mbalho>oh its like if {} else {} else {} else {}
00:14:37  <mbalho>wait that doesnt make sense
00:14:45  <mbalho>it must be like if {} else if {} else if {} else if {}
00:15:52  <mbalho>wait im still confused
00:16:26  <brycebaril>if keys & values, call makeKeyValueData.bind, if just keys, call makeKeyData.bind, if just values, call makeValueData.bind
00:16:51  <brycebaril>otherwise makeNoData
00:17:14  <mbalho>wow
00:17:17  <mbalho>that makes
00:17:19  <mbalho>sense
00:17:38  <brycebaril>yeah, but I'm not sure that I'd use a ternary there for readability reasons...
00:17:38  <mbalho>i didnt know ternaries could do that
00:18:51  <mbalho>hmm apparently the default key encoding is JSON?
00:19:01  <mbalho>in levelup? or something is setting that at least
00:20:24  <mbalho>well anyway maybe levelweb is setting it
00:21:36  <mbalho>good news is that my data replicated somehow
00:21:45  <mbalho>from browser to server, gotta check the other way
00:22:08  <mbalho>and then try binary, i just did string key/val
00:24:46  <mbalho>ah level-replicate is dumb about binary
00:24:54  <mbalho>if i do this in the browser:
00:24:54  <mbalho>db.put('hello2', new Uint8Array(100).buffer, function(err, resp){ console.log(err, resp) })
00:25:05  <mbalho>it gets this in node: {"key":"hello2","value":{"byteLength":100},"type":"put","id":"undefined","ts":"1371255873967"}
00:25:09  <mbalho>so its just doing .toString or something
00:25:13  <mbalho>dominictarr: o/
00:26:45  <mbalho>https://github.com/maxogden/doorknob/blob/master/replicate-client.js && https://github.com/maxogden/doorknob/blob/master/replicate-server.js is what i have so far
00:27:14  <mbalho>(you first have to do npm test and login and then ctrl+c npm test and then do node replicate-server.js and node replicate-client.js)
00:32:49  * mcollinajoined
00:34:12  <piklu>mbalho : wazz up
00:37:27  * mcollinaquit (Ping timeout: 245 seconds)
00:43:01  * dominictarrquit (Quit: dominictarr)
01:15:11  <piklu>anyone here?
01:33:57  * mcollinajoined
01:38:13  * mcollinaquit (Ping timeout: 248 seconds)
01:39:45  <rvagg>YES, whazzup piklu?
01:40:01  <piklu>the famous rvagg
01:40:03  <rvagg>I think you've been trying to catch me.. my timezone's apparently quite different to yours to
01:40:10  <rvagg>s/to$/tho
01:40:11  <piklu>what is ur timezone?
01:40:19  <rvagg>GMT+10, Australia
01:40:23  <piklu>oh ok
01:40:26  <piklu>mine is +5.30
01:40:39  <piklu>can i talk in private if its not offending
01:40:39  <piklu>?
01:41:24  <rvagg>ah, ok, if we must
01:49:56  <levelbot>[npm] [email protected] <http://npm.im/leveldown>: A Node.js LevelDB binding, primary backend for LevelUP (@rvagg)
02:10:53  * mreviljoined
02:20:57  <rvagg>fyi, I forgot to apply the 2-line patch to leveldb that pulls in my port-uv changes for windows support, hence the 0.6.1 release that fixes it for windows users
02:25:49  * piklu_joined
02:27:42  * pikluquit (Ping timeout: 264 seconds)
02:27:42  * piklu_changed nick to piklu
02:28:21  * mrevilquit (Ping timeout: 248 seconds)
02:54:59  * mreviljoined
02:59:30  * mrevilquit (Ping timeout: 264 seconds)
03:05:19  * mcollinajoined
03:10:00  * mcollinaquit (Ping timeout: 256 seconds)
03:32:46  * timoxleyjoined
03:36:42  * mcollinajoined
03:44:38  * mreviljoined
04:02:30  * brianloveswordsquit (Excess Flood)
04:05:00  * brianloveswordsjoined
04:17:02  * mcollinaquit (Ping timeout: 245 seconds)
04:31:16  * ralphtheninjaquit (Quit: leaving)
04:31:39  * ralphtheninjajoined
04:43:24  * mcollinajoined
04:45:19  <mbalho>anyone interested in working at heroku on node?
04:45:35  <mbalho>i went over there today and was like 'upgrade node and get real file systems'
04:45:43  <mbalho>and they were like 'we would hire someone to do that'
05:04:25  * mcollinaquit (Ping timeout: 240 seconds)
05:11:23  * ralphtheninjaquit (Ping timeout: 240 seconds)
05:14:15  * mrevilquit (Remote host closed the connection)
05:31:12  * mcollinajoined
05:35:28  * mcollinaquit (Ping timeout: 252 seconds)
05:41:25  <rvagg>heh, wow, that sounds a bit ... sad, they don't have people?
05:44:48  <rvagg>if they want a contractor .. in a different country .. I might be available for that kind of challenge
05:48:46  <rvagg>http://heroku-buildpack-nodejs.s3.amazonaws.com/manifest.nodejs <-- 0.10.11 is pretty good
05:48:59  <rvagg>what a nightmare maintaining all of those versions
06:01:35  * mcollinajoined
06:06:14  * mcollinaquit (Ping timeout: 256 seconds)
06:07:58  * dominictarrjoined
06:14:58  <dominictarr>mbalho: brycebaril that isn't quite right chained ternary is if (test) [else if {…}]* else {…}
06:15:42  <dominictarr>the indentation used there is misleading
06:15:46  <dominictarr>though
06:32:05  * mcollinajoined
06:33:11  <brycebaril>dominictarr: I think maybe we're saying the same thing. Here's a gist that runs it through the options, also with how I'd probably indent/format the expr: https://gist.github.com/brycebaril/e39c125308e069d453fc
06:33:42  <dominictarr>i'd make the ? and : line up
06:34:03  <dominictarr>well, technically, they are sub expressions
06:34:45  <brycebaril>yeah
06:34:46  <dominictarr>but as a human, it's just like if elseif elseif else
06:35:35  <dominictarr>when using a ternary with return I put a () around it like this
06:35:41  <dominictarr>return (
06:35:48  <dominictarr> x ? y
06:36:00  <dominictarr>: z ? a
06:36:04  <dominictarr>: b
06:36:05  <dominictarr>)
06:36:42  * mcollinaquit (Ping timeout: 264 seconds)
06:37:00  <brycebaril>Interesting, I don't think I've seen it like that, so no indentation for the ':'s?
06:37:50  <dominictarr>well, I indented poorly just then, because irc
06:38:09  <dominictarr>normally I make stuff like this line up.
06:38:46  <brycebaril>I think the way I lined them up is a relic from 'Perl Best Practices'
06:40:31  <brycebaril>Though it'd have me make sure all the : and ? were in a column
06:42:08  <rvagg>this is how I nest ternaries: https://github.com/rvagg/traversty/blob/master/traversty.js#L401-L413
06:42:11  * rvaggdoes a cheesy grin
06:42:54  <rvagg>there's a certain pleasure that comes from knowing how much some people hate nested ternaries but using them anyway
06:44:14  <brycebaril>You made it too easy with your convenient boolean-sounding function name :P
06:45:16  <chilts>rvagg: when I went to SF earlier this year, I went to see a mate of mine at Heroku (used to work with him)
06:45:30  <chilts>he was like "we need someone to look after the build-pack" - so you've already seen that :)
06:46:22  <rvagg>well they're not advertising so obviously not very serious
06:47:01  <chilts>nah, but I figure quite a lot of jobs end up being word-of-mouth :)
07:02:28  * mcollinajoined
07:06:37  * mcollinaquit (Ping timeout: 245 seconds)
07:32:50  * mcollinajoined
07:36:55  * mcollinaquit (Ping timeout: 246 seconds)
07:40:33  * timoxleyquit (Quit: Computer has gone to sleep.)
07:43:30  * timoxleyjoined
07:57:48  * pikluquit (Read error: Connection reset by peer)
07:59:16  * piklujoined
08:03:12  * mcollinajoined
08:07:46  * mcollinaquit (Ping timeout: 276 seconds)
08:37:46  * Acconutjoined
08:43:22  * Acconutquit (Quit: Acconut)
08:59:45  * mcollinajoined
09:35:20  * mcollinaquit (Remote host closed the connection)
09:37:10  * Acconutjoined
09:37:16  * Acconutquit (Client Quit)
10:12:53  * piklu_joined
10:13:46  * pikluquit (Ping timeout: 252 seconds)
10:13:46  * piklu_changed nick to piklu
10:22:26  * brycebarilquit (Read error: Connection reset by peer)
10:28:09  <rvagg>LevelDB meetup on the 25th in SF, mainly Node but non-node LevelDB people more than welcome too! http://www.meetup.com/Node-js-and-LevelDb/
10:36:33  * timoxleyquit (Quit: Computer has gone to sleep.)
10:47:11  * mcollinajoined
10:51:59  * Acconutjoined
10:52:10  * Acconutquit (Client Quit)
10:52:13  * mcollinaquit (Ping timeout: 276 seconds)
10:54:21  * timoxleyjoined
11:11:55  * pikluquit (Quit: piklu)
11:55:49  * timoxleyquit (Quit: Computer has gone to sleep.)
12:13:37  * timoxleyjoined
12:17:18  * mreviljoined
12:21:57  * mrevilquit (Ping timeout: 256 seconds)
12:22:15  * dominictarrquit (Quit: dominictarr)
12:26:04  * dominictarrjoined
12:31:40  * werlejoined
12:56:17  * piklujoined
13:14:07  * ralphtheninjajoined
14:32:48  * pikluquit (Read error: Connection reset by peer)
14:34:55  * piklujoined
14:40:10  * werlequit (Quit: Leaving.)
15:11:07  * werlejoined
15:11:57  * brycebariljoined
15:17:55  * werlequit (Ping timeout: 252 seconds)
15:18:55  <levelbot>[npm] [email protected] <http://npm.im/multilevel>: A levelUp instance exposed over a streaming interface (@juliangruber)
15:21:55  <levelbot>[npm] [email protected] <http://npm.im/multilevel>: A levelUp instance exposed over a streaming interface (@juliangruber)
15:30:48  * piklu_joined
15:32:02  * pikluquit (Ping timeout: 245 seconds)
15:32:02  * piklu_changed nick to piklu
15:38:03  * pikluquit (Ping timeout: 245 seconds)
15:40:05  * piklujoined
16:05:49  * thl0joined
16:09:17  * thl0quit (Remote host closed the connection)
16:19:00  * mreviljoined
16:23:06  * mrevilquit (Ping timeout: 240 seconds)
16:32:25  * pikluquit (Ping timeout: 246 seconds)
16:35:16  * piklujoined
16:38:43  * thl0joined
16:43:30  * piklu_joined
16:44:53  * pikluquit (Ping timeout: 256 seconds)
16:44:53  * piklu_changed nick to piklu
17:08:41  * thl0quit (Remote host closed the connection)
17:12:16  * Acconutjoined
17:12:19  * Acconutquit (Client Quit)
17:15:29  * thl0joined
17:23:17  * thl0quit (Remote host closed the connection)
17:34:25  * st_lukejoined
17:59:54  <levelbot>[npm] [email protected] <http://npm.im/multilevel>: A levelUp instance exposed over a streaming interface (@juliangruber)
18:28:22  * timoxleyquit (Quit: Computer has gone to sleep.)
18:43:34  * thl0joined
18:49:43  <thl0>dominictarr: any objections against using levelup and leveldown explicitly in level-test?
18:49:53  <thl0>instead of just level
18:50:08  <thl0>makes swapping in memdown easier
19:33:23  <dominictarr>thl0: yes, that is how it should be!
19:33:36  <thl0>ok - pretty much done
19:33:48  <thl0>expect the PR within the minute ;)
19:36:38  <thl0>dominictarr: https://github.com/dominictarr/level-test/pull/2
19:39:35  <dominictarr>thl0: merged into 1.3.0
19:39:46  <thl0>dominictarr: nice, thanks
19:40:24  <levelbot>[npm] [email protected] <http://npm.im/level-test>: get a clean levelup instance for testing. (@dominictarr)
19:50:11  * mcollinajoined
19:51:53  * st_lukequit (Remote host closed the connection)
20:09:40  * st_lukejoined
20:32:12  * piklu_joined
20:33:41  * pikluquit (Ping timeout: 248 seconds)
20:33:42  * piklu_changed nick to piklu
20:38:30  * mcollinaquit (Remote host closed the connection)
20:44:22  * mcollinajoined
20:48:24  <levelbot>[npm] [email protected] <http://npm.im/level-dump>: Dumps all values and/or keys of a level db or a sublevel to the console. (@thlorenz)
20:51:54  <levelbot>[npm] [email protected] <http://npm.im/level-dump>: Dumps all values and/or keys of a level db or a sublevel to the console. (@thlorenz)
21:09:53  * mcollinaquit (Remote host closed the connection)
21:21:55  * st_lukequit (Remote host closed the connection)
21:43:46  * thl0quit (Remote host closed the connection)
21:45:03  <mbalho>"Dat seeks to increase the traction of the open data movement by developing better tools for collaboration. A great model of this idea working in a different space is the GitHub project. GitHub build on top of an open source tool called git and provides a user-friendly web application that lets software developers find code written by others, use it in their own programs and improve upon it. In a similar fashion Dat will be developed as a set of tools
21:45:10  <mbalho>:D
21:47:02  * owen1quit (Quit: WeeChat 0.4.0)
21:59:34  * st_lukejoined
22:59:26  * eugenewa_quit (Remote host closed the connection)
23:00:09  * eugenewarejoined
23:06:36  * dominictarrquit (Quit: dominictarr)
23:12:41  * Pwnnaquit (Ping timeout: 256 seconds)
23:12:52  * eugeneware1joined
23:14:33  * eugeneware1quit (Client Quit)
23:44:08  * thl0joined
23:44:16  * thl0quit (Read error: Connection reset by peer)
23:44:50  * thl0joined