HNHacker News
TopNewBestAskShowJobs

bongobingo1

1,686 karma · joined March 14, 2022

submissionscomments
bongobingo1··on Glance: A self-hosted dashboard that puts all your feeds in one place
Some people obviously care, but beyond that, I think it's an easy low hanging fruit when building them. There's lots of API's for it, the data is extremely regular, you get to show a graph and colorize some +/- and it has enough "bits" (symbol, name, price, delta) to look showy and interesting without being too complicated to actually design - the symbols even basically fixed width at 3-5ch.
bongobingo1··on Carapace: A multi-shell completion library and binary
You may be interested in this lazy completion loader https://news.ycombinator.com/item?id=40140873
bongobingo1··on Carapace: A multi-shell completion library and binary
Unable to edit, but this is how I handled lazy loading the completions

    {
      # load compinit and rebind ^I (tab) to expand-or-complete, then compile
      # completions as bytecode if needed.
      lazyload-compinit() {
        autoload -Uz compinit
        # compinit will automatically cache completions to ~/.zcompdump
        compinit
        bindkey "^I" expand-or-complete
        {
          zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
          # if zcompdump file exists, and we don't have a compiled version or the
          # dump file is newer than the compiled file, update the bytecode.
          if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
            zcompile "$zcompdump"
          fi
        } &!
        # pretend we called this directly, instead of the lazy loader
        zle expand-or-complete
      }
      # mark the function as a zle widget
      zle -N lazyload-compinit
      bindkey "^I" lazyload-compinit
    }
