HNHacker News
TopNewBestAskShowJobs

quag

455 karma · joined May 14, 2009

submissionscomments
quag··on Delete or hide life-wasting apps
To “delete” HN: 1. Open Settings > Screen Time > App Limits > Add Limit 2. Scroll to the bottom and pick “Websites” 3. Pick “news.ycombinator.com” 4. Click “Next” 5. Pick 0 hours, 1 minute 6. Click “Add”

Now you’ll be limited to one minute a day of HN. If you set 20 minutes it also gives you 5 minute warnings, and lets you extend.

The App Limiting has a nice feature were if you set a limit on multiple apps at the same time, it doesn’t matter which app/site you use, the time counts against them all. This prevents you from wasting time in one app, then rolling onto the next distraction.

quag··on How to (and how not to) fix color banding
When generating images also mix in a little blue noise to avoid banding effects. A simple lookup table goes a long way. I found it worked much better than adding uniformly random noise (white noise) to each pixel.
quag··on Is Ada safer than Rust?
For the curious (as f* is hard to search for): https://fstar-lang.org/
quag··on Lie still in bed
I’ve found something similar: to fall asleep visualise something vividly. It could be a scenario (a daydream as you suggest) or a scene.

The steps go something like this: be still, relax face, stop thinking (or distract self with audio you’re heard before), vividly picture, wake up.

quag··on My history with Forth and stack machines (2010)
If anyone else is interested, https://netflix.github.io/atlas-docs/overview/#stack-languag... is the stack language for querying.
quag··on Chrultrabook – Modify a Chromebook to Run Windows/Linux/macOS
I think I have the same chromebook model as you (Samsung Chromebook Pro). Do you have any tips or advice for trying it or anything else that will let me keep using the device?
quag··on All foster kids in California can now attend any state college for free
Outside of the USA the point of university is education. Only in the USA have I seen the meme that the point of universities is something other than education. I’m still trying to work out how and why there is a difference. Can you help me understand what the point is if it isn’t education?
quag··on Design quirks, limited parts, and other ways Chromebooks frustrate repairs
Thank you! I’ll have to look into this approach.
quag··on Design quirks, limited parts, and other ways Chromebooks frustrate repairs
I bought a chromebook in 2017 that I love. AUE is up in a few months. The OS has improved leaps and bounds since I got it. I wish it would keep getting updates.

Sadly it’s hard to flash a new boot loader as the write protect screw is in a difficult place and I’ll likely break something trying to get to it. I don’t know what I’ll do when AUE hits.

I guess it’ll be like my first gen iPad which I’m forced to use as a clock as there is little else I can do with the great hardware with locked down software.

quag··on Explaining my fast 6502 code generator
Is [1] a good way to learn about furthest in the future eviction?

[1]: https://blog.henrypoon.com/blog/2014/02/02/proof-of-the-fart...

quag··on WezTerm is a GPU-accelerated cross-platform terminal emulator written in Rust
I really wanted WezTerm to be the best terminal on macOS. However, when I tried switching from Kitty to WezTerm a month or so ago I found WezTerm’s latency was noticeably higher than Kitty and WezTerm often painted lines as blank in vim when they actually had content. So I was forced to go back to Kitty on macOS.

On Linux, it’s no contest, I love WezTerm over Kitty on Linux and didn’t have any of these issues.

quag··on AWS Publishes Reference Architecture, Implementations for Deployment Pipelines
NixOS is an equivalent and it does not require a mono repo.
quag··on Austral: A systems language with linear types and capabilities
How does closeFile get implemented? That is, how do you consume a linear type without having to either pass it to another function or return it?

Does every linear value ultimately have to be passed to an extern function that doesn’t follow the linear typing rules?

quag··on TreeSheets: Open Source Free Form Data Organizer
You could certainly parse the file, and then insert/remove cells or their values.

I don’t know if the app monitors the files for changes and then reloads on change or not. If not, I imagine you could modify the app to do so.

quag··on TreeSheets: Open Source Free Form Data Organizer
I’ve found TreeSheets to be the best tool for popping up on screen to help a team talk through something.

