skysight-inc/HackerNews huggingface dataset:
There’s an if statement around the do while loop on that page, so that the do while loop also will not run if *count == 0.

The code snippets

for (int i = 0; i < *count; ++i) {
str[i] = 0;
}

and

if (*count > 0) {
long idx = 0;
do {
str->__data[idx] = 0;
idx += 1;
} while (idx <= *count);
}

Will produce the same changes to the string data given the same count.
Sorry if that was the case - only tried to mention the platform where people directly asked for exactly this-type-of-thing.
Because 'my country' isn't a conscious entity. The people inside the institutions are cronies of current senators.

The loans are a way to circumvent budgeting. Not sure on specifics but it's easier for them to accept the loan vs getting cash handed to them by the country's comptroller (Contraloria is the entity in Spanish).
One might add something to the front of your analysis, as maps don't form out of thin air. In fact, those lines on a map are formally called "political borders."

historical governance -> historical map & economic prosperity -> political preferences
> Stored procedures are indirectly there by running your own code "next to the database",

"indirectly" is a keyword here, because running code when data is modified potentially won't replace triggers since they'll probably execute outside the running transaction.
> But they don't make the product

Not sure how important that is, though. Often the product gets sold despite of the product, thanks to marketing, operations, logistics, sales, support, legal and management (product/project).

Genuinely curious but do you consider product/project management to also 'be making the product'?
>>>> Let me flip your question too: why do you think it matters?

Sure, it matters because there are tens of millions of black, hispanic, and latino US citizens -- numerous with CS/STEM degrees -- who cannot get into FAANGs. Many end up in retail or as best buy tech squad reps or tmobile store salespersons.

Yet we're told that someone from a foreign country is a better candidate for these FAANG jobs. In my experience, half the foreign workers cannot even speak english legibly.

Do Americans and the US Government owe at least some chance to local citizens who are being passed over for jobs generation after generation?
Indirection is how programming languages implement abstraction. So, a distinction without a difference.
The existence of the luck factor is life. The house is the universe. Who you're born to, where you're raised, who you meet, what sort of advantages and disadvantages your particular biology affords you in whatever environment, what sort of ideas you might randomly come across, etc. There's no gaming that and there's no system that can make it all equal out. Someone buys a lottery ticket and they win, we don't take all their winnings and redistribute it because there would be no reason to play the lottery. Or gamble. Or create a startup. That we even exist as a species instead of some non-avian dinosaur descendant is the luck of a mass extinction event.
Here in Canada:

Conversion therapy means a practice, treatment or service designed to

(a) change a person’s sexual orientation to heterosexual;

(b) change a person’s gender identity to cisgender;

(c) change a person’s gender expression so that it conforms to the sex assigned to the person at birth;

(d) repress or reduce non-heterosexual attraction or sexual behaviour;

(e) repress a person’s non-cisgender gender identity; or

(f) repress or reduce a person’s gender expression that does not conform to the sex assigned to the person at birth.

Conversion therapy is a crime across Canada, you will go to prison for up to 5 years. If you believe yourself to be trans and see a therapist, it is a crime for the therapist to try to do anything but confirm that you are trans. If a therapist were to work with you and suggest you aren't trans. Perhaps you're only gay or lesbian? That is a crime.

Effectively we banned Gender related therapy in Canada. What therapist will give you proper therapy and risk going to prison?
> I'm almost sure Coinbase practices fractional reserve

I'm not a crypto guy, so excuse the naive question: Can coinbase loan out money without actually transferring some sort of single-ownership keys for the amount loaned? If so, then indeed, they should be able to engage in fractional reserve "banking".

> and other forms of market manipulation

Modern money markets are based on fractional reserve banking. That's how most money gets created these days. I'm no fan of the prevailing economic system but it isn't some manipulation which moves you away from some pristine state.
Adding items to your cart counts as "hitting submit". "Hitting submit" means you asked the site to save some information or change state somehow. You can do what you describe without secretly collecting data that the user didn't want you to collect.
Why not just be open about it?
Hi HN,