bongobingo1··on Carapace: A multi-shell completion library and binary
Beyond zprof (https://www.bigbinary.com/blog/zsh-profiling) not really I'm afraid. I did the majority of my zsh-prompt hacking 10 years ago and haven't thought about it since. That snippet could be from anywhere.

You could peek at something like zprezto https://github.com/sorin-ionescu/prezto or pure https://github.com/sindresorhus/pure for tips.

Fetching git/hg/... info is always slow, so try and speed that up where you can (as to how to do that, uhh... I know my prompt has a dirty-state check nicked from pure for speed reasons). You can also cache any `asdf init zsh` or similar to a file and do the same "run in background" trick so the next shell will have any changes.

The biggest improvement I can remember was dropping zprezto for my own much smaller config, I really did not need much comparatively. Mostly some git info and "good default" options. I use zgenom for a plugin manager but only have 3 plugins, probably I should just dump it and inline the plugins to avoid getting owned one day.

bongobingo1··on Carapace: A multi-shell completion library and binary
I have had this snippet in my .zshrc for years,

    autoload -U compinit && compinit
    {
      # Compile the completion dump to increase startup speed. Run in background.
      zcompdump="${ZDOTDIR:-$HOME}/.zcompdump"
      if [[ -s "$zcompdump" && (! -s "${zcompdump}.zwc" || "$zcompdump" -nt "${zcompdump}.zwc") ]]; then
        # if zcompdump file exists, and we don't have a compiled version or the
        # dump file is newer than the compiled file
        zcompile "$zcompdump"
      fi
    } &!
Using `zmodload zsh/zprof`, I can see about 50% (16ms) of my start up is compinit (its about 28ms without the `zcompile`).

Do you have any pointers for the "load on tab" idea? I didn't turn up any good results in DDG and LLMs were just hallucinating.

BTW I believe `-C` will disable some cache checking, caching is enabled by default

> To speed up the running of compinit, it can be made to produce a dumped configuration that will be read in on future invocations; this is the default, but can be turned off by calling compinit with the option -D.

> ...

> ... The check performed to see if there are new functions can be omitted by giving the option -C. In this case the dump file will only be created if there isn't one already.

bongobingo1··on Show HN: Brutalist Hacker News – A HN reader inspired by brutalist web design
Perhaps we should be right-click->view-source'ing for the true brutalist experience.

e: ah, in this very thread https://secretgeek.github.io/html_wysiwyg/html.html

bongobingo1··on LLaMA now goes faster on CPUs
What is sufficient RAM in that case? 30gb+? Or can you get by streaming it?
bongobingo1··on Fans quitting Spotify to save their love of music (2022)
Damn, Rage is still on, been on TV for longer than I've been alive, with the same logo, same time slot!

https://www.youtube.com/watch?v=5fOjrQ2N3K0 Ahh,,, guess I'd better go to bed .....

bongobingo1··on Gitlab confirms it's removed Suyu, a fork of Nintendo Switch emulator Yuzu
There are supposed to be yes.

(f) Misrepresentations.—Any person who knowingly materially misrepresents under this section—

(1) that material or activity is infringing, or

(2) that material or activity was removed or disabled by mistake or misidentification,

shall be liable for any damages, including costs and attorneys’ fees, incurred by the alleged infringer, by any copyright owner or copyright owner’s authorized licensee, or by a service provider, who is injured by such misrepresentation, as the result of the service provider relying upon such misrepresentation in removing or disabling access to the material or activity claimed to be infringing, or in replacing the removed material or ceasing to disable access to it.

https://www.law.cornell.edu/uscode/text/17/512#f (scroll up slightly as the anchor-link places the top under the navbar)

Of course its on the proverbial me to prove that they're at fault and I dont have the money or time ...

I imagine one day they will kick the wrong horse though and someone will sue the company for it & GH/GL/whoever for not giving fair recourse or something.

bongobingo1··on The Reddits
Higher karma accounts are less likely to get soft-locked out of communities ("comment/post deleted: you must have x karma to post here") and probably "look more authentic". That perception is probably still subliminally there for a bit longer.
bongobingo1··on Mozilla will be retiring the Mozilla Location Service
Broadly auto-picking the correct language and currency? Populating from a regional feed for news or alerts?
bongobingo1··on Submarine cables linking Africa-Asia-Europe severed
That's gotta be a might large battery.
bongobingo1··on Phind-70B: Closing the code quality gap with GPT-4 Turbo while running 4x faster
Just open enough issues on the parent libraries that they give up and conform to the hallucinations.
bongobingo1··on Phind-70B: Closing the code quality gap with GPT-4 Turbo while running 4x faster
I tried

"zsh rename index.html.1 to image_1.png for many images"

Gemini

    Here's a zsh script that will rename multiple files named index.html.1 to
    image_1.png in your current directory and its subdirectories:

    Bash

    #!/bin/zsh

    # Loop through all files in the current directory and subdirectories
    for file in **/index.html.1; do
      # Extract the base filename and extension
      base_name="${file%.*}"
      extension="${file##*.}"

      # Rename the file with the new name and extension
      mv "$file" "${base_name}_1.png"

      # Print a message for each renamed file
      echo "Renamed $file to ${base_name}_1.png"
    done
ChatGPT3.5

    To rename multiple files in zsh, you can use the zmv function. Assuming you
    want to rename files from index.html.1 to image_1.png for many images, you
    can create a pattern to match the filenames and then define the new names
    using capturing groups. Here's an example:

    zsh

    autoload -U zmv

    zmv -n '(*).html.(*)' 'image_$1_$2.png'

Not a great first impression of Gemini. ChatGPTs answer isn't perfect but its a lot closer to correct, only needing me to remove the extra 'index' capture of $1.

Curious if someone could commit some light copyright infringement and post what GPT4 says to the same prompt.

Edit: Also Phind-34B probably gives the best answer, with the correct capture.

    To rename multiple files in zsh from index.html.1 to image_1.png for many
    images, you can use the zmv command, which is a powerful batch renaming tool
    available in zsh. If you encounter the error zsh: command not found: zmv, you
    can load it using autoload -U zmv 1.

    First, ensure zmv is available by adding autoload -U zmv to your ~/.zshrc file
    or run it directly in your shell session 2.

    Here's how you can use zmv to rename your files:

    zmv -n 'index.html.(*)' 'image_$1.png'
bongobingo1··on ChatGPT went berserk
Tech Company: At long last, we have created the Torment Nexus from the classic sci-fi novel Don't Create the Torment Nexus.
bongobingo1··on Fly.io has GPUs now
Another support.flycombinator.com classic.
bongobingo1··on Confirmation of ancient lake on Mars
Funny to think about how different people perceive the rate of change. Growing up before they landed on the moon, seeing a smudgy black and white blob walk around in a funny way to getting robots onto MARS, with "realtime" (radio-time) imagery is insane, the stuff of HG Wells.

Growing up after the landing, with science fiction being a pervasive genre, color television, the internet, you can see how to some it might feel like a lot of hurry up and wait.

The perspective of "one day, we might just see that moon up close" to "well duh we are going to mars."

bongobingo1··on Apple's bad faith 27% tax on web purchases
But how does it know I bought 13 tokens for $20, or 100 tokens for $149 (best value!)? If the account balance is on the application server side.
bongobingo1··on Project Bluefin: an immutable, developer-focused, Cloud-native Linux
That seems extremely reductive...
bongobingo1··on Fly through your shell history
Some discussion about cross pollination https://github.com/cantino/mcfly/issues/373
bongobingo1··on Heat pump users noticing cheaper bills and warmer homes – study
We recently replaced our old leaking big-ass-tank gas hotwater service with a continuous flow gas system.

I looked into heat pumps, but cost the of the device + installation + an electrician to run a new line (seemed that would be needed) ... I dont think it was ever going to break even over the rated life span of the system. The cheap ones were still 3 times the price of a gas system, just for the hardware. That and I would have to buy the heatpump from out of town, so getting any warranty/servicing might be more drama. And I really didnt want to listen to a cheap compressor tick-on all the time.

Another sad mark in the "wish I didnt have to kill the planet but ..." column. Feels like a rich mans game.

bongobingo1··on Show HN: Whataaabout.com – unique activity ideas for the holiday break
More exciting than mine, "doing an expense report" or "checking your subscriptions".
bongobingo1··on Show HN: Whataaabout.com – unique activity ideas for the holiday break
> a board game night as Free activities!

https://boardgamegeek.com/boardgamecategory/1120/print-play

&

https://boardgamegeek.com/forum/974620/bgg/design-contests

BGGs site is always a bit confusing to me to navigate, but searching for "pnp" or "print and play" and a contest year will probably surface a lot of good "free" (or at least, free to print....) You can at least certainly get a bunch printed for cheaper than 1 boxed game and if you dont like half of them, no drama.

Shutup and sit down has done a few round ups of solo-print-and-plays https://inv.tux.pizza/search?q=shut+up++and+sit+down+print+a.... I'm sure there are people on here that can recommend some +1-player pnp games.

bongobingo1··on Simple Made Easy (2011) [video]
Actually its incredibly simple.

See, I just did it and didn't have to mention Rich Hickey.

bongobingo1··on Deep cloning objects in JavaScript
Ah, the OnlyChild implementation of Shared.
bongobingo1··on Pornhub, XVideos, and Stripchat hit with tough new EU safety regulations
Doesnt something like this just push underage viewers into going to "non mainstream" sites to get porn, and probably the stuff there has a higher chance of being illegal or at least more "unusual" than what you'd see on pornhub?
bongobingo1··on Show HN: Made a forum for depressed founders to confide
> People say life is fair

I have never heard anyone say that in my entire life. Closest might be "put in the work and with a bit of luck you will succeed" I guess.

bongobingo1··on An Empirical Study and Evaluation of Modern CAPTCHAs
I cant tell if the audience of HN are more likely to script something untoward against HN, be that DDOS or just "check out my product" spam, because its a bunch of hackers - or less likely to do it because (maybe) we like having nice things, or figure the audience is too in the know to fall for boring crypto spam.
bongobingo1··on Beeper Mini is back
Bizarre take. I had no call in electing any politician that has any influence over Apple or Google, nor do I really have the choice to pick beyond the one of the two systems. Neither does the rest of 95% of the world.
bongobingo1··on Pitfalls of Helm – Insights from 3 years with the leading K8s package manager
> k8s world wasn't ready for the complexity

(Score: 3, Funny)

← PreviousPage 2 of 14Next →