HNHacker News
TopNewBestAskShowJobs

bntyhntr

184 karma · joined December 19, 2014

submissionscomments
bntyhntr··on Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling
I put tailscale on my desktop and run my AI sessions in tmux (or per that other HN topic, anything with persistent attachable sessions). Now I can termux in from my phone or laptop and keep the work going. Not everyone has a spare desktop sitting around, but I like having freedom of provider and keeping the actual filesystem on my machine.
bntyhntr··on Incident with Webhooks
And then you need to add another server to the infra / netops / tools team's maintenance burden and then they take it down for an upgrade and it doesn't come back up etc etc. I don't think outages/downtime are necessarily a good reason to switch to self-hosting. I worked at a company that self-hosted the repo and code review tool and it was great, but it still had the same issues.
bntyhntr··on Anime fans stumbled upon a mathematical proof
At one of my old jobs, the bathroom was locked with a 4 digit code followed by the key symbol. We jokingly made up "Bathroom Code" as an interview question/to nerd snipe each other instead of working, which was "assuming you don't have to press key, and that the bathroom door will unlock if the correct 4 digits are entered in order at any time, write the code to print the shortest possible test sequence to guarantee you entry". Obviously we didn't give this to any candidates but it's amusing to think that the problem is a lot more interesting than we gave it credit for.
bntyhntr··on Take the pedals off the bike
If you read reviews for kids foreign-language language books on Amazon, you'll see a fair amount of adults reading it for themselves mixed in. That's a little more self-directed but the vocab and sentence structure is organically restrained and the books are fun! caveat: I've only read two books in this manner incidentally, but I knew some people who did this kind of thing on the side during our college language classes.
bntyhntr··on Ask HN: Happy 404 Day. Whats your favorite 404 error page?
If you think about it, any response you get is a "200" by that definition since the server successfully gave you...something.

The browser usually has no special handling for most response codes, so serving a 404 page with a 404 status code is fine/expected and lets things (browser, scraper, etc) respond appropriately. I don't think the browser treats it specially but if you were scraping, you'd obviously want to ignore that result.

It is frustrating to work with APIs that return something like 200 { meta: { status: 404 message: "field <x> not found" } }

and browsing is no different.

bntyhntr··on AMD funded a drop-in CUDA implementation built on ROCm: It's now open-source
I would love to be able to have a native stable diffusion experience, my rx 580 takes 30s to generate a single image. But it does work after following https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki...

I got this up and running on my windows machine in short order and I don't even know what stable diffusion is.

But again, it would be nice to have first class support to locally participate in the fun.

bntyhntr··on $20k bounty was claimed
I would love to hear about any of this. I couldn't find a clear migration path with some quick googling, but I managed to eventually track down the rules I need to get mostly compatible with my org's prettier formatting. Notably, stuff I needed was in the `javascript.formatter` section of config. But even after matching everything, Biome was wrapping lines differently. Not sure but I don't actually run the front-end show so I stopped poking at that point.
bntyhntr··on Mathematicians roll dice and get rock-paper-scissors
People like apocryphal stories about successful people. Celebrities, billionaires, professors. imo the story serves as a way to connect the reader to the article. The HN crowd tends to care less about these kinds of things, which is fine, but the audience is much broader.

See for example: http://www.borrett.id.au/computing/petals-bg.htm or the umpteen versions of http://math.bme.hu/~petz/vnsumming.html

bntyhntr··on Peloton replaces CEO and lays off 2,800 people
I got a spin bike that came with spot for an iPad or comparable device, and paid $10/month for a peloton digital subscription. Sure I don't get to be on the leaderboard, but I'm saving $30/month and my bike was $900 instead of ~$2000. My partner's work subsidizes the peloton subscription now though which is obviously even nicer.

Bike would've been cheaper if I had bought before the pandemic but home gym prices went up, unsurprisingly

bntyhntr··on FalsiScan: Make it look like a PDF has been hand signed and scanned
New York is possibly more lenient on these things, but after scrolling on the website I realized they allowed anything postmarked to you at the address. Fortunately I had just gotten a thank-you card in the mail with my name and address on it and that was accepted for 1 of 2 proofs of address for my RealID. And the second was just a form I signed that said I lived there, given to me by the DMV clerk when I was there.

I glanced at another state out of curiosity and it seemed stricter.

bntyhntr··on Understanding Zero-knowledge proofs through illustrated examples
I had an algorithms class (6.006 or 046?) with Silvio Micali, who I learned partway through the semester was one of the first authors about these things.

