skysight-inc/HackerNews huggingface dataset:
>Here's what that gave us: crummy PR reviewers get a silly thing to complain about, developers get an extra thing to think about

Exact same experience working on a team that had this as a standard. It's absolute nonsense. It can be enforced with CSS linting at this point... but why? Never in my decade of writing CSS have I ever ever wished that the declarations in a codebase were alphabetically sorted for any reason. If your class declarations are that large in the first place, you should be breaking things down better.
Interesting look at what drives an acquisition by a vertically focused conglomerate. Interesting, doesn't look like a PE play.
Live kids movies used to be pretty savage too. I showed my young kids Born Free and Old Yeller.

Well, in the first, lions eat some people in the first scene. In the second movie, the wild pigs attack is terrifying. Never mind the rabid animals.

They didn't want to see my recommendations after those two.
I mean, most of the stuff we don't even need, never mind needing it in two days.
> Am I even a competent developer if I have to use the Internet every five minutes to code?

It just means you are slowed down by the need to look things up. Do you consider speed part of competency?

The ability to look everything up on the internet didn't appear until the late 90's. I finished my BSEE + MS CompSci degrees before 1994, effectively without the modern internet. We had manpages. And enormous books. All that's really changed is most pop languages don't have manpages, but at least we aren't killing forests for the X specification printouts!
What? There is no such thing, WFH employees are more productive without interruption.
The comms for this security breach is a textbook case study of what NOT to do
I agree it's not something that should be relied upon, nor is it elegant, I'm just pointing out that in the average case, failing to close a file is not a resource leak in the usual sense. It's not like forgetting to close a file descriptor in C.

To answer each of your questions:

1. Generally no, but if your process exits then you definitely aren't leaking a file descriptor. The great finalizer in the linux kernel gets them then.

2. Yes absolutely, but that also isn't a leak. If you're opening a lot of files, you probably have to handle open failing as well anyway.

3. No order is guaranteed

Most of this is documented on https://pkg.go.dev/runtime#SetFinalizer
Another example of mini-AB is the TI-84 series. Two calculators can be directly connected but a USB A-A cable is verboten by the spec (although I sometimes see them nonetheless), so TI put an AB port on the calculator and sold a mini-A to mini-B cable. It is somewhat confusing to users that a cable with two different ends was nonetheless completely transposable.

I'm not sure of this at all but I sort of doubt the TI-84 used spec compliant OTG, because in general the USB implementation on that calculator was very weird and unreliable and gave the feeling that they were doing something uncouth like bit-banging and not quite fast enough. I remember it routinely taking multiple attempts to get something to transfer successfully.
Is Food Fuel?
The fact that Titans is slightly higher ranked than Peacemaker on HBO is insane.

The data would be more interesting if it could be broken up by demographics. My wife (along with a lot of women) likes reality tv, and Netflix has a fair amount of that. I personally can’t stand it.
It crashes for me in Chrome on windows 11, but not Edge.
Visual Studio Code April 2022
Blind CSRF should be protected at the application level by CSRF tokens. I don’t think I can come up with a situation where using tail scale auth + CSRF tokens puts you in a worse situation than just using CSRF tokens. Obviously, if you don’t use CSRF tokens you have a problem but you have a problem even if you don’t use this tailscale auth.
Here's 21 in a row, by Martin Gardner:

