skysight-inc/HackerNews huggingface dataset:
> Clothing was something you bought for 'durability'. It was expensive and unfashionable.

And 'fashionable' writing on cheap disposable clothes is an improvement?
we can transform async generators into coroutines (async functions) by creating a new async function that simply starts iterating over the async generators, so every name is overloaded which makes communication kinda hard. I will just assume the happy case of @coroutine getting a downgrade. Don't use it anyway.
EDGF encrypted with HGJI is now the same as ABCD encrypted with DEFG. In this example, that means the distance between characters of the encrypted messages is the same as the distance between the original messages.

From my limited knowledge of the matter, that alone doesn't give you the cypher - you'll need to know additional information about the messages to get the cypher (statistics of words, conditional probabilities of letter sequences etc.). But without the one reuse of your cypher, you couldn't apply these techniques.
In the filter bubble that I inhabit, articles like this are breaths of fresh air - much needed reminders that everything is not gloom and doom.

Permanently moored as I am in my bubble though I can't help feeling that this type of article more an attempt to balance the narratives that I and my peers are fixated on, rather than paint a complete picture: so what about the trajectories of climate change, wealth inequality, opioid crisis, debt crisis, nuclear warfare threat, pandemic vulnerability, soil depletion etc?

I guess this is the nature of human discourse: we don't typically try to provide complete pictures, we tend to paint alternate pictures (aiming to support different courses of action?) in contrast to other narratives.

In the best of worlds all perspectives are based in reality, painted in earnest, and readily available, enabling a rational discourse. In reality that's obviously not always the case, filter bubbles being a case in point.
I have concluded that existing businesses and other certain factors limit the application of what I am about to say to a subset, but there is great room for a holistic "here is your IT stack" company that focuses on open source tooling, reduction of stack complexity, and working out many of the oft-repeated learning curves.

It's a huge market opportunity waiting to happen, because death or at least injury by a thousand licensing fee cuts is real. Small startups, small businesses looking to modernize, non-profits, etc would all be potential customers, and unlike the coast-centric viewpoint of HN, those tend to actually be the vast majority of companies in middle America.

Many MSP's and various resellers and salesmen make a living off trapping these in lock-in also. I have seen all of this over many years first hand. There is a reason Spiceworks took off so fast. There is also a reason they are hemorrhaging customers... because Spiceworks entire model was built around advertising lock-in type products to customers. (also their tooling sorta sucks, despite being easy and having a decent web front-end)
> let x: i32 = 42;

I'm sorry but this notation will always make me scream. C is so much simple:

int x = 42;

not "let", no colon, and no ambiguous "i32 = 42"
I’ve seen this guy’s posts a few times lately, he needs to learn to edit things down. What he’s saying is good, but it is extremely digressive, and the digressions never seem to return to the original point. I’m not the audience for this so I don’t have that much time to spare reading it, but I can’t imagine that style working well for an introduction to a language.
Powerful Rich Snippets WordPress Plugins: Schema Markup Made Easy
1M Is So 2011
The normal operation for an OTP is xor. Now if you reuse the random key K on messages A and B, you get encrypted messages A' = K xor A and B' = K xor B.
Now, an attacker who learns A' and B' just needs to do A' xor B' = A xor K xor B xor K = A xor B. Since your input is not random, but structured data like natural language, this is now relatively trivial to break using crypt analysis since you essentially end up with something like "MEET AT DAWN" xor "I LIKE TRAINS".

