skysight-inc/HackerNews huggingface dataset:
There are (non-trivial) ways of making back-up copies of your purchased digital material, just as there were for Blu-Ray and DVD purchases in the past; so the choice isn't solely between piracy and purchasing.
That is nature of things. The spice must flow.
The law could just be that piracy is not considered "piracy" if you otherwise have a license for the content you're pirating. So it would make it legal to use piracy for format-shifting or working around situations like this one.
very helpful thank you
This is part of why distribution platforms all have their own cut. You don't own a copy of the movie. You own a copy of a _specific_ movie that was carried by Sony's streaming service and not a library.

If the distributor isn't distributing, then there's no legal way to get it. And NFTs don't contain the item purchased. It changes exactly nothing about the situation.
In the UK we don't even test AFAIK. Presumably one day some academics will do it here and come up with horrifying results.
> Having the meaning of the first argument change because you passed an optional second argument is very odd.

Is it, though?

And yes, I would totally just make it so the function detects whether I am passing in an object or an array of objects and respond accordingly.

I feel like I got this pattern from jQuery or something. Seems very normal for a good library.
I agree that intuition and spirituality is completely discounted in western/scientific culture.

It is entirely possible to be a secular spiritualist. Make it a habit to feel one with nature and the world around you, without any supernaturals entering into the picture.

And funnily enough, for all people dunk on experts and say they can rely on themselves instead, it is pretty much the definition of an expert to be a person that has so much experience with something that they have developed good intuition for it. That’s also why everybody is useless as an expert just coming out of school, they may know all the theory but none of the practicalities.

Anyway I just wanted to say that none of this is incompatible with the premise that we’re basically meat based automata that accidentally developed consciousness. I don’t think we’re anywhere near developing general AI but in principle I don’t see why it couldn’t be done.
Depends a bit on assumptions, but it's not quite what I expected, actually:

import math
import random

B = 1000
elevators = [-6, 0, 3]

def time_to_enter_distribution(position):
for _ in range(0, B):
elevator = random.choice(elevators)
distance = elevator - position
# What matters is not how many people are in the elevator, but how
# quickly they can evacuate. Approximate Poisson distribution.
evac_time = [0, 1, 2, 3, 3, 4, 5][random.randint(0, 6)]

# While you walk to the elevator, you give time for people to evacuate
# and your time passes.
evac_time -= abs(distance)
time = abs(distance)

# If people are still evacuating when you have arrived, you have to wait
# for that to end by the side of the elevator, and then take the final
# 0.5 metres to step inside.
if evac_time > 0:
time += evac_time + 0.5

yield time

def time_to_enter_summary(position):
distr = list(time_to_enter_distribution(position))
sum_time = sum(distr)
sum_sq_time = sum(t**2 for t in distr)
mean = sum_time/B
sd = (sum_sq_time - sum_time**2/B)/(B-1)
se = sd/math.sqrt(B)
return (mean, se)

if __name__ == '__main__':
print(f'{"pos":5s} {"t":4s} {"se":3s}')
for p in (i/4 for i in range(-6*4, 3*4)):
(t, se) = time_to_enter_summary(p)
print(f'{p:5.2f}: {t:4.2f} ({se:3.2f})')
I still don't really see the point of the observation. It's weird to say "You should pick the mean, because when you weigh all the nails together the differences will cancel out". That's true because the mean is defined as the value that achieves that result. It's like answering the Monty Hall problem by saying "you should pick the door with a car behind it, because that door has a car behind it".

You're asking what the mean weight of a bundle of nails is and then pointing out that the mean weight is a better estimate of the mean weight than the median weight is. Why is that worth noting?
My last experiment was with bulma css and vanilla javascript (typescript) with web components for components that needed custom/complex interactions. Nice thing with this approach is that you can "just" render the web components with the backend's template engine as if those were your normal html tags. Because of typescript, a build step was required. For this I used esbuild (esbuild itself didn't do the type checking so I ran tsc with --noEmit and --watch next to it).

Didn't get that far with that project to see how it works when the code base scales. I would probably pick the same setup for my next greenfield project.
Like stuff day tourists do.

Those gondolieres? Standard Venetians usually don't use them. Entry to palazzos? Ferries? Street coffees? Raise the damn prices! (Offer a highly discounted year pass to not affect locals).
Great. How much energy do you spend clearing paths?
I was under the impression that it was impossible to kill yourself in such a manner. I thought that you’d pass out and immediately start breathing again.
Maybe (2) can be resolved by using different mapping in different documents, making them not scrape-able by bots?
Kickstarter is filled with "fake" projects that are only selling an idea which is often impossible to implement. It's not only about being able to create that product but also matching the promised delivery times, R&D costs, manufacturing costs, etc.
Czech republic has such a law! You are allowed to create a personal copy of copyrighted media you purchased. IDK if pirating is "making a copy", but it doesn't really matter in Czech republic since piracy is not prosecuted anyways.
Best fan placement to move air through the house
If you can’t hire I question if it is high for your area. I am sympathetic to your position but the market seems to have spoken.
I didn't think it would work for me, but I have turned into a daily user of http://lofi.limo/ . The number of tracks isn't too high, but I love the somewhat goofy interludes and the ephemeral chat interactions.
It's mostly a long discussion about adding a static type system to Elixir, something that a lot of developers seams to be waiting for!
>grenades you see in movies

