Readit News logoReadit News
imcritic commented on A German ISP changed their DNS to block my website   lina.sh/blog/telefonica-s... · Posted by u/shaunpud
05 · 4 hours ago
Pretty sure the biggest propaganda channel is social media and it's wide open.
imcritic · 4 hours ago
You see, he isn't against propaganda, he is against propaganda he doesn't agree with.
imcritic commented on A German ISP changed their DNS to block my website   lina.sh/blog/telefonica-s... · Posted by u/shaunpud
rvnx · 4 hours ago
Democracy is sneaky refined domination, subtle enough that masses do not see through it, but it is elites controlling the masses.

At the end, this political system is about supporting current power who settled by force (and to whom you have to pay a tax to not be sent into physical jail, and all your belongings taken).

Remember that at the beginning, these nice people are actually people who killed to be in place, and collected a lot of power and money, and that are now defending their position.

Kingdoms, then Dictatorship were too unstable, and this gave birth to Democracy, still with the same elites.

In some way, it is a softer continuation of conquest-coercion dressed as consent.

The newest generations use propaganda to settle; the approach changes, but the goal is ultimately the same.

imcritic · 4 hours ago
That description fits any authority, not just democratic. The state is an apparatus of coercion. Always was, always will be.

Dead Comment

imcritic commented on From M1 MacBook to Arch Linux: A month-long experiment that became permanenent   ssp.sh/blog/macbook-to-ar... · Posted by u/articsputnik
realusername · a day ago
I agree for the screen and the audio but the trackpad on the mac is significantly different from any other laptop so you either love it or hate it. Personally I hate it and would rate it similarly as a cheap laptop. My brother loves it though.
imcritic · a day ago
What's there to hate in it?
imcritic commented on The value of hitting the HN front page   mooreds.com/wordpress/arc... · Posted by u/mooreds
marginalia_nu · 4 days ago
I think I've been on the HN front page something like 30 times now since August 2021, with maybe half of those hitting it out of the park and lingering for over a day.

There are real diminishing returns in terms of follow-up traffic and follow-up effects. As to be expected, but it's worth keeping in mind that this is something that generally happens over time as the novelty of whatever you're writing about wears off. The good part is that as part of this you'll gradually get more regular readers, so there's less pronounced feast-or-famine cycles.

(Here I don't measure visits as there's so much bot traffic noise especially on anything that hits HN, but mostly focus on whether I get actual engagement, if people reach out to me, send me emails and so on)

I think ultimately a blog post isn't interesting because it's on HN, it's on HN because it's interesting.

Tryharding with regards to the HN frontpage is more likely to come at a cost of writing quality, and thus reducing the likelihood of making the front page.

imcritic · 4 days ago
If HN had some kind of Hall of fame - you would be hanged there as a local (?) celebrity.
imcritic commented on PG Auto Upgrade – Docker (and K8s) container to auto upgrade your database   github.com/pgautoupgrade/... · Posted by u/justinclift
curt15 · 7 days ago
So do people containerize databases in production these days? I thought a couple of years ago DBs were the classic example of applications that don't belong in containers.
imcritic · 7 days ago
Depends on the scale. Something small is okay to keep in containers. If you want to push performance to the limits - you definitely will run your DBMS outside a container.
imcritic commented on Writing simple tab-completions for Bash and Zsh   mill-build.org/blog/14-ba... · Posted by u/lihaoyi
tetha · 13 days ago
It kinda does, but I've added a few bells and whistles to it. Mind you, this is zsh code I haven't really cleaned up, so it's kinda messy and most likely buggy in edge cases.

This needs to be in a directory in your FPATH.

At the core, it uses _arguments to dissect the command line. This both suggests that "-t" exists, is called "tags" and later on sets a state variable to "tags" or "limits" if we're completing these arguments.

    #compdef corp-ansible-wrapper
    _arguments  '-t[tags]:tags:->tags' '-l[limit]:limit:->limits' '-D[diffmode]' '-C[checkmode]' '::optional arg:_files'
    detect_playbook
    case "$state" in
        tags)
        ...
        ;;
        limits)
        ...
        ;;

Given this, the limits autocompletion goes one step further. `detect_playbook` mainly goes through $words and looks for a singular argument looking like "*.yml" and sets that as $PLAYBOOK. Then, based on "$PLAYBOOK", it selects a filter-expression for the groups. This ensures that a `./wrapper mariadb.yml -l<TAB>` only sees mariadb-groups, and not postgres-groups.

