frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Building an AI-powered health app (think Noom meets symptom tracking)

https://docs.google.com/document/d/11dZJUkC0fuowUCurUv8yHaJofKv3UeF9EBjL6ToUnK8/edit?usp=sharing
1•DietAppAi•1m ago•0 comments

Wirecutter buys 450 lb box of Amazon returns

https://www.nytimes.com/wirecutter/reviews/mystery-amazon-pallet-unboxing/
1•0xWTF•3m ago•1 comments

LLM chat interfaces will kill curiosity

https://harsehaj.substack.com/p/llms-curiosity-loss-frictionless-learning
2•harsehaj•13m ago•0 comments

Companies Predict 2026 Will Be the Worst College Grad Job Market in Five Years

https://www.wsj.com/lifestyle/careers/2026-graduates-job-market-7928bcd7
1•sarimkx•15m ago•1 comments

From early‑stage shortcuts to a ledger of record

https://www.parafin.com/blog/from-early-stage-shortcuts-to-a-ledger-of-record-our-journey-to-reli...
1•mattmarcus•16m ago•0 comments

Can weed help you drink less? Scientists study how well 'California sober' works

https://www.npr.org/sections/shots-health-news/2025/11/19/nx-s1-5604813/marijuana-drinking-califo...
2•Stratoscope•19m ago•0 comments

Did smartphones make us look down? Could AR glasses help us look up again?

1•Tech_Social•20m ago•0 comments

Mexico Is Now the United States' Top Buyer

https://www.nytimes.com/2025/11/19/world/americas/us-mexico-trade.html
1•mooreds•28m ago•0 comments

Chernobyl: Debunking the Myths of the HBO Series

https://blog.osm-ai.net/investigation/2023/01/05/hbo-chernobyl-myth.html
3•osm3000•32m ago•0 comments

Show HN: Sora Watermark Remover –Pixel-Accurate Cleanup for Sora / Sora 2 Videos

https://www.unsorawatermark.com/?i=d1d5k
1•lu794377•32m ago•0 comments

The growing problem with China's unreliable numbers

https://www.ft.com/content/5b9e7440-51d9-44fa-972c-5f00faf91e62
1•jnord•36m ago•2 comments

Jailbreaking AI Models to Phish Elderly Victims

https://simonlermen.substack.com/p/can-ai-models-be-jailbroken-to-phish
9•DalasNoin•37m ago•1 comments

Summers to step down from teaching at Harvard

https://www.thecrimson.com/article/2025/11/20/summers-leaves-teaching-at-harvard/
8•HR01•38m ago•0 comments

What determines the severity and outcomes of cyberwarfare between countries?

https://techxplore.com/news/2025-11-factors-severity-outcomes-cyberwarfare-countries.html
1•PaulHoule•40m ago•0 comments

Show HN: GraphQL Schema Generator for Golang

https://github.com/pablor21/gqlschemagen
1•pablor21•41m ago•0 comments

Workday to Acquire Pipedream

https://newsroom.workday.com/2025-11-19-Workday-Signs-Definitive-Agreement-to-Acquire-Pipedream
10•gaws•42m ago•10 comments

The wildest LLM backdoor I've seen yet

https://old.reddit.com/r/LocalLLaMA/comments/1p1grbb/the_wildest_llm_backdoor_ive_seen_yet/
3•haxiomic•45m ago•1 comments

The "Meh-Trics" Reloaded: Why I Was 100% Wrong About Metrics (& Also 100% Right)

https://www.honeycomb.io/blog/the-meh-trics-reloaded
2•gpi•45m ago•0 comments

Verifying your Matrix devices is becoming mandatory

https://element.io/blog/verifying-your-devices-is-becoming-mandatory-2/
18•LorenDB•47m ago•7 comments

Money for nothing: The story of the biggest counterfeiter in US history

https://news.sky.com/story/money-for-nothing-the-story-of-the-biggest-counterfeiter-in-us-history...
1•thunderbong•53m ago•0 comments

Big Tech's Soaring Profits Have an Ugly Underside: OpenAI's Losses

https://www.wsj.com/tech/ai/big-techs-soaring-profits-have-an-ugly-underside-openais-losses-fe7e3184
3•mgh2•58m ago•1 comments

Grok 4.1 Fast and Agent Tools API

https://x.ai/news/grok-4-1-fast
1•meetpateltech•58m ago•0 comments

CIA report boasted about tricking Congress in JFK probe, whistleblower says

https://www.axios.com/2025/11/19/whistleblower-secret-cia-report-jfk-assassination
3•cwwc•59m ago•0 comments

Show HN: The Open Rate Sheet – A Glassdoor for digital art commissions

https://openratesheet.netlify.app/
3•Roccan•1h ago•0 comments

The Greatest: On the Wonderful Mystery of Janet Malcolm

https://www.metropolitanreview.org/p/the-greatest
1•jger15•1h ago•0 comments

U.S. Revises Endangered Species Act Regulations

https://www.doi.gov/pressreleases/administration-revises-endangered-species-act-regulations-stren...
1•geox•1h ago•0 comments

`dlopen()` Metadata for ELF Files

https://uapi-group.org/specifications/specs/elf_dlopen_metadata/
1•JoshTriplett•1h ago•1 comments

Linux Career Opportunities in 2025: Skills in High Demand

https://www.linuxcareers.com/resources/blog/2025/11/linux-career-opportunities-in-2025-skills-in-...
8•dxs•1h ago•3 comments

Elon Musk announces 500MW xAI data center in Saudi Arabia

https://www.nbcnews.com/tech/tech-news/elon-musk-announces-massive-xai-data-center-saudi-arabia-x...
3•mgh2•1h ago•0 comments

