#dat

/

      • mafintosh
        ogd: pr a close method that closes all the writers
      • ogd
        mafintosh: remote-update question, if i have a hyperdrive can i do drive.metadata.on('remote-update', cb) to ensure the hyperdrive has finished a bitfield exchange?
      • mafintosh
        ogd: yup
      • ogd: and you can send a pr that forwards the remote-update event to the drive instance if you want
      • ogd
        mafintosh: ok have prototype dat-npm working
      • mafintosh: are you at a pc to try it out real quick?
      • laptop*
      • mafintosh
        yuh
      • ogd: what do i run ?
      • ogd
        mafintosh: clone https://github.com/mafintosh/dat-npm and run get.js
      • mafintosh: to see if that part works
      • mafintosh: should print a bunch of json and then eventually process should exit
      • mafintosh
        ogd: installing deps
      • ogd: prints a bunch of json
      • ogd
        mafintosh: cool
      • mafintosh: now run cache-get, it should print a stat object
      • mafintosh
        ogd: it does1
      • ogd
        mafintosh: ok so
      • mafintosh: how change cache-get to another tarball you havvent requested yet
      • mafintosh: e.g. hyperdrive 9.5.1
      • mafintosh: but with the module/version you wanna download
      • mafintosh: doing a GET on that api writes the tarball to the tarballs hyperdrive and then when thats done returns 200
      • mafintosh: so after you GET the above URL you should be able to run cache-get again and it should get the stat object for the tarballs you just requested
      • zz_zz has quit
      • mafintosh
        ogd: one sec
      • ogd: you should try and stat it before remote-update as well
      • ogd: if it is there already, fine - otherwise wait for remote-update
      • ogd
        mafintosh: try deleting the .db folders locally and running again
      • mafintosh
        ogd: same
      • ogd: can you download the o/ module
      • ogd
        mafintosh: on my phone now
      • mafintosh: hmm the tarballs are definitely getting written to the hyperdrive on the server, i just double checked...
      • mafintosh: o/
      • mafintosh: maybe the remote-update is firing from a peer who has an old copy? anyway to get an event for when the writer updates?
      • mafintosh
        ogd: keep listening for remote-update and keep trying
      • ogd
        mafintosh: oo i get a lot of remote-update events
      • mafintosh: but seems to work
      • mafintosh
        ogd: many peers :)
      • ogd
        mafintosh: is there an event for when the content of the hyperdrive is updated?
      • mafintosh: i guess i could check the latest seq number...
      • mafintosh
        ogd: on(append)
      • ogd
        mafintosh: ah i see though now i should just wait till one of the remote-updates makes the stat comes back true
      • mafintosh
        ogd: yea what i meant before
      • ogd: and check it right away also
      • ogd
        mafintosh: yea nice, works great
      • mafintosh: pushed fix to master
      • mafintosh
        ogd: we can make a wait: true flag that does this behind the scenes
      • ogd
        mafintosh: oh yea
      • mafintosh: can i iterate every key in a hyperdb somehow
      • mafintosh
        ogd: not yet, soon :)
      • ogd: works great now
      • jondashkyle
        hey all—haven't shared this too widely yet, but thought to drop the link here. it’s sort of a dat CMS using choo as a little front-end framework: https://enoki.site/
      • adding a little “publish” button which syncs with dat in the panel is one of the next big features on the roadmap
      • ogd
        ooooo
      • jondashkyle
        anyway, just added the information about the panel to the site, and some writing to the log
      • mafintosh
        ogd: latest hyperdb has wait: true on .get
      • ogd
        mafintosh: hah nice
      • mafintosh
        ogd: so db.get('hypercore', {wait: true}, cb) does all the magic for you
      • kinda nice
      • ogd
        mafintosh: im doing it w/ hyperdrive in this case but nice to have nonetheless
      • mafintosh
        ogd: we should have the same there going forward
      • ogd
        jondashkyle: how do i login to panel?
      • jondashkyle
        ogd: you can run the panel by cloning the starter kit, then running `enoki panel`. it's an early preview, but there will be a hosted version, too. also working with yosh right now to get the local development server running on his updated bankai, which will smooth out some of that
      • ogd
        cool
      • jondashkyle: wow panel is super cool
      • domanic has quit
      • teaserbot joined the channel
      • chjh_ joined the channel
      • teaserbot
      • teaserbot has quit
      • wking has quit
      • wking joined the channel
      • chjh joined the channel
      • chjh_ has quit
      • chjh has quit
      • teaserbot joined the channel
      • teaserbot has quit
      • chjh joined the channel
      • domanic joined the channel
      • bgcarlisle joined the channel
      • chjh has quit
      • dominic__ joined the channel
      • domanic has quit
      • chjh joined the channel
      • dominic__ joined the channel
      • chjh has quit
      • creationix
        anyone ever compared http://xanadu.com/ to dat. There seem to be some overlapping goals/solutions, especially with Beaker
      • pfrazee: ^
      • pfrazee
        creationix: I have made that comparison actually
      • of course xanadu is the ultimate omega project (using domanic's term)
      • creationix
        also they seem really bitter about the tech that won out
      • pfrazee
        oh yeah. You ever read that wired article about it?
      • jhand
        Ya that's quite a project
      • pfrazee
      • ^ should be required reading for a CS major
      • jondashkyle
        anyone see that vid ted published? https://www.youtube.com/watch?v=mmfjM-SGlGs
      • (have gotten distracted and only made it maybe 15 min in so far, ha)
      • pfrazee
        someday I'm going to make a code school called "CS School of Hard Knocks and Dead Locks" and that'll be part of the curriculum
      • jondashkyle
        lol
      • pfrazee
        jondashkyle: yeah he has a lot of videos like that. He's kind of a tragic figure
      • jondashkyle
        yeah…
      • yoshuawuyts
        pfrazee: only way to get it in is through port knocking and then passing the right key?
      • the school that is, to get into the school
      • pfrazee
        hahaha
      • dominic__ joined the channel
      • larpanet joined the channel
      • creationix
        "computer world is a nightmare, honky tonk prison, gone wrong in so many ways..." - Ted
      • pfrazee
        I mean, Ted has very little appreciation for engineering or business, and (arguably) not enough appreciation for real UX concerns
      • creationix
        Even when they had a million-a-year development budget, they spent all day having fun instead of building actual products
      • pfrazee
        his biggest grievance with the Web is that it used one-directional links, and he calls them "jump links" because they change the page, when he wanted those links to open up the target doc side-by-side and visually show the link between the documents
      • yeah. You kind of have to take him lightly. He's a man who had a lot of good ideas but wasnt very good at execution, and blamed all his failures on other people
      • dominic__ has quit
      • G-Ray joined the channel
      • G-Ray has quit
      • onabreak has quit
      • bret
        jondashkyle: ted is a cool guy, seems like he gets caught up in in architectural ideas rather than implementation
      • jondashkyle
        bret: yeah, which is to say we need people like that too. a lebbeus woods figure of computer science, altho lebbeus didn’t carry the same type of bitterness with him.
      • bret: seems like his own social inabilities had a large role in the friction
      • ogd
        ya'll treating philosophers like they're supposed to be engineers :)
      • jondashkyle
        haha! totally.
      • bret
        yeah exactly he perceivably caries a lot of bitterness, exactly.
      • pfrazee
        ogd: problem is that ted, by his own admission, wanted to be steve jobs
      • and I think you gotta be careful about ted because his judgment, even from a philosophical standpoint, is from that bitter perspective
      • ogd
        doing some napkin math on npm, they dont publish tarball sizes in the metadata. so im doing a HEAD request on all the tarballs, there are 3.5 million tarballs.
      • the first 60k tarballs were 24gb
      • pfrazee
        1.68 TB?
      • ogd
        i got 1.4tb
      • pfrazee
        oh yep, 1.4
      • G-Ray joined the channel
      • ogd
        so not bad
      • maybe i should just download them all
      • i have 64tb at my house :)
      • pfrazee
        ogd: two questions. 1) what are those HDs like? do you have, like, 5 NASes? did it cost a lot? 2) how long till your ISP comes a knockin?
      • ogd
      • ISP has no bandwidth limits
      • pfrazee
        gotcha cool
      • G-Ray has quit
      • G-Ray joined the channel
      • dominic__ joined the channel
      • mafintosh
        ogd: i'll mirror npm as well
      • pfrazee
        Im pretty impressed yall are tackling that
      • been half-tried like 10 times already in the p2p tech community, so yall may finally pull it off
      • bret
        damn, so npm is only around 2-4 TB?
      • ogd
        1-2
      • bret
        damn 1-2 TB?