skysight-inc/HackerNews huggingface dataset:
This, absolutely. If you're running tests for building a package, here's an entire "tox.ini" file for running all your tests on multiple python versions:

[tox]
envlist = py27,py36,py38

[testenv]
deps =
pytest # Install extra packages for testing separate from what's in setup.py or whatever
commands =
pytest # Whatever test command your project uses

That's really it for bare minimum. If you have pytest configuration, they can also go into tox.ini under a [pytest] section to keep them in the same place.

Instead of installing tox globally you can even install it to a separate virtualenv, activate it, then run "tox". It figures out the right thing to do.

If you're not building a package:

[tox]
envlist = py27,py36,py38
skipsdist = True # Don't attempt to build a package / pull from setup.py

[testenv]
deps =
-r requirements.txt # Pull in project requirements
pytest
commands =
pytest
> on its way to become the standard low-level language

It will take a very long time for Rust to get even close to the huge amount of C++ code out there. There are more than 5 million professional C++ developers employed around the world today. And that number is increasing. Don’t get me wrong: I like Rust and other attempts to move beyond C++. But don’t underestimate how much C++ code has been written the last 30+ years. And new C++ projects are started every single day. There are probably more C++ projects started every day than Rust projects. So anything that makes it possible to move beyond C++ while being 100% interoperable is good news.
I appreciate that Fran has an example of monetizing content without claiming copyright (she digitizes public domain footage and is free to run ads on her channel, the money comes from an agreement with the broadcaster to advertise to her audience, nothing to do with the ownership of the content)

People assume that without copyright there would be no way for artists to make an income, but the two aren't really related. It's actual purpose is to prevent art from being made unless it is sufficiently "original"
Right, and if Vimeo became popular they'll be subject the same lawsuits until they're forced to screw over uploaders: https://en.wikipedia.org/wiki/YouTube_copyright_issues

>Organizations including Viacom, Mediaset, and the English Premier League have filed lawsuits against YouTube, claiming that it has done too little to prevent the uploading of copyrighted material.[8][9][10] Viacom, demanding $1 billion in damages, said that it had found more than 150,000 unauthorized clips of its material on YouTube that had been viewed "an astounding 1.5 billion times". YouTube responded by stating that it "goes far beyond its legal obligations in assisting content owners to protect their works"

>Viacom won a court ruling requiring YouTube to hand over 12 terabytes of data detailing the viewing habits of every user who has watched videos on the site

>In April 2012, a court in Hamburg ruled that YouTube could be held responsible for copyrighted material posted by its users. The performance rights organization GEMA argued that YouTube had not done enough to prevent the uploading of German copyrighted music
The conflicting advice is a serious problem.

I hope you'll forgive me for adding one additional piece of advice: for many Python packages, the only packaging metadata you need is `pyproject.toml`. You don't even need `setup.py` anymore, so long as you're using a build backend that supports editable installs with `pyproject.toml`.

Here's an example of a Python package that does everything in `pyproject.toml`[1]. You should be able to copy that into any of your projects, edit it to match your metadata, and everything will work exactly as if you have a `setup.cfg` or `setup.py`.

[1]: https://github.com/sigstore/sigstore-python
Lula's personal culpability has never been established to the degree you suggest.

Just compare him to Temer, Bolsonaro and the entire Bolsonaro clan, which bought off Moro, is weakening protections for the rainforest (benefiting his associates), and is systematically dismantling anti-corruption institutions.

https://g1.globo.com/politica/noticia/2020/10/13/transparenc...

Just because the investigations haven't begun doesn't mean they're not coming.

It's a weak argument given the responsible alternatives to explore that benefit more people. The government deserves criticism.
The Carbon API has been obsolete for years now; there's probably no danger of anyone getting confused when they search on Stackoverflow or Google.
> Ruby is clever, it can be beautiful, but I've never seen a good codebase using it grow well without enforcing strictly opinionated ways of writing it to ensure maintainability.

I believe every good maintainable software needs an enforcing strictly opinionated ways of writing it to ensure maintainability.

