skysight-inc/HackerNews huggingface dataset:
Pre-commit can also be configured to use the project's dependencies, which is what I do with my repos when there is overlap. You don't have to use its built-in integrations. Indeed, I find its integrations most useful for tools that aren't specific to my project: things like the white-space checks, yaml checks, etc.

You can also set things up the other way around, having the CI/CD system install and and run pre-commit's checks as a build step. Pre-commit provides a nice framework, I find, for running these checks.

The advantage of pre-commit is that it catches mistakes before they are committed. Most CI/CD systems are setup to only validate the tip of the branch (i.e. the last commit in the PR), not all the commits along the way. Yes, you can configure a CI/CD system to test each commit, but it's usually swimming upstream to do so. And yes, you can squash all of a PR's commits into a single commit, but there are good reasons NOT to do that. So assuming you have multiple commits in a change, it's nice to know they have likely all been validated in a project using pre-commmit.

I'll make an appeal to authority here:

I've been a professional developer for decades. I've worked with a variety of VCS's and build systems. I've written plenty of Makefiles. Nonetheless, I still find pre-commit useful. I use it even in combination with a Makefile sometimes. You'd be horrified, I guess, to know some of my Makefiles have a rule which runs `pre-commit run --all`.

As an example, earlier this week I setup a new repo which build packages an AWS Lambda written in javascript, and deploys it using the AWS "sam" CLI via a CI/CD system. So the deployed code is Javascript. The repo contains shell-scripts to assist with deployment. And there are multiple yaml files. There's a yaml file to configure the CI/CD system, and there's the CloudFormation template files.

Here's what I configured pre-commit to do:

1. Check for whitespace nits.

2. Check for syntax errors in the yaml files.

3. Validate the CloudFormation templates.

https://aws.amazon.com/blogs/infrastructure-and-automation/u...

4. Run shellcheck against the shell scripts.

5. Run eslint and prettifier against the javascript.

6. Run "npm test" as a local step.

Normally I'd leave (6) out because in most projects its too time-consuming, but in this project the tests run quickly enough that I just made it a pre-commit check. The "npm test" step runs jest, which is installed as a dev dependency in the project's package.json. The other tools are all installed by pre-commit itself.

> I really don't see the point of any pre-commit hooks unless you are the one guy that doesn't use a modern CI/CD platform.

I've tried to make an argument for why to use pre-commit above. Nevertheless, you don't have to install pre-commit's hooks in your checkout. They are ideally there to save you time having to correct mistakes after the fact. It sounds like there's an impedance mismatch between your personal workflow and how you've seen pre-commit set up. Perhaps by resolving that mismatch by adjusting the pre-commit configuration, you can enjoy pre-commits benefits w/o experiencing the issues you've run into.
When you can resolve territorial borders and labels, that's a pretty strong sign of intelligent life.
You can't look at the oil market in isolation like that. Saudi was dumping oil at that point, producing way more than necessary. So much so futures went negative. That is not the case today.
It varies. The more you can look like "the help" the more likely people are to ignore you outright. And the hi-viz + clipboard is a pretty generic "you don't know me, but I'm the help" outfit.
Square holds payments, too. Same 120 day window, too, because that's how long Visa, Mastercard, and Amex give customers to initiate a chargeback.

https://www.eseller365.com/square-holding-funds-business-120...

