skysight-inc/HackerNews huggingface dataset:
I'd expect it's fixed since PHP 7.1.0:

https://www.php.net/manual/en/function.rand.php

"Note: As of PHP 7.1.0, rand() uses the same random number generator as mt_rand(). To preserve backwards compatibility rand() allows max to be smaller than min as opposed to returning FALSE as mt_rand()."

Maybe somebody could run the code from the OP on Windows with a newer PHP and check?
That is a pretty good summary. And also where the hype comes in. Every other company or CEO would get nailed to the wall for that, Tesla not so much.

It also shows how VC money and hype can distort competition. Every EV company out there is not just competing with ICEs but also Tesla's inflated pockets. Which, IMHO, stifles innovation in that sector.
bitwarden_rs is definitely the way to go. I’ve been hosting it for my own use only for a couple of years now; never had any problems, and it’s a negligible drain on resources. It uses less than 20MB of disk space (15MB of the package, 2.3MB of icon cache, 408KB of sqlite database), about 24MB of RAM (admittedly it used to be about 13MB, but it’s still insignificant drain) and has an average CPU usage of less than 0.002% over 54 days of uptime (1:22.55).

Meanwhile the standard Bitwarden backend needs SQL Server and demands to have 2GB of RAM. No idea how little you could actually get away with, but I’m confident won’t be 25MB.
Big Data Without Hadoop/HDFS? MinIO Tested on Jupyter and PySpark
"Member states are not obligated to provide for ex officio enforcement or to impose fines"

Move along, nothing to see here...
Am I the only one thinking fighting to rid the country of the students resourceful enough to study in Harvard and MIT is madness? I would rather give them citizenship without even waiting for them to graduate.
Some fun folklore involving Bill Atkinson at Apple - logging "-2000" lines of code written.

https://www.folklore.org/StoryView.py?story=Negative_2000_Li...
Yeah they are. If you have sun shining directly on the back of the screen you can see the apple logo on the screen as the sunlight passes through the backlight.
Like my 70-year-old dad. My late mom was a fairly competent PC user and liked her iPhone for texting and photos, but my dad never got comfortable. He doesn’t own a computer or smartphone, and cut the cord once he realized that DirecTV supplied sports, old movies and The Weather Channel for way less. If only I could convince him to ditch his $50/mo AT&T contract and let me buy him his preferred form of unlocked dumbphone...

I’m worried for him as the presumption of an internet connection and some basic ability to use a website increases, especially for government services.

One example I saw several years ago: The state of Texas switched to a centralized process of issuing birth certificate copies for things like passport applications. For people like us, it’s super convenient - answer some questions, pay $30 with a credit card, paper in hand in two weeks. For him, it was going to be: get librarian to print this form, mail in with copy of driver’s license along with $80 check, wait about 8 weeks.

Needless to say, I ordered for him, explaining what information I was giving each step of the way.
This is quite good news for the environment
Please stop using HN for political and ideological battle. It's not what this site is for, and it destroys what it is for.

https://news.ycombinator.com/newsguidelines.html
Can I save the parameters in URL in order to send at our customers?
I don't see it as a problem that this will likely just work for, and thus correctly target, "easy" problems. Nobody looking at this blog post should think "hmm, sober of this lets me implement an autonomous vehicle in a single query", but rather "this looks like a great way to explore data without requiring any data science expertise". Many businesses have data and could gain insight and improve their business if they just ran some rudimentary queries to understand customer patterns etc, without needing a data science PhD to crunch numbers for them.

This seems to provide that type of value.

If I were developing this, I would make sure to make this able to read from Excel sheets and integrate with popular invoicing services etc, because that is where I believe the primary customers are in technological maturity.
For their handset SoCs, sure. But the real prize appears to be the base station market. As I understand it, Huawei's base stations are critically dependent upon Xilinx FPGAs. With those no longer available to them, Huawei is in a difficult position.

