HNHacker News
TopNewBestAskShowJobs

zamubafoo

210 karma · joined November 5, 2019

submissionscomments
zamubafoo··on One Server. Small Business
You put your reverse proxy on a publicly available machine then through strict firewalls only accept communication to your back end from the reverse proxy; effective leverage VPCs to make your backend not be on the public Internet. That should allow you to filter out malicious users without affecting your actual application and it's trivial to scale your reverse proxy horizontally or reach for a WAF if you have the need/desire.
zamubafoo··on Ask HN: Any insider takes on Yann LeCun's push against current architectures?
Honest question: Given that the only wide consensus of anything approaching general intelligence are humans and that humans are biological systems that have evolved in physical reality, is there any arguments that better efficiency is even possible without relying on leveraging the nature of reality?

For example, analog computers can differentiate near instantly by leveraging the nature of electromagnetism and you can do very basic analogs of complex equations by just connecting containers of water together in certain (very specific) configurations. Are we sure that these optimizations to get us to AGI are possible without abusing the physical nature of the world? This is without even touching the hot mess that is quantum mechanics and its role in chemistry which in turn affects biology. I wouldn't put it past evolution to have stumbled upon some quantum mechanic that allowed for the emergence of general intelligence.

I'm super interested in anything discussing this but have very limited exposure to the literature in this space.

zamubafoo··on EA Open Sources Command and Conquer: Red Alert
Shame they'll never do it for Warcraft 3 with the remaster still around.
zamubafoo··on Pi-hole v6
I've been using https://github.com/DNSCrypt/doh-server for serving my DNS server via DOH for at least 2 years. Only had two issues with it and both were due to lack of maintenance on my part (ie. not updating the binary for one and then not re-configuring it after I changed configurations for the upstream DNS).
zamubafoo··on Httptap: View HTTP/HTTPS requests made by any Linux program
In production environments that won't give you root access, you won't be exec'ing inside of a pod if you aren't an operator or sysadmin.
zamubafoo··on Writing a Rust compiler in C
I've thought a lot about these problems and you eventually hit the need for stronger than natural magnets. Without electricity it's a hard challenge, but without magnets creating electricity in a simple bench scale is a lot harder.

I ended up thinking that you'd need to do a chemical battery to bootstrap electricity and then with electricity generate the electromagnet to create stronger magnets and then iterate from there.

Your next stumbling block from there would be optics as everything else can be made with horrible tolerances. Even lathes and similar machinery can be made with pretty good tolerances without optics. But when you start needing time keeping or miniaturizing components for improved efficiencies, it becomes a blocking issue.

You also need to discover photo-reactive elements to do lithography, but that's a lot easier since it's just silver nitrate and you'd already have the components when you are working towards the initiate bootstrap battery.

zamubafoo··on Surfer: Centralize all your personal data from online platforms
I made something like this since I was tired of the asymmetric nature of data collection that happens on the Internet. Still not where I would like to be, but it's been really nice being able to treat my browsing history as any old log that I can query over. Tools like dogsheep are nice, but they tend to rely on data being allowed to be removed from the platform. This bypasses those limits by just doing it on the client.

This lets me create dashboards to see usage for certain topics. For example, I have a "Dev Browser" which tracks the latest sites I've visited that are related to development topics [1]. I similarly have a few for all the online reading I do. One for blogs, one for fanfiction, and one for webfiction in general.

I've talked about my first iteration before on here [2].

My second iteration ended up with a userscript which sends the data on the sites I visit to a Vector instance (no affiliation; [3]). Vector is in there because for certain sites (ie. those behind draconian Cloudflare configuration), I want to save a local copy of the site. So Vector can pop that field save it to a local minio instance and at the same time push the rest of the record to something like Grafana Loki and Postgres while being very fast.

I've started looking into a third iteration utilizing MITMproxy. It helps a lot with saving local copies since it's happening outside of the browser, so I don't feel the hitch when a page is inordinately heavy for whatever reason. It also is very nice that it'd work with all browsers just by setting a proxy which means I could set it up for my phone both as a normal proxy or as a wireguard "transparent" proxy. Only need to set up certificates for it work.

