skysight-inc/HackerNews huggingface dataset:
>Yes, it is. One thing is reading a newspaper in which text amounts to a good percentage of the available area, and the rest reflects ambient light, and a whole different thing is a screen with some text in the middle and the free area emitting white light right to my eyes, de facto saturating them.

Photos are still photons. You can adjust the brightness of the monitor to be the same of a newspaper that reflects your favorite light intensity.
>> A professional’s insecurity is rooted in the inherent intangibility of knowledge work. How do you convince your client that you know something worthwhile and justify the high fees you charge? The insecurity caused by this intangibility is exacerbated by the rigorous “up or out” promotion system perpetuated by elite professional organizations, which turns your colleagues into your competitors. How do you convince your boss that you’re worth more than your closest colleague? There is no chance for a professional to rest on their laurels — or even to rest.
https://github.com/aaronsw/html2text
But then there's also this:

https://pbs.twimg.com/media/EaQyClgU4AEJnWf?format=jpg&name=...

https://pbs.twimg.com/media/EaQyCmMUEAEn_1o?format=jpg&name=...

I've not before seen a summer street festival where armed militias wearing bulletproof vests patrol the streets.
Yes, and we may all be disembodied brains living in vats inside a teapot. This is why I don't find such arguments very compelling for showing we should necessarily assume we are being surveilled. The same argument can be applied to situations that have nothing to do with the internet too.

Those are certainly possible ways in which the surveillance could still be happening, because nothing is certain. But the argument is necessarily probabilistic (in the Bayesian sense) and not binary. So yes, I have to take this into account to determine my final risk, but there is no point in necessarily assuming I am being surveilled because then I might never do anything at all.
Cube CSS
Another vote for OU; I haven't attended but from an employer perpective, OU grads have had excellent depth of knowledge.
What matters is that the server app uses as much CPU as it can when it needs it.

With a sync server, a worker is inactive as long as it is waiting on IO, so you need enough workers to maximize the chance that all workers are busy, else, some clients are waiting even if you've got the CPU to deal with them.

With an async server, a single worker handles many clients simultaneously, in theory, a single worker per core is sufficient to eat all the CPU available.
> Laptops and phones autodim but I can't say I've seen this on desktop monitors.

Modern monitors do have this. Not sure for how many years, but the one I'm currently seated by is 3 years old and has auto dimming.
Notice that the "scalelab" tool of TFA allows you to also synthesize dissonant octaves and whatnot: https://github.com/IMAGINARY/ScaleLab
Ask HN: Is full-time employment pure status quo?
The job market is mostly binary in the sense that people are either employed and work 40h/week or are unemployed and work 0h/week. I can't figure out an economic explanation for this. My intuition tells me that for the market to be optimal and more efficient it would also have to include the percentage of how much you work.

I also believe that it's easier to extract more value per hour from a programmer that works 20h/week than a programmer that works 40h/week, so why not adjust for that?

Am I missing something?
> pro-lower-quality-healthcare

What does that mean? What bigger goal lies behind that?

> you have to symmetrify that in a trusted fashion.

Yes I think so too. And I suppose sometimes someone who, say, wears formal clothes and a suite, does that not because s/he wants to dress like that, but because s/he knows about this too
No worries, I think judging things we're unfamiliar with is very human - it's necessary to protect our own time because we can't afford to research _everything_. We just need to be careful to not share these quick judgements as if they are well researched opinions.

> I just feel that writing business logic should not be something you have to do in a plugin of some tools or with knowledge of graphql (resolvers)

Business logic doesn't need to be written in the resolvers themselves (this is not generally good practice); instead your resolvers call out to your business logic layer as is the GraphQL way. For PostGraphile, in general the "business logic layer" is in the database itself (e.g. PostgreSQL functions, etc) which can be reused directly by other components of your stack (e.g. a REST API), but it doesn't have to be.

