frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

US public sector cyberdefenders can find vulnerabilities with Mythos in GovCloud

https://claude.com/resources/articles/claude-mythos-5-2-in-aws-govcloud
1•lumpa•2m ago•0 comments

CompMD is coming to your editor

https://compmd.dev/blog/compmd-is-coming-to-your-editor/
1•hakanserce•2m ago•0 comments

Inside Google's Plan to Turn Search into a Personal AI Agent

https://www.businessinsider.com/google-search-ai-personal-knowledge-agent-vision-2026-11
2•thm•2m ago•0 comments

UK PM cites warning AI capabilities could outpace human control

https://www.reuters.com/technology/uk-pm-cites-warning-ai-capabilities-could-outpace-human-contro...
1•thm•3m ago•0 comments

Software Engineering at the Tipping Point – Queue

https://queue.acm.org/doi/10.1145/3859252
1•rbanffy•3m ago•0 comments

Memory Safety for Skeptics – Queue

https://queue.acm.org/doi/10.1145/3773095
1•rbanffy•6m ago•0 comments

Anthropic CEO Amodei outlines plan to put 'speed limit' on AI improving itself

https://www.reuters.com/business/anthropic-adopt-waiting-period-before-using-frontier-ai-improve-...
1•gk1•10m ago•0 comments

Science publishing with AI: The banana principle

https://blog.astrost.at/u/science-publishing-with-ai-the-banana-principle/
1•buchnerjohannes•10m ago•0 comments

Ask HN: How Are You Doing?

1•Phileosopher•11m ago•1 comments

Cryptanalytic result from Anthropic: paper title leaked

https://twitter.com/justalexoki/status/2127397764250456277
3•aklein•12m ago•0 comments

Artificial 'glue' could boost IVF success

https://www.independent.co.uk/news/uk/home-news/ivf-artificial-glue-research-fertility-study-b309...
1•gmays•13m ago•0 comments

Study reveals that new US data centers would emit as much CO2 as Spain

https://www.kadoa.com/datacenter/insights/data-center-signed-load-emissions
1•hubraumhugo•13m ago•0 comments

Creating Logic Using Waves: Photonic Gates [video]

https://www.youtube.com/watch?v=ln0zZcQXv38
1•surprisetalk•14m ago•0 comments

Canada's Kepler raises $430M for the only commercial space relay besides SpaceX

https://betakit.com/keplers-430-million-usd-series-d-launches-canadian-space-tech-into-a-new-orbit/
1•seanwatson•15m ago•0 comments

P95 Bench – LLM Benchmark for Performance Test Scripts

https://p95.qainsights.com/
1•qainsights•15m ago•0 comments

Goldman Sachs values Stack Overflow, which Prosus acquired for $1.8B, at $50M

https://twitter.com/refsrc/status/2127426272737612080
4•jmsflknr•17m ago•3 comments

Comments on Anthropic's Strategy

https://www.lesswrong.com/posts/pGey3PcpSkEhoKrnW/comments-on-anthropic-s-strategy
1•gmays•17m ago•0 comments

OpenAI's new countersuit accuses Apple of 'unlawfully pressuring vendors'

https://techcrunch.com/2026/11/28/openais-new-countersuit-accuses-apple-of-unlawfully-pressuring-...
1•elo2000•17m ago•0 comments

DWP deploys 600 extra staff with services still offline after cyber attack

https://www.bbc.com/news/articles/cxvg275y9de8o
1•toomuchtodo•19m ago•1 comments

Self-improving software is inevitable

https://boristane.com/blog/self-improving-software-is-inevitable/
1•tmach32•20m ago•0 comments

A Pragmatist Approach to Scientific Inquiry in the Age of AI

https://cacm.acm.org/opinion/revisiting-pascals-wager-a-pragmatist-approach-to-scientific-inquiry...
1•rbanffy•20m ago•0 comments

macOS 27.3: New "Accessibility" Permission Warning Is Beyond Ridiculous

https://wojciechkulik.pl/blog/macos-27-3-new-accessibility-permission-warning-is-beyond-ridiculous/
1•wojciech-kulik•22m ago•0 comments

Monopoly Round-Up: How the AI Bubble Put the Federal Reserve into Crisis

https://www.thebignewsletter.com/p/monopoly-round-up-how-the-ai-bubble
2•PaulHoule•22m ago•0 comments

Do Language Models Still Need the Compiler?

https://www.alphaxiv.org/abs/2611.35246
1•camilochs•23m ago•0 comments

Show HN: Toy controlled English to Golang code

https://stated-lang.github.io/
1•artpar•23m ago•1 comments

Show HN: Local Bakery: Local AI video generator for open and cloud AI models

https://localbakery.co
14•zztopisgreat•23m ago•2 comments

Georgia Waffle House cuts cooling energy use 40% with new salt-based A/C system

https://techxplore.com/news/2026-11-georgia-waffle-house-cooling-energy.html
2•CGMthrowaway•23m ago•0 comments

Image Upscaling, Explained Visually

https://visualrambling.space/image-upscaling/
2•damarberlari•24m ago•0 comments

Show HN: Witness – Plain English to Verified Python/TS/Rust/C#/Go via Dafny+Z3

https://github.com/obsvra/witness
2•obsvra•24m ago•0 comments

Europe's Real Estate Fetish?

https://michaelhillaert1.substack.com/p/europes-real-estate-fetish
2•michaelhillaert•26m ago•1 comments
Open in hackernews

Working with Git Patches in Apple Mail (2023)

https://btxx.org/posts/mail/
50•todsacerdoti•1y ago

Comments

johnrob•1y 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•1y ago
Oh that’s clever, I’ll try that out. Looks like you could just do a git diff > file.patch.

Neat.

johnrob•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
That’s a great idea, and very timely for me.
d3ckard•1y ago
Thank you, will try. Useful bit of knowledge.
OskarS•1y 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•1y 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•1y ago
Generating app passwords for those would work.
pm215•1y 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•1y ago
For Gmail, you can use https://github.com/google/gmail-oauth2-tools/tree/master/go/....
mathstuf•1y 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•1y ago
palata•1y 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•1y 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•1y 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•1y ago
If you work with git and patches a lot, stgit is worth a look.

https://stacked-git.github.io

johnisgood•1y ago
At that point, why not just use Pijul or even Darcs?
smcameron•1y 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/

davmail supports smtp through outlook(365)
ndegruchy•1y 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•1y 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•1y ago
I use an app password but https://github.com/AdityaGarg8/git-credential-email apparently supports OAuth with Gmail, yahoo and outlook
arthurmorgan123•1y 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.