Yes, it does look like a movie prop, aka not real.

>What world do you live in which if you did not already know that exact piece of hardware, not reporting it would be the correct course of action?

Report all you like, but 1 take a picture, 2 upload to image search engine. Here you go, I cropped the table so we dont get exact match to the Utah story:

https://i.imgur.com/9l9gGBp.png

https://yandex.com/images/search?rpt=imageview&url=https%3A%...

first result exact match!

https://www.bing.com/images/search?view=detailv2&iss=sbi&for...

5th result exact match!

Do you now understand how stupid the cop who did this was? No? Does this

https://www.salon.com/2007/09/21/star_simpson/

look like a bomb? a real bomb, not the movie prop kind?
The very first "refactor" is broken, the last line should be `make_pizza(["ham", "pineapple"])`. Which is actually very easy to notice if you actively watch out for repetitions.

Ironically the author just demonstrated why DRY is a great principle.
But that is usually a problem with abstraction, rather than a problem with a method call. If I can trust what make_pizza does, that is much faster to read than any four lines of code.

A functional style certainly helps. I get the pizza in my hand and don’t have to worry that anyone left the oven on.
Yeah, this reads like a junior programmer that got told off for having very repetitive code and they're trying to get the internet to agree that they're in the right and DRY isn't all it's cracked up to be. From the about page it doesn't seem like this is accurate, but that's how it reads.

The problem is that he made his case poorly and I definitely don't agree.
You don't even need to resize the whole browser window - you can use the responsive design mode of your browser's development tools to resize just the viewport of the website you are working on. And it can even emulate touch interfaces to test the relevant media queries.

And resizing the window is also something native application developers should embrace. Always roll my eyes when some game developer says they can only target 16:9 because they don't have other monitors - just make your window mode resizable and drag the corner.
“I do not have to be nice to you” – civic debate
Apart from this being a proud moment for "freedom" on some scale, there is probably more to unpack here ...
Not drag and drop style block building, but:

1. https://htmx.org

2. https://simplecss.org
I wish there were more initiatives like this!
> That doesn’t absolve the con artist for running one though

Who are you going to prosecute in this case? The developers of Ethereum who are making a digital peer2peer smart contract system and have no interest in running a ponzi scheme?

Are you going to arrest Bram Cohen for inventing Bittorrent for what happens on it? What about the people behind Tor?
Just use some simple CSS framework that you like/are used to plus maybe jquery if you need more than vanilla javascript.

This will get you a looong way and you don't even need npm for it.. just copy the minimized files into your source folder.
Consumers rarely don't get what they paid for. In these situations it's just often that the merchants bury the fact that they can revoke access to your purchases at any point, and if you don't like it, you can go pound sand. Hence the need to write laws that don't fuck over consumers.
You make some fair points on homework's fringe benefits, but let's be candid here: None of that is why schools are issuing homework in the vast majority of cases. There are other paths to teaching autonomy and delayed gratification, which don't use the most tedious and ineffective way to do so.

There's nothing sensible about throwing millions of hours into homework without any evidence that it's actually in any way a constructive use of time. There's more evidence for positive benefits of video games.

I don't just doubt that homework is a sub-optimal use of time, I doubt that it's useful at all in at least 90+% of current real life use cases. That ought to horrify teachers, and it doesn't, and that freaks me out a little tbh.

Spaced repetition is great, and I'm glad you mention it. Multi modal learning has great evidence behind it too. There are many, many more activities, strategies and methods that produce strong and consistent results - yet are only used by rare individual teachers (the ones who "do their homework"). Conversely, homework [by which I mean the pointless busy work we all know and detest], has virtually no evidence of benefit; practically none.

... So why would anyone put *any* stock in a system that ignores SO MANY proven learning strategies, in favor of something which most children find utterly detestable, and doesn't even work that well?

Like, on balance, I would bet any money that homework is net negative. It kills childhood, it kills love of learning, and for no provable tangible benefit other than molding adults who accept what's becoming known as "bullshit jobs".
So like, sand?
Suppose there are a bunch of points on a number line (elevators in the example) and you are standing somewhere between them. You decide to minimize the sum of squared differences by the greedy algorithm - make a small move either left or right, whichever makes it smaller, then re-evaluate and repeat.

