~otl

https://www.olowe.co/about.html

~otl/untangledco

Last active 7 months ago

~otl/public-inbox

Last active 2 years ago
View more

Recent activity

[PATCH giouiorg] site: use RSS spec compliant timestamp in feed 22 hours ago

From Oliver Lowe to ~eliasnaur/gio-patches

The previous layout was missing the seconds.

Signed-off-by: Oliver Lowe <o@olowe.co>
---
I was writing a little RSS and Atom feed package and used feeds I'm
subscribed to for testing, then noticed parsing the gioui.org feed
failed.

I've imported the time package which may not be appropriate.

 site/rss.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/site/rss.go b/site/rss.go
[message trimmed]

Re: Web based patches – Idea looking for feedback 2 months ago

From Oliver Lowe to ~sircmpwn/sr.ht-discuss

I like the idea. Then I realised copying and pasting the output of git
format-patch into a web form, submitting the form, and having mail
relayed out is what a web-based mail client is.

As for the iPad workflow, I used to use [Working Copy] on the train
without an internet connection. I'd make a couple of trivial tweaks to
YAML config or some README and commit. To export a patch:

- tap the commit in the list of commits
- tap the commit hash in the title bar
- tap the "share" icon to the right of the hash
- tap "Copy" to get the patch in the clipboard, or tap Mail,
  Messages, etc.

How to go deeper than winforms and asp .Net core 7 months ago

From Oliver Lowe to ~otl/untangledco

User @emptycode1782 posted a comment on the video
https://www.youtube.com/watch?v=9Q9Vocd8u54 and again I wanted to put
it out to a more public forum rather rather than be lost in deep
YouTube comments.

---

so i wonder how do you guys get into these specific areas. For now im
just a beginner focusing on C# and trying to get into back end, its
kinda obvious what i have to look for in short run, there are courses,
github projects, books, lots of articles and Microsoft docs. But i
wonder, beyond these obvious areas, how does one get into more
specific areas, how do you find them and how do you get into them, is
it just passion and messing around with code and fundamentals for a

Buffered channels, "worker" goroutines 7 months ago

From Oliver Lowe to ~otl/untangledco

Someone posted a comment on the video
https://www.youtube.com/watch?v=fl7p0SiqGeY and I thought it would be
nicer to reply here for everyone to see, then post a link back, rather
than formatting stripped nested YouTube comments.

---

Hey man its great to see you back! I have to ask something.

1) How do you determine whether you want to use a buffered channel vs
unbuffered channel and which one should you choose if you’re not sure.

2) Let’s suppose you have a goroutine which has a select statement.
When would you need to use “worker” go routines inside it and shift

Re: server dead 7 months ago

From Oliver Lowe to ~sircmpwn/godocs.io

> oh for fucks sake
> 
> > curl -i https://godoc.srcbeat.com  
> HTTP/2 502
> alt-svc: h3=":443"; ma=2592000
> server: Caddy
> content-length: 0
> date: Sun, 01 Sep 2024 04:47:21 GMT


Hahaha don't worry I'm hacking at it so it's up and down. I'll post
here and to the list lists.sr.ht/~otl/untangledco when it's stable.
Hope it's helpful :)

Re: server dead 7 months ago

From Oliver Lowe to ~sircmpwn/godocs.io

Wonder if it's the same problem as last time - running out of storage
space? I set up an instance, had a quick poke around, and found the
packages table in the database stores raw source bytes in the
database:

	CREATE TABLE packages (
		platform text NOT NULL,
		import_path text NOT NULL,
		module_path text NOT NULL,
		series_path text NOT NULL,
		version text NOT NULL,
		reference text NOT NULL,
		commit_time timestamptz NOT NULL,
		name text NOT NULL,

Re: [PATCH patchbot] main: correct module name 8 months ago

From Oliver Lowe to ~gjnoonan/public-inbox

> I am mid-way through rebasing a stack of patches, then got distracted
> and have not pushed up the newer changes.

Nice - looking forward to it. I'll set it up for the list at
lists.sr.ht/~otl/untangledco and the Twitch IRC channel when it's
ready!

Re: [PATCH] pcap: Added Encoding function to encode to .pcap 8 months ago

From Oliver Lowe to ~otl/untangledco

> +func encode(file *File) ([]byte, error) {
> +	buf := new(bytes.Buffer)
> +
> +	if err := binary.Write(buf, binary.LittleEndian, &file.Header); err != nil {
> +		return nil, fmt.Errorf("binary.Write failed: %v", err)
> +	}

Callers do not need to know about the implementation of encode() i.e.
don't need to know which function returned an error. The important
context that the caller would like to know is that encoding the global
header failed. The error message can be something short like "encode
global header: %v". A message as short as "global header: %v" could be
OK, too, because callers of encode know that they are trying to encode
stuff:

Re: [PATCH] pcap: Added Encoding function to encode to .pcap 8 months ago

From Oliver Lowe to ~otl/untangledco

Thanks again! Before I review this, do you have any questions?
You mentioned using a LLM - just want to make sure that you
understand what your patch actually contains.