> Like other payment processors, we periodically review your sales to assess the risk of payment disputes. In a recent review of your account, we determined that we have to hold a portion of your transfer in a reserve balance. Beginning <redacted>, 30% of each transaction on your Square account will be stored in your reserve balance, and will be released 120 days after the original transaction date.
Sure I'll just write and submit patches to every piece of server software used by Facebook. Very practical.
And in your ideal world where Russia has zero consequences for anything are you fine with them invading the Middle East for more oil?
Often the ribbons (alpha-helices and beta=sheets) form "protein domains". Canonically, these are stable, folded structures with conserved shapes and functions that serve as the building blocks of proteins, like lego pieces. These protein domains can be assembled in different ways to form proteins of different function. Different protein domains that have the same evolutionary origin have conserved structure even when the underlying amino acid sequence, or DNA sequence has changed beyond recognition over millions of years of evolution.
In other words, molecular biologists use structure as a proxy for function.
Looking at how the same protein domains works in different proteins in different species can give us clues as to how a protein might work in human biology or disease.
In those instances, were there also declines in real income, employment, industrial production, and wholesale-retail sales? In the current climate, are those things declining? Maybe the answer to those questions help explain the discrepancy.
It's a real goal for dynamic languages. You have no other option to be sure your code is not broken. Another option is to use 100%-non-any type hints. It's a way more harder.

I can see it's a non goal then you have access to deployed code and Sentry. But as library author or author of customer apps there is no other way around.
Based on Zuck's attitude, I doubt remote will stay
Nobody said they were actually doing crimes at the home, just that the cops thought they were. Which hey, maybe they are, maybe they aren’t. But using unrelated crimes and fake data to raid their house under a false pretext is still not ok, and is still unconstitutional.

If the cops think they’re committing a crime, they should actually find enough probably cause to get actual paperwork, not just create junk to justify going after the ‘usual suspects’.
• Eleven table tennis is absolutely terrific with or without adapters.

• Biking/walking through interesting locations (museums, beautiful nature) together with my disabled wife is wonderful.

• Contemplating while visiting some beautiful locations such as Horseshoe bend from above is very nice.

• Biking through brightly-lit locations while actually being in the dark in my air-conditioned bedroom while my wife sleeps is nice.

• I don't play the games, but the best of them have enormous dedicated followings

• Viewing 3D pictures taken by users is often interesting.

• I find anything approaching porn very creepy, but imagine that the "virtual live sex doll" nature of it is very popular.
Stuck on a runway where nobody can see your plane through the fog sounds absolutely terrifying, like a setup for another Tenerife. I can just imagine traffic control changing shift, maybe they're sleep deprived or drunk, and the next thing you know another plane cuts straight through yours.
Moments like that make me wonder what would have happened if you’d just answered “yes”.
Timeless UI Layouts and Website Design Patterns Analyzed
Log about Printers and Cinemas
Interesting but not really relevant.
Can you take it apart? Even if it was spying, how could it connect to Wi-Fi. Also how could the OEM connect to it?
Software development?

Shortly after getting a job as a developer!

I kind of always knew I could probably program, but had resisted software development and didn't really "get" computer science or development.

I resisted going into software development for a very long time. Post uni I got a job as a (very underpaid) "data analyst" at a consultancy firm.

While doing that job I despaired at the state of tools and while there was a separate "development team" that got to play with C# and develop the "New project" that was going to replace all the cobbled together analyst tools, we analysts had to make do with the Access VBA solution (that itself was a migration of an earlier cobbled-together excel solution).

I learned to develop by playing around with that solution, fixing bugs and improving speed. My best speed-up was just by having the data copied locally; when I arrived everyone ran the access file from the network share. All the data processing was round-tripping every call it made via the network. Processing went from an over-night job to being run in minutes.

One of the advantages of having the developer team tied up in the (forever delayed) "new solution" was that the analysts were left to themselves to mess about with their own tools in peace.

I drifted away from that job and when I was ready to work again I just decided could probably do software development after all and so got a job doing VB6 development. I fluffed the interview, forgetting the syntax for a simple loop in VB6 but I got the job anyway. Perhaps because there weren't many people wanting to do VB6 in 2012!

In that job I mostly just learned on the job. It helped to have great colleagues from whom I could learn how to approach things and learned the ins and outs of development and how it differed from programming.

Computer science?

My interest in computer science came much later, mostly thanks to TIS100 as well as Petzold's CODE. Those really helped me understand some of the computer science behind the programming.