Is your issue more with how GraphQL in general works (resolvers calling out to the business logic layer), or do you feel that PostGraphile is adding layers of indirection due to an issue with the term "plugin"? If we called them "modules" would you be happier? Here's an example "plugin" that adds a new field to our GraphQL API, where the business logic is contained in a fictitious npm library and we just defer to that in the resolver - this is a common way of writing GraphQL schemas: defining the types/fields via SDL and the accompanying resolver functions: https://gist.github.com/benjie/68f55fa1bcc07e1cd7a8f49d423f1... . In PostGraphile we handle this through plugins because it allows you to mix and match (should you wish) different ways of building your schema (code-first, SDL-first, etc), and it allows you to do full-schema transformations if you wish. An example of full schema transformation is the PgOmitArchived plugin https://github.com/graphile-contrib/pg-omit-archived which adds "soft delete" support to everything in your API with a minimum of fuss - by default soft deleted things are hidden, but you may specify for soft-deleted items to be included, or shown exclusively, using a GraphQL field argument.

> is it really more productive

I suggest you ask our users why they love us; I suspect you'll find the massive increase in productivity is one of the main reasons.

> is it robust, now that your business logic layer is intertwined with your API layer

As mentioned above, this needn't be the case; yes, it's robust.
It would be pretty nice to see the benchmark with what people is using on the async world (asyncpg + uvloop). Just taking a look on them found it's using aiopog (who is using this?) without uvloop.
I'd wager we actually have a lot of clever teenagers here at HN.
Well-meaning, but has never worked in a team nor has any experience of what the market rewards.
Application Virtualization Market is expected to grow $4.4B by 2023
[120 Pages Report] Application virtualization market size, analysis, trends, & forecast. The global market for application virtualization categorized by solutions, services, deployment model, organization size, vertical & by region.
Ask HN: Public domain vintage/ video footage?
I am looking for websites that have video footage in public domain (short clips of cartoons, dancing videos etc) that I can use commercially for a music video.
EIP 1559 Aims to Solve Issue of Ethereum Txns with High ETH Fees
> because research suggests that going to the dark side ain’t all that.

So what? It's personal preference. A few studies aren't going to affect how most people rationalise it to themselves, because, who cares?
Is there a way to reconcile this? Web has such nice tooling to develop for, but it's also nice to have the discoverability and monetization opportunities of a centralized app store.
Something touched on in this article, I suffer from a corneal condition that makes dark mode unusable for me. I have no trouble reading black text on white but trying to read white text on black is impossible.

I kind of got a little frustrated by the whole buzz around dark mode interfaces knowing that I wouldn't get any benefit out of it. I'm also annoyed by Steam (and others) for not providing a native light mode - it really is an accessibility issue for some of us.

I hope the hype around dark mode won't lead to neglect or worse a complete absence (steam) of a light mode.
> Not everything can, needs to be, or even should be, optimized.

Anything you do for thousands of hours yearly should definitely be optimized.
I like the idea and wrote a longer comment. But I must object to your two universal statements as they are without further qualification I find them false.

It is possible to start any program via a file association even if it does nothing with the file that the action was activated on.

Saving a new file only requires the file chooser if the application was started first. If the file is created in Explorer via the New ... Templates and then opened the use of the file chooser can be avoided.
> Cooperative multitasking came out slower than preemptive in the nineties

This wasn't really the reason for the shift away from cooperative multitasking, it was really because cooperative multitasking isn't as robust or well behaved unless you have a lot of control over what tasks you have trying to run together.

In theory cooperative multitasking should have better throughput (latency is another story) because each task can yield at a point where its state is much simpler to snapshot rather than having to do things like record exact register values and handle various situations.
Covid-19 makes it clear: access to the internet should be a universal right
Yes but I don't think anyone expected autopilot to fully drive the car for you in 1958. Now lots of people think fully driverless cars are already possible, and Tesla still markets their cars as having "full self driving" (distinct from "autopilot", but how many people are going to understand that nuance?)
equivalent on Mac: Alt + Right Click.
The term Autopilot isn't misleading. What is misleading is that Tesla claims that all cars since 2016 have full self driving hardware and that they will enable full self driving via over the air updates. Basically they have created the impression that FSD is around the corner and this has probably fooled some people into believing that Autopilot is working much better than the disclaimers say. Some people might think standard features like emergency breaking are included in Autopilot and then they crash into stationary objects that Autopilot didn't detect. If Tesla cars actually had "FSD hardware" then these accidents wouldn't have happened.

