• 6 Posts
  • 47 Comments
Joined 2 years ago
cake
Cake day: February 1st, 2023

help-circle

  • One of my university professors wanted us to program using DrJava, so of course Java 8 it is.

    Why did he want to use that? Because it was similar DrRacket, which he made us use in the previous term to program Scheme (which is just lisp for teachers). Of course that was just us being all modern and such, he himself used DrScheme, the deprecated precursor of DrRacket.

    This guy is so old that my high school Systems teacher had him as her university professor.

    He has a fancy current gen MacBook Pro that he uses for his stuff. Then when it’s lesson time he whips out a windows 95 netbook and a daisy chain of adapters from VGA to thunderbolt.



  • edinbruh@feddit.ittoMemes@lemmy.mlAn empire is what it is
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    4
    ·
    16 days ago

    No, the People might just be stupid. You see, many people are gullible and get convinced easily by rallies of some rich politicians. Sometimes, they might even believe that one day they will be as rich as them, and so they see something good for the rich as something good for them. But, unless the people are threatened to vote, or the polls are manipulated, it’s still democracy


  • edinbruh@feddit.ittoMemes@lemmy.mlAn empire is what it is
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    6
    ·
    16 days ago

    “Democracy” has nothing to do with “free healthcare” or any of those things listed. Democracy only means that the citizens vote. They can vote for stupid/bad things but it’s still a democracy. Similarly, a dictatorship that does some good things is still a dictatorship



  • edinbruh@feddit.ittoLinux@lemmy.mllooking for a RDP client
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    17 days ago

    Have you tried gnome connections? It’s more on the “quick and easy” rather than “professional” side, but maybe it does the job.

    Tho I wonder whether it’s more of a windows-side issue… maybe windows 11 requires some kind of online authentication that cannot be implemented by other clients, and maybe this authentication can be turned off. I’m merely speculating here, but I know that remmina works for windows 10 so it’s suspicious.


  • AMD has an nvdec/nvenc equivalent called AMF, on Linux it’s going to be deprecated in months in favour of va-api.

    To my knowledge, it does not have an nvfbc equivalent. Which anyway, Nvidia has deprecated on windows in favour of a windows-native screen capture with a name I don’t remember.

    For what is worth, va-api encoding + kmsgrab works pretty well for me, it does have some latency, but nothing too unacceptable. Probably less than the one caused by the Bluetooth controller. And none of this is vendor specific, you can get it working on Intel, AMD and Nvidia (Nvidia needs a compatibility layer, but it works). Also, it works on Wayland, but sunshine needs some privileges to work.

    Sunshine supposedly supports nvfbc with patched Nvidia drivers, even on Linux, I haven’t tried it, so I don’t know if it works on Wayland. I don’t see why it shouldn’t, as long as you give sunshine privileged permissions (like you need for kmsgrab). Even without nvfbc you can use nvenc, so you don’t need the va-api compatibility layer.

    Supposedly, since this Nvidia driver release nvfbc is used as backend for pipewire screen capture, so it should just work for apps like OBS, I don’t know if sunshine has intention to move to it.

    In general, screen capture on Linux pretty much works, even on Wayland. The general sentiment that it’s broken is actually old news.

    There’s a caveat though. Proprietary apps tend to use outdated stuff (e.g. electron builds from 5 years ago) and thus don’t support screen sharing on Wayland.



  • The pc ecosystem is modular by design. The kernel will figure out itself the available hardware, moreover there are only two major CPU manufacturers (in the pc space of course), which means you have only two platforms to support.

    Mobile phones instead are not modular, they use SoC. While most common socs are from Qualcomm and mediatek, there are a lot more smaller manufacturers. Plus, even if most often they use the same reference design for compute cores, the rest of the soc is often custom and wildly different from others. All of this to say that the kernel needs to already know exactly how the specific soc of the device works, instead of figuring it out on the fly. Which is why you need to check compatibility.

    The brick thing instead is because the bootloaders in these devices are usually very locked down, so sometimes you need to replace the bootloader with a more open one, with all the risks that this entails






  • Splitting the thread here. I personally used i3wm for more than a year and became white fast with it, then I had to use windows for a month and when I went back to i3 it was a pain, I couldn’t do shit. It was at that moment I decided “why can’t I just stop forcing myself to this PITA and just use the mouse faster?” And I never used a tiling VM again, personally I use kde on desktop and gnome on laptop.

    But, I can see the appeal of automatic tiling, so I raise you this: scrollable compositors. You get both the benefits of automatic positioning and oc moving things in and out of the way, without keeping track and managing 10 virtual desktops


  • A couple years ago it could never have worked properly, Nvidia drivers didn’t support Wayland. Because Nvidia refused to implement drivers that followed the Linux semantic (which admittedly was outdated). About a year ago, after many years of work, they published a new semantic that Nvidia was willing to implement. Alongside that, a new Wayland protocol was added so that compositors could opt-in the new semantic when the driver supports it. So, to use Wayland with Nvidia you need both a recent enough Nvidia driver (I think anything after last July) and a compositor that implement the linux_drm_syncobj_v1 protocol. I’m not even sure hyperland supports it, so you should also look into that before continuing.

    P.s.: gnome’s mutter, and kde’s kwin (which are the name of their compositors) both supported that protocol since the very day after it was released, so those are guaranteed to work if they are recent enough, unless if you are on Ubuntu lts which stripped it out for a pet peeve about adding features to lts releases.


  • I don’t have such a laptop, so I can’t really speak for experience, but I can tell you what I know.

    You definitely can use prime to render a program on the dgpu and display it on the igpu, this requires basically no configuration at all on wayland, I even did it on my desktop computer when Wayland didn’t run on Nvidia. But I don’t know if you can or why you would use the dgpu for everything instead of only selected programs (games).

    What you really need is a compositor that properly uses both GPUs and can use the ports of both at the same time, hyperlaneld might just be bad at that. Gnome should be in a better position so you can start from here and see if gnome behaves better.

    Also, are you sure you want to use a tiling compositor on a gaming laptop? Wouldn’t it be a better experiment to just go with gnome? It’s visually polished and goes well with trackpads.


  • Unix needed only \n because it had complex drivers that could replace \n with whatever sequence of special characters the printer needed. Also, while carriage return is useful, they saw little use for line feed

    On dos (which was intended for less powerful hardware than unix) you had to actually use the correct sequence which often but not always was \r\n (because teleprinters used that and because it’s the “most correct” one).

    Now that teleprinters don’t exist, and complex drivers are not an issue for windows, and everyone prefers to have a single \n, windows still uses \r\n, for backward compatibility.


  • Try to draw a full semicircle and extend the 7 units long red line, you will notice it falls on the other corner of the semicircle. In fact, every way of drawing two segments from a semicircle corner to the same point if the circumference forms a right triangle.

    Now, on the original figure, draw the hypotenuse of the red triangle, you will notice the hypotenuse is as long as the extension you draw earlier, because both start from the same height and fall on a corner of the same semicircle. That means that you can find the extension by calculating the hypotenuse.

    Now, you can calculate 7+extension to get the cathetes of the extended triangle, and it’s hypotenuse is the diameter of the semicircle. You can divide the diameter by two to get the radius.

    Now, you notice that: X, the radius, and the red hypotenuse form a right triangle, and you know the length of the red hypotenuse and of the radius, so you can find X.


  • Try to draw a full semicircle and extend the 7 units long red line, you will notice it falls on the other corner of the semicircle. In fact, every way of drawing two segments from a semicircle corner to the same point if the circumference forms a right triangle.

    Now, on the original figure, draw the hypotenuse of the red triangle, you will notice the hypotenuse is as long as the extension you draw earlier, because both start from the same height and fall on a corner of the same semicircle. That means that you can find the extension by calculating the hypotenuse.

    Now, you can calculate 7+extension to get the cathetes of the extended triangle, and it’s hypotenuse is the diameter of the semicircle. You can divide the diameter by two to get the radius.

    Now, you notice that: X, the radius, and the red hypotenuse form a right triangle, and you know the length of the red hypotenuse and of the radius, so you can find X.