HNHacker News
TopNewBestAskShowJobs

charrondev

1,224 karma · joined March 3, 2015

[ my public key: https://keybase.io/charrondev; my proof: https://keybase.io/charrondev/sigs/0sW6BkThCCdwzGnXARSPKXTuP2p11J6U9_267R519Tg ]
submissionscomments
charrondev··on Show HN: Telescope – an open-source web-based log viewer for logs in ClickHouse
On the naming front telescope is already use for a log viewer https://laravel.com/docs/11.x/telescope

If I search telescope logs on google that’s the top result for me.

charrondev··on Rust Is Eating JavaScript (2023)
This is the nice if your only consumption of the frontend is first party.

Alternatively you could go the openAPI route and declare your API as a spec with types for a client to consume and the endpoint to return. This works cross-language and gives you docs first. (Start from the docs, convert that to types, then implement).

charrondev··on JetBrains Fleet drops support for Kotlin Multiplatform
On the topic of keyboard shortcuts I use both IntelliJ IDEs and VSCode every day.

IntelliJ ships a “VSCode” keymap in the product that you can switch to with one option in the settings.

charrondev··on 2024: A Record-Breaking Year for the Ocean Cleanup
If you are a normal individual and don’t control or have influence over the largest polluters in the world it seems to me your options are either:

- Come at it from an angle assuming people and nations will continue to pollute and try to clean up the mess (what this group is doing). It is a bit defeatist but more realist than other takes. I would assert that it is the opposite of helplessness. This is a group actually doing something that they are capable of doing and having some impact. Likely more impact than your or I. - Try to shame individuals into doing better. This seems to have limited success as collective action today is much weaker than in the past, and this is more of a systems / incentives / externalities problem than an individual one.

charrondev··on I am rich and have no idea what to do
To me the elephant in the room is the cost of servicing the debt.

Even if the US has a bunch of runway before shit actually hits the fan, 2024 saw over a trillion dollars servicing the debt. That could be funding a lot of government programs instead.

charrondev··on iTerm2 critical security release
For me it’s 3 major things:

- split pane support - profile switching (I have my colors change for different environments I ssh into). - tmux integration

charrondev··on The GPU, not the TPM, is the root of hardware DRM
On private trackers you can sometimes even see 4k blurry remuxes up before the blueray is even available in your local area due to different release windows around the world.

As far as I’ve seen, they pretty much grow on trees as far as films are concerned. TV shows are a very different story though and outside of hugely popular series are far more inconsistent.

charrondev··on Debugging memory corruption: who the hell writes "2" into my stack? (2016)
As I understand this was recent stabilized in rust and is now the default behaviour.

https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html#abort...

You have to explicitly opt into unwinding like this now otherwise the program will abort.

charrondev··on App Should Have Been a Website (and Probably Your Game Too)
One major one for anything with a text input it the inability to know when the keyboard is open and closed and how large it is.

It’s very common for something like a comment box to keep the text pinned above the virtual keyboard. This is impossible on the web. If you have ever seen an implementation of this on the web (for iOS) please point me in that direction as I would love to copy the implementation.

Notifications just came recently, but weren’t available for a decade after availability to native apps.

The final hurdle is discovery. It’s not possible for a site or app to act as a one click installer of a PWA (add to homescreen) and sites can’t prompt to be added.

charrondev··on Coding Font Selection 'Tournament'
IBM plex mono also won out for me, although I’ve been using Fira Code for ages.
charrondev··on Insurers rely on doctors whose judgments have been criticized by courts
In the US you are.
charrondev··on QR-style codes could replace barcodes 'within two years'
My local transfer station has a large glass deposit the same size as its plastic one.

In Quebec you bring your glass bottles back for their deposit and at least for the beer bottles they are cleaned and reused many times.

charrondev··on Fun facts about SQLite
That’s not enough which is why this page exists:

https://www.sqlite.org/purchase/license

charrondev··on Debian's approach to Rust – Dependency handling (2022)
Hahaha try asking your grandmother to install with apt and you get the same result.

I’d estimate most Unix distributions are used in one 3 ways:

- a technical application maintained by a tech savvy admin or a team of them, this would primarily be server usage. - desktop usage by a developer. - a restricted installation on older hardware for a non-tech savvy person. Their user account probably shouldn’t be given permission to install new software so none of this has any relevance to them.

You average non-technical user certainly isn’t running Debian.

charrondev··on Skeptical of rewriting JavaScript tools in "faster" languages
In the JavaScript world a lot of speed up comes from 3 major things as far as I can tell:

- easier concurrency. - the fact that things are actually getting rewritten with the purpose of speeding them up. - a lot of the JS tooling getting speedups deals with heavily with string parsing, tokenizing, generating and manipulation of ASTs. Being able to have shared references to slices of strings, carefully manage when strings are copied, and have strict typing of the AST nodes you enable things to be much faster than JavaScript.

charrondev··on NASA freezes Starliner missions
I guess that would make sense if the company without competition had a stranglehold on the industry and was taking part in anticompetitive behaviour to build a moat around themselves but as far as I know Space X isn’t doing this?

What would you expect them to do differently under this proposed scenario?

charrondev··on Apple's macOS Sequoia lets you snap windows into position
I don’t quite understand what you mean by number 2? AFAIK my PC doesn’t have “dedicated” copy paste keys. The only difference is CMD+C/V vs CTRL+C/V
charrondev··on The AI Investment Boom
For my I have a company subscription for Copilot and I just use the line based autocomplete. It’s mildly better than the built in autocomplete. I never have it do more than though and probably wouldn’t buy a license for myself.
charrondev··on Send: Open-source fork of Firefox Send
My understanding is at that Microsoft runs such a tool and you can request access to it. (PhotoDNA). As I understand you hash an image send it to them and get back a response.
charrondev··on Rivian (RIVN) clashes with Bosch in new legal battle over EV motors
My biggest surprise with the non-Chinese EVs is that the range hasn’t been increasing. Rivian announced models r2 and r3 seem that are set to come in 2026 and 2027 seem to still be around 300 miles of range. Most other EVs are similar.

At the same time Chinese EVs have ranges of of 500 and 600 miles.

I don’t think I can purchase an EV as a primary vehicle until they catch up.

charrondev··on Using Cloudflare on your website could be blocking RSS users
Are you sending an actual random string as your UA or sending one of a set of actual user agents?

You’re best off just picking real ones. We’ve got hit by a botnet sending 10k+ requests from 40 different ASNs with 1000s of different IPs. The only way we’re able to identify/block the traffic was excluding user agents matching some regex (for whatever reason they weren’t spoofing real user agents but weren’t sending actual ones either).

charrondev··on Web components are okay
How is this supposed to work?

With reactJS I know I can server render a component or template and I’ll say JSX makes a pretty good tempting language.

With web components as far as I understand there is no good templating language built in anyways (so you have to bring your own) I’m not aware of a standard mechanism in which I can take some chunk of JS for a component associated with a tag and have it render out HTML that does not require JS to run.

charrondev··on Ask HN: What do you use to backup your VMs?
For us it’s XtraBackup for our Percona DBs - s3.

If you’re setup to quickly provision new VMs there’s no state other than that to backup in most cases. Files are in s3 as well.

charrondev··on Why are my ZFS disks so noisy?
So I’ve got a setup like this:

It’s an 8Bay Synology 1821+. Cost about $1300 for the machine, 32GB of ECC memory, and the 10gbe network card.

I have 4 8Tb drives in a btrfs volume with 1 drive redundancy giving me 21TB of space.

All the important stuff gets also backed up to another 8TB drive periodically and sent to glacier.

The way synology’s shr1 setup works seems to be like RAID5 + a bit more flexibility so I can add more drives to the array but as long as they are 8TB or larger.

The docker manager seems to work pretty well. I run a few services there and mount certain volumes into them. A few DNS records and some entries into the reverse proxy in the control panel of it and you can run whatever you want.

Most critically power draw is very low and it’s very quiet which was an important consideration to me.

charrondev··on Attacking UNIX Systems via CUPS
A useful target might be university networks, although IIRC our university printers weren’t available for discovery. Instead we would send our documents to a special email that would forward it to a local print server so we could get charged for it.
charrondev··on U.S. court orders LibGen to pay $30M to publishers, issues broad injunction
Surely at this point your average pdf viewer is sandboxed to hell and back? (Eg your browser).

If I wanted to run JS in someone’s browser I don’t need a pdf to do it.

charrondev··on Our Android app is frozen in carbonite
This seems ok at first glance, and you can “kind of” get this feeling. And android and iOS you can bring up a generic file picker that will let the user select any file or save a file to a user chosen location, and then the application gets access to an opaque file handle to read/write there. Platforms like Google Drive, Box, DropBox, OneDrive and local files are all options here.

Unfortunately as far as I remember there is no way to gain access to that location persistently. Your copy of the file through this mechanism is just a copy of that file, so I couldn’t say have 50 files in my app that I granted access to being in some file system location that syncs (like google drive) without having constantly be repicking that file location.

charrondev··on Disabling Scheduled Dependency Updates
In my case I recently moved all my company org access to a separate GitHub account. It definitely solves this issue at least.
charrondev··on The Death of LCDs, Means New Life for Chips
The Apple TV setup has you use a phone to handle it for you (it auto calibrates from video) rather than having to fiddle with 20 different sliders in 7 different menus.
charrondev··on CSAM content on Bluesky has risen ten times in just a week
What is everyone using to scan for CSAM nowadays? As I understand the tech is typically some type of hash comparison, but the prominent thing I see is Thorn which would cost like 10x of our whole s3 bucket per month. Is there anything self host able or open source?

I’m surprised there isn’t a government offering this type of service for free.

← PreviousPage 2 of 17Next →