They can make their own FPGAs, true. These FPGAs will not be commercially competitive with Xilinx and Intel, so development costs won't be defrayed by commercial sales. IP laws may effectively prevent their sale in Western markets, anyway. And base stations made with these FPGAs won't be as commercially competitive, either (they'll be larger, more power hungry, produce more heat, etc.).

I don't know enough about 5G or base stations to say with confidence what other alternatives they might have. But I'm sure that they will be sub-optimal, at the very least imposing billions of USD in costs to Huawei/PLA/CPC.
Tell HN: I wrote a 9 page report about Covid-19 and I am going to distribute it
I would be much obliged if you could help me prevent the spread of misinformation by doing a fact check.

https://anonymousfiles.io/mXJNzV90/
> OR what if there were downvotes as well as up?

Downvotes can be abused for undermining people's thought you disagree on.

Instead, provide a way to "counter-argument", which if upvoted, will count as downvote to the parent argument.

This will enable people to "rob" votes of swing voters from the parent argument to the counter-argument

Also, hint: you might want to separate those questions above d with double line endings
Kudos for Lior and the team, great product!
Google+ is now Currents?
Its reasonable in the sense that the decision was already made, by history & circumstance, and that it's largely not that problematic and well supported (out of necessity).

The only alternatives would be to converge on a lowest common demoninator, and have a likely more inconvenient syntax for all parties, or to diverge into regional-specific dialects, which unicode shows to be.. wide.. and generally make code sharing much harder.

This is really more of a "many mostly equivalent solutions, but one needs to be picked" scenario -- and it would be time poorly spent trying to undo the incumbent solution (and will naturally be rendered untenable by endless bike-shedding anyways). The worst of all solutions -- except for all the others
If developers didn't use them in the first place, this problem could have been non-existent. I am glad that desktop has fended off tries to establish software stores, although I don't think we have seen the last of it.

Still, I think this is good regulation. We have seen random bans from apps that didn't hit the correct taste and a mechanism to appeal is surely needed.

I get that mobile developers don't have much choice if the want to monetize their software, but at least we should keep these ecosystems to unproductive devices.
Yeah, good point: I do not usually seed stuff that I believe is highly likely to result in C&D letters from my ISP. So yeah, fair use might apply.
the effect of will be only felt few generation later , lesser giving birth to lesser girls when all other things are equal means 2.1 will not work .

For example If you start with a population of 100 (50 couples )and every next gen there are 9 boys to 1 girl and fertility ratio is 2 then your third gen will have only 20 kids as there will be only 20 women in the second gen . The fourth gen will have only 4 kids and there may not a 5 gen.

Either balance has to be fixed or replacement ratio of women has to be 1 not all kids , to sustain a 1:10 ratio of gender means 10 kids per female so there will be 1 girl kid
Nice! A while back I went as far as implementing '(+ 1 1)' in Python [1], then went as far as implementing lambda in C [2].

1: https://gist.github.com/cellularmitosis/a46efbf32544cde3a1d1...

2: https://gist.github.com/cellularmitosis/d8d4034c82b0ef817913...
Good luck finding the company’s birthdate, ZIP code and gender.
We've banned this account for repeatedly making flamewar posts and ignoring our requests to stop.

https://news.ycombinator.com/newsguidelines.html
Up to 300M People May Be Infected by Covid-19, Stanford's John Ioannidis Says
Every time anyone tries to sell you something that pulls water from air, dismiss it offhand. It’s a scam. Often by a startup with zero math skills. It’s scientifically impossible to do without massive amounts of energy, and never worth it.
That Dr Murray is a spin doctor too. The argument is that its good for the environment. And he says yes but the social problems.
Well it doesn’t change the fact that it is one of the best ways to preserve natural environment, and somehow I think dealing with ageing society, especially with assistance of technology is an easier problem than global environmental disasters such as climate change etc.
He also says it would take a few centuries for humans to disappear. I would like to see the calculations he’s done as they seem wrong.
CSS Houdini's Animation API
False Puzzles, False Promises
Ah, the eternal temptation: "but that's Easy! I can tackle this single-handed! produces a minimal, text-only prototype which scales enough for a couple thousand users"
A good wood worker tends to know the tools of the trades and more importantly know when to not use a tool and when to invent a new one.. That said not every cabinet is a work of art some are just there to be functional for long enough to justify their creation.
I feel system interviews that dive deep about decisions and insights are far more useful than hitting a leetcode jackpot. Though it puts a high bar on the interviewer as well.
Menlo Park has Facebook and Robinhood connected by Willow Road.
As long as other stores are allowed, there is no danger.
https://element.io/blog/the-world-is-changing/
Well quite. My point was that this article presents the Chinese experience as unique, which it is not.
https://news.ycombinator.com/item?id=23842179
We've banned this account for repeatedly posting flamewar comments. Not what this site is for.

https://news.ycombinator.com/newsguidelines.html
Yes, in theory all the people who refuse to reproduce will be gone and are replaced by the children of those who want to reproduce. Over the long term this problem will fix itself. However, I personally believe that the population will level out instead of keep shrinking forever until reproductive pressures fix the problem by force.
Easier for whom? Most programmers would not be able to follow that code. On the other hand, a really simple C or Python algorithm is more or less universally readable.
https://news.ycombinator.com/item?id=23842137
Yeah, I'd have the same conversation with my manager and she'd apologize. I don't think you have been lucky, such a reaction is just a normal adult civilized reaction.
Morning Shot: Where is corporate South Africa? + Restaurant Association may sue
Making Time to Change - AWS Cloud Enterprise Strategy
> lower Canada

That's exciting. Internet could be a real game changer for the 1800's
Introducing 2nd Generation IPU Systems for AI at Scale
Kids used to be the future, and still are, in a future with less of them.
Given the Polls of go programmers have consistently shown that the lack of generics is a problem.
Chatbot creation platforms have really seen great improvements, having the ability to build a chatbot without having to worry about the complexity of the code behind the whole set up is really a bonus to many business owners who need chatbots for their businesses.

But with so many tools out there, setting up a custom AI chatbot can be so annoying. Many of the tools seem to miss a feature that you REALLY need.

Most times they all force you to pay to have that “Powered by….” imprint removed and AI doesn’t work.

How about a done-for-you solution? These Chatifai guys set up a simple custom chatbot for just 19$/m in 72 hours after placing your order!
https://chatifai.datawisepro.com
Curious that a HN commentator never uses YouTube. If you’re a dev, don’t you come across video tutorials that you have to watch? Do you have insufficient bandwidth?
Depending on the circumstances, that could be as cheap as a piece of rope or a couple of bullets.
> 5G uses the same old frequencies as 2/3/4G for the bulk of the traffic, it only uses the >1Ghz frequencies for microcells in malls and other dense areas where appropriate.

That's simply not true. 5G cannot achieve its advanced speeds without higher frequencies, which cannot be deployed without greater density of base stations. Higher frequencies beget faster signal falloff and greater susceptibility to obstruction. "5G needs spectrum across low, mid and high spectrum ranges to deliver widespread coverage and support all use cases. All three have important roles to play." [1]

Microcells use high-band, not mid-band, spectrum. High-band may not be useful outside of dense areas because of its reduced range, but it is essential to 5G and the FCC is releasing about 5GHz of spectrum for this purpose. Mid-band (1GHz-6GHz) is the bread and butter of 5G, and the FCC has pushed to open this part of the spectrum as much as possible for 5G to work as intended. This part of the spectrum is the most versatile, but it is in short supply [2].

Part of the challenge of 5G involves more frequent handoffs between base stations versus past generations of mobile phone radio. Similarly, 5G devices use various mitigation techniques to deal with interference from nearby base stations. For both of these reasons, there is a substantial amount of interaction between a single handset and nearby base stations that may not be presently serving it.

[1] https://www.gsma.com/spectrum/wp-content/uploads/2020/03/5G-...

[2] https://docs.fcc.gov/public/attachments/DOC-363622A1.pdf
The economy in Britain improved after the black death wiped out half the population.
Prediksi Togel Singapore HARI INI RABU 15-July-2020
Unfortunately yes. I'm a freelancer so I have to keep up with the latest tech, at least just enough so I can debug issues when working on my clients' projects. You probably don't need to do this on your niche and can just keep using whatever stuff that works for you.
Only on Hacker News would someone post a response this patronising and argumentative. I think the point he made was fine, and I'm way glad to have heard his story. It was lovely.
I mean, downloading remote files and executing them is literally what every web browser does.
However go’s switch statement already acts like pattern matching and destructiving in order to support interfaces.
WTF is going on here? This man was followed into his condo by a man dressed in a black suit and a mask carrying an electric saw. That man killed him and was in the process of cutting his body into parts. Is this a random serial killer or some sort of hit organized against him? Disgruntled investor? I think his Nigeria motorcycle sharing startup was not doing well during COVID, but what is the motive behind someone hiring a professional to have him killed?

edit - looks like his startup Picap in Colombia was just closed down by regulators in May. Maybe the wrong person wanted his money back and wasn't getting it.
This will make a nice thunderf00t video, unless he got tired of debunking these projects
I’d like to pick your brain on how you got this started. My current company seems to run into this problem occasionally, and we use Sketch for a lot of our UI designs.
I've used Dijkstra algorithm for calculating distance in a graph once. It was a highlight of that month. Of course I had to look it up(despite learning it and implementing it at university). Who remembers this stuff exactly after years of glueing libraries together? And even if you remember - won't you check it anyway just to be sure?

It's OK to ask people general questions (what's algorithmic complexity, what kind of algorithms and data structures they know about, what are the tradeofs, etc).

