skysight-inc/HackerNews huggingface dataset:
Most of these are written in such a way that they don't affect the happy path and if they do their pact is negligible. Are you saying that these checks are completely unnecessary, or are you saying that you'd prefer a faster compiler over one with more checks?

Also, we perform many, many more checks beyond the ones you've mentioned, for example https://play.rust-lang.org/?version=nightly&mode=debug&editi... :)

Edit: To expand on "don't affect the happy path": most of those extra lints, checks and suggestions will be performed only if the error condition has been met. If your code doesn't trigger a mutability error, or a missing identifier error (to take from the parent's examples) the searches for suggestions are never executed. For others like style lints, those add some time to processing, but they are linear in time, we tag things that miss a lint during parsing or other passes and then emit them later.
Ah detaro for the win!: "Controller/Peripheral"
I'm a desktop/embedded guy (no DB's) so this makes the most sense for me. Thx detaro!
Building an Aviation Weather Map
We can practice reductio ad absurdum all we want. However, it seems that inequality is taken to the extreme in some parts of the world.
def returning the method name as a symbol wasn’t added until ruby 2.1, and doesn’t seem to have been compelling enough to cause people to change their ways.
Don't let your feelings get in the way of your valid argument about C++.

The Linux kernel will eventually going use the FFI route from Rust and C someday, but it is no safer in both safe Rust and unsafe Rust according to this memory saftey assessment study that has Rust CVEs [0]

[0] https://arxiv.org/pdf/2003.03296.pdf
in before everyone shills their unnecessarily tokenized identity cryptocurrency that nobody ever used and never ever will
An article I read recently makes a similar point on maximizing only one side of supply and demand and the effects for consumers and “quality”, in this case, how animals are killed. Good read: https://www.vox.com/future-perfect/2020/7/8/21311327/farmers...
Ask HN: What do you wish you did differently in college?
As a 2nd year bioinformatics student I’d love to hear your takes on how to make the most of my time while I’m in college.
Let’s compare that to the other big tech companies.

Facebook - yeah it’s just a social media company at its core, but before mobile really took off, it made money as a platform for games and shortly after its IPO, everyone thought it was doomed and didn’t get mobile. Between their strong pivot into mobile ads and their very smart acquisitions. Now FB has four platforms - FB, Instagram, Messenger, and WhatsApp that all serve different demographics.

Apple. During the time that Google has existed, Apple has gone from making most of its money selling computers, to music players and a music store, phones, and now depending on the quarter, phone sales are less than 50% of revenue. Heck the watch and AirPods are each considered to be larger businesses than the iPods were at its peak.

Would Google ever invest in a product that only made up 10% of its revenue?

Amazon: (Disclaimer: I work at Amazon). Went from a retail store selling its own stuff, to a marketplace, smart speakers, AWS, Amazon Prime Video, and did a lot of successful acquisitions.

Microsoft - It’s basically removed it’s focus from Windows to Azure, Office in every imaginable platform, Sql Server even runs on Linux now, and has a successful gaming division.
In unit tests, I like to only test a single method in isolation, with all of it’s dependencies mocked. So in a domain layer method, that depends on some infrastructure layer code that itself does the DB access, I mock the DB access layer. And the DB access layer already hides the SQL, so you’re mocking “normal” objects/methods, not SQL.