Story time: The USSR once reused an OTP key (after years or even decades, can't recall), but a US' three letter agency had the old ciphertext (A') and reused that to break the new ciphertext (B'). They probably had some scheme with a broadcaster saying "use codebook 1234, the secret is GARBLED DATA". At least that's the story a cryptography lecturer told us (and the fragments I remember).
I'm interested in this as well.
Some of the listed paid services either has free alternatives or can be easily DIY or self hosted on light vm or raspberry PI with fair enough functionality if you do not want to pay for them. Including error monitoring, topic/channel chatroom, git server.
My company is in stealth mode.
Mobile.SimbirSoft Has Released a Mobile Account for Insurants
I maintain several such files with emacs. Jump to definition or open it in two windows makes it trivial.
What’s the tldr?
Love the work Jeremy Howard does. Would definitely recommend the fastai course for anyone considering getting into ML.
There are certain dev tools like Gitlab/Github or AWS/GCP for your product. Besides can't things be simplified to just a couple of tools

Like just
1. Gsuite/Office 365
2. Asana/Notion

I am building a startup (Early stages) & think about this. I want to create one or two tools & use it.

Why need airtable, notion & trello at the same time?
Did you need to implement replaying events already?

Or do you use an out of the box solution?
Scammers are preselecting for people who would believe obvious lies. It doesn't make sense to even bother with "overly cautious", aware people like yourself.
Insurances can deal very well with bad things happening to an individual.

Insurances cannot deal very well with bad things suddenly happening to everyone, all at once.

That’s just an inherent property of insurances. I’m not sure there can be any other way.
Yes we tried to switch to Teams from Slack ... but everyone hated it with passion. Hate is not good for productivity...
Lessons Learned after 1 year of programming in Go as a C# developer
So if luck is the most important ingredient, would it make sense to go for ideas where you can see a lot of very different opportunities? Because that seems to be slightly opposed to the “correct” approach of starting with understanding a problem, then look for a solution. If you do, your solution is going to be extremely tailored to one specific problem, and if that doesn’t work out, it will be hard to do anything else with it. This is what the lock and key metaphor describes: the key only fits one specific lock, and is useless for anything else.

On the other hand, if you start with the solution before the problem, you can make more of a lock picking set... your solution may fit a whole lot of different problems. To continue to stretch the metaphor, you can now manipulate luck simply be opening more doors.
The Roman salute was co-opted by right wingers a while back. Probably not the best of your suggestions.
the wyhash rnd uses the similar trick. LCG are only for old 32 compact, on 64bit larger state and hash-like mixers are needed/much better. Just look at the graphics.
Throughout human history the primary role of leaders has been to convince their subjects that all their problems are because of some other tribe.

That continues to be the case.
HTML: The Inaccessible Parts
SingleFile [1] can do that, i.e. automatically save viewed pages and/or bookmarks, but it will save pages in HTML. Alternatively, SingleFileZ [2] can do the same but will produce zip files (disguised as HTML files). Disclosure: I'm the author.

[1] https://github.com/gildas-lormeau/SingleFile

[2] https://github.com/gildas-lormeau/SingleFileZ
How about `let x = 42` and let type inference do the work? I used to do a lot of C-style variable declarations in other languages but I'm warmed up to Rust's really fast because most of the time I don't need to explicitly name the type.
This post starts by telling it's lauded idea of not single threading large purchasing decisions. It's simply irresponsible not to. Even the poster knows that, and that's why he thanks God that another C-level actually showed leadership. Honestly, reading the post, everything points to this guy being buddy boss. Bosses should create a positive work environment both at and away from the job. They should not be friends outside of work with their subordinates (yes, I know this is speculation about this guy, but the principal is true). I wish all these c-level folks with their making sure any shit they create always rolls right past them and onto someone else would just give their money to the person actually shoveling the shit... Because they recognize value.
> So this looks like it is a way to keep the petro/gas industry

Yeah that also was my thought.

About steam reforming, it seems it still emits CO2, so it's far from being green.

So the greenest transport there is, is train and trams powered by nuclear energy, including merchandise.

This small train would seem pretty relevant in certain cases https://en.wikipedia.org/wiki/London_Post_Office_Railway for example in places where you want to diminish truck traffic, in dense areas. But overall electrified rail was always a green transport until auto companies lobbied to remove rail.

But again, those are long term investments, and capitalism never likes it.
Pretty off-topic, but this reminds me how I shared a lot of data in the past because I did not know back then how it would be able to be used to try and influence me later. For all we know, at some point in the future Google will be able to turn up this result when you search for his name, because it will know it's him in the picture.
Another shout out for bitwarden. Being open source, you can self host, and it has become a semi-standard of sorts, with alternative implementations.

As a sibling mentions, when you fill inn the user/pw of an account with 2fa enabled, the 2fa pin should be copied into the clipboard by default. (so the flow is: autofill username/password; submit, paste pin;submit).

Still think it's silly there's no simple way to get an encrypted backup of the 2fa-secrets from Google authenticator - it leaves the user and an attacker (with effective root on the phone) on uneven ground. For the user the app pretends that there is no shared secret with the server that could be compromised - the attacker simply access the sqlite db.
Interesting, but I can't think of any situations where I'd take chances with probabilistic periods in exchange for a slight speed boost over something with a known period and good output (e.g. a large enough mcg/lcg where you drop the low bits on output, or pcg -- these are all plenty fast and can pass the same tests).
CLI tools exist for composibility.

How many lines non-ignored lines are in my git worktree?

git ls-files -coz --exclude-standard | xargs -0 cat 2>/dev/null -- | wc -l --

How would you ever create a GUI with that much flexibility?
the argument doesn't work, because the assumption is that you have a large, but unhealthy population. But such a population is unable to sustain itself in the first place!

If a country is doing fine (production wise), then there must be way more healthy, able-bodied people than sick people. The draft will just target those able-bodied people.

And then there's the new style of war these days - drones, remote weapons and nukes. It either comes down to a small skirmish against brown people with little more than an AK47, or it's nuke time. i don't see war going any other direction.
And pay for it. Never paid as much for crappy food than in London.
I think it’s because there are 2 of them, each on the $6 plan. G Suite charges per person.
I wonder if the NSA can actively lead developers towards bad crypto practices.
Naturally ingredients mixture of spices and herbs to take before bed to burn fat
how do you avoid that?
A counterpoint (also based on personal experience): recently moved from a company that uses Office365 to a one that uses GSuite. Communications and document sharing feels far more simpler and productive. I can't quite put my finger on why, but working on GSuite just feels faster and less clunkier.
I found in "real" rust code I very rarely declare any types other than in function signatures and I keep functions pure, short and to the point.

It's so rare to have hardcoded values anyway.
5 GNU/Linux Distros to Try KDE Plasma 5.18 LTS
I tell people Elixir is just pretty Erlang.
The Spanish influenza affected young adults more than the elderly/weak because it caused the immune system to attack the body. The stronger the immune system, the more damaging the individuals illness.
It's less expensive than you'd think too. The key is that this only requires the vast majority of people to be able to work a large majority of the time. If it would cost more money to stop someone dying or going blind or suffering other major health problems than the typical worker is worth, the NHS just doesn't provide that treatment. There are plenty of other workers whose health care needs are much cheaper. Likewise, people wait months for the treatment of conditions that stop them going back to work, and that's fine - there are other workers. Highly-paid industries like IT which can't treat their employees like replacable cogs often offer private health insurance with lower waiting times as a perk that just happens to benefit them too.

This is across the board. On the one end of the spectrum, the NHS only rolled out flu vaccination for infants this flu season and vaccinates a lot less aggressively than the US in general - if you have to vaccinate a large number of people to prevent a few serious illnesses that doesn't work out cost-wise. On the other, a lot of the expensive cancer treatments, as well as cutting-edge treatmeents for chronic conditions like cystic fibrosis, aren't available either. (Though some utterly ineffective cancer treatments have been funded for political reasons.)

On the other hand, there was some bizarre business where the NHS decided not to offer a cost-effective cure for Hepatitis C to most people with it, even though it's a communicable disease with serious long-term health effects and curing them would probably save money in the long run, because the short-term cost was too high. I think they ended up making a deal with the drug companies very similar to the one a number of US states did, where they got reduced per-treatment costs as part of a program to aggressive find and treat everyone including homeless people and others who don't have access to healthcare. Sometimes the US and UK are less different than the press let on.

I'm not sure how well the NHS would cope with a coronavirus pandemic either. In a good year it barely has enough resources to handle the seasonal flu, and this has been the worst flu season for it in a long time.
I agree, self-driving cars in about 10 years is extremely optimistic. I'm surprised to see Gwern espouse that view. I think it's revealing of the awesome power of Musk's own reality distortion field.
During WWII the British Government Bought All of the World’s Tea
> Currently, the code could be written with normal overloading (one for int and one for unsigned). No traits required

f( (uint8_t)0 ) will dispatch to the overload f(int) with overloads. The type-trait code will dispatch to f_unsigned(unsigned).
3-car 200-passangers train going 160 km/h in Sweden uses 5.6 kWh per 1 km [1]. More than that when it accelerates, but it mostly happens near the stations where there is electric network.

Or if the train stops there you can just detach used batteries and attach freshly charged ones - should help if the charging is too slow (but it shouldn't be - after all if the electric network is sufficient for powering trains when they accelerate/decelerate and use several times more power than on cruise - then it should be also sufficient for charging batteries powering trains when they cruise).

That's 560 kWh or 112 of used Tesla battery modules 5 kWh each. You can buy one for 1300 USD [2]. That's a recyclable resource (from used electric car batteries) and it would cost about 150 000 USD to upgrade one train with these.

150 000 USD is peanuts compared to multi-million USD prices per car of most modern passanger trains [3].

It would also add 2.9 tonnes to the train, which isn't that much for 3 cars train that weighs 165 tonnes [4].

You could add it as a small aerodynamic car trailing the train that can be swapped on stations if needed (so you don't need to upgrade all the trains, just buy enough of these cars to serve the unelectrified lines).

This would bypass the need for new hydrogen supply chain, would have much better synergy with already electrified tracks, would allow to gradually improve the system, and wouldn't need any carbon emission (unlike hydrogen production).

It's also a proven technology unlike hydrogen power.

Sources:

[1] https://www.quora.com/How-much-electricity-is-used-by-a-trai...

[2] http://store.evtv.me/proddetail.php?prod=TeslaBattModule

[3] https://montrealgazette.com/business/local-business/bombardi...

[4] https://en.wikipedia.org/wiki/Regina_(train)
I don’t understand this comment. There is nothing magic there, the @ is just syntax for using property wrappers, which you can write and document yourself, they are a language feature. The argument parser is just a swift library that uses this feature. In particular, @Argument is not a keyword.
Yes, but no one is disputing the legal eligibility of movies or songs for copyright protection.

The question in play is how much of of the copyrighted work may be reproduced before it is infringement.
> I find that search engines used to be much better in giving me relevant useful results 8-9 years ago.

I completely agree. And it feels like it's steadily going down too, search results now are way worse than they were 5 years ago which were somewhat worse than 10.
Just because you don't want healthcare controlled by the federal government doesn't mean you're opposed to healthcare itself, and some of the countries with universal healthcare have some of the highest infection and death rates so I'm not sure how your solution relates to COVID-19.
>Clothing was something you bought for 'durability'. It was expensive and unfashionable.

That's the one thing I don't think is a real improvement. Fast fashion is wasteful and has lead to actually quality clothing being really hard to find. There's this old fruit of the loom t shirt I have that will probably survive all my current ones.
I've been digging through asyncio for few weeks now and I actually really didn't like this article.

The thing that made me finally click with asyncio was simple explanation that coroutines are "pausable functions" and few hello world/sleep examples. While this article goes into servers, threading and all sort of overly complex and long explanations.

For some people this might be more approachable but I don't see anything "hitchiker's guide" about this article in particular.
Add DNS66 from the fdroid store and you are set
I got out of it for a lot of the reasons you mention above. It made me not enjoy programming much anymore. I switched to iOS development, I'm not sure why really, it could have been anything I think I just picked it up at the right time and started getting work and really enjoying it. Native mobile development's hype period is long gone, it's a smaller and more mature and the code quality is often far better, cross platform and PWAs are eating up the boring json-viewing app market so whats left is actually pretty fun stuff if you can get it.
Can confirm. I wake up and disable my alarm before it goes off all the time. I think the brain just has an accurate timer.
Apple’s ridiculous $400 Mac Pro wheels are missing a key feature
Underscore can also be the equivalent of a wildcard in pattern matching.
That's what I understood also. I've spent tremendous amount of time understanding my diabetes, and your comment here validated my assumption in the case of CoV.

It's still quite scary to see how diabetics have a very high risk with the virus. Luckily the treatment I get with my closed loop gives me an easy access to excellent control.
Sorry, that is not my definition of "testing civilization". Everything you mentioned is luxuries, or has workarounds (e.g. conference call instead of physical meeting).

Wake me up when there is a water, food, or housing shortage or significant amount of population infected and dying because of a global disease.
Clumsy Equations (2010)
Anything is better than nothing, isn't it?

Savings rate goes up with income. On a percentage basis, the 10% are going to be spending more money at restaurants, shops, etc. This is, arguably, preferable to the 1% investing it in the stock market.
Ask HN: Where do you improve your skills or learn sth new?
Hi everyone

I'm wondering where do you improve your skills or find interesting stuff to learn and improve your life. I'm a programmer, interested in Javascript, Rust, C#. Where should I look to find quality courses connected with my interests or just things connected to CS?
If you are going to use a marketing buzzword like "APU" in the title, please do us a favour and explain what it means.

https://en.wikipedia.org/wiki/AMD_Accelerated_Processing_Uni...

APU = "the marketing term for a series of 64-bit microprocessors from AMD..."

Excuse me for not keeping up with the latest corporate-speak made-up BS.
I'm not sure you fully grasp what your opponent means and why they mean it when they say "free markets." As an ideal in the market place of ideas, free markets as a concept aren't ever created by ADDING regulation. Free markets generally imply that a system left to itself will eventually regulate itself through market forces and will produce both more output and more freedom as a result. Unfortunately, most people learn that we have free markets in America. What we really have is nothing like a free market. It's some strange mixture of chrony capitalism, elitism, and government regulation. I know this isn't a healthcare post, but it's a perfect example of a misaligned system that sometimes tries to use the word "free market." If the market were actually free, the government wouldn't pick winners that abandon a motive based on patient and public health outcomes in favor of profit. Now that we aren't forced to buy a garbage product anymore, family doctors have been leaving HIPPA behind lately and doing a subscription model with patients and making HEALTH OUTCOMES the priority and not profit. That is a free market competitor... Not the government itself or it's regulations. Free market ideals give money to common people and let them choose. Otherwise, they are just "free" slaves and not participants in the market.
Why use both Notion and Trello for product/feature planning?