That said, I'm still not that sure of my compsci skills, I tried to watch a Data Structures course someone posted here recently and it took me straight back to uni maths where watching it I had a feeling of, "This all seems true and I get that it's true but I don't understand".

Like, it's great being able to prove all sorts of things about the nature of those data structures but the actual computer science stuff seems so disconnected to the real world. You can halfway through the lecture and realise that while all the structures have those nice provable properties, actual implementation is left to the reader, or worse, an "open problem".
Just seconding this request. Any and all podcast recommendations on the LoTR would be welcome.
I do see you pivoted away from some developer tooling things, like mock APIs generated from your database schema (that was a thing previous, no?). While I see you have the mock api generator service, I seem to recall you guys had a more robust paid offering that would read your database schema and spin up a mock API.

Any reason you pivoted away from that product? I quite literally am in search of a company that will do this that doesn't also want to be our API provider in production.

EDIT: I also want to point out, I really like how mature the product has become from the time I looked into it last (I wan to say maybe a year ago, maybe year and half). Seriously considering replacing some internal admin functionality with it.
Ok how long is that? Mine doesn’t have whistles. Maybe I need to soak or sprout them first.
Accessible pages, like no-javascript pages, should be dedicated, mixing accessibility with general UX is simply not working, this adds too many constraints on design that companies don't want to sacrifice. Browsers should allow users to request various levels of accessibility thru headers.
I guess I am missing it.

This is the first time I am hearing about Roblox, looks video games adjacent to me. Meta would not be able to convert their billions of users to a similar platform.

They have to convince users to give up the time they spend now elsewhere on this experience. I suppose it has to be insanely addictive and rewarding, and also it has to have no barriers of entry.

I am just not seeing it in the Metaverse. I mean people gave up the horizontal video format in order to easier consume media, and Meta is trying to convince everybody that people would wear or implant (?!) a devices to have better fidelity video experience? The entertainment value is just not in the resolution and collaborative content creation is already possible without Metaverse and is niche.

At this point I consider the Metaverse idea just smoke and mirrors to convince investors that they have the next best thing with 30% year to year revenue growth. I don't think Meta would go anywhere soon, they're just hitting the ceiling of easy money they were making and now it's getting harder to have such margins.
It turns out the poster did, in fact, omit extremely material info from their original post. They sold a used company van via credit card via their stripe account: https://news.ycombinator.com/item?id=32264886

This is not something the business sells, and a huge chargeback risk
costs comes from AWS/DynamoDB
The statement from Psaki in an early press conference was that the invasion explained the observed CPI number. She wasn't referring to inflation that was yet to come. She knowingly lied, probably rationalizing it as spin or a half-truth.
Oliver's most recent ditty did roast Biden remarking 'I can taste it. I think he could've done more to roast previous administration policies.
Uncovering A Blocking Syscall
I'm not implying anyone has ever been held accountable. And nothing I said is less true despite that.
Show HN: Rimoto, control your computer with WebSockets
Rimoto allows you to control your computer and show some stats from it like cpu & ram usage with the help of websockets.
I remember at the time the FOSS community found a bunch of prior art that would have most likely invalidate the Microsoft claims. There were plenty of graphical UI in existence that Microsoft probably copied. I do not have links to the epic /. flame-fests on the topic, but perhaps somebody else can find them. Lots of people were sharing links on slashdot with evidence showing how Microsoft would lose.
The exact opposite, Buy long positions at a discount
Show HN: BestDamnJobs – Best damn jobs updated daily and sorted by new openings
Yes. Why is that even a question?
> That is not the case today.

As a deliberate political choice by the Saudis.

https://theintercept.com/2022/02/15/saudi-arabia-gas-price-o...
Ask HN: How to monitor a sea fiber cable?
Recently there was a news[0] about how a national intelligence agency tried to monitor data transmitted via a sea fiber optic cable called SAFE[1] on a foreign country.

Keeping aside the politics, is it feasible to monitor and sniff data out the sea fiber directly?