https://www.tesla.com/blog/all-tesla-cars-being-produced-now...

https://www.theverge.com/2019/1/30/18204427/tesla-autopilot-...

https://www.theverge.com/2018/10/20/18000884/tesla-full-self...
I left engineering at 36 and became a firefighter paramedic and I know quite a few people in their 40s who started. I just left the fire service after 14 years and now working as a programmer.

Age is just a number. Don't limit yourself.
That's amazing! Used to be addicted to CS:S (surfing) and found a surf server on here.

But for something as fast-paced as surfing, the experience is not wonderful (small input lag). Still, really impressed by this.
Well, sorry to be blunt but that's fucking stupid.

Contrast that with my experience with Unions in Sweden; and that is that they basically don't exist except to ensure that workers rights are not infringed.

So they'll be involved in a termination, or help negotiate overtime pay.

There is no such thing as a "union job", it's just having what's referred to as a "collective agreement".
Diet and Primate and Human Evolution
This seems like quite the achievement. Can't crouch and walk forward though (ctrl+w), nor is it anywhere close to the performance of say cs:go at least in terms of input lag.
You can apply a weight[0][1] to each of the R, G and B components before computing the distance to get results that approximate doing the distance in Lab color space. The main benefit being that this is a lot cheaper computationally than actually converting to Lab, if you are already working in RGB.

0: https://godsnotwheregodsnot.blogspot.com/2011/09/weighted-eu...

1: https://www.compuphase.com/cmetric.htm
Great summary list near end of article of the various mitigations used by iOS - there is quite a few hardware protections implemented within the processors themselves.

Android is less of a monoculture, but also has less opportunity to tune the processor to include strong hardware mitigations against whole classes of vulnerabilities.
For those you want the context of D please check its development history [1].

If history telling us something, python only take off after 20 years and now D language is around the 20 years mark. But fortunately D has passed the growing pain similar to python 2 to 3 when it transitioned to D2.

Personally I think D just need a big breakthrough in a form of a killer application like Ruby with RoR, and Go with Kubernetes to make it more popular and gets the snow ball rolling. The killer application probably involve some kind of data science or data analytics that is currently more popular now with python. But python seems starting to reach its limits and it will be good if D can take over.

For rust since it came from Mozilla team I'd expect by now Firefox is already re-written in rust by now but it seems yet to happen, and this article probably tell us why [2]. It will be wonderful to have Firefox-rust (if it ever happened) to replace Chrome that keeps eating away my quad core CPU and 16 GB ram laptop memory once opening more than 20 tabs.

[1]http://erdani.com/hopl2020-draft.pdf

[2]https://hacks.mozilla.org/2019/02/rewriting-a-browser-compon...
Also on the async use case, it's creating a cursor, when there is no need to use it to just fetch a row from the db (with asyncpg)
That wasn't pointing a bias out, that was just an unsubstantiated statement. The rest in your comment is just your perception and projection of your perception.
I've worked part time as an engineering manager before. Anything from 80% down to 50% (after my kids were born, when trying to start a startup on the side, etc.). It's usually possible to scale your work to suit the percentage you want to work.

However, in all of the times I tried to do this part time work, I failed to strike the balance I wanted. The reason for this is that your colleagues aren't working the same schedule is you. They may not know your reduced schedule (even if it's in you calendar) or they may just not care. But it's very hard (at least for me, YMMV) to ignore phone calls, texts, slacks and emails when your teammates (or people who report to you) are asking for help with something.

So I think for this to work, it would need to be ingrained into the company culture.
Ask HN: How do you architect daily digest emails?
Hi HN,
I'm searching how to build a system to daily digest emails, on top of an existing legacy database / application.