But expecting people to remember the exact steps of an algorithm they last used 10 years ago at university is just stupid. It's like asking engineers to remember the tensile strength of a material they could use once a decade. That's what the documentation is for. It will take 3 minutes to look it up when I need it (if I need it at all).
It still allows the developers to sue, as well trade associations etc.
Just recently implemented connected components in a spark job that runs on a 100TB of data.
The section of that document on "Deciding When To Use the FD/Autopilot" suggests using it for "distracting tasks."

The FAA states that "the FD/autopilot is used to control basic aircraft movement while the pilot focuses attention on tasks such as reviewing charts," which seems quite different from Tesla's autopilot which is "intended for use with a fully attentive driver."
Do I know enough? The Science of Information Completeness
I really don't see armed revolt going well in any scenario.
Yes , you are right that any one having a family will need to have a large one.

Just like China one child policy effect will be visible in another 20 years suddenly and drastically, it will be similar for gender. population will not change gently , it will be a cliff .
Sue to whom? There is no EU court you could directly sue to.
Overpopulation and the resulting over consumption and pollution are our biggest threats. This is a good thing, certainly until we can figure out a way to live on another planet easily.
That money is worthless if it is not backed by a young labor force that can produce what the pensioners need. There are not many things that you can buy during your 30s and keep using in your 80s.

