HNHacker News
TopNewBestAskShowJobs

xk3

2,798 karma · joined March 29, 2019

submissionscomments
xk3··on In the Beginning Was the Command Line (1999)
> On the command line, the context is obvious. You are in the context

While I share the opinion that the command line is _the one true way_ of computing, I don't think this is really all that true. Computers are alien. GUIs are alien. CLIs are alien. Everything is learned. Everything is experience. Everything is culture. Learning, experience, and culture blind us from the experience of the novice. This is "expert blindness".

Why Western Designs Fail in Developing Countries https://youtu.be/CGRtyxEpoGg

https://scholarslab.lib.virginia.edu/blog/novice-struggles-a...

xk3··on Eza: A modern, maintained replacement for ls
When I want to cd I usually don't type cd. I use zoxide which is a modern autojump.

In fish shell you can also just type the directory path and press enter and it will change the working directory.

xk3··on Google Drive scans files for copyright infringement
yeah I'm pretty certain they are re-using what was already in use by YouTube which is based on perceptual hashes
xk3··on CLI tools to build, browse, and blend your media library
You actually can use it to do that (as a lightweight Git Annex) but if everything is local then you are probably better off using `find` or `locate`

You can also track open directories:

    lb webadd debian.db https://ftp.debian.org/debian/
edit: hmmm this specific site causes the script to essentially loop forever (it keeps adding more and more '/' at the end). weird! I'll fix that
xk3··on CLI tools to build, browse, and blend your media library
I don't use Wayland yet personally but I imagine that the mpv ontop mechanism might be conflicting with the focus stealing prevention. Do you use ontop? Does it work if you disable ontop? If so, this should probably be considered a bug in mpv on Wayland.

hmm maybe not: https://github.com/mpv-player/mpv/issues/9064

