skysight-inc/HackerNews huggingface dataset:
I might be misunderstanding the problem statement, but my take:

My impression is that for N max trades and M days of data, the "obvious" DP solution should be 2*N entries and O(NM) time, by tracking best profit for n trades whether you have the stock, where your update looks something like profit[trade_count=n, day=m, has_stock] = max(profit[trade_count=n, day=m-1, has_stock], profit[trade_count=n-1, day=n-1, has_stock] + transaction_cost[day=n, has_stock]) -- namely, as you've described in the article, either do nothing, or make a trade. Of course, you wouldn't store the full history -- you'd only need yesterday's data and today's update.

Adding accounting to track the trade history is doable without bloating runtime too much, but it does increase space usage substantially.

That said, if you don't have to keep to a strict number of trades, the DP solution should be able to fit in constant space (well, linear in number of days if you want to keep track of history for the best sequence of trades).

I really like the idea in the article of adding a transaction cost and varying that to constrict the number of trades -- it reminds me of a cooling schedule for simulated annealing, and it's definitely not an approach I see interview candidates reaching for regularly.
Exactly, the only thing this test reveals is David Rozado's far right biases.
I used to work at havocshield.com, which is sort of a walkthru service for organizational security. It's good for small companies in your situation, without any dedicated security staff.
Some societies have largely eliminated classes of murder such as mass shootings or police shootings. The future's here, it's just not so evenly distributed.
This is mostly incorrect. Indie business are what the name says, independent bootstrapped businesses that does not take venture capital. They are usually SaaS but not always. Lots of examples on the IndieHackers podcast, including a guy who makes money doing cookie delivery.

You're more likely thinking of Instagram, Twitter or YouTube influencers.
>why shouldn't they?

Because they are doing so under the false pretenses of urgency and desperation, when they are very well off.
The Mozilla foundation situation is equally hopeless these days:

https://lunduke.substack.com/p/firefox-money-investigating-t...

All the old heroes have started rotting from the inside and turned to fungus.
I don't know why any of this is surprising. I don't know anything about the personal politics of any other major automotive CEO and my guess is that it isn't by accident. These companies know their asking their customers to spend a large amount of money on their products and negative feelings towards any particular brand aren't helpful.

Everyone who's ever own a business knows that money from Republicans is just as good as money from Democrats. Michael Jordan declined to throw his name behind a Democrat running for office in 1990 because "Republicans buy sneakers too". Musk thinks it's his job to influence public discourse. That's not a good thing if you're a Tesla shareholder or someone invested in one of Musks other businesses.

I've been saying this forever, even on HN. Tesla is a better company without Musk running it and the board should just rip the bandaid off and move on. Musk is dishonest, distracted and unable to meet basic expectations at this point. Products are late, engineering is distracted and people are starting to realize that Tesla will never meet the expectations set by the price of its stock.

The great automotive brands, even the ones NAMED after their founders are larger than any particular leader.

Musk has been a great for getting Tesla where it is today, but his style of leadership isn't what you need at a company the size of Tesla today.
"Whenever I read something like that I do not feel motivated but enraged. Sometimes people are really victims. Mainly of chance."

Did I make a generalization? I am specifically talking about the OP.

This person is not a victim of chance, obviously. They tried hard [hopefully] and it didn't work, and then blamed everyone else.

What did they try to do? Get rich via a startup.

No one on the planet is entitled to millions of dollars. Very likely they can get a job for $100k+ - better than most Americans.

Yet even then - they blamed everyone else. You don't win by blaming others. If you can't admit your own faults, you're doomed as a startup founder.

It doesn't matter if this was chance or not, but I assure you this circumstance had nothing to do with luck.
I’m a happy user of https://notifier.in/ for this purpose.
Sounds similar to what Google's SayCan is doing. https://say-can.github.io/