Think of a reverse Corona virus that only kills the young.
Retirees have lots of money but the shops and factories are closed.
download links might still work. https://packages.riot.im/desktop/install/macos/Riot-1.6.8.dm...
LOL, these guys do not know about thunderf00t!
I always find weird to read this kind of comment in a forum with "hacker" in the title.
PHB: Are you calling me a liar? Or just an idiot?

If situation is that far degraded, the answer is "IDK, does the distinction matter?" And it doesn't: either the PHB is putting words in your mouth on purpose, or couldn't hold 30 seconds of context.
I never saw leaves on trees either until I finally got glasses at 18. I was told constantly as a kid that I needed glasses, but I just brushed it aside because I couldn't imagine things being better. If only a doctor would've told me to put on a pair and walk around before refusing, I think my life would've been quite different.

Then again, when I finally did get glasses, I refused to wear them more than a few minutes a day for my first month. They just made me uncomfortable, visually and mentally. It seems like people are always most comfortable with what they know, even if it's objectively worse.
The true impact of SpaceX’s Starlink on astronomy is coming into focus
Best Graphic Design Software – Graphic Design for Print
Main reason is that they couldn't trademark the "Riot" name due to "Riot Games" company.

Edit: They have mentioned this in the blog. Please read that before downvoting.
Inverted population pyramid causes many problems. All the ponzi-like schemes for pensions will collapse. There will be a massive influx of sub-saharan African immigrants in the Western world as they are the only ones still making babies. Latin America holds up, mostly. But there's already internal mass migrations in the millions.

