[-] renzev@lemmy.world 1 points 4 hours ago

Those template errors feel almost passive-aggressive to me. Almost as if the compiler is telling you "Here are all the ways in which I tried to make your shitty code make sense, and yet it still doesn't work" lol

[-] renzev@lemmy.world 1 points 4 hours ago

For vim users, there's also vimtex, which, on top of doing what entr does, has a "quick fixes" feature that basically creates a split with a concise list of errors that's much more readable than pdflatex (or similar) output

[-] renzev@lemmy.world 12 points 1 day ago* (last edited 1 day ago)

I guess they wanted to make the screws even more tamper-resistant? With the standard Torx Tamper-Resistant screws, they could often be bypassed by chiseling the pin away with a flathead and a hammer, and then using a standard Torx driver. Can't do that with the pentalobular design!

[-] renzev@lemmy.world 6 points 1 day ago

I know HP uses those on some computers. Pretty neat design, if you ask me!

[-] renzev@lemmy.world 20 points 1 day ago

There’s only one type of torx

There isn't. There's Torx, Torx Plus, and Torx Paralobe. See here for more details: https://www.semblex.com/en/pdf-files/technology-files/torx-paralobe-pdf/ . Plus there's also the ttap and tamper-resistant variants shown in the meme.

As other people have mentioned, Torx screwdrivers are forwards compatible with Torx Plus and Torx Paralobe. But the screwdrivers for the newer standards are not backwards compatible with older screws.

Similarly, Tamper-Resistant Torx screwdrivers can be used on regular Torx screws. But Tamper-Resistant Torx Plus screwdrivers cannot be used on regular Torx Plus screws -- it's a completely different shape!

If you're in a professional setting where you order high-quality screws and drivers in bulk directly from a manufacturer, I'd imagine that this isn't much of an issue. But if you're a hobbyist or just need to repair something in a domestic setting, the three different torx variants plus the other non-torx hexalobular screws (WA drive, Polydrive, T-Star Plus) can cause quite a bit of confusion. Anecdotally, I have a set of what I thought were really low-quality Torx bits. Turns out, they're actually good-quality Torx Plus bits that by design don't fit my Torx screws.

[-] renzev@lemmy.world 33 points 1 day ago

Things are getting heated in the screw fandom

[-] renzev@lemmy.world 2 points 1 day ago

Yes? Experience and skill are good things and should be encouraged!

[-] renzev@lemmy.world 16 points 1 day ago* (last edited 1 day ago)

I'm not canadian, so I don't have a lot of experience with robertson. But from the limited experience that I do have, I would rate it 10/10.

What would you recommend for smaller screws (e.g. for electronics)? As far as I know, there aren't smaller sizes of robertson like there are with torx?

492

Fun fact: Torx screwdrivers are compatible with Torx Plus screws, but Trox Plus screwdrivers are only compatible with Torx screws that are one size larger

[-] renzev@lemmy.world 10 points 2 days ago

Whether or not typst is "superior" is largely debatable, but here are some reasons why I personally prefer Typst to LaTeX:

  • leaner syntax
  • less boilerplate
  • (arguably) more intuitive syntax for math and formatting
  • real-time preview thanks to incremental compilation
  • automatic package management
  • Ability to perform calculations/data processing inline inside your document (I know you can do this in LaTeX as well, but typst makes it easier)

However, as Andrew said, it is very much still in beta, so I don't think it can be a complete replacement for LaTeX. Basically, think of it as something in between LaTeX and Markdown. Less features, but easier to write.

[-] renzev@lemmy.world 8 points 2 days ago

This is what I though as well when I first looked at their website. But nope, the compiler and LSP are available as fully offline programs under the apache license. But I understand how you'd get confused, their website is strikingly polished for an open-source non-commercial project!

The only thing you're missing out on if you use the offline version is having the rendered preview update in real time as you type, but you can sort of emulate that feature using their neovim plugin and a really fast PDF viewer like zathura.

[-] renzev@lemmy.world 22 points 3 days ago

honestly LaTeX isn't too bad once you have it all set up. An environment with the correct packages, a collection of templates for common document types, a set of macros for often-used constructions, and and editor with good snippets and syntax highlighting. Once you have all of that, LaTeX becomes a breeze. At one point, I was even taking notes with LaTeX in real-time during lectures.

But that's the beauty of typst -- it's like a fully beefed out LaTeX setup, but straight out of the box. No need for snippets, because the syntax is lean enough as it is. No need for templates, because there is no boilerplate needed for a document. No need to waste half an hour setting up an environment and looking for dependencies -- all of typst is just two executables (compiler and LSP), and package management is automatic.

[-] renzev@lemmy.world 56 points 3 days ago* (last edited 3 days ago)

Compiler: Could not find "tikz.sty"

Me: So you want me to install the package called "tikz"?

Compiler: no, there's no package called tikz. I need the file called "tikz.sty"

Me: Okay then, so which package provides the "tikz.sty" file?

Compiler: fuck if I know, go google it or something ¯\_(ツ)_/¯

Switched to typst a few months ago, enjoying it much more than LaTeX so far. Really excited to see how it will grow in the future

31
672
submitted 3 days ago* (last edited 3 days ago) by renzev@lemmy.world to c/linuxmemes@lemmy.world

Context: LaTeX is a typesetting system. When compiling a document, a lot of really in-depth debugging information is printed, which can be borderline incomprehensible to anyone but LaTeX experts. It can also be a visual hindrance when looking for important information like errors.