Wouldn’t the sentence ‘I want to put a hyphen between the words Fish and And and And and Chips in my Fish-And-Chips sign’ have been clearer if quotation marks had been placed before Fish, and between Fish and and, and and and And, and And and and, and and and And, and And and and, and and and Chips, as well as after Chips?
Parent comment is onto something. You sound traumatized.
The benefit of giving people free domains is they work already with the fediverse we have and make more sense to regular folk than onion names.
It wasn't the best way to criticize the code review. If I could go back in time 15 years, it's also not the first mistake I would fix. It stuck in my mind because I felt bad about it. I was frustrated that I had been hounded to drop what I was doing and fix the build because of clear style guide violations that a reviewer let slip. (A couple years later, Google implemented every commit getting a full compilation and run of all tests that code-coverage showed affected the covered code. These days, I wouldn't have been hounded to fix a build break caused by someone else.)
Most people rely on others for their own safety. That’s not the point that I’m trying to make here. Rather, I’m saying that weapons technology is the only thing that has freed the individual from being subject to the whims of those physically stronger than themselves.
One can substitute "bitcoin" for "fiat USD" and _most_ of the arguments against it are also against fiat and any other traded commodity. Bitcoin's shining difference to fiat currency is that it isn't backed by any singular entity. One can see that is good or bad as they choose.
Steps to reproduce:

1. Create a Word document (most likely using the Blank document template, Normal.dotm)

2. Type text of first line; press Enter; type text of second line (technically Word calls these 'paragraphs'--Shift+Enter inserts a newline within the same paragraph)

3. Place cursor on first paragraph

4. Click a Paragraph Style from the Styles ribbon section to apply it (e.g., the second one, No Spacing)

5. Right click the style; choose Modify...

6. Change the formatting (e.g., the font to Wingdings)

7. Confirm the dialog

8. Select the entire first paragraph (doesn't matter whether you include the end-of-paragraph/newline)

9. Use manual formatting to override your changes to the style so the text matches the default style, Normal (e.g. use the listbox in the ribbon to change the font back to Calibri)

Done; if you now delete the newline, the second paragraph merges with the first and takes on its style, as parent points out.

Styles are the "proper" way to format Word documents (interesting to see what fraction of users actually use them). They're like a mix of HTML tags and styles: each paragraph (div) must have exactly one Paragraph Style, and each span of text can only have one Character Style. "Manual" formatting has highest precedence, followed by Character Style, followed by Paragraph Style. The benefits are the same as in HTML: semantic correctness and easy restyling of the entire document (e.g., by applying Themes from the Design tab). This sequence of steps is a fairly good demonstration of how they're used.

Edit: clarify
yeah it’s pure pedantry, the worst thing to introduce to pr reviews
I haven't spent enough time with dune to form an opinion (go and cargo are absolutely marvelous though) but a quick search[0] reveals that dune is not the only option.

[0] <https://github.com/ocaml-community/awesome-ocaml#package-man...>
What are the arguments for insensitivity? I'm not used to it, and it seems to my rookie eyes that it only opens venues for confusion (forcing to pay closer attention to symbols to mentally "de duplicate" them), inconsistencies within a same/foreign code base that make joining a project/jumping into an external library just slightly harder, and more vim/emacs/tab/spaces jihads.
You joke, but comparing to past cases, I see no reason to believe it couldn't be considered a crime depending on who you do it to. All depends on the existence of some grumpy idiot with too much power.
One situation is that you close something twice or otherwise try to close an invalid fd. Still, it's very common to ignore the return value of close.

If you use NFS or other specific drivers you can probably get more interesting errors.
Conversely I would prefer to work in a place like that. Professionalism at scale isn’t achievable by tolerating idiotic behaviour and being nice to everyone no matter how dangerously stupid they are being.

There is a point where someone has to put their foot down and demand things be done properly, otherwise the inevitable consequence is a giant mess leading to disaster.

You might be used to small startup teams with responsible, experienced developers.

Out there in larger industry you get people doing absolutely crazy things that break huge, expensive systems.

There’s a difference between “oops I didn’t realise this library doesn’t scale the way I assumed it did” and “rewriting language symbols because I’m too stupid to use more than one syntax forever and ever.”

The standard you walk past is the standard you accept.

Are you saying you would walk past C code with DO…OD instead of {…}?

Would you accept that standard just to be “nice” all the time?
Zulip introduces public access option for open source communities
Yes, absolutely. If you say covered by patent X your product page won’t go through. It’s explicitly states in their guidelines that mentioning patents are disallowed.
I LOVE stuff like this. Reminds me of "OpenOffice does not print on Tuesdays" https://beza1e1.tuxen.de/lore/print_on_tuesday.html
In addition, most of these checks are provided in other languages or linters for those languages. E.g. C++ has had RAII before Rust has existed. C++ (with -Werror), TypeScript and most FP languages have exhaustive switch checking. Clang can catch many (but not all) initialization errors. The places where Rust adds value (data races, memory safety, explicit unsafe) are not discussed in the article.
Many people's desire, whether from envy or disdain of the technology, has been the same those last 40 times and nothing will convince them that it is worth something. It goes up? Scam. It goes down? Worthless. It stabilizes? Worthless scam.
This + mouse to focus.

Give it a week and you'll never go back.

Even Windows has a hidden "mouse to focus" mode it calls X-Mouse.
Ask HN: Do you learn on work time?
Do you read docs and explore existing projects to learn how to better structure your work projects on work time?

In the past I have felt like this is goofing off and needs to be done in my time but now with family commitments there is no time outside of work to read up on the libraries and tools we are using at work. The only option I feel like I have is to learn at work. While I do more than my 40 hours every week I still feel guilty. Is this normal?
Why did that lead to detention?
Native resolution at 10bpp requires 40% less data per frame than the final Full HD RGB output at 8bpp per channel (24bpp total), so it would represent some savings.

The problem is that neither format fits within the limits of USB 2.0 at 15 FPS or higher. To achieve a reasonable framerate you need to apply compression, and generally speaking you'll get better compression if you demosaic first.
The quadcopters are not terribly efficient, they spending too much energy hovering.

I think a fixed-wing drone of the similar form factor is the way to go, would fly many times longer. However, they will fly much faster and can’t stop. To be able to reliably evade obstacles and other drones, they gonna need much better sensors, also more on-board GFlops of compute power to handle data from these sensors.

Fortunately, we still have amazing rate of technical progress so far in both cameras and mobile SoCs, driven by smartphones. For this reason, I think really amazing ones might arrive 5-10 years in the future.
CSS is ordered by definition, it's cascading so that's how it should read in order of speciticity
Are you suggesting if rust removed "safe in practice" features (only keeping theoretically safe features) it would lead to less exploitable software? If so I strongly disagree with you. Every language is rife with features that can be used in unsafe way but in practice increases security.
It's like driving into a park and saying you didn't target anyone so it wasn't murder.

Don't know what to tell you, other than that's not the way the English language works. Regardless of your feelings about the moral and geopolitical aspects of the situation -- the verbs "to murder" and "to execute" obviously mean very different things, in plain functional terms.

That's all there is to it.
Holy shit I just got flashbacks from the dude on my team who used to do that asymmetric code review warfare. Hardly saw his PRs cause he had one person on the team insta-stamp them. At the same time he’d happy-glad you to death with blocking change requests. Said requests would trickle in over the course of a day or two because he didn’t just sit down and do a review, he’d graze on it.
yawn. too long and no pictures. it's no wonder no one here actually read it.
I recently did a qualification and we had to use an e-learning website for reading the course material and writing answers.

It was the slowest, buggiest piece of crap I’ve ever used.

Aside from the random freezes and glitches, they hadn’t bothered to implement proper URL routes so if you were in a task detail screen and reloaded the page or came back to it later it wouldn’t remember what content you were looking at and just show a blank page.

A simple templated site in PHP (or Rails if you’re feeling fancy) with a bit of JS here and there would have been much better.

The company had clearly either heard that SPAs are all the rage and demanded one from their devs who weren’t up to the task, or had it foisted on them by an agency or senior dev who again wasn’t up to the task.

Either way they’ve ended up with a thing that doesn’t work right and probably never will without a serious amount of cash or burning to the ground and starting again.

It’s an extreme example, but there isn’t a single SPA that I’ve ever used that I haven’t had to reload at least once or twice in a session as it’s glitched or got stuck somewhere.

Just because it’s possible and shiny doesn’t make it a good idea.
Maybe a good place to start:

https://www.thelancet.com/journals/lanpsy/article/PIIS2215-0...

It cites many sources including biological and social, however:

> ... we still do not really understand the causes of these differences, and comparatively little research has been done to explain them.
I don’t know about internet but I surely can’t code without autocomplete lol
That's how I think things will go too. I really enjoy the time I spend with OCaml but whenever I need to do something I use JS because it gives me the frustration in lower doses if that makes sense. I learn less but sometimes I don't want to learn, I want to do.
Multi-month, wow. Cool to know this exists though, thanks!
You should probably notify the user though
This is part of working and improving yourself, your company benefits from this. Have you ever heard the quote: "What if we train them and they leave? What if we don’t and they stay?". As long as it is relevant to your job and you're getting your work done, I wouldn't worry too much about it.
> maybe a little training on why customizing a programming language with macros is bad

Both the author and the reviewer had passed C++ style certification. They knew why it was bad. They just got a little lazy and wanted to write their code in a way that felt familiar to them, and figured it was harmless. I got a bit grumpy at having to drop what I was doing right away to fix their mistake due to their laziness.
Looking at this very page! Using the middle mouse button takes me 3 or 4 seconds to move somewhere close to the bottom of the page, much faster and less frustrating to grab and drag the scroll bar. Is there some easier method I'm missing?
I hate those paternalistic ethics. Your responsibility is not to get hacked. My responsibility is to make sure I don’t leak my credentials. Telling people how to live is not your responsibility.
I have used some of those data sets.

This book demonstrates some usage with R and the WRDS Postgres connector (but obviously you can use anything):

https://tidy-finance.org/accessing-managing-financial-data.h...

PS - some of the data sets referenced in that book are freely available.
I wonder if your could print some non visible characters in there to taint the copied value in some detectable way.
You shouldn’t feel bad for learning at work. It’s essential. Also, don’t work a second more than your allotted hours.
I grew up with this book. I absolutely loved it, and spent several years not thinking about it, until I remembered the chapter of the two leaves, which was my favorite chapter. I dug it up again and read it aloud to my wife. Just a wonderful book. I didn't really come away with half the interpretations that the author of this piece had, but that's okay. I didn't see it as an allegory for anything. I just loved how unromantic and poetic it was at the same time. I could analyze the book any which way, but the overall feeling it left me with is cohesive, strong, and original.

As for this piece, I wish he had gone more into the difference between the translations. That's how the piece started, and it ended with him simply saying the Chambers translation (the pre-existing one) is better. Didn't even include a comparison example.
Yeah, that might have made it sound as if he's always like that. To his credit, he was one of those that had to be involved when things got desperate, e.g. the insane and massive data recovery to prevent the index from growing stale during a PCR that wasn't properly planned for (if you were around, you know what I'm talking about).
Or even better than the one time codes they give you, you can simply store the secret itself, on a piece of paper in a safe.
This isn't alarming. We freeze IC3/4 hiring almost yearly when there's a large number of offers extended to interns.

Meta has issues, but this feels like sensationalism.
not the op but what i usually do is just write a plain-old-class with actions/outlets/delegate-methods and place those in the storyboard/xib

if you are programmatically doing it, then you can just init it directly or use some injection/indirection mechanism

you can use the responder chain to send messages up to the nearest view controller if you need to, and if you need some lifecycle awareness, you can always delegate those from the view controller in various ways (protocols, notifications etc)

testing is also easier since they are plain objects with a few methods on them (just fill in their outlets with mocks and you are ready)
> There is plenty of sunshine most places if you can bank fuel during off-season

Energy storage is woefully insufficient yet to cover days let alone seasons so that is a very big "if."
"Themselves" is, at least as far as I learned english, a proper usage in that context. I adjusted "pronoun" to "gendered pronoun" above just in case, in this modern world, the meaning wasn't somehow clear. This feels like an unnecessary amount of pedantry for a simple comment.
Did you grow up in the Mob?
Used Clojure for ~4 years, doing REPL-driven development in Emacs. Have used Ruby and Java since. Maybe it's a rosy retrospection, but in terms of program production I think that was the most productive I've ever been. Falling into a flow state was much easier. Translating complex ideas into code was much easier. Building constructs up piece by piece felt natural and smooth. Sometimes I worry I'll never work in a LISP again.
As far as I know, Vale is the only language that can statically ensure we handle that error with its Higher RAII [0], a form of linear typing.

Basically, File's drop() returns a Result, and the compiler enforces that we use it.

I hear linear types might also be coming to Haskell soon, which is pretty exciting. Such a thing is unfortunately impossible in Rust (though many languages can detect it at run-time).

[0] https://verdagon.dev/blog/higher-raii-7drl
According to wikipedia [0], such a device was actually proposed by a priest in 1754. The theory was more or less as you describe. But there is debate on whether it counts as a lightning rod, and apparently most lightning protection systems work exactly the way you said they don't: to provide a very low impedence path for the current to go safely to ground, which is called a Franklin design.

[0] https://en.m.wikipedia.org/wiki/Lightning_rod#Europe
I unironically blame the pervasiveness of drugs, namely cannabis and alcohol. They seem to be causing serious damage in a large subset of the population. Perhaps it has always been the case but we are more aware of such issues now.

However I know several people who are not drug users have similarly sunk into a state of paranoia or madness. Truly a sad state of affairs and I hope we can identify it, and treat them if possible because it seems telling them outright their thoughts/actions are manic is perceived as an insult.
> Is it really a surprise we ended up with a duopoly?

I have the strange feeling that the reason we have a duopoly is that companies can't get away with being a monopoly.
I’ve used apps for years to get this functionality. Great to know. Between this and enabling more emacs-ey keybindings has made life so much better.
That’s what I meant. Screen time in general. Suggestive screen time even more so.
Yes, and i3wm from which sway was modelled from. KDE Plasma also has the same functionality from the default keybindings (mod+lclick to move, mod+rclick resize)
Abortion deserts: America’s new geography of access to care – mapped
> Years of vulnerabilities have led to Intel’s decision to remove SGX from its next generation of consumer CPUs

Isn't this a bit misleading? Intel is still adding SGXv2 on the Xeon processors. Isn't it most likely that there were just no real use cases for PCs and they just decided to focus on servers?
This is intentional, given that “self-made” keys have plenty of ways to be insecure, and the average user cannot tell the difference between a well made key and one that is either accidentally or intentionally defective in ways that affect their security.

FIDO2 is designed to maximize security for the majority of users, and the majority of users are using Yubikeys or other hardware-backed tokens provided by big players in their space.
That's what "VP/Director/Head of XYZ" means, in Valleyspeak.