HNHacker News
TopNewBestAskShowJobs

josephernest

601 karma · joined December 9, 2014

submissionscomments
josephernest··on SpaceX wants to launch 100k more Starlink satellites for 100x the bandwidth
Please stop this.

How did we collectively accept that it's ok that a private company can forever change how our sky looks like (especially at night) for the generations to come?

This is so dystopian but it seems nobody cares. The most important thing is to have fast internet to watch cool AI-generated videos.

So depressing.

josephernest··on You need a webring
In a webring, do you usually always have the same fixed webring neighbours?

Back in the days, how did it usually work about this : If your neighbour has only 7 visitor/day but you do have 100/day, can you ask to change and have this other 10000 visitor/day-site as neighbour?

As a webring admin, how do you manage these member requests?

josephernest··on GPT-5.5 Codex reasoning-token clustering may be leading to degraded performance
You can use this small Python script to display an histogram of `reasoning_output_tokens` in your past Codex sessions. I do see a spike at 516 indeed.

  import os, glob, re
  import matplotlib.pyplot as plt
  vals = []
  for f in glob.glob(os.path.expanduser(r"~\.codex") + r"\**\*", recursive=True):
      if os.path.isfile(f):
          try:
              s = open(f, "r", encoding="utf-8", errors="ignore").read()
              vals += [int(x) for x in re.findall(r'"reasoning_output_tokens"\s*:\s*(\d+)', s)]
          except Exception:
              pass
  plt.hist(vals, bins=200, range=(0, 5000), weights=[100 / len(vals)] * len(vals))
  plt.xlabel("reasoning_output_tokens")
  plt.ylabel("%")
  plt.show()
josephernest··on Deno Desktop
This gives a 77 MB folder, not containing the browser (we're now using the OS' webview).

I wouldn't call this "Small by default".

I used this main.ts file: `Deno.serve(() => new Response("<h1>Hello, desktop</h1>", { headers: { "content-type": "text/html" }, }));`

and `deno desktop --backend webview main.ts`.

Unfortunately, launching `deno-test.bat` opens an empty white window, freezed (with waiting cursor...) on my Windows 10.

josephernest··on Deno Desktop
IIRC Electron hello world is ~ 100-150 MB because it bundles a browser/Chromium runtime.

So I hoped we could have a <= 20 MB solution by reusing the OS webview or similar. Having more than 400 MB is a bit deceptive for me. (Again: maybe I just did something wrong in the config: should I do something else than `deno desktop test.ts`?)

josephernest··on Deno Desktop
I just tried `deno desktop helloworld.ts` and the result is 442 MB. So it's not any lighter than Electron (see my toplevel comment)
josephernest··on Deno Desktop
> deno desktop is opinionated about those tradeoffs:

> Small by default, full Node compatibility

I tried `deno desktop index.ts` with the 5-line Hello world in the article.

Result (Windows 10): 442 MB. Ouch.

I thought it would be smaller than an Electron build, but it's far worse. Did I do something wrong?

(libcef.dll: 247 MB) (deno-test.dll: 78 MB <- contains the hello world)

josephernest··on Show HN: µJS, a 5KB alternative to Htmx and Turbo with zero dependencies
Nice project, always interesting to see HTMX-inspired frameworks.

If you want something even more minimalistic, I did Swap.js: 100 lines of code, handles AJAX navigation, browser history, custom listeners when parts of DOM are swapped, etc.

https://github.com/josephernest/Swap.js

Using it for a few production products and it works quite well!

josephernest··on I fixed Windows native development
Let's say I want to compile a helloworld.cpp with no build tools installed yet.

What is the minimal winget command to get everything installed, ready for : cl main.cpp ?

Ps: I mean a winget command which does not ask anything, neither in command line, nor GUI ? Totally unattenfed.

josephernest··on Doing gigabit Ethernet over my British phone wires
In France (and probably everywhere) there is currently massive deployment of FTTH (fiber to the home) and removal of copper lines, since a decade.

Does this mean we could have kept the good old copper lines from 60 years ago and still enjoy 1 Gbit internet in residential areas?

josephernest··on 6-Day and IP Address Certificates Are Generally Available
Out of curiosity, any other example without redirect, in which the URL stays https://<ip> in the browser?
josephernest··on 6-Day and IP Address Certificates Are Generally Available
Do I understand correctly: would someone have a concrete example of URL which is both an IP address and HTTPS, widely accessible from global internet? e.g. https://<ipv4-address>/ ?
josephernest··on We replaced H.264 streaming with JPEG screenshots (and it worked better)
Thanks.

1. It is part of a bigger web-browser dashboard/control interface and this camera display is just one component among many others.

2. Some of the (USB) cameras can have proprietary interfaces such as https://www.ximea.com/support/wiki/apis/python

How would you do in this situation, to have the video stream in the browser, with as low CPU usage as possible?

3. Not for this project but for a future project, feel free to put a link to your portfolio or contact page (even if you remove the comment later)

josephernest··on We replaced H.264 streaming with JPEG screenshots (and it worked better)
Related: for some hardware project, I have a backend server (either C++ or python) receiving frames from an industrial camera, uncompressed.

And I need these frames displayed in a web browser client but on the same computer (instead of network trip like in this article).

How would you do this ?

