skysight-inc/HackerNews huggingface dataset:
>where else can you get a GLES window up in 3 lines of code?

Everywhere somebody built an abstraction to do it.

#include <SDL.h>

...........

SDL_Init(SDL_INIT_VIDEO);

SDL_Window *window = SDL_CreateWindow("MyApp", 0, 0, 1920, 1080, 0);
Maybe I'm out of touch, but how relevant is ESRB these days? I know Steam has parental controls, but do many parents actually use those? Nothing stops kids from just opening a second steam account and buying gift cards in cash, right?

The whole buying games online thing came around after I was already an adult, so I honestly don't know what it's like for kids.
In many countries, child labor wasn't banned because of moral reasons, it was banned as an anti-competitive measure against un-mechanized factories.

Slavery was enforced (and subsidized) by many governments; it wasn't exactly a creature of the free market. Segregation was similar. Indentured servitude may be a different matter, though it brings up some more complicated questions.

"Not demanding payment up front" has nothing to do with morality; I've gone to many nice restaurants where they didn't charge me up front, and they weren't doing it because they were saints. The history of fire-fighting is also interesting, as it was private for quite some time in many places; insurance companies don't like buildings burning down.

You say that companies should expect profits to fall, but do you expect the companies to drive themselves into the ground (thus leaving their employees unemployed) in an attempt to do a little to help? Most companies spend about 50% of their revenue on labor, and have a profit of less than five percent. That means that a 10% increase in labor costs (think overtime) means they make no money, so they really can't afford to reduce their margins much, and remain an extant firm.

You say we shouldn't gamble our lives on the continued decency of for-profit corporations, but I have more confidence in their ethics than those of the common man. As we saw with toilet paper (and hand sanitizer), the average person will hoard anything they are afraid will not be available tomorrow. Companies have shown more restraint in this crisis and others.
The title would be more useful if it made it clear that this is a doctor's POV, not a patient's. (Not least because a patient spending 7 weeks in an ICU would likely be sedated for most of it.)
Renaming a single file is not very interesting. Renaming a whole bunch of files is much more interesting, and when I need to do that, I use vimv[0].

[0]: https://github.com/thameera/vimv
Performance is horrible on desktop though. Chrome renders slowly and edge doesn't render at all. It is fine for low resolutions, but scale it up to something like 1440p and it drops to ~6 frames per second. I sit on a desktop that can run modern games on high settings, I should be getting the full 144fps on this.. When I open the page I notice all 16 cores becomes fully loaded, so something on the page is cpu bound when it shouldn't have to be.
VPNs: Good for Greed and Privacy?
COBOL CTF Challenge
I'm in a bit of a reverse situation. I left programming some 12 yrs and want to get back into it. But I find it so hard with all the commandline installs, config files etc. The barrier to just getting to "hello world" seems so high now. Pasting my recent ask HN here in case I have better luck:

What is the easiest way to launch a simple PHP website these days?

-A simple CRUD web app

