• 0 Posts
  • 693 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle

  • Docker is a virtualization platform, similar to setting out a Virtual Machine but a lot less resource intense. You need to:

    • install docker on your machine
    • Start/enable the service (this is usually done automatically on most user friendly distros, and if you’re using one that doesn’t I expect you to know how to do it)
    • Add your user to the docker group

    That’s it, docker setup done, now you need to write a compose file, i.e. something that tells docker what do you want to run, usually you get a working example on any project website, and linuxserver.io is a great site for them too, for example for Jellyfin can be found here: https://docs.linuxserver.io/images/docker-jellyfin/

    Just create a folder, create a file called compose.yaml there and put that content in it, now run docker compose up -d and congratulations you have a working Jellyfin server.

    With time you’ll learn what the compose file is doing, for example the ports map ports from the docker to your machine, volumes does the same, so for example the example has /path/to/jellyfin/library:/config if instead you write ./config:/config a folder called config will be created on the same folder the compose.yaml file is and inside the docker it will be mounted as /config which is where Jellyfin will look for configurations. In the same manner you can add /home/myuser/Movies:/Movies and inside docker you will be able to see the contents of /home/myuser/Movies when scanning the /Movies folder.


  • Yes, evil-mode would have bridged the gap, however I didn’t go emacs -> vim in one step, I left emacs back in 2017 because of pinky strain, and other ergonomic issues that made me switch keyboard layout as well (which made me lose lots of agility on emacs) and started using Pycharm for python dev, VSCode for other languages (including Markdown for note taking) and nano for system file edition. I tried some of the other suggestions here like atom, sublime, Kate, etc, but they never became my everything tool like emacs used to be. Very recently I discovered Helix, and I gave it a try and loved it, however the lack of plugin support made me have reservations on diving in. But the interaction mode is very close to vim, so I decided to give vim another go and went through a few tutorials on how to set Nvim up while refreshing muscle memory for vim movements and learning new stuff and it’s slowly becoming the everything tool that emacs once was for me.

    All of that being said, I don’t think I would use evil-mode on Emacs, the reason is that vim is made with those motions from the ground up, whereas in emacs they will be an after-thought so it will probably not be integrated enough (or more likely will require lots of configurations).

    I wasn’t able to see for myself how cin" worked within Vim*.

    It’s simple, imagine you have a line of code like so:

    my_var = "some string with spaces"
    

    If your cursor is almost anywhere on that line pressing ci" will erase the contents of inside the string and place you in insert mode, i.e. the line will look line this:

    my_var = "|"
    

    With | being the cursor in insert mode. There are other similar things, for example ca" (Change Around ") will also erase the quotes, very useful for example to change a hard coded string with a variable.


  • If you had started with that people would have told you that nothing comes even close. The closest things you will find are Atom (archived), Sublime (closed source) and Helix (still very new and no plugin support, but something to keep an eye on).

    Speaking of obsidian, the reason why it took me forever to start using Silverbullet is that Emacs has org-mode which does most of what Silverbullet/Obsidian do out of the box, plus some other stuff that they don’t do (e.g. excel like tables).

    But I wanted something I could edit remotely through my phone and web interfaces are better than using text editors over ssh connections. Also I have migrated from Emacs to Nvim, the reasons are purely ergonomical (pinky fatigue is a real issue) but after switching I found a jump in the way to think about an editor. Emacs is great, don’t get me wrong, and if you decide to learn Emacs I can assure you it will be the best editor you’ve used, but it still edits things at a character level, while there are concepts for matching brackets or quotes changing the text inside quotes in Emacs is very character oriented, I.e. go to start of quote, start marking, move to matching quote, delete, whereas in vim is sort of a higher level language where you say Change Inside Next Quote using cin", and expanded with some plugins you can even do srnq' to Surround Replace Next Quote with ’ (which will change the quotations on the next text from whatever to '). And that’s a lot closer to the way I think so it skips a mental step (plus it’s a lot less keystrokes and no Ctrl for my pinky).

    But those are the reasons why I switched, many people use Emacs for decades without ergonomic issues, whichever of the two you decide to learn you’ll understand why they’re the staple editors for most people who actually choose an editor.



  • This is the dictionary definition:

    the deliberate and systematic destruction of a racial, political, or cultural group

    And this is a quote from Israel’s Defence Minister, Yoav Gallant:

    We will eliminate everything - they will regret it

    He also said:

    We are fighting human animals, and we are acting accordingly

    And here’s a quote from Amit Halevi, a Likud member in parliament:

    There should be two goals for this victory: One, there is no more Muslim land in the land of Israel … After we make it the land of Israel, Gaza should be left as a monument, like Sodom

    Those are just some examples that I could find with a quick search, but they clearly show a will to perform a deliberate and systematic destruction of the Palestine people. Therefore since they act on those wishes I would definitely define it as a genocide.




  • Answer quickly, if noon is 0330 what time is dinner, what is a 9-5 job and what time do you expect to have breakfast. There are lots of adjustments you will need to make, whereas with the current system you know that as a general rule you can expect dinner at around 8, most people to work 9-5, and places to serve breakfast at 8 or 9, so you switch your clock when you arrive and you’re done.

    If you’re a local who never moved timezones z then yeah it makes no difference what the numbers are, you would get used to waking up at 9PM and switching date midway through the day, there might even be 2 different words for tomorrow, one for the next day one for the next date, but the moment you traveled to a different location all of your years of being used to general time where things happen go out the window, it’s much more of a hassle than adjusting your clock and assuming times will be mostly similar.


  • Because that would be a nightmare. “I’ll meet you for lunch at 2AM”, “No, I had a huge breakfast yesterday”. You would need to relearn the times every time you went to a different place, “oh, right, the restaurants only serve lunch until 10AM” or “Sorry sir, but there’s an extra fee for night time services starting 1PM”. Those are much more likely day-to-day phrases than scheduling a meeting with someone from another continent. And you don’t gain anything by this, because whenever you’re communicating across timezones you can simply use UTC as a standard and everyone knows how to convert that to their own time. So there’s no good reason and a lot of drawbacks.



  • I’m surprised no one mentioned My name is Earl, it’s a tv show about a guy who wins the lottery and is immediately hit by a car, he then hears about Karma so he decides to turn his life around by making amends for all of the wrong things he did. It’s a very fun comedy, and it was cancelled on a cliffhanger because the producers specifically asked if they were getting a next season and were told yes.

    This one is the one that hurts me the most, because they knew how the ending was going to be, but didn’t got thr chance to film it, and it would have been perfect. Essentially he would have gotten to an item on the list that he just couldn’t do, whenever he tried something would prevent him from doing it, and it would seem that karma was against him. But then someone would come to him wanting to make amends for something they’ve done to him, and he would ask where the person got the idea, and it would be because someone made amends to him, and he would keep pulling at that thread until he found out that he inspired people around him to make their own lists, and those people inspired others, and so on and so forth so he would feel that he finally did more good than bad and would tear up the list and continue with his life. Oh, and the cliffhanger? It wouldn’t matter, it was just going to be an excuse to bring some celebrity, they didn’t even knew who the father was going to be.

    PS: if you liked My name is Earl, and you weren’t aware there’s another TV show by the same people called Raising Hope which is the same style of comedy, with a bunch of the same actors, and they make constant references to MNiE.








  • Absolutely, but you need to set plugins for that and it’s not easy to get to the same state, but once you’re there it’s easy to surpass it. Vim has a very steep learning curve, this applies to everything from moving around the text to plugin specific stuff, but once you learn it it’s much better than any alternative I’ve ever come across (and I’ve been programming for 20 years, only switched to Nvim recently, although I’ve known basic vim since forever).

    First let me tell you that I don’t know how to do all that you asked, some of it I’ve never needed, but I’m 100% sure it’s possible due to all of the other much more difficult stuff I have on my setup. The stuff that I do have, is much more convenient, e.g. with the cursor on a function/variable I can type gd (Go-to Declaration) to go to the declaration of it, or gr (Go-to References) to go to a list of references for that function/variable, that’s much more efficient than using a mouse, especially when it takes me at most 4 key presses to go to anywhere on the visible screen using jumps. So at the worst case scenario it takes me 6 keystrokes to go to the declaration of something I have on my screen, which even at 70WPM it means a bit over a second, whereas moving your hand to your mouse, mouse to the thingand Ctrl+click probably takes longer and is worse for the wrist.

    But it’s the things that you can only do on vim that make it worth it, really you might gain a few seconds here and there, which do accumulate but it’s the stuff that seems like magic, e.g. have you ever had to replace ' with " on a string because you wanted to write can't? <space>srq" that’s my shortcut for that, i.e. space to enter a “special mode” Surround Replace Quotes with " (srq"), and if I wanted to change from " to ' it would be <space>srq' so only the character I want to use change. Similarly I can do <leader>srb( to replace parantesis/brace/brackets with a parenthesis, heck I can even do <space>srq) to replace a quote with a parenthesis (notice I used open in the other and closed here? Open parenthesis means to add a space, closing one no space, same thing for brackets or braces). Another cool thing this plugin lets me do is ciq (Change Inside Quotes) to change all of the text inside the current/next quotes or dab (Delete Around Brackets) to delete everything inside the brackets and the brackets themselves. And all of that is just ONE plugin that extends the basic around/inside keywords in vim. There are dozens of plugins that completely revolutionize the way you move around and edit stuff. It’s hard to learn, but it’s incredibly rewarding.


  • Great, go with that, what if?

    What if trans people are just mentally ill? Well, if they’re mentally ill then that implies that there’s a cure, we don’t know what that cure is, therefore treating it like an illness is pointless. Instead we should treat it like a condition, i.e. something that the person has to live with. Other examples of conditions are ADHD or Autism, and how do we deal with those? Well, the first step is always for the person to accept that they have that condition and make arrangements so that they can live a “normal” life, these might include taking prescription drugs to normalize their brain chemistry but also behavioral and environmental changes to make their situation more comfortable, including asking people to have leniency on stuff like tardiness which is difficult for them to control. And how is that any different from a trans person taking hormones and asking people to use different pronouns? Why does it matter to me if the person wants to transition? It’s their body, I don’t care if someone does plastic surgery to change their nose, why should I care about their genitalia?. So what if being trans was a mental illness? Until a cure is found nothing changes, whenever a cure gets found then we can reopen the discussion, but unless a person is being a menace to others I oppose the idea of mandatory treatment, so it would be up to trans people whether they wanted to change their body or their minds, and I know what I would choose 100% (I’m a mind, I have a body, changing my body doesn’t change who I am, so that’s an easy choice for me).

    What of gay people are just deviants? First you would have to define deviant, but in any sense of that word it honestly doesn’t matter, because what two consenting adults decide to do, deviant or not, is their own business. So why should you care?. The only “valid” answer here that I can think of involves religion, but we live in a secular society, where we recognize freedom of religion, therefore your religious ideas can’t be imposed onto others, so it’s not a valid argument in our society either.

    So long story short, what if trans are mentally ill? Nothing changes, they should still be able to choose the sort of treatment they would prefer for their “illness”, and hormonal therapy, surgery and asking people to use different pronouns is a valid treatment. What if gays were deviant? Nothing changes, any group of people where all of them are consenting adults should be able to do whatever the hell they want to. So what if you’re wrong? You still should behave the way you already do, so nothing changes.