HN user

mgdlbp

1,673 karma
Posts16
Comments465
View on HN

That's a lot of hot pixels for base ISO! Could be the focus stacking intensified them.

That camera can actually get a bit more resolution out of sensor movements, though the lens might be at its limit already, or focus was still a little off. edit: it's probably the glovebox glass.

(re: dead comment 39066268) I'm now very interested in what Reiser would think of the present state of the (semantic) web. (edit: i.e, the thought experiment, realized: transplant someone just a few years in time --- what gradual changes would they uniquely observe?)

btw xterm has a hack for editors without mouse support – turn clicks into the right number of movement key presses,

  uxterm -xrm '*VT100.translations: #override !<Btn1Down>: vi-button() readline-button()'

(I don't think that's what most mean when they say 'chance', but I get what you mean ;) It's similar to realizing how seating choice radically alters your (very small) chance of death by train crash.

I was going to say 'chance of death on that day' but apparently rail transport is remarkably safe and in micromorts, you're as likely to die in one day at 20 years of age as in 10000 km by rail, or (only!) 1600 km by air.

Now, it appears that 1600 km is also nearly the distance of the average passenger flight (a disappointly difficult datum to discover on the internet in 2024). Is this a counterpart to the reassuring quips comparing the chances of death by lightning: that boarding a plane doubles your chances of dying that day?

https://en.wikipedia.org/wiki/Micromort#Travel

Tangentially, an issue with the desktop use case is that the main process of a long-running browser is often the first to be killed, instead of one of its content processes, which it can survive losing. This is the case since 2019 as the kernel no longer prefers killing children.[0]

As far as I know, unless a browser manages its oom_score_adj, which none do, a wrapper is insufficient as a workaround and a daemon would have to do so on its behalf, because the value is inherited when forking.

[0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

Enable Alt+SysRq+F and do it manually. Works in seconds every time; the kernel can take days because it's not eager enough when thrashing.

Can have security implications, but the target is chosen in the typical way and screen locks should be setting a score_adj to avoid being picked.

Gentoo goes Binary 3 years ago

a garden path sentence, but it parses.

[only on HN] could [any state [that Gentoo was ever in]] be [reflected upon [as "just worked like a breeze"] unironically]_,_ and [I] mean [that] [in a fond, loving way]

The parts of the logbook shown in the listing seem to imply that this engine was removed in the 1980s when the plane was still registered as G-BFKW.

As for the plane, engines 3 and 4 are visible in a 2010 photo.¹ By 2015 the ducts had all been covered.², albeit № 3 haphazardly in the rear.³

¹ https://commons.wikimedia.org/wiki/File:Concorde_(British_AW...

² https://commons.wikimedia.org/wiki/File:Concorde_2015-06_673...

³ https://commons.wikimedia.org/wiki/File:Concorde_2015-06_692...

Additionally,

    $ f=-x
    $ cat "$f"
    cat: invalid option -- 'x'

    $ cat -- "$f"
    cat: -x: No such file or directory
    # ^-- correct, but:

    $ f=-
    $ cat -- "$f"
    reading stdin...
    reading stdin...
    ^C

    $ f=./-
    $ cat -- "$f"
    cat: ./-: No such file or directory
...better to glob with ./* than *

The first answer is wrong, so is the second's explanation... twice it conflates unset with null/empty. Very illustrative!

The substance of the first answer:

    #!/bin/bash
    
    # Check if the first parameter is not provided
    if [ -z "$1" ]; then
        echo "Error: Parameter not provided."
        exit 1
    fi
The snippet precedes the true statement:

This checks if the first parameter (`$1`) is empty.

But what happened to the supplied task? It was stated and echoed as:

Anonymous: ...if it's not passed?

ChatGPT: ...if a specific parameter is not passed...

ChatGPT: ...if the parameter is set.

The second answer:

    #!/bin/bash
    : ${1?"Error: Parameter not provided"}
This is correct. But the explanation is not:

...and the `${1?...}` part checks if the first positional parameter (`$1`) is unset or null.

--

(the most succinct possible idiom is `#!/bin/bash -u`)

Some (topical) amusements:

    $ echo 25 | pwsh -c '$input-replace"\d",{2*"$_"}'
    410
    $ echo 25 | perl -pe 's/\d/2*$&/eg'
    410
```
    PS> $temp:pwsh_out = 10000
    PS> /bin/cat /tmp/pwsh_out
    10000
```
    $ echo ''''

    PS> echo ''''
    '
```
    PS> $Y = { param($f) . { param($x) . $x $x } { param($y) . $f { param($x) . (. $y $y) $x }.GetNewClosure() }.GetNewClosure() }
    PS> $fac = & $Y { param($f) { param($n) $n -lt 2 ? 1 : $n * (. $f ($n - 1)) }.GetNewClosure() }
    PS> & $fac 5
    120
```
    PS> gv -v|% m*d|% t*
    gv -v|% m*d|% t*

    PS> &($x={"&(`$x={$x})"})
    &($x={"&(`$x={$x})"})

    $ bash
    $ eval ${x='echo eval \${${x@A}}'}
    eval ${x='echo eval \${${x@A}}'}
```

bilingual pun,

    .ps1            .pl
     1               1
     {1}             {1}
     end {1}         sub {1}
     {end {1}}       {sub {1}}
     &{end {1}}      &{sub {1}}
```
    awk  -e 'BEGIN { printf "3\n" }'
    perl -e 'BEGIN { printf "3\n" }'
    ruby -e 'BEGIN { printf "3\n" }'
    pwsh -c 'BEGIN { printf "3\n" }'
```
    $ time ...; time ...; ....
    real 0.00 ...
    real 0.00 ...
    real 0.03 ...
    real 0.22 ...

Opportunistic interjection that unnecessary ${} is the most bothersome style choice in any language I know of:

- It obscures actual uses of modifiers, particularly ${foo-} when set -u is in effect,

- It's obvious when a name runs into subsequent text, even if one has somehow avoided syntax highlighting,

- And expansions followed by identifier chars don't actually occur in practice. Cases where the quotes cannot be moved to surround the variable are often interpolation of an argument to echo, whose behaviour is such a mess not even portable between bash and dash that shellcheck ought to be demanding printf at all times instead!

Reminds me of sdate for the Eternal September epoch. 10000 Sep 1993 was 2021-01-16.

http://www.df7cb.de/projects/sdate/

one commit message for the QDBs:

    From 14df411817feda9decf9dd8a6cd555d71f199730 Mon Sep 17 00:00:00 2001
    From: Christoph Berg <myon@debian.org>
    Date: Thu, 4 Jun 2020 20:05:49 +0200
    Subject: [PATCH] Fix long --covid option
    
    
     scripts/sdate.in | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
Sep 17 2001 (1000684800) is a special date from git-format-patch. Its significance is lost to time.