Readit News logoReadit News
Skunkleton commented on Ask HN: How can ChatGPT serve 700M users when I can't run one GPT-4 locally?    · Posted by u/superasn
eulgro · 18 days ago
> 13 000 BTU/hr

In sane units: 3.8 kW

Skunkleton · 18 days ago
> In sane units: 3.8 kW

5.1 Horsepower

Skunkleton commented on Replacing tmux in my dev workflow   bower.sh/you-might-not-ne... · Posted by u/elashri
bitbasher · 25 days ago
This blog post reminds me of _why_ I use tmux. Did you see how much they needed to do to even resemble the workflow of tmux? Jeez, just use tmux. I don't mind dealing with wonky copy and paste once in a while.

> In summary: multiplexers add unnecessary overhead, suffer from a complexity cascade, because they actually have to translate escape codes, modifying them in hackish ways to get them to work with their concepts of windows/sessions.

What does that have to do with you using tmux? You're not the one maintaining tmux's codebase.

Skunkleton · 25 days ago
> I don't mind dealing with wonky copy and paste once in a while.

This problem is in no way unique to tmux. You have the same problem with any terminal app that takes over drawing, eg vim. That said it is also easy enough to fix.

The solution is OSC52, a terminal escape sequence that the emulator can use to interact with the system clipboard (kitty, alacritty, iterm2 all support this). The first step is to get you a script that writes out data in that protocol. Its easy enough:

    #!/usr/bin/env python3
    import os, base64, sys
    clip = base64.b64encode(sys.stdin.buffer.read())
    for pid in (os.getpid(), os.getppid()): # so that osc52-copy can be invoked by processes that themselves do not have a tty.
        cty = f"/proc/{pid}/fd/1"
        try:
            fd = os.open(cty, os.O_WRONLY)
            if os.isatty(fd):
                os.write(fd, b'\x1b]52;c;') # the actual escape sequence
                os.write(fd, clip)
                os.write(fd, b'\a')
                break
        except:
            continue
        finally:
            os.close(fd)
    else:
        raise SystemExit(f"no tty")

Now you can do this:

$ grep my_thing < some.txt | osc52-copy

And whatever got into osc52 is now on your system clipboard.

Tmux (set -g clipboard on) and nvim (unset clipboard) both have native osc52 support, and the script above can be used to integrate other places.

Skunkleton commented on Uv: Running a script with dependencies   docs.astral.sh/uv/guides/... · Posted by u/Bluestein
alkh · a month ago
If I may interject, does anyone have any idea why the `-S` flag is required? Testing this out on my machine with a BSD env, `/usr/bin/env -S uv run --python 3.11 python` and `/usr/bin/env uv run --python 3.11 python` do the same thing (launch a Python interactive shell). Man page for env doesn't clarify a lot to me, as the end result still seems to be the same("Split apart the given string into multiple strings, and process each of the resulting strings as separate arguments to the env utility...")
Skunkleton · a month ago
Its needed on my ubuntu 24.04 system

  $ cat test.sh
  #!/usr/bin/env bash -c "echo hello"
  $ ./test.sh
  /usr/bin/env: ‘bash -c "echo hello"’: No such file or directory
  /usr/bin/env: use -[v]S to pass options in shebang lines
  $ ./test.sh # with -S
  hello

Skunkleton commented on I want an iPhone Mini-sized Android phone (2022)   smallandroidphone.com/... · Posted by u/asimops
kevincox · a month ago
Especially if having that line means only 1% more customers and 19% customers that just buy the small model instead of the other model. And unless you are launching the Mini Pro Max Ultra X you are losing money on that 9% of customers that would have bought the higher margin phone but instead bought the mini version which is only available at the more base model.

(Numbers made up to illustrate the point)

Skunkleton · a month ago
I fall into that category. My first choice would be an iphone pro mini. My second choice is an iphone pro max. I refuse to explain my preferences.
Skunkleton commented on I want an iPhone Mini-sized Android phone (2022)   smallandroidphone.com/... · Posted by u/asimops
raydev · a month ago
What I find fascinating is that Apple's and [Android manufacturers]'s previous attempts at smaller phones aren't even worth maintaining after they assess sales.

