skysight-inc/HackerNews huggingface dataset:
this may no seem like an odd comment (please at least admire the pun), but generally I can see value in this. All this stuff is-even and is-number is doing to make sure that it is actually a number, throwing errors etc. pp. sure, I could do it myself, but I would probably miss half of the cases and would spend some time finding the right solutions for the other half. Why I should reinvent the wheel if someone already has, and that in a good and thought through way?
Don't get me wrong, there are tons of needless packages on npm, but in this case I can see the value (ok, maybe the is-odd is one too much and !is-even would be enough)

just to to trigger a bit more: Pretty sure a case manufacturer could develop it's own screws... but I think in most cases they just use what someone else provides...
I mean that when hosted as a static site you can do es6 imports by importing from a url for a file.
web3 isn't being conflated with crypto, web3 IS the decentralized web powered via crypto.
I believe (and I’m not a legal expert here), that what the commenter is alluding to is the “moral rights” over a work. This is more common in the UK and Canada. When I worked for a Canadian company (I’m a U.S. American) part of our IP release for works-for-hire included a waiver/transfer of rights specifically for the “moral” or “authors” rights, which were explained as being the “spirit” or “whole” of works we created.

It’s a legal construct, but I was never satisfied with that explanation. The gist was that while we could transform things that we learned or did, we could not re-use the ideas that formed the functioning product in other works elsewhere, even by transformation.
Smart, but isNaN already exists…

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
This sounds interesting. Can you please elaborate?
Why shoot the messenger?
You could call it a modest proposal.[1]

[1] https://en.wiktionary.org/wiki/modest_proposal
> Password rules and a requirement to change your password every X months are pure security mirage and just create frustration in people who often struggle to generate even one secure password in their entire lifetime.

Every place I've ever seen or heard about with a "change every X months" system, everyone just uses a (often shared!) formula to come up with variations that satisfy the is-this-too-close-to-your-last-X-passwords checker, based on the date or whatever.
There has to be a fork so that the software being used is identified by a formal tag pointing at a specific commit, and this is backed by some sort of project commitment to put out a commit, if necessary.

It works fine in that I'm not running into issues and not missing features, not in the sense that I proved that it's free of defects; I don't require a fork that has any new commits. Surely, bugs have been found between that version and now, some of which can be meaningfully backported.

Programs can break simply because of all the other moving parts in the environments that are out there; it's a fact of life nowadays that software needs to have a maintenance plan to be viable. A compiler, library or kernel upgrade can expose some latent problem in a program.
Same here, baffled at that everyone's just taking the boss's judgement as gospel. Provided that he tested his refactor well, as his colleague I would be stoked someone went and cleaned up my code.

It's not just about reducing lines of code and increasing abstraction, which I agree are bad metrics. It's about legibility. He took a block of 140 lines of dense math descriptions of objects, and reduced it to nicely structured semantic code. It's a 100% improvement, if that code has a bug, anyone could read it and find it.

The author said they would later need support for different behaviour that would have made his code more convoluted. Well big deal, it's not like there was a way to do it without violating open/closed anyway. This code is so easy to understand, anyone can read it and go "ah this won't work with the new requirements, let's delete it and start over".

Not saying this code 100% needed to be refactored, but if you're an engineer and you see it and you think you have some spare energy to pretty up a piece of the codebase, and you diligently test and verify your implementation, why not do it?

I wish my team would do this more often.
> In that case even with worse outcomes from divorce for women, it might still make sense for women to file for divorce more often.

I don't understand. If bad marriages effect women more often then men, then women do better from divorce. The divorce initiation data doesn't tell us who's happier overall (insofar as such interpersonal utility comparisons even make sense), and I didn't make a claim about this. That data point only tell us who expects to benefit from divorce relative to where they are.

I think you're arguing against a position I don't have.
Great in-depth write-up!
Hi folks! Budibase CTO and co-founder here.