They taught it separate skills. When a situation arises, the skills (which you could almost consider sub-agents) compete to decide who is most likely to be relevant here. Then that skill takes over for a bit.

They also have a version called "Inner Monologue" in which the different parts "talk to each other" in the sense of collaboratively creating a single inner monologue, allowing for reactiveness/closed loop behaviour.

I interviewed 2 authors of SayCan/Inner Monologue here: https://podcasts.apple.com/us/podcast/karol-hausman-and-fei-...
The Snowden leaks were about the government secretly spying on people. These leaks include many topics, but a common theme is the government secretly pressuring companies to censor/punish users for saying anything that they did not approve of. And that approval was erratic, frequently targeting one of the first casualties of authoritarianism - humor. The leaks also tie in with this thread since as the the FBI also "requested" location tracking information on people as well, of course with no warrants or any sort of due process or oversight whatsoever. I look forward to one day reading the 'FBI files' to see how that information was then completely responsibly used.

Another revelation comes from your question itself. If you rely on mainstream media outlets to inform you, you'd either have no idea these 'leaks' exist, or a distorted view of what they contained. The NYTimes ran no less than 4 articles on 8 journalists being temporarily suspended on Twitter, promoting international regulations, laws, and even sanctions over it. But the entirety of these leaks, and the massive amount of content and information contained within? Well that's just not newsworthy contrasted against 8 journalists not being able to post on Twitter!

The media's independence and integrity has decline substantially since Snowden, with seemingly no bottom in sight.
People don’t care about community, because there is an infinite amount of pseudo-community in their pocket.
Despite all the negative about wikipedia, it’s still sort of part of “old internet” that I don’t want to die.

Even wikia, which was spun at first as “slightly more commercial wikipedia”, later became Fandom, which is something so horrible that I don’t want to look at

Look at WikiTravel which is more commercial WikiVoyage… they immediately went and stuffed it with ads and trackers.

And I mean wikimedia is fine NOW, but economy is going down, I will be happy if it has a certain rundown.

I am not entirely happy about all decisions that they do, but they’re still not pushing me any tracker. I am fine with closing some pop up.
Dead simple base ISA and easily extensible means it's an obvious choice if you want a custom processor with your own custom instructions.

Scalable so the same ISA (with/without certain extensions) can be used from the smallest microprocessor to high end CPUs.