Wikipedia says the cable transmits data at 440Gb/s. So I'm assuming they cannot store a large portion of the data for future analysis.
Further, since this was carried in a foreign country, they might not have access to a data center, nor they can transmit it back to the home country (it would need bandwidth of another sea cable). And lastly, I'm guessing most of the traffic must be encrypted.

So how are they doing it? If the news is incorrect, it is even possible to do it for anyone with "a device" that be taken to a foreign country in a plane?

0: https://www.msn.com/en-in/news/other/mauritius-snooping-scandal-%E2%80%94-the-moustache-man-from-india-in-the-centre-of-the-storm/ar-AAZVzrB

1: https://en.wikipedia.org/wiki/SAFE_(cable_system)
Voting for Third Parties Isn't a Waste
I kinda agree for the most part
I have hired developers for past 7+ years (full time, freelance and in between). I personally have experienced that no matter how great they technically are (debatable at times), they are of not much value if they cannot work with a team. If they are too much about "me me me. I know best", I don't care how much code you can write. They usually don't last that long anyway.

I judge a good developer by what they focus on especially in early days in a team. If they come in and start shitting on everything current state, they either lack real experience or are too arrogant. I would rather have a developer say "Hey I was wondering why we do this process abc in xyz way. Was there a reason because it seems inefficient but I wanted to understand better".

However, don't judge too quick. It may be possible that this developer is trying to tell you something which you as a manager must understand. If they truly care about the team and the customers, try and listen. If they don't, cut them loose.
Navigation is done by hand, remove spam.txt from the url and you're in the index (a small html page listing other posts).
Having done this both ways I can tell you there is certain value in going to class. For earlier math such as algebra through pre-calculus it's probably sufficient to learn online. I would not use youtube or coursera, but rather MITx which I will explain in a few.

However, if you have a community college that offers night classes at an affordable rate I would choose this path. The reason being once you reach calculus and beyond having a real living human being there to help you understand the concepts is something that is invaluable. Especially Calculus 3 (or the equivalent "vector calculus" course) where it gets very hard to wrap your head around things like divergence, curl, flux, etc. Calculus based probability is another course where having someone available really helps. Personally, things like differential equations can probably be self-taught if you have a very strong foundation in calculus. But if you're not strong there, you will want to also take classes at the university for that.

If you can't get into a class for whatever reason and you want to go online I would use only MITx. I've taken several online courses from them and the quality is superb. They run courses with real humans available for questions and you can usually get things answered quickly. Pay for the verified track for leverage.

It goes without saying you also should spend time on a forum dedicated to math. Physics forums is a good place where you can ask questions and get answers.

I highly recommend also looking into the open university (https://www.open.ac.uk/courses) as an option. Their costs are affordable and the education is top notch (though strangely organized if you're from America).
What I don't like about the TikTok-like experience is that I can tell the algorithm "works" on me. I'd just keep scrolling through pointless, entertaining crap.

So I don't use it.
GADT and State Machines
https://www.marketplace.org/2022/03/07/why-do-we-import-russ...

> Now, you could be excused for asking yourself: “Wait a second, I thought the U.S. had a bunch of oil in the Permian Basin in Texas and the Bakken Shale in North Dakota. Why the heck are we importing oil?” Turns out the answer is part chemistry and part economics.

> ...

> That’s because they take longer to process and need specialized refining equipment. This cheap, lower-quality crude comes from Canada, Venezuela and Russia, among other spots. Back in the late 1990s and early 2000s, it was the product U.S. refiners were buying.

> “A lot of refineries, especially in the Gulf Coast, made a very expensive bet to invest in this equipment that would allow them to save money on input costs by processing, you know, lower-quality crude,” said Richard Sweeney, an assistant professor of economics at Boston College.

---

We can't drill our way out of this because we can't refine the oil that we produce.

Here's another article from 2019 - https://financialpost.com/commodities/energy/the-great-oil-p...

> Refiners who invested billions to turn a profit from processing cheap low-quality crude are paying unheard of premiums to find the heavy-sour grades they need. The mismatch is better news for such OPEC producers as Iraq and Saudi Arabia, who don’t produce much light-sweet, but pump plenty of the dirtier stuff.
I read that same book, maybe a year or two later than you, and also wrote a program to draw a Mandelbrot set on a BBC Model B in my first year at Uni.
I've heard so many times "We'll get back to you on that." And then at my current company, I heard that, and later on in the day we received an email response with all the questions they weren't able to answer live at the meeting. It was a refreshing change.
You're bringing negativity as well. Just applying it to the smaller, weaker party.
Your experience matches my own. For me and my circle Tolkien's works were a draw in part because of how much lore and detail was in the world and yet there were huge mysteries all over that ignite the imagination. Tom was one of those, and as kids he was a source of long debates about how powerful he was, and as we got older and read wider and deeper he still prompts conversation on nature, the nature of power, mystery in story telling - he's the reason I read the Kalevala. Anyway -Tom's awesome and this blog post did not resonate with me much at all, I was glad to see this and most of HN's comments in response.
Yes, because of a worldwide pandemic.

https://wtop.com/national/2021/10/covid-19-drives-gas-oil-pr...
The “human sciences” are just freaking hard - for all the reasons you are pessimistic. The “hard sciences” are much easier - less of that soft stuff to work around.

Agree that the humanities are often pants-on-head whacko.

Disclaimer: hard science engineer type.
Yes, there’s definitely a lot more to the story than what is described in the article, or indeed most of the articles that are based primarily on interviews with Donziger. It’s hard to find a single element of the case that hasn’t been the subject of fierce controversy. The arbitration decision you referenced [1] also relied heavily on disputed evidence, but they tended to give it credence anyway. I don’t think it’s very controversial that Judge Lewis Kaplan has been remarkably hostile toward Donziger, just depends on whether you believe Donziger deserves the harsh treatment. I think it would help if the case got a proper review from a cooler headed judge, but with the current trajectory of the US judicial system that seems to be impossible.

[1] https://www.chevron.com/-/media/chevron/stories/documents/in..., especially part IV where the use of Guerra’s testimony is explained on page 139 of the PDF.
I wish there would be an official TypeScript solution for this. I know there's a TypeScript goal that TypeScript types should not impact runtime behaviour, but I think converting arbitrary JSON from a file or network to a typed TypeScript object is such a common use case it needs a standardised solution. There's tens of libraries that try to solve this now in different ways, all working around this area where TypeScript doesn't try to help.
>probably

That's your assessment what says everything.
> Dependency solvers that obey semver are a really hard problem that have very unintuitive challenges

throw in platform specific binary packages for which platform triplets can be wildcarded plus dependencies that may vary across these platforms plus specifying package sources for which dependencies may be on another source and you're in for a crazy world of hurt (well, at least I am, given I found some issues in bundler+rubygems and have been trying to solve them upstream for a couple of years)
He "debates" college students using every logical fallacy possible.

Another name for a logical fallacy is "something that your brain prefers over strict logical constructions" or "a shortcut that the human brain is wired for".
"Am I so out of touch? No, it's the customers who are wrong."
With a solar sail you can just start tacking, right?
> Before AlphaFold, experimental structure determination was the only option

Other computational methods have existed for a long time. Folding@home was founded 22 years ago.
Some people are using "AI wins a Nobel price" as the new Turing test. Maybe that is going to happen sooner than they expect. Or maybe the owners of the AI will always claim it on its behalf.
> And why we cannot just simulate protein behaviour and interactions using quantum mechanics?

QM calculations have been done in proteins, but they’re computationally very expensive. IIRC, there are hybrid approaches where only a small portion of interest in the protein structure is modelled by QM and the rest by classical molecular mechanics.
Can you name one country that doesn't have warts?