~gpanders

https://gpanders.com

~gpanders/public-inbox

Last active 12 days ago

~gpanders/pushbroom

Last active a month ago
View more

Recent activity

Re: [PATCH zet] Link to libc 12 days ago

From Greg Anders to ~gpanders/public-inbox

Thanks!

Re: Memory errors with ChildProcess.exec 2 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 2 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 6 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 7 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 7 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]

Re: [PATCH] Allow fields in compose widget to be clicked 8 months ago

From Greg Anders to ~sircmpwn/aerc

I forgot to mention that this is meant to address ticket #299.

On Tue, 05 Nov 2019 at 08:43 PM, Greg Anders wrote:
>When the mouse is enabled, clicking on a header field switches focus to
>that field (likewise for the terminal).
>---
> widgets/compose.go | 34 ++++++++++++++++++++++++++++++++--
> 1 file changed, 32 insertions(+), 2 deletions(-)
>
>diff --git a/widgets/compose.go b/widgets/compose.go
>index 22c58da..b9f0932 100644
>--- a/widgets/compose.go
>+++ b/widgets/compose.go
>@@ -289,6 +289,16 @@ func (c *Composer) Event(event tcell.Event) bool {

[PATCH] Allow fields in compose widget to be clicked 8 months ago

From Greg Anders to ~sircmpwn/aerc

When the mouse is enabled, clicking on a header field switches focus to
that field (likewise for the terminal).
---
 widgets/compose.go | 34 ++++++++++++++++++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)

diff --git a/widgets/compose.go b/widgets/compose.go
index 22c58da..b9f0932 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -289,6 +289,16 @@ func (c *Composer) Event(event tcell.Event) bool {
	return false
}

[message trimmed]

[PATCH v2] Demonstrate that I can use git send-email 8 months ago

From Greg Anders to ~sircmpwn/email-test-drive

---
This fixes the issue from the first patch.

 gpanders | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 gpanders

diff --git a/gpanders b/gpanders
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/gpanders
@@ -0,0 +1 @@
I have successfully used git send-email!
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 8 months ago

From Greg Anders to ~sircmpwn/email-test-drive

---
 gpanders | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 gpanders

diff --git a/gpanders b/gpanders
new file mode 100644
index 0000000..b4380e4
--- /dev/null
+++ b/gpanders
@@ -0,0 +1 @@
I'm about to try git send-email!
-- 
2.23.0
[message trimmed]