skysight-inc/HackerNews huggingface dataset:
If looking at a source browser of a previous version of your code is not adequate to understanding how it worked, such that you wish to "rewind" to that version and run it, then your code is very poorly written.

It is indeed difficult sometimes to understand our own code some time after it is written, but by following good practices (ideally functional, with mostly pure functions), it should be readable.

I will venture a (biased) guess that one of the biggest challenges to understanding the code was the mutation of objects in the process. This is the #1 reason why functional programming is superior. With FP, you can grok what a function does and then comfortably forget about how it does it. It takes input, it produces output. Period. As long as you agree with the transformation algorithm, you can reduce that complexity to a one-line description.

Even in non-FP-first languages, you can usually write pure functions. Some scenarios have enough performance demands that you must mutate things, but probably most situations can be approached with FP styling.

All this rewinding and undoing is a distraction from the real problem. The real problem is that "it smells". It smells like a level of complexity that should not be.
> because it doesn't make economic sense to mine on non-renewables

That's not true at all.

You can enter a power cost into this calculator: https://www.nicehash.com/profitability-calculator/nvidia-rtx...

It comes out positive using energy prices from virtually anywhere.

The idea that mining is powered purely by renewables that would somehow otherwise go to waste (that is, not take fossil fuel plants offline) is pure FUD.
Yep, I have a old Geforce GPU with only VGA/DVI output just to use nView (although I had to modify it slightly). Such a weird thing, having a nice window manger for Windows but requiring non-technical people to buy an overpriced GPU to use it.
Be careful about early reports: for example, the claims an entire nuclear power plant tripped, and that it was due to a lack of weatherization. If you drill down to the Nuclear Regulatory Commission report https://www.nrc.gov/reading-rm/doc-collections/event-status/... (go to the bottom) only one of its two reactors tripped due to at the time of the report unknown problems with two feedwater pumps. The weather is of course a likely cause, but whatever it was it didn't affect the other reactor.
Command line utility to generate functioning virtual escape room frm JSON config
I'm confused... Are you saying the ongoing MAPS FDA Phase 3 trials [0] are more about safety than efficacy? The whole point of Phase 3 trials is to prove efficacy.

Additionally, earlier studies [1] measured the participant's CAPS (Clinician Administered PTSD Scale) pre and post treatment which showed pretty significant results.

[0] https://maps.org/research/mdma/ptsd/phase3/timeline
[1] https://maps.org/news/media/7538-reason-ptsd-study-finds-dra...
Young people have absolutely no power in this society, the fact that the world has come to a halt for a disease with an IFR of 0.25% while entire generations face economic, mental, social crisis should speak volumes.
It's in the context menu for files/classes at least.
Great idea, but very hard to pull off. The hardware is easy, but all the wrting and plot needed to go from a demo to a fun game takes a lot of hard tedious work.

I encourage the effort, but don't want to well it short. The idea is the easy part.
Committing removes the diff view in PyCharm, and I can't lose that.

By "diff view" I mean I can see all the changes I've done from the main branch.
and yet 85% of their grid power is produced from gas, oil and coal, a tiny portion from nuclear.
Literally every company takes on large amounts of leverage (debt) because they can likely produce more value with the $ than the interest payments on the debt. Just because you have the cash doesn't mean it makes sense to not take on debt.
Nope. Sometimes I’m rewriting something and I just want to see what the old code looked like before I changed it. There’s nothing smelly about that.
Are you certain the requirements can always be met without complexity?

Have you ever had to build an os kernel, a database, an mmorpg server, a realtime 3d game engine, a production compiler, jit, or garbage collector?
It isn’t public [yet]. You should check out our plug-in CodeRibbon though! Available for Atom.