Does it make sense to send daily digests to every user of your app every day? I think that iterate through each user will be very computation expensive.

Then if you need to aggregate some data (maybe with SQL JOIN) or other business logic, in order to build the email content, and you keep doing that for each user, your resource usage will be so high.

Beside then there's more issues: e.g. users may live all over the world and not have the same timezone, so the time of "daily" digest can't be the same for everyone.

Do you have a strategy for this daily digest? Is there some learning resources you could point to?

Muito Obrigado!
The typical Weighted Euclidean color distance values are wrong
Even if you have your phone with you, it can be a lot more convenient to use the watch. Sounds like a neat idea but I've abandoned Github in favour of self-hosted Gitea - I'd definitely be interested in a Gitea version. :)

(I'll probably install this for the work repo, though, and see how it goes.)
Is there an additional reason?

I see some of them change behaviour or make things complex, but I don't see a performance impact or anything that indicates software will be more crashy.
Where exactly is it mentioning this is due to health reasons? Both this article and the Intel press release only mention "personal reasons" so I'm not sure where all this is coming from.
As someone who worked in the greenscreen era, I’ve always found the obsession with dark mode a bit weird.

It’s jolly handy if you want to use your screen at night without waking the wife. Other than that, I don’t find much to recommend it.
Yes, precisely. Well, minor thing:

"in order to continue seeming to be a useful member of the group", I'd say.

And there're other strategies too, of course, one includes trying to help A become even better
0 Linux distros manage this. Have you ever ran an apt or yum repo?
> You'd struggle to find any writer who didn't think the Writers Guild had actively improved their working conditions.

Writing and acting are race to the bottom. There are plenty of people who would be willing to act for free. You can't say the same for working at Facebook.

In order to stop the race-to-the bottom SAG-AFTRA artificially constrains the marketplace by forcing studios hire a certain number of union actors. In this case, it doesn't really hurt newbies because they'd otherwise get paid peanuts anyways. However, that isn't something that people would want in tech expect perhaps in the videogame industry.
The Indian Institute of Science to Join the Concordium Family
>> Beginning users and many intermediates were confused by the two-pane view of File Cabinet

Definitely my experience as a pre-teen. The 9x UI was much more intuitive.

> there seems to be a trend of bundling more functionality into the Title Bar these days.

Yes and I find it annoying, because 1) they are so small, and 2) now you cannot intuitively know whether something on the titlebar is a button or decoration. Flat UIs suck.
browser FPSs will never take off due to complete lack of protection from cheating, and cheating is the core implementation issue with FPSs.
Colour Metric
many engineers were actively against - aghast, even - at the idea of unions

“Union” is a trigger word but call it an association like BMA, BALPA, or a Federation (Police) or even a guild, and everyone would be if not on board, at least willing to have a non-emotive conversation.
Treat yourself on the many takes of file explorer designs: https://dribbble.com/tags/file_explorer
https://news.ycombinator.com/item?id=23476028
His personal reasons may well include that he "personally hates working at Intel"
> How interesting to see attitudes change. Today, using a web browser and HTML/CSS/JavasScript to write your app (whether as a SaaS or a desktop app using Electron) is one of the most popular options for creating apps.

I'm not sure that's a change. The IE integration was what the MS developers wanted, against the wishes of nerd-users. Electron apps today are very popular for developers, and nerd-users constantly complain about it.
Good article, and I like the implementation.

I am sure it has some drawbacks, like distance on the rgb space may not be the best option, or that it does not ignore background color of it is not transparent, still, I like the way of thinking
Better Rename in vs Code: Edit First, Then Decide to Rename
They don't exist? Why are there photos of them then?

https://a57.foxnews.com/static.foxnews.com/foxnews.com/conte...

https://twitter.com/DrewHolden360/status/1271196018554494977...

The claims that these militias are extorting businesses doesn't come from "the right", it comes from claims by the local police chief.

