=== ANCHOR POEM ===
══════════════════════════════════════════════════════─────────────────────────────
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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
=== SIMILARITY RANKED ===
--- #1 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 │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #2 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 │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #3 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 │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #4 fediverse/5998 ---
════════════════════════════════════════════════════════════════════════════───────
I should conjure x11 from source. I bet they have a lot of useful utilitudes
that I can configure. I wonder if Gentoo can do it for me? nahhhhh I'll just
write my own script, it'll only take me like a couple hours per piece of
software
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #5 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 │
╘══════───┴╧───────────────────────────────────────────────────────────────────────────┘
--- #6 messages/264 ---
═════════════════════════════════════════════════──────────────────────────────────
Don't write self documenting code! Force people to read the documentation so
they know how to use it
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════─────────────────────────────────┘
--- #7 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 │
╘═════════╧╧═════════════════════════════════════════──────────────────────────────────┘
--- #8 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 │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #9 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #10 fediverse/6345 ---
═══════════════════════════════════════════════════════════════════════════════────
anytime I want to do something new on my computer, I write a bash script.
if I forgot how to do the thing, I spend time meandering about my
file-directory-system. If I don't find it, that's okay, because all I have to
do is keep looking until I stumble upon it.
kinda makes me wish I had an LLM who managed the operating system and named
files with long-and-descriptive titles while taking in as context the general
eternal prompt stored in ~/.claude.md or wherever
--> /home/ritz/programs/cloud-code/
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════════───┘
--- #11 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 │
╘═════════╧╧═══════════════════════════════════════════────────────────────────────────┘
--- #12 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 │
╘═════════╧╧═════════════════════════════════════════════════════════════════──────────┘
--- #13 fediverse/5873 ---
═══════════════════════════════════════════════════════════════════════════────────
"the problem with linux is you have to spend part of the program just...
interacting with the filesystem. like, where is their /usr/bin file? (oh it's
called a directory over there, my bad) weird they put their config over here
(what language is that written in?) uhhhh I don't know much about localization
settings (-- two computers on a botnet --)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════───────┘
--- #14 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 │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #15 fediverse/582 ---
══════════════════════════════════════════════─────────────────────────────────────
@user-431
I made an alias that overwrites cd so I don't have to do this. The important
line is line 27, you could probably accomplish something similar like this:
alias cd="cd ${1} && ls -v --color=auto"
I also set it up so I can change more than one directory up using ... or ....
or .....
also I have a few shortcut scripts, cdir and qcd. cdir creates a quick way to
drop a bookmark wherever I'd like, while qcd can make permanent bookmarks.
Also qcd makes it so whenever I open a new terminal it opens to the last
directory I was in, which is nice if you need a new terminal to do something
in the current folder and you don't want to have to walk alllllllll the way
back.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #16 fediverse/2674 ---
═══════════════════════════════════════════════════════────────────────────────────
┌────────────────────────────────────────────────────────────────────┐
│ CW: factually-untrue,-that-never-happened.-this-is-just-gesturing. │
└────────────────────────────────────────────────────────────────────┘
the kind of friendship where you SSH into each other's systems and leave notes
for one another.
as soon as you find one you message the person who left it like "yoooo only
just found this lol" and they're like oooo yeah did you see the bash script I
wrote in that directory "yeah totally I used it on one of my video files just
now - cool filter!"
ahhhh reminds me of all the times hackers have hacked my permanently insecure
system and left me friendly messages like "hey I'm on your side" or "how's
life, friend? I hope it's going well." or "never forget; you are worth all the
fear" y'know cute things like that
oh. right. because leaving vulnerabilities like that can lead to threat actors
affecting your stuff. how lame.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #17 fediverse/3680 ---
═════════════════════════════════════════════════════════──────────────────────────
it's probably a good idea to write pseudocode, then real code, instead of
starting with real code, and bugfixing something incomplete and more difficult
to reason with.
unless you write real code easier than pseudocode. idk do what works for you.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #18 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 │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #19 fediverse/345 ---
═════════════════════════════════════════════──────────────────────────────────────
If you want to write object oriented C, just make one file per class and use
static functions for private methods.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #20 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #21 fediverse/5179 ---
════════════════════════════════════════════════════════════════════───────────────
why don't corporations let you write code in whatever language you want? it's
trivial to run a compiler or interpreter inside of another program.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #22 fediverse/1448 ---
═════════════════════════════════════════════════──────────────────────────────────
┌──────────────────────┐
│ CW: cursed │
└──────────────────────┘
that one option flag in the config file that you don't know what it does
because the documentation intentionally doesn't explain it very well (or
explains that it solves a use-case that like, nobody would ever have, and
certainly you don't have) that secretly sets a flag which sends your [redacted]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════─────────────────────────────────┘
--- #23 fediverse/2622 ---
═══════════════════════════════════════════════════════────────────────────────────
what kind of linux user are you if you don't even like reading terminal
output? it's USEFUL and INTERESTING information!
WHY ELSE WOULD THE PROGRAMMER OUTPUT IT???
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #24 fediverse/282 ---
════════════════════════════════════════════───────────────────────────────────────
@user-209
I think you're right. Every letter in the variable name is another byte the OS
has to keep track of, which was a bigger problem in the past than it is today
(when it's been made irrelevant)
it's interesting how habits persist though the conditions that caused them
have faded. like a personal reflection of the environment you learned in.
"A a = new a();" is much more concise and (crucially) you can fit more words
to the right.
"a + b = c; c -= 2; f_z.write(c); f_z.close();" could conceivably be written
on a single line if you have short variable names. and when you only have so
many lines...
glad we're not constrained by those things anymore. the skeletal code that we
look at daily is much clearer - scope is more important, and so it makes sense
to encourage a coding style that illustrates it. however I can't help but
think block formatting like this could be useful in some situations, such as
when you'd normally be compelled to write a function for an operation that
runs once or more.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════──────────────────────────────────────┘
--- #25 fediverse/1871 ---
══════════════════════════════════════════════════════─────────────────────────────
I think all software should have config files
or accept as many command line arguments as necessary to achieve all the
functionality of a config file without requiring a standardized setup
or accept a config file as a command line argument, to allow for multiple
different implementations
or whatever you can throw together in your spare time because software is
either open source or it hates you.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #26 fediverse/5765 ---
╔═════════════════════════════════════════════════════════════════════════─────────┐
║ Lua is the most fun language to write code in! The reason is because it's so │
║ simple, it distills programming down to it's basics, and there's very few │
║ surprises. Plus, you can use it like a bash script, meaning it's great for │
║ writing little utilities. │
║ │
║ why are we so attached to monolithic massive programs without shared memory? │
║ we could just write to the hard drive by file.io'ing a file and opening it │
║ later in a different program. What's the deal with databases, whatever │
║ happened to just loading things into a datastructure? │
║ │
║ oh, is your filesize too massive? what if we redundancied and abstracted and │
║ concentrically inter-co-acted and thus our familiar forces are defined. │
║ │
║ who are your true foes, in [checks notes] computer programming? um, probably │
║ complexity, probably logical incongruities, probably │
║ future-technical-debt-style incomprehensibilities, probably stuff that doesn't │
║ really have anything to do with the hardware but instead is mostly software. │
║ │
║ essentially, organization, but done on a whim. │
║ │
║ "but $?" │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧════════════════════════════════════════════════════════════╧═─────────┘
--- #27 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #28 fediverse/1034 ---
════════════════════════════════════════════════───────────────────────────────────
@user-192
be careful, recursion can cause stack overflows.
better to run function pointers from a loop. That way you can operate as long
as necessary. Just make sure you don't get in an infinite loop...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════──────────────────────────────────┘
--- #29 fediverse/3586 ---
═════════════════════════════════════════════════════════──────────────────────────
┌───────────────────────────┐
│ CW: programming-mentioned │
└───────────────────────────┘
I love programming!! Currently working on learning decentralized and GPU
oriented computing. It's lots of fun! Plus Bash is a great language, it's not
funky or hacky at all. Just a great language. Haha suuuuch a great thing to
play with.
But GPUs are legitimately cool, aside from Bash's purported funkiness /
hackiness. You can do all kinds of cool things at scale that just don't make
sense up close.
EDIT: oops sorry forgot the content warning
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #30 fediverse/1720 ---
╔═════════════════════════════════════════════════════─────────────────────────────┐
║ there's even websites online like Facebook or Twitter where you can share │
║ advice and various spells you've invented yourself (it's totally easy to do │
║ btw, I'll show you how) │
║ │
║ everyone's super friendly and anyone who's not isn't allowed to bother us. │
║ it's pretty neat. anyway no matter what it is, if something's bothering you │
║ about your computer, you can fix it. it's just a matter of reading through │
║ documentation. Ah, well, isn't it great to have a lot of free time that you │
║ don't know what to do with? │
║ │
║ Linux is pretty great, I gotta say. I honestly never really leave the command │
║ line - the text based buttons, I mean. I only use a mouse when I'm doing │
║ something with pictures (or playing a game like freecell or hearts) │
║ │
║ plus you can do things like sending raw packets of information to your friend │
║ who's on the other side of the country and they can use a secret key-code to │
║ decrypt it like checking the mail at a locked mailbox. │
║ │
║ anything you can imagine using the physical components of a computer, is │
║ possibleifyrts │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧══════════════════════════════════════════──────────────────┴──────────┘
--- #31 fediverse/6437 ---
═══════════════════════════════════════════════════════════════════════════════────
if I was writing a programming language, I'd name it C just to fuck with people
(great, now others can decide how it's known)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════════───┘
--- #32 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 │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #33 fediverse/3890 ---
═══════════════════════════════════════════════════════════────────────────────────
Linux is great! It can do anything you want it to.
Except that thing you want it to do. Why don't you go fix it? It's not hard,
all you have to do is run these configure files or operate this doohickey and
BAM suddenly you got apes writing machine gun regulation software
[I don't think those two things are related]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #34 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 │
╘═════════╧╧════════════════════════════════════════════════════════════════════───────┘
--- #35 fediverse/6382 ---
═══════════════════════════════════════════════════════════════════════════════────
cloud-code should automatically use git and record everything. If the user
wants to assign a different git, then it does that too.
-- stack overflow --
I used to think programs could only affect files in their directory. Then I
learned about Window's "My Games" directory, and then somewhere down the line
I'm thinking about how programs on Linux can just use absolute paths to random
places on your hard drive and it's like... wow, if only someone built basic
sandboxing into this /etc/ style environment
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════════───┘
--- #36 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 │
╘═════════╧╧══════════════════════════════════════════════════════─────────────────────┘
--- #37 fediverse/5851 ---
═══════════════════════════════════════════════════════════════════════════────────
@user-1074
I realized there might be a lot of configuration required. Oh well here ya go:
https://pastebin.com/x40VXQnH
https://pastebin.com/H5C4umWq
https://pastebin.com/dgDeS5Xu
https://pastebin.com/JCLrwF1z
https://pastebin.com/As6diaYc
https://pastebin.com/0vwzJUW4
https://pastebin.com/jPKeV7D1
dependencies are dkjson.lua (included), bash, lua, luahpdf, and libharu.
throw that all in a directory and point an AI tool at it. Or just do it
yourself and waste an hour or three on something a computer can do in 2
minutes.
good luck it looks like this when it's done:
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════───────┘
--- #38 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 │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #39 fediverse/1940 ---
══════════════════════════════════════════════════════─────────────────────────────
@user-579
Yeah if there isn't a package in the package manager XBPS then I usually just
install it from source. Which is ALSO something you can automate with a quick
and easy script! Just put all the notes from the README on Github or whatever
into a file named "update" and put that one level above the project directory!
For any installed program my file hierarchy usually looks like:
program-name
- run (script)
- update (script)
- files (directory to clone into)
- configs (point the program here)
I find that this kind of organization makes it MUCH easier to keep my packages
configured and installed as I'd like. Using a package manager is hard because
they're all specific per distro, but using this distro-agnostic approach
always seems to work better 9/10 times I find.
And if another program needs a library that you manually installed, just
symlink where it's looking to point to where you're installed! Or vice versa I
guess.
I use DWM so I don't have a desktop like KDE or anything like that
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #40 messages/755 ---
══════════════════════════════════════════════════════════════════─────────────────
Code editor that moves boxes by saving over the file with a lua script every
time you moved a function call around.
Oh lemme start at the beginning:
A code editor program that's like a text editor like Vim or Emacs. If you
don't know what those are, you should probably learn Emacs. Or Vim. Up to you.
Oh right so if you do know what those mean, here's the idea: the white space
matters. It's counted and tracked into variables in a LUA script which
interface with the Vim C keybindings.
"run a function within a c program or LUA script which calls a bash command
which opens Vim for example with a file you want to edit. Then, inside the
file, your spaces and tabs would WYSIWYG for the various food ads placed
about, and then you could very easily create game design knowledge.
WASD to move, alternatively hjkl
It would run a check every time the file updates and depending on how it
changed it'd mark certain variables which would change the website as the user
moved things around.
It's just files. And files are just bits. But files are a useful abstraction,
If you realize that "ugly hacking" should be industry standard.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════────────────────┘
--- #41 fediverse/707 ---
══════════════════════════════════════════════─────────────────────────────────────
@user-524
Sometimes when I feel overwhelmed with all the boilerplate I just start coding
and making stuff. Doesn't matter if it works, doesn't matter if it says /*
FIXME */ all over the place, doesn't matter if it includes header files that
don't exist yet, as long as you're hacking out the mechanics of whatever
operations you need to perform then you can figure the rest of that stuff out
later. The creative urge doesn't last forever, which is why projects get
abandoned, but with discipline you can keep bringing yourself back to fix all
the /* FIXME */'s and the compiler errors.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #42 fediverse/4218 ---
════════════════════════════════════════════════════════════───────────────────────
there are plenty of pieces of linux that are insecure in some way. Including
x11, if I remember correctly. It is purely convention to not abuse these
insecurities, and whenever you use someone else's binary software you trust
that they won't betray you in some way.
pre-built binaries are privacy violations and should be illegal. They are
security threats because the model they're built upon is necessarily insecure.
Computers will never be completely secure because of how they are built, and
so we should use locally compiled software and interpreted scripts.
Unless they're too long, or impossible to read. Who reads EULAs these days? At
least those are written in english.
maybe computers aren't worth it. Maybe computers will solve all our problems.
Who can say, maybe you should ask an oracle like me
though do remember that anything you hear can and will be used against you,
monkey's paw style. So maybe, like... don't? unless you're into magic or
schizophrenia or something
I wnt 2 be cute and tch cpus
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #43 fediverse/3577 ---
═════════════════════════════════════════════════════════──────────────────────────
┌─────────────────────────┐
│ CW: computers-mentioned │
└─────────────────────────┘
I love writing installation scripts like this!
If you want to install something on Linux but you have difficulty, talk to me
and I'll write you a script like this. I might even make it fancier.
This one installs a programming language that is useful for parallel computing
across multiple clusters of computers which could be useful if you want to
leverage multiple CPUs and GPUs with ease to compute tasks which are far
beyond a normal computer.
https://chapel-lang.org/download.html
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #44 fediverse/2252 ---
═══════════════════════════════════════════════════════────────────────────────────
┌──────────────────────┐
│ CW: tech-encryption │
└──────────────────────┘
users don't want to have to think about encryption keys.
they should be available for them if they need them, in like... a folder or
something somewhere, but they don't need to really know that they exist.
more friction like that keeps people away from being secure.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #45 messages/181 ---
═══════════════════════════════════════════════────────────────────────────────────
I know you don't want to hear this, but there is a chance that there will come
a time where your life depends on your ability to debug a computer without the
internet. To set up an SSH server. To install Linux. To program in C. To do
something else that I'm not prepared for... If StackOverflow didn't exist
because network connectivity has been lost, could you remember syntax? Maybe
it's a good idea to set up a local LLM that can answer basic questions about
technology. Maybe it's a good idea to set up on your parents computer, just in
case you have to hide out there for a couple months. Maybe it's a good idea to
download wikipedia, just in case.
If I need to use a mac, I'm screwed
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #46 messages/752 ---
══════════════════════════════════════════════════════════════════─────────────────
techbros really wanted to automate IRC so they didn't have to rely on the
community knowing and trusting them to remember the commands to make docker
containers for their react frameworks
and like... yeah I use chatGPT too, because that way I can get what I need
without bothering anyone (you aren't bothering people who get off on helping
others when you ask for help)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════────────────────┘
--- #47 fediverse/1616 ---
═════════════════════════════════════════════════════──────────────────────────────
they say learning Linux is hard, but it's the only free operating system so
really it's a question of learning Linux now, when you have time, or later,
when you're busy.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #48 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #49 messages/712 ---
════════════════════════════════════════════════════════════════───────────────────
Linux doesn't teach you to to build a perfect system. It's always breaking,
after all.
It teaches you to rehearse.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════──────────────────┘
--- #50 fediverse/4801 ---
═════════════════════════════════════════════════════════════════──────────────────
if you're got a large directory full of text files that you want to combine
into one single .txt or .pdf, let me know, I can hook you up with a mega file
so it's easier to search through or manage when archiving data or whatever the
heck else you wanna do with it
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════─────────────────┘
--- #51 fediverse/3469 ---
═════════════════════════════════════════════════════════──────────────────────────
you know how SSH password login is deprecated because the password needs to be
transmitted in cleartext or whatever?
what if we just... required two passwords?
the first initiates the conversation, and sets up an encrypted line. It
doesn't matter if anyone sees the first password because they'll get a new set
of encrypted keys, meaning each session automatically is encrypted in a
different, randomized way.
the second password is the one that actually authenticates you.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #52 fediverse/6120 ---
═════════════════════════════════════════════════════════════════════════════──────
┌──────────────────────┐
│ CW: AI-mentioned │
└──────────────────────┘
it's pretty easy to read an article or blog post, copy the text into a text
file, and forget about it.
you never know when you might want to use your computer's memories for
[entertainment during long dark nights, or for creating an AI buddy bot,
depending on how things go]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════════════─────┘
--- #53 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 │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #54 fediverse/6215 ---
══════════════════════════════════════════════════════════════════════════════─────
hi does anyone have any good resources on risc-v?
I found this:
https://dramforever.github.io/easyriscv/#shift-instructions
and this:
https://projectf.io/posts/riscv-cheat-sheet/
but I'm missing a big gap - specifically, how to move from syntax to
deployment. I need details on how to implement the software and get it running
on the actual hardware.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════════────┘
--- #55 fediverse/3123 ---
════════════════════════════════════════════════════════───────────────────────────
using linux requires constant maintenance and that's kind of unfair, actually.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #56 fediverse/3470 ---
═════════════════════════════════════════════════════════──────────────────────────
alternatively, when you initiate an SSH session it sends you a randomized
public key whose private key is the password that you need to login. By
decrypting the string of text it sent you and sending it back (plus the
password at the end or whatever) you can ensure secure authentication without
bothering with the passwordless keys which are wayyyyyy more trouble than
they're worth and lack the "something you know" authentication method.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #57 fediverse/3592 ---
═════════════════════════════════════════════════════════──────────────────────────
@user-1570
[meme of Mr Incredible from the Incredibles pointing at a table]
LINUX IS LINUX.
(anything that works on Linux can theoretically be made to work on your
toaster, if it also runs Linux!)
This is very cool, and if I understand correctly it means that any Godot games
could theoretically be played on these NEAT as HECK little devices, yeah? So
cool!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #58 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 │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #59 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 │
╘═════════╧╧═════════════════════════════════════════════════════════──────────────────┘
--- #60 fediverse/2875 ---
═══════════════════════════════════════════════════════────────────────────────────
┌────────────────────────────┐
│ CW: re: unsolicited advice │
└────────────────────────────┘
@user-192
I use Void Linux so it uses xbps instead of apt, but I know I've heard about
how to do it I just forget how. I'll look into it, but for now I can play,
so... oh well! :D :D
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #61 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 │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #62 fediverse/653 ---
══════════════════════════════════════════════─────────────────────────────────────
there's a difference between designing software and using software. Some
things can be made, and then saved for another day when their implementations
may be accomplished more ethically. It's okay to say "let's leave this as
'okay' and work on the next thing we've chosen."
Check out this piece of C code I wrote last night:
it doesn't compile, it's not finished, but I wrote it as-is
[pretend like it was called "main.c" instead of "main.txt" - had to change it
because mastodon thinks it's an invalid file]
[actually .txt didn't work, try .png]
[hmmm it realized it wasn't a valid png file, okay try screenshotting the
code, there's only 300 lines]
[sure glad there's only 300 lines]
[too bad it won't let you send .zip]
[won't let me name it main.png, presumably because they already have a
failed-verified version on their machine. will rename to main-src.png instead]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #63 fediverse/5911 ---
╔═══════════════════════════════════════════════════════════════════════════───────┐
║ I was always fascinated by the Linux way of programming. Need to do something? │
║ write it into a script! You never know when you'll need it again. Then, just │
║ stay organized, religiously so, and understand that you will forget about │
║ stuff. But, you'll come across it eventually, ready and willing and able to │
║ help you. │
║ │
║ if you don't want me using AI, then give me ~20 junior developers. Which is │
║ more efficient, do you think? │
║ │
║ "girl you haven't even tested your vibe-coded slop, how do you know if it │
║ works" │
║ │
║ oh I'm sure it doesn't, but it's the thought that counts │
║ │
║ ... I guess I'm just saying, please don't burn the data centers. Computers are │
║ not only bad for the environment when they're burnt, but also we can use them │
║ for all kinds of neat things. Even if it takes a lot of energy, just... build │
║ more solar panels and only use the computers for important stuff? │
║ timeshare-style? │
║ │
║ \@/documents/books/man-and-the-computer.pdf │
║ │
║ that was my mother's book... I love her. I miss that side of her. She fled │
║ when the cancer came. │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧════════════════════════════════════════════════════════════╧═══───────┘
--- #64 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 │
╚═════════╧════════════════════════════════════════════────────────────┴──────────┘
--- #65 fediverse/1892 ---
══════════════════════════════════════════════════════─────────────────────────────
┌─────────────────────────────────────────┐
│ CW: C-programming-and-alcohol-mentioned │
└─────────────────────────────────────────┘
I want to write C programs with threads and manual memory management and
function pointers and lots and lots of arrays and I'm not even kidding
... wait a minute I literally don't have a job, why am I not writing C
programs right now?
BRB I got something important to do, where's my vodka --> pkill firefox
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #66 fediverse/3455 ---
═════════════════════════════════════════════════════════──────────────────────────
┌───────────────────────────────────┐
│ CW: food-quartermastery-mentioned │
└───────────────────────────────────┘
when you run out of an ingredient you use often (like butter, seasoning, or
flour) put the container by your shoes.
then, when you go to the store, look through all the empty containers and make
a mental list.
when you get home and are putting things away, if you forgot something just
leave the old container by the door. everything else can be recycled / trashed.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #67 fediverse/3668 ---
═════════════════════════════════════════════════════════──────────────────────────
setting up an SSH server is like a rite of passage for Linux administrators
(notice I didn't say users, you can't use linux, only administer it)
... I'm having trouble with my rites >.>
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #68 fediverse/928 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-226
especially if you teach them how to use the terminal.
the amount of problems I could solve increased exponentially once I learned
basic python and BASH.
I love using "tldr", which is a summarizer for man pages. You can use it to
store custom notes (and import some from the community) which show you how to
complete common tasks. It's so nice when you can see the options laid out in
use right there for you whenever you type "tldr " - I personally use
"tealdeer" which is a tldr browser written in Rust. It's pretty nice because
you can write a note for yourself every time you solve a particular problem,
and then if you ever need to do it again it's there for you, easy to access.
of course, if your problem isn't listed, that's okay. That's what the man
pages are for. As long as you teach them how to search with \/ they can find
anything. Especially the \/-f[space] trick, to search for the -f flag for
example.
some organizers won't need the terminal, some will. if they pay attention,
great!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #69 fediverse/3055 ---
════════════════════════════════════════════════════════───────────────────────────
If you're on a Windows computer, first of all why and second of all you can
use the WINDOWS key + SHIFT + S to screenshot a part of the screen.
this will put it in your copy/paste clipboard, meaning all you have to do is
ctrl+V and boom suddenly you are significantly more productive.
just don't forget alt text...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #70 fediverse/1868 ---
╔═════════════════════════════════════════════════════─────────────────────────────┐
║ whyyyyyy do programs create all these dot-folders in my home directory? It's │
║ sooooo crowded. Why are they always putting things in random directories like │
║ /usr/bin or /lib/ or things like that? I'd much prefer to be able to trust │
║ that all my files are in one directory, so if I need to DELETE or MOVE them │
║ easily I don't have to worry about my config files being lost / sticking │
║ around. │
║ │
║ to that end, I always try and configure software I install on my system to put │
║ all their files into a single directory. If possible. │
║ │
║ Usually for like, a game, this involves having a directory for the project, a │
║ directory for the files (things that are deleted and recreated when │
║ reinstalling), a directory for config files, and usually an update script and │
║ a run script. It's so much nicer to not be clogged up all the time. │
║ │
║ industry standards apply primarily to industrial uses, and if they aren't │
║ customizable then they aren't fit for the industry. So why not keep things │
║ simple? I don't need all this junk cluttering up my desktop. │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧══════════════════════════════════════════──────────────────┴──────────┘
--- #71 fediverse/2120 ---
══════════════════════════════════════════════════════─────────────────────────────
sometimes I think performing my art was just an excuse to use Linux. At least,
some of my art.
But hey, I'm not complaining, it's awesome.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #72 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 │
╘═════════╧╧══════════════════════════════════════════════════════════─────────────────┘
--- #73 fediverse/1810 ---
══════════════════════════════════════════════════════─────────────────────────────
some people hear words like "datastructures" and "object-oriented programming"
and think they're made up terms that don't mean anything important.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #74 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 │
╘═════════╧╧══════════════════════════════════════════════════════════════════─────────┘
--- #75 fediverse/1225 ---
════════════════════════════════════════════════───────────────────────────────────
@user-883
don't worry I can sift through junk. I'll write my own using yours as a
reference to debug why mine isn't working. "oh probably because I didn't do
this part here"
also, bad news. Guess I'm doing C programming. What should I make? I'm
thinking Tic Tac Toe or maybe a really basic Asteroids or something
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════──────────────────────────────────┘
--- #76 messages/111 ---
══════════════════════════════════════════════─────────────────────────────────────
When someone remakes content into a different expression like a remake or
reboot or whatever it gives a different message in its meaning - some
circumstances and characters can apply for more than one message I'm it's
meaning
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #77 fediverse/848 ---
═══════════════════════════════════════════════────────────────────────────────────
┌──────────────────────┐
│ CW: gentoo │
└──────────────────────┘
wrote this in an hour, used a local LLM to generate the regexes.
haven't tested it yet because I'm not on gentoo rn, so don't run it. which is
why I shared the code as an image.
if you really want the text of it then check out the visual description of the
image.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #78 fediverse/3226 ---
════════════════════════════════════════════════════════───────────────────────────
if your man page is longer than a list of options and their usage and a
paragraph or twenty of how to use the software... then you need to abstract,
and break your code into multiple purpose-built applications.
do one thing, and do it right. alternatively, do one set of things, and do
them concisely.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #79 fediverse/3299 ---
════════════════════════════════════════════════════════───────────────────────────
what if we could record and playback certain timeframes of our CPU and RAM
status and use it for debug purposes
like running some code in a VM every time you wanted to show a youtube video
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #80 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 │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #81 fediverse/4296 ---
════════════════════════════════════════════════════════════───────────────────────
@user-1655
why don't we just weaponize email and send json to each other that ends up
parsed, interpreted, and presented on the end-user's computer using whatever
client we want?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #82 fediverse/5590 ---
════════════════════════════════════════════════════════════════════════───────────
vibe coding is just writing comments in increasing detail until the generated
code matches what you need.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════──────────┘
--- #83 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 │
╘═════════╧╧══════════════════════════════════════════════════════─────────────────────┘
--- #84 fediverse/1482 ---
═════════════════════════════════════════════════──────────────────────────────────
@user-192
I feel like SSH keys to log into every website should be a standard
or something similar
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════─────────────────────────────────┘
--- #85 fediverse/4119 ---
════════════════════════════════════════════════════════════───────────────────────
what if you wanted to build a project from source
but god saidCMake Error at CMakeLists.txt:
By not providing a "foo.cmake" in CMAKE_MODULE_PATH this project has asked
CMake to find a package configuration file provided by "bar", but CMake did
not find one.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #86 fediverse/280 ---
════════════════════════════════════════════───────────────────────────────────────
old school programmers use short variable names because the computer monitors
they would code on had a lower resolution, meaning fewer characters per line.
why waste pixels being verbose?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════──────────────────────────────────────┘
--- #87 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 │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #88 fediverse/6137 ---
═════════════════════════════════════════════════════════════════════════════──────
sometimes, comments need to go on the left side of text. Like for parts of the
script which should be user-editable, the fields should all be right-aligned
to the farthest required bit of text. Instead of [picture A] it should be
[picture B]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════════════─────┘
--- #89 fediverse/5386 ---
═══════════════════════════════════════════════════════════════════════────────────
@user-670 @user-1815 @user-1816
literally nobody has contributed to the one github repo I have
ever. I got like, one comment from some guy in China or Taiwan. It's been up
for like, 4 or 5 years and it's on my website. /shrug I guess most people
bounce off after reading the splash screen /shrug
to me, a FOSS project feels static because I don't believe in centralization
and I also don't have the bandwidth or need to work on it. /shrug
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════───────────┘
--- #90 fediverse/3407 ---
═════════════════════════════════════════════════════════──────────────────────────
@user-1218
there's only a password so that if the zip archive is displaced from it's
context it's harder to read.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #91 fediverse/466 ---
══════════════════════════════════════════════─────────────────────────────────────
I love Linux. All I have to do is type "authserver" and "worldserver" and
wouldn't you know it suddenly a universe is created (with very constrained
rules) that anyone might inhabit should they desire to. It's not like I'm
perfect - oh wait I have a toot about that, gimme a sec
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #92 fediverse/1390 ---
═════════════════════════════════════════════════──────────────────────────────────
in other news, I spent ~9 hours yesterday working on a dumb project that I'll
probably tell you about once it's finished, and then a BASH script that my
friend and I wrote just deleted every single file because I failed to
terminate a sed command. Or something, still not entirely sure what happened,
because it deleted the script that was doing the deleting.
good thing I have backups from ~3 hours ago. Feels great to lose 33% of a
project for nothing.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════─────────────────────────────────┘
--- #93 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 │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #94 fediverse/166 ---
═══════════════════════════════════════════────────────────────────────────────────
@user-147 years of practice. every time you delete what you said is another
chance to practice that slips away. writing is the easy part, you got that
down because you need something to delete, right? the hard part is being
received by others, and continuing the conversation as you direct it.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════───────────────────────────────────────┘
--- #95 fediverse_boost/4925 ---
◀─╔══════════════════════════[BOOST]════════════════════════════─────────────────╗
║ ┌────────────────────────────────────────────────────────────────────────────┐ ║
║ │ still waiting to find the energy and headspace to write an irritated blog post about why the fact that most toolchains are like 80% of the learning curve for those who are just getting into programming (especially on windows) │ ║
║ └────────────────────────────────────────────────────────────────────────────┘ ║
╠─────────┐ ┌───────────╣
║ similar │ chronological │ different ║
╚═════════╧═══════════════════════════════════════════════════─────────┴───────╝─▶
--- #96 messages/1170 ---
══════════════════════════════════════════════════════════════════════════════════─
look, it's easy enough to solve bitrot. Just store three copies of the file
and synchronize them everytime you open them. Like, an in-software raid array,
except with less expense because a .png is what, 2mb? great, now they're 6mb.
Nobody will notice except people who really should be buying more hard drives.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════════════┘
--- #97 fediverse/4596 ---
══════════════════════════════════════════════════════════════─────────────────────
@user-1707
hey, I'm working on a project. Might need some python, I tend to prefer Lua
but it's pretty similar. It uses fediverse software and cheap hardware, think
raspberry pi's except risc-v
also it might use distributed local LLMs not to generate text, that's garbo
and lame and stupid. Instead it uses them to transform text, maybe even
translate text, into a more summarized form. Intentionally losing data, like a
jpeg compression but for text.
Might need some python for that. To glue it all together. The "distributed"
part is a whitelist, so we'd need to write that too. Various small little
utilities like that for connectivity.
oh also there's a one-way ethernet cable that connects two of the boards so
we'd need to store some information (easy) and send some UDP packets (hard)
anyway it's pretty neat, lmk if you want my contact details and I can tell you
about it. I might even be able to pay you.
(everything open source, no telemetry, no backdoors, everything private is
encrypted, etc etc)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════────────────────────┘
--- #98 fediverse_boost/5464 ---
◀─╔═════════════════════════════[BOOST]═══════════════════════════════───────────╗
║ ┌────────────────────────────────────────────────────────────────────────────┐ ║
║ │ Instead of using butter with your garlic bread, you should switch to Linux. You can set up a virtual machine to try out various distros to see which one works best for your needs. │ ║
║ └────────────────────────────────────────────────────────────────────────────┘ ║
╠─────────┐ ┌───────────╣
║ similar │ chronological │ different ║
╚═════════╧═════════════════════════════════════════════════════════───┴───────╝─▶
--- #99 messages/488 ---
════════════════════════════════════════════════════════───────────────────────────
Look at the unique patterns in a programming language, and you will find
within them a usecase.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #100 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 │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #101 messages/765 ---
═══════════════════════════════════════════════════════════════════────────────────
you don't have to write poetry to write notes. The poetics are just practice
for when secrecy is intended.
OR IS IT THE REAL THING? who can say.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════───────────────┘
--- #102 fediverse/6438 ---
═══════════════════════════════════════════════════════════════════════════════────
why would you gatekeep content by keeping us from easily using LLMs some
people aren't technical and still need to write computer programs because
that's how you enlighten a people is empower them with new tools
"I've never heard of that programming language, but luckily I can fit all of
it's documentation in my context window."
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════════───┘
--- #103 fediverse/5487 ---
═══════════════════════════════════════════════════════════════════════────────────
if I click a .exe link on a website, it should just...
automatically download the file and open it up in wine or the
whatever-windows-uses.
why is it cumbersome literally just, let me download the source-code
repository to someone's computer and let them compile it themselves without
even thinking about it
"you mean like, package manager hooks into a website?"
yes, but, instead of implemented one-by-one, it should use a protocol so each
package manager only has to implement the downloading scheme once and it'd be
able to read from any locations that output the correct API calls or whatever.
the developer could even do it themselves. such is the joy of open-source
computing - if you like a service or product, you can make it work with your
own. What else is there to work on but the ultimate computing product?
aka... everything that anyone's ever been known?
"girl you are loco what's your plan for the fight you continue to demand"
oh idk um probably just wait until someone asks me to speak
"do that~"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════───────────┘
--- #104 fediverse/5169 ---
════════════════════════════════════════════════════════════════════───────────────
if you ever find yourself in a situation where you have to describe everything
that you do,
leave that situation
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #105 fediverse/3919 ---
═══════════════════════════════════════════════════════════────────────────────────
┌───────────────────────┐
│ CW: cursing-mentioned │
└───────────────────────┘
that feeling when your computers are just fucked and it's like... whatever,
computers are fucked, I don't give a fuck
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #106 fediverse/1035 ---
════════════════════════════════════════════════───────────────────────────────────
@user-757 @user-192
true and my suggestion doesn't provide a tracelog, pretty much just the status
of the variables when it pauses or ends.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════──────────────────────────────────┘
--- #107 fediverse/3672 ---
═════════════════════════════════════════════════════════──────────────────────────
┌───────────────────────┐
│ CW: cursing-mentioned │
└───────────────────────┘
there's something kinda... liberating about working with computers at work.
you always know that worst case scenario, even if you totally fuck up the
system configuration, you can always reimage the machine.
so... who cares! if you can't get something working, just fucking try shit
until it works. Whack it with a software hammer. See what happens.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #108 fediverse/1597 ---
═════════════════════════════════════════════════════──────────────────────────────
hey a couple months ago there was this really cool visual programming language
posted here that was like, windows aero themed and it was super cute - does
anyone know what that was called or have a link to it?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #109 fediverse/4900 ---
═════════════════════════════════════════════════════════════════──────────────────
if you wanna trick systems administrators just put a bunch of sleeps in your
code so your computer programs don't use up all the mainframe's resources all
at once
[statements dreamed up by the practically deranged]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════─────────────────┘
--- #110 fediverse/4083 ---
════════════════════════════════════════════════════════════───────────────────────
It's easy to stop cringing at others, but how the heck do you stop cringing at
yourself?? it's impossible!!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #111 fediverse/5282 ---
══════════════════════════════════════════════════════════════════════─────────────
I wonder why someone hasn't yet written a "meta-package-manager" which
installed from many different sources and correctly configured each
installation to be able to efficiently find exactly where the requisite
libraries are installed, even if they're installed for a different system.
Then, when running, every time it encountered an error, it moved one more
dependency over to the native package manager until eventually everything is
in order.
... or something like that, truth be told I'm a junior
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════────────────┘
--- #112 messages/931 ---
═════════════════════════════════════════════════════════════════════════──────────
<*type type type type*> oh see it's writing music.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════════─────────┘
--- #113 fediverse/247 ---
════════════════════════════════════════════───────────────────────────────────────
@user-195 parallel is when two programs run simultaneously, like two parallel
lines (threads) that never touch.
concurrent is when the two lines are split up into chunks and the program
switches between them - like this: -----_----
enter alternate universe
parallel is when two programs operate on the same axis - usually time - and
never interfere with each other. the OS will switch between them as
appropriate to make sure they never intersect. Sorta like this: -----_----
concurrent is when two programs are executed simultaneously, primarily
constituting computation correlated with collective contents of coordinated
collaboration between contextually related coroutines.
It's simple, even a beginner could figure it out.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════──────────────────────────────────────┘
--- #114 fediverse/879 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-501
also it's only undefined behavior because the order of the bits aren't
defined, so if you do bitfield "pointer arithmetic" then you're screwed if you
try and be portable with it. However if you're just using bitfields as
compressed data storage then you can safely access integer.a integer.b
integer.c etc safely and easily. The compiler doesn't care what order they're
in if you don't write logic that requires them to be in a certain order
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #115 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 │
╚═════════╧═══════════════════════════════════════════════════════════─┴──────────┘
--- #116 fediverse/6026 ---
════════════════════════════════════════════════════════════════════════════───────
"huh weird why does my ls -ltr output display 4096 for every single
directory's size"
"maybe there's a man-file option for it"
https://stackoverflow.com/questions/1019116/using-ls-to-list-directories-and-th
eir-total-sizes
what if every file had a record of every file that had a record of it. then,
we could see the total size no matter what level of the directory structure.
plus, it'd make deleting a lot easier, all you'd have to do is propagate a
process. that way it can get super messed up and complicated if ever shut down.
boom, robot mortality, they cherish it
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #117 fediverse/5070 ---
════════════════════════════════════════════════════════════════════───────────────
main() is where you put stuff before you abstract it into a function. Usually
it gets quite long, but it's mostly just a table-of-contents listing of all
the other functions that are run in order to do this-or-that-or-the-other.
--
I wonder if you could generate RNG by hooking up a camera to a lava-lamp and
scanning through the pixels or whatever
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #118 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 │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #119 fediverse/548 ---
══════════════════════════════════════════════─────────────────────────────────────
I added a line to my .bashrc that cats out a random one of my notes every time
I open a terminal.
I keep reading things that I swear I didn't write, but feel right and true to
me in a way that could only imply that they came fully formed into my eyes
through the lines on my screen, cast upon the mirror panes of my hard disk
drive by the pounding of my keyboard as I once upon a time did cast a spell
upon my future.
It's pretty neat, but it speaks to a shadowed perspective that perhaps is
neither within nor without.
Side note, I think I've been possessed by a witch. But like... in a consensual
way. Like "Hey witch, wanna live? You can chill out with me." [ha that's one
way to look at it]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #120 bluesky#12 ---
══════════════════════════════════════════════════════════════════─────────────────
alas, if only the command for deleting the contents of a directory and the
command to delete THE ENTIRE COMPUTER FROM EXISTENCE are off by a single .
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════────────────────┘
--- #121 fediverse/5247 ---
══════════════════════════════════════════════════════════════════════─────────────
the hardest problem in computer science is figuring out why users do what they
do.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════────────────┘
--- #122 messages/892 ---
═════════════════════════════════════════════════════════════════════──────────────
Why do we only have one file extension? Why not put them one after another for
increased categorization?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════─────────────┘
--- #123 fediverse/4847 ---
═════════════════════════════════════════════════════════════════──────────────────
every program should write it's RAM gamestate to disk before shutting down or
closing the program and then resume from the same spot, change my mind
(every is a strong word)
(when you re-initialize you can clean the state of leaks)
there shouldn't be leaks in the first place. if you have any leaks at all,
then you need more padding.
(... you mean boilerplate? error correction?)
... yeah that's what I meant.
(but why save the state at all?)
because then it can learn!
(... you could just write the relevant data to a config file.)
true
================= stack overflow ===============
the cool thing about being queer is you can be whatever you want and
everyone'll be cool with it
if you kinda suck then you'll figure that out when everyone cool leaves.
then the kind stay with the people who suck and then it's not cool anymore
>.>
gah this sucks. party dynamics are hard. especially when the parties are teams
of 20!!
goarsh that's quite a few
================= stack overflow ===============
wait n
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════─────────────────┘
--- #124 fediverse/5977 ---
════════════════════════════════════════════════════════════════════════════───────
apparently you can use network sockets for inter-process communication if you
just set the network to your home and the ports that are set to the defaults
that people who know what software you use will know to listen on when they've
hacked any single device on your network. good thing that data is with the
router, right?
what if there was a stop before leaving the computer?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #125 fediverse/4259 ---
════════════════════════════════════════════════════════════───────────────────────
source code should be like a story
"here's why we did what we did with our architecture"
and as it's being written, it may be altered in many different places at once
- git style.
parts of it could rhyme,
if they wanted to show parts that were really difficult but easy to summarize
because it's mostly just a lot of boring work y'know like writing getters and
setters and doing the testing pre-deploy environments
,,, they could selectionize
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #126 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 │
╘═════════╧╧════════════════════════════════════════════════════════════════───────────┘
--- #127 fediverse_boost/6017 ---
◀─╔═══════════════════════════════[BOOST]═════════════════════════════════───────╗
║ ┌────────────────────────────────────────────────────────────────────────────┐ ║
║ │ Linux admins when they have to use Windows: :/ │ ║
║ │ │ ║
║ │ Windows admins when they have to use Linux: :\ │ ║
║ └────────────────────────────────────────────────────────────────────────────┘ ║
╠─────────┐ ┌───────────╣
║ similar │ chronological │ different ║
╚═════════╧════════════════════════════════════════════════════════════╧───────╝─▶
--- #128 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 │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #129 fediverse/4456 ---
═════════════════════════════════════════════════════════════──────────────────────
@user-1268
I like Void Linux because it's simple, clean, and gets out of your way. It was
my first Linux distribution and I think it's excellent for a beginner.
I use Gentoo because my old best friend installed it on a thinkpad she gifted
me. Then I kept it because I liked the idea of compiling all my software
locally and being as flexible as possible.
I installed NixOS on my newest laptop because I thought it'd be nice to have a
system that was dependable. NixOS has all the system configuration done in a
single file, so if you save that file you can rebuild your system on any other
system with minimal effort (at least, that's the idea - I haven't tested it
yet)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════─────────────────────┘
--- #130 fediverse/3800 ---
══════════════════════════════════════════════════════════─────────────────────────
@user-1352
You're absolutely right, the compiler knows better than me! Certainly the
compiler doesn't know best, but certainly the compiler knows better than me.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #131 fediverse/1620 ---
═════════════════════════════════════════════════════──────────────────────────────
@user-1037
I gotta say you're making a really good argument for OpenBSD... Hmmmm maybe
I'll look into it this week.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #132 fediverse/4621 ---
═══════════════════════════════════════════════════════════════────────────────────
@user-1716
there's already a web browser named surf 🙃 it's much more minimal than this
one tho
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════───────────────────┘
--- #133 fediverse/2922 ---
═══════════════════════════════════════════════════════────────────────────────────
@user-192
now I want to re-implement strings as structs in C! I don't know why I never
thought of them that way.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #134 fediverse/1870 ---
══════════════════════════════════════════════════════─────────────────────────────
why would I want other people using my computer? They don't know how to use my
computer! They might break something or mess something up or automatically
read/edit my files that are stored in standard locations through the usage of
a script which automagically scans and ransomwares machines on the internet
who store their files in specific standardized locations! no thank you.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #135 fediverse/4093 ---
════════════════════════════════════════════════════════════───────────────────────
I have no idea why people prefer a GUI when working with software. How the
heck do they expect to use their computer remotely if they can't even run
their software over SSH?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #136 messages/110 ---
═════════════════════════════════════════════──────────────────────────────────────
The best way to program computers is to organize them according to their
relations. Like, when x increases by 4 then y increases by 2 - basically, a
math equation that you can continuously solve by calculating more and more
comprehensively and deeply.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #137 fediverse/4720 ---
════════════════════════════════════════════════════════════════───────────────────
@user-882
it's a security hole though
yeah... there ya go...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════──────────────────┘
--- #138 fediverse/94 ---
═══════════════════════════════════════════────────────────────────────────────────
@user-107 If you can figure out how to do it well, everything else seems less
difficult. : )
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════───────────────────────────────────────┘
--- #139 fediverse/1310 ---
═════════════════════════════════════════════════──────────────────────────────────
that feeling when you type your password so fast that one hand is faster than
the other and the letters get all jumbled and now you have to remake your ssh
key -.-
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════─────────────────────────────────┘
--- #140 fediverse/5109 ---
════════════════════════════════════════════════════════════════════───────────────
does anyone know of a website where I can host videos on my neocities that
isn't youtube? maybe something I can set up on my own server computer at home
like a file server or something? how do I do that, what should I google, which
is the easiest and closest to the metal tools I can use? [practical, sensible,
courageous. these are the adjectives we need.]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #141 fediverse/4994 ---
════════════════════════════════════════════════════════════════════───────────────
┌────────────────────────┐
│ CW: violence-mentioned │
└────────────────────────┘
War is easy. Just start working and never stop until you break. Hopefully
there's still something left of you when it's over, but hey that's why you
write about the things you care about.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #142 fediverse/1723 ---
═════════════════════════════════════════════════════──────────────────────────────
@user-1037
Lua with 0 based indexing would be the perfect language (okay maybe LuaJIT)
(i try to hurt as few people as I can as little as I can but it's impossible
to not hurt anyone)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #143 fediverse/5919 ---
════════════════════════════════════════════════════════════════════════════───────
"but... why?"
portable linux with buttons, great for pick-up-games or communication, can
throw several in them in a backpack if you want clustered cooperation, they
work as radios (if the signal reaches) and can transmit text (if you use a
radial-style keyboard)
[this is all just a pitch for... something, what, you want something? ha
you'll find no things with me, I know nothing of antifa or whatever]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #144 fediverse/5689 ---
════════════════════════════════════════════════════════════════════════───────────
why don't we make large arrays of vram that are slightly slower because
they're farther on the circuit-board from their host and their reception at
the processing section has to be gated such that they all enter to be
processed at once.
like that one infinite scrolling XKCD cartoon where the things move from one
screen to the other simultaneously assembly line style.
[fail safes. https://xkcd.com/2916/#xt=7&yt=35 ]
if we all feel like we're doing nothing, we'll all grow tired of it and decide
to do some prevailing. gosh I wish I wasn't so useless is code for
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════──────────┘
--- #145 fediverse/3396 ---
╔════════════════════════════════════════════════════════──────────────────────────┐
║ you should only use variables for things that are user-configurable. │
║ │
║ everything else should be hard-coded, with a clear and coherent reasoning │
║ stored in the documentation, with git-style revisions included and easily │
║ browsable. │
║ │
║ (what if you want to tweak a value somewhere? you'd have to update it on every │
║ single page!) │
║ │
║ true. maybe we could set aside a section of memory to store a value and then │
║ just point to it using a label. That way we could always keep our values │
║ hardcoded, but also be able to find them easier. │
║ │
║ [tweak them, not find them] │
║ │
║ ... yah okay fine both would technically work │
║ │
║ [yes but one of them is not a good timeline to lead the world down.] │
║ │
║ ?..?...?....?..... -.- ...... /shrug ....... ...? │
║ │
║ "bruh why is she reinventing variables" │
║ │
║ she's learning give her time │
║ │
║ ... did you hear a doctor diagnosed her finally │
║ │
║ "whaaat what'd they give her" │
║ │
║ they said it was "schizotypal" │
║ │
║ "... did she forget a symptom or three?" │
║ │
║ no dude thats one of the bad ones │
║ │
║ "oh right. I heard typical" │
║ │
║ yeah so anyway │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧═════════════════════════════════════════════───────────────┴──────────┘
--- #146 fediverse/3663 ---
═════════════════════════════════════════════════════════──────────────────────────
@user-1582
It depends on the size of the file, copying a thousand lines of config file
probably isn't that big of a deal, but copying a million lines in a log file
just to pass it as an argument to... pad it to the left, or whatever, that'll
DEFINITELY slow down your execution speed!
Much better to pass by reference, usually...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #147 fediverse/4804 ---
═════════════════════════════════════════════════════════════════──────────────────
I love it when wine doesn't work because it "failed to open program.exe"
... okay, can you tell me why it failed?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════─────────────────┘
--- #148 bluesky#27 ---
═════════════════════════════════════════════════════════════════════════════════──
you can have as many processes running on a computer as you please, just make
sure they're all named chrome.exe so the user doesn't suspect a thing.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════════════════─┘
--- #149 fediverse/3802 ---
══════════════════════════════════════════════════════════─────────────────────────
what if we got together and adopted a new open source project every month and
just collectively worked around the clock to learn and work through the
important problems facing it
or even like, cleared out the backlog of stupid pointless boring tasks that
would allow the developers to work on something better
call it the wandering parade of development
could give us some experience organizing small, short-term projects to
accomplish specific goals and tasks in an ad-hoc way that relied less upon
procedure and more on "I think so-and-so knows something about that, they were
looking into those files and posted a breakdown of how they work yesterday"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #150 messages/412 ---
═════════════════════════════════════════════════════──────────────────────────────
Coding superpower:
Start thread
While(true):
Run();
Then, whenever you want it to run something else, change the function pointer
that run() uses to call a function
At the end of the run() function, set the function pointer in the while loop
to the next one. That way you don't stack overflow from the recursion.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #151 messages/1245 ---
══════════════════════════════════════════════════════════════════════════════════─
BRB, if you want to talk to yourselfs, I recommend opening a port in your
router and exchanging HTTP packets that create messages on each other's
computers. Can be done in a couple hundred lines of C code that can be 90%
premade or auto-generated. Then, once it's made, you don't have to think about
it again because it's so simple. It's not trying to scale, it's just...
designed for a small, focused, human oriented mindset.\
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════════════┘
--- #152 fediverse/182 ---
═══════════════════════════════════════════────────────────────────────────────────
┌──────────────────────┐
│ CW: first person │
└──────────────────────┘
when stepping into the unknown, you should first check your list of
requirements. are you wearing shoes? does the ground look slippery? have you
eaten recently, or will you starve on the way back?
when doing to a list, completion signals a time for rejoicing. you're
finished, you're done! congratulations.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════───────────────────────────────────────┘
--- #153 fediverse/1473 ---
═════════════════════════════════════════════════──────────────────────────────────
@user-883
yeah uhhhh the one you helped me setup. The error is just "connection refused"
because it "could not write header for output file" because of incorrect input
parameters, but I don't think I changed anything since we used it a couple
weeks ago. Have you seen any errors like that?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════─────────────────────────────────┘
--- #154 fediverse/3600 ---
═════════════════════════════════════════════════════════──────────────────────────
┌─────────────────────────────┐
│ CW: re: computers-mentioned │
└─────────────────────────────┘
@user-1573
Also HardcopyPdf is nice, it turns a file into a pdf. Does what it says on the
tin. ^_^
And it doesn't need anything more than those lines there in the config.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #155 messages/373 ---
═════════════════════════════════════════════════════──────────────────────────────
that moment when you swear you see your messages changing under your
fingertips, long after you've written them
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #156 fediverse/3929 ---
═══════════════════════════════════════════════════════════────────────────────────
are you about to delete a post that you thought was funny, but actually wasn't
once you wrote it down and read it to yourself?
STOP
write it down on a post-it and put it under your desk or behind a drawer
put it in a .txt file in a random directory on your computer
send it as a text message to yourself
write it down, take a picture of it, and then burn the paper
y'know, typical stuff like that
do this and I guarantee you won't regret it
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #157 fediverse/1735 ---
═════════════════════════════════════════════════════──────────────────────────────
a video that's a gif and an audio file played at the same time using
&& in bash
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #158 fediverse/718 ---
══════════════════════════════════════════════─────────────────────────────────────
@user-547
That feeling when you get to the end of a paragraph and think "why do I have
this extra parenthesis )? Oh yeah I opened it up waaaaay up here" and then you
reread what you wrote and think
perfect, no notes
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #159 fediverse/3574 ---
═════════════════════════════════════════════════════════──────────────────────────
@user-1564
I love the concept of this! Maybe if HTTP is too complex, you could try
another simpler server? I don't know the complexity of the programs I use
every day, but I'm sure there's one that's very simple. Even just a simple IRC
style chat server that just... sends text from person A to person B depending
on their username (like a glorified Router or Switch)
Reminded of this video tbh...:
https://www.youtube.com/watch?v=gGfTjKwLQxY
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #160 fediverse/876 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-246
there is a reason to be annoyed, and that reason is that storing numbers as
"dynamically typed" string values is both inefficient and frustrating due to
the bugs it provokes.
Not sure how common those bugs are in HTML, but dynamically typed languages
like Python and Javascript have a whole class of potential errors that are
significantly more difficult to debug than on C or Rust where the variables
are statically typed
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #161 fediverse/5880 ---
════════════════════════════════════════════════════════════════════════════───────
I legitimately think computers should write code and software engineers should
write legislation and lawyers should resolve problem tickets made by aggrieved
citizens while judges do their best to just keep the boat floating
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #162 fediverse/2095 ---
══════════════════════════════════════════════════════─────────────────────────────
Sometimes it's okay to be sloppy if you're having fun!
Just... clean up after yourself when you're done 😉
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #163 fediverse/583 ---
══════════════════════════════════════════════─────────────────────────────────────
I love how the gnu C documentation lists this particular page as number 6.66
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #164 fediverse/1198 ---
════════════════════════════════════════════════───────────────────────────────────
@user-883
I use DWM and Vim, so yeah I get it ^_^
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════──────────────────────────────────┘
--- #165 fediverse/5291 ---
══════════════════════════════════════════════════════════════════════─────────────
the most important skill I can think of for a linux software engineer is the
ability to connect multiple systems together and turn windows and macintosh
devices into Linux devices so that datacenters can be built out of whatever's
on the around.
there's this programming language I like called Chapel for distributed
computation computing which is also cool, if you're more of the programming
type.
networking security I believe often has hardware solutions, so getting the
crypto-graphy boys and the PCB girls together to work on some jams is a good
and productively useful gathering of insightful events
"but ritz computers should only be used to solve problems that people have,
not make more problems!" ah yes but have you considered that problems find
you, and the computers help you work through them
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════────────────┘
--- #166 fediverse/4118 ---
════════════════════════════════════════════════════════════───────────────────────
all modern software should be written in a multithreaded way, change my mind
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #167 fediverse/1718 ---
═════════════════════════════════════════════════════──────────────────────────────
dear old people - did you know computers don't need to have buttons? You can
literally just type what you want to make happen (if you know the magic spell)
and it'll just, do that thing
how cool is that
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #168 fediverse/146 ---
═══════════════════════════════════════════────────────────────────────────────────
@user-138 if you don't want feedback then why don't you just... not open the
replies? leave them unread? if you feel the need to justify your actions (such
as not reading replies to your controversial posts) then somewhere deep down
you feel like those actions are unjustified, and needing an explanation. which
makes your point feel less valid to others, since even you don't believe in it
enough to guarantee it to be the truest expression of your soul.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════───────────────────────────────────────┘
--- #169 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 │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #170 fediverse/5384 ---
═══════════════════════════════════════════════════════════════════════────────────
before you go to a location, always ask yourself what you can bring to that
location.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════───────────┘
--- #171 fediverse/3896 ---
═══════════════════════════════════════════════════════════────────────────────────
I'm worried that if I install NixOS on my desktop instead of Void Linux then
all the hackers who watch my screen every day won't be able to see anymore. T.T
Listen I'm not trying to mess up your business and whatnot but like, Void
Linux keeps breaking and idk NixOS is just... so much nicer? Like, having a
config file handle everything is great because, like, there's only so many
commands you can use in a config file, right? With the more ad-hoc approach of
running commands and whatnot there's always a ton of flags to memorize and I'm
not about that.
Downside is... SystemD instead of Runit... So maybe I'll stick with Void for
now, haha
SystemD is the king of "memorizing random commands" like what
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #172 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 │
╘═════════╧╧═══════════════════════════════════════════════════════════────────────────┘
--- #173 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 │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #174 fediverse/369 ---
═════════════════════════════════════════════──────────────────────────────────────
Gaming on Linux is never knowing for sure that a game will launch.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #175 fediverse/1397 ---
═════════════════════════════════════════════════──────────────────────────────────
why don't we teach git in high school?
oh yeah, because microsoft word is not plain text.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════─────────────────────────────────┘
--- #176 fediverse/2124 ---
╔══════════════════════════════════════════════════════────────────────────────────┐
║ seriously, just google docs mixed with WC3 editor. │
║ │
║ boom, infinite storytelling device. As long as you were good with it, which │
║ was something that a CHILD could learn in like 3-6 months. │
║ │
║ Seems like it could be an ENTIRELY NEW SKILL that people could play with. │
║ │
║ But no, we learn excel and word in class at middle school. │
║ │
║ boring. │
║ │
║ I'd rather learn Bash or terminal customization or memory hierarchy │
║ organization. │
║ │
║ Yeah I mean that's cool but dude have you heard of multithreading? It's so │
║ cool, you can run like 500 different thoughts at once. It's amazing. │
║ │
║ ... I dunno, but I'm sure there's times when you'd want to use it. Like, │
║ processing a lot of data little-by-little. │
║ │
║ like, what if you had a camera feed of EVERY social media perspective AT ALL │
║ TIMES. Like, an instance admin streaming your inputted text to their databanks │
║ that they can project onto an LLM which interprets and identifies mis-aligned │
║ or altered direction units and mark them as "flagged", whatever that means, │
║ for their future the algorithm doesn' │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧═══════════════════════════════════════════─────────────────┴──────────┘
--- #177 fediverse/3553 ---
═════════════════════════════════════════════════════════──────────────────────────
@user-381
I have this notion about a math/CS curriculum where students build and program
their own calculators. Once you make the calculator do it you never need to do
it yourself again.
for the same reason that "writing is thinking" is true, so too is "programming
is calculation" true.
by working through the steps required to produce a result, and fully
understanding each step, they have a much more solid understanding of what's
going on than if they practiced rote memorization (worse) or continual
computation (better, not best tho)
especially if every step of the way is accompanied with visual elements which
show exactly what is happening. Some people are more visual, some people are
more algorithmic, and finding a way to teach all types of people is a truly
difficult and rewarding part of teaching.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #178 fediverse/6171 ---
═════════════════════════════════════════════════════════════════════════════──────
@user-882
I dunno I just remember having that problem every once in a while and if you
search the man page for "sub" it takes like, 16 n pushes to find what you need
and it's like... can't you just put the flags and keyboard shortcuts at the
beginning??
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════════════─────┘
--- #179 fediverse/1230 ---
════════════════════════════════════════════════───────────────────────────────────
@user-883
is there anything relevant in this file?
/home/wyatt/.config/rtsp-simple-server.yml
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════──────────────────────────────────┘
--- #180 fediverse/5783 ---
╔═════════════════════════════════════════════════════════════════════════─────────┐
║ I think our industry should work on one project at a time │
║ │
║ "do one thing and do it well" │
║ │
║ linux users code. │
║ │
║ everyone backends ffmpeg. │
║ │
║ everyone online uses chrome. │
║ │
║ what if we just rewrote every single program and... left it without updates in │
║ a "permanently forbidden" zone │
║ │
║ ... I mean what if we wrote non-proprietary alternatives to every proprietary │
║ source of computational knowledge and then we could only patch security │
║ vulnerabilities and compatibility change-bounties [oh no now you're allowing │
║ for endless levels of abstraction [meaning, operating system package │
║ installation bloat] and distasteractions.] │
║ │
║ the futures where all is not well nearly outnumber the well. but the inverse │
║ is also true, for they are divided roughly equal fifty. balance, in all │
║ things, is the only temperate state. when balance is │
║ [changed/something/uplifted], balance is inevitable to be search-shifted. │
║ │
║ why must you die for an audience? │
║ why │
║ │
║ ... I don't really want to, but what happens happens. we'll see if it's a for │
║ sure dealing. │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧════════════════════════════════════════════════════════════╧═─────────┘
--- #181 fediverse/4123 ---
════════════════════════════════════════════════════════════───────────────────────
@user-883
you're right
but I think your first impulse should be to think about how to do it in a
multithreaded way
If the result is that single-threading would be better, great! It'll be easier!
But thinking about multithreading first will give you crucial insights into
the structure of the program.
depending on what kinds of programming you do...!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #182 messages/770 ---
═══════════════════════════════════════════════════════════════════────────────────
There are some pieces of software where you think "oh cool, what did they
update?" and then there are some like "oh god... What did they update?"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════───────────────┘
--- #183 messages/890 ---
═════════════════════════════════════════════════════════════════════──────────────
If your code is too long to fit in 80 or 120 characters (preference) then you
need to use more numbers (indexable with a small table-of-contents style
comment description just above) or character symbols (referencably by meaning
just as above) (by above she means earlier in the string of text you just read)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════════════─────────────┘
--- #184 messages/511 ---
═════════════════════════════════════════════════════════──────────────────────────
That feeling when running a command on my laptop causes the fans to spin up on
my desktop...!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #185 fediverse/3745 ---
═════════════════════════════════════════════════════════──────────────────────────
everyone's all like "why would you spend so much effort writing that software
in a distributed way when it works so well in a centralized manner" and the
answer is because you never know when you're going to need to train an LLM on
like, 400 raspberry pi's or calculate the velocity of an unladen swallow as it
circles a black hole the size of mercury or whatever physicists do in their
spare time
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #186 fediverse/3164 ---
════════════════════════════════════════════════════════───────────────────────────
it fails after like 15 or 20 scrapes but I think that's just their scraping
policy. They don't have a robots.txt file that I could find. So... just run
it, then come back every 15 to 30 minutes and restart it until you're done.
Maybe I could increase the sleep duration? one sec lemme try that
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #187 fediverse/2601 ---
═══════════════════════════════════════════════════════────────────────────────────
@user-249
you can host anything you'd like on a raspberry pi. If the software
requirements are within the hardware specs, of course.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #188 fediverse/3792 ---
══════════════════════════════════════════════════════════─────────────────────────
If you have a thousand options in your case / switch statement, you should
probably refactor.
consider putting function pointers (to the things you would have switched to)
in an array and instead of checking "if this enum, then this, if that enum,
then that" etc send an index into the function pointer array. That way there's
no branching at all.
The best way to generate performant code is to reduce or eliminate branches.
If you're working on a video game or networked program, this can be incredibly
important.
The second best way is probably reducing cache misses and increasing
parallelism, but those are different problems.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #189 fediverse/1345 ---
╔════════════════════════════════════════════════──────────────────────────────────┐
║ ┌────────────────────────────┐ │
║ │ CW: re: cursed-chromebooks │ │
║ └────────────────────────────┘ │
║ │
║ │
║ ah but are you really armed in the first place if everything you do has to be │
║ googled or stack-overflowed first │
║ │
║ are you really armed if every web page request goes through their │
║ infrastructure │
║ │
║ are you really armed if every page downloaded is directed to by their DNS │
║ │
║ perhaps it's the illusion of power that gives Linux it's attraction to nerds │
║ such as we. Perhaps we feel powerful by bash scripting a few things together │
║ and making some program that does some thing. Maybe the idea that the │
║ machinery is open and clear is what compels us to use it without fear, though │
║ as far as we can hear there's nothing about it that makes sense. │
║ │
║ I guess that's why they teach Linux in school, so that our elementary │
║ interactions with the computers that comprise our future existence will make │
║ sense to us as children. │
║ │
║ ... wait they don't do that, do they? kids get chromebooks, or didn't you │
║ hear, they're always putting boogers in the CD trays and breaking their LCD │
║ displays, much better to just start fresh │
╟─────────┐ ┌───────────┤
║ similar │ chronological │ different │
╚═════════╧═════════════════════════════════════───────────────────────┴──────────┘
--- #190 fediverse/5115 ---
════════════════════════════════════════════════════════════════════───────────────
┌───────────────────────────────────────┐
│ CW: collective-organization-mentioned │
└───────────────────────────────────────┘
the more complicated your desktop environment interaction method is, the
harder it is to explain how to use the computer on post-it's to the side. This
difficulty is valuable because the most valuable computers (those of
programmers who can use tools to create new tools) are kept away from the
unfortunately inexperienced hands that might damage or corrupt their
utilization methods someday in the future when people are alive as one host
(collectivism... or host-based paradise?)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════──────────────┘
--- #191 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #192 fediverse/572 ---
══════════════════════════════════════════════─────────────────────────────────────
Hi, I'm learning about semaphores right now and trying to explain them to a
friend. But I only sorta understand how they work - can anyone look at this
pseudocode and tell me if I'm on the right track?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #193 fediverse/3423 ---
═════════════════════════════════════════════════════════──────────────────────────
every time I search the internet for a solution to a linux problem I have to
do add -ubuntu to the end of the search query
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #194 fediverse/2884 ---
═══════════════════════════════════════════════════════────────────────────────────
┌──────────────────────┐
│ CW: tech-paranoia │
└──────────────────────┘
every time I update my system, it breaks.
kinda makes me think they do that on purpose so that you spend all your time
up to date and that way they can quickly patch in and out security flaws fast
enough that nobody notices.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #195 fediverse/6015 ---
════════════════════════════════════════════════════════════════════════════───────
┌──────────────────────┐
│ CW: AI-mentioned │
└──────────────────────┘
In 2025, if you want to create a piece of software your options are to either:
devote your life to it, or use AI to build a semi-working prototype that you
can use to pitch your idea to a bunch of people who have devoted their lives
to learning how to use your idea as documentation while they build it from
scratch, throwing out most of the code but keeping all the checklists and
progress-trackers you built along the way, perhaps even utilizing some of your
tooling that you used while constructing the scaffolding of this monstrous
application that you won't be using most of the source-code for.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════════════════──────┘
--- #196 messages/1002 ---
═══════════════════════════════════════════════════════════════════════════────────
In revolutionary Cascadia, you don't have to do anything different. Until you
decide you want to.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════───────┘
--- #197 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 │
╘═════════╧╧══════════════════════════════════════════════════════─────────────────────┘
--- #198 messages/972 ---
══════════════════════════════════════════════════════════════════════════─────────
vibecoders write detailed instructions. "A for loop which iterates through all
of the elements" and not "a package manager that stores all of it's instants"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #199 fediverse/874 ---
═══════════════════════════════════════════════────────────────────────────────────
oh yeah well if SSH keys are so secure then why doesn't every website on Earth
require them
really though why doesn't every website on Earth require them
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #200 fediverse/1596 ---
═════════════════════════════════════════════════════──────────────────────────────
I like locally hosted LLMs because I can use them to summarize my own writing
enough to put them in a post, or an alt-text box.
I like them for other reasons too and it's hard to find people to geek out
about them with.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
|