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?
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
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
(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?