https://utk-se.github.io/CodeRibbon/
Yes.. because a need would exist for someone to tackle.
5-MeO-DMT: The Story Behind the '“God Molecule” (2020)
It brings tears to my eyes. When the touchdown happens, these people experience a level of joy and satisfaction which I can only dream of while doing my job of optimizing ad clicks and profile photos.
Does it give you paper cash? Because I can receive money back from Kraken to my bank account too, but that means 100% local perverted KYC AML trouble even if it’s clear that I sent the exact amount to Kraken from the same account recently.
I agree with you that the C# example is far more readable.

One thing I like about Rust is that you can implement traits on standard library types. You can imagine implementing a "Where" trait on e.g Vec<T> (btw, you don't have to, since "filter" is already there) that would return an iterator that can be used by the next method in the call chain.

Unfortunately you can't "extend" standard library or built-in Python types like this.

In Rust your example would be:

strings.filter(|s| s.starts_with("a")).map(|s| s.len()).sum::<u32>()
No, but it did ask for the email address twice.
> Ensuring the electric grid doesn't collapse when it gets below 20 degrees is in fact exactly the sort of thing that can be fixed with enough application of force.

This seems like the sort of belief system that inspired the story of King Canute and the tide. [0]

> Spend the money, or we'll take it from you. Done.

I understand that a lot of people only care about justifying the expropriation of wealth. But it seems you’ve forgotten to include the part where the expropriation is actually justified on the basis of promises to do something good with that money.

[0] https://en.wikipedia.org/wiki/King_Canute_and_the_tide
I think you are using a different definition of middle if you believe 90% of people fall within it. If the population was 85% white and 60% middle class white middle class people were about half of the population. The portion of the population actually privileged in 1950 was basically the male half of that demographic so around 25% of the population.

A substantial minority of that segment now shrunk to more like 17% wish they could have the 50s back for some reason despite how bad the total picture was for most people.

Do you have a cite on the 1950s being substantially safer? Please note an actual and official source of data wherein data collection is to a uniform standard over the time frame discussed. For example a system where figures are collected from some areas and not others and coverage increases towards 100% over time will show an increase in crime rate even when there isn't one. Conversely a system where crimes against minorities aren't investigated or punished will see fewer crimes reported even when reported crimes are faithfully counted.

An example of a bad source is disastercenter.com which doesn't obviously cite how its data is collected, whose frontpage says nothing about who runs it. It is at best a summery of other sources which you aren't at liberty to inspect. Wherever they get their data might be a good source but its impossible for me to ascertain this.
> audio

And video.
This is awesome, I would use it. Maybe make it a visual studio code plugin?
Sorry, different Ben. I grew up in Victoria, BC, never lived in Seattle, and have only painted a handful of times in my life.
Basically same deal here, though using 'magit' and 'wip' instead of 'nt'. ('No text', one assumes?)

Doesn't help with IDE settings and such, but that's such a niche situation that it doesn't matter at all for me.
It’s still possible to lose money on rsus if the company value plummets bc they are taxed on liquidity event (assuming double trigger vest)
From what I've seen, you cannot keep 100% of generation online. However, in a properly designed and winter weatherized system stations should be able to come online to pick up the slack. In the reports I've seen this seems to be a high rate of failure point leading to the issues seen in Texas this week.
>I DO NOT need to sell an investment to make money on it.

You literally cannot make money from an investment without selling it (sans dividends, rent, etc but thats not really what we are talking about)

In the case of BTC and TSLA, people are ONLY buying it because they expect it to go up, and then they will sell to someone "idiot"
Show HN: Archive as you browse, store locally and/or share with others via IPFS
Who’s GI Joe now?
For certain values of ‘us’ ;)
> I've heard so many times that it's renewable energy being used because it's so cheap.

It's a myth from the pro-cryptocurrency crowd.

With recent price spikes, mining is profitable even if you have to pay relative high prices for electricity. You don't need to have cheap energy.

Also, it's another myth that we have an abundance of hydroelectric power that would otherwise go to waste if not for Bitcoin. With modern power transmission it's trivial to send power through the grid to other locations, and nobody is building power plants in the middle of nowhere without a way to send that electricity somewhere else.

