HNHacker News
TopNewBestAskShowJobs

alexthehurst

60 karma · joined May 24, 2017

submissionscomments
alexthehurst··on GPT-4
If you has this level of data, wouldn’t it be trivial to label the images?
alexthehurst··on Human to SQL Translator
Seems to return an empty response fairly often for me. The API response is `{"outputText":""}`. Perhaps an API availiability issue. More complex queries seem to bonk. I got:

    > Show details of the most recent registration update of any car registered in Canada which is not red
    select * from registrations
alexthehurst··on Ask HN: Small scripts, hacks and automations you're proud of?
This is a really clever use of glob expansion.
alexthehurst··on Ask HN: Small scripts, hacks and automations you're proud of?
I come across quips and insights that I want to remind myself of; including them in a random message of the day as a ZSH login message is the right amount of "flair" for me. But this is too noisy if it's a new random choice each time I open a shell. Using today's date as a source of randomness gives us a random choice that's the same all day long. So this is in my .zshrc:

    motd() {
        date +%D > /tmp/motd_seed
        sort -R --random-source=/tmp/motd_seed ~/Dropbox/motd.txt | head -n 1
    } 

    motd
```
alexthehurst··on Psql Tips
This is great. psql is one of my favorite CLI tools. It’s remarkably mature and ergonomical.

My personal favorites: `\e` to edit your query in $EDITOR, and `psql service=my_db` to use saved connection params.

alexthehurst··on Software I’m thankful for (2021)
- New Relic

- Alfred for clipboard management

- Rectangle

- Git

- The Unix shell/process model

- Vim interaction model and vi mode in its various incarnations

- Vimium

- VS Code

- Postgres

- BigQuery

- Markdown

- 1Password

- Docker

alexthehurst··on Issues with upstream DNS provider
For what it's worth: Crunchydata appears to have been using Heroku DNS in some way. We have a Heroku app with Crunchy databases, and our Crunchy dbs became inaccessible shortly before the app did.
alexthehurst··on World’s longest palindrome?
Did you require a certain time complexity? I came across this on Leetcode. I found it really trivial to implement the “test all substrings” algorithm, but fiendishly difficult to implement the “expand around centers” algorithm.
alexthehurst··on Keeping a plaintext “did” file
Here's what I use for this same purpose: my fork of someone else's old and unmaintained pet project. I think it's pretty good. It creates a new entry each day, or appends to this day's diary entry.

It has a few subcommands, which are date-aware.

https://github.com/alexthehurst/Diary.py

alexthehurst··on Why Don’t People Who Can’t Afford Housing Just Move Where It’s Cheaper?
FANG as in Facebook/Amazon/Netflix/Google?
alexthehurst··on Little Things I Like to Do with Git
To me, the obvious alias has always been "git credit". It's specific, but completely neutral.
← PreviousPage 2 of 2