• 2 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: July 14th, 2023

help-circle
  • Huh, I thought most keybindings where tied to the position of the keys, being vim “motions”, as in how you move your fingers or something like that.

    Maybe there are vim layouts for dvorak that I can use? Because I think I’d prefer to have the keybindings in the same place.

    I use a dvorak-based layout personally, but spanish QWERTY at work. Some time ago I learned EMACS with qwerty, so when I switched to dvorak my muscle memory was ruined, even if I knew the keybindings. I wonder if it’s worth it learning 2 keybindings to be able to switch layouts


  • Makes sense. Spanish keyboards have Ñ instead of semicolon, so it’d break. But I’m sure other things break in France, where they use AZERTY. So it’s not that universal.

    That makes me wonder, is there a way to get a keypress based on the position of the key, rather than the keycode? Would that be useful? Would assuming everyone is using a normal keyboard with letters in the same place even make sense? How would that interop with things like QMK?


  • My main problem with vim is that they use hjkl instead of jkl; , it doesn’t make sense to me why they’d do that.

    And my second problem is that I use my own custom keyboard layout instead of qwerty, so I’d have to remap all the keys. Why spend hours learning and then rebinding all the keys when I can instead play some Dota? /s



  • Since we are talking about printers, doesn’t CUPS require drivers to be installed? I have an EPSON L3150 & L395 at work and they are the only thing keeping me from installing linux in all the computers.

    So basically I just need to set the print quality to high, and use the scanner. I’ve tried the official DEB drivers in Ubuntu, compiled the source code in Ubuntu & Arch, and nothing works. I can’t set the print quality (the option isn’t even listed when printing/in the printer settings)

    Those epsons have their own scanner program, Epson Scanner or something. Installed from DEB and source, they work only sometimes. Tried skanlite, also sometimes work. Sometimes it detects the scanner, other times it doesn’t.

    Tried using CUPS, it still required me to install the printer drivers.

    Tried generic built-in drivers, don’t work.

    Tried epson-inkjet-printer-escpr from AUR. Doesn’t work.

    All done while having the printer directly connected to the PC. Nothing reliably works.

    How does one even setup IPP? It’s easier to find documentation about the latest JS frontend framework than setting up IPP

    Am i dumb?



  • Yeah, I once tried to switch to Kubuntu, wanted my macos style global menu. In arch I just

    yay -S plasma5-applets-window-appmenu
    

    In Kubuntu, I had to download source and spend 2h compiling, every 5 minutes CMake complained a dependency was missing, searching how the dependency package is called, installing, now another dependency…


  • You have to accept to being tracked by Google, having an advertising id, all the data Firebase collects. Their ToS is large.

    Users were asking for it, that’s true. I guess users don’t really care about being tracked, allowing google into their phone and indirectly supporting them controlling the web, thus enabling them to do things like manifest v3 or the web integrity API.

    Ads? understandable, the dev has bills to pay. Not open source? Purists may hate it, but not the end of the world. Tracking? Google? No thanks, the beautiful design is not worth it.




  • From my internal IP (192.168.1.xx), I don’t access it from the outside (can’t open ports on residential connection in my country :c )

    All my devices are connected to my own router, then that router connects to my isp router, which then connects to the internet, so its very weird.

    The only thing I configured was reserving an ip address for my server on my router, but I don’t think that should influence…



  • TIL I have to manually enable hardware acceleration. Will try it. Still not a good default experience, hope it gets better soon.

    I don’t think its a issue with wayland mode, I tried Xorg/Wayland/Nvidia/Amd/Intel/Arch/Ubuntu, always had that problem.








  • How about “php enables me to code like a moron”, or even better, "php breaks common conventions and forces me to think about every little detail and special edge case, slowing me down if I don’t want to accidentally ‘code like a moron’ "

    Nested ternary operators emerge because of the lack of if/switch expressions (which is C fault), so they are “useful” (they shouldn’t be). However, PHP is the only language that treats it as left associative. This has 2 problems:

    • You are forced to use parenthesis. Some (insane) people might do: (cond1) ? “A” : (cond2) ? “B” : “C” And it makes sense. Its ugly af, but it makes sense. But PHP now forces you to use more parethesis. It’s making you work more.
    • It breaks convention. If you come from any other language and use ternary operators, you will get unexpected results. After hours of banging your head against the wall, you realize the problem. And now you have to learn a new edge case in the language, and what to do to actually use the language.

    “But you shouldn’t use ternary operators anyway! Use if/switch/polymorphic dispatch/goto/anything else”

    True, but still, the feature is there, and its bad. The fact that there are other alternatives doesn’t make the PHP ternary operator worse than other languages’ ternary operator.

    PHP works against you. That’s the problem. The ternary operator is not a good example, since there are alternatives. But look at something so simple, so mundane like strpos.

    If strpos doesn’t find returns false. Every other language returns -1. And if you then use this value elsewhere, PHP will cast it to 0 for you. Boom, your program is broken, and you have to stare at the screen for hours, looking for the error.

    “BuT yOU sHoUlD AlwAyS cHEcK tHe rETurN eRRor!”

    And even if that’s true, if we all must check the return value, does PHP force you to do so? Like checked exceptions in Java? Or all the Option & Result in Rust? throws, throws, throws… unwrap, unwrap, unwrap… (Many) people hate those features

    PHP works against you. And that’s why its bad.