• 8 Posts
  • 924 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle
rss


  • #!/bin/bash

    ping 255.255.255.0 > checker &

    sleep 5

    kill “$!”

    grep unreachable checker || echo ‘255.255.255.0’

    ping 255.255.255.1 > checker &

    sleep 5

    kill “$!”

    grep unreachable checker || echo ‘255.255.255.1’

    ping 255.255.255.2 > checker &

    sleep 5

    kill “$!”

    grep unreachable checker || echo ‘255.255.255.2’

    Did I do it coach? 😭






  • I wrote a little bit of code to tell me if or when my electricity would be cheaper if I used on demand pricing instead of flat rate. Basically anything you might use excel for could be a programming problem.

    For other hobby projects and “why Linux” it’s easier to sew things together than windows, generally speaking.

    Example:

    Every time I sit down at my PC the first thing I usually do is open a terminal: it is both my launcher and my file manager. I have several programs with TUI (terminal user interface) or text based API (which is an applied programming interface) and I keep my notes in plain text. One type of note I keep is an “atomic” note inside my zettelkasten (this is a fancy way of keeping track of ideas and the way they connect together, but you need to revisit them for it to be useful. Kinda like anki / spaced reputation I guess).

    So enough background, here’s the idea and the programming:

    • If I always open a terminal, it’s a good place to put stuff I want to see.

    • There are two things I want to see: twice a day I want to see a note, the rest of the time I want to see the 3 or 4 most important tasks on my todo list

    • I want randomized notes and I want it to be automatic.

    One of the easiest things you can do in a terminal is “echo” text. So I started by, in my terminal “rc” file (the configuration file that tells the terminal what to do when you start it) echoing my todo list as the very last step in the start process. Then it’s refinement. First don’t give me the whole list, use shell tools to show the head of the list. Now make a conditional statement that says “if there’s a file called “temp” in some folder give me the Todo list, otherwise do nothing”. Basically we follow the incremental logic train until you get the final product:

    • If no file exists, print a note (at random) and then make the file
    • If the file exists write part of the todo list
    • Every 6 hours, delete the file automatically with cron

    Neat you just programmed a lame, but useful tool.


  • Every citation is not fake or irrelevant. In wikipedia it’s “citation needed” or “page does not exist”. Same problems.

    All you have to do is click it or search again.

    But hey, of you prefer the old fashioned way of opening every returned search result starting with page 1 to page 6 until you just search again anyway, go ahead and do that. I’ll deal with sifting through occasional bad advice in an eighth of the time.



  • Same. But now this is a different topic.

    For something like perplexity under brave where you’re given inline citations, yeah, go follow them and get to an authoritative source faster.

    We didn’t start with “I can’t submit an updated review if I find mistakes”, we started at “there’s another unnecessary layer of indirection”. Which, sure, but it’s hardly different than getting a start with a medium article of “best xxx of 2025” or, yes, a wikipedia page. It may not be to your taste, but I’ve had some occasions where it’s convenient.


  • So long as the citations are there I’m not usually taking the summary at it’s word. I find searching “hard to Google” terms easier with AI.

    When having accurate and properly sourced material matters, I hope you’re not trusting the descriptions of citations laid out by wikipedia editors who are also just another layer of interpretation. It’s always worth a double check.



  • I don’t mind seeing an AI summary of search results as much as I mind sponsored links fucking up page rank. Sometimes it is even nice to see “hey your search doesn’t make sense because you’ve conflated two terms”. But I guess I’m in the minority.

    Reminds me of early wikipedia when there was a deep trustworthiness problem. Seeing a wikipedia link on a presentation stole your credibility, but it was still a hell of a lot better starting point than grabbing an encyclopedia and asking jeeves until you found a thread to pull.





  • It was pretty delicious. That is one of the last pieces that sat out while I served everybody else.

    Hot and fast (275 to 300F) 9h until internal temp of 204F and probe tender (closer to 205F when done). 24h dry brine, rendered all the trimmings and injected back into the flat before cooking. 2.5h rest. The only thing I did that was a little weird was I actually did the brisket over 2 cooks. Well, really a cook then a reheat on the grill the next day so we could eat early afternoon.

    It was a trick to get the thing cooled off fast, but doing an uncovered reheat on the grill was a nice touch: it gave a crisper bark that you don’t usually get after a long rest.