frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Maximizers vs. Focusers

https://cutlefish.substack.com/p/tbm-383-maximizers-vs-focusers
1•pgwhalen•17s ago•0 comments

'Phased Out'–Google Confirms Bad News for All 3B Chrome Users

https://www.forbes.com/sites/zakdoffman/2025/10/19/phased-out-google-confirms-bad-news-for-all-3-...
1•RupertWiser•1m ago•0 comments

Elites seek to retain their power: Lampedusa's The Leopard skewered super-rich

https://www.bbc.com/culture/article/20250304-the-leopard-the-1958-italian-novel-that-skewered-the...
1•walterbell•1m ago•0 comments

Amazon's AWS struggles to recover after major outage disrupts apps, services

https://www.reuters.com/business/retail-consumer/amazons-cloud-unit-reports-outage-several-websit...
2•fatihkocnet•3m ago•0 comments

Ask HN: Why is LinkedIn's job search so bad?

1•dcminter•3m ago•0 comments

Claude Skills Considered Harmful

https://sibylline.dev/articles/2025-10-20-claude-skills-considered-harmful/
2•CuriouslyC•4m ago•0 comments

Hitlerism, Trumpism, Netanyahuism, Le M, Macronism

https://emmanueltodd.substack.com/p/hitlerism-trumpism-netanyahuism-le
2•hackandthink•4m ago•0 comments

Bubble, Bubble, Toil and Trouble

https://thezvi.substack.com/p/bubble-bubble-toil-and-trouble
1•ctoth•4m ago•0 comments

Spreadsheets: The Second Best Tool for the Job

https://yakirhavin.com/blog/spreadsheets-the-second-best-tool-for-the-job/
1•yhavin•5m ago•0 comments

Postman which I thought worked locally on my computer, is down

https://status.postman.com
3•helloguillecl•9m ago•1 comments

A timetree of Fungi dated with fossils and horizontal gene transfers

https://www.nature.com/articles/s41559-025-02851-z
1•PaulHoule•11m ago•0 comments

Can AI Avoid the Enshittification Trap?

https://www.wired.com/story/can-ai-escape-enshittification-trap/
2•CharlesW•16m ago•0 comments

Show HN: JIT compilation of NES ROMs / 6502 programs to .NET MSIL

https://github.com/KallDrexx/Dotnet6502
1•KallDrexx•18m ago•0 comments

Birchdocs, my personal docs site

https://birchdocs.tokyo
2•LinguaBrowse•18m ago•2 comments

Amazon outage takes down Venmo, Ring, Reddit and much of the internet

https://www.techradar.com/news/live/amazon-web-services-alexa-ring-snapchat-fortnite-down-october...
5•CharlesW•19m ago•0 comments

TSMC's dilemma, OpenAI or Oracle, prediction on ambient computing

https://myriadperspectives.com/p/openais-road-to-become-a-hyperscaler
2•leecmjohnny•20m ago•0 comments

Why and how I rewrote these Obsidian plugins

https://johnwhiles.com/posts/obsidian-plugins
3•jwhiles•20m ago•0 comments

OpenAI is losing about three times more money than it's earning

https://www.theregister.com/2025/10/15/openais_chatgpt_popular_few_pay/
4•hansmayer•21m ago•2 comments

Show HN: Spark Slider – Lightweight React Carousel (12KB, TypeScript)

https://github.com/AshBuk/framer-motion-spark-slider
1•AshBuk•21m ago•1 comments

MTEB v2: Evaluation of embedding and retrieval systems for more than just text

https://huggingface.co/blog/isaacchung/mteb-v2
2•lairv•21m ago•0 comments

Subretinal Photovoltaic Implant Restores Vision in Geographic Atrophy Due to AMD

https://www.nejm.org/doi/10.1056/NEJMoa2501396
1•bookofjoe•23m ago•0 comments

Multi-Region Deployments with CDK

https://makingituptech.substack.com/p/multi-region-deployments-with-cdk
1•djlewald•23m ago•0 comments

Benefits of Undefined Behavior

https://mazzo.li/posts/undefined-behavior.html
2•01-_-•23m ago•0 comments

Show HN: Guardrail Layer – self-hosted AI data layer for secure DB chat

https://github.com/tyoung1996/guardrail-layer
1•tcodeking•24m ago•0 comments

AWS Cut Jobs 3 Months Ago

https://www.reuters.com/business/retail-consumer/amazons-aws-cloud-computing-unit-cuts-least-hund...
5•thisismytest•25m ago•1 comments

Apple Pioneer Bill Atkinson Was a Secret Evangelist of the 'God Molecule'

https://www.wired.com/story/apple-pioneer-bill-atkinson-was-a-secret-evangelist-of-the-god-molecule/
2•bookofjoe•27m ago•1 comments

Disaster Insured Losses Top $100B for Sixth Year in a Row

https://www.bloomberg.com/news/articles/2025-10-15/disaster-insured-losses-top-100-billion-for-si...
1•toomuchtodo•28m ago•1 comments

Signs of AI Writing on Wikipedia

https://flowingdata.com/2025/10/20/signs-of-ai-writing-on-wikipedia/
2•Hard_Space•31m ago•1 comments

Fury Mounts over a Global A.I. Frenzy

https://www.nytimes.com/2025/10/20/technology/ai-data-center-backlash-mexico-ireland.html
2•moneycantbuy•33m ago•0 comments

AI New Mirror Engine

https://github.com/fieryseaturtle-dotcom/My-Mirror-Engine-for-AI
1•FierySeaTurtle•34m ago•0 comments
Open in hackernews

The Math Trick Hidden in Your Credit Card Number

https://www.scientificamerican.com/article/what-is-the-luhn-algorithm-the-math-behind-secure-credit-card-numbers/
4•sonabinu•2h ago

Comments

tromp•1h ago
Expressed in Haskell:

    import Data.Char

    card = "4024 6072 3695 0748"

    cardDigits = map digitToInt . filter (not . isSpace)

    doubleDigitSum d = 2 * d - if d<5 then 0 else 9

    doubleEveryOther = reverse . zipWith ($) (cycle [doubleDigitSum,id]) . reverse
   
    main = let
        cd = cardDigits $ card
        sd = sum . doubleEveryOther . init $ cd
        checkDigit = (- (sd + last cd)) `mod` 10
      in print checkDigit
bediger4000•17m ago
I'm not conversant in Haskell, but this probably won't work on American Express card numbers - they have 15 digits, the final digit is still the Luhn checksum.

I did credit card processing 20 years ago - AmEx was very often the fly in the ointment.

tromp•11m ago
The above code works irrespective of the number of digits. It just follows the spec given in the article, specifically:

    1. Write out all but the last digit of the card number.

    2. Write out all but the last digit of the card number.

    3. Starting from the right, double every other number.