We can't wait for the community to use and get value from budibase - in both our cloud and self hosted offerings.

Happy to answer any questions about our tech and our plans for the future!
By teaching the modulus operator? This is a built in language feature if you understand basic math: numberYouWantToKnowIsEven % 2 == 0
> Previously wiki like Confluence software used to force you to go to 'edit' mode to switch between the two.

This is actually a feature. Readers of a page/doc are seeing a consistent view until the next time "Publish" is pressed.

> You can have a phone call with someone, and see each others cursors, edit simultaneously in real time. You say this fell down, but in Confluence this would be impossible.

No longer true! Confluence (Cloud, at least) does this right now. If two (or more) people are in edit mode, those people get an experience much like Google Docs.
The modern approach to calculus using limits do not use infinitesimals. According to Richard Courant, "Mathematicians of first rank operated ... sometimes even with mystical associations as in references to 'infinitesimals' or 'infinitely small quantities.'" I believe we now use the "epislon delta" definition of limits.

"Introduction to Calculus and Analysis" Volume 1
The modern guide for this is https://web.dev/how-to-use-local-https/ and the flag you probably want is #allow-insecure-localhost but the guide steers you towards local trusted certs as an improvement over self-signed.
This is true, but at some point the community will figure out what's going on, and either leave to a more promising and uncompromised project, or find a way to limit the voting power of the attacker. You can see this happening now with the Curve Wars.
> The essence of decentralized woo, and why it’s such a pernicious form of sophistry, is that it’s simply a proxy meme of the more dangerous idea that technology can fix social problems.

That's a strong wording. Technology can actually "fix" some social problems. The problem is that we don't know, which of them. Also, we know very little about the tradeoffs.
Persecuted? Are cryptocultists hiding in basements for fear of the nocoin police? Tortured in backrooms to have them recant the holy blockchain?

Blockchain is shilled everywhere, you can find ads for it in the subway.

>I really wish people would stop bashing the industry and instead join in the experiment.

I'm absolutely ok with experimenting. I'm not ok running trillion dollar ponzi schemes that use a mindbending amount of resources in order to make a proof of concept. That's ridiculous.

>For example Bitcoin with its fixed supply of 21M coins which prevents dillution and debasement.

Except, you know, for all the bitcoin forks out there.
I am fine with chat/chatbots on websites but only if they are accessible on a separate page, I don't want do be disturbed by a random chat popping up while browsing, if it does I immediately leave the website.

If I need something, I will get to you.
You're right, I didn't know about @{u}, thanks for the hint!

> You'd open an editor with A..D with that, whereas you perhaps only want B..D?

That wouldn't be much of an issue for me, but I still tried to implement an option that doesn't rely on my repository having a defined remote.

I quite often start a new local git repository whenever I'm about to start a new experiment (or just scripting some one-off task), and most of these will never get pushed onto a git server. However, even in those cases, my scatterbrain often triggers the "gah, that should have been in a previous commit!" reflex.

By the way: Thank you very much for taking your time and reading all this! :)

Edit: I just re-read the upstream-point thing. Wouldn't that cause a `git push` on `thing` to push directly to `origin/master`?

That also wouldn't be compatible with the workflow we have at work (we use GitLab merge requests)…
You could say this about any leisure time activity, from interacting with friends to watching TV to reading books.

