[–] -1 points 5 months ago*

Better how? If you want latest updates maybe your wanna try Fedora. Personally I would go with EndeavourOS with is based on Arch Linux btw. If I want latest I would go with bleeding edge

Otherwise stick with Debian.

  • source
  • [–] [S] 1 point 2 years ago

    Thanks.

    The link suggests it might be undone after GRUB updates. Maybe I will just edit the line and at the init level at the boot menu.

    Ah, yes. I felt a bit uncomfortable posting here, glad to know linux4noobs exits here; subscribed.

  • source
  • parent
  • context
  •  

    One can boot into the command from grub by editing kernel parameters.

    Another way is edition the grub configuration and setting GRUB_CMDLINE_LINUX_DEFAULT="text". But now it's not possible to boot into a graphical env.

    So is there way to create menu entry just for command line so it will be one of the ways to log into the system?

     

    I use Helix Editor and by default it uses clangd as LSP server.

    But when I use "newer" C++20 features I get warning messages in the editor that they are only available in "later" C++ versions or I get straight up error messages.

    So how do I tell clangd that I am writing C++20 code? I am guessing passing an argument (-std=c++20) or creating a "project properties" file...

    This is the Helix Editor configuration file, languages.toml:

    [[language]]
    name = "cpp"
    language-server = { command = "clangd", args = [] }
    auto-format = true
    

    Please let me know the right way to do it.

     

    The documentation uses is in the example for "declaration patterns" but the book I am reading uses a switch statement. But when I try to run the code I run into errors.

    using System;
    
    public class Program
    {
      public static void Main()
      {
        var o = 42;
    
        switch (o) {
          case string s:
            Console.WriteLine($"A piece of string is {s.Length} long");
            break;
    
          case int i:
            Console.WriteLine($"That's numberwang! {i}");
            break;
        }
      }
    }
    

    Error:

    Compilation error (line 7, col 6): An expression of type 'int' cannot be handled by a pattern of type 'string'.
    

    EDIT

    Changing from

    var o = 42;
    

    to

    object o = 42;
    

    worked.

    Full code: https://github.com/idg10/prog-cs-10-examples/blob/main/Ch02/BasicCoding/BasicCoding/Patterns.cs

    view more: next ›