Skip Navigation

Posts
2
Comments
57
Joined
1 yr. ago

  • Can we just take a step back and admire how completely bizarre this title sounds out of context?

  • Now that's the kind of industry secrets I opened this thread for.

  • A major political agenda of Vim is to support children in Uganda. A message about that is displayed whenever you open Vim's start page. Bram Moolenaar insisted on users donating to the ICCF charity instead of to him, making Vim a very political editor in my view.

  • This statement is wrong.

  • The premise is already wrong. No orchestra can play Beethoven's 9th symphony in 40 minutes, this piece is longer than an hour.

  • IEEE 754 is the standard to which basically all computer systems implement floating point numbers. It specifically distinguishes between +0 and -0 among other weird quirks.

  • I don't think I've ever seen a game on Steam with "Overwhelmingly Negative" reviews before. Usually "Mixed" is already a good indicator to leave your hands off a game.

  • That's wrong, it calculates the surface distance not the distance through the earth, while claiming otherwise. From the geopy.distance.great_circle documentation:

    Use spherical geometry to calculate the surface distance between points.

    This would be a correct calculation, using the formula for the chord length from here:

     python
        
    from math import *
    
    # Coordinates for Atlanta, West Georgia
    atlanta_coords = (33.7490, -84.3880)
    # Coordinates for Tbilisi, Georgia
    tbilisi_coords = (41.7151, 44.8271)
    
    # Convert from degrees to radians
    phi = (radians(atlanta_coords[0]), radians(tbilisi_coords[0]))
    lambd = (radians(atlanta_coords[1]), radians(tbilisi_coords[1]))
    
    # Spherical law of cosines
    central_angle = acos(sin(phi[0]) * sin(phi[1]) + cos(phi[0]) * cos(phi[1]) * cos(lambd[1] - lambd[0]))
    chord_length = 2 * sin(central_angle/2)
    
    earth_radius = 6335.439 #km
    print(f"Tunnel length: {chord_length * earth_radius:.3f}km")
    
      

    A straight tunnel from Atlanta to Tbilisi would be 9060.898km long.

  • Ever since I've understood that it accepts objectively wrong answers as long as it somehow seems as if you gave it some thought, I've made sure to hinder the accuracy of models that try to use my data.

  • I enjoy this meme. Truly a Lemmy original.

  • Huh? Hexagonal Architecture?

  • While there certainly is some overlap, Python is a scripting language and not a shell language. Some tasks that involve calling lots of different programs and juggling input and output streams are much easier done in bash than in Python.

  • I won't argue with you that bash is janky and easily insecure, but what shell language do you think should replace bash?

  • Jon Gjengset on Youtube is doing live coding where he uses neovim quite well. And you'll learn about Rust while you're at it.

  • I (luckily) haven't had much experience using autotools, but I do suppose it was no coincidence that the injection was initiated there. I really like the comparison that was made in the post of the Meson maintainer you linked:

    Several "undefeatable" fortresses have been taken over by attackers entering via sewage pipes.