Speeding up audio for profit

2025-06-25

This post, found on hackernews, is about a clever insight. It turns out that OpenAI prices their voice-to-text service per minute and if you want to pay less for this service ... you might be better off speeding up the audio.

There's an upper limit to what you can achieve, obviously, to quote the article:

4x speed? Probably too much—but fun to try.

Another solid pro-tip is to remove pauses from the audio. The timestamps might no longer fit, but if all you're interested in is the text this is also a valid strategy.

Clever article! Great read!

debug prompt

2025-06-19

This has started becoming my go-to for debugging code with a copilot.

You've introduced a new bug, but instead of me telling you what the bug is, let's see if you can find it for yourself.

Imagine that you are a user and that you start by <decribe-entrypoint>. Go through all the steps that would happen if a user tries to <decribe-action>.

Think through all the steps and see if you can spot something that could go wrong. Don't write any code, but let's see if we both find the same issue.

What's really nice about it is that even if it doesn't find the same issue that I do, it usually does give me just enough insight/inspiration to know what to say next in order to get it to make a proper fix.

cd and virtualenv

2025-06-17

This feels like a fun thing to add to your .zshrc file.

cd() {
    builtin cd "$@"
    
    # Deactivate any current venv
    if [[ -n "$VIRTUAL_ENV" ]]; then
        deactivate
    fi
    
    # Check for virtual environment and activate
    if [[ -f ./venv/bin/activate ]]; then
        source ./venv/bin/activate
    elif [[ -f ./.venv/bin/activate ]]; then
        source ./.venv/bin/activate
    fi
}

When this is loaded, every time you enter a new folder, it's gonna check if there is a virtual environment to go ahead and activate. It's a hack, but it might work well enough. The main downside is that sometimes you will have multiple virtual environments for debugging. Still, it feels like it should cover about 90% of all the painful cases where you try to run something and the wrong virtual environment is loaded. It should also play nicely with uv which is a plus.