skysight-inc/HackerNews huggingface dataset:
> All of us have used mocks in our testing code, to substitute the real things. I know I’m definitely guilty of this. Why though? Why do we do it? Well, It’s usually because initialising those collaborators is not trivial (i.e. can’t be done with a one-liner).

I practically never mock something because I’m concerned that creating the real instance is more than a single line of code or non-trivial.

I don’t want my code making network requests if the actual instance is some kind of network/service client. As a matter of fact, I don’t want network requests in my unit tests. At that point, they’re not unit tests, and they could fail because the request failed or the system on the other end had issues - unrelated to what I’m actually trying to unit test.

I think the author fundamentally has a different idea of unit tests. I write unit tests and mock some dependency because I want to test some code in isolation where the “mock” is some interface with some possible inputs, outputs, or it fails perhaps by throwing an exception. And I can set up this behavior and validate my code gives me the expected outputs or makes some function call on a dependency.

The blog author seems to be conflating unit tests with integration tests, and I’m even wondering what’s the point - if I take them as objectively onto something, perhaps we should throwaway our tests and just test in production.
What does success mean to you?
Previous discussion: https://news.ycombinator.com/item?id=27560438
The world is infinitely worse if she or sci-hub are taken out. There's no way to quantify how incredibly useful it is to humanity as a whole, and it's probably the single best creation of the past 100 years, with no exaggeration. It's delivering what we always envisioned for the internet. The free exchange of information and ideas, no matter your nationality, your wealth, color of skin, etc.
https://wiki.ubuntu.com/AppArmor ???
See up above, where someone found it in the Archive.
Like laundry or John McAfee, it doesn’t just hang itself?
I agree with it being spam and delisting.

Still made me curious, as my bluetooth keyboard/mouse combo from around 2004 chews through batteries like nothing. Yeah, also need a new notebook, mine is dated 2007 (unfortunately HP).

