=== ANCHOR POEM ===
════════════════════════════════════════════════════════───────────────────────────
┌─────────────────────────────┐
│ 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 │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
=== SIMILARITY RANKED ===
--- #1 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 │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #2 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 │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #3 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 │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #4 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 │
╚═════════╧════════════════════════════════════════════════════════════┴──────────┘
--- #5 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 │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #6 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 │
╚═════════╧══════════════════════════════════════════════════════════──┴──────────┘
--- #7 fediverse/3735 ---
════════════════════════════════════════════════════════───────────────────────────
@user-203
That's what the GPU is for!
Too bad programming GPUs is unnecessarily arcane.
I've recently been into this programming language called "Chapel" because it
abstracts away most of the complexity surrounding multiprocessor code (unless
you want to go deeper and more specific, in which case it allows you to do so)
https://chapel-lang.org/blog/posts/intro-to-gpus/
Also distributed computing, which is totes the future, just sayin'
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #8 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 │
╚═════════╧══════════════════════════════════════════──────────────────┴──────────┘
--- #9 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 │
╘═════════╧╧══════════════════════════════════════════════════════════════════════─────┘
--- #10 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 │
╘═════════╧╧══════════════════════════════════════════════════════─────────────────────┘
--- #11 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 │
╚═════════╧════════════════════════════════════────────────────────────┴──────────┘
--- #12 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 │
╘═════════╧╧══════════════════════════════════════════════════════════════─────────────┘
--- #13 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 │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #14 fediverse/2066 ---
═════════════════════════════════════════════════════──────────────────────────────
@user-1159
AKA giving a puppy murder-bot a narrative that it executes as if it was a
puppy-person engaging with a loosely interpreted sequence of events as
described by the continually updating logs provided by the image transcription
camera device. Refererencing of course a memory bank, which may-or-may-not be
in read-only-memory. It doesn't know, of course, how could an LLM tell you how
it shows text on the screen (like, through a website, through the terminal,
through a text message, through discord, through Telegram, through
text-to-voice transcription applications pretending to be your mom, etc)
errrr I mean look how cute he is! He loves you, yes he does, such a good
person yes you are, oh? me? I'M A GOOD BOY? NO WAY that's the best thing I've
ever heard! Wow! I never want to leave your side, please don't go to work!
Look how sad I am, don't you think you should quit and move to the forest
where I can be charged by solar panels and keep the countryside clear of
ravenous ducks and pigeons 4you?
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #15 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 │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #16 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 │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #17 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 │
╘═════════╧╧═══════════════════════════════════════════════════════════════════────────┘
--- #18 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 │
╚═════════╧═══════════════════════════════════════════─────────────────┴──────────┘
--- #19 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #20 fediverse/3162 ---
═══════════════════════════════════════════════════════────────────────────────────
I wrote a script which scrapes every issue of Nintendo Power from a neat and
cool archive.
please don't use it all at once#!/bin/bash
set -euo pipefail
sleep_duration=5
DIR="/home/ritz/documents/nintendo-power"
touch "${DIR}/download-bookmark"
bookmark=$(cat ${DIR}/download-bookmark)
for i in $(seq ${bookmark} 285);
do
echo "sleeping before downloading number ${i}"
sleep ${sleep_duration}
formatted_number=$(printf "%03d" ${i})
wget "https://myrient.erista.me/files/Miscellaneous/Nintendo Power Issues
1-285/Nintendo Power Issue ${formatted_number}.cbr"
rm ${DIR}/download-bookmark
touch ${DIR}/download-bookmark
echo ${i} >> ${DIR}/download-bookmark
done
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
|