An Homage to 90s –/Public_HTML Hosting

https://public.monster/
2•gpi•1h ago•0 comments
Open in hackernews

Working with Git Patches in Apple Mail (2023)

https://btxx.org/posts/mail/
50•todsacerdoti•6mo ago

Comments

johnrob•6mo ago
Once I discovered how git apply can take diff files (or patch files) as input, I stopped using git stash in favor of plain old files. Easier to list and browse the contents of prior edits, also you can grep the files as method of search. I’ve even found myself copying and editing the diffs before applying.
barbazoo•6mo ago
Oh that’s clever, I’ll try that out. Looks like you could just do a git diff > file.patch.

Neat.

johnrob•6mo ago
You’ll also want to familiarize with “git apply -3 <file name>”, for when a diff can’t be applied cleanly. It will try “harder” to merge (three way method) and if it still fails it invokes the conflict merge “UX”:

<<<<<<<<<

=========

>>>>>>>>>

smcameron•6mo ago
There's also Neil Brown's "wiggle" program for applying patches that don't apply.

https://github.com/neilbrown/wiggle

although on debian based systems I think you can just "apt install wiggle"

johnisgood•6mo ago
What does "applying patches that don't apply" mean exactly?

I know about wiggle, but I have not used it, to be honest.

smcameron•6mo ago
It means that if you do "patch -p1 --dry-run < some.patch", and it complains that it doesn't apply, wiggle can sometimes apply it anyway, and also, if you do "patch -p1 < some.patch", and it partially applies but with rejected hunks, wiggle can try to apply the rejected hunks.
johannes1234321•6mo ago
git diff an pipe works, but committing and then `git format-patch` can export multiple patches and then includes metadata (commit message, date, author, etc.) which can make reasoning about such files a lot easier. In a plain diff you only got filename as metadata.
RaoulP•6mo ago
That’s a great idea, and very timely for me.
d3ckard•6mo ago
Thank you, will try. Useful bit of knowledge.
OskarS•6mo ago
That is a very neat trick, I agree.

I personally approaches stashes as undoable "clean up", and I never have anything really important that I want to save there. If I do have something like that, I just commit with a "WIP <some-descriptive-string>" message and don't push it, then a "git reset --mixed HEAD^" when I want to get back to it.

However, just FYI: you can "grep" your stashes really easily if you want to. just "git stash list -p" gives you the diffs for all the stashes, by default in "less" where you can search them, but you can pipe it to grep if you want. I somewhat frequently do that with "git log", if I want to know "when did this variable change?" or whatever, just "git log -p" to get the log with diffs in less, then search for whatever it was with a slash.

teeray•6mo ago
Maybe slightly O/T, but has anyone found a decent way to `git send-email` with email hosts that demand OAuth? (looking at you Outlook and Gmail)
ravetcofx•6mo ago
Generating app passwords for those would work.
pm215•6mo ago
Yeah, I use an app specific password with Gmail, like the setup suggested by https://git-send-email.io/#step-2

Exchange historically had a tendency to mangle emails sent through it (whitespace changes, line wrap, etc), which is obviously bad news for patchmails. I dunno if it's any better these days.

computerfriend•6mo ago
For Gmail, you can use https://github.com/google/gmail-oauth2-tools/tree/master/go/....
mathstuf•6mo ago
I use msmtp with a tool from the oauth2-tools repo to do the rotation token dance. Need to register your own app with Google though.
dmarinus•6mo ago
davmail supports smtp through outlook(365)
ndegruchy•6mo ago
Yeah, I used DAVMail with Emacs+MSMTP+MPOP+notmuch for ages. Works really well, the only occasional thing I had to do was reauthenticate the token, which pops up in a browser window.
ozarker•6mo ago
I think you could set up postfix to smtp forward to those services. So it could handle the oauth2 and you wouldn’t need to configure your client
p_wood•6mo ago
I use an app password but https://github.com/AdityaGarg8/git-credential-email apparently supports OAuth with Gmail, yahoo and outlook
arthurmorgan123•6mo ago
I tried this with Gmail and Outlook. Works flawlessly and also doesn't need to authenticate frequently. The Authen::SASL thing was a catch though.

git-send-email also has some quirks for Outlook which have been recently merged.

palata•6mo ago
I like doing it with aerc [1]. It's even possible to use aerc in parallel to another email client. Just open aerc for git-related emails, and that's it!

[1]: https://drewdevault.com/2022/07/25/Code-review-with-aerc.htm...

kazinator•6mo ago
View the e-mail raw in your browser, select all, copy, paste into git apply.

Then you don't need that message to be in a file-based inbox that is accessible from your git repo.

And in that case you are still likely going to have to copy and paste something to get the correct path.

sircastor•6mo ago
It looks like Apple Mail has plugin support, I wonder if you could author a plugin that’d provide a button to apply the diff.
smcameron•6mo ago
If you work with git and patches a lot, stgit is worth a look.

https://stacked-git.github.io

johnisgood•6mo ago
At that point, why not just use Pijul or even Darcs?
smcameron•5mo ago
Because the codebase you're working on is on github?

And I think you may underestimate the power of stgit. You can manage thousands of patches concurrently, no problem. If you're a maintainer getting patches from loads of people all the time, this is valuable. stgit has it's origins in quilt, which in turn has its origins in Andrew Morton's patch scripts[1], and I know for a fact that Andrew Morton actually managed thousands of patches at a time for years in his work on the linux kernel, because I once sent him a patch against those scripts, and he complained it was slow because I used an O(n^2) algorithm, which worked fine with a handful of patches, and I asked him how many patches he had, and he told me a number that was multiple thousands, so this isn't a hypothetical example.

[1] https://lwn.net/Articles/13518/