by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 07:24
    brailateo commented #955
  • 07:12
    brailateo commented #955
  • 07:09
    brailateo edited #955
  • 06:11
    brailateo commented #955
  • 05:54
    sirpy commented #955
  • 05:38
    brailateo opened #955
  • May 31 14:42
    sirpy commented #954
  • May 31 13:49
    haynajjar commented #954
  • May 31 10:21
    sirpy commented #954
  • May 31 10:21
    sirpy commented #954
  • May 31 10:18
    sirpy commented #951
  • May 30 21:02
    icarito edited #951
  • May 30 21:01
    icarito commented #951
  • May 30 20:58
    icarito reopened #951
  • May 30 20:11
    haynajjar opened #954
  • May 30 19:31
    brailateo edited #953
  • May 30 19:29
    brailateo edited #953
  • May 30 18:42
    icarito closed #951
  • May 30 18:42
    icarito commented #951
  • May 30 17:36
    brailateo opened #953
gunchatbridge
@gunchatbridge

[D] circles: <@!409405840521691136>

gun.get(page).get('links').map().on((link, idGeneratedFromSet) => {
  var el = document.createElement('p')
  el.id = idGeneratedFromSet
  el.innerText = link
})

something like that kinda

[D] circles: then you can grab the ID more easily from a button click or something.
[D] davidd: ohhh gotcha. that makes sense
[D] davidd: I feel like I could have saved a lot of headache through using <@!114779347620986887> 's hooks. I still might end up going that route... hopefully i'm learning if nothing else heh
gunchatbridge
@gunchatbridge
[D] circles: where are the headaches currently? Is it integrating with react or something else?
[D] carlosvega: I usually learn more when I have a lot of headaches haha
gunchatbridge
@gunchatbridge
[D] anthonyfabrizi: For Content-Addressing, is there a way to allow only friends to access? For example, gun.get('@bobPubKey-friendsonly#').(hash).put(something)
[D] circles: I think pubKeys are pretty much impossible to guess. So if they don't know bob's pubKey, they won't write to that
[D] circles: But you could also filter out messages from anyone other than the pubKeys of Bob's friends
[D] anthonyfabrizi: Okay thanks. That's why I want to try to use .trust()
[D] circles: Yeah I think .trust() might be overkill for that use case
[D] circles: Oh <@!706150500621353112> i got my example project working! https://github.com/thrownness/decentralized-jamstack-comments-engine
[D] anthonyfabrizi: <@!203666215502217216> Nice, will check it out
gunchatbridge
@gunchatbridge
[D] davidd: <@!203666215502217216> bahahahha sitting here trying to type it out might be more of a headache 😂 Basically I was a bit confused about how sets were working. Everything plays nice with react
[D] skyfall: Morning people
[D] davidd: I just got what I was struggling with working though, so that's good
[D] davidd: morning!
gunchatbridge
@gunchatbridge
[D] Pezo:
[D] Dyno: Welcome <@716787215975317516>!!! GUN (https://github.com/amark/gun) is a P2P protocol for syncing data used by 8M+ people monthly across Internet Archive, HackerNoon, DTube (decentralized youtube), Notabug (p2p reddit), & more. Please try the 5min tutorial (https://gun.eco/docs/Todo-Dapp) to get started!
gunchatbridge
@gunchatbridge
[D] carlosvega: > <@!203666215502217216> bahahahha sitting here trying to type it out might be more of a headache 😂 Basically I was a bit confused about how sets were working. Everything plays nice with react
<@409405840521691136> yeah, actually it plays surprisingly nice haha
gunchatbridge
@gunchatbridge
[D] davidd: 🤦‍♂️
[D] davidd: I just went through so many hoops trying different ways of modifying a set, most of which was wrestling typescript whenever i'd try to .put(null). All it took to fix was .put(null as never)
[D] skyfall: I just put the string removed
[D] davidd: <@!470186445945176065> what do you mean? literally the string 'removed', as in .put('removed') ?
[D] skyfall: Yep
gunchatbridge
@gunchatbridge
[D] davidd: ya'll ever made an app that you started off excited to share, then all of the sudden you hope nobody ever sees the code you write?
[D] davidd: ... ya, me neither...
gunchatbridge
@gunchatbridge
[D] carlosvega: Hahahaha
[D] carlosvega: It happens
gunchatbridge
@gunchatbridge
[D] circles: Does SEA.work() stop bots from submitting a form? Like does work actually require work or not? If so, how much?
gunchatbridge
@gunchatbridge
[D] Dletta: It doesn’t stop them, but it does keep them being used excessively
[D] Dletta: Click up or down vote in nab
[D] Dletta: It forces a timeout basically
gunchatbridge
@gunchatbridge
[D] circles: I’m just using it to make a hash that is then used to submit a form. Does the creation of the hash cause a significant load? Or not at all
[D] Dletta: Just a little, but if a bot does 1000’s a second it would definitely be throttled
[D] Dletta: Or take a water cooled computer
gunchatbridge
@gunchatbridge
[D] circles: Hmm. Not great for spam deterrence then
[D] circles: I was hoping it would be like a captcha level of deterrence. But that’s wishful thinking lol
gunchatbridge
@gunchatbridge
[D] Double_Are: Curious. I've manually deleted local storage, run clear storage and deleted the radata folder, stopped and stopped my server but the data keeps coming back. Am I crazy?
[D] Dletta: Browser closed?
[D] Dletta: Browser localStorage cleared
[D] Dletta: In this order, kill server, leave website open, clear localStorage, close website, delete radata folder, spin server up, spin website up
[D] Dletta: Should do the trick
[D] Dletta: Make sure no other gun server is running on the network, as multicast is on by default (aka broadcast to local network 255 address)
[D] Dletta: (Can be disabled off course)
gunchatbridge
@gunchatbridge
[D] Double_Are: That did the trick!
I did those steps, just not in that order. Stores instructions forever. Much appreciated <@!612728945313316904>
[D] Dletta: Anytime
[D] Dletta: Can’t stop the signal
gunchatbridge
@gunchatbridge
[D] brailateo: I'm adding a issue Store document fails sometimes when one peer is churning in the network tested for about 4 hours yesterday!
amark/gun#955
gunchatbridge
@gunchatbridge
[D] skyfall: anyone watched the latest rick and morty episode