Leisure time is not a bad thing, as the title says.
That's weird, because I was at U of T engineering in the late 90s, took networking and they covered some math for various calculations on ring and wireless networks, had labs, and covered everything the Athabasca course covered as well. Was that for computer science or engineering?
Can we? My experience is the opposite, I live in Spain and fast transfers are definitely not free and not generally available in all banks. The regular case is transfers take about 24-48 hours to be settled between banks
Sadly, no. The one that I got information about those snails was YT video about eradicating some specific snails, to disrupt lifecycle of mosquitoes, as their larvae was living in these snails. I kinda feel regret(on other hand my regret is memory of having this extra information) that I have not saved link, because it was very long and very informative video and showed all the different issues, to do that task. I would highly recommend it to watch it, but you have to find it by yourself - may the RNG of YT is on your side in this task.
Web3 the semantic web of the 2020s
I went looking through the dependency chain of this for even more popular simple packages and picked a 4 million/month package that was calling is-number thinking it must be added to most of these as a joke/snuck it in and it turned out it was the original/main dev that added the dependency. So it seems the best case scenario of "fixing it by PR" is every PR request is accepted even though it was (at least sometimes) intentionally added by the main dev and this is done continuously and endlessly for this and every package like it (there seem to be hundreds of equally trivial packages that are popular) yet they problem will still continue to exist anyways.

Not that there is anything wrong with greatly reducing the usage rate when we can just the real interesting problem presented with this package isn't literally the package itself it's troubles in the dependency ecosystem of NPM.

All that said I'm going to try to tackle a handful after work, particularly of is-number which is about as many lines to import as define and unchanged for many years.
There are two contributors to this package.
In the finite Riemann sum written as a limit the partition is just the limit of (x1 - x2)/m. I'd say it's the reverse, you use the limit to resolve an equation of two infinitesimals.
It's more that the designs you're likely to be building to take advantage of the fancy extruder are more likely to be the sort of thin-shell construction where holes anywhere cause structural issues that you wouldn't see with more discrete building elements. I was also thinking that if you've only got a hole in one face of a wall, you can't get to the back of the hole to support a patch, but I'm guessing that's less of a problem.
in the last 24hrs i,

- funded an Afghan refugee friend in Turkey with ETH. they have no bank account.

- joined a dao to bid on the last privately held copy of the US Constitution.

- claimed an airdrop representing some control of a protocol i had used

- borrowed stables against volatile collateral

- repaid loans, shored up collateral (market went down)

- many token swaps (stable <-> stable, volatile <-> stable)

the hn crowd should be leading discussion on the ethical implications of the technology but it is stuck where it was like 10 years ago. it is very strange. but i guess this happened to slashdot too.
What happens if I am a member of (or host my own) matrix server, and I use it to create an account in one web page; and then later on, that matrix server is deleted forever. Is there any way I can recover my account? This is why I think I prefer crypto single-sign-on (i.e. ethereum projects that allow this). Because I will always be in possesion of my private key. Is there any equivalent to transfer my account across matrix servers?
I believe they use some statistical analysis and declared locality tags (from config) to group related cells of data on the same nodes and regions, but I don't know how effective that proves. Pure performance isn't a strong suit of CRDB as far as I can tell, but sometimes that works fine, and it does scale well horizontally.
OP here. The second sentence came out all wrong and the downvotes are deserved. What I was trying to ponder, was - given the summer blackouts (in certain areas) due to people running their ACs (more than on average) - how do we plan to cope with the advent of EVs.

So I did some googling[1] and apparently, until 2030 there's only 1 million EVs planned to hit the roads in the US, which is quite shocking given the dire trends of climate change and toxic pollution on this planet.

