- 1 Post
- 10 Comments
eternacht@programming.devto Technology@lemmy.world•Mark Zuckerberg banned news on Facebook and Instagram in Canada. Jeff Ballingall, a conservative operative, saw an opportunity. He runs ''Canada Proud'', a facebook page publishing lies English12·2 months agoGoogle 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.
eternacht@programming.devto LinkedinLunatics@sh.itjust.works•Delusional techie is very scared of Chinese Deepseek553·5 months agoThis supposed Chief Technology Officer appears to understand very little about how Technology actually works.
eternacht@programming.devto Linux Questions@lemmy.zip•Is there anything that could help me memorise the argument order of the `ln` command?English2·5 months agoI 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.
eternacht@programming.devto Science Fiction@lemmy.world•In the mood for engineering / competence porn. What are your favourite novels / series?English3·6 months agoI’d say it definitely counts as competence porn though, it’s got tons of high-stakes hacking and problem solving.
Quick mix some lime juice in there!
eternacht@programming.devto Selfhosted@lemmy.world•PhotoPrism vs Apple Photos currently?English9·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.
YES! I rewatched recently. I thought it would age poorly but it’s still extremely watchable.
eternacht@programming.devto Python@programming.dev•[Answered] Typehints for functions that have variable signatures1·2 years agoThis 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
As a former Lightroom plugin developer I feel erased!