~ancarda

~ancarda/testing

Last active 4 months ago

~ancarda/dump-env

Last active 5 months ago

~ancarda/public-inbox

Last active 5 months ago

~ancarda/high-test-coverage

Last active 5 months ago

~ancarda/vcs-autodiscovery

Last active 5 months ago

~ancarda/psr7-string-stream

Last active 5 months ago

~ancarda/tls-redirector

Last active 5 months ago

~ancarda/coverage-enforcer

Last active 5 months ago
View more

Recent activity

Re: Integration with Active Driectory 4 months ago

From Mark Dain to ~sircmpwn/sr.ht-discuss

On Thu Apr 22, 2021 at 8:22 AM BST, Jeroen Langeveld wrote:
> Is there any possibility to integrate with Active Directory at this
> moment? Mainly to allow known and authorised colleagues to login to a
> private sr.ht instance...

SourceHut doesn't support proprietary technology, so I can't see support
for Active Directory being merged.

Would something like LDAP meet your needs?

[PATCH dump-env] Trigger CI 5 months ago

From Mark Dain to ~ancarda/dump-env

---
 .build.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.build.yml b/.build.yml
index 8f9426c..904203b 100644
--- a/.build.yml
+++ b/.build.yml
@@ -1,4 +1,8 @@
image: alpine/edge

# When I push to git, I see this:
#     BUILD_SUBMITTER=git.sr.ht
# What will I see if I push from lists.sr.ht?
[message trimmed]

[PATCH] Identify JavaScript as MIT/Expat for LibreJS 5 months ago

From Mark Dain to ~migadu/alps-devel

This commit introduces LibreJS compatible `@license' blocks as per
https://www.gnu.org/software/librejs/free-your-javascript.html

The magnet URI can be opened in a BitTorrent client to retrieve a copy
of the MIT/Expat license. Section 3.2.2.1 from the above link has a
list of magnet URIs for various free software licenses.
---
 themes/alps/assets/compose.js | 4 ++++
 themes/alps/assets/helpers.js | 4 ++++
 themes/alps/assets/print.js   | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/themes/alps/assets/compose.js b/themes/alps/assets/compose.js
index 23e67b6..061016e 100644
[message trimmed]

Re: Help setting up sr.ht 5 months ago

From Mark Dain to ~sircmpwn/sr.ht-dev

On Fri Apr 2, 2021 at 4:09 PM BST, Drew DeVault wrote:
> 3.8.x is the latest officially supported version, but I would be
> surprised to know that they broken this in 3.9. You'll have to
> investigate further on your own.

Alright, I'll try with Python 3.8.

> For my part, I don't use setup.py to install these modules while
> working on them; I use PYTHONPATH instead.

Could you give me an example of that? I don't actually use Python, so
I have no idea how to get this running.

Re: Help setting up sr.ht 5 months ago

From Mark Dain to ~sircmpwn/sr.ht-dev

On Fri Apr 2, 2021 at 3:49 PM BST, Drew DeVault wrote:
> Make sure you have submodules checked out.

Thanks, that got rid of the bootstrap error.
Unfortunately I now get a type error:

    TypeError: expected str, bytes or os.PathLike object, not NoneType

Full log is here:
https://paste.sr.ht/~ancarda/2806675fb96670313ef0a99b69e56202a03e31e0

Do I have the right version of Python (3.9.2)?

Help setting up sr.ht 5 months ago

From Mark Dain to ~sircmpwn/sr.ht-dev

Would anyone be able to help me setup SourceHut on my laptop so I can
make some patches? When I've tried to get meta.sr.ht running, I've
gotten past all the Python dependencies, but now I'm stuck on this:

    File to import not found or unreadable: bootstrap/scss/functions.
    >> @import "bootstrap/scss/functions";

Is this Bootstrap? As in <https://getbootstrap.com/>? Or is it a file
from core.sr.ht that I need to symlink?

Re: [pages] ssl error in safari (iPad) 5 months ago

From Mark Dain to ~sircmpwn/sr.ht-discuss

On Fri Apr 2, 2021 at 1:05 PM BST, Drew DeVault wrote:
> > Is it okay if I make a ticket to implement this, Drew?
>
> Sure, but a patch would be better :)

https://todo.sr.ht/~sircmpwn/meta.sr.ht/173

I agree a patch is better, though that depends on me getting sr.ht
running locally, which so far I haven't been able to :(

It's why I also haven't sent patches about the other feature requests or
bugs I've run into. Some I just can't fix without a local instance.

Re: [pages] ssl error in safari (iPad) 5 months ago

From Mark Dain to ~sircmpwn/sr.ht-discuss

On Fri Apr 2, 2021 at 12:57 PM BST, Ben Burwell wrote:
> I am not positive, but I have a strong hunch that this is due to the
> underscore in your URL. Underscores iirc are not permitted in hostnames
> per RFC, so it would not surprise me if implementations vary in their
> support/adherence.

Maybe we should have SourceHut pages warn about that. Even if that's not
why it's broken for Philipp Häusele, it's probably going to cause issues.

Is it okay if I make a ticket to implement this, Drew?

Re: [pages] ssl error in safari (iPad) 5 months ago

From Mark Dain to ~sircmpwn/sr.ht-discuss

On Fri Apr 2, 2021 at 11:29 AM BST, Philipp Häusele wrote:
> If I try to load it on my iPad (both safari and chrome) I get an ssl
> certificate error

Hi, do you know what version of iOS you are running? IIRC you can check
in the settings app. Under General > About.

Going by SSL Test:
https://www.ssllabs.com/ssltest/analyze.html?d=phi1_h.srht.site

SourceHut Pages needs at-least iOS 9.

[PATCH builds.sr.ht] Implement CI_NAME=sourcehut 5 months ago

From Mark Dain to ~sircmpwn/sr.ht-dev

This commit pushes a new environment variable, `CI_NAME' which can be
used to reliably detect if some code is running under builds.sr.ht
---
 worker/tasks.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/worker/tasks.go b/worker/tasks.go
index f6688f9..d27bf33 100644
--- a/worker/tasks.go
+++ b/worker/tasks.go
@@ -175,6 +175,7 @@ complete-build() {
	if ctx.Manifest.Environment == nil {
		ctx.Manifest.Environment = make(map[string]interface{})
	}
[message trimmed]