skysight-inc/HackerNews huggingface dataset:
The correct Fisher-Yates shuffle is this (from Wikipedia):

-- To shuffle an array a of n elements (indices 0..n-1):
for i from 0 to n−2 do
j ← random integer such that i ≤ j < n
exchange a[i] and a[j]
I've seen pretty much the opposite close to a decade ago with a number of AMD Opteron/15h-based servers we had, where the BMC could end up in a bad state that made the ipmi-driver-spawned kernel thread handling it burn a whole core for no good reason.
Honestly, I have no idea why you're arguing popular misconceptions about central banks under a paper written by a central bank explaining how central banking works...

Banks have absolutely no incentive to provide money to everyone that wants to borrow all their future life earnings now, not because of hard limits on their funds but because they want their lending to be repaid at a profit (when it won't be, you get 2008). So the quantity of money at a given interest rate is ultimately set by the demand of creditworthy borrowers at that interest rate, which is certainly not unlimited.

Central banks were created to stop banks with solvent loan portfolios collapsing due to demands on their reserves, by ensuring banks could always borrow the reserves to back up the numbers on their spreadsheet. The "reserve requirement" (technically replaced by a capital requirement) isn't something central banks tinker with, and it's not "kinda optional" for them to provide enough reserves for the system's day to day needs. Instead, they influence credit action by adjusting the price of borrowing those reserves, and thus the demand for credit in the wider economy.
To me it seems fairly unethical for a [tech] company to raise prices without warning customers, especially given the large number of people impacted.

I wonder how the company will respond to the backlash.
To be fair though, at least in the USA an engineering degree requires significantly more coursework than a humanities degree. At my institution it basically added up to an extra year of courses, and was approximately equal to the added "general education" (non-engineering) requirements. And the general-ed requirements for engineers were less demanding than for the arts. So it's not like we were getting short-changed in a way that they were not.

But that said, I agree with your main point. Humanities majors should be required to do a more in-depth survey of math, science, and engineering comparable (at the very least) to the introduction engineers are required to have of their fields. If that means they need to have a 5-year degree as well, so be it.
The recent popularity of Obsidian and similar knowledge management software is part of the same trend. They're databases in their own way, localized but better organized like a graph you can run queries against than a bunch of text files.
https://archive.is/yDVZ4
Porth, It's Like Forth but in Python
He moved the development from Github to Gitlab
> It’s a shame because Class-D has come a long way, there seems to be a natural opposition to anything digital.

The funny thing being that Class D has nothing to do with digital.
A Class D amplifier is say to a class A one what a switching power supply is to a linear one, although the amplifier works on current rather than voltage, but the principle is essentially the same: they're 100% analog, and sound wonderful.
Noone has drained my crypto from my wallets yet.

So either my personal machine is not compromised, or they think the amount of crypto in the wallets is too low.

Jokes on them though, cause I am moving my crypto to a hardware wallet eventually
The Everything Algorithm: What Do LLMs Mean for UX, Product, and Engineering?
Supply Chain Attack Using PyPI Packages “Colorslib”, “Httpslib”, and “Libhttps”
I'm reasonably sure that my personal machine is less compromised than the average, but I can't and will never be able to ensure that it is not compromised because I have no way to know everything the machine trying to do. This remains true even when you have an entirely free and directly inspectable hardware; you simply have no knowledge and time to verify everything. Just keep a reasonable amount of precaution and skepticism.
There are two
Profound statement. Relatedly: "I still have 6 hours before the deadline. I'll spend the first two watching YouTube, and then I'll be ready."
It's not a much more devastating failure mode than hydro dams, nuclear power plants, even wind power plants.

Besides, a flywheel is perhaps best operated underground where the bedrock can absorb the energy if it should fly apart.
Show HN: Pain of Requesting Screen Recordings/Screenshots from Users
Do they live downtown next to the north Park Blocks? Because the area in question was four blocks centered on the Federal building and the county courthouse. Portland is a large city, and if you didn't pass by those blocks in question, you wouldn't have seen anything out of the ordinary. It was pretty surreal going there for the first time, because it was actually hard to find the protest without knowing where the Mark O. Hatfield building is located.

I'm not minimizing the fear your relatives experienced. I do believe that the protest activity was selectively portrayed by the media deliberately to induce that fear, and to minimize the efforts of multiple community organizations working tirelessly to keep the protest civil, peaceful, and focused on communicating our desire for systemic reform. It's tragic and disgusting that the main legacy of that effort is the BLM/Antifa Boogeyman.
I can see some irony though
Reminds me of the time I was watching a creepypasta horror movie about some guy who gets strange phone calls and my phone rang.

I think this guy had gotten my phone number from my HN profile and he thought I might be able to help him. He thought his android phone was infected by malware and he knew who did it. I told him the people who repair cell phones at the mall could do a system reset on his phone…. Unless he was dealing with state-level actors in which case it might be an advanced persistent threat and it might be permanent.
I don't think you can apply this proof to the described algorithm.

This proves that

for i in range(min_key,max_key):
swap(arr, i, choice(i, max_key))

works as a shuffle, by growing a random sub-array.*

The first algorithm was

for i in range(min_key,max_key):
swap(arr, i, choice(min_key, max_key))

which has different biases.

* I am not actually sure that this actually works.
Do it a lot of times and see if the outcome is statistically different from expected.
The amount of land in your starting hand often determines the game's outcome in Magic. This is not seen as "fun" by many players. Why play a supposedly skill-based game if RNG is so strong?

So it's quite possible that the online Magic game manipulates the deck. Keeps players engaged more so they make more money. Pretty standard these days; Candy Crush famously does this too. Looks random, but very much isn't.
*compromisable
>For what it's worth, I don't actually think IQ is a canonical measure of intelligence, and the narrative people have of "being stupid" is often driven by society valuing certain kinds of intelligence more than others.

Not only IQ is correlated with every positive prosocial behavior we, in general, value but every seemingly disparate form of intelligence is correlated to the others so we can, in fact, talk about a single form of intelligence that manifest in different form (generally named "g factor"). This is just the inherent unfairness of life. I wish it wasn't true and only your hard-work would matter, but it doesn't.
You took your kids to see sexy men dancing???
Who is harmed by producing a book for kids?

Not everything needs to be educational, maybe a story about a bunny going to the corner store to buy a loaf of bread is good enough to keep the kids off the Facebook for a couple minutes.
Info why it doesn't work: the smallest array for which it fails has 3 elements. When you start with a sorted array, iterate through each element and move it to one of the 3 positions with equal probability, there are 3³ = 27 possible move sequences, each with probability 1/27, but only 3! = 6 possible outcomes (permutations of the array). Because 6 doesn't divide 27, there must be some outcomes that are generated by more move sequences than others and hence occur more often.
That has nothing to do with this post however.
Sample size of 1, but my blog still isn't showing up in Google after launching almost a month ago. Bing and DuckDuckGo do have it.
The comment claims Safari, an app, has exclusive access to system features, my comment shows how other apps have access to the same features. The web has nothing to do with it.
The people behind the recent revisionism movements don't, at least.
> Perhaps your drug days would be remembered less fondly if a friend died of an OD?

Perhaps having a friend who died of an OD isn't actually that common amongst MDMA users on the dance scene?

Why does it rub you up the wrong way that this person has positive recollections?

Drug deaths from MDMA are not very common, certainly compared to drug deaths from (for example) alcohol. As such, someone who did ecstasy at dance clubs in their youth may be less likely to have lost a mate than those who drink. Maybe that’s why she doesn’t talk about that?

> it can't possibly happen to me

But there's the rub - 'it' didn't.

Are we all supposed to be sorry for having had a good time and come away happier for it?
That video makes me realize that we're still in the earliest days of drone warfare.

Imagine the ability to soar on thermals for hours, it would greatly change reconnaissance and loitering strike drones. A flock of strike eagle drones all turning towards your convoy's position would be a terrifying thing to see. I don't know how you'd be able to attack such a flock effectively if they scatter when sensing and incoming missile or shell. Perhaps an air battle of the future will look like 2 flocks of birds crashing into each other?

I wonder if a hummingbird drone would be more energy efficient than a quadcopter?
Apart from the intra-company dynamics, there is also the fact that Google do not face the same kind of consumer driven market pressure as, say, Walmart.

I do recommend the excellent "Allocation under Dictatorship: Research in Stalin’s Archives"[1] where the greatest incentive individuals face in an organization have involve doing relatively better compared to other individuals in the organization without significant outside indicators of the right direction.

In that sense, Google is like a government behemoth. Most involved in its direction and functioning have incentives that are decoupled from whether the people who are touched by their "products" and "services" are happy with them.

[1]: https://wrap.warwick.ac.uk/164/1/WRAP_Harrison_jel05.pdf
Mastodon is a fit for any publishing platform since you’re going to want to blog and toot about it.

For Medium, which wants to put blogging on easy mode, it is a slam dunk.
This is why staggered reboots of stuff, weekly or monthly, avoids this class of problem. It's simple and some might say it dumbs down the role of infrastructure management, but it sure as hell beats the feeling in the middle of the workday/workweek ... "It's lost grip. NFI what to do. Can't see anything. Reboot it FFS."
DevURLs, A neat developer news aggregator
> The silly thing is he probably had really good immunity from his actual case of COVID in '20. I don't think anyone claims that vaccine immunity > natural immunity anymore.

2021 was a weird period in history where one could make extraordinary claims without providing extraordinary evidence while those pointing this out were being ostracized.
Here's a short, fairly practical guide that you might find helpful: https://www.ncsc.gov.uk/files/Cyber-Essentials-Requirements-.... It is aimed mostly at small businesses, but I find a lot of the guidance to be pretty relevant to my personal IT.

My even shorter (and incomplete) summary of the document would be: configure your router and firewall; remove default passwords and crapware from your devices; use a lock screen; don't run as root; use a password manager and decent passwords; enable 2FA everywhere you can; enable anti-malware if your OS has it built it; don't run software from untrusted sources; patch regularly.

There are also other controls that you can choose to impose on yourself. For example, I require full-disk encryption, and I will only use mobile devices which get regular updates. Would be interested in hearing other things that HN'ers do to limit risk.
> Yes, they used that specific panic as an excuse for starting the Fed.

Except the Federal Reserve wasn't even the first central bank of the US:

* https://en.wikipedia.org/wiki/First_Bank_of_the_United_State...

* https://en.wikipedia.org/wiki/Second_Bank_of_the_United_Stat...

The Fed is primarily a clearing house and lender of last resort, which is needed because having individuals like JP Morgan rescue the financial system when it goes haywire stopped being possible long ago.

* https://en.wikipedia.org/wiki/Panic_of_1907#J._P._Morgan

> In any case, empirically the US had more and worse recessions and crises after the Fed was created than before.

Count how many times the word "panic" occurs before the Fed was formed (1913) versus after:

* https://en.wikipedia.org/wiki/List_of_recessions_in_the_Unit...

* https://en.wikipedia.org/wiki/List_of_economic_crises#18th_c...

I cannot fathom how someone can think the US has had it worse economically post-WW1 (and especially post-WW2) than pre-WW1.
Quite an interesting honeypot really.
Maybe the fact that they were used by seemingly very different society for thousand of years and society who did enforce them were more stable and successful? The hubris of modern people to think they are so enlightened they can engineer society to fit they ideological views as if humans were mere economical units.
HBO Max’s Great Looney Tunes Purge
Which would be Public Money? Public Code!

Though I would never come to the idea to support the scandalous FSFE led by Matthias Kirschner over this.
The nix part seems quite useful. It basically allows one to run a script in any language, with it being self contained and without polluting the global path with all kinds or runtimes. With the only user installed dependency being nix.

Although I'm wondering about how fast it starts on the 2nd run after the dependencies have been download and how it deals with language specify dependencies, e.g. npm/pip packages. Read somewhere thst it can be a pain deal with those in nix.
Thanks for the response. I don't mean to diminish what you've made, it looks really, really cool.

Thank you for being so detailed in what you have built. It's terrific you are so open.

I'm not in a position where I can understand whether adding GPS is feasible. I'm saddened that the BangleJS can't reliably pull GPS signals so I'm assuming it is not just adding the hardware.

I just really want a watch with several days battery life and a GPS so I can go for a run without my phone. The BangleJS has amazing battery life, but the GPS is not optimal. It's a software problem as far as I can tell, so maybe easier to resolve.

Thanks again for posting and for responding to my comments.
I think there is context you are lacking. This is an opinion piece within a British magazine. The UK prime minister, a member of the Conservative Party, has just proposed that the standard curriculum for high/secondary school extend the requirement to take math through age 18 / grade 12. Apparently right now it is only required that math be studied through age 16 / grade 10.

Because this is a suggestion coming from the Tories, there has been in the last month or so a whole slew of opinion pieces ridiculing the suggestion that non-STEM students should be required to take maths past age 16. It's been called an elitist, out-of-touch policy change, requiring students to learn useless math they will never use, etc. etc.

By and large these were all very politically-driven opinions. I can't help but think that the same people making these arguments might have been arguing the exact opposite--in favor of more maths education--if it had been their turn in power, or if the Conservative position was different.

So yes, this opinion piece is rather tribal. But I think it is because he is responding to an intensely political issue and trying to talk some sense into people who are already forming opinions on a purely tribal basis.
Windows is slow due to all the filter drivers used by antivirus, custom FS drivers and other stuff. And the lack of a dentry cache. Basically all the reasons why WSL1 is slow.
On linux you'll get slowdowns too if you have some online antivirus hooking into fanotify. I suspect android is also slower due to additional security hooks (e.g. selinux).

And yeah, io_uring helps since open-write-close can now be condensed into a single syscall.
I don’t have ultimate trust in any software or hardware, but I get to “good enough” by deciding which providers I trust:

* Software: Canonical, Google, Microsoft, Valve, Oracle, Dropbox. I install software from their official repos and keep it up to date. Anything 3rd-party/unofficial/experimental/GitHub goes in a VM.

* Hardware: I built my main PC from mainstream commodity components. I have no way of knowing if there are secret backdoors but I consider it unlikely.

I use a password manager, I enable 2FA, I turn off things I don't use, and generally have a low-risk hygienic approach to computing.

I’m also privileged enough to not be a “person of interest” so don’t feel the need to take any extraordinary precautions.

Yes, I’m aware of VM escapes. Yes, I’ve read Reflections on Trusting Trust. I choose to trust regardless because life’s too short for paranoia. As Frank Drebin said:

“You take a chance getting up in the morning, crossing the street, or sticking your face in a fan.”
Show HN: I wrote the most comprehensive book on Rails and Hotwire
This book is what I believe to be the most comprehensive resource on Rails and Hotwire in existence. It covers advanced Rails concepts in details and also teaches Turbo Native alongside web concepts.

I like to think of it as a spiritual sequel to Michael Hartl's Rails Tutorial.
> I expected to read something novel around increasing public investment in education, investing in infrastructure etc.

If that's what you expected, would it really have been novel?
> The UN’s Independent International Fact-Finding Mission on Myanmar ultimately concluded that the “role of social media [was] significant” in the atrocities in a country where “Facebook is the Internet”.

The article missed the opportunity to link this information with facebook’s free basics program.

https://techcrunch.com/2018/05/01/facebook-free-basics-endin...
Old Hitachi framing nail guns.

They run forever and can easily be rebuilt. My favorite one is a year younger than me with a born on date of 1987. They are indestructible.
Geometry. Rigidity. It's POTENTIALLY legit. Here is a pretty science based primer on some of the things going on in the cable world.

https://www.gcaudio.com/tips-tricks/why-power-cords-are-impo...

One thing to understand about this niche high end cable market is that intellectual property just isn't a thing. There isn't enough money to fight lawsuits and wage war against copycats. Everyone loses throwing money away.

The end result is that only large companies like AudioQuest can afford to "give away" the science behind their products by patenting them. Other companies have to talk around and obscure what ACTUALLY makes their cable sound good. This is a pretty raw deal for consumers who are left exposed and vulnerable to bad designers, fraudsters, and tricking themselves into thinking something sounds better when it's not. And that's not even getting into value judgements about what a cable is worth based on how much closer to perfection it gets the user!

The system does seem to be working as intended by small niche cable makers who spend lifetimes accumulating arcane knowledge and handbuilding quality cables while keeping the bar for entry to the market high.

Another neat tidbit about cables is that the product lines and price points are not linear. They just can't be in reality from a design perspective. The people that say a cable is a cable are half correct. It's impossible to have a cable lineup of 7 levels and improve on the induction, capacitance and resistance all at the same time in each level. So there are tradeoffs, and occasionally a cheaper cable from the same company will sound better than a more expensive cable because one or two of the parameters were improved while another got worse. Depending on the interactions between the connected equipment and their deviation from perfect, if the parameter that took a step backwards in a more premium cable happens to be the weak point of the equipment as well, then an objectively better and more expensive cable can sound the same or worse.
This article isn't about sets.
Seems like you could write a Python script that branches two ways, either makes a venv or runs.
The Fourier Transform, explained in one sentence (2014)
I've used those but the instructions aren't clear to me and I'm not always sure that it is synchronized. Hopefully it is just a software issue but it is evident that getting GPS data is not just a matter of connecting to a satellite, there is some preparation the device has to do before it is in a position to get the connection, and that can easily fail.
> Or that, even if the bank has a hard limit to how much they can loan out to the amount they hold in reserves in the central bank

Reserves haven't been a limit for a while:

* https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1905625

* https://rationalreminder.ca/podcast/132

Some countries haven't had reserve limits for decades:

* https://en.wikipedia.org/wiki/Reserve_requirement#Canada
I understand the sentiment, but tech has improved a lot. Check out the NAD M22. I own one. It's not to be laughed at under any circumstances or in any comparison to other amplifiers.
Show HN: Create your own video clips with Stable Diffusion
A few months ago, I started making video clips with stable diffusion and noticed that the tools to do this were too complicated for everyday people. That's why I built neural frames. Enjoy.
Yes, around 2012. A few years later, its CEO apologized and restored it.

https://finance.yahoo.com/news/twitter-ceo-jack-dorsey-apolo...
It's a elastic system, there's no fixed proportions like that and that is by design.

What you call core money are Federal Reserve Notes(FRN), the other component that you call account balance is called Federal Reserve Credit(FRC), together they make up what's called Monetary Base or base money. Think of monetary base as level one fundamental money. FRN is not better or more "real" than FRC in in any way or vice versa, they're both exactly the same and controlled by the Fed. How much cash is in circulation changes depending on what the public wants, if they demand more cash then Fed decreases credit balance of banks and sends hard cash to their branches to satisfy the demand. If the opposite happens where the banks are holding too much cash, they deposit it back to Fed and fed increases their balance and reduces cash in circulation.

In reality though, FRN is miniscule compared to FRC because the vast majority of transactions are settled digitally.

Hard to believe now, but in 1913 one of the primary reasons for the Fed's creation was to provide an "elastic currency", which is provide notes to member banks when their customers demand 'hard cash'. The primary concern back then was if a bank failed to furnish cash when it's depositors asked for it, there was a real risk of a bank run driven by panic, even if the bank was in good shape.
Ah yes, that was it. I do recall we got error messages preventing the machine from working, and the guys spent some time researching before a solution was found. The error messages went away after changing the SID.
Ah, I see what you mean. I assumed the first algorithm was what they meant; I have no comment on the second algorithm.