python Python Why I Still Use Python Virtual Environments in Docker
Jump
  • mapto mapto 2 weeks ago 100%

    I'm sorry, but doesn't sound very convincing. The strongest (reiterated) argument is "venv is standard", but so is docker.

    2
  • ukraine Ukraine 10 years since the Ilovaisk massacre
    Jump
  • mapto mapto 3 weeks ago 100%

    Thanks, corrected

    3
  • ukraine
    Ukraine mapto 3 weeks ago 95%
    10 years since the Ilovaisk massacre www.dialog.ua

    During the siege 10 years ago today, Russia agreed to open a humanitarian corridor to allow evacuation. Then they ambushed anyone who passed through this corridor.

    60
    3
    jobs
    Jobs mapto 2 months ago 100%
    Looking for a junior researcher to work on semantic shift qoto.org

    cross-posted from: https://qoto.org/users/mapto/statuses/112885446373011247 > Looking for a junior researcher to work on semantic shift > > We are studying the semantic shift of linguistics metalanguage in Early Modern English and we need your help. > > [\#changeIsKey](https://qoto.org/tags/changeIsKey) [#semanticShift](https://qoto.org/tags/semanticShift) [#computationalLinguistics](https://qoto.org/tags/computationalLinguistics) [#digitalHumanities](https://qoto.org/tags/digitalHumanities) > [@linguistics](https://a.gup.pe/u/linguistics) [@digitalhumanities](https://a.gup.pe/u/digitalhumanities) > [@digitalhumanities](https://lemmy.ml/c/digitalhumanities) > QT: [https://fediscience.org/@IslabUnimi/112885415246430765](https://fediscience.org/@IslabUnimi/112885415246430765)

    3
    0
    fediverse Fediverse Why haven't we figured out monetisation for peertube?
    Jump
  • mapto mapto 2 months ago 100%

    Thanks. I didn't know this and it is very useful information.

    1
  • fediverse Fediverse Why haven't we figured out monetisation for peertube?
    Jump
  • mapto mapto 2 months ago 100%

    Even if so, your unreasonably pessimistic assumption is that this would be an exclusive source of revenue. Once content is created, cross-posting is free.

    1
  • fediverse Fediverse Why haven't we figured out monetisation for peertube?
    Jump
  • mapto mapto 2 months ago 100%

    Thanks for doing the maths. Actually, it does show that there's a small, but unexploited market here. $2-3K a month is a very good income for the most of the world. And this doesn't have to be the only revenue stream.

    1
  • fediverse Fediverse Why haven't we figured out monetisation for peertube?
    Jump
  • mapto mapto 2 months ago 100%

    Could you elaborate, please. I'm genuinely interested

    1
  • python Python Polars — Announcing Polars 1.0
    Jump
  • mapto mapto 3 months ago 100%

    Looks exciting, and the basic example in the user guide seems more intuitive than pandas. Looking forward to see how it's going to integrate with bokeh and plotnine, though.

    1
  • dataisbeautiful Data Is Beautiful Cost by Protein Source
    Jump
  • mapto mapto 3 months ago 100%

    I guess you misunderstood my providing illustrative examples in parentheses. Replace or remove the examples, the argument is still valid.

    In another subthread they've pointed out that processing food also changes its protein density, most obviously by water transfer.

    1
  • dataisbeautiful Data Is Beautiful Cost by Protein Source
    Jump
  • mapto mapto 3 months ago 100%

    This is not a problem with the nutrition of foods, it is the metric that is poorly designed. One more argument against the chart

    1
  • dataisbeautiful Data Is Beautiful Cost by Protein Source
    Jump
  • mapto mapto 3 months ago 71%

    Your seem to insist to twist this towards vegan wars, but this is you. It's not the graphics, it's not me.

    3
  • python Python Why Python Is So Slow (And What Is Being Done About It)
    Jump
  • mapto mapto 3 months ago 100%

    Upfront analysis and design is very close to independent from the technology, particularly at the I/O level

    2
  • dataisbeautiful Data Is Beautiful Cost by Protein Source
    Jump
  • mapto mapto 3 months ago 100%

    What's wrong with reducing density through absorption (of water)?

    1
  • dataisbeautiful Data Is Beautiful Cost by Protein Source
    Jump
  • mapto mapto 3 months ago 16%

    To me it seems that your interpretation completely disregards the Y-axis. On the other hand, I wouldn't think the colour coding does a good job in separating along the carnivorous-vegetarian-vegan scale.

    -4
  • python Python Why Python Is So Slow (And What Is Being Done About It)
    Jump
  • mapto mapto 3 months ago 83%

    Q: what do we do? A: profile and decompose. Should not be that distant as a thought

    4
  • dataisbeautiful Data Is Beautiful Cost by Protein Source
    Jump
  • mapto mapto 3 months ago 40%

    So much wrong about this chart. It is factually correct, but it answers the wrong question.

    This chart makes it way too easy to optimise for cheap protein, which is misleading. It is not this what it takes to have a healthy organism. It takes a varied diet, with balanced quantities of liquids (see milk), vitamins (see sprouts), fatty acids (see salmon), minerals (see shrimps, eggs, walnuts), actually carbs (potatoes, rice, spaghetti), and much more...

    -5
  • vegan vegan Cost by Protein Source
    Jump
  • mapto mapto 3 months ago 66%
    2
  • russia
    Russia Россия mapto 3 months ago 35%
    Putin proudly reporting record low youth unemployment at PEF www.themoscowtimes.com

    News in Russian: >В России рекордно низкая безработица — в апреле она составила 2,6%. Значительно снизилась молодежная безработица. https://meduza.io/paragraph/2024/06/07/v-rossii-edyat-v-dva-raza-bolshe-myasa-chem-v-drugih-stranah-mira-tempy-rosta-nashey-ekonomiki-vyshe-srednemirovyh-my-obognali-yaponiyu The facts: >The number of young workers in Russia fell by 1.33 million people between December 2021 and December 2022. > >That is the second-largest decrease in recorded history behind the pandemic year of 2020, when 1.34 million young Russians left the job market. > >Finexpertiza’s research shows a decrease of 87,000 workers aged 20-24 from December 2021-December 2022 to a total of 3.2 million. https://www.themoscowtimes.com/2023/04/11/russia-lost-13m-young-workers-in-2022-research-a80784

    -4
    1
    python Python Python beginner
    Jump
  • mapto mapto 4 months ago 100%

    If you do that, nothing will actually be checked. You need to explicitly run pyright in CI.

    Are you suggesting that you prefer to do the type validation upon execution? I'd like to have the checks done beforehand, be it in the IDE during coding or in CI. This way the feedback loop is shorter.

    Then, backwards compatibility is a big thing in python, unlike node. So when typehints were introduced in 3.5 with PEP 484, they had to be optional.

    At least Typescript defines the semantics of its type hints. Python only defines the syntax! You can have multiple type checkers that conflict with each other!

    It is a bit more complicated than that. Here's a quote the above-mentioned PEP (3.5 was back in 2015, we're at 3.12 now and typehints have evolved):

    Note that this PEP still explicitly does NOT prevent other uses of annotations, nor does it require (or forbid) any particular processing of annotations, even when they conform to this specification. It simply enables better coordination, as PEP 333 did for web frameworks.

    https://peps.python.org/pep-0484/

    1
  • ukraine Ukraine The NYT informs Russia about foreign aid deliveries
    Jump
  • mapto mapto 5 months ago 100%

    Yup, @tearsintherain@leminal.space, what you're engaging in here is pure whataboutism. Fox, Carlson and company would've happily helped here, but they didn't. NYT did.

    2
  • ukraine Ukraine The NYT informs Russia about foreign aid deliveries
    Jump
  • mapto mapto 5 months ago 100%

    Researching on time and place of arrival is a nice gift for anyone who wants to intercept these and is being cut off from doing this research themselves.

    1
  • python Python Autorun | Autostart | Run at startup
    Jump
  • mapto mapto 5 months ago 100%

    Have you looked at this one? https://pypi.org/project/onboot/

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearBU
    Bulgaria mapto 5 months ago 50%
    Анкета: стереотипите и предразсъдъците спрямо женския пол в съвременността forms.gle

    Анонимна анкета за целите на докторска дисертация Cross posted from: https://masto.bg/users/mapto/statuses/112339098204198104

    0
    0
    academia Academia Anyone else have to watch recorded lectures at 2-3x speed?
    Jump
  • mapto mapto 5 months ago 100%

    Then there's paying attention as in comprehending, and paying attention as in internalising. The latter takes more effort and time, as it includes relating to previous knowledge. It is not as often that lecturers manage to guide students to think along.

    4
  • academia Academia Anyone else have to watch recorded lectures at 2-3x speed?
    Jump
  • mapto mapto 5 months ago 100%

    I guess when taking notes, it is beneficial if you manage also to abbreviate and summarise. This is another skill that should be acquired at university.

    5
  • aitech
    Intelligenza Artificiale mapto 6 months ago 93%
    Gaza: AI Apocalypse Now www.972mag.com

    >In 2021, a book titled “The Human-Machine Team: How to Create Synergy Between Human and Artificial Intelligence That Will Revolutionize Our World” was released in English under the pen name “Brigadier General Y.S.” In it, the author — a man who we confirmed to be the current commander of the elite Israeli intelligence unit 8200 — makes the case for designing a special machine that could rapidly process massive amounts of data to generate thousands of potential “targets” for military strikes in the heat of a war. Such technology, he writes, would resolve what he described as a “human bottleneck for both locating the new targets and decision-making to approve the targets.” > >Such a machine, it turns out, actually exists... >During the early stages of the war, the army gave sweeping approval for officers to adopt Lavender’s kill lists, with no requirement to thoroughly check why the machine made those choices or to examine the raw intelligence data on which they were based. One source stated that **human personnel often served only as a “rubber stamp” for the machine’s decisions, adding that, normally, they would personally devote only about “20 seconds” to each target before authorizing a bombing — just to make sure the Lavender-marked target is male**. This was despite knowing that the system makes what are regarded as **“errors” in approximately 10 percent of cases**, and is known to occasionally mark individuals who have merely a loose connection to militant groups, or no connection at all. >In an unprecedented move, according to two of the sources, the army also decided during the first weeks of the war that, for every junior Hamas operative that Lavender marked, **it was permissible to kill up to 15 or 20 civilians**; in the past, the military did not authorize any **“collateral damage”** during assassinations of low-ranking militants. The sources added that, in the event that the target was a senior Hamas official with the rank of battalion or brigade commander, the army on several occasions authorized the killing of more than 100 civilians in the assassination of a single commander.

    14
    2
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearBU
    Bulgaria mapto 6 months ago 50%
    Медийно око - българските онлайн-медии под лупа mediascan.gadjokov.com

    Ръчно анотирана база данни с анонимни и фалшиви новинарски сайтове

    0
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearBU
    Bulgaria mapto 6 months ago 100%
    bgGLUE: Bulgarian Language Understanding Evaluation bgglue.github.io

    >The Bulgarian General Language Understanding Evaluation (bgGLUE) benchmark is a collection of resources for training, evaluating, and analyzing natural language understanding systems in Bulgarian.

    1
    0
    academia Academia Universities Have a Computer-Science Problem
    Jump
  • mapto mapto 6 months ago 100%

    Heh, when it rains, it's certainly capitalism's fault. This ways one doesn't have to solve individual problems, just dream of abstract revolutions

    4
  • python Python Write Shell Out Comes Python
    Jump
  • mapto mapto 6 months ago 100%

    I guess the answer at this point in time is: it allows you to define the function replacements that matter to you in pnk.lang. But if so, ksh is not a first choice for maintainable code.

    So it boils down to: can it "transpile" (transpret rather) its own code?

    1
  • python Python Write Shell Out Comes Python
    Jump
  • mapto mapto 6 months ago 100%

    Even looking into the readme and pink.lang, I'm still unsure what this does. I can imagine, but one single example would be nice. Bonus points if it is actually something useful

    2
  • artificial_intel
    AI mapto 6 months ago 63%
    Job opportunities at the European AI Office https://digital-strategy.ec.europa.eu/en/news/job-opportunities-european-ai-office

    The new European AI Office launched its first job opportunities.

    3
    0
    academia Academia Millions of research papers at risk of disappearing from the Internet
    Jump
  • mapto mapto 7 months ago 100%

    From Day 1 Google's business model has been to show sponsored content before search results. You're probably thinking about the search engines before them.

    1
  • academia Academia Why Most Published Research Findings Are False
    Jump
  • mapto mapto 7 months ago 100%

    Isn't it dangerous to identify untruth with falsehood? Or is it just clickbait headlines? There's an implicit positivist assumption here anyway.

    3
  • academia Academia Millions of research papers at risk of disappearing from the Internet
    Jump
  • mapto mapto 7 months ago 87%

    “Our entire epistemology of science and research relies on the chain of footnotes,” explains author Martin Eve, a researcher in literature, technology and publishing at Birkbeck, University of London. “If you can’t verify what someone else has said at some other point, you’re just trusting to blind faith for artefacts that you can no longer read yourself.”

    Isn't this the natural state of things for the unprivileged majority of us that in the reality of publisher paywalls do not have access to the riches of Anglo-American research centres? Apparently Eve doesn't know that libraries in the most of the world still struggle with paying fees to Springer. As a consequence, researchers in affiliated institutions do not have access to the corresponding published content.

    6
  • israel_palestine_pol
    One way to help is to make a public register of identified offenders www.ted.com

    What Philip Zimbardo tells us about human psychology is that everyday war crimes are committed by people that hide behind uniforms. Keeping a register of offenders in what appears as potential war crimes would have two positive effects: 1. Provide the evidence for these people to be put on trial in better times 2. Deter future offenders by making them think twice about their own future before unleashing their hate

    22
    0
    python Python bruin-data/ingestr: ingestr is a CLI tool to copy data between any databases with a single command seamlessly.
    Jump
  • mapto mapto 7 months ago 100%

    On the readme in GitHub it appears that "any" excludes MySQL and SQLite as destinations, and this among the dozen or so DBMS they care to list

    1
  • earthscience Earth, Environment, and Geosciences Clouds Vanish During a Solar Eclipse, And We Finally Know Why
    Jump
  • mapto mapto 7 months ago 100%

    "If we eclipse the Sun in the future with technological solutions, it may affect the clouds" - is this guy for real? Please, tell me it's a nightmare

    1
  • green Green - An environmentalist community The Green New Deal Is the Opiate of the Masses
    Jump
  • mapto mapto 7 months ago 100%

    I keeps amazing me how one could criticise capitalism and still talk exclusively in terms of capitalism.

    Not a single word of the accelerating extreme deforestation of the world's forests all over the planet. And this is just an example. The same holds about drilling and plastics, about industrial farming, construction,... I don't care if they are profitable. They're just aggravating the problem and there are alternatives that reduce the problem. These need to be enforced, regardless whether they are profitable (some of them are, but they still don't overtake the problematic ones). We don't have collective enforcement and we need it. Call it green new deal if you want, call it anarcho-communism, whatever. As long as it is just theory and no practice, it's pointless.

    Politics and growth are irrelevant if they are so detached from the problem.

    4
  • dataisbeautiful Data Is Beautiful How much it costs to cut 1 metric ton of carbon emission with various methods for different global carbon emission levels
    Jump
  • mapto mapto 7 months ago 100%

    Let's say that for millions of years a healthy biosphere grew around forests and the balance worked. Now you come to tell us it doesn't. Wouldn't you think it's a bit unconvincing?

    1
  • dataisbeautiful Data Is Beautiful How much it costs to cut 1 metric ton of carbon emission with various methods for different global carbon emission levels
    Jump
  • mapto mapto 7 months ago 100%

    I wonder why forestation is not present in this chart, as it is a low-cost carbon capture with side benefits. Sure, it is hard to scale, but reducing current deforestation rates would be a big step.

    1
  • dataisbeautiful Data Is Beautiful How much it costs to cut 1 metric ton of carbon emission with various methods for different global carbon emission levels
    Jump
  • mapto mapto 7 months ago 100%

    Why would the logs be emitting CO2 (rotting?) if they are alive and growing?

    1
  • gamedev Game Development What game development engines or frameworks are you currently using, and what do you like about them?
    Jump
  • mapto mapto 7 months ago 100%

    The way you put it, it sounds that you have issues with the language. I can relate to that, but JS is what browsers understand natively. Probably using TypeScript is a good alternative, as static typing helps you keep afloat as the project grows.

    As for Phaser itself (can be used with TypeScript), it depends what kind of game you're making. Even older versions of phaser have the typical programming affordances to make 2D games like assets and physics. Having said that, it's fair that other engines have visual editors, and possibly more tutorials and other resources.

    But yes, phaser is hardly HTML, so weird choice for the course.

    3
  • academia Academia Grantway: Grant Search Engine
    Jump
  • mapto mapto 7 months ago 100%

    Anyone being able to find anything meaningful on this one? I can't, but this doesn't mean much.

    1
  • gamedev Game Development What game development engines or frameworks are you currently using, and what do you like about them?
    Jump
  • mapto mapto 7 months ago 100%

    https://phaser.io/ - web-first, so Easy to distribute even games made for game jams

    1
  • python Python FastAPI keeps generating local index.html*
    Jump
  • mapto mapto 7 months ago 100%

    To me it depends on the base image. Some don't have curl, but have wget. I would go with the flow instead of installing it myself. Especially if I can get away with not having to add more layers for an image of my own and/or using the same command for all containers

    1
  • python Python FastAPI keeps generating local index.html*
    Jump
  • mapto mapto 8 months ago 100%

    Ok, that was stupid. Doing healthcheck with wget, does what wget does: it downloads the result. I had to add --spider to stop doing that

      wget -nv --spider http://localhost:8000 || exit 1
    
    2
  • python Python FastAPI keeps generating local index.html*
    Jump
  • mapto mapto 8 months ago 100%

    Well, I do need OpenAPI (Swagger). What I don't need is the generation of thousands of equal static files. Out of all these generated files, index.html would've been enough and I don't need index.html.1, etc.

    1
  • python
    Python mapto 8 months ago 100%
    FastAPI keeps generating local index.html*

    I deploy a FastAPI service with docker (see my [docker-compose.yml](https://github.com/vast-project/socialmediaharvester/blob/master/docker-compose.yml#L22) and [app](https://github.com/vast-project/socialmediaharvester/blob/master/backend/main.py)). My service directory gets filled with files index.html, index.html.1, index.html.2,... that all contain ![](https://lemmy.world/pictrs/image/36c30fbc-0f92-4a6a-910c-de008a689b68.png) They seem to be generated any time the docker healthcheck pings the service. How can I get rid of these? PS: I had to put a screenshot, because Lemmy stripped my HTML in the code quote.

    8
    8
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearBU
    Bulgaria mapto 8 months ago 33%
    BgGPT - LLM model for Bulgarian therecursive.com

    The INSAIT institute has trained a language model for Bulgarian and is giving public access to it on the 3rd of March.

    -1
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearDI
    Digital Humanities mapto 8 months ago 100%
    A new way to do exploratory analysis on translation history

    Within bibliographic research commonly network analysis is used. However, it doesn't tell us much about individual entities of the network. The challenge is that bibliographic data is highly structured, but nominative. Borrowing ideas from [phenomenography](https://en.wikipedia.org/wiki/Phenomenography), this [article](https://ceur-ws.org/Vol-3558/paper774.pdf) shows an approach to exploring such data. The idea is to visualise first single dimensions of the data, then pairs of dimensions, and only at the end attempt to represent the full-blown data network.

    3
    0