I would love to see a HackerNews Hardware section =)
Not for specific bit flips, but on average you get more bit flips at higher altitudes and on systems with less shielding (being underground helps).
https://en.wikipedia.org/wiki/Systrace https://en.wikipedia.org/wiki/Linux_Security_Modules
CLOS has :before, :after and :around to do such things (https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node285.html#...) (of course, being common lisp, it also allows programmers to change about everything about that behavior)
Check Firefox stats:

https://data.firefox.com/dashboard/hardware

> these tables on a cursory Google search are clearly lumping 13 inch MacBook pros into the 1280x800 bucket for instance.

How can you tell that? Even JS-only trackers can use Window.devicePixelRatio to get the real resolution, if needed.
I hoped that with the fiber, which is naturally full-duplex medium, symmetrical speed would be obvious choice. But with advent of GPON, which is essentially half-dupex shared fiber medium, asymmetrical speeds make sense again.

Here, a provider i use offers variable tarrifs, that allow adjusting download/upload ratio dynamically in web interface (e.g. tarif '250' could be switched between 250/80 Mbps, 150/150 Mbps, or 80/250 Mbps).
I think that a well covered codebase should include mostly unit tests, plenty of integration tests, and few E2E tests, i.e. model the test pyramid[1].

Mocking in unit tests is generally acceptable to avoid also testing other systems. E.g. if the function does OS or network calls it's a good idea to mock that and keep the test isolated. But you should also have integration tests for the feature which do make external calls without mocking (or mocking at a higher level), as well as E2E tests that test the system as a whole. This way you can generally quickly pinpoint where something breaks, which may or may not break higher level tests.

[1]: https://martinfowler.com/bliki/TestPyramid.html
Please note that idempotency key is not specific to just HTTP requests - we may have to implement this for async use cases as well - eg. events streams & messages.
Advocating for the lost “middle” market of homes is something Strong Towns does.
Isn’t constexpr c++-only?
40 hours is a completely arbitrary number. It wasn't true a hundred year ago. It isn't true for everyone. It isn't true for the same person during different phases of their life. What is true is that overworking will only have diminishing return, however it is up to each individual to find their own threshold.

Grinding away may not be productive, and may be a sign of a poorly run company, but sometime a company has to do it anyway if it's the matter of survival. A dead company can't become a well run one.
You going to kill my three children off to "clean the genepool"?

Watch your mouth, next time. The way you spoke to a person looking over the ledge of suicide is despicable and malicious, and someone ought to teach you a lesson.
> In the US it’s not called fiber if there’s coaxial in the line

My FIOS ONT has a coax out, so that's probably not entirely true.
I tend to disagree. Lego's main competitor isn't their own old sets; it's alternate entertainment like XBox or YouTube.

I would estimate that any innovation like this that encourages people to pull out and play with their Lego strongly increases the chances that they'll sell new sets to those people.
Interestingly, every student I know uses sci-hub.
My family genealogy would be utterly boring to 99%+ of people.

And this Quake bot genealogy would be utterly boring to 99%+ of people too.

I'm obviously the single person alive (except perhaps my brother) who finds all three interesting.

Edit: typo
There are already some great android apps available so I guess no need for any official app. Check out Harmonic and Materialstic for example.
Nice guide, this is like a platonic ideal of anonymity we'd like to have but never will.

Years of using FB when I was younger, general lapses in judgement or overlooks in privacy when in tense or pressing situations, compromises I've made in using services with certain people or jobs, many regretful apps or purchases and sign ups, years of my email and phone number shared to 3rd parties, I could go on...

And that's just the data I've shared knowingly, mostly due to the social contract when functioning in certain groups. The odds are stacked up against an individual.

The reason I mentioned that it's a platonic ideal is because it takes a lot of education and experience for one to even _know_ how to be anonymous—we're not born a priori with an understanding of privacy wrt technology, and we don't learn about tech privacy early say compared to privacy in the physical world. Maybe older folk that were wise to all of these violations as they became prevalent, but younger people are already profiled and marketed to before they understand any of these concepts—it's so dire. I think an approach that may work is for the blocking and scrubbing to be on the hardware and software vendors level with privacy-options baked in and set as default. A given, sort of like how you expect a bathroom stall to be private.

Another solution, assuming we can't escape being tracked, would be to weaponise our data with tools like trackmenot[0] and adnauseam[1].

1. https://trackmenot.io

2. https://adnauseam.io
Well, I think the opposite is correct. The only solution is to archive everything. therefore I do, I accomplish this with a Miniflux instance with about 360,000 items in it. Then again I kept all my blog content going back until 2009, for 10 years,. That is until 2019, when I decided to start completely over.
React Facade: Dependency injection for React hooks
Where did you get "selling Audacity user data" from?
True, and with even more sufficient data, such as context and other acoustic profiling like those from the tires and one very well might be able to detect a specific Sentra.
What happened on reddit back then was a small incident. Reddit was a free-for-all cesspool back then. Putin comment was a distraction yet it struck a nerve, invoking your armchair diagnosis. I dont give a shit about Putin, and more generally, politics/politicans have zero impact on my internal calculus.

Being threatened with murder and blackmailed are two other incidents. Being falsely accused of a felony by someone who committed a felony against me, while bearing witness to conspired perjury was another. I used all of my resources to defend myself and was never the same thereafter, and my name is now ruined.

There were also a number of other incidents that led to this. Being harassed using reddit was just one.

Do you want to hear about the time I was molested by a closeted homosexual male in power, in the context of a job interview, and was ashamed to go public when he was put on trial for this by others? How about my physical impairment that prevents me from maintaining focus for any extended period of time?

So, stranger, should I seek help, or clean the genepool by commiting suicide (leaving behind three offspring)? Which is it?
> The most hyped technology in 1995 was Intelligent Agents. Two years later, Office 97 introduced Clippy, the enthusiastic, but incompetent assistant which was so poorly received that it effectively killed off the idea for a generation. Today, twenty years later, we’re once again trying to build intelligent assistants, although now we call them Chatbots

Chatbots are almost a hype cycle on top of a hype cycle. Deep neural networks gave us AI as a hype cycle, someone imagined what they thought AI could do and thought that could be used to prevent people from talking to a real person, leading to cost savings, and so we have hype around chatbots built on a foundation of hype around AI.

The reality is, AI doesn't do what people think it does, and people call in to get a sympathetic human assessment of their issues, not because they're illiterate. So chatbots have no future outside of customer hostile applications that think people will keep paying no matter how disrespectful and unhelpful support is (see Uber). Unfortunately, this seems to work for a lot of companies.
> Another fanatic blog post about how something is always correct and another thing is always wrong.

The salesman techniques are just so obnoxious too:

"Yes, it is possible and highly desirable and don’t be in denial right now."
It already doesn't require root, nor does it necessarily break your environment variables.
Apps on iOS and Android run inside a sandbox. If Apple allows apps to bypass the sandbox like that, then iOS isn't very secure/private.

I know there are downsides if they allow sideloading, but iOS is very restrictive and Apple would still control iOS. They can add more restrictions and fix flaws if needed.
Exactly this. Multiple requests with the same idempotency key are still different requests, and you want to be able to track them independently.

Also worth noting that a header named 'Request-Id' is already a widespread convention. You'll see one back from many popular APIs like AWS or Stripe, and definitely want a name for the idempotency header that differentiates itself from that.
Sounds like it's the Python [0] of 3d tools: the 2nd best 3d tool for everything.

(It's cool that it's arguably the best in some areas even if that's a controversial argument, I think the same true of Python.)

[0] https://news.ycombinator.com/item?id=17571705
SEEKING WORK | Europe/Berlin | REMOTE preferred
Willing to relocate: depends on job & location.

Skills/Tech: Everything visual – 3D, graphics design, typography, illustration, digital imaging, UX, 2D & 3D maps.

From system level to apps (25+ years): Rust (since two years!), C/C++, Python, Lua, x86 assembly, etc.

Leadership – co-founded & ran a production company and two start-ups. Managed a team of ~80 people in the IVI space at a multi national for five years (director level).

3D printing, rapid manufacturing, -prototyping, product design & -engineering for high end furniture and interior design.

Algorithmic/generative/procedural techniques for image & asset production.

VFX – pipeline end-to-end, on-set supervision, cinematography, blocking/previz of both VFX and non-VFX shots, specifically, rendering, shader writing, lookdev & lighting, OSL, RSL.

GitHub: https://github.com/virtualritz

LinkedIn: https://www.linkedin.com/in/moritzmoeller/

Email: virtualritz@protonmail.com

CV on request.
In terms of security the web might theoretically win, but in terms of privacy the App Store clearly wins. Further, the web really isn’t safe. Kids randomly clicking stuff will still infect PC’s long before those same kids randomly clicking the App Store will cause issues.

It’s not even a question of adoption, iOS is a huge target and the App Store actually provides meaningful benefits for the general public.
My point is only that running the text through an ML algorithm changes nothing. If the 5 lines are fair use, you could have copy pasted the lines yourself. If its infringement, it doesn't matter which tools you used to put the infringing code in your file.
^^^ And this right here is one reason I love sites like this one. Seems like I always get to learn somethin' new from folks. ;)

Thank you for finding that! I have played with the geometry nodes some, but somehow I'd missed that particular detail. I suppose I should peek at the docs a little more often. :)
I'm just waiting for somebody to blame 5G.
That is clearly referring to a buyer of their company and clearly indicates that your data still can't be sold.
In what fields are you expected to publish your source code? In the fields I’ve interacted with it was always an “above and beyond” thing that nobody would raise an eye at you not doing.
what do you know? use that. Also you could start with reddit's latest opensource version.
Location: Europe/Berlin
Remote: preferred
Willing to relocate: depends on job & location.

Skills/Tech: Everything visual – 3D, graphics design, typography, illustration, digital imaging, UX, 2D & 3D maps.

From system level to apps (25+ years): Rust (since two years!), C/C++, Python, Lua, x86 assembly, etc.

Leadership – co-founded & ran a production company and two start-ups. Managed a team of ~80 people in the IVI space at a multi national for five years (director level).

3D printing, rapid manufacturing, -prototyping, product design & -engineering for high end furniture and interior design.

Algorithmic/generative/procedural techniques for image & asset production.

VFX – pipeline end-to-end, on-set supervision, cinematography, blocking/previz of both VFX and non-VFX shots, specifically, rendering, shader writing, lookdev & lighting, OSL, RSL.

GitHub: https://github.com/virtualritz

LinkedIn: https://www.linkedin.com/in/moritzmoeller/

CV on request.

Email: virtualritz@protonmail.com
With JS off, both regular and incognito mode didn't work. Turns out Medium now locks you out of articles if you don't enable JS. So much for HTML being a format for hypertext, rather than a delivery vector for arbitrary code execution.
When I was last in Singapore, I was impressed by how clean it was. It's not crazy at all.
In Florida, with very limited exceptions, documents related to building permits are public records. Florida has a very aggressive “sunshine law.” Almost all public records fall under it and nearly any time two or more elected officials meet requires public notice and public access (again with limited exceptions).
Yep, pretty much exactly this. I understand it enough to use it as a tool and do some rudimentary troubleshooting, but to explain how it works would require some waving of the hands to fill in my knowledge gaps.
Right-click, inspect, delete element with Javascript left on also works.
Thanks; I hadn't heard of it before
> It is issue with X11. If you have Wordperfect binary from 1999, it still has to work; it does not matter that RandR provides information, old clients will not ask for it and without it, they will be broken.

This is why i wrote "so that compositing window managers can do it themselves for applications that do not support it, which is also why this needs to go through the window manager". You do not need X11 support for that, functionality that exist can be used right now to do it - assuming the applications and WMs cooperate to specify the necessary attributes and events, of course.

> That's why Xwayland does upscaling by itself.

You can also do this with a compositor for applications that do not support scaling themselves (which would be the default state - again this isn't any different than the 'supports close event' flag that already exists for decades now). Without a compositor you're out of luck (for the most part)...

...However!

Keith Packard worked on server-side scaling some time ago [0] (not sure if it was merged with mainline) which would allow this to be done even without a compositor (well, kinda, technically the server does the compositing just for the scaled windows). So even without a regular desktop compositor this should still be implementable, assuming that functionality was (or will be) merged in mainline Xorg. But note that this is only for the case where one wants to run applications that do not support scaling and have hidpi scaling and also not using a compositor. The rest can already be implemented with Xorg as-is.

[0] https://keithp.com/blogs/window-scaling/
For the 1000th time: just don't use those sideloaded apps. Nobody is forcing you to install Facebook or any other trendy app of the day except your own weakness and childishness. The argument goes the other way for actual adults: currently, on android I can only choose between app backup on Google drive, or no backup at all. I cant firewall untrusted apps. or disable intrusive features. With full access (i.e. root) I can do all those things that improve my privacy tremendously. However currently phone manufacturers in concert with Google make it harder and harder to control your own phone. I'm calling out android here because it seems to follow apple regarding the war on general computation.
Mole people!
I greatly enjoyed the livestreams as he puzzled through this during the early days of the war on the Invisible Enemy.
Miniflux does it for me. Although you do have to have a place to install it. I mean, it needs a server. Whether that's a home server that you have, or a VPS, it doesn't matter.
Explore Google Coral bypassing installing all binary widgets
I think a better set of arguments against the PID as implemented is that is that does not appropriately take into account the actual penalties of the system. As written, the controller will treat errors symmetrically - the it takes the same effort to correct for over and under provisioning.

In reality, we know that this is not realistic. Over provisioning results in an immediate financial cost (that can be easily modeled in $$$), but under provisioning results in a far more complex penalty. I think it'd be important to understand these costs (along with the general shape of your traffic) before implementing a control system.

Furthermore, it's very likely that you'll want to implement a deadzone, and almost certainly you'll want to implement a low pass filter, especially if you're sampling processing time significantly faster than ~30 seconds (the estimated startup time). Oh, and the usual things like anti-integral windup, and hard limits so you don't bankrupt yourself.
Either he is dead, or he is pretending to be dead, in both cases people would not have info
Not sure why you're downvoted. I disagree on implementation but it definitely needs some form of regulation. All other solutions call for massive overnight changes to human nature which isn't gonna happen.
Buying a car is only one part. You're probably true that pretty much anyone could buy a car, even if that's just an old Matiz. But also to maintain, insure and fuel it? No.
check out https://www.inteltechniques.com/podcast.html
Minecraft modding to this day is still built around patching Minecraft code with injected code, effectively acting like COME FROM statements. It's known as Sponge mixins: https://docs.spongepowered.org/stable/en/contributing/implem...
I’m not sure how you got from my comment to this, but in the interest of being clear:

Extrapolating that somebody has a positive vibe and was an Eagle Scout, so they can’t have had past hardships is radically different from “extrapolating” that somebody who uses gendered language has gender biases. The former is a textbook logical fallacy (“affirming the consequent”). The latter is not.
Reminded me of this /r/tfts post.

https://www.reddit.com/r/talesfromtechsupport/comments/5s9mr...
One of the things I've always found interesting is that the idea of spirits, of being haunted by ghosts, etc. are likely just metaphors for psychological trauma, and rituals are just treatments for resolving these traumas or obtaining closure
FWIW, I’ve really enjoyed using Octal on iOS for the last couple of years.
I prefer to mock everything, with one exception: Refactoring old code that wasn't built with unit testing in mind.

For this, I'll go with the "social" unit tests up to the point where the code calls an external service or crosses a network boundary. I'll always mock these things because they slow down your tests massively. A 500ms external service or db call might not sound like much but multiply that over 5000 tests.... I'll still try to mock whatever I can that can be mocked with minimal effort.
This has been on my to-do list for a while!
I can't find them now because the Google search results for the topic are too noisy but I remember immediately after the condo collapse I downloaded the detailed plans of the building from the city's website. These are not the original drawings, but those submitted for the structural work that was to happen.

https://www.townofsurfsidefl.gov/docs/default-source/default...
Yeah but practically nobody really uses UWP so it doesn't count :-P
https://project-evidence.github.io/

https://archive.is/tpxg1
Nicholas Wade's excellent medium post, one hundred percent worth the read, Possibly duped in the Bulletin of atomic scientists shtick floating around right now.)

>https://archive.is/ONgMa
Yuri Deigin's excellent write-up

I'm hedging the percents because my quick reference of previous post's substances is on my other phone, which died horribly, and having to play the "Dude, I had it elsewhere card, I swear" card is my punishment for shitty backup hygiene.

These are two of the better write-ups I've seen and deep dove into, and project evidence is a staple that's only gotten more and more confirmed with the number of eyes that have gone into it despite their initial total flub up of picking a name for it.

There is more than enough know-how condensed between Baric and Zengli Shi to swap RBD's and insert Furin cleavage sites without leaving traces of having done so. I had one paper that went into a hypothetical process for doing so, but I was an idiot and can't remember the author, and it wasn't the most straightforward search engine query because it was one of those middle of the night, just got done reading another paper, saw a query string that looked promising, did it, and pay dirt. Great when looking for a dopamine hit and ego boost for "haha I found it!"; Not so much for when life happens and you suddenly have to rewalk that mental path.

>_<

This is why I'm not an academic... Or more precisely, this is what happens when you let habits you built during college atrophy because you have a day job now.
Can't do that anymore I'm afraid ... Sorry
Stories from February 19, 2007
I note the URL slug is "audacity-is-now-a-spyware" - I wonder if they added the the "Possible" bit to protect themselves from legal action? From reading the article it seems clear that Audacity would tick the boxes required to be classified as spyware. And Audacity aren't even trying to hide it: https://www.audacityteam.org/about/desktop-privacy-notice/

There's more in this Github thread: https://github.com/audacity/audacity/issues/1213