However, when unit testing the DB access code itself, I like to connect to a real-but-embedded database (for example with JVM projects, these guys have some great embedded DB libs: https://github.com/flapdoodle-oss), with a different DB per test class (different test classes run concurrently), but no cleanup between test cases (which run sequentially). This lets me test the SQL queries themselves.

Integration tests are a different story, they run against actual deployed versions of services, with real everything (including databases), nothing is mocked.
Communication is shorter because it is more frequent.

If you can keep people constantly updated about whatever, there is no need to write a long letter essentially repeating yourself.
There's the "European" ID4Me project (https://id4me.org/), which tries to add federation on top of OpenID Connect / OAuth2. The idea is to give users globally valid IDs that contain a domain name. Using a TXT record on that domain you then specify which OpenID auth provider a service should use to authenticate the user. If you have your own domain this enables you to switch ID providers without having to update your accounts.

In general I like the idea but since it's a EU-style project I don't expect it to go anywhere to be honest. And personally I don't think the benefit over e-mail based authentication is marginal. That said there are some extensions in OpenID Connect that can achieve something similar, and that (IMHO) are more likely to actually get widely adopted.
Ahhh, DAT, the technology so good that the recording industry got congress to make it useless:

http://www.brouhaha.com/~eric/bad_laws/dat_tax.html
I've heard dogma from seo wizards that running the blog on a subdomain yields either negative or positive seo outcome, depending on the phase of the moon.

Also, it could just be the result of some bad ops/sysadmin decisions.
It can be both accurate and a buzzword. What is so hard to believe about a buzzword that started out as a merely descriptive term? It's definitely an over-used and mis-used term now. A dog whistle.
Yeah it's a crime, but what use is it if nobody checks? Do they at least audit a certain % of the applications? Or do they do zero checking whatsoever, and will only use it to tack on more charges when you're already under investigation? eg. questions like "Have you EVER knowingly engaged in activities designed to overthrow the U.S. Government by force?" that appear on US security clearance applications
Feels like you'd have to lean significantly away from anonymisation to want to leave public proofs of cross account identities lying around. Maybe that's a more common use case for businesses and high profile people though than wanting to link, say, a pseudo-anonymous forum account with a payment account.
It's important to understand that hackernews, reddit or stackoverflow are very small parts of the software universe. At my workplace less then 10% of the devs are hanging around at hackernews or reddit. Some don't even visit stackoverflow but just read the Java docs!

Rust is extremly popular here at hackernews and at reddit. It's a brilliant language. I learned it and actually wanted to use it for some services at work, but the team chose Go.

The impression of the spread of Rust one might get following hackenews or reddit is far off. In the industry Rust is not even at 0.1%. Probably less. The amount of Java, C and C++ projects is immense. That's at least what I can tell from my almost 20 years of experience as dev.

Rust is 10 years old. It's not new. There must be reasons why it's not already ubiquitous. And it's not the lack of language features or the lack of promotion :-).

The reason is simple: The choice of the programming language itself is not that important. How else can the world be full of extremly successful projects written in PHP, Python, Ruby, Java, C#, C, C++, Go, JS, ...

I don't like to write code without algebraic types and pattern matching. I don't want to check for null. But with Java or Go I have to and to be honest: It doesn't matter. A good development process is essential for successful projects. Language and tools ergonomics, matureness and stability come second.

That's why so many large projects are still on Java 8. They get the job done. The same can be said from C++ and C. If C++ was so harmful, why did Mozilla not port all of Firefox to Rust?

Rust could be a greater success in the industry. They just have to look at Go. Go gets a lot right: Standard lib and stability. Generics don't really matter if you want to build a successful product. I want it but I don't need it. A large and stable standard lib does matter. The xml package in Go's standard lib is embarrassing slow. But you can rely on it.

Rust needs a large company as patreon. It needs a more comprehensive standard lib. It needs one async runtime in the standard lib and a http server and client, crypto, etc.
They have learned just fine, but the lesson is the opposite of what you want. If the people don't want something, bring it up again and again and you can still eventually make it law, despite the people's desires.
Done it a few times down here in Africa. Was never a problem.

Presumably you'll now update your position based on my personal anecdote? [Or is that not how it works]
The style="overflow-x:auto;" seems to be the default now. "Ask and thou shall receive"? I'm pretty sure it wasn't scrolling when I first tried it but I may have just started searching first out of curiosity. Several posts indicated that inline CSS was possible on GitHub. I did a quick test and I can't get the original overflow-x:visible; behavior so who knows.
Q&A: UN's Agnes Callamard on drone strike that killed Soleimani
True, if there's a H1B audit, its much easier a drone to prove to its auditor-drone that there were no local applicants for a job, than to explain the technical details of how there chronologically could not have been any applicants.
CSRF is only needed when you have a dynamic website, when someone can potentially make a request on behalf of someone else (and thus make some malicious changes). If your website is 100% static, there's nothing to change.
hence 'if you have one'; you can also run it on your pc. internet connections are not free either but a basic vps is substantially cheaper. i am not any kind of specialist and i run a couple for hobby projects; one of them is $15/year. but nobody is stopping you from running a relay on your desktop.
I was about to post that. It's definitely true in my experience. Only thing that's ever worked for when I get real bad insomnia is strenuous cardio/HIIT-type workouts.

But that's something people can't sell you so that's the last thing people try.

Even this advice that Jacques says about no napping during the day. IF I'm working out, I need that nap. I suggest he try cutting everything out except for the morning bike ride and see how far it takes you.

And yeah, people shit far too much on that book, "While We Sleep" maybe some of the findings need more data but they do ring true, especially the part about underestimating lack of sleep does to our mind and body.

Btw, didn't know you played synths.
another piece of our history and shared culture passes into oblivion.
I have used these terms both in English and in my native language for decades and it never crossed my mind that there could be any relation to skin colors. But now they are associated with this so I would argue it‘s more racist now since we‘ve connected something negative (a blacklist) in our minds with the idea of being black.

I think this will do harm in two ways:

a) harm because of the explicit association as just described

b) harm because many people (possible supporters) will reject these kind of things as unreasonable

