~brown121407

Râmnicu Sărat, România

https://smarton.omg.lol

~brown121407/public-inbox

Last active 1 year, 6 months ago

~brown121407/ml

Last active 2 years ago

~brown121407/blog-discussion

Last active 3 years ago
View more

Recent activity

[PATCH] Fix spacing for EXPIRY in create form. 1 year, 1 month ago

From Alexandru-Sergiu Marton to ~brettgilio/snippet-devel

Fixes: https://todo.sr.ht/~brettgilio/snippet/1
---
 ui/html/pages/create.gohtml | 68 ++++++++++++++++++-------------------
 1 file changed, 34 insertions(+), 34 deletions(-)

diff --git a/ui/html/pages/create.gohtml b/ui/html/pages/create.gohtml
index 9768fa9..2f67c0f 100644
--- a/ui/html/pages/create.gohtml
+++ b/ui/html/pages/create.gohtml
@@ -78,46 +78,46 @@
                    {{end}}
                </div>

                <div class="grid grid-cols-4 gap-4 text-center">
[message trimmed]

[PATCH] Fix user retrieval. 1 year, 1 month ago

From Alexandru-Sergiu Marton to ~brettgilio/snippet-devel

Fixes: https://todo.sr.ht/~brettgilio/snippet/11
---
 internal/models/users.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/models/users.go b/internal/models/users.go
index 1cafd53..f91c858 100644
--- a/internal/models/users.go
+++ b/internal/models/users.go
@@ -50,7 +50,7 @@ func (m *UserModel) Insert(username string, email string, password string) (stri
}

func (m *UserModel) Get(id string) (*User, error) {
	stmt := `SELECT id, name, email, hashed_password, created FROM users
[message trimmed]

[PATCH v2] Make recent snippet table span whole width, but limit columns. 1 year, 2 months ago

From Alexandru-Sergiu Marton to ~brettgilio/snippet-devel

---
Now with correct indentation. (I hope.)

 ui/html/pages/recent.gohtml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/ui/html/pages/recent.gohtml b/ui/html/pages/recent.gohtml
index 01ddd55..bf365f8 100644
--- a/ui/html/pages/recent.gohtml
+++ b/ui/html/pages/recent.gohtml
@@ -9,21 +9,25 @@
    </div>
</div>
{{if .SnippetSlice}}
[message trimmed]

[PATCH] Make recent snippet table span whole width, but limit columns. 1 year, 2 months ago

From Alexandru-Sergiu Marton to ~brettgilio/snippet-devel

---
 ui/html/pages/recent.gohtml | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/ui/html/pages/recent.gohtml b/ui/html/pages/recent.gohtml
index 01ddd55..8eaaf00 100644
--- a/ui/html/pages/recent.gohtml
+++ b/ui/html/pages/recent.gohtml
@@ -9,21 +9,25 @@
    </div>
</div>
{{if .SnippetSlice}}
<div class="overflow-x-auto max-w-4xl mx-auto">
<div class="overflow-x-auto">
[message trimmed]

Re: Proposal for Libera Chat to leave nonfree platforms 2 years ago

From Alexandru-Sergiu Marton to ~sircmpwn/public-inbox

Hi,

Drew DeVault writes:

> Libera Chat should leave GitHub, Facebook, and Twitter, all non-free
> platforms, in favor of free platforms.

Just want to chime in to express my support for this proposal. I'm
fairly new to this IRC thing, and to free software to a lesser extent,
but I agree with Drew's points here.

> In short: why should FOSS projects choose Libera Chat when Libera Chat
> won't choose them?

Re: [f.scm PATCH v3 2/2] Add extension. 2 years ago

From Alexandru-Sergiu Marton to ~brown121407/ml

Thank you! Applied.

-- 
Alexandru-Sergiu Marton
https://brown.121407.xyz

Re: [PATCH v2] Add replace-extension. 2 years ago

From Alexandru-Sergiu Marton to ~brown121407/ml

3 Mar 2021 14:39:54 Xinglu Chen <public@yoctocell.xyz>:

> Oops, `no-ext` should have been `file-no-extension`, I was playing
> around in the REPL earlier so `no-ext` must have been some function I
> renamed.  My bad.

Yeah, I forgot to mention I needed to change this to make it work, it's 
good that you noticed.

> Defining `file-no-extension` using `replace-extension` would then have
> caused an infinite loop.

It makes sense, I didn't make this connection at that time. Thanks for

Re: [PATCH v2] Add replace-extension. 2 years ago

From Alexandru-Sergiu Marton to ~brown121407/ml

Hello again,

Xinglu Chen writes:

> * f.scm (replace-extension): New procedure.
> (file-extension): Likewise.
> (file-no-extension): Likewise.
> ---
> Changes since v1:
> - Make `replace-extension` more liberal instead of giving exceptions.
> - Add `file-extension` and `file-no-extension` which are useful on
>   their own.
>
>  f.scm | 29 ++++++++++++++++++++++++++++-

Re: [PATCH f.scm] Add replace-extension. 2 years ago

From Alexandru-Sergiu Marton to ~brown121407/ml

Sorry for the terrible formatting, I'm on my phone.

2 Mar 2021 22:56:54 Xinglu Chen <public@yoctocell.xyz>:

> Also, what naming convention should we use?  f.el seems to prefer
> shorter names like "f-no-ext" rather than "f-no-extension".  I guess we
> don't need the "f-" prefix since users can import the module with their
> preferred prefix anyway.

Yeah, we don't need the any kind of implicit prefix like "f-".

Most of the Scheme code I read was quite verbose. Take, for example, this 
function name from Guix: "specifications->manifest" — it could have been

Re: [PATCH f.scm] Add replace-extension. 2 years ago

From Alexandru-Sergiu Marton to ~brown121407/ml

Hi,

Xinglu Chen writes:

> * f.scm (replace-extension): New procedure.

Nice idea, and thanks for looking into this, 'cause I even forgot I had
this project!

I tried running this and it seems to behave perfectly when it's used on
a file that does indeed have an extension:

--8<---------------cut here---------------start------------->8---
(replace-extension "asdf.txt" "defg")