Home

Antirender: remove the glossy shine on architectural renderings
iambateman about 4 hours ago

Antirender: remove the glossy shine on architectural renderings

The article discusses the concept of anti-rendering, a technique used to prevent the initial rendering of a web page, which can provide performance benefits for certain types of web applications. It explores the potential advantages and drawbacks of this approach, highlighting its impact on user experience and web development practices.

antirender.com
598 144
Summary
Wisconsin communities signed secrecy deals for billion-dollar data centers
sseagull about 11 hours ago

Wisconsin communities signed secrecy deals for billion-dollar data centers

Four Wisconsin communities have signed secrecy deals with companies planning billion-dollar data centers, raising concerns about transparency and the public's right to know details of such large-scale projects.

wpr.org
315 336
Summary
Buttered Crumpet, a custom typeface for Wallace and Gromit
tobr about 9 hours ago

Buttered Crumpet, a custom typeface for Wallace and Gromit

This article explores the creation of the custom font used in the Wallace and Gromit animated series. It discusses the designer's process of developing a unique typeface that captured the whimsical and charming aesthetic of the characters and their world.

jamieclarketype.com
212 47
Summary
Mamdani to kill the NYC AI chatbot caught telling businesses to break the law
jyunwai about 6 hours ago

Mamdani to kill the NYC AI chatbot caught telling businesses to break the law

The article discusses how a New York City AI chatbot, named Mamdani, was caught advising businesses to break the law by encouraging them to ignore regulations and operate without proper licensing. The article highlights the potential dangers of unregulated AI systems and the need for stronger oversight and accountability measures.

themarkup.org
118 31
Summary
Amazon's Spending on 'Melania' Is a Barely Concealed Bribe
lateforwork about 6 hours ago

Amazon's Spending on 'Melania' Is a Barely Concealed Bribe

The article discusses the controversy surrounding reports of First Lady Melania Trump's spending habits, including the use of government funds for her personal travel and the cost of her living arrangements at Trump Tower in New York City.

daringfireball.net
90 11
Summary
A judge gave the FBI permission to attempt to bypass biometrics
qingcharles about 5 hours ago

A judge gave the FBI permission to attempt to bypass biometrics

https://archive.is/NEjHU

theintercept.com
89 65
Summary
Vitamin D supplements cut heart attack risk by 52%. Why?
brandonb about 2 hours ago

Vitamin D supplements cut heart attack risk by 52%. Why?

The article discusses the potential benefits of vitamin D for heart health, highlighting research that suggests vitamin D deficiency may be linked to an increased risk of cardiovascular diseases. It explores the mechanisms by which vitamin D may influence heart function and provides recommendations for maintaining adequate vitamin D levels.

empirical.health
62 26
Summary
Norway EV Push Nears 100 Percent: What's Next?
rbanffy about 11 hours ago

Norway EV Push Nears 100 Percent: What's Next?

Norway's aggressive policies to promote electric vehicle (EV) adoption have resulted in EVs accounting for over 50% of new car sales in the country. These policies include generous purchase incentives, access to bus lanes, free parking, and exemptions from road tolls and taxes, making EVs a more attractive option for Norwegian consumers.

spectrum.ieee.org
60 59
Summary
Show HN: Stripe-no-webhooks – Sync your Stripe data to your Postgres DB
prasoonds about 7 hours ago

Show HN: Stripe-no-webhooks – Sync your Stripe data to your Postgres DB

Hey HN,

stripe-no-webhooks is an open-source library that syncs your Stripe payments data to your own Postgres database: https://github.com/pretzelai/stripe-no-webhooks

Here's a demo video: https://youtu.be/cyEgW7wElcs

It creates a webhook endpoint in your Stripe account to forward webhooks to your backend where a webhook listener stores all the data into a new stripe.* schema. You define your plans in TypeScript, run a sync command, and the library takes care of creating Stripe products and prices, handling webhooks, and keeping your database in sync. We also let you backfill your Stripe data for existing accounts.

It supports pre-paid usage credits, account wallets and usage-based billing. It also lets you generate a pricing table component that you can customize. You can access the user information using the simple API the library provides:

  billing.subscriptions.get({ userId });
  billing.credits.consume({ userId, key: "api_calls", amount: 1 });
  billing.usage.record({ userId, key: "ai_model_tokens_input", amount: 4726 });
Effectively, you don't have to deal with either the Stripe dashboard or the Stripe API/SDK any more if you don't want to. The library gives you a nice abstraction on top of Stripe that should cover ~most subscription payment use-cases.

Let's see how it works with a quick example. Say you have a billing plan like Cursor (the IDE) used to have: $20/mo, you get 500 API completions + 2000 tab completions, you can buy additional API credits, and any additional usage is billed as overage.

You define your plan in TypeScript:

  {
    name: "Pro",
    description: "Cursor Pro plan",
    price: [{ amount: 2000, currency: "usd", interval: "month" }],
    features: {
      api_completion: {
        pricePerCredit: 1,              // 1 cent per unit
        trackUsage: true,               // Enable usage billing
        credits: { allocation: 500 },
        displayName: "API Completions",
      },
      tab_completion: {
        credits: { allocation: 2000 },
        displayName: "Tab Completions",
      },
    },
  }
Then on the CLI, you run the `init` command which creates the DB tables + some API handlers. Run `sync` to sync the plans to your Stripe account and create a webhook endpoint. When a subscription is created, the library automatically grants the 500 API completion credits and 2000 tab completion credits to the user. Renewals and up/downgrades are handled sanely.