Now, I think the policy itself is not a big thing. Can be done. But it should have included a statement that the underlying idea is perhaps a hit silly and this is done to avoid this distraction.
Millennials are killing shuffles deck ham radio? Sigh, whatever, just get it published.
I think one of the great parts of the internet is that it promotes this identity decentralisation (or, as i have always thought about it, identity fragmentation). You are allowed to isolate online identity from the rest of your life, or from separate online accounts/personae.

Which is why I am confused as to why the author spent so much time worrying about verifying identity. To me, that feels like it's completely missing the point of fragmenting your online experience. Is the author simply concerned with the amount of power associated with their google login?
Breville Barista Express isn't cafe quality but it has a good grinder and pulls decent shots pretty consistently for $600-700
How can someone be judgmental about epigrams?
Then they should be defeated again and again.
I appreciate the author’s use of code style to make it easier to read the examples. While JS is usually camelCase they choose to use snake_case for functions like operate_drone.

I also appreciate the lesson of converting discriminated unions in JS and to rust - that’s my favorite pattern from the TypeScript community.
If anything, my bet is the future of identity is more centralized.

Decentralized solutions, as I've read about them in their current form, require a significant amount of technical knowledge to understand. That is, to understand both what they are and, more importantly, their benefits ("why does this specific solution matter to me?"). Past that, the user experience is extremely poor in comparison to clicking "log in with Google", and I'm not convinced it can ever fully get there.

It is for those reasons that I think centralized identity is here to stay long term. Most people aren't going to spend the time to learn about this because they just want the easiest solution and don't care about their data being sold. I know several people in tech that fully understand the extent of how their data is used by internet corps, and don't mind it because they prefer convenience for free. And I think that's OK--it's their informed choice.

Personally, I try to login with email most of the time, and that's the limit of my drive to care about the security of my personal data. But my email is gmail, so I doubt it really makes a difference from login with Google.
Why Leicester is pronounced “Lester”
Full-stack always has been a buzzword. It means everything and nothing. I've seen full-stack mean "assembly code to screen pixel", I've seen it mean LAMP, I've seen it mean three or four specific technologies that the candidate is presumably meant to guess are the technologies being used.
Better idea: Don't put wildly expensive things in your checked bags.

I'd wager most of those items are pre-TSA anyway as they have a pattern of stealing things. Years ago I visited the Microsoft employee store in Redmond where you could buy Xbox games for super cheap. They actually had a sign at the register warning people not to put them in checked bags because they disappeared.
The future of online identity is indeed decentralized and not distributed, meaning that users will always have some super nodes to handle their identity on behalf of them. In my opinion Facebook/Twitter/etc are not identity providers, they are silos. Sure they are very successful ones and can even used as identity providers at some places, but as long as they don't open up they can easily die anytime.

The author suggests that services built on top of these Silos that provide proofs of connection between all the identities. I welcome such initiatives and but I doubt they will lead anywhere, cause they are built on top of silos. And a silo, as soon as it figures out it loses money, it will cut down that connection.

What won't die is decentralized published standards and protocols that handle the Identity management through the internet. Starting from plain DNS, we can get AoR for SMTP, SIP, XMPP and on top of that we have frameworks that facilitate the identity management like Oauth2, OpenID etc. All open and standardized. We are getting there, we just need some more time I guess.

That's why I always thought that, Google, who owns emails has much more value than Facebook, that asks for your email. If facebook dies, you lose one aspect of your digital social part. If you lose your email though, you almost lose your online identity. I really can't get how Zuckerberg has missed that.
Micro[1] would be a better choice. Has normal keybindings, works more or less as you'd expect.

[1] https://micro-editor.github.io/
From a quick glance at the proportions and considering not only the register files are halved, but also the vector EUs, I'd expect a 25% increase in L3 or a 50% in L2. That and some lessened thermal constraints.
If you can’t do something about it, then don’t worry about it. If you can do something, then do, and don’t worry about it.
Polio crippled a ton of people that survived it. FDR, as well as one of my great-grandfathers, was in a wheelchair because of it.

