~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/public-inbox

Last active 4 days ago

~earboxer/wiki.zachdecook.com-edits

Last active a month ago
View more

Recent activity

Re: [PATCH] Add systemd service file 2 days 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? 12 days 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) 21 days 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 a month 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 a month 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 a month 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 a month 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]

[PATCH left v2 2/2] Window: Support HighDPI scaling a month ago

From Zach DeCook to ~rabbits/public-inbox

---
 left.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/left.c b/left.c
index 538cd64..ed2a5f6 100644
--- a/left.c
+++ b/left.c
@@ -34,7 +34,8 @@ typedef struct {

int WIDTH = 8 * HOR + 8 * PAD * 2;
int HEIGHT = 8 * (VER + 2) + 8 * PAD * 2;
int FPS = 30, GUIDES = 1, ZOOM = 2, DOWN = 0;
int FPS = 30, GUIDES = 1, DOWN = 0;
[message trimmed]

[PATCH left v2 1/2] modzoom: Instantly redraw a month ago

From Zach DeCook to ~rabbits/public-inbox

---
 left.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/left.c b/left.c
index 0f1b911..538cd64 100644
--- a/left.c
+++ b/left.c
@@ -625,6 +625,7 @@ modzoom(int mod)
	if((mod > 0 && ZOOM < 5) || (mod < 0 && ZOOM > 1)) {
		ZOOM += mod;
		SDL_SetWindowSize(gWindow, WIDTH * ZOOM, HEIGHT * ZOOM);
		redraw(pixels);
	}
[message trimmed]

[PATCH left 2/2] Window: Support HighDPI scaling a month ago

From Zach DeCook to ~rabbits/public-inbox

---
 left.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/left.c b/left.c
index 6559922..0903680 100644
--- a/left.c
+++ b/left.c
@@ -34,7 +34,8 @@ typedef struct {

int WIDTH = 8 * HOR + 8 * PAD * 2;
int HEIGHT = 8 * (VER + 2) + 8 * PAD * 2;
int FPS = 30, GUIDES = 1, ZOOM = 1, DOWN = 0;
int FPS = 30, GUIDES = 1, DOWN = 0;
[message trimmed]