Finally, Bitcoin's power consumption is additive. Energy that goes into Bitcoin mining is energy that isn't being used to power cities and other infrastructure, which must still get its power from somewhere.

Don't believe the whitewashing campaigns to downplay Bitcoin's energy usage. It's very bad.
In spite of how it seems the "web keeps getting bloatier", something did in fact improve during the last year or two. A whole lot more websites now at least load with javascript turned off. That definitely wasn't the case around ~2016 or so.

I tried disabling javascript a few years ago and the entire web broke. Tried it again last year and have had much more success.
They can start therapy or get psychiatric help sooner, or make lifestyle changes sooner that will result in them living a fuller life of being present for more of it.

Contrary to what you read or hear around some places, we don't know if psychedelics "accelerate" the onset of symptoms of degenerative mental conditions. For example you may experience schizophrenia-like symptoms under the influence of LSD and while that may be a warning that you need to see if you will actually develop "natural" schizophrenia, maybe you will never do. But maybe you will! and you would have never known without that "bad trip". It's true that there's a lot of anecdotal evidence of subjects that don't "come back" after a psychedelic induced breakdown, particularly when they are in the bipolar spectrum. But most people, even the ones that actually have mental conditions, do come back and a lot of them report it helps with symptoms or commodities: most notable depression or social anxiety but sometimes also paranoia, suicidal idealization or intent to harm others.

If you are interested in the connection between psychedelic use and mental illness you should look into the work of researchers that adhere to the psychotomimetic theory of the drug/brain interaction. A good recent place to start is this compilation: https://www.sciencedirect.com/book/9780128047910/the-complex...

While it's on cannabis use, for which we have way more evidence of it causing early onset of degenerative mental conditions than psychedelics (even LSD), it does reference a lot of studies about the effects of psychedelic experiences in individuals prone to neurodivergency.
I am one of those "not willing" people. I encounter the same issue discussed here without even thinking about it, and solve it as such:

1. Realize I need to check how my new code looked like 5 min back.
2. Copy full file into clipboard, undo by a few steps
3. Do a temp commit on GitHub desktop
4. Paste the new code back and look at the diff on GitHub desktop, and if needed undo the temp commit from above.

Is this more clicks than the vin shortcut? Sure. But I don't have to go learn the internal tree structure representation of my text editor and spend my time in that universe. I have found a way to do what I need to with the tools I have in hand.

This is the same way how the majority of finance runs on excel when they could do better with better programing. In the end whether you get the job done in fields where you're not billed by the second is not dependent on how well you use your tools necessarily.

The other analogy is cars - for most people it's something that gets them places, for others it's a way of life if not at least a more involved proposition.
Funny. I always heard the more hair you lose, the more head you get.
If only there were long term projects with real return on investment, and people in need of enployement.

Why isn't the money printer funding wind turbines, bridge repairs, etc. Instead of inflating ezisting bubbles.
Not totally sure what you mean by up market? Like not a sketchy street corner guy but someone that sells bulk?

https://www.justice.gov/usao-ut/pr/shamo-sentenced-life-pris...
15-20% renewable power doesn't mean they aren't "a bastion of oil/petrochemical industry climate change denialism", especially given how much oil they produce.
I’m sure the issue was more about patching their Python.
It was one of their 2016 election promises to introduce gay marriage to a postal plebiscite. The day after the results, a gay Liberal Party member introduced the proposed legislation amendments.

It was an LNP election promise, an LNP plebiscite and an LNP piece of legislation. It was LNP through and through and the credit is theirs.
It's kind of a hot take at this point, and in a vacuum what the person is saying is, if anything, laudable -- he's announcing his own subject matter ignorance/inexperience and making a go of it as an autodidact, etc. Humble!