China has been investing a lot on on designer babies, artificial womb, and cloning technologies.

It's going to be... interesting to see how it all develops.
Or Australia. Which just announced new visa rules and pathways to residency for Hong Kong people.
That's all possible future revenue. Currently there is no revenue and no customers. Companies in that state can go to zero very quickly.
Quite right, but living in any community involves making compromises along with the benefits. I think the bottom line is community is an achievement that takes effort and compromise to attain.
So you are saying that before Tesla EVs were not a thing. They were, already during the early day of automobiles. Funny how better electric motors enabled ICE cars and killed EVs.

Before SpaceX, humanity travelled to the moon, shot probes out of the solar system, landed on other planets and moons. We got multiple space stations into orbit. We didn't have reusable rockets so.

And aerospace companies did, in fact, change transportation fundamentally post WWII. Jet engines, passenger jets, the 747, ever decreasing fuel consumption per passenger, ever quieter aircraft.

And the parent was talking about technical impossible. Which clearly it isn't. Never argued against incumbents being unwilling to do certain things. But please stop putting Musk, and people in general, on podests like that.
Great name I'd say! If I would consider converting people like my parents to a new app, I'm sure Element has a bigger chance than Riot because of the connotations with the name of the latter.
That offer (75K) is definitely not the norm for a new grad. It can happen, sure, but I think it's more productive to discuss salaries 90% of the software engineers in this forum can get/expect.
We're just doing the desktop builds of Element now - you can grab the last release at https://riot.im/download/desktop, but the download link should be fixed shortly.

HN: It'd be cool to fix the submission to link to the https://element.io/blog/welcome-to-element/ rather just element.io for more context :)
Only if you remember all the permutations. But I think Ravens progressive matrices are only good for finding people who have good visual acuity, not people who think deep.
Your points are all well and good, but given HK has never been a proper democracy it's hardly an appropriate example. This mixup, willful or not, makes your post come off really weird in my eyes.
"In our case, we're letting good enough be the enemy of barely tolerable."
A handy Ruby interface for AWS Athena
Together with my team at u2i (https://www.u2i.com/) we have recently built a wrapper for AWS Athena Ruby SDK providing a convenient, higher-level interface for defining schemas, creating tables and executing queries. It reduces boilerplate and repetitive code allowing you to process large data sets easily.

Will you find it useful? Please give it a star. ;)
> it emits the amount of carbon that 4 trees absorb in a year

This reminds me of the last election in the UK. Each party was vying for who could plant the most trees as a green policy. It's admirable but I think most people, myself included, don't appreciate how little each tree absorbs and how long it takes to have an impact.
The problem with the economic line of thinking is:

Why do peasants in Africa have more children than Lawyers in New York? Builders in Arkensas have more kids than tech workers in San Francisco?

Poor people in general have more kids than rich people. It doesn't fit the data.
Good news for everything but the pyramid scheme we call capitalism.
There's definitely room for config-viewer plugins in VSCode, Sublime, etc. to help write and maintain the 100's of config files we have to be knowledgeable about in DevOps these days.

Does anyone have good suggestions in this space? Or do I just have to google docs and reference documentation when I need to figure out what the hell all these parameters mean?
I see that as pedantry. We're talking about internet speeds, and the equivalent of youtube.
One of the reasons nobody tries seriously before was economics. They came to the conclusion that it was simply cheaper to not reuse boosters due to the overall low number of launches. And whether that is true or not cannot be evaluated without SpaceX results being published.