Language need be general to be useful. Any language can create utterly unmaintainable code. If you shift "opinionated" into the language, it is less easy to write unmaintainable code, but it is also more difficult to write fitting maintainable code because that "opinionated" opinion may not best fit (and usually can't best fit) a specific application, a specific team, and a specific set of experience. On the other hand, if we shift "opinionated" to the programmer, the language inevitably need add more meta-programming ability or simply more ways to do the same/similar thing. The code can easily become unmaintainable under less experienced programmers who are not opinionated and aren't disciplined.

The current programming culture expect programmers to be commodities, thus favors opinionated languages and idiomatic code. I can easily imagine a shift in culture that favors experienced and opinionated and disciplined programmers, where different set of languages will be favored.

Today's software, once grow to certain size, are all quite unmaintainable.
The increasing frequency of fatal wet-bulb temperatures
> so they got all the money I earned from that video

Makes me wonder if anyone at Google is aware of the term "perverse incentive"
I just created a weekly newsletter to share the best in the world of design
Curating content from a half of a thousand news feeds, from dozens of email newsletters, from hundreds of designer profiles over the place like Behance, Dribbble, Medium, Facebook, Webflow, and from a large cozy stock of the Notion library.
This is pretty unbelievable! Not that I would doubt your account, but rather the world, actually…
Senate Votes 64-34 to Advance Chips Bill
http://archive.today/elJm5
I believe they are DMCA claims. The exist because it grants youtube imunity in the process. Youtube had no incentive to get involved except for pissing off their content creators. If you can't counter claim/sue then get loud. Let your viewers know.

Edit: reading in another thread that perhaps this is content ID. Not that, that is any better.
> ... signals the decline of the local government police forces.

I don't think it's something you can lay at the feet of the SF Police Department. I asked Pete McLaughlin, SFPD (retired), why the police don't go after bike thieves more aggressively.

"Our hands are tied," he said. "They [the thieves] know the most we can do is give them a citation, and they'll be out that afternoon."

California has a history of being lenient with non-violent crime, which is appropriate in some cases, but maybe not in others. Maybe leniency is the wrong approach for some of these bike thieves.

But it's complicated. I heard Jerry Brown (former California Governor) talk about how ~10% of the state budget goes to prisons, and he's not comfortable with such a large amount, and I agree--throwing people in jail is expensive!

Lastly, when the SFPD was needed, they move fast: I had a home invasion a couple of years ago (a guy kicking in my window, trying to break in), and five police were in my apartment within minutes of the 911 call. Worth 20 stolen bikes IMHO.
Every bike I had stolen was registered; none of them were ever returned to me.
Every untimely death is a tragedy.
That's why every country has widespread public health campaigns extolling the virtues of stopping smoking, healthy diets, exercise, maintaining a healthy weight. But these are background noise to most people, and most people don't change their behaviour anyway.
If your point is the news should be plastered with images of people suffering heart attacks or cancer wards, i'm not sure what the utility of that argument is. The hospital system has capacity for steady state burden of disease. If Heart disease and cancer patients were dying in hospital corridors, or at home unable to get to hospital, can you actually tell me with a straight face there wouldn't be widespread outrage?

>no country has "significantly lower"-ed anything. at most, we have slightly different diffusion curves, but mortality and morbidity rates are going to be pretty similar regardless of how we were "fighting it".

This is simply not true. Countries that avoided early surges, avoided overrunning hospitals and were able to get their populations vaccinated and dealing with lower virulence covid strains have had lower overall deaths over the 2 and a half years of the pandemic.

Australia for example, had largely flat excess deaths in 2020 & 2021 (actually a reduction in 2020, due to no covid, reduced travel, no flu season). Australia started dealing with the actual burden of COVID in late 2021 and 2022, and has seen 10,000 COVID deaths so far. Excess deaths in 2022 is 17.5% above average for the year to end of May. [0, 1].

If the US had of been able to pull together, instead of, as you have, variously dismissing it as 'nothing more than the flu', 'no more important than Cancer and Heart disease deaths', or moving the goal posts and declaring that, essentially, the area under the curve will be the same but the timing will be different (which is at conflict with earlier points) - ie if the US had of been able to pull an Australia (or one of many other countries that didn't just totally shit the bed and hide their heads in the sand) than COVID deaths, scaled for population, could have been in the 150-200k range.

Or, to put it another way, if Australia had of shit the bed as badly as the US did, then Aus would have had 60,000 deaths.

[0] https://www.abs.gov.au/articles/measuring-australias-excess-...
[1] https://www.abs.gov.au/statistics/health/causes-death/provis...
I disagree. There are things I want to learn and I really don't care for the fluff.

Ironically (or not?) self-help books are absolutely full of fluff but at their core can have very useful/helpful ideas. They just get expounded upon back up with 10 specific examples where each example starts at the beginning of the person's life in full detail.

Speed reading has helped me get through those books and learn something where I would have wasted so much time or actually never even picked the book up.
> A security risk is by nature hypothetical. If the risk comes to fruition, it's no longer a risk, it's an event or an incident or whatever.

Not true. CPU exploits come out all the time with proof of how to exploit / exfiltrate data. This claim of a 'risk' is unproven as it's based on a poor hypothesis of 'country has our data === bad'
I wanted to quit twitter because of this sort of ads federation network. It's worse than platform ads. Somehow tweeting every single day is a good thing to do to ecosystem. Imagine all of your circle members trying to sell something to you everyday.
So you want people to convince actuaries because you think the actuarial risk profile is incorrect before you’ll admit the perceived risk profile is incorrect? Seems circular and possibly a distraction.

Just use nuclear.
Show HN: I made a Cloudflare Worker that injects OpenGraph data into a React SPA
The worker requests the public API in the background, intercepts requests to React pages and injects OpenGraph tags into them.

Before you tell me to use Next.js, I know. But I think Cloudflare Workers are really cool!
Hahaha you have zero clue. C++ has the best tooling in the world. From static analysers to best in class debuggers to best in class performance profiling tools etc. No other language comes even close.
Well by definition if nosafetystandardsland decides to build a nuclear ship you won’t have a say in it anyway. It just won’t get to enter ports in safetystandardsland.

For nuclear shipping to become viable a reasonable set of trading countries would need to come together and set the standards that it’ll operate under.
Take the video down so the complainant does not get the cash, anyway...
Which is "profitable", but again - a waste of talent.
>As a former navy nuke: no. I don’t want commercial vessels registered in Nosafetystandardsland to have nuclear power. Fuck no.

These nuclear vessels will likely have to be registered in countries with nuclear power already deployed. Nobody will allow Panama or Costa Rica to have an atomic ship - I am with you on that.

>It’s also not even a little economical.

If somebody is ready to put money to try making it economical, I would be cheering for them. Just put transparent rules & regulations and wait. If somebody comes up with a safe & profitable atomic ship, we all win.
The "blog" post is just a video transcription. His script.
Carbon is not trying to be 100% interoperable with C++. It's trying for some fuzzy notion of "good enough" - that's really not very different from what Rust is trying to do with cxx-rs. Yes there are serious challenges and I've described them here, but they're not impossible to address while staying with Rust.
Fake Privacy / Security Initiatives
Sorry but what's being described is not related to DMCA or copyright. If I make coolvideos.com I can say "if you upload NASA footage I will show ads on it and give that money to a random third party company" and that's not copyright infringement; public domain is inherently 'anyone can show it for any reason, even commercially'. These "copyright" claims are just Content ID where YouTube allows media rights holders to control what content shows up on YouTube - YT says 'you can only enroll videos that you own into Content ID', however, the enforcement there relies on Google only approving appropriate rights holders/production studios for Content ID. If a rights holder either has their account hacked, or they batch enroll tons of videos they haven't verified that they own the copyright to, then it'll start enforcing Content ID on those videos - and while this is bad for YouTube and its creators, it's definitely not illegal whatsoever since it isn't invoking the DMCA or any other legal action regarding copyright.

Note that, for actual DMCA claims, YouTube WILL go to bat for their creators, especially if it's an obvious case of videos falling under fair use, eg https://youtu.be/aY1CYF3MKec?t=27

In general, Content ID was created in response to Viacom dragging YouTube through court for not preemptively stopping people from uploading episodes of Spongebob. Viacom was planning to take it further up the appeal process until a settlement was reached which lead to the creation of Content ID, eg "viacom will upload copyrighted material to YouTube and YouTube will automatically scan every video to check if it violates viacom's rights". After this happened, of course, other copyright holders like AT&T (WarnerMedia)/NBC/etc and small international rights-holders weren't going to let themselves miss out on this revenue stream, so YT expanded the system to allow any rights management firm or copyright holder to use the system if they were big enough or powerful enough in their region.
I think it’s actually a reference to Amazon being forced to invest, in case the acquisition falls through. Otherwise Ring could have been left high and dry had they abandoned fundraising to pursue an acquisition that failed.
so many broken links, I have not been able to join anything listed there
It should cost a small amount of money to lodge a copyright complaint, to deter drive-bys.
You can use -I to have the interpreter not include the directory in sys.path. (This also eschews site-packages and any environment variables.)

$ echo 'import os; os.execvp("cowsay", ["-", "pwned"])' > pip.py

$ python -Im pip --version

pip 22.0.2 ...
So by way of example - suppose I have this:

# some other code

if determined_value := some_function_call():
do_action(determined_value)

and then I change it to this:

# some other code

determined_value = some_function_call()
logger.info("Determined value was %s", determined_value)
validate(determined_value)

if determined_value:
do_action(determined_value)

and determined_value is a reasonably expensive operation (at the very least I would never want to redundantly do it twice) - then in this case my diff for this looks like:

--- <unnamed>
+++ <unnamed>
@@ -1,5 +1,8 @@
-
# some other code

-if determined_value := some_function_call():
+determined_value = some_function_call()
+logger.info("Determined value was %s", determined_value)
+validate(determined_value)
+
+if determined_value:
do_action(determined_value)

whereas if I wrote it without walrus originally:

--- <unnamed>
+++ <unnamed>
@@ -1,5 +1,8 @@
# some other code

determined_value = some_function_call()
+logger.info("Determined value was %s", determined_value)
+validate(determined_value)
+
if determined_value:
do_action(determined_value)

then the diff is easier to read, and the intent is clearer because diff can simply infer that what's happening is the semantic addition of two lines.

Code is read more then it's written, and changed more then originally created, and making the change case clearer makes sense.
> Copyright owners are the ones who decide whether other people can reuse their copyrighted content.

I thought that was Copyright law?
And throw them on trains for electric freight without having to run expensive catenaries.

Shipping containers full of batteries are the basic shape of current grid storage too, which is growing exponentially even if it's only in the 10s of GW per year right now (corresponding to 4x the GWh, usually, but grid resources are typically defined primarily by their power rather than energy.)

Being able to place a shipping container of battery next to a distribution center to avoid an upgrade to transmission and distribution will also enable tons of savings on electricity grid costs, as transmission and distribution must be sized to peak capacity, and which often results in extremely low average usage of the expensive resource. In most places in the US, transmission and distribution is a bigger cost that the generation of electricity.

Storage is going to change everything, and the naysayers who make up fake "physics" to pretend it can't work have already been proven very wrong.
Earlier versions of Windows and like programs used to be far more discoverable. Self documenting.

The menu system could be intuitively accessed by a mouse, without learning anything specific.

It was common for Alt + Underlined menu letter to Open that menu directly. Underlined letters IN the menu items would quick-select an item from that menu. Items that were expected to be commonly used, that had direct keyboard shortcuts, told the end user the shortcut.

The design was simple, categorized, and discoverable. Self documenting end user education.

Now we have ribbons... useless ribbons that make everything slower.
I worked at BigCo that everyone knows about for quite awhile and when I left a couple years ago they were heavily investing in MongoDB for greenfield projects. It ended up being my organization’s (somewhat large, several thousand employees) de jure database for new projects. Mongo is going to be around for awhile.

Personally I disliked it, primarily due to personal bias towards RDBMS (most data is inherently relational and I saw a lot of unnecessary hoops getting jumped through to join data) and also because the driver situation was absolutely terrible when I had to work with it. Custom drivers to serialize almost any JSON data was incredibly annoying.
Downside to chain is weight; a robust chain is about 2x the weight of the equivalently robust d-lock; if you are allowed to leave the chain at work, it's definitely worth it though.
Show HN: bashttp - a very (very) simple web server in Bash
Alternative front-end version:

https://yewtu.be/watch?v=1qCM9L_FaFU
Providers such as Psychz may soon be unable to censor customer content like this. See: https://www.reuters.com/legal/transactional/are-internet-com...
Just mute the microphone, that way you have a step in-between wanting to say something and people hearing it.

Still make the jokes if you want, if after hearing it you think it's worth repeating, unmute.
Hey Easrng, how did you reproduce? Which environment triggers the "error reporter"?
I'm not asking for tik tok data specifically. I'm saying given a subset of X videos with metadata, show me how you can exfiltrate something of interest to a nation state.

Military bases have controls in place that ban things like tik tok + filming on site and even phones manufactured in China aren't allowed on site (they need to be checked in or whatever when you arrive at the entrypoint).

Prove this claim and then we can talk about the risk of apps like TikTok. Right now it's a false as saying Wifi signals cause brain cancer coz electromagnetism === bad for humans.
Your parent comment was talking about distributions, while you are talking absolute figures. For example, if we define rich as >1 mil, then lets say before netflix, 100 movie producers made exactly 1 mil. Then after netflix, 5 movie producers made 1 bil while 150 made 1 mil. Still more people total, but the distribution is more uneven.
Absolutely not. You should be aware that youtube wasn't profitable for over a decade.

Content creators don't use youtube for its video hosting. There are dozens of video hosting sites, many objectively better. Content creators use youtube because that's where the eyeballs and advertisers are, which also means that's where the money is.

And, 100k won't be enough to pay for one developer, let alone a herd of reviewers/lawyers to handle all of the DMCA noticed that will flood in, regardless.

I don't see how this doesn't get solved without amendments to the DMCA, which is probably where the money should be put.
I specifically dont see this random-ass-idea as a system for voting on proposals. I see it as a way to narrow down & reduce bullshit shitstirring topics of no real use or relevance, trying to set some priorities for what is in range for working on. It still keeps representative democracy (instead of California style direct democracy) intact; up to the representatives to work on the issues.

Or perhaps even ignore the suggested cut list of relevant topics? At their peril.
This is getting finnicky, but generally I would consider a quality issue to be something to do with the build (ie substandard materials, poor riveting, trash in the dead spaces in the walls - as has been alleged on the 787) as opposed to what happened, (in my view) which was cost cutting - as you point out, they basically tried to do a software emulation of the previous 737.
The issue isn't flight worthiness - the 737 MAX can be a safe plane - but they cut costs by not wanting to do a recertification or retraining. I guess that is a quality and safety issue, but not what i'd normally consider quality?
I did, and deleted my channel, but the damage is done.
Also, it really sucks that "marketing tools" sold like crazy as well. Shovel for losers is a huge market.

If the internet is atmosphere, marketing tools are something that emit CO2/CO.
https://youtu.be/GYNKW_w95lA Does a good job of explaining why this isn’t practical. Although some supplementary wind power is possible.

tl;dw: sails are tall and get in the way of (un)loading cargo. Fuel costs are borne by the lessee of the boat but sail costs are capital expenditures borne by the lessor.
In 2012 it was so low barge traffic came to a halt.

https://nation.time.com/2012/08/23/the-big-dry-up-where-the-...
and
https://stateclimatologist.web.illinois.edu/2012/11/27/why-t...