Anyway, he was a great professor. When talking through algorithms, he'd always start with say, an n^4 solution. Then cut it down to n^3, call on people to help out, etc. I remember it being something like this (in an Italian accent that we really enjoyed)

"And now we're at n^2! Pretty good you might think eh? After all, we were at n^4 just a few minutes ago, this is much better? But, the human mind is a wonderful thing! It is so creative and some people thought about it, and they got n log n! Amazing. I know you are thinking, n log n is always as good as it gets in this class. Well I don't want to go into the details because, it is horrifying! But actually some people, they did even better! And you know as I said, the human mind is amazing! So maybe one day, you will do even better."

Also I sat across the aisle from him when Eliezer Yudkowsky came for a talk and only realized it when he answered a question EY asked the audience.

This kind of turned into me reminiscing but my point is, the guy who put these out there and did a lot of work on them is a great undergrad professor and that makes me happy.

bntyhntr··on But What's Up with That ¥?
Oh man, I had a similar experience with the keyboard and a large Japanese company, but I just got used to it. Going back and forth between my laptop at the company dorm(!) and work was disorienting. Really liked being able to hit " without holding shift though. And I think @ was somewhere more reasonable? Too lazy to look it up right now but boy was that "fun". My memory's hazy, but I think my machine's language was set to en so at least I had normal backslashes.
bntyhntr··on XMonad – The Automated Tiling WM
I use stumpwm, but to be honest I think I barely added any config options. Sloppy mouse focus was one and another to take screenshots with flameshot. Sloppy mouse focus in particular is huge. Works well with a tiling wm imo. The cursor tells me where my focus should be much better than a thin little outline moving around the screen. I was intimidated by all the lispiness of wms until I realized that I'm pretty content with out-of-the-box functionality and google got me the rest of the way.

Similarly, I've memorized new window and new horizontal/vertical split for tmux and that's like...98% of my usage so I'm set. vim definitely requires more effort, but the payoff for me was making it so that I'm always either in the terminal or in firefox. I still use the arrow keys to move around in documents and I've been using it as my daily driver for work for years.

As a result, I have two monitors, one dedicated to firefox and one to the terminal (includes vim + db clients + everything else). I don't split my terminal like crazy, almost very tmux window is fullsize. I split vim 3-4 times at most and make use of a buffer-switching list thing that's way more intuitive to me than remembering the vim commands to cycle through them.

Most of the reason I use a wm is because for two applications, I don't need window decorations and it just seemed like a waste in general.

For the amount of power-user tools I use I feel like a totel poser. But it works for me, and I think that's what matters.

bntyhntr··on Sqlfluff the SQL Linter for Humans
My editors and code review tools do not format or highlight sql for me when it's embedded in other files - eg java. I find capitalized keywords to be very convenient. Of course at that point, I can't run sqfluff on it either but this thread has already devolved fairly quickly.
bntyhntr··on Haku: A toy functional programming language based on literary Japanese
An old Japanese programmer told me that when he started out, they attempted to translate everything into Japanese. My memory is fuzzy (this conversation was 8 years ago) so take this as more of an example then exactly what he said. For example, "string" was translated by its rope-like meaning, you used that kanji to write it in comments/docs, and when talking to other programmers you'd use the Japanese word. Anyway they gave up on that for the most part.
bntyhntr··on Six Degrees of Wikipedia
In school, we used to have "wiki races" when we were bored (I later googled this and we were far from the only ones). Pick a start and end article and race to see who got there first, verification via the back button on your browser. For speed purposes, it was usually easiest to just bubble up to the biggest unit of geography in common and then narrow back down.

In college we made a site that represented each wikipedia page as a graph, with sections and links serving as nodes and leafs. It was a pretty fun visualization but we fell short of our ill-defined goal to page rank Wikipedia.

This is pretty neat! And it reinforces my belief that bubbling up is the way to go. In the example it gave me, only a few of the 35 paths didn't immediately jump to a very general concept. One of those was "leet" though :)

bntyhntr··on France grants citizenship to 12,000 Covid frontline workers
I just watched Falcon and the Winter Soldier so I'm mentally biased, but this reminds me (or _doesn't_, I guess) of the plot, specifically the GRC.

Specifically how attitudes changed towards people who crossed borders to help out when the blip was undone.

bntyhntr··on The universe has already made almost all the stars it will ever make
(Simplification, I'm happy and "well-adjusted" whatever that means): I've accepted the fact that my body has an urge to survive and it's not worth (and why would I want to) trying to weigh that against the grand nothingness that my life will amount to. I don't think there's a point to it all but if my body's gonna make me live then I'm gonna live it up. But it is kinda weird.
bntyhntr··on Tokyo’s 7-Elevens and convenience stores
I usually don't correct spelling but sake* (ends in an eh noise) gets me every time.

Totally agree though. Conbini snacks and some canned alcohol were how I traveled on the shinkansen. A very enjoyable ritual :)

bntyhntr··on Beware of 'shrinkflation,' inflation's devious cousin
In NYC last year eggs were like 2.50-3.00/dozen on a bad day. Are you shopping somewhere crazy or are nyc and sf that disconnected?

I mean, I have seen $10/dozen but they were some premium organic (not kidding) imported from Japan eggs in the Japanese mart.

bntyhntr··on Richard Feynman’s Integral Trick (2018)
My AP calc teacher was big into Leithold, specifically TC7 (https://www.amazon.com/Calculus-7-Louis-Leithold/dp/06734691...) when I had him. Claimed Stewart was useless, but he had a lot of strong opinions. I don't really have anything to say except that I have this feeling that I'm supposed to preach the gospel of TC7 anytime it comes up, so may as well :). Haven't touched calc in 10 years but sometimes still find myself trying to remember the chain rule (usually when miserable on a run)
bntyhntr··on The Leg at the Bottom of the Sea
I'd file it under things that initially sound ridiculous but make sense when you think about it. Which is fine by me, those are always interesting.

It does remind me of shoes on the highway, which is more mundane than a limb but an ocean but turns out to have a variety of mundane to wacky answers.

bntyhntr··on Neovim 0.5 is overpowering
1) That sweet sweet feeling of feeling different. I've come to accept that part of the reason I use linux and vim is I derive some satisfaction from being "hipster". But not enough to say, use gentoo :)

2) Simplicity. Even with all my vim plugins, I never have issues with "IDE hogging all my ram" or "intellij crashes when loading a working set including this commit" (it worked for me...).

3) Ease of access. When remoting into my boxes, I can just tmux attach and continue editing where I left off, even on a shitty connection (using mosh). Very useful on train/conference wifi.

In the spirit of your first clause, these are personal reasons that work for me. I have not listed the cons, of which there are many, and don't expect my reasons to apply universally.

bntyhntr··on A teenager's guide to avoiding actual work
It's definitely highly variable by university and major. I know all the chem e people I went to school with suffered through the same track together, for the most part. But the comp sci program was much bigger and most core courses were offered both semesters or weren't serious blockers for other courses. And there were plenty of non-core classes to choose from to satisfy the in-major credit requirement.

On the other hand a friend's brother had to do an extra semester at a state school because a class he needed to graduate filled up before he got a chance to register.

bntyhntr··on WHO List of Essential Medicines
What is albuterol? Why does not having it render the entire list terrible? Could you elaborate in a way that inspires useful discourse?
bntyhntr··on Use Alacritty instead of Termite
I've been running kitty and tmux for over a year now and if I have any issues with tmux I've been inured to them. Oh wait, I think a lot of kittens don't work and that might be related? What problems do you have?
bntyhntr··on The Hotdog web browser and browser engine
I am not a vegan, but I have had vegan (not imitation meat!) sausages that were absolutely delicious! But I admit the likely connotation is pretty meaty
bntyhntr··on 'Satan Shoes' to be recalled as Nike agrees to settle lawsuit
I don't think anyone expects to see people take advantage of the recall. Nike found themselves in the position of being associated with Satan, which isn't a good look to many people. They defended their brand while keeping a relatively low profile and that seems like a good place to keep it. Going any further would just generate more attention when all they really need is a legal admission that they're not satanists.
bntyhntr··on What Is Huffman Coding?
What's silly about that? If I were just getting started with this kind of thing, I think this would've been a great post for me. As I haven't done this since an intro class in college, it was actually a nice quick refresher. 6 symbols is easy to keep in the head all at once.
bntyhntr··on Commandline Database Clients with Autocompletion and Syntax Highlighting
I'm not a heavy db user, but I touch it once or twice a day. I use mycli as my daily driver. I configured separate profiles for when I connect to prod, and added autocomplete for my db profiles.

I haven't found a gui I'm happy with on Linux, but I've been loving mycli for the last 4 years or so.

Page 1 of 2Next →