Recent submissions

Comment · 20 days ago
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.
Comment · 1 year ago
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.
Comment · 1 year ago
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.
Comment · 1 year ago
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.
Comment · 2 years ago
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.

Comment · 2 years ago
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.

Comment · 2 years ago
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.
Comment · 3 years ago
Comment · 4 years ago
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

Comment · 4 years ago
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.

Comment · 5 years ago
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.

Comment · 5 years ago
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.
Comment · 5 years ago
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.

Comment · 5 years ago
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.
Comment · 5 years ago
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.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton