~remyabel

Recent activity

RE: python and npm posts 10 days ago

From remyabel to ~sircmpwn/public-inbox

I was surprised to see my thoughts echoed exactly. I've been
complaining about Python and npm for a while now but there doesn't
really seem to be a whole lot of coverage on it (aside from npm maybe
everytime there's a fuckup, but not much on the Python end). I've seen
people defend pip by calling it "simple and easy to use" but ignore the
fact that it breaks in any remotely complex use case. Or that your
packages are orphaned the minute your system upgrades to a new
interpreter. Also that pip is designed more for libraries and not
binaries, even though every developer out there tells you to use "pip
install" (really it should be pipx) to install their binary.

Poetry also is not a solution, maybe for developers, not for end users.
And it took pip 7-8 years total to finally add a dependency resolver.
Bonus points: pip search is currently broken because it's been

RE: GitHub stale bot considered harmful a month ago

From remyabel to ~sircmpwn/public-inbox

Agreed, people use the GitHub stale bot for the wrong reasons. There
seems to be a trend by developers for inactive issues to be closed
either because "lack of inactivity" means the issue is not worth
investigating or to chase bug metrics. It's even worse when the bug is
locked which means that users have to create a new issue. There are
plenty of bugs that aren't updated or solved until years later. I think
this is a classic example of developers solving a problem that doesn't
exist or responding to perverse incentives for metrics.

RE: Software developers have stopped caring about reliability a month ago

From remyabel to ~sircmpwn/public-inbox

Don't even need to wait a week. I've already thought doing this after
reading the danluu article. One of the more perplexing bugs (feature?)
I've already written about is how XFCE hardcodes the inactivity value
for suspend to 14. So when setting it from the command line, setting it
to off you need to use 14, not 0...

For websites, especially JavaScript based ones, too many to list. Most
notably are ones that require JavaScript just to render text. Because
you can't make a website without the latest React/Webpack/insert hot-
tech framework here.

For games, also too many to list. Memory leaks, slow loading, crashing,
performance issues.

[PATCH core.sr.ht] Don't inject styles for every call to markdown 5 months ago

From Tommy Nguyen to ~sircmpwn/sr.ht-dev

These styles are already included, so it seems redundant.
---
 srht/markdown.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 839f72d..15c130a 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -197,7 +197,7 @@ def markdown(text, baselevel=1, link_prefix=None, with_styles=True):
        html = renderer.render(m.Document(text))
    formatter = HtmlFormatter()
    if with_styles:
        style = formatter.get_style_defs('.highlight') + " .highlight { background: inherit; }"
[message trimmed]

[PATCH core.sr.ht] Don't inject styles for every call to markdown 5 months ago

From Tom to ~sircmpwn/sr.ht-dev

These styles are already included, so it seems redundant.
---
 srht/markdown.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srht/markdown.py b/srht/markdown.py
index 839f72d..15c130a 100644
--- a/srht/markdown.py
+++ b/srht/markdown.py
@@ -197,7 +197,7 @@ def markdown(text, baselevel=1, link_prefix=None,
with_styles=True):
         html = renderer.render(m.Document(text))
     formatter = HtmlFormatter()
     if with_styles:

[PATCH] Fix typo in error message. 1 year, 9 days ago

From Tommy Nguyen to ~sircmpwn/gmni-devel

---
 src/gmnlm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index 9f76188..23b8e60 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -471,7 +471,7 @@ do_requests(struct browser *browser, struct gemini_response *resp)
			requesting = false;
			fprintf(stderr, "Server returned %s %d %s\n",
				resp->status / 10 == 4 ?
				"TEMPORARY FAILURE" : "PERMANENT FALIURE",
				"TEMPORARY FAILURE" : "PERMANENT FAILURE",
[message trimmed]

[PATCH meta.sr.ht] Set PGPKey user after the validation has passed 2 years ago

From Tommy Nguyen to ~sircmpwn/sr.ht-dev

Fixes meta.sr.ht#105

Credit goes to @bearbin.
---
 metasrht/types/pgpkey.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metasrht/types/pgpkey.py b/metasrht/types/pgpkey.py
index 084548a..1471999 100644
--- a/metasrht/types/pgpkey.py
+++ b/metasrht/types/pgpkey.py
@@ -22,7 +22,6 @@ class PGPKey(Base):
    def __init__(self, user, valid):
        from metasrht.webhooks import UserWebhook
[message trimmed]

[PATCH meta.sr.ht] Display a warning if deleting key used to encrypt e-mails. 2 years ago

From Tommy Nguyen to ~sircmpwn/sr.ht-dev

See https://todo.sr.ht/~sircmpwn/meta.sr.ht/124 for discussion.
---
 metasrht/blueprints/keys.py  | 3 +++
 metasrht/templates/keys.html | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/metasrht/blueprints/keys.py b/metasrht/blueprints/keys.py
index d257a16..0be7cc8 100644
--- a/metasrht/blueprints/keys.py
+++ b/metasrht/blueprints/keys.py
@@ -58,6 +58,9 @@ def pgp_keys_delete(key_id):
    key = PGPKey.query.get(key_id)
    if not key or key.user_id != user.id:
        abort(404)
[message trimmed]

[PATCH builds.sr.ht] Fix a small typo. 2 years ago

From Tommy Nguyen to ~sircmpwn/sr.ht-dev

---
 buildsrht/templates/secrets.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildsrht/templates/secrets.html b/buildsrht/templates/secrets.html
index c4cba7e..516eef3 100644
--- a/buildsrht/templates/secrets.html
@@ -3,7 +3,7 @@
<section class="row">
  <div class="col-md-4">
    <p>
      You can incoprorate secrets (like SSH keys) into your builds by including
      You can incorporate secrets (like SSH keys) into your builds by including
[message trimmed]

Re: How do I properly utilize the file secrets? 2 years ago

From Tom to ~sircmpwn/sr.ht-discuss

On Wed, 2019-07-03 at 15:42 -0400, Drew DeVault wrote:
> Try this:
> 
> 	set +x
> 	. ~/secret-file
> 	set -x
> 

Thanks.

On Wed, 2019-07-03 at 21:43 +0200, Eddie Barraco wrote:
> Why it will ?
> 
> foo=$(cat .bashrc) do not print anything