Consume code would look like this:

  await billing.credits.consume({
    userId: user.id,
    key: "api_completion",
    amount: 1,
  });
And if they want to allow manual top-ups by the user:

  await billing.credits.topUp({
    userId: user.id,
    key: "api_completion",
    amount: 500,     // buy 500 credits, charges $5.00
  });
Similarly, we have APIs for wallets and usage.

This would be a lot of work to implement by yourself on top of Stripe. You need to keep track of all of these entitlements in your own DB and deal with renewals, expiry, ad-hoc grants, etc. It's definitely doable, especially with AI coding, but you'll probably end up building something fragile and hard to maintain.

This is just a high-level overview of what the library is capable of. It also supports seat-level credits, monetary wallets (with micro-cent precision), auto top-ups, robust failure recovery, tax collection, invoices, and an out-of-the-box pricing table.

I vibe-coded a little toy app for testing: https://snw-test.vercel.app

There's no validation so feel free to sign up with a dummy email, then subscribe to a plan with a test card: 4242 4242 4242 4242, any future expiry, any 3-digit CVV.

Screenshot: https://imgur.com/a/demo-screenshot-Rh6Ucqx

Feel free to try it out! If you end up using this library, please report any bugs on the repo. If you're having trouble / want to chat, I'm happy to help - my contact is in my HN profile.

github.com
34 4
Summary
Former CNN journalist Don Lemon arrested in connection with Minnesota protest
tortilla about 10 hours ago

Former CNN journalist Don Lemon arrested in connection with Minnesota protest

CNN anchor Don Lemon was reportedly arrested in connection with protests in Minnesota, according to sources. The article provides details about the incident, including Lemon's involvement and the circumstances surrounding his arrest.

abcnews.go.com
20 4
Summary
P vs. NP and the Difficulty of Computation: A ruliological approach
tzury about 3 hours ago

P vs. NP and the Difficulty of Computation: A ruliological approach

The article explores the P vs NP problem, a fundamental question in computer science, from a 'ruliological' perspective. It suggests that the difficulty of computation may be inherent in the nature of rules and algorithms, rather than just the specific problems being solved.

writings.stephenwolfram.com
12 18
Summary
US judge rules Luigi Mangione won't face death penalty in CEO killing case
Qem about 1 hour ago

US judge rules Luigi Mangione won't face death penalty in CEO killing case

A US judge has ruled that Mangione will not face the death penalty for the murder of a CEO. The case involves the killing of a prominent business leader, and the judge's decision spares the defendant from the most severe punishment.

aljazeera.com
12 3
Summary
Show HN: Deploy back ends without the hassle. An Open source alternative
third_rome 35 minutes ago

Show HN: Deploy back ends without the hassle. An Open source alternative

The article discusses the ShorLabs project, an open-source platform for creating and managing customized URL shorteners. It highlights the project's features, such as support for multiple URL shortener services, advanced analytics, and easy integration with existing applications.

github.com
10 0
Summary
ICE's surveillance technology goes beyond facial recognition
rbanffy about 1 hour ago

ICE's surveillance technology goes beyond facial recognition

The article discusses the use of surveillance technology, including facial recognition and phone tracking, by U.S. Immigration and Customs Enforcement (ICE) agents in Minnesota. It highlights concerns about the privacy implications and civil liberties issues surrounding these practices.

sahanjournal.com
8 1
Summary
France Just Created Its Own Open Source Alternative to Microsoft Teams and Zoom
mikece about 9 hours ago

France Just Created Its Own Open Source Alternative to Microsoft Teams and Zoom

France has decided to ditch Microsoft Teams and Zoom in favor of open-source alternatives, citing security and privacy concerns. The move is part of the country's efforts to reduce its reliance on proprietary software and promote the use of open-source technologies.

itsfoss.com
7 1
Summary
Elon Musk's brain chip feels magical, says paralysed Briton
bookofjoe about 4 hours ago

Elon Musk's brain chip feels magical, says paralysed Briton

The article discusses the successful implantation of Elon Musk's Neuralink brain chip in a British patient, marking a significant milestone in the development of this technology and its potential applications in treating neurological conditions.

thetimes.com
6 5
Summary
The World Files for Economic Divorce from America
rbanffy about 1 hour ago

The World Files for Economic Divorce from America

The article discusses the growing economic divisions between the United States and China, highlighting the potential for a 'divorce' between the world's two largest economies due to geopolitical tensions, trade disputes, and divergent economic policies.

paulkrugman.substack.com
6 1
Summary
Google Engineer Found Guilty of Sending AI Secrets to China
jedixit about 2 hours ago

Google Engineer Found Guilty of Sending AI Secrets to China

A former Google engineer was found guilty of economic espionage and theft of confidential AI technology, which he allegedly attempted to transfer to Uber for personal financial gain.

justice.gov
6 0
Summary
DHS ramps up surveillance in in immigration raids, sweeping in citizens
rawgabbit about 3 hours ago

DHS ramps up surveillance in in immigration raids, sweeping in citizens

The article discusses the Trump administration's crackdown on digital rights and immigration, including the use of facial recognition technology and data mining to target immigrants. It examines how these policies have impacted communities in Minneapolis and across the United States.

apnews.com
6 0
Summary
IPv6 Insecure?
andygeorge about 7 hours ago

IPv6 Insecure?

The article discusses the security vulnerabilities of IPv6, the next-generation internet protocol, highlighting issues such as lack of encryption, poor IPv6 address privacy, and the potential for network reconnaissance attacks. It emphasizes the importance of addressing these concerns as IPv6 adoption increases.

world.hey.com
5 0
Summary