HNHacker News
TopNewBestAskShowJobs

gforce_de

59 karma · joined March 28, 2021

gforce_de.at.hn

Living in Weimar, Thüringen, Germany. Working at novomind.com, coding at https://github.com/bittorf.

![grid of ducky](https://at.hn/ducky.jpg)

submissionscomments
gforce_de··on Why can't HTML alone do includes?
The minified version needs ~51 kilobytes (16 compressed):

  $ curl --location --silent "https://unpkg.com/htmx.org@2.0.4" | wc -c
  50917
  
  $ curl --location --silent "https://unpkg.com/htmx.org@2.0.4" | gzip --best --stdout | wc -c
  16314
gforce_de··on World's largest '100 per cent electric' ship launched
For 1500 passengers and 30 MWh (i expect they dont arrive 100% empty) this is 20kWh per person. If they travel 80 kilometers, thats 0.25 KWh/person/kilometer. Sounds OK to me (all values are guessed).
gforce_de··on Signal Carnival
My first reaction too, but...
gforce_de··on How Big Is VMS?
You have not seen it, but there are vendors selling such stuff since ~20 years. Google for linux + hardware + cpu hotplug or memory hotplug. The PCI bus helps here.
gforce_de··on AMD launches Gaia open source project for running LLMs locally on any PC
https://github.com/amd/gaia

"OS: Windows 11 Pro/Home (GAIA does not support macOS or Linux at this time, ..."

gforce_de··on Cloudflare: Please make your Emails readable in plain/text
Dear hard working cloudflare sysadmin,

above is a mail which was send to me as text/plain attachement. Please escalate that issue: This E-Mail is nearly unreadable!

Please make sure, that further E-Mails are send better readable, especially, if you want that people read E-Mails.

Please also send me the internal ticketnumber. I will be onsite during summer, and will check the progress.

Thanks in advance, Bastian Bittorf / greeting from germany

gforce_de··on OpenWrt Community question: What do you want to see in OpenWrt?
Of course this possible and working:

https://openwrt.org/docs/guide-user/network/wifi/roaming

Follow the usteer path.

gforce_de··on Hyperfine: A command-line benchmarking tool
At least it gives some numbers and point in a direction:

  $ hyperfine --warmup 3 './hello-world-bin-sh.sh' './hello-world-env-python3.py'
  Benchmark 1: ./hello-world-bin-sh.sh
    Time (mean ± σ):       1.3 ms ±   0.4 ms    [User: 1.0 ms, System: 0.5 ms]
  ...
  Benchmark 2: ./hello-world-env-python3.py
    Time (mean ± σ):      43.1 ms ±   1.4 ms    [User: 33.6 ms, System: 8.4 ms]
  ...
gforce_de··on How JPEG XL compares to other image codecs
you are right, i changed it to "acceptable visual changes".
gforce_de··on How JPEG XL compares to other image codecs
Something seems wrong im this article. The side-by-side comparison shows 4 formats:

  · Original PNG image (2.6 MB)
    · Name "high_fidelity.png", but in fact 298.840 bytes and format: JPEG
  · JPEG XL (default settings, 53 KB): indistinguishable from the original
    · Name "high_fidelity.png.jxl.png", but in fact 3.801.830 bytes and format: PNG
  · WebP (53 KB): some mild but noticeable color banding along with blurry text
    · Name "high_fidelity_webp.png", but in fact 289.605 bytes and format PNG
  · JPEG (53 KB): strong color banding, halos around the text, small text hard to read
    · Name "jpeg_high_fidelity.jpg", but in fact 52.911 bytes and format JPEG
The comparison does not make any sense, everything is just wrong. Also when encoding the large original PNG image to AVIF, it has only 20.341 Bytes with no visual change, see: http://intercity-vpn.de/files/2024-10-27/upload/
gforce_de··on Docusaurus – Build optimized websites quickly, focus on your content
It says "optimized", but those pages seems to be very slow. First try on the showcase(!) gives only 55% on performance:

https://pagespeed.web.dev/analysis/https-eightshift-com/c5vu...

gforce_de··on Shortwire: The smallest VPN that connects two computers via the Internet
see: https://github.com/dswd/vpncloud
gforce_de··on Ask HN: What are you using to parse PDFs for RAG?
from https://en.wikipedia.org/wiki/Retrieval-augmented_generation

"Retrieval augmented generation (RAG) is a type of information retrieval process. It modifies interactions with a large language model (LLM) so that it responds to queries with reference to a specified set of documents, using it in preference to information drawn from its own vast, static training data."

gforce_de··on All I want for Christmas is 1TW of solar deployed annually
1 TW needs an area of 173 x 173 Km = ~30.000 Km².

These are 0.02% of the earth landmass.

Values are like this, when calculating conservative: 1 KWp needs an area around 10m². For enough maintenance distance multiply by 3 = 30m².

  => 1 Megawatt = 3 * 10m² * 1000 = 30.000m².
  => 1 Gigawatt = 3 * 10m² * 1000 * 1000 = 30.000.000m².
  => 1 Terawatt = 3 * 10m² * 1000 * 1000 * 1000 = 30.000.000.000m².
Square root of 30.000.000.000m² = 173205m = 173Km. According to statista.com, the total earth landmass is 149.000.000 Km², so 30.000m² are 0.02% auf 149 million Km².
gforce_de··on The early days of Linux
"That year (1995) was also when Linux was first ported to a new architecture by Linus. He'd been given a DEC Alpha machine."

This is not fully correct: The first port ever was on Motorola M68k in 1993 for the Amiga platform.

https://www.tech-insider.org/linux/research/1993/0915.html

gforce_de··on Major torrent sites are currently exposing details of their operations?
it is 'Widevine'
gforce_de··on Ask HN: What is the coolest thing you have seen done with a bash script?
If done right, a script can run everywhere, so shameless selfplug, a game:

https://github.com/bittorf/shell_snake

There is also a tetris.sh lying around somewhere...

gforce_de··on Nsh, a unified router style CLI for OpenBSD
This is what OpenWRT with the (u)nified (c)onfiguration (i)nterface aims:

  uci show
This outputs text, which is your full config.

https://openwrt.org/docs/guide-user/base-system/uci

gforce_de··on Colodebug: a simple way to improve Bash script debugging

  "Stick to portable constructs where possible, and
   you will make somebody's life easier in the future.
   Maybe your own."
gforce_de··on Colodebug: a simple way to improve Bash script debugging
no problem, just do it 8-)
gforce_de··on Colodebug: a simple way to improve Bash script debugging
what seems possible is:

  #!/bin/sh
  
  alias :=mydebug
  mydebug() { printf '%s\n' "$\*"; }
  
  foo=1
  : this is a debugable comment
  bar=2
gforce_de··on Colodebug: a simple way to improve Bash script debugging
I see 2 problems here:

major: it does not work on POSIX shells, because ':' is not a valid function name and

minor: the function itself should be changed to use the builtin 'case' instead of the bashims [[ ... ]]

gforce_de··on Systemd: The Good Parts
whoever maintains the comparison of init-systems at https://skarnet.com/projects/service-manager.html should include OpenWRT's 'procd'
← PreviousPage 2 of 2