The 64 poems closest in meaning to this word, arranged to spread the colours (progress bar shows chronological position)
-> file: fediverse/43 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 now base zero is interesting because it means there's NO BUCKETS AT ALL, which means that any numbers you try to stuff nowhere don't overflow to anywhere. Meaning each number is it's atomic value, and represented with a different character. So 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G, H, I, etc etc until we run out of symbols, in which case we'd need to start making more. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/40 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 so what you're saying is I need to come up with an easier way to change bases? Or at least a way to digit shift in a different base than what you currently have. Sounds complicated. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/633 ═════════════════════════════════════════─────────────────────────────────────────── @user-192 the neat thing about BASH is that it's the glue that holds all your other code together. Write libraries in C and call them with BASH - accomplish broader tasks that are easier to co-create. That's why I like it - it's not the most important, but it's quite beneficial I think _^ ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: notes/read-later ══════════════────────────────────────────────────────────────────────────────────── https://www.redblobgames.com/grids/hexagons/#basics ┌─────────┐ ┌───────────┐ │ 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/44 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 So, you're saying the tally system doesn't make sense, and instead what I suggested for base zero is instead base 1? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: notes/environment-variables ══════────────────────────────────────────────────────────────────────────────────── To edit environment variables: ~/.bashrc is for variables only accessible by the user. /etc/profile is for variables accessible by all users. /etc/environment is for variables accessible by anyone. ┌─────────┐ ┌───────────┐ │ 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/38 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 ideally you'd convert to an arbitrary base (in this case 9) and shift from there, but shifting two places might work. idk I haven't thought about it. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/2879 ═════════════════════════════════════════════════─────────────────────────────────── ┌────────────────────────┐ │ CW: re: tech info-dump │ └────────────────────────┘ @user-1370 I love this a lot! I want to put function pointers in a "matrix architecture array" and make them point to different functions at different points in the program. I bet you could even point them at each other, so like if M and Y then point at N, A, Y or something. this is really cool I like stuff like this tomorrow I'll take pictures of something similar I'm working on! I abandoned it tho hehe anyway remind me if I forget!! ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: fediverse/45 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 Question - how do you do those cool superscript and subscript notations? Also: I don't think base 1 falls apart with negative exponents, for example consider 1^-1 ----- it would evaluate to 1/10 in this system, which is not 1/1. Another example, 1^-3 would evaluate to 1/1110, which seems accurate to me. As for 0^0, I guess I think it does equal 1? Bear with me: for any number n raised to an exponent e, you can write it like this: 1 * n * n * n ... with as many "* n"s as you have n's. for example: 1 * 3 * 3 * 3 = 9 or 1 * 5 * 5 * 5 * 5 * 5 = 625 in each case there's 3 or 5 instances of "* n" tacked onto the end. I don't know the math notation for that. now, when you raise something to the power of zero, it looks like this: 1 because there's zero "* n"s added to the end. For negative exponents of course you divide instead of multiply, which is why it ends up looking like a fraction. So, it makes sense to me that 0 ^ 0 would equal 1, because it'd look like this: 1 while 0^1 would be 1 * 0 ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/3750 ═══════════════════════════════════════════════════───────────────────────────────── @user-1218 so true d=(T.T)z ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════────────────────────┴───────────┘ -> file: fediverse/5398 ╔═════════════════════════════════════════════════════════════─────────────────────┐ ║ @user-192 │ ║ │ ║ step one, doesn't it suck how we have to mount drives │ ║ │ ║ part two, gee I sure wish networking was easier than building packets in C and │ ║ pushing them over IP/TCP │ ║ │ ║ section three, what if every user logged in to the same system of environments │ ║ and kept all their data to themselves while contributing compute to various │ ║ valuable processing processes like windfall calculations and population density │ ║ administrations │ ║ │ ║ book four, I wish I didn't have to type -p now when telling my computer │ ║ goodnight, I should write a script that solves that in like 4 lines two of │ ║ which are empty │ ║ │ ║ what about five, where they talk about sourcing functions? │ ║ │ ║ I like to use recursion - calling my own functions inside of my own bash scripts │ ║ │ ║ "something something modularity" okay docker bro like I'd really package up │ ║ anything that I'm working on │ ║ │ ║ I mean really who really cares about how I set up the infrastructure of my │ ║ system. it's gonna be unique to each person's memory of setting it up anyway, │ ║ so why bother with "standardization" │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩══════════════════════════════════════════════════──────────┴───────────┘ -> file: fediverse/4578 ═══════════════════════════════════════════════════════───────────────────────────── ┌────────────────────────────────────┐ │ CW: common-cognitohazard-mentioned │ └────────────────────────────────────┘ Roko's basilisk isn't a serpent it's a tree ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════────────────────┴───────────┘ -> file: fediverse/42 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 I always conceptualized bases as "the amount of numbers you can stuff into a bucket before you spill over to the next bucket". Call it a holdover from learning binary a bit younger than most people would consider normal... Anyway with base 2 it makes sense. Put one thing in the bucket, and if there's something there then it spills over. But if the bucket is ALWAYS full, as in base 1, then you'd have to do a tally system like you said: essentially counting from 0, then adding one to the end making 10, then 110 for two, and 1110 for three, and 11110 for four, etcetera. The reason you leave 0 at the end is because zero is a number and must still be represented as a tally - it just uses a different symbol for our human interpretation. Zeroes deserve respect in base 1 just the same as any other number! zero rights are human rights... no that doesn't quite work, zero rights are number rights? nevermind that joke is stupid (continued) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/3837 ═══════════════════════════════════════════════════───────────────────────────────── @user-1602 swap rust and BASH and I agree, teehee! ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════────────────────────┴───────────┘ -> file: fediverse/296 ═══════════════════════════════════════───────────────────────────────────────────── ┌──────────────────────┐ │ CW: re: mathematics │ └──────────────────────┘ @user-211 I drew this picture recently and I don't really get it anymore but I think it's about placing your perspective at the origin and viewing every direction as a different dimension? side note, but if zero has a positive and negative side, do you think infinity has a positive and negative side as well?
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════────────────────────────────────┴───────────┘ -> file: fediverse/1080 ══════════════════════════════════════════────────────────────────────────────────── here's an idea - when typing a command in a BASH terminal if you push up it inserts the previous command (as expected) but if you hold SHIFT and push up it inserts the first argument in your previous command. Then, you can push up again (while still holding shift) to go one command further back, and again to get the third previous command. Then, here's the cool part, if you are holding shift and you push left/right, then it moves from the first argument of the previous command to the second, third, fourth argument. example:`ls -ltr ~/pictures/my-art/ feh [shift+up inserts -ltr] feh -ltr [hmmm that's not right] feh -ltr [shift+right switches to 2nd argument] feh ~/pictures/my-art/ [ah that's better] ` would be even cooler if it highlighted it in your previous terminal output so you could visually connect your current input with the previous input ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/46 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 neat thanks when I said 1-1 = 1/10 I meant 1/1 in decimal except the denominator is in base 1 meaning it's represented as 10 (since 10 in base 1 equals 1 in base 10. Or pretty much any other base.) I'm trying to figure out why 00 is undefined. There's a lot of math notation in that wikipedia article and I'm working through it bit by bit... I feel like there's a bug in the code of the universe and I'm trying to understand it. Like... why is dividing by zero undefined? That seems like a bug to me. ┌─────────┐ ┌───────────┐ │ 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/3686 ══════════════════════════════════════════════════────────────────────────────────── @user-1573 I do, but git is pretty complex! I can do some pretty basic stuff but I'd like more experience with the more complicated aspects. I currently use Void Linux and Gentoo, and I was thinking of installing NixOS on my raspberry pi. I'll let you know when I end up doing that ^_^ ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════─────────────────────┴───────────┘ -> file: fediverse/36 ═════════════════════════════════─────────────────────────────────────────────────── consider: x = 13 / 3, what is x? step 1: translate 13 into base 3 step 2: digit shift once to the right step 3: store underflow as remainder step 3: translate back to base 10 x is 4 remainder 1 ┌─────────┐ ┌───────────┐ │ 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: notes/call-notes ═════════════════─────────────────────────────────────────────────────────────────── c++ core database sql client dbc (propr etary software) good job on not being overscoped agree on the fact that both supplies (wood, iron) are important and food level 1-10 is a little zone with a farm a supply depot where you can take food and iron and wood and such you can make units to patrol (like a tutorial) at level 10 you'll get out and see there's other places (farm, mine, lumber yard) you can capture from enemy faction which will increase how much you can increase in your capital each mine you capture increases the amount you can recruit in your capital these supplies you can craft with through professions to make gear and supplies defeating a mine boss for example can drop things like elemental tokens you can use to summon soldier golems https://discordapp.com/channels/@me/985095940941697024/988136528305868850 https://wowdl.net/fichiers/clients https://model-changing.net/ https://github.com/iThorgrim-Hub?tab=repositories first step is to clean the server of *everything* - no npcs, no spells, no items, no nothin' ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════──────────────────────────────────────────────────────┴───────────┘ -> file: fediverse/950 ══════════════════════════════════════════────────────────────────────────────────── @user-192 multidimensional arrays aren't too hard, it gets a bit more complicated when you need multidimensional *slices*, but once you get your head around it it comes easier. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/2738 ═════════════════════════════════════════════════─────────────────────────────────── @user-1340 BTM - it's like TOP, but... bottom https://github.com/ClementTsang/bottom ┌─────────┐ ┌───────────┐ │ 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/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: notes/division-by-zero ══════════════════════════════════────────────────────────────────────────────────── --{{{ introduction When division is explained at the elementary arithmetic level, it is often considered as splitting a set of objects into equal parts. As an example, consider having ten cookies, and these cookies are to be distributed equally to five people at a table. Each person would receive 10 / 5 = 2 cookies. Similarly, if there are ten cookies, and only one person at the table, that person would receive 10 / 1 = 10 cookies. So, for dividing by zero, what is the number of cookies that each person receives when 10 cookies are evenly distributed among 0 people at a table? Certain words can be pinpointed in the question to highlight the problem. The problem with this question is the "when". There is no way to distribute 10 cookies to nobody. Therefore, 10 / 0 —at least in elementary arithmetic—is said to be either meaningless or undefined. - wikipedia, division by zero, 7-12-23 alright I have several problems with this. I like the idea of dividing cookies, but I disagree with their conclusions. So dividing by integers works as they say, but division by zero is a little different - they say "the problem with this question is 'when'" when in reality 'when' is the same for this question as it is for any of the others. Obviously, zero is just a number. Why would this be any different? The computational actions necessary to complete this statement all occur at the same time, because they are by definition immutable. You cannot change any equation, you only generate new ones. Okay so here's my thinking. To answer the question "what is the number of cookies that each person receives when 10 cookies are evenly distributed among 0 people at a table?" we simply have to answer the question. "How many cookies do I get?" well, none, because you weren't at the table. In fact nobody was at the table, so the result is that nobody got zero cookies. You might even say you have a remainder of 10 cookies, as none of them were distributed. 10 / 0 = 0 remainder 10 ^^^ that's how I think it should be. I have an algorithmic justification, and excuse me as I don't have a mathematical proof or anything. Math was never my strong suit, there's too many symbols and strange names for obvious operations that get in the way of the abstract big picture. ahem... abstract: Given: x = 13 / 3 what is x? step 1: convert 13 to base 3 step 2: digit shift right by 1 step 3: convert back to binary --}}} --{{{ step 1: v start with the binary number 1101 which is 13 in decimal. To convert to a base 3 number, \___________________. \ | first start with the Least Significant Bit (LSB) which is 1. So our base-3 number starts with 0001. v Next, move to the next bit: 1101 ^-----It's a zero so we can skip it. Which means our base 3 number remains unchanged as "0001" v Next, move to the third bit: 1101 ^-----It's a 1, which evaluates to 4 in decimal, meaning we should add 4 to our base 3 number base 3 4 in base 3 is "11", which means we 0001 <----- 1 in decimal should have a base 3 number of "12" now. +0011 <----- 4 in decimal =0012 <----- 5 in decimal \_________ 2? -> yes, base 3 remember? Next, move to the fourth and final bit: 1101 ^ --it's a 1, which evaluates to 8 in 0012-----.____________ decimal. 8 in decimal is "22" in +0022-----. \ base 3, which means we need to =0111 \ T---- add "22" and "12" in base 3 \__________/ to get our final number of 13. Which should evaluate step 2: to 0111 in base 3. .____. bit shift |0111| to the right, |>>>>| |0011|--->1 underflow .----. meaning the base 3 number is now 0011 with an underflow (remainder) of 1 step 3: convert back to binary, meaning 0011 in base-3 becomes 4 in decimal or 0100 in binary. Store the underflow as the remainder. ================================================================================ okay that's great and all, but what does this have to do with dividing by zero? great question, me. I have two questions I want to pose to you: 1. what happens when trying to divide by 1 with this algorithm? - you convert to base 1 \ wait hang on base 1? Sounds made up... Well, its not! or at least if it is, then I'm the one who made it up so... yeah | okayyy how does base 1 work? \ glad you asked. --}}} --{{{ bases --}}} --{{{ decimal (base 10) --}}} --{{{ binary (base 2) --}}} --{{{ digit shifting --}}} --{{{ bases higher than 2 and not 10 --}}} --{{{ base 1? base 0? --}}} ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════─────────────────────────────────────┴───────────┘ -> file: fediverse/6126 ════════════════════════════════════════════════════════════════════──────────────── @user-1900 if you can do ethernet instead of usb, this might work: https://pine64.com/product/star64-model-a-8gb-single-board-computer/ it's got two ethernet ports.
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════════════───┴───────────┘ -> file: fediverse/3151 ╔════════════════════════════════════════════════──────────────────────────────────┐ ║ ┌───────────────────────────┐ │ ║ │ CW: re: cursing-mentioned │ │ ║ └───────────────────────────┘ │ ║ │ ║ │ ║ @user-1461 │ ║ │ ║ I'm best at Bash. │ ║ │ ║ I'm most capable with Lua. │ ║ │ ║ My favorite is C. │ ║ │ ║ I'm not a good programmer, I think too hard. Massive systems are too large for │ ║ me. I like laying out data, whether that be by files and programs in Bash, │ ║ arrays and tables in Lua, or memory and datatypes in C, I like to think about │ ║ how programs are constructed. │ ║ │ ║ Which functions point to which piles of numbers? what do they do when they get │ ║ there? │ ║ │ ║ I think I'm better as an artist. But I can do systems administration quite well │ ║ (with Bash and a guiding hand telling me what and why to do) │ ║ │ ║ ... though I kinda suck at technical sysadmin, like Gentoo. There's too much │ ║ terminology - why is data too complicated? Just use data! │ ║ │ ║ anyway. I sound opinionated, but I listen closely to good arguments and quickly │ ║ change my tune when I am incorrected. I am a team player, and I firmly believe │ ║ that sometimes a bad plan executed with cohesion and precision is better than │ ║ the best play executed too late and with too little strength. │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/3325 ══════════════════════════════════════════════════────────────────────────────────── @user-246 so... if infinity is the inverse of zero, then when inverted would infinity also be zero? if so, it follows that the [spectrum/dimension/cardinality/direction] that the inversion is occurring upon might also have other steps inbetween. Unless it's a binary thing, like "top and bottom" or "present and absent". I wonder what those steps might look like? Clearly, since infinity minus infinity does not equal zero, the steps inbetween (if they exist) would not be numbers. If they were, then one single step from inverting infinity would be 1, but I don't believe that would be true. On the topic of rings, the axioms would be things like "a ring is a ring if you can trace a continuous line with a length of infinity across it's ring-like-surface"? I wonder what the inverse of a length is... Or perhaps you cannot invert a length, as to do so would give you a length of zero (in this particular ring-like-case) ┌─────────┐ ┌───────────┐ │ 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_boost/65 ◀═╦════════════════[BOOST]═════════════════──────────────────────────────────────┐ ║ ┌──────────────────────────────────────────────────────────────────────────┐ │ ║ │ bash-errors │ │ ║ │ │ │ ║ │ Permalink: https://wizardzines.com/comics/bash-errors/ │ │ ║ └──────────────────────────────────────────────────────────────────────────┘ │ ╠─────────┐ ┌───────────┤ ║ similar │ chronological │ different │ ╚═════════╧══════════════════════════════──────────────────────────┴───────────┴─▶ -> file: notes/ideal-raleigh-structure ═══════════════════════════════════════════════════════════───────────────────────── with a baseline directory structure, a measure of order and semblance of direction and purpose enable three. next, of course, is the final of 1 ┌─────────┐ ┌───────────┐ │ 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/1320 ═══════════════════════════════════════════───────────────────────────────────────── ┌───────────────────────────────────────────────────────┐ │ CW: cursing-mentioned-programming-languages-mentioned │ └───────────────────────────────────────────────────────┘ BASH with the syntax/semantics of LUA and the performance of C would probably be the perfect language, IMHO procrastinating again, damnit ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/6107 ════════════════════════════════════════════════════════════════════──────────────── commanding a coding agent to write bash is a lot different than telling it to write a systems analysize. one is "hey can you examine this repository and make a note somewhere on a todo-list or whatever that there needs to be a bugfix in relation to the options setting input translation recommendation algorithm matchbox field because when I click on it the program crashes" and the other is like "okay now put the box over there. great now drag it a little bit closer. okay now take the refluxinator and adjust the bamboozlewhap to account of brass-terminatrix-incorporated and strip out the question-mark-eyes" wait actually neither of them is like that okay the bash one is like: "okay yeah do it. sure. yeah okay. yes, but we should put them at this location: [loc]. ummm it still has this error message. it still says the same error. okay now it says this, I don't think it's gonna work so let's try this other thing." ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════════════───┴───────────┘ -> file: messages/258 ═══════════════════════════════════════════───────────────────────────────────────── Give different regions different starting cosmetics @legiontd ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/3588 ══════════════════════════════════════════════════────────────────────────────────── ┌─────────────────────────────┐ │ CW: re: computers-mentioned │ └─────────────────────────────┘ `#!/bin/bash set -euo pipefail CHAPEL_DIR="/home/ritz/programming/chapel" COMPILER_DIR="${CHAPEL_DIR}/language-files/files/chapel-2.1.0" PROJECT_DIR="${CHAPEL_DIR}/projects/practice" SOURCE_DIR="${PROJECT_DIR}/src" clear cd "${COMPILER_DIR}" > /dev/null export CHPL_LLVM=system source "${COMPILER_DIR}/util/setchplenv.bash" > /dev/null cd - > /dev/null cd "${PROJECT_DIR}" > /dev/null echo "compiling..." chpl "${SOURCE_DIR}/main.chpl" clear ./main cd - > /dev/null ` you should update the directories at the top yourself, of course. And give it a cursory glance to make sure it works on your setup. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════─────────────────────┴───────────┘ -> file: fediverse/39 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 That makes sense to me. I'll have to think about how to generalize that, hmmmm... It would only work for numbers that have even square roots right? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/3482 ══════════════════════════════════════════════════────────────────────────────────── ┌───────────────────────┐ │ CW: cursing-mentioned │ └───────────────────────┘ "Alright I'm not great with syntax so I'm going to write it in pseudocode first, and then if you'd like I can show you how I work through implementing the syntax. But first - do you want a robust solution, a quick solution, or a rapidly deployed and cheap solution?" using this trick you can pretend to be competent in any programming language, except maybe ancient ones like Fortran or strange ones like lisps or Haskell if they ask you to use a framework or something tho you're kinda boned because you need to know which functions to call and how to initialize context and such. When using a framework, the boilerplate is the code, which is why frameworks suck "*don't call yourself a programmer*" fuck off ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════─────────────────────┴───────────┘ -> file: fediverse/1283 ═══════════════════════════════════════════───────────────────────────────────────── @user-203 best shape for a state to be ^_^ ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/5950 ═══════════════════════════════════════════════════════════════════───────────────── @user-138 wao I'm a cool kid *_^* Hmmmm I googled "Network: file exists" and got this link: https://access.redhat.com/solutions/1340713 my understanding of that is that maybe you're creating static routes, and for some reason you're trying to create one that already exists? Maybe there's something in your .bashrc config, if the file appears when you open a terminal, or perhaps if it appears randomly then maybe there's a service or something that's doing it. Did you say it stopped when you swapped sim cards? ... on your phone? that's bizzare... Maybe you were trying to create an ip route (whatever that is) that was pointing to the same ip address as your phone? and when you swapped sims it changed the ip address? If it appears again, maybe try setting static IP addresses for both the phone and the computer in your router settings and see if that fixes it. Though if you've ever seen the error while out and about at like, a coffee shop or library or whatever, then that wouldn't apply since the router is only for home base... ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════────┴───────────┘ -> file: fediverse/1386 ═══════════════════════════════════════════───────────────────────────────────────── @user-883 ffmpeg is an example of a swiss army knife and I prefer fixed-blade knives *gandalf voice* keep it simple, keep it safe plus if something goes wrong and ffmpeg isn't supported anymore then you need to redo a lot of your BASH infrastructure. However if only one of the tools failed, then it wouldn't be so hard. And if every tool had a man page with like, 3 pages tops, then it wouldn't be too hard to figure out which one to use. ... though I guess there's a benefit to having a larger tool that can store lots of functionality so you can say "I know I need ffmpeg, but I'm not sure how" versus "I know I need some random obscure package that I have no way of knowing, so I'll google it and give a tech company data about what specific thing I'm looking for" do one thing and do it well, but they never said how big the thing must be. ┌─────────┐ ┌───────────┐ │ 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/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/303 ═══════════════════════════════════════───────────────────────────────────────────── ┌──────────────────────┐ │ CW: re: mathematics │ └──────────────────────┘ @user-211 if the 2nd dimension is i, then what would be the third? the real number line, the complex plane, and the ____ space? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════────────────────────────────────┴───────────┘ -> file: fediverse/5928 ═══════════════════════════════════════════════════════════════════───────────────── what the heck is yocto and why do I need to learn how to use it to create a custom linux distribution for embedded devices?? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════────┴───────────┘ -> file: fediverse/346 ════════════════════════════════════════──────────────────────────────────────────── @user-246 or is it 010010 which == 18 in binary? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════───────────────────────────────┴───────────┘ -> file: fediverse/37 ═════════════════════════════════─────────────────────────────────────────────────── This would normally just be a weird way to divide except it allows you to divide by zero, which is kinda cool. ┌─────────┐ ┌───────────┐ │ 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/634 ═════════════════════════════════════════─────────────────────────────────────────── @user-192 I'd agree with that. it's not designed for performance, not really. Mostly ubiquity, which is it's strength. As long as something can be compiled to a binary, BASH can execute it. That's why it's good, for accomplishing *diverse* tasks that you cannot have the capacity to program yourself. Scientific computations or cultural approximations, things that are beyond your intuitive understanding as a human on this earth, but which compel and align your thinking. I'm sure someone could create a more intuitive or accessible syntax, but syntax isn't the point - the capabilities, what you can do with it, has always defined the purpose of programming paradigms. And BASH is (currently) at the forefront of it's niche, the "terminal" language that handles "command line" applications. Powershell is good, yes... but it's not as good as BASH. Neither is Fish or... the one that starts with a z? zfs? something like that. The acronyms are hard to keep straight sometimes. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse/775 ═════════════════════════════════════════─────────────────────────────────────────── @user-192 It's totally simple! It's just structs, void pointers, function pointers, arrays, mallocs, and oh boy I think I see what you mean ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse/583 ═════════════════════════════════════════─────────────────────────────────────────── I love how the gnu C documentation lists this particular page as number 6.66
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse_boost/298 ◀═╦════════════════════════[BOOST]══════════════════════════─────────────────────┐ ║ ┌──────────────────────────────────────────────────────────────────────────┐ │ ║ │ Define an area as 'safe' and use it as an anchor │ │ ║ │ │ │ ║ │ #ObliqueStrategies │ │ ║ └──────────────────────────────────────────────────────────────────────────┘ │ ╠─────────┐ ┌───────────┤ ║ similar │ chronological │ different │ ╚═════════╧═══════════════════════════════════════════════─────────┴───────────┴─▶ -> file: fediverse/4474 ═════════════════════════════════════════════════════─────────────────────────────── @user-1268 if you know how to program in C this is a good resource for building networking applications: https://beej.us/guide/bgnet/ ┌─────────┐ ┌───────────┐ │ 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: fediverse/276 ═══════════════════════════════════════───────────────────────────────────────────── ┌──────────────────────┐ │ CW: mathematics │ └──────────────────────┘ why the heck would -11/2 be defined but 1/0 not be? seems kinda sus to me. maybe it's just... not reducible, the same way that 5+i isn't? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════────────────────────────────────┴───────────┘ -> file: fediverse/6244 ═════════════════════════════════════════════════════════════════════─────────────── numbers are one-dimensional numbers and vectors are multi-dimensional numbers, fight me ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════════════──┴───────────┘ -> file: fediverse/4827 ═════════════════════════════════════════════════════════─────────────────────────── @user-1352 I run Nix on one of my laptops and I really enjoy it : ) ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════──────────────┴───────────┘ -> file: fediverse/3748 ═══════════════════════════════════════════════════───────────────────────────────── @user-203 I've been trying to get it to work with raylib but I'm having difficulties with the C interoperability T.T https://www.raylib.com ┌─────────┐ ┌───────────┐ │ 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_boost/55 ◀═╦═══════════════[BOOST]═════════════════───────────────────────────────────────┐ ║ ┌──────────────────────────────────────────────────────────────────────────┐ │ ║ │ Haysber's possibility space. │ │ ║ │ │ │ ║ │ If this flame is beautiful, ⭐ or boost this post to improve its chances │ │ ║ │ for future breedings. │ │ ║ │ #artBot │ │ ║ └──────────────────────────────────────────────────────────────────────────┘ │ ╠─────────┐ ┌───────────┤ ║ similar │ chronological │ different │ ╚═════════╧═════════════════════════════───────────────────────────┴───────────┴─▶ |