Person interested in programming, languages, culture, and human flourishing.

  • 2 Posts
  • 23 Comments
Joined 3 years ago
cake
Cake day: June 17th, 2023

help-circle

  • Thinker@lemmy.worldtoxkcd@lemmy.world•xkcd #3253: Sunbeam
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    I would think an Astrophotographer needs to know which distant objects in the night sky are going to be illuminated and/or washed out when, so maybe that’s what it’s referring to? I.e. the joke is not that he knows where the sun is pointing on Earth, but that he knows where in the observable galaxy the light will be best for his needs?






  • To add two numbers, for example, it constructs the midpoint between them, then doubles the distance from the origin.

    It’s basically a self-defined system of arithmetic, with no actual numbers. e.g. rather than 1 + 2 = 3, you have [radius of unit circle A] + [radius of 2 unit circle B] = [length of 3 unit line C]. I’ll confess I don’t totally understand how you can extend that to the point that it can correctly implement RSA, but I believe it can be done based on other achievements with unquantified geometry I’ve witnessed in the past.

    For example, this excellent video about constructing flags using only the shape drawing tools of PowerPoint without ever applying external measurements to the shapes.



  • Thinker@lemmy.worldtoTechnology@lemmy.world•What is a Passkey? - Computerphile
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    2
    ·
    10 months ago

    The number of times I’ve seen people link to this thread while completely misunderstanding the context of it drives me nuts. The issue isn’t being able to export keys, it’s that KeepassXC was making it trivial to export keys in plaintext with no user warning/verification, which fundamentally undermines the biggest security advantage of passkeys - phishing resistance. In other words, if users can be easily talked through exporting their keys via a simple in-app flow that gives them no warning about the danger of what they’re doing, then they will do that and be scammed horribly by it.

    The person who raised the issue was asking KeepasXC to come up with a better solution for exporting keys - originally he asked them to wait for the now standardized process that every passkey provider uses, but then they settled on showing the user an explicit warning about the danger of plaintext exports in the meantime.

    If you choose to read the most hostile and uncharitable subtext into every word a person writes in public, you can misunderstand what he’s saying. Otherwise, this is a pretty cut-and-dry example of a person genuinely trying to support the interests of end users.


  • How long has it been since you used Teams? I’m no apologist, I have plenty of gripes with that piece of crap software, but this seems like a crazy stretch. Teams makes it almost trivial to embed code blocks with syntax highlighting for a wide array of languages, which can be easily copied out of Teams or opened in a separate viewer for easier reading.



  • Thinker@lemmy.worldtoTechnology@lemmy.world•*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    3
    ·
    1 year ago

    I agree, except that we are legally not allowed to control the software on our phones in lots of cases. Notifications, ads, upgrades, etc. are all controlled by the manufacturer and it’s illegal to override their software on the device you own.

    Add to that that specific pieces of software are becoming increasingly necessary to function in society, and you start to see that it’s not really a matter of individual choice, anymore than people shopping at walmart can be blamed for buying processed, sugary foods when that’s 90% of what walmart stocks (And all they promote), and walmart is the only affordable option in their community.


  • Congratulations, you’ve illustrated the difference between syntax and semantics. But any competent compiler also handles semantics (just in a separate phase of compilation), because that’s necessary for any useful conversion to machine code, not to mention optimizations.



  • I mean, the simple proof is that Rust has been growing by leaps and bounds in the embedded world, which is the closest to bare metal you get. It’s also being used in the Linux kernel and Windows, and there are several projects building new kernels in pure Rust. So yeah, it’s safe to say that it’s as close to the metal as C.

    Also, the comparison to Java is understandable if you’ve only been exposed to Rust by the memes, but it doesn’t hold up in practice. Rust has a lot more syntax than C (although that’s not saying much), but it’s one of the most expressive languages on the market today.


  • My preferred variation of this is to make it an open question that leaves them in the position of authority, and assumes that they made a deliberate decision.

    For example, instead of “Why aren’t you using StandardLib that does 90% of this?”, I would try “Could this be achieved with StandardLib? Seems like it would cover 90% of this”.






  • Flatpak is definitely the way to go if you’re still getting started in your Linux journey.

    The reason that flatpak apps are typically more up to date is because they are most often managed by the actual developer of the app. In contrast, the default apps in the Pop shop (which are deb packages, but that’s not super important) are managed and updated by popos itself (and/or Ubuntu/Debian that popos is built on), which is why they’re often slower to update. The developer has little to no day of when these packages are updated, and usually most packages are frozen between major releases of the distro.