Aleksander Łukasz 🌱
banner
aflukasz.pl
Aleksander Łukasz 🌱
@aflukasz.pl
Practicing mindfulness with Bash, CSS and YAML • Zażółcam gęślą jaźń • aflukasz.pl
./

Not sure if there were other attempts to add something like that, but if they did take place, they were not finalized - pg_dump does not have such option to this day.

#Postgresql
August 9, 2025 at 2:53 PM
He misspoke - he meant rubberchatting.
August 2, 2025 at 12:00 PM
Same.

There should be a separate third handle, on the inside, dedicated just for testing. That will fix the problem.

Or a hole for the hand for reaching to the outside handle.

I don't get it why they stopped mid way with such clearly incomplete design.
August 2, 2025 at 10:28 AM
And same with `-f` and mixing `-c` and `-f`.

You've motivated me to take a closer look into the docs, and turns out there is even more nuance to various usages of `-c`, chained `-c`, or just using stdin I wasn't aware of.

Solid tip. 🐘
August 2, 2025 at 6:54 AM
./

... like a request for sudo password - if such privilege escalation is requested.

Some more on that here: notes.aflukasz.pl/en/2025/08/0... .
Nature of Ansible's "Timeout (12s) waiting for privilege escalation prompt" error
notes.aflukasz.pl
August 1, 2025 at 8:53 PM
3/

This timeout starts counting down approximately at the same time as the connection timeout does (they more or less overlap, starting when connection is being initiated).

It tracks if we are not waiting too long for the privilege escalation prompt to be generated on the remote system...
August 1, 2025 at 8:53 PM
2/

This timeout has a value of the ssh connection timeout (which is configurable and defaults to 10s) extended by adding extra 2 seconds, as seen in github.com/ansible/ansi...:

```
timeout = 2 + self.get_option('timeout')
```

It's not otherwise settable directly.
ansible/lib/ansible/plugins/connection/ssh.py at v2.19.0 · ansible/ansible
Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to clo...
github.com
August 1, 2025 at 8:53 PM
./

Each time I ultimately got this value be creating temporary r2 bucket and extracting id from advertised bucket endpoint url.

@cloudflare.social - I dare you to teach me about my mistakes here.
July 22, 2025 at 1:40 PM
2/

... on freshly created accounts, because the whole page where this id could be obtained is... replaced with a wizard form of sorts for pages product ("Boost your site's speed and security").

But all i need is id to use with their API. ☹️

Recently I was in this situation a couple of times...
July 22, 2025 at 1:40 PM
./

```
{% if condition %}
setting = {{ val }}
{% else %}
# Skipping setting assignment - condition not met.
{% endif %}
```

Config files typically support comments (right, JSON?). Making else branch explicit that way makes it clear what happened, without a need to consult file generation process.
July 22, 2025 at 9:21 AM
2/

... and then, when such generated file is read in a different context, outside of a templating process, it's not clear that such decision was actually made or if maybe it was forgotten to be made, never considered when writing the template etc.

Often a better approach would be the following:
July 22, 2025 at 9:21 AM
./

... occurrences of stdin pointed to as a source, this allows, for example, for merging consecutive lines from a single source:

```
$ echo -e "1\n2\n3\n4" | paste - -
1 2
3 4
```

Some more examples at notes.aflukasz.pl/en/2025/07/1... .
Joining consecutive lines with paste
notes.aflukasz.pl
July 14, 2025 at 11:02 AM
2/n

As per standard (pubs.opengroup.org/onlinepubs/9...): "If '-' is specified for one or more of the files, the standard input shall be used; the standard input shall be read one line at a time, circularly, for each instance of '-'."

So because state (read offset) is shared for all the...
paste
pubs.opengroup.org
July 14, 2025 at 11:02 AM
./

... two identical sequences of 8 bytes (one for each column). In this case it's `00 a4 93 d6 00 00 00 00`, which is the number of microseconds between 2000-01-01T00:00:00Z and 2000-01-01T01:00:00Z.

I expand on that some more at notes.aflukasz.pl/en/2025/05/3... .
PostgreSQL does not store time zone in `timestamp with time zone` data type
notes.aflukasz.pl
July 7, 2025 at 9:55 PM
2/

... insert a sample row like `insert into test (tnotz, ttz) values ('2000-01-01 01:00:00', '2000-01-01 01:00:00' at time zone 'utc')`, and then take a look into the table file on disk, you will find that the contents of this row is represented by...
July 7, 2025 at 9:55 PM
Or just copy paste from “Infinite Jest”, that will do.

Sorry, recent trauma.
June 6, 2025 at 6:55 PM
./

... the data scheme usage itself, but to the embedding of an empty string. Inlining an actual small "empty" image could maybe improve the effect in some cases. Although, arguably, this starts being close to... just having an actual favicon.
May 29, 2025 at 9:05 AM
5/

... with #Firefox, #Chromium and #Chrome. On #mobile #Safari I've caught single requests here and there despite the above `link`, so not sure.

Any potential issues coming from the above approach (like browser fetching remote file despite data url) may be related not to...
May 29, 2025 at 9:05 AM