skysight-inc/HackerNews huggingface dataset:
I hope I did not come off harsh as much as wanting to be authentic to the people who ask for help. Right now in the industry its very polarized on how to get a job, meaning anyone can do it if they just learn the hard things they need to learn. Either you do projects that you explain well that are somewhat advanced, or you do algo problem solving. There really isn't any in between no matter what anyone tells you. if you get good at one or the other, you will eventually get a job.
Is it true that a timeout wont' work on something blocking on
a socket in C code? As I understand it, normally, a thread blocking on IO -- even in C code -- does not prevent context switching to another thread -- such as the timeout thread.

But there are other reasons to avoid the stdlib timeout library, it's true; and also other ways to timeout on a network call, network call API's should offer their own timeout arguments normally.
Try them and jail them? The fact that this is even phrased as a question says a lot. Neighborhoods in SF are hiring private security to deal with the larceny now.
Ask HN: How were video games from the 90s so efficient?
Title says it all. I am interested in discovering how games like roller coaster tycoon, sim city 2000, warcraft II, and descent (blown away by this one) managed to be created and function on computers that had 500 MB HDD, 300 MHz CPU, and 4 MB RAM.

I'd even broaden the question and ask how did windows 95 stay so small?

Is it possible to recreate this level of efficiency on modern systems? Im curious because I'm interested in creating simulation video games. Dwarf Fortress and Rimworld eventually both suffer from the same problem: CPU death.

If I create a window with C++ and SFML, 60 MB of RAM is used (not impressive at all). If I put 3,000,000 tiles on the screen (using Vertex Arrays), 1 GB of RAM is used (admittedly, that is impressive) and I can pan all the tiles around smoothly.

What other tricks are available?
I think it is mostly that it confuses buyers and that confusion costs more than credit cards costs. You'd need regulations to get around this.
Been down this road many times:

- UI toolkit is cross platform (cough cough Qt, or Altia, or Crank) and runs great on the UX developer's x86 box. The UX guy loves fancy CSS transitions.

- Graphic assets are delivered in 32bit RGBA and the data cache chokes on the massive bit maps. And the cheap LCD is 565BGR so the CPU is constantly mixing channels. Then we discover the hardware has no alpha blending capability. More software load.

- Hardware gets cost reduced. Or the flagship platform gets the beefy CPU and the consumer versions get a Rockchip.

- RAM gets downsized or the project grows out of bounds and now we're blitting from QSPI flash.

