• 1 Post
  • 35 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2023

help-circle




  • Let’s see… we’ve replaced our forests with gas stations, burnt down the rainforests in favor of monoculture farms, acidified the oceans to kill all the diatoms… I think we’ve put Earth’s oxygen production systems into as much peril as possible.

    Billionaires: hold my deep sea mining rig.





  • Yeah, I’m not sure if we’re talking about the same thing. What I’m looking for:

    I make a Mastodon account

    I make a Bluesky account

    I connect them via the bridge

    I post on one account, the same content is posted on both accounts

    If someone replies to my post on Mastodon (which all Mastodon users can see), I can reply using my Mastodon account

    If someone replies to my post on Bluesky (which all Bluesky users can see even if they have not opted into using the bridge), I can reply using my Bluesky account

    From what you’re describing, it doesn’t sound like the bridge can facilitate this.


  • I’ve never been on Twitter/X, Bluesky, or Mastodon. But maybe I’d like to try.

    So far I can’t decide because I prefer Activity Pub in principle, but always felt FOMO with Twitter and don’t want the same thing to happen with Bluesky.

    I think the best of both worlds would be if I could make an account on both and have one account essentially repost anything from the main account, unless I’m replying to someone specifically where it wouldn’t make sense to reply on both accounts.

    Not sure if this bridge is a step in that direction, but it’s far more important to me that everyone can see what I post on both sides than it is that people from both sides can reach me on a singular account. Not sure if others feel the same way.


  • Read through the Readme and it’s definitely a good tool to know about. It doesn’t fit the needs of my current problem, but I’m certain I’ll use it in the future for context sensitive searching, since grep/awk/sed/tr have definitely fallen flat for me in the past. I might also be able to study how they utilized tree-sitter CLI when I explore my own implementation.

    For my purposes, I want to take a group of similar-yet-different YAML file sets (though file type should be arbitrary), and feed them through a tool that will spit out a YAML template containing everything that is shared between multiple sets.

    Then, I want it to create a file for each YAML which defines which parts to pull from the template file and a list of variables to be inserted into holes in the templates. Basically creating a madlib that can recreate any file in the original group given the right list of variables to insert.

    For example, if I have a hundred YAML files that are mostly similar but contain different project names, have different server types provisioned, and are pulling different product versions, I would want this script to parse all hundred files and spit out a template that could be used as the basis to build any of the hundred files. The template would be combined with a hundred variable trees that would insert each unique part of each file into the right place.

    In effect, I could have a small variables file that gives only the unique portions of the equivalent YAML - in this case, it would contain only the project name, the server type, the product version. Then, these small files could be combined with the universal template to recreate the original hundred YAML files. But unlike using a simple override mechanism, I would be able to change elements of the template YAML including broad structural changes, and after some processing, the change would affect all one hundred output YAMLs.

    One could track things like environment variables that are specific to a certain project version and require that whenever a project version has a particular value to insert a particular environment variable into the output YAML. Or a centralized file could be made specifying which product versions correspond to which projects, allowing the engineer to change all product versions for a given set of projects in one go. Or one could create a universal template of IaC code that’s applicable to a broad swath of use cases and quickly build out a full set of YAML manifests and Terraform files using a small file that specifies what components will be needed and where to authenticate to the server.

    I’m not aware of any tool that does this, but I think tree-sitter gets me much of the way there. If I can use it to parse any given file into a context aware tree, I would then need to make a script that combines the shared features of many context trees and splits the unique features out into small variable files. Then a script to merge them back together as needed. And something to manage file system structure, such as whether to parse every file individually or to strategically merge some sets so you have one variable file that produces multiple output YAML.

    Sorry I’m brainstorming at you, just trying to figure out if the tool I’m envisioning is even feasible. Seems like it is, but I’ll have to figure out how to use tree-sitter CLI before I begin.


  • This is super cool. Watched the talks from Max Brunsfeld, surprised this has been around since 2018 and I haven’t heard of it.

    I actually tried some complex parsing myself lately. I had a bunch of YAML I needed to maintain for various deployments in a CI/CD system. I really wanted to have one YAML template to generate the files, plus a file for each project with unique elements to be injected into that project’s generated YAML.

    Probably was more of an indication that we needed to clean up the overrides we were putting on top of our Helm charts, but I wanted a way to generate our lengthy override files without having to manually keep track of where the differences were between projects. And maybe even stage changes to deployment files for when new product versions are released.

    This is exciting. I’m going to look into Tree Sitter more and maybe try to contact the dev. It seems like it does everything I’m looking for, just for an entirely different use case.



  • I finally got fed up with my Windows machine and upon seeing symptoms of motherboard failure, I’ve ordered all the parts for a new rig and intend on installing Linux as my primary OS.

    Haven’t decided on a distro yet. I’m a DevOps engineer with a few passion projects, so I plan on setting up a couple of kubernetes clusters where I can play. I do all the usual things (word processing, gaming, web browsing, multimedia, etc), plus some AI stuff (stable diffusion, local LLMs, OpenCV). Ideally don’t want to have to fuss with drivers too much, but I don’t mind getting my hands dirty every now and then.

    Is Chimera the kind of distro I should be looking at, or should I pick something else for my first go at full-time Linux?






  • I’m planning on getting the iPhone 15, now that they’re switching to USB C. My last iPhone was an iPhone 4.

    To be honest, some of the cultish gimmicks have swayed me. The “in group” mentality of having the right color of text messages. The ability to send videos that aren’t garbage quality. The ease of having shared photo albums with people in my family who also have iPhones. I know these are mostly underhanded tactics from Apple to make their product a status symbol, but I’ve grown tired of being on the outside. Still, I’m keeping my Android as a second line for various reasons.

    There are a few hardware components that made me consider spending the money on an iPhone. The biggest one is the Lidar sensor. I don’t know of any other phone that gives you the ability to combine Lidar and camera technology to create full color 3D models of your surroundings. I can’t wait to 3D print my cat.