~jb55

Vancouver, BC

https://jb55.com

~jb55/public-inbox

Last active 8 months ago

~jb55/protoverse-discuss

Last active 1 year, 2 months ago

~jb55/protoverse-devel

Last active 1 year, 2 months ago

~jb55/protoverse-announce

Last active 1 year, 2 months ago
View more

Recent activity

[PATCH] datefmt: init at 0.2 a month ago

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]

Re: Python: Please stop screwing over Linux distros 2 months ago

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.
>

[PATCH gmnisrv v2] serve: make hostname matching case-insensitive 2 months ago

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]

Re: [PATCH gmnisrv] serve: make hostname matching case-insensitive 2 months ago

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

[PATCH gmnisrv] serve: make hostname matching case-insensitive 2 months ago

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]

Re: [PATCH av98] add slash to end of url when going up a directory 4 months ago

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
>

[PATCH av98] add slash to end of url when going up a directory 4 months ago

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]

Re: [PATCH] pythonPackages.pyfirmata: init at 1.1.0 8 months ago

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

[PATCH] pythonPackages.pyfirmata: init at 1.1.0 8 months ago

From William Casarin to ~andir/nixpkgs-dev

pyFirmata is a python library for Firmata, a microcontroller protocol.

Firmata can be used to drive arduino boards with python, using standard
firmata firmware.

Signed-off-by: William Casarin <jb55@jb55.com>
---
 .../python-modules/pyfirmata/default.nix      | 21 +++++++++++++++++++
 pkgs/top-level/python-packages.nix            |  2 ++
 2 files changed, 23 insertions(+)
 create mode 100644 pkgs/development/python-modules/pyfirmata/default.nix

diff --git a/pkgs/development/python-modules/pyfirmata/default.nix b/pkgs/development/python-modules/pyfirmata/default.nix
new file mode 100644
[message trimmed]