But in the current context, this looks a lot like a lot of other, more famous attempts to disrupt or solve age-old, difficult problems using technology or software ... Problems that turn out to still be tough once the software-savior has put the solution on the market and absconded with the money. I think parts of society are starting to read a bit of arrogance in this approach after 20 years of big tech swallowing us whole.
I'd encourage you to go find some historical reporting from the Feb 2011 cold snap. It becomes immediately apparent that it doesn't compare to what has happened over the last week. It might even occur to you that people citing it are maybe trying to mislead others.
Mars Observer is mad that you forgot to mention it!
https://en.m.wikipedia.org/wiki/Mars_Observer

Actually it is not mad - becase it exploded into millions of pieces due to the leaky fuel system...
Do you have a source that isn't so deficient? The home page is a weather website which doesn't state who is behind the site or how they collected their data. When I see numbers without information about how they arrived at them I just naturally assumed they made up whatever numbers aligned with their ideology and since its from AK I'm assuming this is a conservative one.

If you can't vouch for a source then using it to make a point is wasting your time and mine.
We didn't need 100%. We needed to not be without power for days. The "rolling blackouts" turned into myself and others were basically sacrificed for the grid because the load shed requirements were too high to roll.
Fair. In the documents I've found, it's not uncommon for sensors to have issues with the cold weather and force the station offline.
We Can't Tell Good Wine from Bad
It can even persist history across restarts if you set undo-tree-auto-save-history.
The Edge That Underdogs Have over Established Brands on Google
The Adams Event
Exactly my thought. I only want to hear wisdom from drug users in their 80s after a full life. Even losing your shit in your 70s causes enormous emotional distress for family members. Talk to someone who had looked after an elderly Alzheimer’s patient.

Imagine being in the nursing home with the heroin addict who thinks he has everything under control.

Everything is about risk. Bad shit happens in life and people have to deal with it. Bad shit can happen unexpectedly. And it’s difficult to know how it will feel when it happens. Look at how many people will “hit the bottle” because someone dies. Or a relationship ends. Imagine if that becomes something 100x more risky.

We see all the disastrous effects from legal drugs and now he wants to add more to the mix.

The difficulty in obtaining drugs reduces their use. That is the bottom line. Everyone wants to argue against it but it’s the clear reality.

This guy just lives in a bubble.
You want a space cadet keyboard: http://xahlee.info/kbd/lmi-cadr_keyboard.html
> BTC needs a hard fork in order to increase this dramatically

Which was proposed, and shot down by core Bitcoiners.

They aggressively do not want to increase the transaction limit.

Miners want transactions to be expensive, because that's where they'll get their money when the mining reward falls again.

It's mind boggling that people will complain about banks conspiring to charge them hypothetical fees, then rush to use a cryptocurrency that has double-digit transaction fees when nobody is really using it for anything other than speculation. The reality is that Bitcoiners don't actually want people using Bitcoin as a currency, they just want you to buy and hold. No selling, no spending, just buying. That's the only thing that drives the price up, and that's the only thing they want you to do.
> The value of a stock is the present value of all future dividend

That is an idea from the 70s. Not many people would agree that there is an actual fair value for a stock anymore, much less that it is driven solely by accrued future dividends.
Pretty much all CPUs are general-purpose. The vast majority don't run anything third party. Phones having general purpose computers isn't any kind of argument for who has what access.

And if the alternative for a vendor is being forced to lose enough revenue by letting any third party do whatever they want, then Apple will make an app for your bank, by contracting the bank to pay for the development.

The reason the third party platform is currently huge is because Apple created a platform for devs to publish on. If the rules were the ones prescribed above Apple would have likely taken a different route. Changing the rules because people are unhappy is simply bad precedent.
some numbers are ilegal
This might be a good argument if:

A) the environmental impact of manufacturing a solar panel is 0 and carbon neutral itself (it's not),

B) there's an excess of solar panels available too (not really),

C) the bitcoin miners aren't often running on coal power during the nighttime hours (they often are), and