I’m Aloke, one of the co-creators of commands.dev (https://www.commands.dev/) and an engineer at Warp (https://www.warp.dev/).

Commands.dev is a curated, open-source collection of popular terminal commands that lets you quickly search for hard-to-remember terminal commands by title, tag, and description. Each of these pages are also indexed by Google to provide a consistent, well-formatted alternative to the variety of sources these commands turn up now, like StackOverflow.

As an engineer who uses the terminal frequently, I often have trouble remembering the exact command I want to execute if it’s not easily searchable within my terminal. Some commands that I run infrequently don’t match up with the underlying task they perform, which makes it even harder to find. For example, to undo my last git commit, I have to search for “git reset”, which I never remember because I’m always thinking “undo”ing my last commit instead of “reset”ing.

We built commands.dev so that there would be a centralized place to quickly find and search commands based on their name, description, or category. If you are a Warp user, these commands are also integrated directly into Warp as a feature we call Workflows (https://docs.warp.dev/features/workflows) so that you can quickly search and execute them directly from the terminal.

These commands are open-source (https://github.com/warpdotdev/workflows) and we would love contributions to make commands.dev even more useful. So far, we’ve already had 85 commands created by 22 unique contributors.

I’m excited to hear what you think of commands.dev! Our team sincerely hopes this will become a go-to tool on the Internet to consult when developers need to remember a difficult command, either directly on the site or by discovering a commands.dev page when searching Google for help with a command.

If you’re interested, join Warp’s Discord (www.warp.dev/discord) and follow us on Twitter (www.twitter.com/warpdotdev).
This is sensationalized and hypothetical, wait for the article that comes out after, to see if they actually pulled it off. There will be human labor, with zero doubts, this is just autonomous construction vehicles. Given the status of FSD, I cannot see this playing out according to plans
Meh, I'm using it in lite mode. It works fine that way. I'll probably set up a full node at some point.
Yep, this is cool, and it's mentioned in the thread!
Secure Bots and Service Account Access with Ephemeral Certificates
Worse than that, property taxes and higher interest rates makes that 1.5M home at least 3x more expensive compared to the equivalent European house.
Why does it not make sense? Imagine you have factory workers making 15$ an hour and a company decides to import labor to work at 10$ an hour because there’s “no limits” to immigration. The government should act in the interests of its citizens.
It's very clearly implied in the "A modern entitlement/billing architecture" section:

> The requests should go to the entitlement system

> You may be thinking “isn’t this causing a single point of failure?” – and yeah, you’re right.

> In case the entitlement system (or a downstream system) fails, you should have some sane defaults.
Yes was thinking the same. Nice to see some people here actually understood the question, thank you.
I think you're on to something here, but my (admittedly anecdotal) experience (in person, not online) is that these people are not generally considered extremist. You make a very good point in your last sentence: this extremist view is held by a lot of people who are otherwise non-extremist, and it's hard for most people to differentiate between "extremist views" and "extremist people". So it ends up being considered much less extremist than it should be, which also means it gets much more mainstream acceptance than it should.
Some "pros" that many find appealing:

* Copying the database around its a file copy in sqlite. Each database is it's own single file. (there's also WAL stuff that you get control of)

* No extra service to deploy, manage, and/or optimize. I don't fully agree with the following, but I had a colleague who used to say "If you don't have multiple app servers writing to the db, postgres is a waste of effort".

* embedded means way lower data latency - if the dataset is in the fs cache even lower, no waiting on network transactions.

I've frequently chosen it over PG in cases where I needed basic relational data operations. In one case we ingested a large dataset (a few gbs of measurements) once an hour. Then we did some initial analytics on those measurements and threw the results in the same db file. After that step was done, the data was read only for several other systems and we just copied the db file to each of the systems that needed the data on-demand. A couple of the systems did additional analytics and effectively imported the db file to a different db (one was PG another was a graph db - neo4j). A couple of the systems just used the db file directly. It worked our really well.
but what if you fully collateralize using uncorrelated assets?

Theoretically you can purchase synthetic stocks, tokenized real estate, other stablecoins. No one has tried it yet tho.
I'm not sure that is really a problem of 'sorry state of power grid'. Its more like 'rapidly changing requirements'.

5 years ago, most rural lines were supporting homes and businesses with 200amp panels (and oversubscribed, since not everyone pulls all those amps at the same time). Complaining the grid isn't ready is like putting a gas power plant in the middle of no-where, and complaining that the only nearby gas main between two towns is too small to run the 700MW power plant.

Tesla can work around this by larger battery banks, or solar arrays to help recharge the battery bank faster. (they own companies that produce both). And in spots where they often can't keep up with demand, work with the power companies to get more power delivered.
Only parts were strictly German. And the German population was moved out to new borders, and Polish population from east (parts of current Ukraine, Belarussia and Latvia)
I don't see any possibility how the media campaign against him can be construed as a gain for civil liberties. Especially like you almost admit that it wasn't about his failures as a person and just politically motivated. This is independent from how well Brett Kavanaugh will later defend civil liberties or not.
You are referring to the idea that some of these phenomena might not be due to the era of partitioning that ended in 1918 [1] but to the territorial changes after WW2 [2], in which people from former Eastern territories were relocated and mixed with the population of the "Regained Lands" in the West.

Interesting observation. It is hard to tell it apart, because it is the same line but different time.

I am no historian, so I shouldn't even try explaining. But for me, the "partitioning" explanation makes more sense, because during the communist time after WW2 there was a strong trend towards the unification of the country. If not for that, we would see even stronger divides at the other sides of the partition lines.

[1] https://en.wikipedia.org/wiki/Partitions_of_Poland

[2] https://en.wikipedia.org/wiki/Recovered_Territories
I didn't even notice the mistake at first -- my name is not misspelled, so I figured if I didn't say anything I would be able to get away with it. I knew my EAD card would have to be photocopied or scanned at some point when I first arrived at the office, so I crafted some inane plan to tell an engaging story while the HR person was taking care of my documents, in the hopes they wouldn't see. In the end no one ever noticed, I ended up getting H1B a few months later. But I don't think my worrying was unfounded; I'd heard stories of a single character being wrong (or, missing an accent, and therefore not matching their passport) and someone's entire life changing (they had to go back to their home country).

I should also note that the guidelines for filling out CPT and OPT are also completely nebulous. I forget what the specific issue was, but I remember the administrator at my university being unsure of how to answer some question, them having no recourse, and me having nobody to ask.

I'm on my 4th year of H1B and I need to figure out how to apply for a GC. The time investment in putting together all the documents is significant. Not to mention exiting the country to go see loved ones is always a pain.
Good on you. I hope you do well.
What are you talking about? What squander? Someone does something and you ask "What was that?" Let them say "That guy hates Scheme" or "We don't know, sorry about that.", or fail to.

This much is basic human respect you give to anyone in any context.

It's not good advice to suggest any less.
There are multiple groups involved here. Some of us don't want that many immigrants, for us the immigration system is only a disaster because of the high rate of illegal immigration.
The difference here is that the bank never has any ownership of what’s in the safe deposit box.

When you buy crypto with coinbase, they hold that crypto in a custody account they have keys to. It’s not guaranteed how the court would rule on distributing those assets in case of bankruptcy.

From the article “it is possible, however unlikely, that a court would decide to consider customer assets as part of the company in bankruptcy proceedings even if it harmed consumers”.
The only thing I can think of is maybe this person thought you were lying. Picking a more obscure language to seem cool, or to make follow up questions more difficult. But I don't think they behaved appropriately in any case.
> if those balances are kept on the books as “assets” or not

Yes, they appear as a "customer custodial funds" current asset and "custodial funds due to customers" current liability on Coinbase's balance sheet [1]. Under current law, Coinbase's customers have a claim to those assets.

Look at a brokerage's balance sheet, on the other hand, and you see special line items for segregated cash and securities. If a broker-dealer goes under, "it ordinarily is liquidated under SIPA, not the Bankruptcy Code," where the SIPC "asks a federal court to appoint a trustee to liquidate the firm and protect its customers" [2]. The first priority is customer assets. Creditors second. Coinbase isn't similarly regulated, in part because it has fought tooth and nail against being needed to.

[1] https://d18rn0p25nwr6d.cloudfront.net/CIK-0001679788/89c60d8... page 5

[2] https://www.mondaq.com/unitedstates/investment-strategy/6631...
Interesting thought! Would love to see more details.
In the 2-3 times it has happened to me:

What I want to do: Walk out

What I did: Stay there in shock, wondering what to do, and seething in anger on the way home.

Its like anything else--unless you regularly meet rude people, you are at a shock when you do meet someone
Yes. Doing work or providing a good or service in exchange for bitcoin/crypto.
The loan is usually so terrible because the IMF is supposed to be the lender of last resort.

You go to the IMF when no one wants to loan you money.
(I was FAB on YAMS, but based in London.)
I never though I would agree with PragmaticPulp ;) , I also have seen this pattern before, as someone who works at Google (SDE) and worked at Amazon previously, and also worked at unknown small/medium size companies, most team WLB at Google is pretty pretty good, you set your own rhythm of work and goals.At Amazon in the other hand is quite different, you will get PIPed for sure if your team is sweaty and you go on a normal pace, but at Google you have to be really awful to get fired. Startups use the "mission" and "family" non-sense to hustle people to work hard, while most of the times are the founders(and the VCs) the only ones that benefit.
Migrations have gotten better recently, but there are still cases where you need to follow the 12 steps very carefully: https://www.sqlite.org/lang_altertable.html#otheralter

Prisma Migrate can automatically generate these steps, removing most of the pain. I'm sure other migration tools can do this as well.
Reasons:
1) External libraries
2) Cross platform functionality
3) Different resources - 2x, 2.5x, 3x, etc
4) (still) missing SWIFT ABI
> How much do you think it costs to send money from say USA to El Salvador?

