nostr_cn_dev
Developed the following products: - NostrBridge, 网桥转发 - TaskQ5, 分布式多任务 - NostrHTTP, nostr to http - Postr, 匿名交友,匿名邮局 - nostrclient (Python client) . -nostrbook, (nostrbook.com) 用nostr在线写书 https://www.duozhutuan.com nostrhttp demo
61 Following
231 Followers
nostr_cn_dev
•
9h ago
See translation
3
nostr_cn_dev
•
1d ago

拉了7位。 有兴趣的下载0xchat 参加群聊共建 nostr中文社区。
See translation
1
nostr_cn_dev
•
1d ago

groups.0xchat.com'9567da7507bec9ee7cb36de3c513dcf2b1571a02dab748698b8fd8a4972b57cb
下载0xchat桌面版本 沟通效率加倍 。 https://github.com/0xchat-app/0xchat-app-main/releases
See translation
0
nostr_cn_dev
•
1d ago

yakihonne 的树形结构终于出来了。
See translation
0
nostr_cn_dev
•
2d ago
nostrUser
? filterRelays(nostrUser?.relays || [], relaysOnPlatform)
: relaysOnPlatform,
[
{
kinds: [6, 7],
"#e": [event.id],
},
{
kinds: [1],
"#q": [event.id],
},
{
kinds: [1],
"#e": [event.id],
},
{
kinds: [9735],
"#p": [event.pubkey],
"#e": [event.id],
},
], https://github.com/YakiHonne/yakihonne-web-app/blob/main/client/src/Components/NOSTR/NotesComment.js yakihonne代码看 这个评论获取的是全数据。
处理数据: async onevent(event_) {
if (event_.kind === 9735) {
let sats = decodeBolt11(getBolt11(event_));
let zapper = getZapper(event_);
setZappers((prev) => {
return [...prev, zapper];
});
setZapsCount((prev) => prev + sats);
}
if (event_.kind === 7) {
setReactions((reactions_) => [...reactions_, event_]);
}
if (event_.kind === 6) {
setReposts((reposts) => [...reposts, event_]);
}
if (event_.kind === 1) {
let check_kind1 = await onEvent(event_);
if (check_kind1.checkForQuote)
setQuotes((quotes) =>
... See more
See translation
0
nostr_cn_dev
•
2d ago
{
'#e': [event.id],
kinds: [kinds.Reaction],
limit: 500
},
{
'#e': [event.id],
kinds: [kinds.Repost],
limit: 100
}
]
点赞数 和评论数是 通过查询所有的点赞列表统计的?按照你的例子超过500其实并没有统计出来?
See translation
2
nostr_cn_dev
•
3d ago
一个不正经的中文NOSTR介绍
https://github.com/shaibearary/nostrCN
Sherry
@Sherry
有方便将这本书放到 nostrbook.com 上吗?
See translation
0
nostr_cn_dev
•
3d ago

nostrbook 更新了 navbar功能,可以给每篇文章点赞和评论。 细节还没有完成。
See translation
4
See translation
7
nostr_cn_dev
•
4d ago
nostr 国内开发者 ,还有没有提到的可以联系我更新。准备再搞一个国内用户列表。
See translation
2
nostr_cn_dev
•
6d ago
See translation
5
nostr_cn_dev
•
6d ago

新加了一本书 《nostr 资源收集》
See translation
0
nostr_cn_dev
•
6d ago

新的banner图。
See translation
0
nostr_cn_dev
•
1w ago
npub1dfgnd
•
1w ago
受到缅甸强震影响,中国光伏硅片出现涨价情况。TCL中环向界面新闻证实,已于3月31日调涨硅片价格,具体为183mm硅片从1.23元提升至1.3元/片;210R从1.5元上调至1.55元片;210mm从1.55元上调至1.6元/片。
频道:@zxjb724
See translation
See translation
0
nostr_cn_dev
•
1w ago
nostr_cn_dev
•
1w ago

See translation
See translation
0
nostr_cn_dev
•
1w ago

See translation
0
nostr_cn_dev
•
1w ago
第一个服务器 存储的内容只有3条,
第二个服务器存储的较多 有10条。
第一个服务器3条后就返回了eose给客户端,那么 第二个服务器是不是没有来得及返回十条,这个 查寻接回结束了。
这样是不是 最终得到了3条?
See translation
8
nostr_cn_dev
•
1w ago

还是要小说类的,我想做 技术类的,估计有难度的。
See translation
1
nostr_cn_dev
•
1w ago

AI对我提出了更高的要求。
See translation
0
nostr_cn_dev
•
1w ago
See translation
10
nostr_cn_dev
•
1w ago
See translation
0
nostr_cn_dev
•
1w ago
See translation
0
nostr_cn_dev
•
1w ago

测试了一下,AI画的封面还真不错。

粘贴了2章节内容
See translation
2
nostr_cn_dev
•
1w ago
nostrbook.com服务器不需要任何 额外存书的空间。全都在 nostr的relay server存储的。生成预览书籍都是动态的,不需要本地生成html。 我慢慢实验,估计周末就可以发布一个版本了。
See translation
1
nostr_cn_dev
•
2w ago
See translation
0
nostr_cn_dev
•
2w ago
See translation
7
nostr_cn_dev
•
2w ago
See translation
0
nostr_cn_dev
•
2w ago

可以建立书了,也可以显示书籍列表。 下一步就是写书了。很多细节需要优化
See translation
1
nostr_cn_dev
•
2w ago
nostr_cn_dev
•
2w ago
这有一定的风险尤其对于一个写书的网站。
为和不把同一张照片存放在多个服务器呢?
同一个图片没有办法上传到多个服务器,因为 服务器给的返回地址不一样。 没有办法嵌入到页面里面?
我有一个办法可以解决,图片都应该传到多个服务器,然后放在一个event里面 。把这个event嵌入到页面经过2次解析得到图片。
那么这就解决一个服务器关闭的问题了。
但是网页如何解决 event里有多个服务器选择哪个来显示呢?
其实浏览器里有显示失败的异常消息,通过异常再做 img.src 赋值。这样就可以尝试显示到一个正常的地址了。
其实这个方法还可以解决 某地方 的墙的问题。 因为有的地方把某些图片服务器给墙了
See translation
See translation
0
nostr_cn_dev
•
2mo ago
See translation
3
nostr_cn_dev
•
Dec 25, 2024
See translation
13