Compressed instructions gives very high code density (and unlike ARM Thumb doesn't require weird mode switching and is available for 64-bit ISA)

It's not the first popular open ISA. There was OpenRISC before it, but it was fatally flawed (branch delay slots). So RISC-V is arguably the first good popular open ISA.
I was looking for solutions to get RSS feeds of twitter and YouTube profiles and came across this useful tool: https://rssbox.fly.dev/
I do not share this expectation or assumption. The difference between a for-profit and a non-profit corporation is defined in the tax code. It’s a legal distinction, not an ethical one. Some non-profits exist mainly to enrich their officers, and some profitable corporations are mainly concerned with benefiting society.
They're guidelines, that means they're not rules.
Thanks, I just did that. It said "hide appeals for a week" but that's better than nothing.

As for being a "sharp-eyed accountant": you don't have to be one of those to ask where the money is going. If it's going to reward the best volunteers or get better servers, fine.

Charity Navigator gives them a 99% rating: https://www.charitynavigator.org/ein/200049703

You can look at their 990 form on the IRS website:

====================
The Form 990 is a document that nonprofit organizations file with the IRS annually. We leverage finance and accountability data from it to form Encompass ratings. Click here to search for this organization's Forms 990 on the IRS website [1] (if any are available). Simply enter the organization's name (Wikimedia Foundation) or EIN (200049703) in the 'Search Term' field.

[1] https://apps.irs.gov/app/eos/
Non-HTTPS doesn't mean "an attacker can modify how the website looks", it means "an attacker can server whatever the heck they want". Ads, malicious JS, or a PDF with a payload that pwns your machine... Neither you nor the "real" server are in control without encryption, a MITM can do anything.
Americans really think their schools don't provide solid education, it's so weird. Look at your PISA scores, they're reasonable. Could be a lot better, sure, but so could almost everything. Especially if you take into account how most countries with better education systems have less than a 1/3 of the population, are mostly developed monocultural nation-states, so a lot more capable of standardizing public services nationwide.
I am so glad you posted this. Let me take the opportunity to say thank you. The Wikimedia Foundation does some of the most important work in the world, I am profoundly grateful for your work.
A CA system will corrupt data during a partition. R1 will continue to accept writes/updates that R2/R3 cannot see. Likewise R2/R3 will perform different updates to the same data that R1 cannot see. Thus R1 and R2 will see inconsistent state.
> Tech is weird in that you're competing against a lot of very smart people, the barriers to building a tech product are very low, and the competition is global. In contrast if you open a used car lot you'll typically be competing with few average business men in the area who had the capital to start the company. Your chances of success are astronomically higher even if it's capped.

This is exactly what I tell some of my non-techie friends who are interested in entrepreneurship. Problem is, it turns out most people care just as much about the journey as they do about the destination and turn their noses up at the prospect of being another guy/gal running a drab retail store down the street.
I'd also like to know how to tell the difference between "owning the libs" and "saying things the libs don't happen to like". I guess one implies a purely troll motive.
It’s the dishonesty of Wikipedia that bothers me. The implication is that donations are urgently needed to keep the website running. In reality they have $300m in the bank and revenue is growing every year[0]. Even Wikipedia says only 43% of donations are used for site operations[1], and that includes all of their sites, not just Wikipedia. Fully 12% of the money they collect from you is. . . used to ask you for more money[1]

The whole thing just feels skeezy. They may have a noble mission, and they may need a $300m endowment when previously $100m was the target[2], but they should make that case. Acting like the site is in trouble and desperately needs every penny all the time is just dishonest. It’s like a televangelist is running the place. Now matter how much you give they desperately and urgently need more more more.

0. https://www.dailydot.com/debug/wikipedia-endownemnt-fundrais...

1. https://wikimediafoundation.org/support/where-your-money-goe...

2. https://wikimediafoundation.org/news/2021/09/22/wikimedia-fo...
> The funny aspect to me is that the senators pushing to "ban TikTok" are the same senators pushing for an "open App Store" bill.

There's also a lot of overlap between the politicians who want to ban TikTok over concerns that user data might go to China and politicians who block proposed data privacy laws that would stop US companies from selling similar data (or worse, such as ISPs selling browsing data) to data brokers.

Ban TikTok and anyone in China can get similar data on US citizens by just buying it from US data brokers.
If you have the right input luck, there’s a huge number of small $1-10m annual revenue businesses that can be built. Personally, I can’t do all of them for time constraints so have to focus. I would agree with output luck to some degree with some of the biggest outliers (Facebook, Google) but for some entrepreneurs they have made giant wins not once but repeatedly. Bezos, Buffet, and Musk come to mind - and the fact that in all three of those cases you have abnormally healthy people able to handle stress and work load levels that most of us (including me) can’t take.
> Pay to subscribe, and only you will get the newsletter. RSS feed can't limit only to subscribers.

Patreon has this feature with their podcast RSS feeds.[1] When you subscribe, you get a URL with a personal, unique parameter. This feed has all the episodes that you pay for. Your version of the feed stops updating after you cancel your subscription.

[1] They probably also have it for normal RSS feeds, but I've only used their podcast RSS feeds
SEC’s Crypto Crackdown Is Just Getting Started After FTX Blowup
Feeds are definitely still enabled on YouTube at

https://www.youtube.com/feeds/videos.xml?channel_id=UC<xyz>

The only complicated part is finding the channel id, which is not always presented directly (sometimes you have a username, sometimes a channel "shortname", now you also have handles... even the YouTube data API itself can only resolve some of them).
> Curious: in which branch of English dialect are parentheses called "brackets"?

Quoting Wikipedia:

> In most English-speaking countries, an unqualified word "bracket" refers to the parenthesis (round bracket); in the United States, the square bracket.

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

---

Thanks sharing your thoughts.

What makes the technique useless for your reading/browsing experience?
Do these volunteers get a share of the donations?

> the orange site has lost it’s way

You can change the color in account preferences to any hex color you want.

Jokes aside, I don’t know whether the criticism is valid, but aren’t we all here to find out? Or disagree?
> We don't 'tackle' anything unless we're playing rugby

What about football (soccer)?
That's okay, I have money to spare.
On the off chance you see this:

> Why would you expect that there's no index?

I don't. Whilst I didn't write it particularly eloquently, I included that it would be an index-scan if there was one. And like the full table scan, this is a 50 vs 1 cost (unless the querying ids are well sorted, at which point you'd maybe get a 5vs1 cost at best).

> I have never seen a single database system where the most basic primary key A.id wasn't indexed.

Nobody has said it was a primary key. In fact it very likely isn't. All we really know is that there were approx 50k rows selected from B; we do not know how many are matched in A.

As they are using BigQuery and the queries are taking such a long time, it would be reasonable to assume A is some large dataset clustered around some other value (e.g. timestamp). But that itself would be an assumption.

> [streaming] does require you to keep a client connection open for 50x longer than batching would,

It does not. It will be less time.

---

Looking at pg.

I'm trying really hard to see a your point. As far as I can tell, you're bothered by the working set memory of the query caused by the join exceeding a limit and causing contention - this is the only time the streamed join is worse than the batching. On an index join this would have to be a very large table.

As for CPU contention - its a non-issue.

There may be a point related to time-to-execute with respect to lock contention.

Regardless, if either lock or index memory contention are problems for you then you will still want to `JOIN` - just against a subquery/cte with limit and offset.

Roundtripping is not the answer!
Wikipedia is a rare living embodiment of everything the web can be at its best. I consider my recurring payment to them a form of public duty.
What's the threshold on how many people invaders will kill, deport, and subject to second-class citizenship before that attitude becomes appropriate?
If they cared about long term sustainability they wouldn't use that money to fund a web of charities.
If they were expecting hardships in the distant future you would obviously expect them to cut down on unnecessary spending to focus on keeping the website up and running. Is that happening?
I'm an underpaid inspector with heavy ADHD. At this point I feel like my chances of breaking into the tech industry are a pipedream. I still enjoy hacker news, especially since I can access it at work.
>Goodbye Hacker News.

See you tomorrow
This is the great danger of having a single person making all the decisions for everybody; decision-making has to be more spread out. The initial decision worked; but then assuming it always would and not going out and getting better vaccines for narcissistic reasons, that's going to greatly increase the death toll.

Nothing in Marx insists on dictatorship by one person. The (Marxist term) "dictatorship of the bourgeoisie" did not refer to tyranny by one person, so it's absurd to hold that the "dictatorship of the proletariate" implies this, or can even tolerate it.

Own goal.

Yes there's a standing committee of the politburo, but we're back to Mao-like dominance over it and all other power centers.
That happens if you donate to ANY cause, ever.

If you give money to, I don’t know, a charity for hungry kids in <insert poor country>, they will send you MORE begging mails, not less.
> we can't even eliminate tangible, clear-cut physical-reality problems like murder?

Call me a pessimist, but I don't think it's possible to eliminate murder so I think that is an unreachably high bar.

That being said, I think that there is lots of low hanging fruit that we absolutely could do something about. Traffic fatalities and injuries are an obvious one. In the US, if we collectively decided that it is unacceptable to have tens of thousands of people die every year in auto incidents and scores more seriously injured, we could rework our road infrastructure and impose regulations that would drive these numbers down dramatically, even if not to zero.

The biggest challenge to enacting the types of reforms that would improve most people's quality of life is that advocates have mostly done a poor job of communicating their positive vision for how such changes would improve most people's lives. The story progressive transit advocates (myself included) tend to tell sounds like it's about taking away the rights and freedoms of drivers. This is undeniably true. Freedoms and rights are always in tension. Progressives will always lose though if they aren't able to tell a compelling story about the benefits of the changes they wish to impose. Otherwise the other side will be able to successfully hammer them on whatever is being taken away.

In our current regime in the US, we have essentially legalized murder if you are driving a car. If someone runs me over with their SUV while I am legally crossing the street because "they didn't see me," they are extremely unlikely to face any consequences unless they were drunk. But at the same time, if I'm driving a car a lot, I also face the risk of killing or harming someone else even if I am always doing my best. This would be devastating even if I wasn't legally at fault. In other words, the freedom to kill someone with no accountability is no freedom at all.

The point is not that I want people to go to jail for killing people with their cars. I want to live in an environment where people are not killed by cars. There are many things like this where I think there is a more positive vision for society that is not that hard to imagine but that does require letting go of some of our past ways of looking at things. In this particular case, a century of marketing and pr by auto/oil companies has warped our perspective that we can't even see how anti-human the industry and our infrastructure has become. That doesn't mean we have to get rid of cars entirely, but we should rethink our relationship with them. There are many things like this.
Carlin was always a big lefty. Every critique doesn't mean you're 'carrying water for the other side.' Although I know it's trendy to ignore nuance in language these days.
As a C/C++ dev, I want to learn Java. With its huge and sophisticated ecosystem, platform independence, the safety of the language, good efficiency, it almost sounds like one must be insane not to use it these days... (Sorry for being off-topic here.)
> more scorn and spite directed towards Teslas

maybe cat is out of the bag that the interior feels like that of a power wheels?
“The stark relationship between fatherlessness, and both income inequality and crime”.

There, fixed it for you.
This is kinda making a pretty good case for the jargon. :-)
Interesting perspective. I've never considered how much of reading and writing is dependent on first listening and speaking. I guess it makes sense, since the first steps to reading are "sounding out the words."
I thought this was well known:

https://en.wikipedia.org/wiki/User:Guy_Macon/Wikipedia_has_C...

Wikipedia hasn't been any credible danger due to lack of funds for at least a decade. They're drowning in money.
I've been using nanogui[0] to fit the bill for personal uses.

To be honest though, I'm at the point where I'd really prefer an easy and lightweight library to setup a http and/or websocket server, and just make a ui in the browser. I've got a simple use case -- I'm just making a simple scene editor & debugging ui for a toy ray tracer.

I know there are a ton of different libraries out there for the task, but that just makes it hard to evaluate the quality of any given library. I haven't given any a shot, I've only gone so far as to look at them and ponder what the size of the user base is, and question if the project will go inactive in a couple years. Or if it's going to require me to pull in some other host of dependencies.

Recommendations from HNers welcome!

[0] https://github.com/mitsuba-renderer/nanogui
Feel free to reach out in person. I'm happy to provide an honest feedback about what you have built.
>They could have an email dedicated to comments and feedback.

Some technical blogs I follow use this. They create a public mailing list that they treat as their “public inbox”. Anyone can send an email to it, and all messages are publicly viewable. No signup or account required either since it’s all just email.

I’m a fan of this solution personally.
I think it's hard way before that. YC phrases it as "Build something people want" but all the words in that sentence are way harder to understand than it first seems.
It keeps growing as well.

Looks like it could reach 75M likes.

For reference, TikTok most liked post reached 60M in August 2020.

Twitter most liked tweet only 7M likes, the most liked tweet which can be monetised stands at 3.1M likes
To yours I add this from Teddy Roosevelt:

"Do what you can, with what you have, where you are."