It depends on the case

The cheapest way is depositing a check.

Depositing a U.S. check in a Salvadoran bank is free in some banks. The disadvantage is that it is slow
I think the times of unclaimed land up for grabs are long over, and people need to get used to a steady state environment that the rest of the world has been in for millenia.
We have a hierarchical filesystem. /usr/bin/games could be a thing.
you’re looking at this from the wrong angle.

ask yourself: why would the US allow these people to come and work here in the first place?

it’s because they NEED them. from highly skilled tech workers to “unskilled” low wage workers. Immigration and pumping human capital into our economy is the way the US stays/stayed? dominant and a superpower.

Close the pipeline and in 10-20-30 years innovation is gone ,the edge we have us gone. The American dream fuels the growth. Act shitty toward the fuel, scratch your head why things fall apart.
...then the restaurant would simply book you a table in a FIFO manner.

Once and for all. Be it tomorrow or in a month or in 12 years.

Then you can decide to wait or cancel.

Very simple.
Much of what you describe is immoral and/or illegal in the EU. It's certainly not the case that every site is breaking the law this way. You can get 90% of the benefit of analytics with anonymized data.
I don't understand how this is fundamentally different than MDX, which can already mix React components within Markdown.

We used it to build the Streamlit docs. I assumed this is how everyone was doing documentation: https://github.com/streamlit/docs
Empire Strikes Back Remade for the C64
My comment comes from a rude awakening I had: I thought these institutions and their bureaucrats we're well-meaning people. Naively, I thought 'hey if you work at a place like that what other motive do you have but to help?'.