There is something about quickly making tables of tables and inserting new rows/columns that just fits with how people think and see things visually. And there’s something natural to the editing.

Need a list? Make a cell with a single column table in it. Then need to prioritise? Add another column with an order. And so on. It feels a lot like throwing up things on a whiteboard.

quag··on TreeSheets: Open Source Free Form Data Organizer
It’s a simple binary format. I’ve written a parser for it in python.

https://gist.github.com/quag/e219f69670cd395d4a59a392557df28...

An older version (v16) of the format is documented, but that was before zlib compression was added. I’ve opened an issue and listed out the gaps in the spec, but haven’t gotten around to updating the spec itself.

https://github.com/aardappel/treesheets/issues/185

Happy to answer questions about the format.

quag··on Nix on the Steam Deck
An alternative: I’ve made a little setup script to quickly install nix, home-manager and flakes in the Steam Deck’s desktop mode. No extra permissions required.

https://github.com/quag/user-nix-steam-deck

quag··on Potassco: The Answer Set Solving Collection
Thank you. You convinced me to read the paper, and so far I’m loving it.
quag··on Why it’s hard to buy deodorant in Manhattan
The "Most Americans do not live in bit cities" comment caught my eye. I wasn't sure if it was true or not, so I ran some numbers. Using https://en.wikipedia.org/wiki/List_of_metropolitan_statistic...

Assuming 331M people in the USA, 164M (50%) live in a metropolitan area of at least 1.6M people. 189M people (57%) live in an area with at least 1M people. 230M (70%) live in an area with at least 500K people.

My conclusion is that most Americans do live in big cities. However, even if all big cities have restrictive shelving practices, there are still 3 out of 10 Americans (outside of the 500K cities) that do no experience these practices.

I'm in an area with 4M people and have seen the shelving practices. So I can concluded that at least 34% of Americans (who are in larger areas) have also experienced these restrictions.

quag··on Resolving the great undo-redo quandary
When set undofile is combined with :earlier and :later being used in place of undo and redo I think vim behaves as the author describes.
quag··on Resolving the great undo-redo quandary
Yes, vim’s “set undofile” will create a persistent undo file that stores all changes to the file indefinitely. You can undo changes made months ago over reboots. If you move the undo file between machines, you can undo on different computers.

Undoing a change from 2 hours ago in the same editing session is the trivial use case for undofile.

quag··on Ask HN: How do you focus on work for long periods of time?
Focus Toolkit episode: https://youtu.be/yb5zpo5WDG4
quag··on Nearly all binary searches and mergesorts are broken (2006)
N-1 games?
quag··on Baker's Math (2009)
It’s a small world. One of my friends worked on those books. We enjoyed a few years eating test bread every time we saw them.
quag··on Burrows–Wheeler Transform
bzip2 often beats xz for highly regular data, like a big csv or jsonl file. So I usually try both approaches on those sorts of files. For everything else my go to is zstd or xz. Xz usually wins by a little, but is a lot slower. Zstd is great in practice.

Just yesterday I had a file where bzip2 won. I would love to see a modern version with the first few stages of bwt feeding into xz or zstd.

quag··on Americans will soon be able to renew passports online
Mine was printed in another country and shipped 7200 miles to me in under a week for a $18 delivery fee.
quag··on Americans will soon be able to renew passports online
From the USA it was faster (1 week), cheaper, and easier (all online, all digital, no mailing anything in) to renew my New Zealand passport, than it was to renew the US passport for the little one.

We were left with the impression that the USA just doesn’t care about improving these things. So it’s nice to see that the improvements are coming, they just took a while.

quag··on Using Nix on macOS
I was surprised recently when upgrading from Catalina to Monterey and all the nix stuff just kept working. It was the first time a major macOS hasn’t broken nix.

Does anyone know if this update was a fluke?

quag··on Using Nix on macOS
Does nix and NixOS ever run the GC for you? I’ve always found that I have to manually run it at a time and place of my choosing.
quag··on Have an old iPad lying around? You might be able to make it run Linux soon
The best use I could find for my iPad 1 is to use it as a clock. It’s a real shame I can’t use it for anything else.
← PreviousPage 2 of 4Next →