First just consider one point, A. The squared distance from that point is a parabola with its apex at A, or as a formula (x - A)^2. The derivative of that is 2x - 2A. So if 2x - 2A > 0, moving to the right makes the squared distance go up, moving to the left makes it go down. If it's < 0 then the opposite is true. If it equals 0 then you have minimized the squared distance to A. All this is trivial, in the case of a single point, because x = A is obviously the solution (the mean of a single value is that value).

But you want to minimize the sum of the squared differences. So you are checking sum(2x - 2Ai) where Ai are all the different points. This means comparing 2nx with sum(2Ai), if n is the number of points. Or equivalently, you can divide by 2n and compare x with sum(Ai)/n. This formula is just the mean of the points. If this is greater than x, you should move a bit to the right. If it is smaller, you should move to the left. If equal, you have minimized the sum of squared differences.

We didn't prove uniqueness but we've established that the derivative of the sum of squared distances has only linear terms in it, so a little more calculus will easily allow us to check that.

tl;dr: To minimize a function requires an equation in that function's derivative. To minimize sum of squared errors we solve an equation with only linear terms.
> I dive around foreign code bases a lot and dry-ness is actually a significant complicating factor in understanding code, because you're jumping around a lot (as in physically to different files or just a few screens away in the same file).

I can't agree more. Also, "code reuse" makes debugging significantly harder when trying to reverse engineer some code base. The breakpoints or printf:s get triggered by other code paths etc. And you need to traverse stack frames to get a clue what is going on.

Extra bonus points for fancy reflection so that you have no clue what is going on.
Seems like they should have agreed on better licensing agreements.

I see the point for subscription based services, but in this case they should have an agreement to continue streaming for those who have purchased it. The content provider has been paid for it too, right?

I am not a lawyer, but I don't think licensing agreements like this is not enough in a consumer court. When you purchase something, the consumer expects to be able to access it for as long as the distributor exists.

The services use the term "Purchase" or "Buy". If that is not actually the case, they should call it something else. Otherwise it is misleading the consumers, no matter where they hide the small print in the license agreement.

At a minimum I would expect a refund, as they are no longer providing the service that was paid for.
It's possible I'm one of the few who thinks the best thing about Vim is the keybindings and other nifty features like macros, while everything else is archaic and frustrating, hence why I always looks for a good vim mode in a more modern IDE. Though often the vim mode is lacking (i.e. Xcode doesn't even support the dot operator to repeat a motion, which is astounding), and so we get back to square one with using vim again.
Based as hell
I was supporting Oni2 for the same reasons, a work-out-of-the-box fast modal editor but a Gui would have probably meant leaving behind a terminal based workflow.

I have also been seduced into Kakoune's way of doing things although not enough to make the jump from vim, which I hate but can't live without.

Helix really hits that sweet spot of a fast work-out-of-the-box kakoune-style terminal editor. Time to make the jump.
I was trying to come up with a scenario where you have to choose between the mean and the median, and the correct choice is the mean due to signedness (in contrast with the elevator example, where the correct choice is the median because the distance is unsigned). Do you have a better example?

It should be obvious that the mean is the correct representative value for weighing nails. My point is that there are cases that call for the mean and cases that call for the median, and the distinction can be explained by considering the signedness (without having to consider squared distances).

Maybe the following variation on the nail example would help: Suppose the manufacturer of the nails must publish a reference value for the weight of a nail, and will be fined for every nail that is not exactly the correct weight. The fine is proportional to the absolute error. Question: Should the manufacturer publish the mean or the median in order to minimise fines? Answer: The median.

Why is the mean the correct representative value for counting nails, but not for minimising fines? I'm arguing that it's because when the nails are weighed together the errors are signed, but when the fines are calculated the errors are unsigned (in the same way that the distances to the elevators are unsigned).
there isn't a one-size-fit-all DRY. If there's much gain by DRY, then refactor it with a factory or something. Otherwise, keep it intuitive and stupid.
The article should contribute something other than being a glorified bulleted list. Why bother writing anything if in the end there is no substance?
Human Papilloma Virus (HPV) Vaccines
Jeff Bezos’s Next Monopoly: The Press
If you burn the gas in a power plant you turn something like 40% into electricity. You can deliver something like half of the remaining Joules as heat to homes, raising the overall efficiency to 60% or so. You can then use the 40% you have as electricity to run heat pumps, which put out something like 2-5 Joules of heat per Joule of electricity. In total this gives you a lot more Joules of heat per unit of gas than just burning the gas in the homes directly.
About time. Nuclear is hardly an environmental risk even compared to the "cleaner" fossil fuels like gas.

Hopefully this will allow the EU to return to competitive reactors designs instead of leaving China to pull humanities weight on that front.

Though tbh I wouldn't be sad if we bought Chinese reactors until we are back up to speed, having Chinese nuclear > no nuclear. Everyone bitching about China stealing IP finally have something to steal back.
Just, no. Pulseaudio legitimately screwed up Audio on Linux for years and is a major source of headaches, even still today, for anyone trying to do audio properly on Linux.

Thank FNORD for Pipewire, meanwhile.
Good old money?

The problem isn't that people don't want to pay, it's that a lot of content out there isn't valuable enough to pay for and only survives currently because ads are a form of non-refundable payment that just takes a click.

If ads were no longer sustainable, the market will find a way around that. Some trash will go out of business but it won't be missed anyway.
if those 8 lines of regex have been unit tested and the function is commented to describe "what" the code does, it is entirely the point that you don't need to understand how it works

additionally, the function should be stateless and have no side effects ;)
In my opinion (MSc math, PhD in applied statistics, currently postdoc at epidemiology department), the fundamentals are books like The Elements of Statistical Learning: https://hastie.su.domains/Papers/ESLII.pdf

