Vancouver, BC
From William Casarin to ~gheartsfield/nostr-rs-relay-devel
On Tue, May 31, 2022 at 01:02:59AM +0300, Semisol wrote: >NIP15 sends an EOSE notice to clients after all stored events are sent >to allow loading indicators and other use cases. >--- > src/db.rs | 6 ++++++ > src/info.rs | 2 +- > src/main.rs | 13 +++++++++---- > 3 files changed, 16 insertions(+), 5 deletions(-) > >diff --git a/src/db.rs b/src/db.rs >index cbc0172..a4fabc6 100644 >--- a/src/db.rs >+++ b/src/db.rs >@@ -575,6 +575,12 @@ pub async fn db_query(
From William Casarin to ~gheartsfield/nostr-rs-relay-devel
This was quickly sneaked in by fiatjaf per my request[0], it makes many queries more efficient and allows for paging when combined with until. It is a bit weird to have multiple limits on each filter... for now we just choose any or the last limit seen. [0]: https://github.com/nostr-protocol/nips/commit/a4aea5337fe6b93e55f9dae1974ead962c1997e8 Signed-off-by: William Casarin <jb55@jb55.com> --- src/db.rs | 12 +++++++++++- src/subscription.rs | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) [message trimmed]
From William Casarin to ~andir/nixpkgs-dev
datefmt is a simple C program that formats unix timestamps in text streams
Signed-off-by: William Casarin <jb55@jb55.com>
---
Hey guys,
It seems this place is kinda dead but I figured I would share this util
I wrote and have been using a lot. It's a small C program that formats
unix timestamps over stdin.
I'm gonna go ahead and submit this to nixpkgs myself, but definitely
check it out if you see this!
[message trimmed]
From William Casarin to ~sircmpwn/public-inbox
Hey Lennart, On Fri, Nov 19, 2021 at 11:57:24AM +0100, Lennart Regebro wrote: >On Fri, Nov 19, 2021 at 11:53 AM Drew DeVault <sir@cmpwn.com> wrote: >> >> On Fri Nov 19, 2021 at 11:47 AM CET, Lennart Regebro wrote: >> > I don't understand the requirement to build and run tests without >> > fetching dependencies during the build. It seems plainly absurd to me, >> > as you have to install requirements to run the tests. >> >> The distro will install them through its packages, not via PyPI. > >I understand that. This does not in any way answer my questions or comments. >
From William Casarin to ~sircmpwn/gmni-devel
Reported-by: James Tomasino <james@tomasino.org> Signed-off-by: William Casarin <jb55@jb55.com> --- src/serve.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serve.c b/src/serve.c index bcbef5c..683e8fa 100644 --- a/src/serve.c +++ b/src/serve.c @@ -8,6 +8,7 @@ #include <signal.h> #include <stdlib.h> #include <string.h> [message trimmed]
From William Casarin to ~sircmpwn/gmni-devel
I don't think I need stricmp here, looks like there's a strcasecmp function in strings.h? will redo in v2
From William Casarin to ~sircmpwn/gmni-devel
Reported-by: James Tomasino <james@tomasino.org> --- src/serve.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/serve.c b/src/serve.c index bcbef5c..c7cc505 100644 --- a/src/serve.c +++ b/src/serve.c @@ -1,5 +1,6 @@ #include <arpa/inet.h> #include <assert.h> #include <ctype.h> #include <dirent.h> [message trimmed]
From William Casarin to ~sircmpwn/gmni-devel
On Sat, Sep 18, 2021 at 02:55:33PM -0400, Zach DeCook wrote: >On Sat Sep 18, 2021 at 11:00 AM EST, William Casarin wrote: >> Some server software, such as gmnisrv, return "Not Found" when >> requesting: >> >> gemini://jb55.com/log >> >> instead of >> >> gemini://jb55.com/log/ >> >> I noticed the `up` functionality wasn't working in av98. Should this be >> a fix in clients such as av98 >
From William Casarin to ~sircmpwn/gmni-devel
Some server software, such as gmnisrv, return "Not Found" when
requesting:
gemini://jb55.com/log
instead of
gemini://jb55.com/log/
This adds a forward slash to the route when going up a directory.
Signed-off-by: William Casarin <jb55@jb55.com>
---
[message trimmed]
From William Casarin to ~andir/nixpkgs-dev
On Sat, May 15, 2021 at 08:08:37PM +0200, Matthias Beyer wrote: >Reviewed-by: Matthias Beyer <mail@beyermatthias.de> Thanks! PR'd: #123386 https://github.com/NixOS/nixpkgs/pull/123386