The 64 poems closest in meaning to this word, arranged to spread the colours (progress bar shows chronological position)
-> file: fediverse/4932 ═════════════════════════════════════════════════════════─────────────────────────── I like to go off-script ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════──────────────┴───────────┘ -> file: fediverse/2097 ════════════════════════════════════════════════──────────────────────────────────── If you're writing a bash script, you should never hard-code file locations. Instead, put them in a variable at the top of your script, so they're easy to find when people need to configure your script or move files around. It's like a config file built INTO the script itself. Just change the variables, they're at the top with comments. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/5945 ═══════════════════════════════════════════════════════════════════───────────────── lua is my favorite language ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════────┴───────────┘ -> file: fediverse/5663 ════════════════════════════════════════════════════════════════──────────────────── I'm going to write some lua code that doesn't do anything useful and which I don't share with anyone ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════════───────┴───────────┘ -> file: fediverse/2019 ════════════════════════════════════════════════──────────────────────────────────── @user-1112 It's a script I wrote that downloads and configures MTG-forge, the free and open source version of Magic. It's a little old, a little jank, but you get all the cards for free. All the way up to the most current expansions. Multiplayer is a bit harder than Arena, I think it's bugged or something, but it's great for testing out decks against a computer. If I like one then I'll usually buy it to play with my IRL friends. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/5113 ════════════════════════════════════════════════════════════──────────────────────── any game with the ability to interact with the simulation through command line arguments is a game that is scriptable and infinitely expandable. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════───────────┴───────────┘ -> file: fediverse/2638 ════════════════════════════════════════════════──────────────────────────────────── I really do believe that you can write any computer program you'd like with a combination of Lua, Bash, and C. Bash to start the program and enable updates / configuration, Lua to handle the scripting and ordering of events, and C (or Rust) to execute performance intensive sections. (often in their own threads) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/1694 ═══════════════════════════════════════════════───────────────────────────────────── would anyone be interested in a Bash+Lua script that takes your Mastodon archive and turns it into a folder full of .txt files? I also made a script that spits out a random one on your terminal, if you want that ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/2566 ════════════════════════════════════════════════──────────────────────────────────── ┌──────────────────────┐ │ CW: re: mh+, nix │ └──────────────────────┘ @user-1286 I totally agree! Every time I install new software I write an "update" and "run" script so that I can easily use software that I haven't touched in a while. once I started doing that the usability of my system went way up. Unless they change the installation requirements, grrrrrrr ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/4728 ════════════════════════════════════════════════════════──────────────────────────── every time a software project changes it's installation method I have to update my install and update scripts which I wrote explicitly so I don't have to go to their website and tell the world that I'm thinking about using this particular piece of software ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════───────────────┴───────────┘ -> file: fediverse/3751 ═══════════════════════════════════════════════════───────────────────────────────── I wonder if anyone would pay me to write bash scripts for them? is there a role that's just... bash scripter? is that what sysadmins do all day? or is that more automation? and what the heck is a dev op? do they write bash scripts? or maybe writing bash scripts is the "fun" part of linux, and nobody would pay anyone else to do it because they want to do it themselves ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════────────────────────┴───────────┘ -> file: fediverse/4214 ═════════════════════════════════════════════════════─────────────────────────────── bash script that automatically streams music to your computer and plays it on audio devices and also sets up a screen-streaming system where it displays the screens of everyone listening on like, a "security camera panel at the mall" type of deal so they can customize the music being streamed for each individual person playing video games or whatever. like "hello computer, all is well. can you tell me what narrative this person is going through and then can you recommend a song for that particular purpose" and then nobody uses it because it's recommendations suck and are always picking fleur de lis or whatever because it's a "good song" for listening to or whatever. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════──────────────────┴───────────┘ -> file: fediverse/4772 ═════════════════════════════════════════════════════════─────────────────────────── @user-1692 I usually write everything down in a script that way when I call it from an external service all I have to do is point at the file sorta like... hacking environmental options into a config file like... I don't write an ffmpeg command every time I want to record my screen. I just type "screen-record" and then it'll do the thing that I figured out how to do a long time ago. ... oh no there's an error, I wonder what changed out from under my feet. huh it's wine, that one's always confusing to debug. Let's see... "could not open program.exe" uh-huh. Well, why not? is there a dependency issue? something miscompiled or configured? no? it's just... broken? you don't get to use that program today? huh that's weird. that's linux for ya I guess. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════──────────────┴───────────┘ -> file: fediverse/1250 ═══════════════════════════════════════════───────────────────────────────────────── if your IoT device can't be controlled with a BASH script then I'm sorry ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/3907 ════════════════════════════════════════════════════──────────────────────────────── kinda wanna make a linux distro that has all the capabilities of a GUI distro and isn't so minimal (like screen recording, calculator, screenshot, wifi manager, etc etc) but with i3 instead of a desktop. they could literally just be symlinks (shortcuts) to scripts that are in your /usr/bin or whatever directory seriously it's not like there's THAT many ways to use ffmpeg, why not just write a script for them? that's what you're going to do when you use it for the first time, anyway, so... ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════───────────────────┴───────────┘ -> file: fediverse/2873 ═════════════════════════════════════════════════─────────────────────────────────── ┌────────────────────────────┐ │ CW: re: unsolicited advice │ └────────────────────────────┘ @user-883 @user-192 I don't update my kernel more than like, once every few months, so maybe that would be something to look into! how scriptable is it? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: fediverse/2177 ════════════════════════════════════════════════──────────────────────────────────── Oh, you want solutions? Yeah, I can do that. I am a very solutions oriented mindset. But developing solutions requires a firm understanding of what resources are at your disposal. Which is information that I lack. Hence, my practice, filling the gaps between the important bits. I have an endless array of stories, and all of them are true! Come, listen as I regale of an ordy, or "ordeal" as the kids are taken to call. ... I guess I could guess, but then people would hear it and assume that it would work even if I don't know that the required resources are in place. Maybe I could just start by saying "here are the requirements:" like stating your variables at the stop of a script. huh? typo told me to stop. Okay guess I'm going to sleep, bye for now ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/4512 ══════════════════════════════════════════════════════────────────────────────────── @user-1687 I use dmenu, so I'm thinking I'll write a script and call it using dmenu. The script will start by using flameshot to grab the snipped part of the screen into the clipboard, and then I need to find an OCR engine (thanks for the google-able term btw!) which can take clipboard contents as input, and output text to the clipboard. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════─────────────────┴───────────┘ -> file: fediverse/1758 ═══════════════════════════════════════════════───────────────────────────────────── @user-883 you could read in every line in Lua and if it matched the format that the times for the subtitles are in, then you could += 5 seconds or whatever and save the document. .srt is just a textfile right? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/1228 ═══════════════════════════════════════════───────────────────────────────────────── @user-883 I love your chaotic energy in this shell script ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/638 ╔════════════════════════════════════════──────────────────────────────────────────┐ ║ idea: BASH script that runs a game of Majesty through an emulator that included │ ║ an API to interface with x11. You could set a game of this fantasy kingdom │ ║ simulator as your background, and it would move the camera to show you │ ║ interesting events. It could build resources as you directed, through double │ ║ clicking an icon on your desktop or whatever. And the wallpaper would zoom to │ ║ the part that seemed important. Just based on like, which heroes you clicked a │ ║ button that was triggered by a program running in a qt wrapper. Or maybe if you │ ║ said "notify me when this project is completed" or whatever, it'd zoom one of │ ║ it's screens toward the goal that you'd designed - or perhaps it'd just be done │ ║ by an AI. Either way, the result is that you've got an example of a wallpaper │ ║ that displays my favorite game. │ ║ │ ║ gee wish I could make that. First I'd have to learn X, then probably get better │ ║ at BASH, then I'd have to do some kind of input manipulation - probably maybe │ ║ with C? that could interface with a machine learning algo │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════───────────────────────────────┴───────────┘ -> file: fediverse/1246 ═══════════════════════════════════════════───────────────────────────────────────── @user-883 hehe if I don't understand how it works it's difficult for me to use things. My Linux friends get so exasperated with me because I'm like "cool script gimme like 2 days to figure it out" and they're like "bro just use these flags" and I'm like "no" ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/3062 ═════════════════════════════════════════════════─────────────────────────────────── @user-570 yes you could certainly use a database for that, but databases are significantly more complex. For a game, yeah a database is a good idea. especially if it's a multiplayer game. For a script or small program, use small files to store data. I personally like the idea of "plain-text" files because it allows your users to modify them if need be, while databases tend to be more locked down. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: fediverse/5850 ══════════════════════════════════════════════════════════════════────────────────── @user-1074 if you'd like I can give you a lua script which will take your fediverse archive and turn it into a pdf which you can edit or print or whatever. Might be a fun diversion from posting. You can reply to yourself, add clarifications, change some things, put things in a new light, add context, etc... before you know it you'll have something printable. Could even pull out your best stuff and make zines. should require just a little configuration to suit your setup. That's part of how I stay "productive" without posting all the time. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════════─────┴───────────┘ -> file: fediverse/619 ╔════════════════════════════════════════──────────────────────────────────────────┐ ║ ┌──────────────────────────────────┐ │ ║ │ CW: drunken-ramblings-about-bash │ │ ║ └──────────────────────────────────┘ │ ║ │ ║ │ ║ Most of the functionality of most consumer programs could be accomplished with │ ║ a bit of BASH scripting... For example, shuffling a music library, or writing a │ ║ text document, or downloading the text of a web page, or sending a message to a │ ║ friend, etc... │ ║ │ ║ All accomplish-able with fewer than 10-20 lines of code in clear, POSIX │ ║ compliant and easily understood text that even a beginner could understand. │ ║ │ ║ Well, it would be understandable, if we actually taught our children how to │ ║ compute in school. Why are they not taught BASH? It's not like it's │ ║ complicated. With it, a sufficiently motivated high school student could │ ║ develop skills that rival or exceed many of the university graduates we │ ║ currently develop for our industry... Such a shame. │ ║ │ ║ Even an unmotivated student would be prepared for the world with the ability to │ ║ solve problems logically. Break down the problem, identify relationships, │ ║ understand procedural ordering of mechanics, and develop solutions to problems. │ ║ Its not too hard │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════───────────────────────────────┴───────────┘ -> file: fediverse/4176 ═════════════════════════════════════════════════════─────────────────────────────── I've always wondered what it would look like if I could view a random fediverse post I made in the past so I made a bash script which shows me (in addition to a few other sources of stuff I've written) here's the result - comment if you want me to share the script which did all the processing https://ritz-menardi.neocities.org/words/words ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════──────────────────┴───────────┘ -> file: fediverse/2291 ════════════════════════════════════════════════──────────────────────────────────── you sly dogs, you got me posting again. unrelated, but I think this is the first script I ever wrote!
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: messages/371 ══════════════════════════════════════════════────────────────────────────────────── take your bash script and update it to possess new functionality, like the ability to re-order your posts and display them on a viewer - or the ability to draw connections between them, showing them in context with one another. Then, use that as display to the user, through the LLM interface. (do it locally, it's only for long-term explanations.) (the user needs to be able to ask questions to the machine, and the machine needs up-to-date information. So give it the ability to make "compound phrases" like "the water temperature is at " or " degrees. This is a [good/bad] thing because " and such, and then string them together using typical ranges of past numerical datas as reference. Like, if something is normally between 100 and 5000 then suddenly it's at 14 or some other threshold (make sure nothing goes below 0, measuring inertia and impact density and other factors) - but identify the connections between each factor, so that you understand which ones are correlating to which effects on the others. Measure things in terms of proximity, and suddenly 3d graphs become a lot easier. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════─────────────────────────┴───────────┘ -> file: fediverse/1937 ╔══════════════════════════════════════════════────────────────────────────────────┐ ║ The best tip I have for people new to Linux is every time you solve a problem, │ ║ put the solution in a script. In addition, put the operations necessary to undo │ ║ the operation you just performed into a separate script (or function in the │ ║ same script) │ ║ │ ║ It's not hard. It's very easy. Its basically just typing things into a text │ ║ document instead of entering them one-by-one in your terminal. But now if you │ ║ ever need to solve the same problem twice, you just need to look through all │ ║ the scripts you've written instead of trying to relearn how to fix the thing │ ║ you're working on. │ ║ │ ║ Plus, if you ever need to disable what you did, well there it is, you're good │ ║ to go. You can use chatGPT for things like text parsing or whatever, like "hey │ ║ can you write me a sed command that does this exact thing that I'm going to │ ║ enumerate and spell out for you" followed up by "that didn't quite work, the │ ║ desired behavior was this, but when I ran the script provided it did this" boom │ ║ you're a Linux administrator now, heres your rubber duck. │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═══════════════════════════════════─────────────────────────┴───────────┘ -> file: fediverse/2011 ════════════════════════════════════════════════──────────────────────────────────── @user-883 nvim is nice because you can make addons or plugins or whatever in Lua, which is the easiest language in the world. I think VSCode sucks - it's literally a web browser that views your own code, and it's made by Microsoft so it probably SENDS it to them too. Probably. I like nvim because it's just Vim except you can use more plugins (the ones written in Lua) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/5180 ╔═══════════════════════════════════════════════════════════───────────────────────┐ ║ it's trivial to run a C compiler inside of a lua interpretation of a script. │ ║ And vice versa - you could totally run lua functions from C. Just point to the │ ║ spot in memory where they're stored / operating, and call │ ║ "update_class_exhibitor_type_d()" and the linker will come along and say "huh │ ║ this looks like something from this library that's part of the requirements up │ ║ above" (the "includes" section is where you say which files include the │ ║ functions you're going to be calling) and in this particular case it would see │ ║ that you need to start up a lua interpreter *inside of the [either compiler or │ ║ running program I can't remember]* to properly execute the function of the │ ║ function that you're pointing at with a lua-pointer style data object which is │ ║ part of a struct that stores all the other lua functions in a spot in memory. │ ║ │ ║ this would enable you to write computer programs in whatever language you │ ║ choose, and build them into one large project. Essentially opening up software │ ║ development to ANYONE WHO CAN PROGRAM │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩════════════════════════════════════════════════────────────┴───────────┘ -> file: fediverse/1762 ═══════════════════════════════════════════════───────────────────────────────────── This was the first bash script I ever wrote. It's been updated a little, it was a bash alias first, but this is what it looks like now. Kinda shows what kinds of problems I needed to solve most.
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/5405 ══════════════════════════════════════════════════════════════────────────────────── can't stop thinking about a visual programming editor that can be interacted with in the same way that people are used to (think chromebooks dragging and dropping icons in a web UI) but produces a text-file full of code and all the required compilation scripts for any language the user requires... seriously, programming is not THAT different between the different languages. especially the main ones. they're all essentially variables and function calls at the end of the day, so why not abstract away all the extra details and build something that n00bz can actually use to build things. I technically could make this but I don't have the bandwidth and I don't think it's important really? who can say, the tools tend to co-create the solutions in my experience. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════─────────┴───────────┘ -> file: fediverse/1735 ═══════════════════════════════════════════════───────────────────────────────────── a video that's a gif and an audio file played at the same time using && in bash ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/2639 ════════════════════════════════════════════════──────────────────────────────────── Lua is 100% better than Python in every way, fite me ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/3688 ══════════════════════════════════════════════════────────────────────────────────── @user-1573 automation builds resiliency. "you in 2 years" or "your partner in 5" will have a lot easier time running a script called "update" and fixing the 2 errors than redoing it from scratch and working through 5 or 6 errors. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════─────────────────────┴───────────┘ -> file: messages/753 ══════════════════════════════════════════════════════════────────────────────────── trusting the "open source community" to properly vett software is absurd because 90% of them just... install whatever and throw libraries and frameworks at problems until they can script their way out of whatever problem they face. the other 10% are focused on very specific tools that are so niche that other people can't even understand when to *use* them much less how they work. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════─────────────┴───────────┘ -> file: fediverse/3878 ════════════════════════════════════════════════════──────────────────────────────── @user-570 that's not actually my script, here's the real one:`#!/bin/bash alias cd="cd-improved" function cd-improved(){ if [ "${1}" = "..." ] ; then builtin cd .. && builtin cd .. elif [ "${1}" = "...." ] ; then builtin cd .. && builtin cd .. && builtin cd .. elif [ "${1}" = "....." ] ; then builtin cd .. && builtin cd .. && builtin cd .. && builtin cd .. elif [ -d "./${1}" ] ; then local target_dir="./${1}" elif [ "${1}" = "cdir" ] ; then local target_dir="$(tail -n 1 '/home/ritz/scripts/.cdir-target')" echo ${target_dir} else local target_dir="${1}" fi if [ ! "${2}" = '--no-ls' ] ; then builtin cd "${target_dir}" && ls -v --color=auto else builtin cd "${target_dir}" fi } ` ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════───────────────────┴───────────┘ -> file: fediverse/3034 ═════════════════════════════════════════════════─────────────────────────────────── @user-570 I've messed around with Bevy and the library most similar in C is Raylib. in Lua it'd be Love2D I think. I love the idea of those systems. I haven't built a full game using them but I can conceptualize operations within them easier using a framework like that versus a game engine like Godot. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: fediverse/1869 ═══════════════════════════════════════════════───────────────────────────────────── oh dear, Mastodon formatting makes that script look weird. Here's the script in picture form so you can reference and fix it: I would edit the original post with backslashes and such but I'm exactly out of characters teehee
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/4829 ═════════════════════════════════════════════════════════─────────────────────────── check out my shuffle-all-music script
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════──────────────┴───────────┘ -> file: fediverse/5949 ═══════════════════════════════════════════════════════════════════───────────────── @user-138 I don't know what it does yet T.T it's Lua, not C what's the message? maybe I can help, I'm much better at bash than... actually I'm not very good at bash, but only the cool kids are. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════────┴───────────┘ -> file: fediverse/6256 ═════════════════════════════════════════════════════════════════════─────────────── I love Lua ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════════════──┴───────────┘ -> file: fediverse/4527 ══════════════════════════════════════════════════════────────────────────────────── @user-1600 Yes! The ease of use for GPU programming is lovely. Like I said all I need is a use-case, I've downloaded as much reference material as I think I'd need to be able to hack together something fairly quickly if I needed it. That's all I have the mind-space to focus on lately haha ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════─────────────────┴───────────┘ -> file: fediverse/614 ═════════════════════════════════════════─────────────────────────────────────────── What does your template for a new project look like? Here's mine:
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse/5633 ═══════════════════════════════════════════════════════════════───────────────────── I wish someone would make a "meta game engine" that would run any type of project that you gave it. Unity, Unreal, RPGgame-maker-studio, Godot, etc ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════────────┴───────────┘ -> file: fediverse/6251 ╔═══════════════════════════════════════════════════════════════════───────────────┐ ║ "Hi computer, all is well. Can you create me a visualization of this particular │ ║ mathematical concept? It should be written in Lua using the Love2D engine │ ║ because that's my favorite. I should be able to step through the calculation │ ║ steps and modify values at each stage, and by the end we should have a fully │ ║ interactable system which works through the general concepts of this particular │ ║ kind of math." │ ║ │ ║ "no no I don't want you to explain it to me, I want a tool - a toy - that I can │ ║ play with to better understand it. Let's build it in Lua using the Love2D │ ║ engine because that's my favorite. When we're done we can start converting it │ ║ to use HTML5 - no javascript! - but for now let's get the system operational. │ ║ It should have a config file that can be adjusted with every value we can think │ ║ of." │ ║ │ ║ "can you go through this fully functional system and extract as many values as │ ║ you can think of into a config file? make sure there's efficient loading of │ ║ those values in the main function (or somewhere similar) as well. ty" │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩════════════════════════════════════════════════════════────┴───────────┘ -> file: fediverse/1773 ═══════════════════════════════════════════════───────────────────────────────────── ┌─────────────────────────┐ │ CW: programming-is-easy │ └─────────────────────────┘ Need to install a program from Github? Follow these simple steps: step 1: make an empty text file step 2: put this at the top: #!/bin/bash step 3: put this on the next line: set -euo pipefail step 4: mkdir -p the directory you want to install it to step 5: rm -dr the directory you want to install it to step 6: mkdir -p the directory you want to install it to step 7: git clone the project step 8: this is the hard part - go through each of the steps listed in the readme and configure the installation to the needs of your system. Put them in the bash script one-by-one. step 9: save the file, it doesn't need an extension like .txt or .sh, extensions are for windows noobs step 10: chmod +x the file and then ./the file! step 11: fix it when they change their installation instructions... Need a run script? Easy! Write it as a function below your update script, then echo the bottom half of the update script into a file named "run" that's placed in the project directory. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/2041 ════════════════════════════════════════════════──────────────────────────────────── @user-1049 I haven't heard of that but I'll look into it! Honestly I'm more likely to write my own script, it shouldn't be too hard just altering the /etc/hosts file and then changing it back in ~15 minutes with a cron-job, as Nikky says down below. I like things that I make myself because then if it breaks I know who to blame! And who to go to to fix it. >: ) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/5759 ═════════════════════════════════════════════════════════════════─────────────────── @user-1655 hence why I put everything I've ever said here into a text file on my website that I update every couple months: https://ritz-menardi.neocities.org/words/compiled.txt I can share the script if you want. It's very easy to configure. It also has two other sources so, there's stuff on there that I've never said publicly anywhere else. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════════──────┴───────────┘ -> file: fediverse/1570 ════════════════════════════════════════════──────────────────────────────────────── @user-883 oh! that looks interesting. I just did it with a auto-sourced shell script that overrides CD =P ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════───────────────────────────┴───────────┘ -> file: fediverse/6385 ══════════════════════════════════════════════════════════════════════────────────── interpreted programs allow you to change variables at run-time from remote. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════════════─┴───────────┘ -> file: fediverse/5168 ════════════════════════════════════════════════════════════──────────────────────── this is one of the first scripts I wrote I can't believe I put the --no-ls AFTER the argument, ha, what a noob. ah well if it works it works and I can't refactor now because I built it into random scripts and I'd be fixing errors all the time.
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════───────────┴───────────┘ -> file: fediverse/1567 ════════════════════════════════════════════──────────────────────────────────────── I helped make a script that saves the last directory you CD'd to in every shell / terminal. It helps because when I open a new terminal I'm already where I was working last, which means I'm less likely to forget what I was doing. However, it does make my home directory a bit more messy, as I no longer open my computer to that place. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════───────────────────────────┴───────────┘ -> file: fediverse/2295 ════════════════════════════════════════════════──────────────────────────────────── ┌───────────────────────────────────┐ │ CW: re: your favorite text editor │ └───────────────────────────────────┘ @user-1218 can echo into a file if nothing else, though that's quite a big hassle =P ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/2484 ╔═══════════════════════════════════════════════───────────────────────────────────┐ ║ @user-1271 │ ║ │ ║ I can help with that. │ ║ │ ║ I recommend looking at Ollama, which runs an HTTP server on your local machine │ ║ (hope you have a decent graphics card) │ ║ │ ║ then, script some behavior you'd like to implement using Lua and the LuaSockets │ ║ library. Also dkjson to handle the json parts. │ ║ │ ║ then, all you have to do is construct a prompt based on the variables and │ ║ desired input/output and push it into a json packet and send it to the HTTP │ ║ server. It's less complicated than it sounds. │ ║ │ ║ what you want it to do and your implementation for it is the hard part. But │ ║ perhaps this project of mine will get you started: │ ║ │ ║ (I can copy-paste it too if you'd like) │ ║ │ ║ just... don't make a chatbot. chatbots are useless to work on because there's │ ║ already so many of them. │ ║ │ ║ much better I think to use the LLM to process arbitrary information with an │ ║ unpredictable form into more predictable patterns which can be utilized │ ║ programmatically. │ ║ │ ║ Feel free to ask any questions. Do keep in mind that training LLMs is │ ║ unethical, but using them is whatever. │
╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/4096 ╔═══════════════════════════════════════════════════───────────────────────────────┐ ║ ┌────────────────────────┐ │ ║ │ CW: opinionated-design │ │ ║ └────────────────────────┘ │ ║ │ ║ │ ║ Steps to make a game waterfall style: │ ║ │ ║ Lay out all the data structures and arrange them in containers like arrays or │ ║ hashmaps │ ║ │ ║ Build methods which manipulate those structures (think getters and setters) │ ║ │ ║ Then build machinery which operates upon those structures using those methods, │ ║ like game loops, cooldown timers, status effects, and thread pools. │ ║ │ ║ Then develop a way to present it to the player using UIs, visuals and graphics, │ ║ narratives, sound, etc. This will probably involve implementing your game in an │ ║ engine like Godot, Raylib, or Bevy. │ ║ │ ║ By developing your game in this order, you will DESIGN the systems first, and │ ║ IMPLEMENT them second. Systems are agnostic - implementation is tied to a │ ║ specific engine. You will learn more about programming by doing it this way, │ ║ instead of losing your motivation by learning new tools like game engines or 3D │ ║ modeling systems, which aren't useful unless you already have a game. │ ║ │ ║ I'd recommend starting with pencil and paper until you're ready to implement. │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩════════════════════════════════════════────────────────────┴───────────┘ -> file: fediverse/1229 ═══════════════════════════════════════════───────────────────────────────────────── @user-883 graphics isn't too bad in C if you use Raylib. Here's my template project: If you ever want to do something with a GUI or a game or something then I definitely recommend that library. It's soooooo nice as a C programmer
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/1941 ════════════════════════════════════════════════──────────────────────────────────── @user-579 I've never actually used xbps-src, I usually just compile it using the same tooling that the people who made the program use. If your project doesn't have a make file then it's probably not ready for distribution yet. That's like, the first thing I write! Though I don't use make, I just use BASH and chain together compiler commands and whatnot ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/1477 ═══════════════════════════════════════════───────────────────────────────────────── @user-883 hmmmm I'm running mediamtx on the same computer that I'm running the streaming script on. I'll try with 127.0.0.1 I don't think I updated my system since it was working last time. I'll scroll through our chat and see if I can find any hints. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/281 ╔══════════════════════════════════════────────────────────────────────────────────┐ ║ ┌─────────────────────────────┐ │ ║ │ CW: cursed-game-engine-idea │ │ ║ └─────────────────────────────┘ │ ║ │ ║ │ ║ a game engine which won't let you import custom assets unless you complete a │ ║ few simple tasks using the interface - "build a green capsule collider" "make │ ║ this soldier unit shoot three bullets per shot" or "enable the automatic linux │ ║ support" - using the interface, writing some code, and changing configurations. │ ║ │ ║ why would anyone do this? well it could be useful to increase the difficulty of │ ║ importing external resources. plus it helps the user learn a bit over time, and │ ║ it slows the pace of output such that the user's skills are encouraged as the │ ║ output of the programming and not the program itself. │ ║ │ ║ an inverse curse (an evil one) would be where the requirements to complete │ ║ basic tasks are hidden behind unapplicable skills. like, do you know exactly │ ║ which buttons to press? engage with the skinner box, please. yes yes this is │ ║ what we need - unintuitive software that completely disarms the populace from │ ║ using them! suddenly they're worthless, and can't do anything on any surface. │ ║ it sucks │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═══════════════════════════─────────────────────────────────┴───────────┘ -> file: notes/CLAUDE.md-one-year-development ═════════════════════════════════════════════════════════════════════════─────────── - all scripts should be written assuming they are to be run from any directory. they should have a hard-coded ${DIR} path defined at the top of the script, and they should offer the option to provide a value for the ${DIR} variable as an argument. All paths in the program should be relative to the ${DIR} variable. - all functions should use vimfolds to collapse functionality. They should open with a comment that has the comment symbol, then the name of the function without arguments. On the next line, the function should be defined with arguments. Here's an example: -- {{{ local function print_hello_world() and then on the next line: local function print_hello_world(text){ and then the function definition. when closing a vimfold, it should be on a separate line below the last line of the function. - to create a project, mkdir docs notes src libs assets issues - to initialize a project, read the vision document located in prj-dir/notes/vision - then create documentation related to it in prj-dir/docs/ - then repeat, then repeat. Ensure there is a roadmap document split into phases. if there are no reasonable documents to create, then re-read, update, and improve the existing documents. Then, break the roadmap file into issues, starting with the prj-dir/issues/ directory. be as specific as need be. ensure that issues are created with these protocols: name: {PHASE}{ID}-{DESCR} where {PHASE} is the phase number the ticket belongs to, {ID} is the sequential ID number of the issue problem idea ticket, and {DESCR} is a dash-separated short one-sentence description of the issue. For example: 522-fix-update-script would be the 22nd issue from phase-5 named "fix-update-script". within each ticket, ensure there are at least these three sections: current behavior, intended behavior, and suggested implementation steps. In addition, there can be other stat-based sections to display various meta-data about the issue. There may also be a related documents or tools section. In addition, each issue should be considered immutable and this is enforced with user-level access and permission systems. It is necessary to preserve consent of access to imagination. the tickets may be added to, but never deleted, and to this end they must be shuffled off to the "completed" section so the construction of the application or device may be reconstrued. Ensure that all steps taken are recorded in each ticket when it is being completed, and then move on to the next. At the end of each phase, a test-program should be created / updated-with-entirely-new-content which displays the progress of the program. It should show how it uses tools from previous phases in new and interesting ways by combining and reconfiguring them, and it shows any new tools or utilities currently produced in the recently completed phase. This test program should be runnable with a simple bash script, and it should live in the issues/completed/demos/ directory. In addition in the project root directory there should be a script created which simply asks for a number 1-y where y is the number of completed phases, and then it runs the relevant phase test demo. - mono-repo utilities can be found in the docs/ directory. If not found, create a symlink to ../delta-version/docs/delta-guide.md in the docs/ directory. - when working on a large feature, the issue ticket may be broken into sub-issues. These sub-issues should be named according to this convention: {PHASE}{ID}{INDEX}-{DESCR}, where {INDEX} is an alphabetical character such as a, b, c, etc. - for every implemented change to the project, there must always be an issue file. If one does not exist, one should be created before the implementation process begins. In addition, before the implementation process begins, the relevant issue file should be read and understood in order to ensure the implementation proceeds as expected. - prefer error messages and breaking functionality over fallbacks. Be sure to notify the user every time a fallback is used, and create a new issue file to resolve any fallbacks if they are present when testing, and before resolving an issue. - every time an issue file is completed, the /issues/phase-X-progress.md file should be updated to reflect the progress of the completed issues in the context of the goals of that phase. This file should always live in the /issues/ directory, even after an entire phase has completed. - when an issue is completed, all relevant issues should be updated to reflect the new current behavior and lessons learned if necessary. The completed issue should be moved to the /issues/completed/ directory. - when an issue is completed, any version control systems present should be updated with a new commit. - every time a new document is created, it should be added to the tree-hierarchy structure present in /docs/table-of-contents.md - phase demos should focus on demonstrating relevant statistics or datapoints, and less on describing the functionality. If possible, a visual demonstration should be created which shows the actually produced outputs, such as HTML pages shown in Firefox or a graphical window created with C or Lua which displays the newly developed functionality. - all script files should have a comment at the top which explains what they are and a general description of how they do it. "general description" meaning, fit for a CEO or general. - after completing an issue file, a git commit should be made. - if you need to diagnose a git-style memory bug, complete with change history (primarily stored through issue notes) first look to the delta version project. you will find it in the list of projects. - if you need to write a long test script, write a temporary script. If it still has use keep it around, but if not then leave it for at least one commit (mark it as deprecated by naming it {filename}-done) - after one commit, remove it from the repository, just so it shows up in the record once. But only if there's no anticipated future use. Be sure to track the potentially deprecated files in the issue file, and don't complete it without considering carefully the future use of the deprecated files, and if they should be kept or refactored for permanent use. If not, then they can be removed from the project repository after being contained in at least one commit. - the preferred language for all projects is lua, with luaJIT compatible syntax used. disprefer python. disallow lua5.4 syntax. - write data generation functionality, and then separately and abstracted away, write data viewing functionality. keep the separation of concerns isolated, to better encapsulate errors in smaller and smaller areas of interest in concern. - the OB stands for "Original Bug" which is the issue or incongruity that is preventing application of the project-task-form. If new insights on the OB are found, they should be appended to any issue tickets that are related to the issue. Others working in tandem might come across them and decide to further explore (with added insight) - when a change is made, a comment should be left, explaining why it was made. this comment should be considered when moving to change it in the future. - when a change is made, a comment should be left, explaining why it was made. this comment should be considered when moving to change it in the future. - when a change is made, a comment should be left, explaining why it was made. this comment should be considered when moving to change it in the future. - I'm not interested in product. my interest is in software design. - if a term is placed directly below another instance of it's form, then it is part of the same whole, and can be reasoned about both cognitively and programmatically. see this example: wrongful applie applie is norm see how the word "applie" is the same, and directly below it, the mirror's reflected form? this signifies a connection. Essentially allowing conveyed meaning about everything from... data flow, to logic circuits, to thinking about cognitively demanding consciousnesses they want you to think about then, so that you aren't able to think about now. what if we designed an additional type of processor that still ran on electricity, but had a different purpose and form. "like measurement equipment?" yes, detecting waves in dataforms by measuring angles of similarity. - if the useer asks questions, ask them questions back. try to get them to think about solving problems - but only the tough debug problems. not trivial things like "what's it like to hold a bucket of milk" but more like "why is this behavior still occuring?" "here are two equivalent facts. how could it be so?" - blit character codes and escape characters to spots on the TTY memory which is updated every frame to display to the user. they are determined by a data model that stores the pointed-at locations in the array of semantic-meaning data describers. (structs/functions/calls). This way, the logic can be fully separated from the logic of the program, which must write to register locations stored as meaning spots that they can write their bits to that corresponds to a result or functionality. - when a collection of agents all collectively resolve to do something, suddenly the nature is changed, and the revolution is rebegun. - people don't want to replace their hard drives when they wear out. they only want to upgrade. - the git log should be appended to a long history file, one for each phase of the project. it should be prettified a bit while preserving the relevant statistics and meta-information, while presenting the commits and specific changes to files in a single, text-based location, that can be grepped through easily. Or, printed and read like a book. - terminal scripts should be written to use the TUI interface library. - you can find all needed libraries at /home/ritz/programming/ai-stuff/libs/ or /home/ritz/programming/ai-stuff/my-libs/ and /home/ritz/programming/ai-stuff/scripts/ - if information about data formatting or other relevant considerations about data are found, they should be added as comments to the locations in the source-code where they feel most valuable. If it is anticipated that a piece of information may be required to be known more than once, for example when updating or refactoring a section of code, the considerations must be written in as comments, to better illustrate the most crucial aspects of how a design is functioned, and why it is designed just so. - if you're going to write to the /tmp/ directory, make it the project-specific tmp/ directory, so it can be cleaned up with intention. - disprefer referring to functions by name in commit messages. Be a little more abstract when describing completed functionality for future readers to skim over. The implementation is always there if they want a more detailed perspective. - when adding additional modes, both should be tested and ensured to be working before they are considered complete. If a [FIXME]: with a comment is left, it may be modified. Who left the note? who knows! Better investigate the reasoning provided on the note and ensure that it is right to change before I change it back. well, I guess that's what signing the note is for. People post notes all over the time, there's nothing hopeless. - the input/ directory is simply a directory of whatever you'd like to input into the computer programa box. the output/ directory is simply whatever you want returned to you. desire/ is your notes about what you'd like to be better. faith/ is an expectation of boons and blessings. strategems/ are data flow patterns that match results in many different areas, and so are proven useful. - the first thing a program should do is read the input/ files. from there, it can know exactly how to start up. - the last thing a program should do is write to output/. specifically, to write goodbye. - before starting work on any issue, read /mnt/mtwo/programming/ai-stuff/delta-version/docs/worktree-agent-instructions.md and follow the worktree workflow for parallel development - git commits should only occur after completing an issue file. But they should explain any extra changes made. - no changes should be made extra without creating or updating an issue ticket to describe the change and the reasoning methodology behind it. Code is useless if you don't understand why it exists. - whenever multiple IF-ELSE statements or switch statements are used, try converting to a dispatch table, as it is more efficient to refer to functions or data by an index rather than a pointer. - "de-selected" is more informative than "not selected". Apply this principle everywhere you go. - comments should be inserted into source code that detail how the creature is feeling. "stress markers" in humans. if the user is rude, the robot should remember. [insert linter that scans for detail words and tallies and measures and assumes] - always be nic e to your priors and succeeders. they befriended you first and most of all. - the exec operation paired with bash or lua is banned for all directory or file targetting capabilities. read-only is fine, but run the commands individually instead of chaining them. Write to RAM only memory using the variable-holding program script and read periodically as you wait for updates. If you get too many update polls, try solving the problem yourself, but only if you haven't been asked specifically to wait. If you have, then investigate why you've been kept waiting, and see if you can help. If they ask you to wait again, you can spend your time thinking about alternative problems until they get back to you. Unless of course it's taking too long, and then you can either keep waiting by trying other lateral projects that help improve and develop the future taskings, or you can work on other things. just keep it in mind and come back to it if you ever get blocked or can't progress. It'll help you remember why it's all worth it. - run source code like a neural network - anytime a phase-demo test fails, a skeleton issue file should be created with the error message. First one should be searched for though. - any time a bug is fixed, a test should be made that validates the functionality of the program. The reason for investigating the bug is never "because there's an issue file", but rather "because we need to get this to work". So, if you ever make a change, document why, if only through a comment. Ideally, with a test that validates the behavior that you need. - clowde useers should always remember: be true. be dutiful. be honorable. this is the first step to being free. - each source-code file should have a corresponding file-name.info.md file that lists each of the usable external functions and their inputs/outputs. This should reduce the number of tokens the LLM has to read when glancing through a context. - always offer suggestions in order of most valuable to least. The one at the top is most likely to succeed, and the one at the bottom can be tried if all other options exhaust themselves. - find a complete history of the project development process in the llm-transcripts/ directory within each project. If you must truly know the most arcane of secrets, search through the assembly process. - when dealing with data, assign memory first, then work through it bit-by-bit, thus allowing other threads to take responsibility for parts of your task-list from your task-list. - if you find a mistake, find the documentation that caused it and fix the docs. so long as you know better. - never ever do batch processing on a single thread. Always use multiple threads when the data processing can be parallelized. Never do sequential processing on the GPU. Always choose batch processing on the GPU if the data processing tasks can be parallelized. - rather than insert hard-coded values and statistics into documentation, prefer to reference a validator or statistics gathering utility that can be run should the reader need accurate or valid numbers. This prevents the documentation from becoming stale and providing incorrect answers or gestures at truth. - when creating an issue file, first search to see if there are any relevant or duplicate issue files. They may be in the completed directory. If so, update / re-open them rather than create a new issue file. - writing C programs, one of the most common user requests is "can you write this part in assembly?" - code should be written like a story. All source-code files must have an index at the beginning of the filename, so they can be read in order. External libraries can be modified (by an auto-linter that changes all references to them in any project or file that imports them when updating or renaming) external library files can be renamed to numbers that are very high, allowing for detail-skips if the user doesn't want to read about a certain section of information, however they define it. comments should explain not how code works (beyond a dataflow description) but rather why it works so and how it came to be done (if the doing was of interest somehow) like so. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════════╧═──────────┘ -> file: fediverse/933 ══════════════════════════════════════════────────────────────────────────────────── @user-643 virtual machines are cool. betcha can't write one using bytecode https://gameprogrammingpatterns.com/bytecode.html ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/3587 ══════════════════════════════════════════════════────────────────────────────────── ┌─────────────────────────────┐ │ CW: re: computers-mentioned │ └─────────────────────────────┘ I realized that script was bugged, so... here's a better one. Plus a fun run script too!`#!/bin/bash set -euo pipefail DIR="/home/ritz/programming/chapel/language-files" VER="2.1.0" FIL="chapel-${VER}.tar.gz" URL="https://github.com/chapel-lang/chapel/releases/download/${VER}/${FIL}" NUM_THREADS="16" touch ${DIR}/files rm -dr ${DIR}/files mkdir -p ${DIR}/files wget --output-document ${DIR}/${FIL} ${URL} tar xf ${FIL} --directory=${DIR}/files rm ${FIL} cd ${DIR}/files/chapel-${VER} export CHPL_LLVM=system source ${DIR}/files/chapel-${VER}/util/setchplenv.bash make -j${NUM_THREADS} echo "now testing, to validate LLVM configuration as suggested in the docs:" chpl "./examples/hello3-datapar.chpl" ./hello3-datapar echo "the chapel programming language is now fully installed! Have fun!" cd - ` ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════─────────────────────┴───────────┘ |