eternacht

joined 2 years ago
[–] [email protected] 11 points 1 month ago

As a former Lightroom plugin developer I feel erased!

[–] [email protected] 3 points 1 month ago

Resistance is hootile

[–] [email protected] 12 points 2 months ago

Google does pay Canadian news companies to show their content.

Part of the issue is that Facebook and Instagram can show news stories without linking out to them, so users don’t get the opportunity to see the news companies’ ads or to sign up for a subscription.

[–] [email protected] 52 points 5 months ago (2 children)

This supposed Chief Technology Officer appears to understand very little about how Technology actually works.

[–] [email protected] 2 points 5 months ago

I think of it in terms of the cp command: Source first, followed by destination. The last argument is always the new file/link you are creating.

[–] [email protected] 3 points 5 months ago* (last edited 5 months ago) (1 children)

I’d say it definitely counts as competence porn though, it’s got tons of high-stakes hacking and problem solving.

[–] [email protected] 14 points 7 months ago (1 children)

Quick mix some lime juice in there!

[–] [email protected] 9 points 9 months ago

+1 for Immich, I tried photoprism and had a lot of trouble importing and organizing an existing library. Immich works much more intuitively and had all the features I needed.

[–] [email protected] 3 points 2 years ago

YES! I rewatched recently. I thought it would age poorly but it’s still extremely watchable.

[–] [email protected] 1 points 2 years ago

This is the real answer, overloads are meant for exactly this purpose.

It’ll be something like this:

from typing import Literal, overload

@overload
def foo() -> Data: …
@overload
def foo(return_more: Literal[True]) -> tuple[Data, Data]: …
def foo(return_more: bool = False) -> Data | tuple[Data, Data]
    ...
    if return_more:
        return data, more_data
   return data