All of that is shoved into `_values`, and then the usual zsh completion works, so with something like `./wrapper mariadb.yml -l prj4<TAB>`, zsh tries to filter the values based on the word, so this finds stuff like `prj4`, `prj49`, `dc2_prj45`, and so on, but not `prj5`.

    detect_playbook

    # should be an array.
    case $PLAYBOOK in
        postgres.yml)
            FILTER="pg_\|postgres_\|pgbackrest_"
        ;;
        mariadb.yml)
            FILTER="db_\|mariadb_"
        ;;
        # quite a few more
        *)
            FILTER=""
        ;;
    esac

    # probably overly complex
    ANSIBLE_GROUPS_RAW=$( cat $ANSIBLE_INVENTORY/groups | grep -E "$FILTER" | sort | uniq | tr '\n' ',')
    IFS=',' read -r -A ANSIBLE_GROUPS <<< "$ANSIBLE_GROUPS_RAW"
    _values -s: 'groups' "${ANSIBLE_GROUPS[@]}"
For the tags I'm working on a similar thing, but this contains enough ugly shell-script already. However, the key parts there are:

- You can run `ansible-playbook "$WORD" --list-tags` to get all tags a playbook references in the current inventory.

- One can give `_values` descriptions. If `_values` sees 'foo[bar]' as an option, it will show the user something like: "foo: bar" and only auto-completes to foo.

- This means, we can give standard or well-established tags short descriptions in a directory or an array or whatever, and instead of offering just "postgres_client_tls_certs" as possible auto-completions for `-t`, we can give the user a prompt like "postgres_client_tls_certs: Ensures the postgres cluster has valid and up-to-date TLS certificates for mutual TLS with applications".

It took a bit of time to understand all of this. But now documenting a tag in a place that people actually look at is very easy and straightforward.

imcritic · 9 days ago
Oh, I thought you didn't hardcore those as if conditions, but rather parsed inventory files to get suggestions for -t and parsed tasks in playbook's roles to get suggestions for -l.

Still cool though, thanks for sharing!

imcritic commented on Writing simple tab-completions for Bash and Zsh   mill-build.org/blog/14-ba... · Posted by u/lihaoyi
tetha · 14 days ago
It's a good first dive into zsh completion. The whole thing is quite the large system to wrap ones head around it and I'm still somewhat struggling.

But at work, I've been slowly adding auto completion to our ansible wrapper scripts, like explanations which playbooks to use when, smart `-l` completion based off a possibly selected playbook (so, if the playbook is postgres.yml, it doesn't suggest mariadb groups), tag autocompletion (with a few, admittedly, hardcoded explanations how these tags should be used) and such.

It's somewhat of a friday-afternoon struggle project, but it's making the big ansible project pretty approachable to use.

imcritic · 14 days ago
Could you share how you do it? Ansible playbooks are ran via command `ansible-playbook` command and it surely has its own tab auto completion script.
imcritic commented on Writing simple tab-completions for Bash and Zsh   mill-build.org/blog/14-ba... · Posted by u/lihaoyi
medv · 14 days ago
JSON fields autocomplete right in bash/zsh: https://fx.wtf/install#autocomplete
imcritic · 14 days ago
Thanks for linking this! This is a lightweight solution, compared to ijq (interactive jq), but it still may come in handy.

https://github.com/gpanders/ijq

imcritic commented on Qwen-Image: Crafting with native text rendering   qwenlm.github.io/blog/qwe... · Posted by u/meetpateltech
vunderba · 20 days ago
I've been playing around with it for the past hour. It's really good but from my preliminary testing it definitely falls short of gpt-image-1 (or even Imagen 3/4) where reasonably complex strict prompt adherence is concerned. Scored around ~50% where gpt-image-1 scored ~75%. Couldn't handle the maze, Schrödinger's equation, etc.

https://genai-showdown.specr.net

imcritic · 19 days ago
Thanks for that comparison/overview/benchmark!

However, you have mistakenly marked some answers as correct ones in the octopus prompt: only 1 generated image has octopus have sock puppets on all of its tentacles. And you marked that one image as an incorrect one due to sock looking more like gloves.

u/imcritic

KarmaCake day60November 12, 2024View Original