I eventually did more or less like OP with uncompressed frames.

My goal is to minimize CPU usage on the computer. Would h264 compression be a good thing here given source and destination are the same machine?

Other ideas?

NB: this camera cannot be directly accessed by the browser.

josephernest··on Serving 200M requests per day with a CGI-bin
Why would it be limited to ~ 100 connections on a 1-4 GB RAM server? Out of curiosity if we fork() httpd and exec() the cgi handler, it doesn't take the same RAM as the parent process and it could just take a few KB or MB, is that right? So I guess 1000+ concurrent connections even on a small server is possible.
josephernest··on Self-hosted app showed me I've been using bookmarks wrong all my life
Reminder that one of the best browser bookmarking system is already built-in: https://afewthingz.com/browserbookmark
josephernest··on Office is too slow, so Microsoft is making it load at Windows startup
I still use Office 2007 on my computer. Super super snappy, I think Word or Excel starts and finishes loading in 0.5 second after clicking the icon. It has 99% of the features I need compared to the newest Office version.
josephernest··on Office is too slow, so Microsoft is making it load at Windows startup
I still use Office 2007 on my computer. Super super snappy, I think Word or Excel starts and finishes loading in 0.5 second after clicking the icon. It has 99% of the features I need compared to the newest Office version.
josephernest··on Gumroad’s source is available
No it is not.
josephernest··on Play the Virtual Organ from Arp Schnitger
You can hear many MP3 examples here: https://www.jeuxdorgues.com/jeux-d-orgues-4-lachaisedieu/

All are played with the virtual organ, what do you think?

I'll do a post soon with more stories about this project itself (that I started long ago)!

josephernest··on Play the Virtual Organ from Arp Schnitger
Oh something in my niche ! I produce French pipe organ sample sets for a living : https://www.jeuxdorgues.com

It's an extroardinary journey to record an organ, process the thousands of WAV files and design a virtual organ model.

josephernest··on Show HN: Nash, I made a standalone note with single HTML file
I've done a similar tool a few years ago, with "contenteditable". It's great. Especially for non-tech people who want to quickly edit articles on a website. (that was an experiment).

The problem I had: when people copy/paste HTML from external sources, after a few edits, a few months later, you see that the HTML is just a horrible mix of various mixed up tags, the structure is lost, you have

    <div><div><div><div><p><div>
everywhere and it's impossible to clean it in WYSIWYG.

OP, did you find a satisfying solution to this problem? A good compromise for sanitizing of copy/paste content? TL;DR: not remove the images, but clean the

    <table class="cf gJ" cellpadding="0"><tbody><tr class="acZ"><td class="gF gK"><table class="cf ix" cellpadding="0"><tbody><tr><td class="c2"><h3 class="iw gFxsud"><span class="qu" role="gridcell" tabindex="-1">
stuff when copy/pasting?
josephernest··on The Content Overflow Era – The End of the Long Tail
(Curious about HN readers' views about this!)
josephernest··on Show HN: Onit – Source-available ChatGPT Desktop with local mode, Claude, Gemini
Open source is not trademarked by FSF or OSI. I think it is ok to call it open source since the source is open.
josephernest··on Show HN: Onit – Source-available ChatGPT Desktop with local mode, Claude, Gemini
But here the source is open!

Why should we restrict the meaning of Opel Source, a societal mouvement since decades, to a list of criteria that FSF or OSI decided?

Open source is not a trade mark by FSF or OSI.

OP did not say it is free/libre software, but just open source, which it is.

We don't need "source available", just open source is correct.

PS: can you define the open source body in your previous comment?

josephernest··on Show HN: Onit – Source-available ChatGPT Desktop with local mode, Claude, Gemini
I think your choice is very appropriate.

And it is open source.

Probably not OSI-open source or FSF-open source but it is open source, period.

josephernest··on Show HN: Onit – Source-available ChatGPT Desktop with local mode, Claude, Gemini
> CC wasn't suitable for software

This is wrong. CC is perfectly fine for software in some cases, such as here.

Ok, CC is not tailored specifically for software, thus the general advice "you should use something else" but I do not see why CC would not be suitable here to achieve OP's goals.

Can someone explain?

josephernest··on Show HN: Onit – Source-available ChatGPT Desktop with local mode, Claude, Gemini
I disagree.

Ok, a non-commercial Creative Common license is not "OSI-open source" or "FSF-open source", but it is technically "open source". The source is open.

The open source societal movement is much broader than the narrow definition given by OSI or FSF.

OP, your tool is perfectly fine with a non-commercial creative common license. The fact that CC licenses are not specific for software does not imply it is a bad choice for software.

Here I find it is a very appropriate license for OP's needs : he wants to open the source code, but prevent that someone else takes it and makes money with it under another name. This is totally fine.

josephernest··on Query Apple's FindMy network with Python
Congrats ! I don't have an iPhone or Mac. Can I buy an AirTag, initialize it with the help of a friend who has an iPhone, and then locate the AirTag or ring it from my PC with this Python lib?
josephernest··on Query Apple's FindMy network with Python
I don't have an iPhone or Mac. Can I buy an AirTag, initialize it with the help of a friend who has an iPhone, and then locate the AirTag or ring it from my PC with this Python lib?

It would be awesome.

Page 1 of 6Next →