~earboxer

West Michigan, USA

https://zachdecook.com

We start, around the turn of the millenium, with a dot on the map: a small city where tickets to the local cinema cost only two dollars. Just outside city limits sat a parsonage, inwhich memorable history was being formed:

"That's so easy, even Zach can read it!" called one of the others.

Now, others there were, in contrast to the big people, who, here, seemed to run the joint by joint-ownership.

I was beckoned toward a newspaper, where a three-panel cartoon was being indicated.

"Here, read this!"

My first test of skill... would I succeed, proving my capability, or fail, showing the known universe that I was most inferior.

Panel 1: Garfield sits on the counter, saying "Zzzzzzzz" Panel 2: Garfield is still sitting on the counter, Jon is watching. Garfield says "Zzzzzzzz" Panel 3: Jon breaks the pattern of Zee's, and says ________...

I couldn't do it. I was the only person who didn't know how to read.

~earboxer/wiki.zachdecook.com-edits

Last active 4 months ago

~earboxer/public-inbox

Last active 5 months ago
View more

Recent activity

[PATCH gmni 2/2] gmnlm: Include blank line to frame browser window when reading more 3 months ago

From Zach DeCook to ~sircmpwn/gmni-devel

---
 src/gmnlm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index 8c8b3d7..57c79cf 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -978,6 +978,7 @@ repeat:
			switch (result) {
			case PROMPT_AGAIN:
			case PROMPT_MORE:
				printf("\n");
				break;
[message trimmed]

[PATCH gmni 1/2] gmnlm: Improve paging behavior on narrow terminals 3 months ago

From Zach DeCook to ~sircmpwn/gmni-devel

---
 src/gmnlm.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index c59e68c..8c8b3d7 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -845,6 +845,10 @@ display_gemini(struct browser *browser, struct gemini_response *resp)
	int row = 0, col = 0;
	struct gemini_token tok;
	struct link **next = &browser->links;
	// When your screen is too narrow, more lines will be used for helptext and URL.
	// 87 is the maximum width of the prompt.
[message trimmed]

gemini-protocol/clients.gmi 4 months ago

From Zach DeCook to ~earboxer/wiki.zachdecook.com-edits

# Gemini Clients

```tsv Table describing features of gemini clients
name	language	interface	TOFU	Client certs	Bookmarks	License	Created	Updated
deedum	dart	flutter (iOS/android)	?	❎	No export or import	GPLv3	2020Q2	2020Q4
gemini-demo-1	python	line-mode	trust everyone	❎	❎	BSD-2-Clause	2019Q2	2020Q1
gmni	C	curl-like cli	shared known_hosts file	?	❎	GPLv3	2020Q3	2020Q4
gmnlm	C	line-mode	shared known_hosts file	❎	bookmarks.gmi file	GPLv3	2020Q3	2020Q4
```

## Simple command line interfaces
### gmni
=> https://git.sr.ht/~sircmpwn/gmni gmni and gmnlm repository

Re: [PATCH] Add systemd service file 5 months ago

From Zach DeCook to ~sircmpwn/gmni-devel

On Tue Feb 23, 2021 at 12:33 AM EST,  wrote:
> I am guessing that means there is no need of a service startup/shutdown
> file?
It just means Drew doesn't want to have to maintain it upstream.
(similar to the rationale for not including a .desktop file: it's not necessary).

It would make more sense to have this type of file in the package repository of a systemd-using distribution.
e.g. This AUR already has a gmnisrv.service file: https://aur.archlinux.org/packages/gmnisrv-git/

Re: go to & move to mailbox features in aerc? 5 months ago

From Zach DeCook to ~sircmpwn/aerc

On Fri Feb 12, 2021 at 7:47 PM UTC, Ondřej Synáček wrote:
> Hello. I’ve been so far toying with aerc and I like it. However
> my current email client has this feature that I’ve grown to really
> like and I was wondering if there’s an option to replicate it
> within aerc.

Yes. Read `man aerc-config` as well as ~/.config/aerc/binds.conf

> If you press META+T
> small popup window opens where I can type.

It seems binding meta commands is not yet implemented (maybe a good first issue for you?)

gmnisrv uses too many tasks (zombie processes) (easy DoS attack) 5 months ago

From Zach DeCook to ~sircmpwn/gmni-discuss

Specifically, I think cgi=on is to blame.

To test :
1. Start gmnisrv with systemd
2. `sudo systemctl status gmnisrv`
    * notice it says how many tasks it has: e.g. Tasks: 100 (limit: 1107)
3. Make a request to a cgi route
4. Do step two again, see how tasks has increased.
5. Do step 3 thousands of times... you'll be glad you used systemd instead of just running gmnisrv in a screen, as it will just stop working instead of crashing your server.

[PATCH] Routing: Fix non-ascii paths 6 months ago

From Zach DeCook to ~sircmpwn/gmni-devel

---

Notes:
    Unescape a non-ascii path into proper format.
    
    $GEMINI_URL, and what goes in the log files remains unchanged.
    
    Note that this introduces a new (and possibly exciting) behavior:
    
    $GEMINI_URL is no longer always equal to gemini://$SERVER_NAME$SCRIPT_NAME$PATH_INFO?$QUERY_STRING
    
    You can just slip a sly %00 in there, and wow! Should we do something to disable these from working?
    
    (Note that requests with a %00 in the query string have been failing since before this change).
[message trimmed]

gemini-protocol/clients.gmi 6 months ago

From Zach DeCook to ~earboxer/wiki.zachdecook.com-edits

# Gemini Clients

```tsv Table describing features of gemini clients
name	language	interface	TOFU	Client certs	Bookmarks	License	Created	Updated
deedum	dart	flutter (iOS/android)	?	❎	No export or import	GPLv3	2020Q2	2020Q4
gemini-demo-1	python	line-mode	trust everyone	❎	❎	BSD-2-Clause	2019Q2	2020Q1
gmni	C	curl-like cli	shared known_hosts file	?	❎	GPLv3	2020Q3	2020Q4
gmnlm	C	line-mode	shared known_hosts file	❎	bookmarks.gmi file	GPLv3	2020Q3	2020Q4
```

## Simple command line interfaces
### gmni
=> https://git.sr.ht/~sircmpwn/gmni gmni and gmnlm repository

[PATCH] Font: Restore reading font from type.chr 6 months ago

From Zach DeCook to ~rabbits/public-inbox

---

Notes:
    Removal of font-loading was a regression
    that made this app unusable for me: The default font is
    butt-ugly (IMO) and it's not easy to modify the built-in font as is.
    
    Ideally, we would include the font as some data at compile time
    (rather than hard-code it into the source code).
    
    Until then, this patch allows for fonts to be loaded in.
    (it's also available at https://git.sr.ht/~earboxer/left/tree/fixLoadFont)
    
    This patch does not include support for colors or non-printing characters,
[message trimmed]

[PATCH left v2] search: Prevent search selection from changing inadvertently 6 months ago

From Zach DeCook to ~rabbits/public-inbox

Notably, it would expand the selection to the end of the word
(changing your search subject, making more complicated searches difficult)
rather than jumping forward two search results
---
 left.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/left.c b/left.c
index 0f1b911..e30f85b 100644
--- a/left.c
+++ b/left.c
@@ -555,7 +555,7 @@ dofind(char *src, int len)
	scpy(src, buf, len);
	next = ssin(src + 1, buf);
[message trimmed]