Recent submissions

Comment · 2 days ago
> It was hard to ask any question. Sometimes it felt if a few characters match it will be closed off as dupe. Besides no thought was given to the fact that same question might change entirely from pov of the answers for a platform or SDK across, say, a decade (?).

I used to end the questions with "It's not a duplicate of AAA because BBB is different. It's also not a duplicate of CCC because DDD". It DID force you to check for already answered questions, but the automated hints while you typed was often good enough to spot duplicates.

In the end, imagine wasting half an hour to post a four-lines issue... No thanks.

Comment · 17 days ago
Comment · 17 days ago
Comment · 26 days ago
it's a vnc port, it'd also require the router to have it opened. Reading the article I think the user opened it themselves. It does get opened automagically on the mac side when screen sharing is turned on.

> The problem is that for my particular use case — a headless, always-on Mac Mini that I primarily access from other computers and my phone through the ChatGPT and Claude apps — macOS is incredibly hostile

> As noted by the NCSC, the vulnerability is being exploited when port 5900 is exposed to the Internet. When screen sharing is turned on, the macOS firewall opens the port. Routers and dedicated firewalls generally block the port unless configured to override that setting.

> Obviously I should have — and will be — using a VPN going forward (the foundation of my entire approach to security is Tailscale); what I will note, however, is that TCC basically leaves me no choice but to have screen sharing enabled if I want to actually use my Mac Mini in the way I want to use it. I use screen-sharing constantly — including from my phone — and almost every time it’s to click “OK” on a stupid prompt that I’ve long since stopped taking seriously.

Comment · 1 month ago
Anyone writing about apps compatibility should specify if it's with or without the play services
Comment · 1 month ago
Is there a "winning"? What are they going to do, train a new model faster? Serious question.
Comment · 1 month ago
Because in agriculture you are absolutely expecting to be able to repair stuff yourself.

I work on a project related to it and was absolutely surprised at how the company gave instructions to the clients to help them fix their machines (stuff I wouldn't be able to do myself).

Having a non-working machine can mean big $$ lost everyday.

Comment · 1 month ago
4edgy5me
Comment · 1 month ago
Programming is art

Code is beauty

Creativity is king

Comment · 1 month ago
Until a couple of years ago instead of using query parameters I just made GET endpoints with json bodies, it worked perfectly!

I stopped when the new linter told me GET shouldn't have bodies, but I still have some of them in my code.

Comment · 2 months ago
It's because you have the radius on the denominator (I think)

  def calc_gravity(mass_1: float, mass_2: float, radius: float) -> float:
      G = 6.67408e-11
      return G * mass_1 * mass_2 / radius**2

  earth_mass = 5.972e24
  earth_radius = 6.371e6
  earth_g = calc_gravity(1.0, earth_mass, earth_radius)
  print(f"earth: {earth_g:.2f} m/s^2")

  moon_mass = 7.34767309e22
  moon_radius = 1737.4e3
  moon_g = calc_gravity(1.0, moon_mass, moon_radius)
  print(f"moon: {moon_g:.2f} m/s^2")

  print(f"earth/moon proportion: {(earth_g / moon_g):.2f}")

prints

  earth: 9.82 m/s^2
  moon: 1.62 m/s^2
  earth/moon proportion: 6.04
Comment · 2 months ago
One of the main idea is sticking it on the back of the phone so it must be smaller
Comment · 2 months ago
I'd like my next phone to be a flip one. But really what I want is a Linux phone.
Comment · 2 months ago
I have a dream, to ban targeted advertising globally. It would solve many problems and possibly, cherry on top, kill some corporations
Comment · 2 months ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton