ghh

Joined 14 years ago

Karma
268
Submissions
32
Member since
Aug 15
[ my public key: https://keybase.io/georghendrik; my proof: https://keybase.io/georghendrik/sigs/0KWs6pJJ_by4W3TWfDD6EAnkJ950loX7c7qNcr8kIVA ]
View on Hacker News

Recent submissions

Comment · 1 year ago
This isn't okay - the author is selling their own alternative to Sentry, 'reusing' Sentry's open-source client SDK's, while spreading FUD about self-hosting Sentry.

I've been self-hosting Sentry for over 10 years: Sentry is installed by running `git clone`, editing one or two configuration files, and running ./install.sh. It requires 16GB RAM if you enable the full feature set. That includes automatically recording user sessions on web or mobile for replay, and support for end-to-end tracing (so seeing which database queries your api asks for in response to a button tap in your mobile app).

Sentry has a wonderful self-hosting team that's working hard to make Sentry's commercial feature set available, for free, to everyone that needs a mature error tracking solution. You can talk to them on discord and they listen and help.

Comment · 1 year ago
Comment · 2 years ago
Wow, their example to "clean up the code" does a bit more than just refactoring to make code more readable, it appears to change the output.

One would have to check the resulting code carefully to see if the meaning is still as originally intended, or replaced with code that is more probable to be correct (but no longer working).

For instance, it replaces this:

  if dataset == 'animals':
    if dataset == 'turtle':
      x_train, y_train, x_test, y_test = datasets.load_turtles(with_bowtie=False)
    elif dataset = 'formal_turtle':
      x_train, y_train, x_test, y_test = datasets.load_turtles(with_bowtie=True)
  else:
with this:

  if dataset == 'turtle':
      x_train, y_train, x_test, y_test = datasets.load_turtles(with_bowtie=False)
  elif dataset == 'formal_turtle':
      x_train, y_train, x_test, y_test = datasets.load_turtles(with_bowtie=True)

The before-code responds to dataset='animals' with `load_turtles(...)` and to dataset='turtle' or 'formal_turtle' with an error; In the after-code this is reversed, although the apparent logic error and the assignment/equals sign error are resolved.
Comment · 2 years ago
For those that want to try it, and have a rust development environment installed, the following runs Zed on Windows. (The editor part at least, I haven't tried the collaborative functions).

  git clone https://github.com/zed-industries/zed
  cargo run --release
Comment · 3 years ago
Comment · 3 years ago
Comment · 6 years ago
Comment · 6 years ago
Comment · 9 years ago
Comment · 9 years ago
Focus does not seem to erase your history in a way you may expect. Try this on Android:

- Erase your history.

- Go to HN, click any link you haven't clicked before.

- Wait for it to load.

- Erase your history. Make sure you see the notification "Your browsing history has been erased".

- Go to HN again, and see the link you've just clicked still highlighted as 'visited'.

Comment · 10 years ago
It's about preventing easy scaling of voting fraud. To corrupt vote counting at multiple precincts when using a paper-based, manual counting system, requires the bribing of a lot of people in different locations, and is hard to keep quiet and go unnoticed the larger it gets. Using a digital voting system, if the software or firmware of any part of the voting process is compromisable, likely no-one will be able to tell, any many precincts affected.
Comment · 10 years ago
Most development setups have a way to do a regex search through a codebase; You'd be looking for declare type.*any
Comment · 10 years ago
Comment · 10 years ago
Being able to run the same code both on the server side (nodejs) and the client side (browsers).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton