Skip Navigation

Posts
57
Comments
963
Joined
2 yr. ago

  • My absolute favourite is when the examples say something like "production code should not be written like this, this is just for clarity" with no indication of what's wrong with the code.

    Is it just normal Rust stuff like there's unwraps everywhere and it's one big file? Does the example have security or performance problems? Is the example unidiomatic or over-verbose or is it ignoring features real-world code would use? EXPLAIN YOURSELF!

  • Those photos really sell the value of those satellites. It seems ridiculous that we don't have replacements up there given how many launches there's been in recent years.

  • You're missing Windows 2000, but I guess you can argue that's Windows NT not mainline Windows. That was definitely in the good camp, and I was not alone in sticking with it for many years (until XP got good).

    Edit: I see @NickwithaC@lemmy.world beat me to this point.

  • Oops, you're right, sorry. I used to use Thunder and got mixed up.

    I can't see how to do it in Thunder 0.3.0, although it's way less easy to do accidentally, at least. I see version 0.4.0 is on its way but I don't see any mention of what you want there either.

  • @weiming@mapstodon.space looks good! I am fluent in regex and SQL and I know some Clojure, but these datalog queries are still a bit of mystery to me... that's the thing I need to visualise!

  • Edit: I was describing Voyager, not Thunder.

    Yes! It's in a weird place, though.

    Settings > Appearance > Themes > Device Mode
    Set this to Android. It says it's a beta option, but I've not had any problems.

    This setting was very welcome to me, since I was forever triggering back when I meant to upvote a comment.

  • I'm no expert in advanced queries, but just to note that you could make things simpler (well, shorter at least) by using a regex to handle all those starts-with lines.

    This selects all pages that don't start with 0-9 or @:

     clojure
        
    #+BEGIN_QUERY
    {
      :title [:h2 "Query Results"]
      :query [
        :find (pull ?p [*])
        :where
        [?p :page/name ?page_name]
        [(re-pattern "^[^0-9@].*") ?regex]
        [(re-matches ?regex ?page_name)]
      ]
    }
    #+END_QUERY
    
      

    You could also extend the regex to handle the "includes _ or -" bit too:

     clojure
        
        [(re-pattern "^[^0-9@_-][^_-]*") ?regex]
    
      
  • Yup, I noticed that no-Helix-inside-Helix comment too, but I don't use my git tools to edit files anyway. I often stage only certain lines, so doing that interactively is 90% of why I'd use similar tools.

  •  
        
    function delete-branches() {
      git branch |
        grep --invert-match '\*' |
        cut -c 3- |
        fzf --multi --preview="git log {} --" |
        xargs --no-run-if-empty git branch --delete --force
    }
    
    
      

    This is really slick.

  • Unfortunately, insert-output doesn't seem to work with gitui under Windows - I don't see the application although I can see the control codes after I've quit. It does work with lazygit, but for me lazygit has a ~200 ms lag for every input, which makes it horrible to use.

    Bookmarked for when I switch to Linux full-time.

  • A great post, interesting and to the point.

  • I'd assume it was something you'd typed once (maybe while searching or a typo). I always delete those words when they come up (for me that's dragging the word up and a bin appears).

  • So you think it's too unreasonable for you to cope with?

  • Both work for me using Voyager on Android and Firefox on Win10 👍

  • Why? Unless you like breaking into other people's devices, this is good news.

  • I think all of the communities would rather have something more than just a bare link. I'm not sure why you're responding with such indignation, to be honest, it was a perfectly reasonable suggestion, politely made.

  • Mbin seems like a healthy project, and the only sensible move from kbin.