-No new sytax to learn (just good ol' PHP)

-Simple flexible front end library (I have used Materialize CSS, is that the best?)

-Any easy way to make the MySQL pieces easier to manage? Any boilerplates?

-Any end to end integrated development environment? I have codeanywhere subscription and inmotion hosting. Is that good?

Essentially I have decent experience with PHP/MySQL from past and want to launch a simple CRUD website using as much off-the-shelf pieces as possible. Looking for the easiest path to get there.

It would be gravy on top of some day I can wrap it into a mobile app (for location, camera etc.)
I get into this because I see my first program coming out. Think that RSTS/E basic.

Studying zhuangzi these days.

To be a big bird to float over to a neverland. And to think may be you are a butterfly dreaming of being a man.

To each poison or meat.

As long as he/she enjoys it again, whatsoever.
Can you recommend some prolog learning resources? I googled a lot but it's still kinda hard for me to grok - especially CLP.
It's more subtle than that. Here's some background before I answer your question.

One doctor has said that corona patients should be treated like altitude sickness patients, not like viral patients (and this Wuhan article implies that.)

All doctors say that ventilator intubation is the equivalent of major surgery, requiring anesthetics for the duration of ventilation and a long recovery period. High air pressure damages lung tissue, so afterwards you won't be walking or talking much for weeks or months.

So when you put those together, the best US approach today so far is to provide supplemental oxygen with face masks or cannula until the patient faints repeatedly (turns blue or purple), then make a decision to intubate. (China learned and published this in Jan. or Feb., but we learned it in Mar. or Apr.)

The only problem there is that mouth-breathing patients aerosolize corona virua and infect staff and other patients, so they should be moved out of the hospital to a quarantine facility or sent home. I don't think we are doing this yet, and it's an important step to stopping lockdown since we'll have thousands of new patients to monitor and help breathe.

The US mistakes made pre-Apr. 1 were early intubation based on traditional oxygen level monitoring (and to prevent aerosolization to protect staff.) That had a 66% - 90% mortality rate and consumed too many ventilators.

> out best chance now is not to cure them, but to help them survive until their immune system fight it off?

There is no plan, cure or pattern except we give them oxygen and see what happens next. We have no diagnostic tools that tell us cause and effect. For example, X-rays can show corona virus lung congestion, but there's no measurement or inference we can draw from any image. All we know is that ventilators are a one-way trip for most patients. It is what it is.
It seems premature to claim that someone didn't get a top 40 hit in the 2020s, though.
I repeat, I'm not saying it doesn't happen. I am not "dismissing" racist attacks. I'm saying that media will massively over-report any such attacks, and under-report any incidences of people being nice to each other. So we end up with a belief (based on the evidence that we receive from the media) that we're going to be attacked, and not (which is the vast majority of actual interactions) that strangers will help us.
> That would mean a freelancer makes less than half the money as compared to a 9-5

I think as a general rule, if you're freelancing full-time and making the same as you would in a salaried job or even a little more, you're not charging nearly enough.

When you freelance, you don't get paid sick days or paid holidays, and there's considerable risk you might not have any billed hours of work for weeks at a time. This at a minimum is why you need to be charging more per hour than you'd make per hour at a salaried job.
I have a screenshot that actually shows the locations you have saved before are still saved, it just does not let you access them, which proves this was just to annoy users.
> Do you have any source for that?

Found where I got it from: https://www.seattleweekly.com/news/seattle-is-getting-an-obj... I'm not American so no idea if this is accurate or not.
I’m so fed up of going to settings for exactly this reason, can you explain how you created these widgets please?
I do not have any joy as most of the things are done in job - I did something not in the job like fpga. Or go back to emulate mainframe and run my old 370/xa but not ESA assembler etc.
There are other solutions. Institute a minimum wage for farm work. Make it attractive to those who would ordinarily choose to work in a factory to work at a farm. Break the monopolies on food distribution (probably will require the companies to be restructured by law). Create a national food distribution service to compete with the original companies. Provide minimum prices for farmers with the national food distribution service. Put tarifs on imports. Remove all subsidies for food exports (and stop trying to bomb the world food prices in order to offer loans to countries to buy your food exports when they can't afford to compete with their own home grown products).

Ha ha. But seriously, automation and robotics will be much easier to implement.
I had a pretty interesting time reading up on his Doomsday, algorithm. I've coded it up (in Rust), if anyone is interested.

https://github.com/nixpulvis/doomsday
Same. It's a playfully silly movie. The two movie parody scenes could have better pacing though, they feel too long.
Dailyprog's Shrine
It is still only 20-30 fold at max on average. So much more came from many thousand fold clock speed increase, and much wider execution paths.
Welcome to Viral Pneumonia, population hopefully not us.

If any of the antiviral drugs they are trying actually work it'll be the biggest stroke of luck in medicine.
> You could also try to contribute to people also trying to make programming less friction-ish.

I'd love to get into the Jai community but really don't know where to start, beyond watching the videos.
Virtual Airwaves
That is a glorious hack. Thanks! I'll try it out for a spin!
So true. In a month I will receive my new laptop with a qwerty US layout instead of the belgian azerty one I used until now. Using an external keyboard for now, I already see the benefit of qwerty for programmers. And I also switch from macOS to Linux with i3wm.
Beyond a method of software distribution, docker containers are also a nice sandbox. Apps run inside docker will have very limited access to the rest of the system unless you explicitly give access.
What’s the best hosting for eCommerce sites
My team has been using TARS, with Arm as an example, and I feel like I can use TARS more widely.
Out of clarity this is an "algebra over a field" vs a more general concept of an algebra over a ring. More generally an algebra A, over a ring R, an R-algebra, is a ring A equipped with a map Hom(A,Z(R)). Algebra over a field is a special case. Here's a "fun" object for you to consider:

https://en.wikipedia.org/wiki/Field_with_one_element
If software must be as easy to change as to use, then surely that means it's pretty easy to modify it by accident? Do we really want that?
So this is discussing two competing studies done at the same time. I linked to an article about the authors from the original study actually revising their results a year later with new data and basically saying "our previous conclusion was wrong".
Also what is not being said. I do think Sixth Tone's writers are trying to do write informative articles instead of bland propaganda, but some topics are conspicuously absent.

E.g. if you search for articles about Uyghurs: https://duckduckgo.com/?q=uyghur+site%3Asixthtone.com There's not much wrong with those articles, except for what's missing.

Compare with the South China Morning Post, which is also sometimes accused of being propaganda, but it does cover critical topics: https://duckduckgo.com/?q=uyghur+site%3Ascmp.com
That's one heck of a shot, nice work. Puts my landscape work in perspective. The 2 min exposure does wonders there, especially with the stars suggesting motion. Something I would have probably done in post, had this been my shot, would be to either crop out or burn the bottom to avoid leading the eye there, given that the mountain is the true center piece.
YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV
> A lot of this is a direct result of feeling that one always needs to be on the bleeding edge, which is both unnecessary and also a recipe for wasting time on fads.

It's also because the JS ecosystem is absolutely massive -- too massive. Instead of consolidating around a good package, people create a new one. You end up with a small number of contributors (often one) per library, and being on the bleeding edge is the only way to make sure your dependencies are maintained.
And technically, 2020 is part of the 10's, the decade starts only with 2021. :)
On Linux Firefox 75 the page shows only teal background.
Yes, agreed on the different intuitions on the source of wealth.

The fact that market economies so vastly outperform non-market ones is a pretty clear indication that wealth-generation in market economies generally has positive economic externalities, and as such is socially beneficial on the balance.
A lot of people who erroneously turn on PersistentKeepalive on their phones wind up with battery drain for clear reasons. Mobile phone users very much should not be using PersistentKeepalive.
I can see that being true too. The parallel is your challenging code and my simple code have is that they are solo dev projects (presumably!) with little legacy, and you get to choose the direction you take them in.
Perils of data modelling: The Coronavirus Edition
> Note that the “delivered” indicator in iMessage just tells you when it was delivered to the network, and not the recipient. It’s entirely possible to still lose the message after it gets delivered to the network

Is there any reason to believe that in the USA for example iMessages would be 'dropped' at a higher rate than SMS? Put another way, is an iMessage 'delivered' less valuable than an SMS 'delivered'? Curious to hear your thoughts.
Well, we (the people) are the ones who keep those thieves in business. They could as well be printing money. Once this covid19 blows over, we (the people) need to remember who was naughty and who was nice, and send the naughty to oblivion. Because if we forget Ticketmaster (what an asshole of a name) will go back to its routine, overcharging etc.

I have never purchased a ticket from them and never will. It is a matter of principle. If we all do the same they will either go bust (let's remember to treat similarly the Ticketmaster 2.0 that will spring up under a different name)(same tactics, different front cover).
That's why I love HN comments. Always learning a lot of stuff and regularly the comments are more interesting than the original post itself. This is the case for this one I think. Or at least a nice complement.
In the context of PF:

> Logs may be monitored using standard utilities such as tcpdump.

This sounds unusual and not entirely practical?
He's in the same vein as Zappa in my book. They both forged unique and entertaining personas, and, rare for rock stars, they did it sober. We need more role models who show you can be in control of your mind and still be cool. You can choose to be weird, and amazing creativity can come from your natural mind.

I'm not trying to demonize drug use. I've done my fair share. But I hate the notion that rock music requires it. It places a huge burden on people just looking to make a living doing what they love.
I'd say write manageable programs.
The uglier the codebase gets, the more I hate coding it.
If the codebase is well-thought and easily extendable, coding is mostly fun and you get pleasure out of beautiful execution.
I did a brief stint as an architect and realised after about 3 months of doing that, that the things that had started to annoy or bore me about programming were all quite trivial things and I should just get over myself. Since then I've been programming again for about 2 years and quite enjoying myself.

So basically, take a break from programming and do something else for a bit, and don't sweat the little things that annoy you day-to-day -- try to appreciate instead all the creative freedom and chances you get to really test your intellect.
I was an early Scalyr user circa 2014 or so, and have used Splunk at various gigs before and after. My current company is not a Scalyr customer and that makes me pretty sad - even back then, they were snappy and responsive in ways that Splunk has never matched. Despite (maybe due to?) being substantially cheaper, the service we received from the founders and operators was second to none; for example, I remember that someone even hand-wrote a Clojure EDN log-parser for us at no extra charge, just to make sure we were happy.

Steve says elsewhere in the thread that Splunk has the more-flexible query language, and while that may be true I as a product engineer never noticed the delta myself.

TL;DR I think you'd be doing yourself a favor to try Scalyr, and I have no affiliation other than being a happy former customer.
Ctrl-W is the standard default character for erasing a word in the POSIX TTY cooked mode. Thus it works even when using programs that don't have a line editor. Ctrl-U similarly erases the whole line.

GNU Readline's key bindings for Ctrl-W and Ctrl-U mimic these actions for consistency.

Ctrl-U is very useful for retyping a botched password at the login: prompt.
Top shooter games for Android users in 2020
This diagram doesn't show semigroup and monoid. Although these structures aren't used in physics much, I find them very useful for understanding groups.
So the analogy with the Krein–Milman theorem would be this: Any proof is (approximately, at least) a combination of the extreme proofs of the same result?

Now I have to go read the paper referred to.
Changing the default behavior of a standard posix command is a footgun. It would have been better to rename it.
How to mine precious metals in your home
I would tread carefully because last time I checked, VSCode was using +600MB just for extensions! I only used few extensions for Python and Haskell.

OS: Windows 10
https://youtu.be/4BUDwj_mXKE
> Most of the speed-ups come thanks to caching anyway.

I'm afraid you trivially dismiss how hard this is.

For e2e response times as low as 10s from any location, one needs a global footprint behind an anycast network. Both these things aren't easy to do (on your own), especially for something as ubiquitous as name resolution which needs near 100% uptime and consistently low latencies.

Fast isn't the only thing here though, nextdns provides custom configuration and logging over multiple endpoints (including ipv4) served from 33 points of presence. I'm sure keeping lights on with this setup gets tricky pretty quick, let alone implementing features at the pace that they have been. Romain Contepas and Olivier Poitrus are the only reasons nextdns is what it is-- They are world-class experts in building such systems.
I can't think of anything that doesn't have a steep learning curve, aside from just not using any frameworks and writing PHP code. If you're building something solo and it's not too complicated, that's a decent option if you don't want to spend time learning things that won't get you to hello world. But, depending on what you're doing, something like WordPress might do what you want out of the box.
It happened by accident. Originally I wanted to run on bare-metal, and thought UEFI would be a good starting point. THen I never got around to adding multiboot and similar support.
The thing the posters likely are noting is that maps (lowercase 'm', just a regular map) work totally fine without knowing where you are, and Google Maps should too.
What nice way of putting it. Google has indeed suppressed quality signals to the point you don't have to bother creating one. Making peoples homepage invisible was hard, some had to be hoarded into the walled gardens. Wait a few years then shut them down with very little effort.

I was naively surprised one time when I see quality writers shout down rating systems. Apparently making a popular quality product doesn't make scrutiny desirable.
i mean when he's going grocery shopping, etc around here everyone seems to have a mask everywhere even when walking their dog with no one else round for hundreds of feet.
>don't have to pay extra

I think we agree that consumer prices are important. The point of this example is to compare two situations where the prices to the consumer are the same, and only the profit differs, to tease out whether profit really matters.
> markets have done a better job of feeding people than any centralized planning system has.

I wish HN would take their ECON101 lesson and shove it.

All functioning governments susbsidize local farmers.

The US pays farmers to produce milk and corn, amongst other things. The extra milk is often stockpiled as 5 pound cheese bricks. I've seen them.

There is no "free markets with only comparative advantage" for food.

How's the free market in ventilators and PPE working out for you? Hope you don't queue behind the wrong person at the grocery store.
> 2 youtubes

There’s a whole ecosystem of niche review channels that have decent but transient viewership.

For instance some chromebook reviewing channel posts reviews of almost every chromebook coming out to market. There might be some people subscribing to that, but the bulk of the views will be from search results, and only for 3 or 4 videos per viewer (once they make their buying decision they’re done).

That’s an example I could think of on the spot, but there are many many facets of youtube that have a decent traffic with no allegiance from the viewer. They also survive by managing in-content ads themselves, having affiliates or any other system external to youtube, but youtube ads must still represent something to them.
In order to be infected from a door handle, somebody the last few seconds had to sneeze in his hand, touch the handle, you'd have to really touch the whole handle and then take the hand to your mouth/nose. It is unlikely. They find virus RNA on surfaces but it is not activate. Infections from surfaces are vastly overestimated. Staying and talking with an infectious person in a room is underestimated.
What can I say? Only LOL.

This guy's nuts.
Do you have any project ideas for Agda? I used it to formalize the simply typed lambda calculus; what else should I do? After all, I can't really do "traditional" programming projects in Agda as its ecosystem is more geared towards proving. Are there any interesting projects with proofs as a focus?
This is re-writing history.

Edit: John McCain thought "Mission Accomplished" meant "End of War" too: https://abcnews.go.com/Politics/TheNote/story?id=4769254&pag...

If a speech says "Major combat operations in Iraq have ended" and "The battle of Iraq is one victory in a war on terror that began on September the 11, 2001 -- and still goes on" and "We're helping to rebuild Iraq, where the dictator built palaces for himself, instead of hospitals and schools. And we will stand with the new leaders of Iraq as they establish a government of, by, and for the Iraqi people" the message is pretty clear: the Iraq war was over.

Yes, the crew allegedly asked for the sign to be made, but Bush's speech was about the "end of major combat operations in Iraq". Speeches to thank aircraft carrier crews for their missions aren't nationally televised, but that speech was.

There was no doubt in national media at that time what the mission was that had been accomplished.

Here's administration member Richard Perle writing in USA Today about that:

It ended quickly with few civilian casualties and with little damage to Iraq’s cities, towns, or infrastructure….It ended without the quagmire [war critics] predicted….Iraqis are freer today and we are safer. Relax and enjoy it.[1]

If anyone thinks a carefully choreographed performance[2] like this didn't also consider the banner.

Here's the archived speech[3] where is says: Major combat operations in Iraq have ended. In the battle of Iraq, the United States and our allies have prevailed. (Applause.) And now our coalition is engaged in securing and reconstructing that country.

Your quote is later, where he makes clear there are other battles elsewhere ("Al Qaeda... still operate in many nations".)

[1] https://archives.cjr.org/short_takes/mission_revisited.php

[2] https://www.mediamatters.org/laura-ingraham/mission-accompli...

[3] https://georgewbush-whitehouse.archives.gov/news/releases/20...