In my mind, these companies are all so massive they can afford a little fragmentation for the obviously small market, with no meaningful impact to their sales numbers or profits.

On the iPhone minis, there's very obviously a market for them, but the market is so small compared to the market for "all iPhones" that it practically vanishes in comparison, which leads Apple to not bother. Is it really that expensive to maintain a more niche line for each generation?

Skunkleton · a month ago
> Is it really that expensive to maintain a more niche line for each generation?

Think of just the work that goes into having an assembly line customized for a specific form factor. To keep price, quality, and profit in line with their other phones I think the answer here is clearly yes.

Skunkleton commented on Why are coffee stains darker at the edges?   why.is/svar.php?id=5513... · Posted by u/michalpleban
Skunkleton · 3 months ago
Is this completely correct? Coffee isn’t homogeneous. There are particulates and oils that will separate out. Anything pushed to the top will also move towards the edge given the shape of the droplet. There is also capillary action to consider. Seems like there should be more than one effect that leads to the edges of the stain being darker.
Skunkleton commented on Why I Am Not Going to Buy a Computer (1987) [pdf]   classes.matthewjbrown.net... · Posted by u/bookofjoe
hollerith · 4 months ago
No, all the carbon in food plants comes from CO2 from the atmosphere. (Ditto nitrogen by the way: the natural gas used in making nitrogen fertilizers is a source of hydrogen and possibly reaction energy, but not a significant source of N.)
Skunkleton · 4 months ago
> No, all the carbon in food plants comes from CO2 from the atmosphere.

Yes, this is what I said.

> the natural gas used in making fertilizer is a source of hydrogen and energy, but not a significant source of N.

There is no nitrogen at all in natural gas.

Plants cannot use atmospheric nitrogen on their own. They depend on either bacteria or humans to create some usable form of nitrogen. Any carbon captured in a plant that depended on a fossil fuel source of nitrogen cannot be considered carbon neutral, unless you draw a useless system boundary.

Skunkleton commented on Why I Am Not Going to Buy a Computer (1987) [pdf]   classes.matthewjbrown.net... · Posted by u/bookofjoe
hollerith · 4 months ago
No, you are not getting what people are trying to tell you: growing the food for the extra 7 billion completely cancels out the co2 emitted from the 7 billion pairs of lungs. We know that because the C in that emitted CO2 all comes from food eaten by the person at some point in the person's life.
Skunkleton · 4 months ago
I think you might be missing the point too. Yes, the carbon in the food we eat is where the carbon in our breath comes from. But the carbon that we used to get the ingredients in that food didn't certainly come from the atmosphere (e.g. half of the nitrogen used in agriculture comes from fossil fuels). You can't be a perfectly optimal salad eating machine. One of your fellow humans will ruin the equation the moment they buy produce from the modern supply chain.
Skunkleton commented on Why I Am Not Going to Buy a Computer (1987) [pdf]   classes.matthewjbrown.net... · Posted by u/bookofjoe
zahlman · 4 months ago
The fact that we have ~8 billion people now vs ~1 billion in 1800 does make a difference to the equation, in terms of our own respiration and not just our deliberate use of fossil fuels. Admittedly it's minor, and I don't know what's happened to other biomass in that time. But still. The point is: having people eat more so that they could pedal a stationary bike hooked up to an electric generator, would not give "clean" power at the margin.
Skunkleton · 4 months ago
We are carbon neutral against the earth as a whole. The problem is that sequestered carbon is now in the atmosphere. It doesn't matter how many people are breathing out carbon. It matters where that carbon came from, and where it ends up. Of course we now have so many humans that the majority of them are dependent on fossil fuels to survive, and as others have pointed out, not just for energy.
Skunkleton commented on Why I Am Not Going to Buy a Computer (1987) [pdf]   classes.matthewjbrown.net... · Posted by u/bookofjoe
Jordan_Pelt · 4 months ago
"My wife types my work..."

Those five words render the entire essay meaningless.

Skunkleton · 4 months ago
I get your point, but good luck with that. Most (every?) influential figure had has something problematic about their person. If you can't see the good through the bad, then you will quickly find yourself with nothing.

u/Skunkleton

KarmaCake day3371May 18, 2013View Original