8
submitted 4 days ago* (last edited 4 days ago) by renzev@lemmy.world to c/bravebrowser@lemmy.ml

Update

Apparently this is patched out by Brave, but it is enabled by default. See u/Engywuck@lemm.ee 's comment below!


Vanilla chromium gives google's websites special treatment by offering detailed CPU info, among other things. This is implemented through a hidden browser extension. You can prove this by yourself by running chrome.runtime.sendMessage("nkeimhogjdpnpccoofpliimaahmaaome", {method: "cpu.getInfo"}, (response) => {console.log(JSON.stringify(response, null, 2)); }, ); on google.com through the browser console. For me, it gives the following info:

{
  "value": {
    "archName": "x86_64",
    "features": [
      "mmx",
      "sse",
      "sse2",
      "sse3",
      "ssse3",
      "sse4_1",
      "sse4_2",
      "avx"
    ],
    "modelName": "Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz",
    "numOfProcessors": 4,
    "processors": [
      {
        "usage": {
          "idle": 28238205,
          "kernel": 827581,
          "total": 32762960,
          "user": 3697174
        }
      },
      {
        "usage": {
          "idle": 1455131,
          "kernel": 743391,
          "total": 6209241,
          "user": 4010719
        }
      },
      {
        "usage": {
          "idle": 1448653,
          "kernel": 769970,
          "total": 6068506,
          "user": 3849883
        }
      },
      {
        "usage": {
          "idle": 1450274,
          "kernel": 744886,
          "total": 5948597,
          "user": 3753437
        }
      }
    ],
    "temperatures": []
  }
}

Note that this doesn't work on other websites like lemmy.world, only google.

What I am confused about is that I can replicate this behavior in Brave. Why does brave reveal this information to google, and to google only? From what I understand, it can be used for fingerprinting and tracking. Shouldn't this be patched out? Is my testing methodology flawed? Will this be fixed?

Brave version: Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) unknown (64-bit) running on linux via flatpak

731
920

Context for newbies: Linux refers to network adapters (wifi cards, ethernet cards, etc.) by so called "interfaces". For the longest time, the interface names were assigned based on the type of device and the order in which the system discovered it. So, eth0, eth1, wlan0, and wwan0 are all possible interface names. This, however, can be an issue: "the order in which the system discovered it" is not deterministic, which means hardware can switch interface names across reboots. This can be a real issue for things like servers that rely on interface names staying the same.

The solution to this issue is to assign custom names based on MAC address. The MAC address is hardcoded into the network adaptor, and will not change. (There are other ways to do this as well, such as setting udev rules).

Redhat, however, found this solution too simple and instead devised their own scheme for assigning network interface names. It fails at solving the problem it was created to solve while making it much harder to type and remember interface names.

To disable predictable interface naming and switch back to the old scheme, add net.ifnames=0 and biosdevname=0 to your boot paramets.

The template for this meme is called "stop doing math".

352
679
466

Firefox on Debian stable is so old that websites yell at you to upgrade to a newer browser. And last time I tried installing Debian testing (or was it debian unstable?), the installer shat itself trying to make the bootloader. After I got it to boot, apt refused to work because of a missing symlink to busybox. Why on earth do they even need busybox if the base install already comes with full gnu coreutils? I remember Debian as the distro that Just Wroks(TM), when did it all go so wrong? Is anyone else here having similar issues, or am I doing something wrong?

1000

Context:

Permissive licenses (commonly referred to as "cuck licenses") like the MIT license allow others to modify your software and release it under an unfree license. Copyleft licenses (like the Gnu General Public License) mandate that all derivative works remain free.

Andrew Tanenbaum developed MINIX, a modular operating system kernel. Intel went ahead and used it to build Management Engine, arguably one of the most widespread and invasive pieces of malware in the world, without even as much as telling him. There's nothing Tanenbaum could do, since the MIT license allows this.

Erik Andersen is one of the developers of Busybox, a minimal implementation of that's suited for embedded systems. Many companies tried to steal his code and distribute it with their unfree products, but since it's protected under the GPL, Busybox developers were able to sue them and gain some money in the process.

Interestingly enough, Tanenbaum doesn't seem to mind what intel did. But there are some examples out there of people regretting releasing their work under a permissive license.

311
submitted 2 months ago* (last edited 2 months ago) by renzev@lemmy.world to c/programmerhumor@lemmy.ml

Explanation: Python is a programming language. Numpy is a library for python that makes it possible to run large computations much faster than in native python. In order to make that possible, it needs to keep its own set of data types that are different from python's native datatypes, which means you now have two different bool types and two different sets of True and False. Lovely.

Mypy is a type checker for python (python supports static typing, but doesn't actually enforce it). Mypy treats numpy's bool_ and python's native bool as incompatible types, leading to the asinine error message above. Mypy is "technically" correct, since they are two completely different classes. But in practice, there is little functional difference between bool and bool_. So you have to do dumb workarounds like declaring every bool values as bool | np.bool_ or casting bool_ down to bool. Ugh. Both numpy and mypy declared this issue a WONTFIX. Lovely.

230
submitted 3 months ago by renzev@lemmy.world to c/linuxmemes@lemmy.world

Credit for the answer used in the right panel: https://serverfault.com/a/841150

view more: next ›

renzev

joined 6 months ago