skysight-inc/HackerNews huggingface dataset:
Yes, and credit where credit's due, with Redshift Amazon changed analytics industry forever and they changed whole IT space forever with S3.

But since then, there's not much innovation in analytics space from them, is there?
> Would the US u2 overflight maps of the USSR be broadly similar? I'm not trying for whataboutery, it's the comparison of interest: how well an you account for place names and features from what's available? The Russians had access to a lot of information, OS maps for instance.

There was a Wired article about these maps from years ago that talked a bit about the differences:

https://www.wired.com/2015/07/secret-cold-war-maps/:

> The US military made maps during the Cold War too, of course, but the two superpowers had different mapping strategies that reflected their different military strengths, says Geoff Forbes, who served in the US Army as a Russian voice interceptor during the Cold War and is now director of mapping at Land Info, a Colorado company that stocks Soviet military maps. “The US military’s air superiority made mapping at medium scales adequate for most areas of the globe,” Forbes says. As a result, he says, the US military rarely made maps more detailed than 1:250,000, and generally only did so for areas of special strategic interest. “The Soviets, on the other hand, were the global leaders in tank technology,” Forbes says. After suffering horrific losses during the Nazi ground invasion in WWII, the Soviets had built up the world’s most powerful army. Maneuvering that army required large-scale maps, and lots of them, to cover smaller areas in more detail. “One to 50,000 scale is globally considered among the military to be the tactical scale for ground forces,” Forbes says. “These maps were created so that if and when the Soviet military was on the ground in any given place, they would have the info they needed to get from point A to point B.”
This isn't the usual way this is coded:

char *one = "one";
char *end;
errno = 0; // remember errno?
long i = strtol(one, &end, 10);
if (errno != 0) {
perror("Error parsing integer from string: ");
} else if (i == 0 && end == one) {
fprintf(stderr, "Error: invalid input: %s\n", one);
} else if (i == 0 && *end != '\0') {
f__kMeGently(with_a_chainsaw);
}

It's actually like this:

errno = 0;

long i = strtol(input, &end, 10);

if (end == input) {
// no digits were found
} else if (*end != 0 && no_ignore_trailing_junk) {
// unwanted trailing junk
} else if ((i == LONG_MIN || i == LONG_MAX)) && errno != 0) {
// overflow case
} else {
// good!
}

errno only needs to be checked in the LONG_MIN or LONG_MAX case. These cares are ambiguous: LONG_MIN and LONG_MAX are valid values of type long, and they are used for reporting an underflow or overflow. Therefore errno is reset to zero first. Otherwise what if errno contains a nonzero value, and LONG_MAX happens to be a valid, non-overflowing value out of the function?

Anyway, you cannot get away from handling these cases no matter how you implement integer scanning; they are inherent to the problem.

It's not strtol's fault that the string could be empty, or that it could have a valid number followed by junk.

Overflows stem from the use of a fixed-width integer. But even if you use bignums, and parse them from a stream (e.g. network), you may need to set a cutoff: what if a malicious user feeds you an endless stream of digits?

The bit with errno is a bit silly; given that the function's has enough parameters that it could have been dispensed with. We could write a function which is invoked exactly like strtoul, but which, in the overflow case, sets the *end pointer to NULL:

// no assignment to errno before strtol

int i = my_strtoul(input, &end, 10);

if (end == 0) {
// underflow or overflow, indicated by LONG_MIN or LONG_MAX value
} else if (end == input) {
// no digits were found
} else if (*end != 0 && no_ignore_trailing_junk) {
// unwanted trailing junk, but i is good
} else {
// no trailing junk, value in i
}

errno is a pig; under multiple threads, it has to access a thread local value. E.g

#define errno (*__thread_specific_errno_location())

