frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

U.S. Citizens and Chinese Nationals Arrested for Exporting AI Tech to China

https://www.justice.gov/opa/pr/us-citizens-and-chinese-nationals-arrested-exporting-artificial-in...
1•kylecazar•2m ago•0 comments

The Strange and Totally Real Plan to Blot Out the Sun and Reverse Global Warming

https://www.politico.com/news/magazine/2025/11/21/stardust-geoengineering-janos-pasztor-regulatio...
1•pseudolus•8m ago•0 comments

Three Years from GPT-3 to Gemini 3

https://www.oneusefulthing.org/p/three-years-from-gpt-3-to-gemini
1•JumpCrisscross•10m ago•0 comments

Dingo: A Meta-Language for Go

https://github.com/MadAppGang/dingo
1•todsacerdoti•10m ago•0 comments

Knowing When to Hold, Fold, or Walk Away from Tech

https://kyle.cascade.family/posts/knowing-when-to-hold-fold-or-walk-away-from-tech/
1•gm678•13m ago•0 comments

AI assets are an unconscionable risk for premium-priced games

https://www.gamesindustry.biz/ai-assets-are-an-unconscionable-risk-for-premium-priced-games-opini...
1•DDSDev•14m ago•0 comments

Experimenting with Robin Hood Hashing

https://twdev.blog/2025/11/robin_hood/
1•todsacerdoti•14m ago•0 comments

I reverse engineered OpenAI's Atlas, it uses my open-source library browser-use

1•MagMueller•18m ago•0 comments

Show HN: Eidos – AI IDE that generates and edits game prototypes instantly

https://kaausia45-jpg.itch.io/eidos-ai-prototype-ide
1•symbol_reasoner•19m ago•0 comments

How to compute daily VaR fast

https://pyquantnews.substack.com/p/how-to-estimate-daily-loss-fast
1•strimp099•20m ago•0 comments

SCIM: System for Cross-Domain Identity Management

https://simplecloud.info/
2•thunderbong•21m ago•1 comments

Meta buried 'causal' evidence of social media harm, US court filings allege

https://www.reuters.com/sustainability/boards-policy-regulation/meta-buried-causal-evidence-socia...
8•pseudolus•25m ago•0 comments

Show HN: [Vibemap.ai] AI tools for founders – Turn ideas to dev specs in 10 min

https://www.vibemap.ai/
1•AshBuildsAI•30m ago•0 comments

"Superfluous consumerism": adult advent calendar trend alarms green groups

https://www.theguardian.com/lifeandstyle/2025/nov/22/adult-advent-calendar-trend-alarms-green-gro...
1•binning•32m ago•0 comments

Launch Alert SpaceX Starlink 11-30 from California

https://twitter.com/TLPN_Official/status/1992364379426463925
1•astrozac•33m ago•0 comments

Germany to classify date rape drugs as weapons to ensure justice for survivors

https://www.theguardian.com/society/2025/nov/21/germany-to-classify-date-drugs-as-weapons-in-atte...
15•binning•35m ago•2 comments

ElevenLabs Is Now Available in Puter.js

https://developer.puter.com/blog/elevenlabs-api-now-available-in-puter-js/
1•ent101•36m ago•0 comments

The horror and regularity of acid attacks

https://writesobereditsober.substack.com/p/the-horror-and-regularity-of-acid
2•binning•37m ago•0 comments

Apple's 'Skinny' iPhone Falls Flat with Disappointing Early Sales

https://www.ft.com/content/b015206e-dc5b-46cb-b813-98448eb64c9b
3•karakoram•39m ago•2 comments

Plug-and-Play Firewall for Agents

https://github.com/rom-mvp/vigil
1•desadas•39m ago•1 comments

Mag 7 Senior Software Engineer Pay Distributions

https://old.reddit.com/r/dataisbeautiful/comments/1p48sip/oc_mag_7_senior_software_engineer_total/
1•zuhayeer•42m ago•0 comments

Flavanols in cocoa protect blood vessel function following uninterrupted sitting

https://www.birmingham.ac.uk/news/2025/flavanols-in-cocoa-can-protect-blood-vessel-function-follo...
3•giardini•44m ago•1 comments

A Year Without Caffeine

https://bryanalexander.org/personal/a-year-without-caffeine/
3•andsoitis•44m ago•1 comments

Mastering iOS App Clips and App Clip Experiences for Customer Acquisition

https://medium.com/@gauravharkhani01/mastering-ios-app-clips-f011b0e1e940
1•RyanShook•46m ago•0 comments

Sega Master System: Program Walkthroughs

https://bumbershootsoft.wordpress.com/2025/11/22/sega-master-system-program-walkthroughs/
1•ibobev•46m ago•0 comments

780k Windows users downloaded this Linux distro in a month

https://www.xda-developers.com/780000-windows-users-downloaded-this-linux-distro-in-a-month/
1•giardini•48m ago•1 comments

A monopoly ISP refuses to fix upstream infrastructure

https://sacbear.com/xfinity-wont-fix-internet/
4•vedmed•48m ago•0 comments

Sampling a Disk, Vogel's Method

https://www.4rknova.com//blog/2017/01/01/vogel
1•ibobev•49m ago•0 comments

TRS-80 Breakout.BAS

https://basic-code.bearblog.dev/trs-80-breakout/
1•ibobev•49m ago•0 comments

Fair Screen – Detect Cluely/Interview Coder Kind of Interview Cheating Tools

https://fairscreen.co/
1•anantha2024•53m ago•1 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/