- The whole system runs in JavaScript because that's what they can get out of the overseas development team, or it's too expensive to buy 2 more Qt seat licenses (or whatever the hell they want now. I think we're up to first-born children)

It all repeats, over and over.
It calls a series of open source tools that result in producing a pdf with text embedded behind an image overlay, where the image overlay is the original pdf. It was a while ago where I really looked into this but to name a few:

ImageMagick to convert the pages to images

Tesseract-ocr by Google to transcribe the text in the images, which puts it’s output into singular pdf files

Pdfunite to stitch together the pdfs back into a whole file

I’m sure I’m missing a few, iirc it can call a tool that straightens the pages as well.

EDIT: Messed around and remembered the stuff:

where a.pdf is a 2 page PDF:

>convert a.pdf a.png

makes a-0.png and a-1.png

OCR's each image:

>for x in {0..1} ; do tesseract a-$x.png a_ocr-$x PDF ; done ;

combines them into 1 PDF:

>pdfunite a_ocr-{0..1}.pdf a_ocr_combined.pdf
I grew up believing the eye was basically like a balloon and one good poke…

Whether or not that is correct..it’s hard to overcome something like that
Just a nitpick: Pascal is not much older than sh. Maybe a couple of years?
In the case of a simple window manager like i3 I cannot imagine what it would need to do in a second thread and without a compositor it would definitely be drawing faster if not perceptively faster. I don't think one would be apt to notice any difference in performance save for plasmas still slow startup.

I could I suppose point a camera or a phone at the screen and measure I suppose.
> We need coal replacements before 2032.

You are not going to get a replacement for coal before 2032. That's like 10 years away.

If you work really hard and get incredibly lucky, you may limit the increase in coal use by 2032 to be roughly zero. But you are talking about massive infrastructure projects, and that's a really tough sell because, for example, you are seeing significant increases in energy usage in developing countries:

https://www.eia.gov/todayinenergy/detail.php?id=50256

See also the world forecast here:

Of the world’s existing coal-fired generating capacity, 99% consists of boilers and steam turbine units that are as much as 30% less efficient than natural gas-fired combined-cycle units that use the latest technology. Because natural gas-fired generators are more efficient than coal-fired generators at converting fuel to electricity, natural gas-fired generation is often a lower-cost option, even if the fuel price of natural gas is slightly higher than the fuel price of coal.

However, the absence of regional carbon policies or regulations along with rising natural gas prices after 2030—particularly in Asia and in regions that rely on higher-cost liquefied natural gas (LNG)—is likely to make coal the most economical generation fuel to pair with increased intermittent generation from wind and solar. This shift reverses the trend observed over recent decades. Although the cost of mining coal will likely raise coal prices after 2030, we project that coal prices will remain low relative to natural gas prices and provide a cost-competitive option to natural gas-fired generation.

Increases in coal-fired generation in Other non-OECD Asia—which includes Indonesia, Vietnam, and Thailand, among other countries—will account for over 75% of our projected increase in global coal-fired generation from 2030 to 2050. For Other non-OECD Asia, we project that renewable energy sources will account for about 60% of the generation increase over the projection period, primarily from wind and solar. Coal-fired generation will account for nearly all of the remaining growth.

https://www.eia.gov/todayinenergy/detail.php?id=50256
Isn't a lot of the risk of fraudulent charges, etc. due to bad credit card design decisions and outdated technology? Is this something we should be grateful for?
If I rented, that would be pretty much impossible for me. I travel a lot, couldn’t drop it off in person or guarantee having access to an online system, or otherwise deterministically get a payment to them on a specific date.
In related news the FBI sat on high resolution drone footage of the Kenosha incident, and then inexplicably _deleted it_. In case someone has "backed up" the footage, now would be a good time to leak it as well. Funny how inconvenient evidence seems to "accidentally" disappear when in FBI custody.
Ubuntu upgrades are often a mess, even with LTS versions.
Some issues I've encountered: 1) system lost its default route after an upgrade 2) network interface names changed, all connectivity was lost 3) system became unbootable (UEFI boot order changed.) This was all on a physical machine, and loss of connectivity meant having to to go the console.
But it’s not.

You’re assuming the card networks are even charging issuers, and issuers are funding these fees from the revenue they collect in interchange. They are not.

It’s not uncommon for the card networks to not even charge issuers at all. The card networks need to win over the issuers to even issue cards for their network. It’s much easier to win an issuers business by not charging them any fees at all.
A few years ago the company was sold and started bundling their own crap with the downloads, but apparently it was sold again and stopped doing that.
> What if the branch has 17 commits, the 9th of which introduces a regression? Moreover, suppose that the 9th commit of the original branch didn't exhibit the regression; rather, its change had that effect when it was merged into master.

For some developers, the commit is the cohesive unit of change. For others, the PR as a whole is the cohesive unit of change. I fall into the second group. The ninth commit of my branch is meaningless -- it's only the branch as a whole which can be understood as a single coherent thing. Squash merges reflect and support my methodology.
create-react—app is a good way to create the necessary scaffolding.

There’s an O’Reilly book called Learning React (2nd Edition) which is great. It brings you up to speed on the history of the framework as well.
They also drive up prices by a few percent when compared to cash. If you want to support the merchant, spend cash and they don’t lose the 3-5% overhead to the card & network.
No it isn’t. 500 million years ago when Earth’s CO2 level was 5000 ppm, did they have nuclear power?

Is that what saved the planet to make it habitable for humans? No - the levels changed because of exposed olivine rocks that absorbed the CO2. That’s how nature fixes high CO2 levels. Why does the solution have to be anything other than that?

If humanity spent $1 trillion per year on extracting olivine, and putting those rocks on tropical beaches, we’d easily solve climate within a couple decades. It costs $21/ton of CO2 sequestered.[1] It’s easily the most affordable solution.

[1] https://www.vesta.earth/
> So, you would have to guzzle 20 times the recommended dosage of a foul-tasting elixir to get near a lethal dose. 1

This is a straw man. Lethality isn't the only negative consequence. You don't have to die to hurt yourself for no reason.

> But still, much less dangerous as Tylenol

Another drug I'd rarely if ever recommend taking. Could have saved you the lecture.

>... many people are likely to experience Jarisch–Herxheimer reaction to the death of intestinal parasites

I'm sure some are. My money is on shitting intestine lining being more likely, but whatever.
I’m not suggesting you don’t understand it, but see my sister comment in this thread.

How it’s worded implies issuers are even paying a fee & that fee is derived from interchange. When that’s not always the case.
If it's a problem then it can be fixed through legislation, no need to change what's been litigated.
This is a solution that I haven’t heard until now. Thank you for sharing.
Would great to have an option where you and your partner can choose a name on their own (probably a tinder-like mode)
No, the vaccine is fairly detrimental to the spread of COVID.

Overwhelmingly, the numbers of people in Hospitals are unvaxxed.

In BC, the last report I saw for a region had almost 100% of people below 50 in intensive care unvaxxed, almost the same numbers for seniors.

Rates of spread are actually coming down even while business activity expands, vaccines are a potent part of this. Not perfect, but a major component.

So again: COVID is a community problem, less so an individual one. 'Stopping the Dominos' from dropping is much better than trying to lift all the dominos up after they fell with drugs.

"So taking preventative measures because it is forced down their throats seems hostile."

It's not hostile to the 80-90% of people in most advanced nations who have basic civil maturity. It's a mild distraction with obvious individual and group benefits, to the point where I have a hard time understanding lack of participation (yes, it's very easy to understand hesitancy and hostility to being required to do something, but not to the level where people actually would avoid doing something obviously beneficial).

I remember when smoking was banned indoors, I get that people were a begrudged, but I think in reality most people 'got it'.
Household energy prices don't really tell us much about the production costs though.
Maybe use their docker image?

https://ocrmypdf.readthedocs.io/en/latest/docker.html
Erlang is often described as having an imperative core. It was my gateway drug for FP, I certainly found it much easier to grasp and write than any Lisp.
So many stories here, I’ll add another. Bought an appliance from a vendor that advertised free installation, but on two occasions the tech refused to do installation because it was coded incorrectly in their system. Hired a contractor, disputed the cost.
Yes, it was, however this dates back 2014 and solar recycling is progressing, and becomes more and more legally mandatory in industrialized nations.

Solar panels: operators now reach ~80% recycling (glass, metal, silicon, plastic).

Wind turbines recycling is also quickly progressing.
It's possible to run a large region (almost) entirely from renewable's, here's the proof:

https://opennem.org.au/energy/sa1/?range=7d&interval=30m

But Nuclear could still an excellent option depending on various metrics. I rather see some 'risky' nuclear options being considered before any of the geo-engineering ideas take hold (as they will if we don't get a move on).
There is a cost to dealing with cash, which is why some merchants prefer to be all card/no cash.
Why not just get LTSC? You get zero feature updates (ie. the breaking kind) pushed on you, but you still get security updates for up to 10 years.
Because the 9/11 commission was such a home run.
4x of not-so-much is easy and doesn't change the big picture while 50% of a huge amount is... huge and maintains the big picture.
Exactly. The Linux requirements are the single most complex problem and they need the power of git to handle that complexity. The problem isn't git.

The issue is that everyone is using the most complex tool, from solo developer, to 10 developer teams, to 1000 developer projects. You should use the simplest tool that gets the job done for your project[0]. That isn't git, but it's so easy to just pick the thing that "scales".

[0]: https://blog.codinghorror.com/the-principle-of-least-power/
Don’t worry, they did their own research.
They didn't burn fossil fuels at that time. The only sane way to approach this problem is at the root, hence we need to stop emitting additional fossil CO2. What's here already is hard to put back in the ground.
Pdfcalzone I think. Pop tarts appear to be explicitly called out as calzones towards the bottom of the page ( enveloping the filling on all sides, though maybe there is a n alternative interpretation if you consider frosting to be the point of reference).
Low resolution screens, 1 byte pixels, …
Elon Musk Is Building a Sci-Fi World, and the Rest of Us Are Trapped in It
South Australia is building brand new gas peaking plants, and the state says further investment in gas is necessary. So it seems this isn't correct. [1]

Gas is not renewable, and it's nearly as bad as coal.

It's also worth noting their batteries to store renewable energy are not renewable either, not to mention the huge societal impacts on relying on child slavery to prop up your grid (lithium and cobalt mining have a big child labor issue).

Especially worth noting South Australia's battery manufacturer Tesla has an extremely poor record when it comes to supply chain environmental management. Some of Tesla's suppliers have dumped toxic wastewater into water systems, as well as utilised child slaves in the Congo to source rare earth materials. [2]

Green energy indeed!

[1] https://www.murrayvalleystandard.com.au/story/6607101/650m-g...

[2] https://fortune.com/2021/09/30/tesla-ipe-environmental-viola...
That’s why it was spectacularly interesting to begin with!

Why would an anti parasitic drug exhibit any measurable response? Yet, it did.

That is when I realized that science was, if not dead, then severely wounded.

No interest at all, from the “scientific” people.

Now, it turns out we probably know why; it happened to (probably accidentally) be a potent protease inhibitors - and that happened to be important.

We could have found this out a year ago, and begun exploiting this attack vector.

But, no: everyone who found this interesting and worthy of further study was derided and threatened with job losses.

What a shit-show.
Probably most of it predates me in adulthood, but sitting down and writing checks every week or two used to be a non-trivial chore for most people. These days the challenge for me is remembering that I do need to manually pay a few bills now and then manually.
This article about Murdoch and Foot was discussed just yesterday:

Romantic friendship: deep and lasting connection comes in many forms - https://news.ycombinator.com/item?id=29100862 - Nov 2021 (78 comments)
of what relevance would such data be to the user who generated it?
Let's make it explicit: I personally know people - including one direct and one extended family member - involved in this Facebook-science culture. I have seen the videos they are following, I know they are taking the medicine for an unresearched purpose in recommended dosages without any cited scientific reasoning to support.

I'm not anti-Ivermectin anymore than I'm anti-any prescribed drug. I give it to my dog. My dad has used it, under the guidance of a doctor.
As events evolve, greater accessibility for the disability community emerges
This is a continuation of the story began in 1945 of the unwinding one of the greatest empires the world has ever seen:

https://en.wikipedia.org/wiki/British_Empire#Decolonisation_...

> Between 1945 and 1965, the number of people under British rule outside the UK itself fell from 700 million to 5 million, 3 million of whom were in Hong Kong.
Please don't take HN threads into ideological flamewar—it's predictable and therefore boring.

Relatedly, please don't pick the most provocative bit in an article and then copy it into the thread so you can complain about it. That's not the path of curious conversation, and this site is for the latter.

https://news.ycombinator.com/newsguidelines.html
You're looking at it the wrong way. It's just a shell game to get around truth-in-lending laws.

Using a credit card is borrowing money. Interest rates have to be disclosed.

So the fees plus the grace period are a way of making it look like typical card users are not paying a lot of interest.

People getting cash back are actually paying low interest rates, because the market dictates it.

If the fees were prohibited, then not much of substance would change, except the numbers would all be higher.
And we additionally end up in a feedback loop where coders don't check the return value from malloc(!) Since why bother when it never errors. Then we don't have enough resilience capital there either.
Bullshit - Git won because it was incredibly easy to clone a project and have all it's history there _and_ you could work on stuff offline seamlessly. You could git commit things without working internet.
Good article nice reading.

Once built nuclear plants are basically giant nuclear batteries which we can run up or down on demand which is easier and probably more efficient than storing a huge excess of renewable surplus at creation.
The article says they tested it. It composted in two months.
I know HN is probably against self promotion like reddit is, but maybe you could drop your LinkedIn into the prompt. Personally most part time jobs come through references, so building your connections on here is probably one way.
As sibling says they’re mostly co-branded. But there was a period when every retail gas supplier and most major chains actually had their own credit cards. And you often had to, as a young person, figure out who would give you a card so you could build up credit and move up the credit card ladder.
Take commit sounds like some weird version of merging a pull request to me. Like you've sent me some commits and now I'm going to take them.

Cherry pick on the other hand has a non-technical definition that closely approximates what it does in git: https://www.merriam-webster.com/dictionary/cherry-pick
The second statement is equivalent to arguing that cut-throat capitalists aren't that cut-throat.
Clicki: Pay Your Customers per Click
Nuclear power is one of the safest means of electricity generation, but it's very costly due to over regulation. Contrast this to commercial aviation which is tightly regulated and in turn very safe, but it's not over regulated that it becomes too expensive or regulations with diminishing returns that only put unnecessary road blocks.
It can be frustrating indeed that Qt is not quite C++, make no use of modern C++ library, and requires a preprocessor.

Still, I find it debatable whether modern C++ is so much better than Qt. Qt design principles might lead to less performance but I, for one, find the design consistent and solid.

The main advantage of Qt over modern C++ though is its stability. If you had written a Qt app 20 years ago it would still compile and work as intended, whereas C++ become a different language every 5 years.

I share your sentiment about QML though, and hope they will quickly reinvest into Qwidgets.
Before clicking on the article, I thought it would be a fruit or vegetable with some electrodes stuck in it.
Yeah, I lived in Idaho Falls and Santa Fe. I describe it as pleasant and comfortable. Definitely in between, not as many restaurants, quiet, nice natural areas, not as much energy, but has stuff like WinCo.

I do prefer the extremes, haha. Either super rural Utah, or New Orleans/ Mexico City.
imagine "SubversionHub" instead...
Maybe git log --graph --decorate --oneline --all then? Github implements forks as just fancy branches in the same repo. Adding the all param includes all branches.
I think you are referring to Thompson's version?[1] I am referring to Bourne's.[2] Even Joy's shell is older than that one.[3]

[1] 1971 (https://en.wikipedia.org/wiki/Thompson_shell)

[2] 1979 (https://en.wikipedia.org/wiki/Bourne_shell)

[3] 1978 (https://en.wikipedia.org/wiki/C_shell)
There was no other alternative. They had to be efficient. These were the only resources they had to work with.

Reading about the tricks that were used to make the most out of the limited resources is fascinating to me as well! We should not take our current hardware for granted!
Mac and Linux do the same thing. I know people who still prefer the OSX 10.3 and the GNOME2 GUIs, or for instance the way nytimes.com looked back in 2010. That's the problem with making GUIs the thing you love. Some goons stop by your home every few years and toss up the furniture. Apple is the gold standard since it pretty much looks the same as it did in the 80's and each major version tunes subtle things. Microsoft makes big changes to look, but at the end of the day its substance is the same. Then there's Linux where each GUI update is a radical break with tradition that continually reinvents its own identity.
My father was diagnosed with a rare form of lymph node cancer five years ago. It is generally fatal. Over the six months after his diagnosis, he received radiation, chemotherapy and surgery. At the chemotherapy stage, he described simply wanting to die and only continuing because of his connections to his family. But he survived after surgery and has been cancer-free since.

I don't know if there's any good advice for coping with this stuff. The only compensation I can offer is you're probably at the worse part now - pain and uncertainty is the worst. If a person lives or if a person dies, it's done, it's easier.

Words of my father - "Dying quickly is easiest for the person dying and hardest on their loved-one. Dying slowly is hardest in the person dying and easiest on the loved-ones (because they can say good bye)". I don't know if that's true but it shows there are no easy answers.