The designer of strtoul didn't do this likely because of the overriding requirement that the end pointer is advanced past whatever the function was able to recognize as a number, no matter what. This is lets the programmer write a tokenizer which can diagnose the overflow error, and then keep going with the next token.
Sure if you have a lot of noise, now if you know the people? If you’ve been working with them for years akready? Even engineers who want to change role within the org have to re-interview and do these silly exercises. I actually find leetcode things more valuable than system design interviews which are more like “let’s see how you can pretend you’ve built things at scale eventhough you’ve never done it”
You have complete freedom.
TBH this is not a pay issue, no matter whether I can afford it.

I would hate that a stranger enters my house to clean, and I would hate it even more when I was not at home.
Its because AI like GPT-3 which can't fool a human, is extremely good at fooling a search engine and now we've effectively lost good search results to spam.
canada isn't even in the top 10 countries with the smallest population density: https://wikiless.org/wiki/List_of_countries_and_dependencies...
The parents not having to deal with kids while they are in school and using that time to work is worldwide phenomenon.

And it has zero to do why there is not enough substitute teachers.
Thank you very much for these insightful comments! I think it's extremely important to learn from these mistakes from the past. However I see so many believe in the good vs. evil narrative of the cold war. The real world is often much more complex.
Same thing goes. It wouldn't scale for everyone to go live on boats.
Why not just burn them?
Try Kagi.com while its in free beta, and see if you like it.
In the Netherlands you can still pay child support with 50/50 if there is difference in income, just less of it.
Many aeons ago librarians told Google that sources cannot be trusted equally and that they needed to build a manually reviewed and ranked corpus before their index filled with machine generated shit.

But techbros put trust in the algorithm because they knew best...
"coming soon to your region"

Ugh, that triggers me hard. I haven't lived in Germany nor Sweden for ~7 years now and Google never really figured out (despite me telling it so) that I don't need gmaps results in Stockholm and Berlin, and that yes, all my g products should be showing the English UI.

If these folks are ex-google they might consider not doing shit like this in the first place.
HomelabOS Your offline-first privacy-centric personal data center
Comment written by cirrus3

Checks out ;)

We’re in the midst of a once in a century pandemic. The best movie theater in Seattle has been closed since the beginning of 2020 and may never reopen. I have way better food, and far cheaper drinks at home. I don’t have to pay ridiculous amounts of money to park. I don’t have to wear a KN-95 mask to feel safe. I can pet my dog while I watch the movie. I can rewatch scenes when I feel like missed something delightfully subtle, like I just did earlier tonight with Wes Anderson’s The French Dispatch. I can pause the movie to go use the bathroom whenever I want to.

Sure, there are plenty of movies that benefit from a fantastic theater experience. But I’m not going to get that right now, especially in the city I live in. Maybe I’m just an old man yelling at clouds, or maybe it just isn’t ever worth going to a theater to watch Hangover, Part 3 or whatever.

Go watch The Batman in a theater if you want to. I’m not telling you how to live your life.
A musician put it in time for an audition because that will be the piece he will be performing. But doing leetcode when the job definition is: You will be working on this e-commerce site is not the most motivating things. While algorithms and data structure knowledge are important, most of the time is spent writing code gluing data sources to interfaces. I'm perfectly fine doing an interview on the technologies I'm expected to master, but knowing by heart how to sort strings doesn't help anyone, IMO.
To me it sounds similar to all the reports of motion sickness (or worse effects) from playing Doom back in the day. I also suspect most people who do suffer from it can get used to it over time.

OTOH, considering how many people keep having motion sickness in cars (especially when not driving and reading and whatnot), perhaps for some people the issues remain.
> subset of parents voiced concerns not about the children, but themselves

You mean like, they did not wanted to get sick themselves and that is somehow horrible from them?

Open daycare is less work for parents.
For sure. I think it it is almost inevitable that the trajectory would have been different in that case. For that share he would have had a board position. Would Sculley have become CEO under those circumstances? Impossible to know but if he would not, then the entire history would have played out differently.
> but the Soviets actually purposely introduced inaccuracies into their civilian-issue maps