Some of the employees in those institutions are actually connected politically locally and they favor insiders from their party. Others want the press-release and don't give a fuck if the project actually gets completed or if it impacts people. They're just as involved in politics as the locals: I'll give you this loan so you have cash to do whatever and you help me with this project I'm pushing throughout the region.

Sounds like a regular day at the office I guess but dunno I thought people who worked in these institutions wanted to do good. I guess I ate up some propaganda and never questioned it until I saw it first-hand through my wife's experience.
I understand the definition, that's not the problem, I'm merely expressing some bafflement over the 'your lawyer' term seemingly being used here as something common. And apparently I'm not alone, looking at the other comments.
Browsing their Docs has this weird, glitchy animation. Where is it coming from?
In a lot of people's eyes yes. Many people resent immigrants complaining even if the complaints are justified.
Isn't it obvious? Software scales globally with effectively zero margin, so if you combine this with network effects and blue ocean, unregulated markets in user data, that meant a massive high new ceiling for software engineers set by Google and Facebook.
> I wouldn't called it "worse is better". Why not "less is better" or "simpler is better"?

The original article called 'worse is better' was pretty successful and widely read, and part of it was the title grabbed people's attention. You could argue it's a rephrasing of "less is more" or "do one thing well" concepts for the click bait zeitgeist. That's not a bad thing - an old concept wrapped up in a new way of expressing can keep the idea alive - anyway it's funny and a little confusing, which might trigger someone to engage with it differently. There's many concepts that I've heard n times expressed in different ways only to have it click on the n + 1 way of phrasing it.
Doesn't inlining handle that case directly?
Yeah, I would just say I have a bathroom emergency and excuse myself.

Any human being should understand.
Yep, unfortunately this is a known strategy so if one is pregnant and trying to go to the states (like a vacation or business, unrelated to birth) immigration will give you a ton of shit.
Its not exactly a literal statement. Murder in the general sense is bad for society no? The people that use the phrase murdering a baby, think they are stopping it for the betterment of mankind. It's the same logic that makes people push religion.

They think you and the world will be better for it. Its certainly not my argument

>Is the danger that God grabs his ban hammer and stomps western society because a woman living as part of that society decided to end a pregnancy?

Being scared of the ban hammer is history for the last 300 years of Catholicism.
Reasons OKRs Are Great for Software Engineering Teams (and Some Drawbacks)
Not sure who you hang out with, but black, hispanic, and latino US citizens have a very hard time getting jobs despite having software engineering degrees. They end up in GS-5 equivalent military tech "careers" or crappy geek squad jobs.
I had a couple interviews when I was young and callow and really needed the job that still stick with me. One was with a large company that's still around. The HR manager accused me of lying on my resume after I interpreted something like "where are the stretchers, c'mon, everybody exaggerates on their resume?" as "discuss the limits of what you claim on your resume". I learned later this line of questioning is promoted in some books as a "trick" for getting people to admit they lied on their resume. I was pretty rough around the edges back then, so I was rude back, which I regret.

I am now a hiring manager and have conducted countless interviews at this point.

You did the right thing continuing the interview professionally. Assume the most charitable interpretation. You don't know the whole situation with the jerk. Maybe he just started and this is the start of a chain of problems that will get him fired. Maybe he just needs training on how to interview. Maybe he's OK otherwise but they'll never let him interview anyone else again. Maybe he's only sort of a jerk normally but he was leaving for a funeral or something.

There's just no good reason to get yourself a "not now, not ever" note in the company's files and your interviewers' memories just to indulge a bit of social revenge. That said, use your best judgment and certainly remove yourself from an interview for illegal, dangerous, unethical, or threatening behavior. The crazies are out there.