Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 10 23:56

    amark on master

    reduce not-found acks if via/re… test undo tmp (compare)

  • Aug 10 21:45
    amark updated the wiki
  • Aug 10 20:18
    amark commented #1271
  • Aug 10 18:47
    amark commented #1268
  • Aug 10 18:16
    amark commented #1271
  • Aug 10 16:57
    draeder commented #1271
  • Aug 10 16:56
    draeder commented #1271
  • Aug 10 12:10
    mmalmi synchronize #1269
  • Aug 10 11:59
    draeder commented #1271
  • Aug 10 11:55
    draeder commented #1271
  • Aug 10 11:37
    draeder commented #1271
  • Aug 10 05:54
    Azarattum commented #1271
  • Aug 10 05:15
    Azarattum commented #1271
  • Aug 09 22:58
    draeder commented #1271
  • Aug 09 22:33

    amark on master

    unbuild - PUBLISHED! 1238 (compare)

  • Aug 09 22:24
    amark commented #1266
  • Aug 09 22:24

    amark on master

    SEA - Update sea.work to suppor… (compare)

  • Aug 09 22:24
    amark closed #1266
  • Aug 09 22:17

    amark on master

    stupid cache miss kills me all … (compare)

  • Aug 09 20:08
    amark closed #1270
Jabis Sevon
@jabis
gun.get(window.location.host+'-testing').get('chat').get('2021/06/31').put({stuff:'this is shown'}).once(Gun.log)
and
gun.get(window.location.host+'-testing').get('chat').get('2021/05/31').put({stuff:'this is hidden'}).once(Gun.log)
so you see I pulled records '>':'2021/06'
and only the "this is shown" was shown
without map it returned the both
gun.get(window.location.host+'-testing').get('chat').get({'.':{'>':'2021/06'},'%':50000}).map().once(Gun.log)
you can drop the first get out
leave the rest (well modify the timestamp)
Wasis Haryo Sasoko
@yokowasis
yap, doesn't work on me.
Jabis Sevon
@jabis
I used 2021/05 and 2021/06 vs your 2019/06 whatevs :)
image.png
also tested the '=' operator and it matches
I have no idea tho what my gun version is, so can't help much more than this :D
Wasis Haryo Sasoko
@yokowasis
send your gun.js file here
this works
gun.get('chat').get('2021/06/31').put({stuff:'this is shown'}).once(Gun.log)

gun.get('chat').get({'.' : {'>' : '2021/06' },'%' : 50000 }).map().once(s=>{
  console.log (s);
})

gun.get('chat').get({'.':{'>':'2021/06'},'%':50000}).map().once(Gun.log)
this doesn't work
gun.get('chat').get({'.' : {'>' : '2021/06' },'%' : 50000 }).map().once(s=>{
  console.log (s);
})

gun.get('chat').get({'.':{'>':'2021/06'},'%':50000}).map().once(Gun.log)
Jabis Sevon
@jabis
I believe it would need all the radix etc files as well
Wasis Haryo Sasoko
@yokowasis
like I said, it fails silently. Callback is not called. Do I really need to put things first before it get fired ?
can you try it @jabis ?
when I do the put, all of pending callback is fired
image.png
Jabis Sevon
@jabis
image.png
lol, someone has connected to my peer and spammed the chat
the last results is a timer thing unrelated
should clear my peer again some old gunk in there x)
But yes what you said wasn't working gives output anyways
Wasis Haryo Sasoko
@yokowasis
@jabis can you try using gun from jsdelivr.net ? if it doesn't work, then that means gun from jsdelivr is broken and shoudln't be used.
Jabis Sevon
@jabis
I can't it's a live site
Wasis Haryo Sasoko
@yokowasis
can you try it in localhost ? please ?
this is my init.
        const gun = Gun({
                    localStorage : false,
                    axe : false,
                    file : "test",
                })
Jabis Sevon
@jabis
I'm busy with work - you could try changing jsdelivr includes from npm to gh/amark/gun@master/gun.js tho yourself to see
https://cdn.jsdelivr.net/gh/user/repo@version/file
is the format that is
Wasis Haryo Sasoko
@yokowasis
tried within react, using npm install, still doesn't work.
Jabis Sevon
@jabis
both your local and the versions you pull for browser need to be at the same version, to escape possible bugs
Wasis Haryo Sasoko
@yokowasis
I don't use the browser
Wasis Haryo Sasoko
@yokowasis
now it's working. I literally did nothing to the code. I am just too tired. go watch video on youtube. try to running the same code , and it works. I was like wtf 😣
Wasis Haryo Sasoko
@yokowasis
now another problem arise. Instead of grabbing matching criteria, it only grab 1.

anybody have a working gists of

This will grab keys with '2019/06/' matching prefix (grab all chats in July!) up to a limited number of bytes.

like in the docs ? https://gun.eco/docs/RAD#lex

Jabis Sevon
@jabis
image.png
Wasis Haryo Sasoko
@yokowasis
Now that I look at it, why '2019/06' is called july
@jabis can you return more than 1 matching results ?
let's say you have a chat from may to june. and you want to return june only
Jabis Sevon
@jabis
@yokowasis https://pastebin.com/H76i6Mzc here's my test script
it's a copy of my other SEA debugging script on node, I created test/ directory inside gun-folder and save that file there and run in the same directory
ie node test2.js in this case
wait I'll add a third result that's in 06 too
Jabis Sevon
@jabis
image.png
Wasis Haryo Sasoko
@yokowasis
@jabis thanks