edit: I just verified it is working fine on X11 (wanted to make sure I wasn't mis-remembering--but it is very obvious when something steals focus because I use the Dim Inactive desktop effect with a very high setting). I'm using ontop=yes as mentioned before. On Fedora 39 with my setup mpv does not steal focus when launching/switching videos. I did notice some weird behavior with nomachine before but after setting Focus Protection to Force High for nxplayer.bin I haven't noticed it again.

    KWin version: 5.27.11
If this isn't working in Wayland surely this should be considered a Wayland/mpv bug?--just one more reason for me to delay trying Wayland
xk3··on CLI tools to build, browse, and blend your media library
note, if you find this useful:

    mpv --playlist=<(lb wt vids.db -l120 -pf)
you can add `w` to `-p` (ie. `-p fw`) and that will mark the videos as watched when you pipe it so next time it won't play those videos again until you've watched everything at least once
xk3··on CLI tools to build, browse, and blend your media library
> expected that the `--mpv-socket` option would allow me to send videos to the player instance tied to that socket

Ahh that's interesting. I experimented with a setup almost like that before[0]. It increased the complexity quite a bit more than I expected when refactoring some of the features so I decided against it but I recommend checking out the python_mpv_jsonipc library. I still use it in with --auto-seek and -4dtv (interdimensional cable mode)

BUT if you wanted a setup like this I think it wouldn't be too difficult to use something like `lb wt -l120 -pf` and then pipe to a program that will send the files to mpv one at a time. or maybe something like:

    mpv --playlist=<(lb wt vids.db -l120 -pf)
> Wayland

I recommend checking to see if your window manager can solve this for you [1]

I use KDE/KWin so in Window Rules I set mpv to skip taskbar and set Focus stealing prevention to Force extreme so that new mpv windows don't steal focus. But for mpv specifically, you might have luck with an mpv config like this:

    ontop=yes
    keepaspect
    geometry=100%:100%
    autofit=30%x24%
I think the reason I don't set this in KWin directly is because I want to override the geometry depending on if mpv closed fullscreen [2] or if I'm using lb wt with multiple-playback

[0]. https://github.com/chapmanjacobd/library/commit/ba5bf174f21a...

[1]. https://mastodon.social/@tusooa@kazv.moe/110669435048449340

[2]. https://github.com/chapmanjacobd/computer/blob/main/.config/...

Maybe there is something else in my mpv config that will help. Feel free to browse it: https://github.com/chapmanjacobd/computer/blob/main/.config/...

xk3··on CLI tools to build, browse, and blend your media library
Most of the commands have pretty detailed examples when you run `-h`

But from your feedback I will also add how I use it to the bottom of what already exists!

xk3··on I mapped almost every USA traffic death in the 21st century
This is interesting in of itself but it might be more useful if it was weighted for population (ie. traffic without deaths)
xk3··on CLI tools to build, browse, and blend your media library
Thanks. Yes, I use this every day in different situations. Lately I've been scraping a lot of different sites (ex. https://github.com/dongKenny/artveeScraper/issues/4 ) and using `lb du $site.db -D$depth` to view folder sizes at different depths and choosing what to download.

I also use it to sort through videos quickly. For example, to watch four videos at once:

    lb wt --loop --cmd130 exit_multiple_playback --cmd5 'lb process-audio' --cmd6 'mv {} /mnt/d/library/vr/' -u size desc -m 4
xk3··on Engage your audience: get to the point, use story structure, force specificity
There is the ideal form for Executives:

- Summary - Conclusion - Results - Analysis - Hypothesis - Context - Context

There is the ideal form for Researchers:

- Problem Statement (Abstract) - Context - Context - Hypothesis - Analysis - Results - Conclusion

Almost opposite ordering

xk3··on The Engine of the Future
I understood the main points pretty well and the reasoning behind most of them. I don't work in the gaming industry. I draw upon these resources for my context:

- https://www.brendangregg.com/blog/2017-05-09/cpu-utilization...

- Mike Acton "Data-Oriented Design and C++" https://www.youtube.com/watch?v=rX0ItVEVjHc

- A Crash Course in Modern Hardware by Cliff Click https://www.youtube.com/watch?v=OFgxAFdxYAQ

- GCAP 2017: Decima Visibility in HZD https://youtu.be/N7b65kPI5AQ

- GPU-Based Run-Time Procedural Placement in HZD https://www.youtube.com/watch?v=ToCozpl1sYY

- https://www.gdcvault.com/play/1024912/Beyond-Killzone-Creati...

I say this only to make the point that optimization is not completely inaccessible to the average person. It is useful to understand what the hardware is doing--up to a certain point; good abstractions are also necessary.

xk3··on Milk watcher
Most rice cookers work very well without any manual monitoring

https://youtu.be/RSTNhvDGbYI

xk3··on Show HN: US Immigrant Visa Statistics
H-1B is a nonimmigrant visa. I downloaded both and they'll automatically update to that repo as JSONL, but I only made the CSV and EDA for immigrant visas.

But a PR is welcome. The steps should be mostly the same for the non-immigrant data. Check the fixup files and then the R code in the Readme. The CSV report at the bottom was made with `lb eda --end-row inf $file`

xk3··on Open Source YouTube to MP3 Downloader
NewPipe or xklb in Termux
xk3··on Open Source YouTube to MP3 Downloader
Matroska Audio (.mka) is also a nice choice

https://en.wikipedia.org/wiki/Matroska

xk3··on The Birth of Parquet
You may want to give octosql a try. I was able to read 100GiB parquet files and aggregate them using less than 100MiB RAM and it is pretty fast too
xk3··on Dotfiles: Unofficial Guide to Dotfiles on GitHub
All you need is gitignore: https://github.com/chapmanjacobd/computer/blob/main/.gitigno...
xk3··on Transgenic Golden Rice, once hailed as a dietary breakthrough
Even better use the actual court name: "Philippine Court of Appeals revokes sale permit of GM crop Golden Rice"
xk3··on Every map of China is wrong
> there was no issue

You should compare with https://m.amap.com/

xk3··on Every map of China is wrong
It has no military capability impact. The situation is similar to South Korea's map.
xk3··on The File Filesystem (2021)
> Compressed archives, for one

You can look inside of archives pretty easily with `lsar` (part of the unar package). It works with disk images like ISO 9660 files too

But yes, especially for nested archives, having deeper OS support would be nice.

xk3··on Show HN: Find similar folders based on folder name, folder size, and count
If it's slow for very large folders you can pre-filter out small folders before it hits the TF-IDF:

    --lower 3 --folder-size=+200M
Likewise you can set upperbounds:

    --upper 3000 --folder-size=-2GB
upper and lower constrain folders with fewer than or more than X number of files
xk3··on Using Windows with WSL2 to recover your Linux
your link seems funny... I wonder if hn is doing a bad regex replace to change URLs to old.reddit. However, I was able to get construct a working links: https://old.reddit.com/r/bashonubuntuonwindows/comments/1cda...
xk3··on Show HN: Find similar folders based on folder name, folder size, and count
Well... HN strips the page fragment so you'll have to Ctrl+F "similar-folders"

Or: https://github.com/chapmanjacobd/library?tab=readme-ov-file#...

xk3··on The importance of an ordinary space in a Unix shell command line
Huh... I've done a lot of string concatenation with quotes but you just made me realize that

    cut -d' '
is the same as

    cut '-d '
xk3··on The follow lie, and why it's worse than ever
> manually visit specific people’s web sites to see what new stuff they posted

RSS is nice but I've started to do this as well. Something like this works across all sites:

> The main benefit of tabs is that you can have a large amount of tabs saved (say 500 monthly tabs) and only the smallest amount of tabs to satisfy that goal (500/30) tabs will open each day. 17 tabs per day seems manageable--500 all at once does not.

https://github.com/chapmanjacobd/library?tab=readme-ov-file#...

xk3··on READY (2004) - AGS point-and-click about buying duct tape
From the author: George Bush was President, America was still kind of hyped up about a terror attack, and the relatively newly formed Department of Homeland Security wanted us to feel prepared for another at any time. They recommended the purchase of duct tape and plastic sheeting to protect ourselves from unexpected chemical or biological warfare, and offered further advice in the form of a website, Ready dot gov, illustrated with awkward generic pictograms that the internet quickly found new captions for, such as "If you see a terrorist arrow, pin it to the wall with your shoulder." The art in this game is mostly made of these images.
xk3··on Fallout1-ce: Fallout for modern operating systems
some guy in Poland is making Fallout 2 in 3D... it even works in the browser? somewhat

https://jonasz-o.itch.io/fallout2remake3d/devlog/708154/upda...

xk3··on Old Pictures of Computers
ah! yes. interesting, although I wonder if those old book covers are black&white but I recognize the texture too
← PreviousPage 3 of 7Next →