Addressing the takeover of the area surrounding the Seattle Police Department’s abandoned East Precinct building, Chief Carmen Best said ... using air quotes, that police had heard reports of armed people “patrolling” the area, which she said was “very concerning.” “Especially because we don’t know who these people are,” she added. And she hinted that they may even be extorting local business owners and demanding local residents show identification.

Chief Carmen Best may be totally wrong or making that up. But knowing these sorts of things is part of her job, so to dismiss it would take something stronger than some mocking denial. Especially because this is exactly what always happens when police vacate an area. The result is not "no police", the result is that militias and mafias step in to do it themselves. But worse.
I'm not sure this is a realistic benchmark. A couple of remarks:

16 workers is not that much considering that modern servers can have a lot of cores available, and I expect that the more workers you need the more likely you'll hit other bottlenecks:

* the more workers you need, the more memory you consume (workers are processes, not threads),

* I don't know how OS scheduler behave these days, but the general-purpose OS scheduler may consume some CPU time you'd rather give to your app.

I understand the point on latency variation though: preemptive multitasking will slice the CPU time "fairly" between workers, while in a cooperative multitasking situation, it would be the job of the programmer to yield after some time.
But, you often can’t turn down the brightness that much. And anyway the contrast of monitors is many times worse than the contrast of a printed newspaper. Photons are photons, but a screen sends very different pattern of photons to your eyes than a newspaper.
>> [M]any Facebook team members are now questioning the moral compass of [its] chief executive ....

Nothing about FB or its chief executive indicates they're using a 'moral compass.'
Okay, one more: "Calypso", Suzanne Vega:

https://www.youtube.com/watch?v=bhJIZZcNQPA

Steely Dan's "Home at Last" is another interesting turn on Odysseus.
I get pretty bad "burn-in" effects after reading text in dark mode and then looking away from the screen or at a light-mode site. The lines of texts then form a stripe pattern that's overlaid on everything that I see. Lasts about 1-2 minutes. Needless to say, I avoid dark mode in my job and I loathe websites that force it on me.

The effect is worse the higher the contrast between dark background and bright text and the longer I've been reading. Anyone else have this problem?
Interesting thing about File Explorer is that the 20-year-old APIs for extending it still work! While File Explorer has changed between Windows versions, the underlying Win32 API seems to be the same.

A year ago I dove into shell extensions [1] to implement a drag-and-drop gesture for a file type. I wanted to create a bookmarking system for files in File Explorer based on nothing more than the bookmark being named after the file I want to bookmark (so they're next to each other when sorted from A-Z) [2]. I had not used Visual C++ before but the tutorials I found from the early 2000s, and some helpful advice from MSFT via Stackoverflow, got me through it.

There is also a simpler way to write Shell extensions using a C# wrapper if that works for your use case [3].

[1]: https://docs.microsoft.com/en-us/windows/win32/shell/shell-e...
[2]: https://filemark.app/
[3]: https://github.com/dwmkerr/sharpshell
Not OP but likely the various paid and free DLC for Tabletop Simulator might have such features. Keep in mind as someone who enjoys boardgames TS can be a surprisingly steep learning curve.
Open source libraries used by Discord
Hi - many of the configurations do use uvloop.

For what it's worth, I think people are using aiopg because it works with SQLAlchemy whereas asyncpg does not.

I kept the database driver the same because I'm testing sync vs async and not database drivers. I would be interested in testing asyncpg, particularly a performance claim is a big part of that library's documentation but another time.
yes many open connections is what i meant (suggested by other people as well). by the way, i really liked the writing, it's refreshing. and i agree with you that people aren't using async for the right reasons.
The detectors looking for guns and knives
Metal oxide nanosheets enable visible light-driven H20 splitting yielding H2
There will always be a movement "rewrite everything in x". This seems to be a natural manifestation of the generation conflict. Looking at the history of programming languages, it is certainly not wrong to say that any "most loved" language has a good chance to become the most hated language at some point in the future. And so on and so forth.