cows_are_underrated

joined 2 years ago
[–] cows_are_underrated@feddit.org 1 points 19 hours ago

I literally booted back into the old snapshot (I could switch between them in the boot menu). It was fully functional, except Internet.

[–] cows_are_underrated@feddit.org 1 points 1 day ago (2 children)

Well, i could boot into the snapshots, but I didnt have Internet. I have no clue how the fuck this is even possible, but it happened anyway.

What's the difference between Joghurt and the US? When you leave Joghurt alone for over 200 years, it develops a culture.

[–] cows_are_underrated@feddit.org 1 points 1 day ago (4 children)

That exact toggle button did not exist on my machine (idk why), so I installed tried to force x11 by disabling Wayland in some config file and that bricked everything. Idk how, I did not bother enough to fix it, since that installation was kind of fucked anyway and moved on to manjaro. It took probably only about 1 month from the installation to this.

[–] cows_are_underrated@feddit.org 1 points 2 days ago (6 children)

I went from Mint directly to arch, back to endeavour, fedora, OpenSuse and currently I'm using manjaro on my PC and fedora on my laptop. Endeavour was also a very good experience. I can only recommend it.

OpenSuse however was a total Desaster. I couldn't switch back to X11,bricked my window system in an attempt of trying so and it even broke so bad, that on all of my older system snapshots (that were older than my attempt of trying to switch to X11) I did not have Internet even tho my LAN cable was connected.

  • Install the edit-server package for emacs (M-x list-packages, wait for the emacs package manager to load the list, go to edit-server, hit "i" to flag for install and "x" to execute, or M-x package-install and just type out "edit-server").

Jokes on you, I already mapped M-x package-install to S-p i.

But that also sounds interesting. Will definitely try it out (and if its just for writing Lemmy comments)

[–] cows_are_underrated@feddit.org 2 points 3 days ago (2 children)

Will definitely look into it. Currently Emacs and Firefox are about my main applications I use (except spyder, which is a python IDE)

Thats exactly the kind of stuff I meant.

They are, the small difference is, that they are trying to do it with rat neurons if I remember correctly.

[–] cows_are_underrated@feddit.org 2 points 3 days ago (4 children)

Damn, didnt know you could do that. Will definitely look into it.

[–] cows_are_underrated@feddit.org 4 points 3 days ago (2 children)

Vim and emacs are really worth it when you do a lot of writing and editing (whether it be code or text). If you only occasionally edit config files nano is completely fine. However I do recommend to learn stuff like exiting and saving in vim because no matter what, about every single distro has some form of vim so you might encounter it in imporant scenarios and then you know your way around.

I will also info dump this to people who dont know what emacs is.

 

I personally havent really used emacs for organizing, but I really like it for bash coding and writing software documenation in orgmode. I am even starting to get a little bit comfortable at writing my .emacs file but at some point I will have to do a lot of reorganizing and updating and I kind of dont want to do it (I still use .emacs and not emacs.d/init.el and all keybindings still use the legacy global-set-key command).

Apart from the work I am putting into it it is really great, because when I actually get to do stuff I can do so with great efficency. I am even starting to miss my emacs keybinds when not using emacs (especially ctrl-k for killing from your cursor position to the end of the line ctrl-a for jumping to the beginning of a line and ctrl-e for jumping to the end of a line). At this point when I am writing stuff in emacs (as example working on a bash script) I at maximum use my mouse for scrolling.

Fuck, I really did turn into the meme (and I am not even using it for longer than 4-5 months at maximum)___

 
 
 

Someone once told me somewhere, that if I am trying to learn rust, I should learn C first, so that I know how to shoot myself in the foot, learning to avoid doing so, so that the borrow checker of rust doesnt seam to unforgiving (since you somewhat know, what happens if you dont follow best practices). So thats what I did (somewhat) for the past 6 months. I wrote some stuff in C, but mainly I had quite of a deep dive into operating systems (mainly linux), working mechanics of memory and the CPU and a lot more (I will try to make a list of the stuff I learned and the ressources used below). My question to you is, if there are any additional concepts/things I should learn beforehand, to start learning rust.

The (somehwat complete) list of things learned for the past 6 months:

  • Stack Behaviour (Why its so fast, what its used for,....)
  • The heap (why its useful, but dangerous)
  • Theoretical Concepts of threading (Concurrency vs. paralellism)
  • Theory of race conditions (how and why they occur, and some tricks to avoid them)
  • Concepts of Memory allocation on an OS level (Address Spaces)
  • System calls and the separation between kernel and user space
  • Signals
  • Basics of Inter-Process-Communication
  • CPU-Scheduling (CPU-/IO-Bursts, context switches, different scheduling algorithms up to ROund RObin (based on complexity))
  • How loops, conditions and function calls get implemented in Assembly / how the CPU performs these
  • Bitwise Operations

I probably forgot a significant part of the stuff I learned, but its quite hard turning it into a list, without writing a whole book, and trying to remeber everything.
Most of these things are mainly theory, since I havent gotten around to code that much in C. However I definitively have some experience in C. This includes on how to handle pointers, basics of handling the heap, strings (even if I absolutely hate them in C) and some system calls (I played around with sbrk for custom memory management without malloc).

The ressources I used for learning is primarily the YouTube-Channel CoreDumped (I highly recommend), LowLevel and some other ressources, but these were the most helpful ones.

So, feel free to send me down my next rabbit hole before starting rust.

 
88
submitted 1 month ago* (last edited 1 month ago) by cows_are_underrated@feddit.org to c/selfhosted@lemmy.world
 

So, I am soon going to finally set up my first home server. Exams are not that far away, I am motivated as shit, my first own domain is bought and I want to level up my sysadmin skills.

Currently my plans look like this:

  • Host Jellyfin
  • Host my own NAS
  • Some form of hosted musicstreaming integration with my local music
  • Automate Backups and push them on my server
  • make all of the above things available where ever I want using my own self hosted domain.
  • run my own dns

In the long term I also want to be able to host my own webapps, since I will soon start to develop one for someone.

Now I want to know what suggestions do you have, for stuff thats really cool and that I can selfhost.

Edit: thanks for all the replies. Definitely going to look into this.

 

These times may also create some really strong women.

 

I am searching dor some form of software that I can use to watch all the different media I have stored locally, similar to Jellyfin. However the Problem is, that I do not have a dedicated media server (yet), so I am searching for something that I can use like Jellyfin, but that just runs locally. Everything that I have found is aimed at media servers. Do you have any suggestions?

 

So, I just started getting into emacs and now I am curious about what cool features there might be, that I dont even know exist. No matter if its packages or keybinds.

Would also like if someone has some suggestions for using emacs for coding (primarily python and c) and would really appreciate if someone knows how I can set a background image to emacs.

 
 
 

It was literally like that. I had a script of about 310 lines and the main function was like 10-20 lines of code. I had a very nice Setup of objects that handled all functionality possible behaviours independent and so my main function was just receiving a user input from another function and add accordingly which included like 3-4 different scenarios that are being handled in the main function.

view more: next ›