Programs with custom services, virtual environments, config files in different locations, programs creating datas in different location...
I know today a lot of stuff runs in docker, but how does a sysadmin remember what has done on its system? Is it all about documenting and keeping your docs updated? Is there any other way?
(Eg. For installing calibre-web I had to create a python venv, the venv is owned by root in /opt
, but the service starting calibre web in /etc/systemd/system
needs to be executed with the User=<user>
specifier because calibre web wants to write in a user home directory, at the same time the database folder needs to be owned by www-data because I want to r/w it from nextcloud... So calibreweb is installed as a custom root(?) program, running in a virtual env, can access a folder owned by someone else, but still needs to be executed by another user to store its data there... )
Despite my current confusion in understanding if all of this is right in terms of security, syntax and ownership, No fucking way I will remember all this stuff in a week from now.. So... What do you use to do, if you do something? Do you use flowcharts? Simple text documents? Both?
Essentially, how do you keep track?
Hi! I'm trying to learn Rust, as a little project, I'm trying to build a web scraper that will scrape some content and rebuild it with a static site generator, or using it for making POST requests.
I'm still at a very early stage and I still don't know much, the simplest error handling strategy I know is using match
with Result
.
To my eyes, this syntax looks correct, but also looks kind of a lot of lines for a simple http request.
I know the reqwest docs suggest to handle errors with the ?
operator, which I don't know yet, therefore I'm just using what I know now.
``` fn get_document(permalink: String) -> Html { let html_content_result = reqwest::blocking::get(&permalink); let html_content = match html_content_result { Ok(response) => response, Err(error) => panic!("There was an error making the request: {:?}", error), };
let html_content_text_result = html_content.text(); let html_content_text = match html_content_text_result { Ok(text) => text, Err(error) => panic!( "There was an error getting the html text from the content of response: :{:?}", error ), };
let document = Html::parse_document(&html_content_text);
document } ```
As for my understanding, this is what I'm doing here:
I'm making an http request, if i get a Response
, I try to get the text out of the response body, otherwise I handle the error by panicking with a custom message.
Getting the text out of the request body is another passage that requires error handling, therefore I use the match expression again to get the text out and handle the possible error (In what circumstances can extracting the text of a response body fail?).
Then I can finally parse the document and return it!
I wonder if it is a correct and understandable way of doing what I've in mind.
Do you think this would be a suitable project for someone who is at chapter 7 of the Rust book? I feel like i actually need to build somethiong before keep going with the theory!
Bonus points if it can be activated automatically for certain sites.
I'm tired to find bloated content everywhere.
It's the path of many of us here, now you will hate linux if you come from windows, give it a couple of months and you'll ask yourself how the fuck you could be on windows till now.
I wonder why we don't have AI browser extensions that can recognise and obscure possible ads / unwanted content yet
I will add another amazing alternative i've found, currently working great: https://www.distractionfreeapps.com/ This was exactly what i was looking for.
Hisense A9 with full root + microG
A minimalist eink anti addictive machine that brings smartphones back to an actually useful tool removing literally all the bullshits.
What about sexual and emotional education in schools?
Yeah sure, you have to trust your users
I like Debian with GNOME
Badum tssss
Video editing softwares definetely, kdenlive is nothing compared to stuff like sony vegas.
I guess probably, because Matrix is thought for private chatting, i guess someone else might have had this same idea, i think matrix is opensource so there must be some client that does this.
I can't find it in the settings but is there any way to sort comments by popularity instead of time? Just like it is in normal reddit?
I mean theoretically if you are hosting your own chat server, for example on Matrix, you can easily make all the chats unaccessible from the clients by issuing a command to shutdown your server or simply the chat server service if there's no content cached locally.
I think you can do this pretty easily with a raspberry pi by connecting via ssh..
Just use a shell script that changes the static ip to something else after the command to shutdown the service/wipe out the data (depending on what your goal is) has been issued, or use a vpn or something like that if possible, because anyone issuing the command would need to know your server ip.
And issuing a command by ssh to a remote server both from smartphone or pc should be as easy that you can actually build a very small app for that, or use some app that creates shortcuts that directly connects and issue custom commands.
That way you are forced to give people your new ip every time chats become unaccessible/deleted and someone can't connect back even if wanting to without talking to you, unless you decide you can use the older ip for whatever reason.
Of course not using your real ip but using some service like a vpn or proxy (or tor?) would be much better here, but i don't really know how.
That can give you full power on the chat history and create the said "panic button" for every client involved.
TREE STYLE TAB
There's Bitcoin and lightning network :)
If it was less expensive and provided some privacy i would probably happily pay for it.
This app is amazing! I loved the infinity design, that's so fucking amazing you took the time to bring it on Lemmy, i never really liked Jeroba!
I simply backup the /home folder, where the important files are with duplicity on my home server with ftp once a week, keeping records of the last 6 months. But as that only restores the home folder i also take a snapshot (which takes way more disk space) every month with timeshift too, which stays on the pc. Would be great if i could take complete snapshots via ftp just like with duplicity, but timeshift doesn't do that.
I'm actually curious on Rust, i don't like how dispersive can be JavaScript, i prefer to build smaller, maybe uglier things, but that work and are nicely stable, scalable and can be integrated on multiple different platforms. Also i love that almost everything runs on Cargo and i don't have to choose between 100 things that essentially cover the same target. I also think the Discord idea is quite good, i just want to find someone who is on my same level to grow / build cool things toghether, or small projects on which i can actively partecipate, there's also an association near me that promotes opensource projects and give free code lessons, i might give it a try as well and see if i meet someone there. I'm gonna give it another try before deciding of giving up, i think it is deserved.
And how you deal with that, how do you choose what to do and what not to do?
Honestly when i first got into coding i liked the fact it could give me jobs i could do from every part of the world, that is still on demand and that gave a certain freedom on how you approach technology and customize it to make it your own, i always liked to tinker around with computer and i even have a small home server i use for several stuff. I loved how useful internet was to find informations otherwise unreachable and share stuff without censorship woth everyone, as i said i love the story of the cypherpunk movement, i see bitcoin as a real solution to our obsolete economy, and i thought i would have liked to have a role into changing this shitty system paradigms, my target was to work with lightining network or similar protocols maybe one day. However i feel like i'm changing lately and i'm lacking human interactions so much, there's no point in building something toghether if there's no emotions to share with others before, during and after the process. Maybe it's just how i'm made, but i cannot stick to it, i just get super depressed and i see no point in doing it. Maybe i'm just lazy i don't know, but it is like that.
Adding the fact that sometimes i feel like technology controls me, and not the opposite despite all the efforts i make, feels just super wrong and not how i want to live.
I'm studying webdevelopment so i've had the opportunity to work only on simple stuff so far, but it already feels super overwhelming, sometimes i get lost just in setting up my coding environment, just to realize it will only be one of many i'll need to learn how to work with.
Honestly all this world looks really overwhelming, there's too much stuff going on: each program uses its own languages, its own compilers, uses different tools, libraries, dependencies, package managers and frameworks. You need specific instructions and documentation to learn new stuff at every single thing you deal with.
Whenever i open a project on Github i just feel overwhelmed because there will always be something new and i'm afraid i won't ever get out of that way of operate that "somehow makes things work" and really understand my code and program interactions..
Honestly it's really complicated because you use a program you need and you just see it from the surface, you don't have the time to learn how things work in a slightly more linear way, it would take ages considering the fact you probably need other 10 programs like that. To me it looks just like modern programming is about grabbing different pieces of fragmented knowledge all around web forums, wikis (or chatbots, which for me are just the next way of giving up our ability to learn) and somehow making things work.
I just get overwhelmed even when i take a look to a github page sometimes, even the frontpage has so much stuff you won't ever learn.
Another thing is the online community is the most sparse thing, far from actual real communities there is, you can work with people who won't ever even talk to, and their contribute can be as sterile as just creating a pull request and then leaving forever. You are mostly on your own striclty speaking of human connections and ability to share ideas and feelings.
I'm very fought because i somehow feel like i really love how certain ideals and creativity can be expressed with programming: i love that you can use something practical to solve idealistic, creative and technical problems. I love stuff such as digital etic, cypherpunk movemenet and all the work that opensource devs do to make the industry just a bit better, sometimes even receiving donations for their work, which for me is the highest form of payment, i've never seen someone more happy to pay for something as in the opensource community. But at the same time i'm starting to loathe technology and the internet because, adding on top of everything i said above about the sterility of the community, the difficulty to concentrate on a single thing and the dispersion there can be, i'm also dealing with a 10 years porn addiction since 5 years ago, progresses happens but are really slow and using my computer or phone is a huge trigger even if i'm trying my best to make them as minimal and not addictive as possible. Trust me, in a world designed to get you addicted to your hardware and software, being grown up used to doom scroll every day, it takes a huge amount of time and effort to have your things all sorted up to guarantee yourself a bit more privacy and software that is actually useful and doesn't want to keep you hooked, and at the same time don't be too much of a social outcast. You actually have to re-learn computer, or better saying, to actually learn computer for the first time, because you realize you can't just rely on having everything ready, set up, and just working from scratch without paying in some way, and the price that most big techs set is even higher, and far more subtle than just paying with money.
The software industry right now is shit outside of the few developers that are actually building products FOR users, and not for money, and of course that does mean that if i follow my ideals, i won't nearly have these much economical opportunities as every "usual" developer gets. It's a huge headache having to deal with programs even when i do it for myself, i can't even think of doing that for someone else right now (with all the work and continuity that this requires) and i'm thinking if i should really put my efforts somewhere else.
Per quanto riguarda la libertà di comunicazione, quella è basilare e deve essere garantita: nessuno ti vieta di uscire e di vederti con un amico, così come nessuno ti vieta costruirti il tuo software e hostare pubblicamente la tua istanza per comunicare con gli altri (per ora). La differenza tra un server e l'ossigeno è che l'ossigeno è gratis e ovunque, mentre l'attrezzatura, la corrente elettrica, i programmatori che si occupano di mantenere il software sicuro e stabile e la connessione a internet non lo sono, ed è giusto che ci sia un ritorno per qualcuno che lavora per offrire tutto ciò. Poi potremmo argomentare sul fatto che, essendo la comunicazione un diritto fondamentale, ci potrebbero essere social mantenuti coi soldi pubblici (tasse), però a quel punto invece di sottostare alla volontà delle big tech starebbero alla volontà degli stati e forse solo in qualche caso (nei paesi democratici) a quella delle persone. In ogni caso sarebbero centrali, censurabili e controllabili. Anche mantenere delle istanze di Lemmy ha un costo e richiede un lavoro, ma esistono grazie alla buona volontà di chi decide di investirci risorse senza nulla, o con poco, in cambio. Proprio perché vuole creare un'alternativa. Io vedo la decentralizzazione come una soluzione, la più promettente per quanto riguarda anche l'integrazione di un sistema economico a sua volta decentralizzato, dove veramente il potere decisionale delle persone conta più di tutto, detto questo il capire come integrare tutto questo in maniera sensata, sostenibile e scalabile (cioè non come fanno i paladini delle shitcoin che si autodefiniscono "finanaza decentralizzata") è un bel lavoro.
Con "sforzo attivo" intendevo semplicemente dire che un utente invece di pagare coi propri dati e la propria attenzione inconsciamente, dovrebbe deliberatamente decidere di spendere le sue risorse economiche (che indubbiamente richiede uno sforzo mentale maggiore).
Bibliogram is being discontinued, and Barinsta doesn't work anymore too..
Is there some good soul providing an instagram frontend or app? I really need it to see events, but i don't want to get caught in those useless post suggestions and ads, i just wanna see the content i chose to see.
These are the things i care the most: I want a smartphone i can repair on my own (battery and screen are the essential parts), with a bootloader easily unlockable, even better with verified boot / supporting a custom OS with re-lockable bootloader.
I don't care if it's supported by an official foundation or by custom ROMs foundations, i want something that will most likely get the longest term updates and security patches.
Does a device like this even exists?
I know that probably one of the few alternatives here is the fairphone, however it's really expensive and i've read many negative reviews of it (pieces staying out of stock for months or stuff like that), and i can't see the meaning of having a repairable smartphone if i have to spend the same money that i would spend buying 3 smartphones with the same specs that would last me the same time. That said, i know the market isn't favouring these kind of businesses and these devices NEED to be expensive in order to keep existing, but i would like to know some other possible alternatives that satisfy these requirements, if they even exist.
Honestly i've come to a point i would probably prefer spend my money on a guitar instead that on a smartphone and just give up, the industry is terrible 😅
I regurlary took nandroid backups on my pc with TWRP (adb backup --twrp) of my phone, one day i needed to restore one and i found out i wasn't able to, the restore would stop midway and i needed to completely reset my phone..
Probably the corruption could have happened because i originally took the backups on a PC with a Ryzen processor, that's what i managed to figure out.
Anyway now i wanna make sure to have safe and healthy nandroid backup, is there a way to check this without having to try to restore on an emulator every time?
From a first perspective it actually looks good! I think these kind of regulation were really needed. But i would like to hear your opinions!
The new fairphone 5 came out, it looks cool but the price is really, really high..
If it's a phone that can really last 10 years it could be good, but is that true? Is it worth it? I could get the one with /e/os from Murena because i want a degoogled phone with a bootloader locked, but is it usable on a daily basis?
Other people are having the same issue, anyone knows if there's any solution out yet or if this is gonna be patched?
I've been proudly using Lineage OS with microg on my phone for a while now, and while it wasn't ideal, it was good for my daily use.
Now that i'm traveling, however, i really miss some important features, like a properly working geolocation service (i'm using the Mozilla one and it's slow and buggy), and a proper navigator, sad to say that google maps works just too well for certain things like buses or trains.
Magic earth was okay till i moved with car, i could get a position on google maps and then get there with my car and the navigator was working good, however when i need to move by foot or transports is terrible, it takes 10 minutes to find your position approximatively, only working with mobile data, and it doesn't follow you when you move..
So i found myself in some unhappy situations where i would need to rely on someone else's phone to not get lost in a city or to call an uber to my right location. I also got lost when i needed to move only by walking. Of course you can get wherever you want with older methods, like asking to people or signs, but sometimes you just need quick solutions that are reliable.
Is there any real way to use gmaps unonimously except that with the containerized version that graphebe offers?
I do not really want to buy a Pixel and give google more money.
As a programming student i feel sometimes we go a bit too technical and we lose the philosophy and the main point of what we are doing.
What are some great books (classics and none) to read on programming?
I'm interested to the topic of programming and computer science in general but especially to the cypherpunk philosophy and to concepts like the story of internet, the philosophy that led to the beginning of it etc..
Buggy software, not so user friendly, things don't work, new things to learn..
Sometimes you just wanna do a simple thing and you cannot do it and that really undermines your self esteem.
You try to find little working solutions when big techs with armies of engeneers and programmers are working against you.
Aurora store stopping to work, apps getting blocked on lineage os or rooted phones, Reddit cleaning out all those amazing third party apps, Linux that wanna make you destroy your pc at times, Firefox remaining the only real alternative to chromium (only god knows for how long yet), google wanting to DRM everything, ig blocking my account because i was using barinsta (i cannot even delete it), Newpipe getting stuck after 1/4 of the video.
Sometimes you find half of your software stops working and you need to go and understand why, fixing or checking for alternatives..
Is it possible that we have from one side mass tracking and surveilance and from the other a (sometimes understandibly quite not organized) series of freely mainteined software.
Can't we just find a new way of monetize stuff without ads? So that we can build really nicely working software without all the shit that comes from the need of having to track the user? Are there real alternatives? We need to get organized and actually starting to build a better web and software, but i really think an economical incentive is still very much needed for it to be stable and usable by everyone.
Sorry this is more of a rant than a real post, sometimes everything really gets frustrating and you have to deal with much more serious shit in life that doesn't leave time for checking out why your Newpipe, your gps or home server doesn't work..
I wanna buy an ebook reader but i don't want any amazon or other companies shit in there, just something i can connect to my pc, pass ebooks in different formats into it and read.
Hi! I'm learning code: I've been doing a bit of JavaScript, and now i'm switching to TypeScript before going through frameworks.
One thing i'm quite missing is the possibility to have a personal documentation environment: something that let me write documentation on what i'm learning WHILE writing code and following my courses, using something like typedoc or javadoc.
I have been using Obsidian, that is good for markdown content, and i can generate docs with typedoc-markdown-plugin that i can then open on obsidian. However i would like to have both my code and my docs all togheter, not for a single project but for all the courses and little projects i'm doing, having it all togheter stored in one place, and possibly being able to share it as a portfolio in the future.
I don't specifically need to show the code in this environment, i just need the docs to be visible and to be pointing to the specific sections of the environment holding my code (wich can be github links like the ones that typedoc automatically add). I would like to have one directory for each project containing both my code and my docs.
Something like a programming digital garden! But integrated with tools that generate documentation from my code.
I've tried the typedoc-hugo-plugin to host a static docs website with Hugo, but it's not quite mantained and came with a lot of bugs, like broken links.
I'm trying to use Docusaurus and docusaurus-plugin-typedoc; it looks quite good, however i understood it is designed more to hold documentation for a single big project than for a series of small (learning oriented) projects. You need to configure each extra (more than one) docs folder to get it work properly, which is something i would avoid, if possible.
I love all the TSdoc standard thing, but i don't really know how to put everything togheter.
This seem quite counter intuitive and to be bloating the project: i'm trying to install tsdoc linter, but npm adds like other 50 packages alongside with it, is this the expected behaviour? Why is it so?
A project that could easily be 5MB ends up being like 60MB
I see i can find a foss version on f-droid, and that's something not a lot of social networks can have, i don't really like all the crypto bullshit and ads testing they've been up to lately, but still looks better to me compared to what Reddit have done lately or what other platforms have done in these years..
I don't know about their privacy feature, but i wouldn't trust their chat as for as far as i knew they were not end to end encrypted some time ago (except for secret chats).
Anyway it still looks like one of the at least still decent platforms out there, or am i wrong?
I'm doing a JavaScript course, i got to know typescript and i definetely see it as a way better alternative and way of writing cleaner code in the usually messed up js.
Anyway it's not quite clear to me what i should do now, because i understand javascript to a decent level, but i woul love to use typescript in the future for my projects..
It's knowing javascript in depth better or should i opt into a new course that teaches typescript in depth, if so, do you have any resources (free, paid courses, free docs like MDN or javascript.info) to suggest me?
I'm following the "complete javascript course" from jonas schemdtman, that i got suggested from coding communities, on udemy, which is an 80 hours course that looks quite complete to me, it teaches about the js engine, its compilation style and its runtime too, not just the code, is there anything similar? My goal would be opting into typescript and really digging into it, really learning how it works on code level and behind the scenes.
I've been using linux for some time now, i would still say i'm quite a noob but i've tried different desktop environments, for my experience i found GNOME to always be suited for me, anyway i heard many good opinions on KDE and i would love to try that too, i've tried cinnamon before and couldn't really see myself using it, i've seen Kubuntu and looks quite lovely, what's in your opinion the distro that best implements KDE on Debian or preferably Ubuntu?