Another interesting fact is that the costs of extending the power grid will be passed on to all its consumers in the form of increased rates (as it should, because if you don't drive an EV, you should be "taxed" on the extra pollution your car creates).

[1] https://www.bcg.com/publications/2019/costs-revving-up-the-g...
Reminds me of a PG essay a while back talking about getting your product out to news organizations.

Thanks to user gruez for reminding me what the article was called. I couldn’t remember. [1]

[1] http://paulgraham.com/submarine.html
Полезное укрепление ногтей ванночками и масками
It didn't at the time this library was created. I assume now that line only exists for backwards compatibility.
Adding a package like this as a dependency is a net negative, because for the sake of trivial functionality you take on all the supply chain overhead and security risk.

The culture of relying on small dependencies needs to adapt to account for security. It's one of many aspects of open source supply chain management due for a reckoning.
Derivatives are usually quite a bit easier than integrals.
Also a check for Infinity (Infinity - Infinity -> NaN)

Which is weird since they use the isFinite built-in right after that, but I have no idea why they throw in all the string checks and trims and + for type coercion, and then use the global isFinite function which does all that internally. In fact the global function isFinite does everything this package does

(something I just learned tho checking this code out is that there is a global isNaN and isFinite which coerce strings into numbers automatically, and Number.isNaN and Number.isFinite which function similarly but without coercing the string first, so I guess this package exists as a learning aide of all the different ways to ask if something is a number)

EDIT: I now know why they check if a string input is not an empty string, because empty strings get coerced to 0, so isFinite("") returns true.
Is it really about Clean Code? It seems to me that a big chunk of team interactions was missing!

Firstly, was there any kind of review or just a chance for team members to talk about the original implementation before it got onto master? After the fact?

Second, Ok, the master commits seem liberal, but why then the boss goes the one-on-one way to make a team-member purge the commit? It seem like a wasted chance at regreasing the team dynamic, let developers find a way to forge the code together.

There should be an open channel between devs and also a way for them to express themselves by means of code... without fear of blame or dangers to the mainline. 'Branches are cheap', isn't it? Personal-branch it so it could later be showcased to others, to the boss?

IMO, this is more about Open Team, than Clean Code.
Most of HN is aware and mature enough to comprehend that Ayn Rand is NOT an ally of society.
I'd add that `num !== num` would be faster while `Number.isNaN(num)` would be faster and more readable.
A few things:

* only looking at animal crossing and a plants vs. zombies game. I can only speak to animal crossing but I wouldn't be surprised if that game sparks a lot more joy and well being than most.

* They do some... weird visualization choices with bars going both up and down but both implying a positive impact. I've never seen this. Super weird. You can't even compare the two options.

* R^2 of play time and well begin is 0.01. Technically significant.
It would be useful to hook on the frame-received event and send to an hosted webrtc page, so that you can share your tablet screen instantly to co-workers.
Anyone tried a similar setup?
No, by taking care of all the exception handling these packages do. It's why these stupid packages exist: because the standard library doesn't handle them.
Here I thought politicians pretending like they can solve political problems is dooming us all.
I just tried looking for the zero 2 W. All the sellers on the main raspberry pi site are completely sold out till next year. I managed to score the last 2 on digikey.
Twitter stops auto-refreshing timelines so tweets won’t disappear
The "existing web" and web3 aren't separate things. Web3 is the organic evolution forward of the web, and it has tons of traction already.
I think as a keyboard for French language, this is great.

However, the affirmation “extra characters are added so that one can effortlessly type in French (as well German, Spanish, Italian, etc.)” doesn't really hold well IMO. For example, there's “é” but no “áíúó” keys. This lack of acute diacritic for other vowels is a big dealbreaker for Spanish and Portuguese. Possibly, others too.

As someone used to the Brazilian (ABNT2) keyboard, I think dedicated keys for characters with diacritics is not the way.
Typing with diacritics for dead keys to the right is just as easy, if not more, as using alt gr, with the advantage of having more free keys.

Otherwise, this is great.

BTW, I like how this is closer to US keyboard than ABNT2, which switched the `~ key for quotes and makes typing stuff such as ``` for blocks of code a big pain, and annoying to open developer console in Source games. ABNT2 also annoyingly switched braces location to be vertically stacked.
Indexes, rather. They charge by rows read, so if you don't add indexes you will (very quickly) read all the rows in your table on every query. That racks your bill really fast.

The foreign key thing is because the author thought foreign keys add indexes, but here foreign keys are no-ops and don't do anything. Because it's so distributed there's no support for foreign keys.
Congrats! Amazing offering. Is there any plan to support PostgreSQL as well?
So did i until I looked it up. perhaps it changed recently.
Why do people hit Like anyways? Enjoy the content, leave a comment. If the creator actually reads comments, a positive comment in lieu of a Like will have much more benefit to the creater. Except maybe for what ever ulterior algo purposes YT has for these metrics.
They can be a defense against DOS vectors, too. Though if that's the only reason, you can usually make the limit high enough that almost no actual person will ever hit it.
Compare List and Maps in Flutter – Two List and Two Mpas
ValueError: Could not convert string to float
You also can't pay some one else to host it for you. If you have to fork it for any reason, you will be stuck hosting it yourself, even if there is a large group of folks working together on the fork, everyone will have to host it themselves to use the fork, at least for several years until the code becomes open source. Beware vendor-lock-in.
Go is terrible for distributions to package due to the poor library versioning. Also, static linking makes security updates really expensive to build at scale.
We tech people see a lot of ideas. Most of them are superficially exciting. For example, a way of detecting when counterfeit parts with substandard specs are used in farming equipment. Maybe a music-centered social network for users of a particular music player.

Many of them go on to be either wastes of time or much, much worse. Suddenly detecting substandard parts is DRM for John Deere tractors and the social network is iTunes Ping.

Most ideas fail. This doesn't make them bad ideas or the people creating them bad people. It just means we've collectively learned that most ideas will fail and there are some fairly common reasons for this.
Despite the downvotes, the argument stands: linux distributions are having a hard time handle the amount of tiny libraries and the conflicts in versioning and many maintainers voiced their concerns in the past years.

The HN bubble can be amazing sometimes.
Let me name a few. Note there's a bias toward Ethereum-based projects, since I'm more well versed with those.

Projects like Uniswap, Maker, Aave, Balancer, etc provide financial services similar to traditional exchanging and lending.

There are also things like ENS and TheGraph that provide more infrastructural benefit (i.e. name server and data indexing layer).

And many, many more in the space of games & collectibles.

Many of these had been used for years. Some of that usage is speculative, sure, but not all of it.

It's already there. It's just way too early to do 1:1 comparisons with established non-crypto projects.
Why require a password manager when you could require a hardware token instead.
I'm curious as to whether these are actually correlated. I anecdotally doubt that video game players exercise at a higher rate than non players.

Alternatively, I would guess that just generally having free time to spend in any way is a healthy thing. We already know that stress is correlated with worse outcomes. The study does mention that income could be a third causal variable, I think stress is probably a similarly correlated factor.
I’ve found Numbers to be basically unusable on iPad. May be because some stuff works differently as compared to excel but its features are literally buried inside icon based interface which is a huge bummer. Should give it a go on Mac, may be it’s better there.
this library uses the global isFinite, which actually you could just use instead of the whole function, since it does the string coercion and infinity check for you.

Check out the compatibility table on MDN, Chrome Firefox and Safari version 1 all support it, so I'm pretty sure isNaN and isFinite were in the original spec.
Part of the problem is that much of the cryptocurrency hype, some might even say most, actually is just a bunch of scams and pump and dump nonsense. The people who are in it for a get rich quick scheme are the enemy, and most of the people who expect to get rich quick will end up on the bottom of the pyramid.

But that isn't to say that there's nothing there. It's like saying that the internet is worthless and should be destroyed because it has pornography and copyright infringement. It's not that it doesn't; it's that there are still things it's good for even though it does.
Well, I hope this all is once in a blue moon event :D

I've let myself astray and not concentrating on the tasks I really have to concentrate and not this type of entertainment.
Depends where the power's coming from, I guess. They do acknowledge that the generator is a weak point in the kit.
Almost every programming model is Turing complete therefore you can do just about anything with them. But unless OpenGL shader language has equivalent concepts of the warp and the syncthreads instruction, you end up having to do a global sync every time you want to do any synchronization and that means returning to the CPU and that's really slow in comparison and therefore very power inefficient as well.