China does the same thing today:

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

> GCJ-02 (colloquially Mars Coordinates, officially Chinese: 地形图非线性保密处理算法; lit. 'Topographic map non-linear confidentiality algorithm')[21] is a geodetic datum formulated by the Chinese State Bureau of Surveying and Mapping (Chinese: 国测局; pinyin: guó-cè-jú), and based on WGS-84.[22] It uses an obfuscation algorithm[23] which adds apparently random offsets to both the latitude and longitude, with the alleged goal of improving national security.[
What does “invalid: divide by zero” mean?
> The idea is that the wife and children should not experience any decline in their standard of living as a result of the divorce.

Specifically, in the case of child support, the idea is that the children should not (the idea that the spouse should not tends to be factored in to alimony.) e.g., to quote the California law on child support: “Children should share in the standard of living of both parents.” Family Code § 4053(f)
You can still use methane as your hydrogen source for ammonia production if you do CO2 capture and storage when you produce the hydrogen. This is often called blue hydrogen, as opposed to green hydrogen from electrolysis and gray hydrogen from methane witgout CO2 capture and storage.

Most of the oil and gas companies are partly betting the farm on H2 from CH4 with CO2 capture and storage as a major source of energy in the coming transition, and thus a major source of profits for the next 30-40 years.
Book Burning 2.0. It's smokeless!

I think i prefer the mystery of human consciousness, but it would be interesting to snapshot the mind of a person that votes up or down on this story and explore the root system of that action.
I've been using kagi for a few weeks now and it's great!

The only issue I have (and reported in their feedback form) is that it sometimes decides to log me out 3 times in an hour, so their session management could be better. But the results are great, with a clean UI and no BS. Definitely sth I'd pay a (small, but nonzero) amount for. Like 5 bucks or so a month.
That sounds like the literal definition of indentured servitude.
re personalities and leadership, loved this thread on selecting lead dogs on husky sled teams

https://twitter.com/BlairBraverman/status/122221723604523417...

tldr is that it's not about aggression but rather motivation, ability to operate without someone else forging a path + initiative in strange situations
Yeah I think that's why in the US as well, but I think it reflects a lack of sense of urgency for figuring out how to do it more cheaply. Compared to hospitals in Vietnam, for example, where sanitization standards are much lower, they do a lot more creative stuff to save on costs. It leads to worse outcomes, of course, but if they insisted on the highest quality care for everyone then a lot fewer people would get care in the first place
Because the change is on the Visual Studio templates to set the checkbox enabled by default, no need to change the language for something it already supports.

It was mentioned on one of the regular YouTube videos with the team, but I am failing to find it now.
I think your question has some very specific variables that aren't really helpful. How about making it more generic:

Would people really self report excessive alcohol comsumption accurately?
Sidenote: this is a fantastic writeup.
I'm not sure what you are trying to argue. The OP is giving some pretty good overview of the motivations of the USSR for how they acted. They never argued that they never invaded other countries. Why do you think they did what they did? Just to be evil? So what about the enty of democratic governments that were overthrown by the US and their allies (and that includes most western European countries) and the totalitarian regimes they supported. Was that also just to be evil?

I guess we are left with two superpowers doing evil just to be evil.
My heart breaks for you and your siblings, I'm so terribly sorry. I wonder if a better delineation might be "broken" households (divorced or not) versus functional/happy ones.

One thing I didn't mention is that as kids growing up in broken households, we often have no frame of reference so our lives feel "normal", and it's only later in life that we piece together the damage our narcissistic parents have wrought. It sounds like this may not have been the case for you and your siblings though - extremely curious as to how you see it and how your perspective has changed over time (if at all).
I recognized that ecommerce makes life "easier" and can make people shopping addiction. I can tell it's amazon. It's so easy to buy , it's so easy to return thing I don't like, it's so easy to find cheap things...

There is a voice inside my mind, "hey you can buy this doesn't cost much and let's save up later." Well I'm not an addiction but that voice actually came up in my mind, and I spent a bulk of $

I can't tell you what I bought. The good news is that I still use some clothes I bought 3 or 4 years ago. I feel guilty but I know they have been my best friends...
That would work, but I'm too lazy to do that, especially since I visit probably a dozen new sites every day.
Such comments are against the ethos of HN and its guidelines, which you can find at the bottom of this page.
Heads up, this site adds a lot of garbage into your history.

Had to hit back like 5 times to get back here
What I've anecdotally seem is that it makes these fast fashion "green brands" pop up who claim to plant trees or use "organic" materials instead of common sense reuse, recycle point of view.
I think I speak for many others when I say thank you for sharing this.
I think the problem is that economics needs to take human behavior into account, which it tries to do via game theory, which in turn relies on rational actors. I don't think individual human behavior is predictable like that. You could argue that we don't need to model individuals, only large groups of people. But the problem is that often the behavior of some individuals has a huge effect on large groups.

Contrast that to physics, where we have been very successful with predicting the behavior of masses both on small and on large scale, with relatively few exceptions.
Video Hosting Services Available for User Generated Content
Can you share your experiences with available affordable solutions for video hosting user generated content used on mobiles?

This content is mainly screen recordings of mobile game play.

I have explored few and here are my observations

1. Cloud Flare Stream -> Priced based on minutes streamed and stored irrespective of the bandwidth/video quality.

2. AWS Media services -> This may go costly as CloudFront is costly comparitively

3. Mux -> Pricing nearly equal to Cloud Flare and priced based on streaming time

4. Bunny.net stream -> Charged only for streaming and encoding free - Not sure how much difference it gives

5. Dyntube.com -> Boast unlimited streaming for lowest prices but not sure about the service

The use-case I have is more like there can be limited videos and cost need to be optimised for streaming.

Can someone suggest a good option?
Sure, Electron is also a thing, and even I was on a project where we made use of Web widgets in 2000.

It seldom comes up though.
If it's images, files then something like S3. If it's a database then I mount it locally on the host.
Your assumption that excessive alcohol consumption is stigmatized in China is wrong. Drinking is very common and not done in hiding.
those buttons usually have both "start" and "stop" text on them
People go to great lengths to prevent drowning.
Why is this supposed to be unusual? I see lots of articles calling this “bizarre” and whatnot.

Pilots do this every day, there are legal limits to how much you are allowed to work.
Did shopping become fun because fast-fashion clothes were cheap, or did clothes become cheap because shopping is fun?

I'm also e-commerce-adjacent, but I believe fast-fashion (especially synthetics) is bad for humanity. Sure, people are making loads of money[1], but it's an ecological disaster in the making.

1. Me included, but only getting a little. Shein is getting ALL the money.
Where does the article say that those other things are not also big problems? In fact, it specifically says strtol is one example of the things wrong with C. This comment seems needlessly dismissive.
That does sound very harsh to me. "Spoiled" can mean being able to afford a better school, private room and options in case of emergency.

In wealthy societies money is determinative for how many bullshit time sinks you have to suffer through in childhood.

For example: I almost failed Abitur, which is a requirement for university in Germany. (We very rarely have any admission tests for some reason.)

Given enough resources you can either add private schooling or arrange alternative pathways. You could get an equivalent (less time consuming) degree from a different country that will be acknowledged in Germany.

The no-money route would've cost two or three additional years of standard school stasis in my primes.

Anyway, my bland tl;dr: Money really does make a difference that is not all downside.
Our general mode of operation seems to be the very opposite. Getting cocky, causing some very untoward consequences, then learning from them.

I don't even think it is necessarily bad in toto. The other pole could look like stagnation fueled by indecisiveness and fear of possible consequences. I definitely know some individuals who spend their lives like that, and they don't seem to be happy.
Thanks, yeah I think it’s quite a niche business. I don’t think he was the biggest player, but top 3 perhaps. But yeah not a lot of players in that exact category.
Of course there exists no problem that HN won’t unironically propose solving with a startup.
https://egghead.io/lessons/react-a-beginners-guide-to-react-...

Made by Kent, some dude that wrote a popular testing library for React. Pretty good tutorials. I'm quite positive that it's up to date.
I’m building a desktop email client [0] that has $45 lifetime licenses. Made to scratch my own itch I’ve been using it as my only client for 4 years now, barely makes any money though!

[0] https://kanmail.io
ImageGlass Packages Spider.com Botnet
It took me far too long to realize these, but those company value videos are to protect the company from being sued if an employee misbehaves.
Spot on.

The really interesting question is whether this is actually avoidable or if all highly successful human organizations that started with high bar ideals and brilliant folks are eventually doomed to rot in place the way Google has.
HN thrives on the community and its discussion. And when there's little merit in the discussion threads because most have turned or started toxic it doesn't. So sometimes stuff may be flagged for the overall dynamics of a submission - maybe some sort of anti-"eternal September" reaction of the old user base. Especially certain political topics from 2016 to 2021 had this issue and Covid sometimes as well.
> I haven't been to the US for a while

I can fill you in. My workplace tried to get us to stop using "master branch", "blacklist/whitelist", "dummy value", and "sanity check" among others.

The doublethink involved with having mandatory third-party security training that uses "blacklist/whitelist" and then having to mince your words to discuss the curriculum in the office... it's lovely.
This clicks with me more than SICP with Scheme. Skimming through it, I like the example using a recursive summation function to approximate the integral of a cubic.
While nuclear has different pollution than fossil fuels, one can hardly call it green with the everlasting poison it produces.
Read the last section. None of the real problems of C are even mentioned.
I know this is anecdata, but almost all women I know wanted kids very badly, and they were ok with a bad career but a nice family. Those that are childless despite their desire don’t look that happy to me.

Sure, I know women who’re childless and single by choice and they’re perfecly happy with that.
But I wonder whether we’re just cherrypicking a peculiar and yet uncommon population slice.
So I’m not sure what exactly are you finding bad about this? Or did I misinterpret your post (specifically about the “anger”, why should describing a positive experience all around elicit anger)?
Thanks for doing this. I’m going to give it a go on Fedora.

Honestly I haven’t been enjoying and therefore using my framework. But it’s a shame as I had tipped it to replace my prev gen MacBook but now it looks like I’ll be in the market for one of them when they exist in more than just preorders.

Ps, if you’ve got any tips to deal with the touch pad sucking so hard I would be very appreciative.

(The speakers I’ll leave for another day)
Qt3D is the ultimate goal for that, yes.

Here is a little secret, thanks to extension spaghetti and driver bugs, there is seldom "without changing a single file" unless it is some toy app, instead of being used across all possible consumer hardware.

Plus you are focusing too much on Qt while being defensive for WebGPU on native deployments, there are plenty of other middleware I can use as example.
I've always wondered why the same logic doesn't apply to using a commercial BIOS. Doesn't the per-unit cost for someone like Compal add up to more than the value in using a customized Phoenix firmware? Even with UEFI the branded option is generally used.
> Don't compilers already have ways to mark variables and dereferences in a way to say 'I really want access to this value happen'?

The standard defines it, it's `volatile` I believe.
But it does not help with the examples above as far as I understand (removing the log, removing the early return, time-travel...).
> Replacing the hydrogen source at similar scales with electrolysis is plausible with base load power generation.

There is no need to tie this to base load power generation. In fact, quite the opposite: A lot of the electrolysis projects and the funding happening right now is targetted at using electrolysis as a compensation for fluctuating renewables.

This makes sense: We have cheap, green electricity, however having it in constant supply is expensive. So the smart thing is to shift the demand where that's possible.
Ask HN: What is Zoom's algorithm for ordering in gallery view?