(I know some people have speculated that covid may have a lasting impact too, but nothing I've read suggests it's anything like what polio was. Post-polio syndrome effected somewhere in the neighborhood of 25-50% of polio survivors in the old data, 80+% in more modern data.)
It looks to me you're trying to shove a diversity agenda by linking female profiles only.
Yes, an "administrator" I'm sure.
I just had a flashback to the challenge of finding 150ohm dual axis variable pots to have a joystick for an apple ][ because the ones that they sold at Radio Shack were 100ohm.
You can tell they're professionals because they prefer to avoid conflict rather than aggravate it.

"Benny told us later that the patrol had been menaced on several occasions by armed men, but a few well aimed shots above the heads of the mob had convinced them to melt away and not to mess with the patrol."
What I would add to this is a caveat and a model. The caveat is that individual specialization doesn't scale, and so long as you are just talent solving problems for someone, your employer will be the ceiling and bottleneck on the good you can do in the world.

The model is that as a polymath, your job is to scale. You don't know as much as specialists, but you have the unique ability to appreciate the value of what they do and this provides a natural advantage in leading them and scaling their talents.

Value is the act of bringing something from one place to another. As a polymath, you have multiple repositories that are relatively deep, which you can trade ideas between. However, what I advise polymaths is that if there is one skill you should cultivate, it's smuggling, because a lot of people who are good at one thing choose gatekeeping to ensure its status, and the biggest challenge you will have is getting value past gatekeepers and the people with a stake in their decisions. To succeed as a polymath, you should learn to live as a smuggler, fugitive, insurgent, and pariah. If nothing else, it keeps the needs of others central to your thinking.

Sure, you could just live comfortably as a pet and a curiosity, stuck in someone elses cubicle, solving problems for peanut tokens and scattered applause, but if that's not satisfying, the tools to change it are already in your hands.
On some level, you must know that meanings change based on the context a word is used in.

The sentence "i love you" changes its meaning based on the context.
you can say it to your mom, your partner, your friend or even complete strangers after they helped you. every time the meaning changes.
> It seems startlingly obvious, once you see it done, that `private def ...` is the idiomatic way to use it.

As you note that almost no one does it in Ruby, it is not the idiomatic way in Ruby. Idioms change slowly, and this wasn't supported for most of Ruby history.
I 100% agree with you, but generally I find "in before..." comments to be unhelpful at best and harmful to the discussion at worst. In the latter case, it's typically because it's not only attacking on a straw man, it's actually announcing, "Hey, I'm creating a straw man!" at the beginning of the comment.

If you do want to head off the crypto founders before they show up, perhaps you could write a comment along the lines of, "In case anyone is wondering, here are the reasons cryptocurrency/identity makes no sense when solving this problem..."
Had a similar experience. Left an iPad on a flight from Paris to Stockholm. Also had to go to a bunch of different places at weird locations of the airports (both in Stockholm and Paris), had to knock on closed doors and ring door bells sometimes for more than 20 minutes, only to be finally told the office was closed that day. It was also super bizarre that a private company, separate from the airlines, was in charge of lost items. I ended up being able to file a lost item claim form on paper at one of the offices, and I also filed a complaint online, but of course nothing came of it. Big effort, zero reward. Very frustrating.
Not if the alarm is in the headphones.

Years ago, I started sleeping with earplugs. I can't sleep without them now. I get the best and deepest sleep this way. I feel like it turns off my subconscious, because my brain is no longer processing external input.
Show HN: Notado – Content-First Bookmarking
Everyone's ancestor was enslaved. The Europeans by the Romans for example.

Civilizations conquered other civilizations and took the losing side as slaves, or killed them.
Perhaps it's neither a positive nor a negative trait, but rather a power with which comes the responsibility to use it for positive purposes?
Rednex Game Boy Development System
You needed to call the airline staff at the destinaton airport, not the airport itself. There's a phone number for the local team for the airline. They're not supposed to give it out, but if you ask enough different people someone will.
To anyone who doubts this: while there is strict enforcement for kernel code just having a signature on binaries or scripts silences errors.
Microdata analysis in BASH: a bash script that outputs the official poverty rate
"You shouldn't tolerate too well any injustice that does not target yourself" (freely translated from Norwegian) - Arnulf Øverland
Which features?
I agree with you. SQL needs to be integration tests. In this era of Docker spinning up a DB should be easy.
Enums are my favorite type in Rust. You can do so much with them, and even more using 3rd party crates such as strum [1], allowing you to do things such as iterate over variants and decorate each variant with custom properties.
How is this useful? Here's one example: an enum's variants can map to the values of a reference table in your relational database. When you seed your db, iterate over the enum variants and load into the ref table the properties associated with each variant (the properties you associated using strum). When you query values from the reference table, resolve the value to the enum type. You'll never have values in your table/model that are out of sync with your enum in rust.

[1] https://github.com/Peternator7/strum
Direct link to the script: https://pastebin.com/jFFN9HfN
Had no idea that MIDI recommended/required (?) an opto-isolator as part of the spec. Makes a ton of sense given the range (& expense!) of supporting devices and the intended use.
In my ideal world, we have a framework for brick-and-mortar businesses to act as internet notary service providers.

If you want a general-purpose open-id style account, you visit a notary, and provide them with a fee and proof of your identity. You tell the notary how much information they can share (in particular, whether they can release your name to the internet, or just the "we verified this account is held by a real person" boolean).

The protocol would cover much more than passport info though. You could have a notary vouch that you're a licensed driver, or have a college degree, visited a certain country, etc.

That might cut through some flavors of online nonsense. It would also allow people to stay pseudonymous, and yet enable law enforcement to subpoena their identity, if they go on a killing spree, or hack a few million dollars worth of bitcoin.