D) there's nowhere better for mankind to deploy the capital used in deploying miners and renewable power production than for cryptocurrency mining (dubious).
The environmental impact of mining is quite substantial and I agree that this calls into question whether cryptocurrencies are of overall benefit to society.

However, it is important to note that mining does do something useful: it secures the network from attack. To my knowledge, there is no known alternative solution to the distributed trust-free consensus problem.
I can't find this information online... There were four cameras capturing video of the descent. Do we know when that footage will be available? Days? Weeks? Months?
Harry Potter and comic book superheroes are really popular.
Just want to give a shout out to Rick Doblin, the founder of MAPS, who has been fighting this fight since at least 1990.

He, like myself, is an alum of New College, a non-traditional college in Sarasota. He graduated I think the year before I matriculated, but his presence was well known on campus and his house was a legendary house he rented out to a few students every semester.

To be clear, MAPS already existed back then, he was already working to get psychedelics (and entheogens such as MDMA) incorporated into therapeutic modalities.

Back then the idea of legalized psychedelics seemed like a pipe dream. To see his dreams begin to come to fruition 30 years later must be one of the most satisfying things a person can accomplish in his life.

My hat's off to Rick Doblin. What a mensch.
That's what a git browser is for. It's not like your code is gone forever, unless you are undisciplined.
Like an ongoing stream of history where I have a slider I can drag to revert on-the-fly.. That'd be cool. I mean you could easily record and do this, but that doesn't copy-paste well.

EDIT: And of course I read the article after reading the comments.. Haha, VS Code plug-in in 3.. 2..
> On Friday 22 May 1992, Goldin announced unexpectedly that the "worm" logo would be replaced by the traditional NASA blue "meatball" logo. It had been replaced in 1975 by the NASA red "worm" logo. By 1997, Goldin had started a largely successful campaign within NASA to eradicate the "worm". He would become infuriated and vulgar whenever he would see a "worm" logo that was not replaced.[2] By 1998 the "worm" logo had entirely disappeared from use both in uniforms and in equipment.

Source: https://en.wikipedia.org/wiki/Daniel_Goldin
No one in the middle?
They’re not really making a point that needs evidence. If you have no idea what Ethereum is, it’s not unreasonable to suggest that you take a quick look at their website before participating in an web forum discussion about it.

This is different than people blithely spouting “it’s not my job to educate you” when asked to give some support for their controversial, unsubstantiated claim.
That's great until you or someone in your household has a pre-existing condition, then you're hosed. Either you can't find coverage or the coverage you can find is both poor and unaffordable. The way that people with pre-existing conditions get health insurance in a company, as is, is through batch purchase of coverage. This isn't on the table through a single purchase agreement, which is what the great "free market" solution offers.

There are places where the free market is fantastic, but emergency services, like the fire department, police services and health care, seem odd places for nongovernmental intervention. Emergency services, foreign relations, trade, taxation and border disputes are what the government signed up for and they seem the least functional at the first two. 60% is a pretty non functional average.
I am very surprised by this.
I seldom use the control-z shortcut and I've been writing code for several decades...
Yeah, all drugs should be allowed. Just have sane programs for sanitary usage and perhaps a small tax on users so that the peripheral facilities can be run without taxing wider population.

If one (adult) can’t handle drugs then help should be readily available as is for alcoholics.

No need to get political and emotional about it, there’s a pragmatic way.
You can't be serious. The man is an entertainer.
I never said there was no complexity. The idea is to manage it well.

And sure, it may be long ago, but I have some code in a AAA game. Even C++ with hundreds (*edit) of files, we got along just fine without rewind.
> and are wildly inefficient with power and computing resources for what they provide.

As I've said elsewhere: doing one transaction on bitcoin uses approximately the amount of electrical power that an average US household uses in 2 weeks.
Vote with your wallet then. ATI has a Radeon they’d love to sell you.
Even the phrasing is weird. To “meet my responsibilities” as of it’s a burden or a job. Not like: “as long as I can remain a great parent and partner”. Maybe I read too much into it.