~gpanders

https://gpanders.com

~gpanders/public-inbox

Last active 2 months ago

~gpanders/pushbroom

Last active 4 months ago
View more

Recent activity

[PATCH hub.sr.ht v2] Fix typo in error message a month ago

From Gregory Anders to ~sircmpwn/sr.ht-dev

---
 hubsrht/blueprints/projects.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hubsrht/blueprints/projects.py b/hubsrht/blueprints/projects.py
index 08ad877..c6a78cc 100644
--- a/hubsrht/blueprints/projects.py
+++ b/hubsrht/blueprints/projects.py
@@ -29,7 +29,7 @@ You can visit the following URL:
  {ext_origin}{url_for("sources.sources_GET",
      owner=owner.canonical_name, project_name=project.name)}

To the browse source repositories for this project.
To browse the source repositories for this project.
[message trimmed]

Re: [PATCH hub.sr.ht] Fix typo in error message a month ago

From Gregory Anders to ~sircmpwn/sr.ht-dev

On Thu Aug 20, 2020 at 6:25 AM MDT, Drew DeVault wrote:
> Not a typo, but thanks!

"To the browse source repositories" is surely a typo. It should read
either "to browse the source repositories" or "to browse source
repositories".

I can amend the patch to read the former if that's preferable.

[PATCH hub.sr.ht] Fix typo in error message a month ago

From Gregory Anders to ~sircmpwn/sr.ht-dev

---
 hubsrht/blueprints/projects.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hubsrht/blueprints/projects.py b/hubsrht/blueprints/projects.py
index 08ad877..e16b8be 100644
--- a/hubsrht/blueprints/projects.py
+++ b/hubsrht/blueprints/projects.py
@@ -29,7 +29,7 @@ You can visit the following URL:
  {ext_origin}{url_for("sources.sources_GET",
      owner=owner.canonical_name, project_name=project.name)}

To the browse source repositories for this project.
to browse source repositories for this project.
[message trimmed]

Re: Meta and username link go to same place a month ago

From Gregory Anders to ~sircmpwn/sr.ht-discuss

On Fri, 14 Aug 2020 at 01:22 PM, Brian Mayer wrote:
>Hello,
>
>I'm learning my way to get around here, it seems that meta and the link on your username both point to
>
>https://meta.sr.ht/profile
>
>I find that a little confusing, I would suggest to remove the meta link. Or make it point to another place.
>
>This is a great project, congrats!
>
>Regards,
>
>brain

Re: [PATCH zet] Link to libc 2 months ago

From Greg Anders to ~gpanders/public-inbox

Thanks!

Re: Memory errors with ChildProcess.exec 4 months ago

From Greg Anders to ~andrewrk/ziglang

Excellent, thank you both for your help! I knew it would be something 
obvious; I never even suspected `entry.name`.

Everything is working now. Much appreciated.

Greg

Memory errors with ChildProcess.exec 4 months ago

From Greg Anders to ~andrewrk/ziglang

Hello all,

I have been working on a small, personal project as a way to get to 
learn Zig. I've run into a problem that I'm completely vexed by, so I'm 
turning to the community for help.

I am using std.ChildProcess.exec to spawn a grep subprocess that 
searches for a given pattern through all files found in a directory.  
Here is a minimum working example that displays the error I am seeing

     https://paste.sr.ht/~gpanders/33cada72ac71ec869ee4e1e8221e7e3cbee547d4

Before the call to std.ChildProcess.exec, I have confirmed that all of 
the pathnames in the ArrayList look okay. I can iterate through them and

Go's Concurrency Model 8 months ago

From Greg Anders to ~sircmpwn/public-inbox

Hi Drew,

In your post on Go 1.11 back in 2018 [1], you speak highly of Go's 
concurrency model, but in your most recent post [2] you state that Go's 
concurrency/parallelism model is one that you "strongly dislike". I'm 
curious to hear your thoughts on what changed your opinion here.

In fact, since I know you are a big fan of C and also _not_ a fan of 
threads, I would love to hear your thoughts on concurrency in general 
(e.g. what makes up a good model, real world examples of concurrency you 
like, how to achieve concurrency in C, etc.)

Regards,

[PATCH] Add UI options to save/pipe messages with unsupported mimetypes 10 months ago

From Greg Anders to ~sircmpwn/aerc

Adds a message indicating the user's ability to :save or :pipe a message
with an unsupported mimetype and also adds a selector widget (similar to
the tutorial).

The selector widget was previously defined in the account wizard module,
so this commit breaks it out into its own module to allow for re-use.

Further, modify the BeginExLine() function to take an argument that
pre-populates the command line, allowing functions to initiate an ex
command without executing it.

Closes #95.
---
 lib/ui/textinput.go       |   3 +-
[message trimmed]

[PATCH] Check for terminal before forwarding mouse event 10 months ago

From Greg Anders to ~sircmpwn/aerc

When viewing a message part with no available filter, clicking the UI
would cause a nil pointer dereference because the MouseEvent was passed
to the PartViewer's `term` field, which does not exist in the case of an
absent filter.
---
 widgets/msgviewer.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 7cd5553..4d41923 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -336,7 +336,7 @@ func (ps *PartSwitcher) MouseEvent(localX int, localY int, event tcell.Event) {
		case tcell.Button1:
[message trimmed]