I feel like the term data science is completely useless. Machine learning is an approach to "do AI" through statistics. Specifically, it is a branch of statistics where the sole focus is on prediction, compared to e.g. inference.
Isn't this always going to be less efficient than profile guided optimization?

Of course that assumes you can profile your program with realistic "production" workloads, and it'll need two compilation passes, so having sensible ML defaults boxes sense.

But it's odd not to compare this to PGO in terms of the resulting performance.
New devs start with doing DRY everywhere. Over time they learn to be more thoughtful. Sometimes duplication is good. In my experience the priority should always be dev readability. If duplication helps you read the code better (as its not hidden away), thats fine.
There are LITERALLY abortion bounty hunters in Texas, who earn money by hounding women seeking abortions and turning them in for profit. I cannot believe the state of this country.
> but the diffs are simple, bugs are simple (often you simply forgot to copy piece of code into 7 different places which is easy to solve)

I am sorry but that sounds like an absolute nightmare. 7 different places means 7 different times that bugs might crop up because you forgot, specially if it isn't documented that you need to copy the code in other places. It also seems a nightmare to maintain documentation about that, as comments might get lost or not updated in all the copy paste. Of course, unit tests are out of the question, are you writing 7 slightly different unit tests and keeping them updated? And I'm supposing it's simple bugs, not pervasive, hard-to-reproduce, indirect bugs that take days just to find the root cause.

> In comparison, you'll stare at DRY class for 2 hours and realize you need to refactor absolutely everything, it will break half of the codebase and diffs are insanely complicated.

Sounds like a problem of overcomplicated, bad coding and bad documentation. It's not a problem with DRY.
It isn’t an argument. It’s a statement of fact.
I agree. I think Bandcamp is a shining example of how digital sales could be handled. They provide DRM free open format files that you can re-download whenever you want to. No-one is going to take away the files you've already downloaded and saved on some disk. Bandcamp might go out of business and in such a case you'd lose access to any content you have not saved. But that is a fair trade-off.

But the movie industry believes DRM free formats would undercut their region based business model and allow rampant piracy. Like people haven't been cracking DRM-locked content for ages already. And they might be right about increased copyright infringement, but dismantling the whole notion of ownership is not the solution.
At long last I can finally get the Office suite as a .service!
“Just when I needed you most.”
This is one of many many things about the American education system that is completely done without any scientific proof of efficacy. Often when there is data, the data proves it doesn't work, but we "have always done it this way". Our education system is shockingly out of step with modern life, yet we do it this way simply through inertia. Consider our system pretty much hasn't changed since the industrial revolution, and was designed to produce factory drones.

See New York state teacher of the year John Gatto for more: https://www.cantrip.org/gatto.html

"Look again at the six lessons of school. This is training for permanent underclasses, people who are to be deprived forever of finding the center of their own special genius. And it is training shaken loose from its original logic: to regulate the poor. Since the 1920s the growth of the well-articulated school bureaucracy, and the less visible growth of a horde of industries that profit from schooling exactly as it is, have enlarged schooling's original grasp to seize the sons and daughters of the middle class. "
> fixing it every time a random extension updates

You could pin your extensions in packers. Not sure about other plugins managers though.
There's a lot of this concept, that if it doesn't work in the US, everybody else must have failed even worse. Well, not really, many times it's actually the other way around. I won't bother with other more obvious examples but in this context, even Pakistan has a digital health system in the meantime.
Remote Working in Software Development
Big news from Marc Andreessen, but what challenges are your developers facing whilst working remotely?
Your observation strongly differs from mine then. Poettering has always been fairly reachable and is easy to communicate with. That might have changed following the torrent of abuse a minority of the Linux community threw at him. I hope it’s not the case.
Not sure that's what you're looking for, but my product www.jigdev.com definitely allows you to make simple UIs to interact with backend services
I believe an air-choke can deplete the oxygen in your blood so much that you don't always resume breathing.