---

[1] https://raw.githubusercontent.com/zamu-flowerpot/zamu-flower... [2] https://news.ycombinator.com/item?id=31429221 [3] http://vector.dev

zamubafoo··on Surfer: Centralize all your personal data from online platforms
Or it just all happens on the client side before it even hits the Internet. I would love if Firefox allowed users to use Postgres instead of sqlite to store their places.sqlite database.
zamubafoo··on Make Firefox Private Again
No, but I also believe that it's not so expensive that someone couldn't cover it if it was their hobby. This is doubly true if it's something like HN where it's not trying to scale to infinity.
zamubafoo··on I've built my first successful side project, and I hate it
The right pattern is to put them directly in a queue to talk to a person, but have an system (AI or otherwise) in the queue to gather the minimal information. Like having the person explain the problem (and have something transcribe it) and have the system transfer them to the appropriate team after parsing their problem.

Or for really common cases (ie. turn it on and off, you're affected by an outage, etc), redirect them to an prerecorded message and then let them know that they are still in the queue and can wait for a person. 9/10 it'll solve everything, but also reduce friction of simple things that might be answered.

zamubafoo··on Mpv – A free, open-source, and cross-platform media player
Yes, though you do have to enable that. For me I tend to have it buffer the video. That way I can even seek backwards of web streams.
zamubafoo··on Mpv – A free, open-source, and cross-platform media player
Never had to deal with your third point, I just open it via the CLI and it's pretty verbose regarding issues it encounters.
zamubafoo··on Kim Dotcom's extradition to the U.S. given green light by New Zealand
Streaming is not piracy though?
zamubafoo··on WriteFreely: An open source platform for building a writing space on the web
I use this in my homelab for drafting long form thoughts. It's nice since it feels more ephemeral than making a page in a wiki or making a page that gets rendered and hosted statically.

I used to run Ghost for this, but at some point the pervasive push to use Ghost's paid features for an internally hosted blog irked me enough to rip it out.

zamubafoo··on CrowdStrike Update: Windows Bluescreen and Boot Loops
Whitelist the persistent store?
zamubafoo··on We have 4 days to contest KYC being required by internet services
How much longer before IaaS platforms require their customers to also have similar KYC policies in their ToS to be able to shift liability downward in case anything goes down?
zamubafoo··on Ask HN: High quality Python scripts or small libraries to learn from
I think I've learned more reading bad code bases than reading good code bases.

The entire point is not to just mindlessly consume a code base, but instead form an idea of how to approach the problem and then see if your hypothesis is correct. Then comparing your approach to the actual approach.

This can show you things that you might've missed taking into account.

For example, gallery-dl's incidental complexity all lies in centralizing persistent state, logging, and IO through the CLI. It doesn't have sufficient abstraction to allow it to be rewired to different UIs without relying on internal APIs that have no guarantee that won't change.

Meanwhile a similar application in yt-dlp has that abstraction and works better, but has similar complexity in the configuration side of things.

zamubafoo··on Show HN: a Rust based CLI tool 'imgcatr' for displaying images
While not CLI, I always look for cross platform image viewers and found https://github.com/woelper/oculante.

Had a few woes compiling it due to my laptops configuration, but once compiled it works with everything I would reasonably throw at it.

zamubafoo··on Double-entry bookkeeping as a directed graph
I can see what you are saying, but I think it helps in two ways:

1. it is another way to conceptualize an idea. For most purposes this might not be relevant, but who knows where a hard accounting problem might be resolved through the application of graph theory (or the inverse!).

2. it is another way to visualize flows. Not everyone is financially literate or numerically inclined, so instead of handing them a table of columns of numbers and having them reason about the flows numerically, it lets you represent the flows spatially which maybe easier. After all, not all tools are for professionals.

Additionally, while the cumulative history in one graph might be much, simply adding filters based on transaction date might provide non-obvious insight that other visualizations miss. I can see this probably being even more helpful by cross referencing other information such as location.

zamubafoo··on Pkl, a Programming Language for Configuration
Until Cue/Pkl/whatever the current FotM has FFI that can be realistically utilized from most other languages (ie. not require custom bindings), it won't get real adoption.

Without wide adoption, it's at best an interesting research project. A really cool project I want to work with, but not something I can reasonably bring up.

zamubafoo··on An Interactive Guide to CSS Grid
So normally you count the lines. On the other hand, I generally use negative numbers to specify the range (eg. `grid-row: 1/-1;` will cover the entire row; `grid-column: 2/-2;` will cover from 2 to the 2nd from last column, inclusive).
zamubafoo··on Sony announces a9 III: first full-frame global shutter camera
Seemed fairly dystopian before you get to the examples. It also seems fairly trivial to bypass even if it's through crude brute force methods (ie. screenshots/copying framebuffers).

Is this essentially just enforcement through building a moat around editing applications?

zamubafoo··on Organizing multiple Git identities
You can also filter based on the remote URL! I find this much more useful than the location of the directory on disk.

  ; include only if a remote with the given URL exists (note
  ; that such a URL may be provided later in a file or in a
  ; file read after this file is read, as seen in this example)
  [includeIf "hasconfig:remote.*.url:https://example.com/\*"]
      path = foo.inc
  [remote "origin"]
      url = https://example.com/git*
zamubafoo··on 50 years later, is two-phase locking the best we can do?
ULIDs technically fall under UUID v8 since they map onto the 128bit space. So it's possible that you can just keep using them and PostgreSQL might have something for v8 specifically.
zamubafoo··on Show HN: Servicer, pm2 alternative built on Rust and systemd
It's actually very easy!

You can abuse the fact that systemctl has the edit subcommand. It meant to modify the existing service file, but nothing means you can't just save it out elsewhere and then modify it.

Additionally, if it's a long running service it should be located where other systemd unit files are located (`$HOME/.config/systemd/user/` for user units, `/etc/systemd/system/` for service units) and just copy them while the unit is still running.

  systemd-run --user -u test -t bash
  cp $HOME/systemd/user/test.service /new/path/for/test.service
Of course this requires it to live long enough.
zamubafoo··on Linux tool to show progress for cp, mv, dd
That's interesting! I often found myself forgetting to turn on progress flags on many data transfer jobs and the occasional data transform batch job that I looked into something like this.

I found that `iotop` is great for this kind of thing. Sure, you have to either start it before your process starts or your accumulated total is off, but usually I'm not tracking progress for files less than 1GB so being off by kilobytes is fine.

My go-to's are `sudo iotop -aoP` for general monitoring, adding the `-p` flag if it's just a specific process, or `-u` if I'm monitoring something that is possibly transient.

zamubafoo··on Ubuntu stops shipping Flatpak by default
And dnf5 is around the corner making the "slow" dnf issue a thing of the past!
zamubafoo··on Use the XDG Base Directory Specification
I completely agree with the article that more people should use the spec. I already do this for all my personal projects and nothing drives me up the wall more than seeing random config files strewn about.

It also provides an easy target for freeing disk space if you do run into issues (just `rm -r $XDG_CACHE_HOME`).

That said, I do think the spec would be improved by defining what constitutes a "user-specific data file" and how that is different from a "user-specific state file". Wouldn't "user-specific data files" just be "files" from a users perspective? I like the idea they have for this, but it's kind of under defined.

Though that's probably a good thing because no one wants a ontological tome to wade through when working on a bash script or the like.

zamubafoo··on So you've installed `fzf` – now what?
Cron/systemd timer to run updatedb every N hours.
zamubafoo··on Unpopular Opinion: Don’t Use a Raspberry Pi for That
While his arguments of performance to power might have some truth, I strongly dislike that he's using the current pricing as a comparison point.

Sure, buying one now is (relatively) expensive for what it is, but I bought my Pi's back when they were MSRP ($45-54 USD for RPI4 4GiB and $35 USD for RPi3B+). Nothing can compete at that price point. While there are cheaper options or more powerful options for a bit more, none of them have the same support the Raspberry PI has.

As for reliability, dropping ~$25 USD for a drive enclosure and having it boot from that is doable with the Raspberry Pi 4 (and the 3 but I've never tested it).

Page 1 of 3Next →