Skip to content
  • 4 points on What was the silliest issue you discovered during debugging? in !programmer_humor@programming.dev ·

    c requires you to do things like define the maximum length of a string. In fact a string in c is literally defined as an array of characters. There are no protections in c, so you can define a string to be 10 characters long and then copy 20 characters to it. The result is most often a stack overflow that immediately crashes the program.

    This was legacy code that was likely written in the early days of DOS before things like Microsoft Windows existed, so memory usage was still pretty important. Whoever wrote this code tried to calculate the maximum size of a string used to print a header in this reporting package as a way to optimize memory usage. But they were off by one character. So when the code created a header with a date containing the longest month name, the longest date name, and a two digit day of the month, then that string overflowed and crashed the program.

  • 11 points on What was the silliest issue you discovered during debugging? in !programmer_humor@programming.dev ·

    Back in the 90’s I had to debug a printer routine in a reporting tool. It would occasionally crash. Only on Wednesdays. Only on Wednesdays in September. Only on Wednesdays in September after September 9th.

    Code was written in c.

  • 3 points on Ukraine blew up Putin’s bridge using relay drones to bypass Starlink limits in !technology@lemmy.world ·

    I’m not sure I’d trust Russias idea of “volunteers” to rebuild a critical bridge. Ukraine could probably knock it down again with just a stern look. 🤣

  • 1 points on Bridge connecting Russia to occupied Crimea has been hit again in !world@lemmy.world ·

    Russia should have taken the hint when the bridge was attacked in 2022, then again in 2023, then again in 2025. If they refuse to take the hint after all that then they have nobody to blame but themselves.

  • 32 points on Ukraine blew up Putin’s bridge using relay drones to bypass Starlink limits in !technology@lemmy.world ·

    Prior to this attack all the other ones were fairly limited in terms of damage:

    • In 2022 a truck bomb collapsed a couple spans between concrete piers. Repairing this basically meant casting new concrete sections off-site then moving them into place. It took about 4 months to fully reopen.
    • The 2023 attack involved sea drones that struck one of the supports. That damaged the road bed but nothing collapsed, and it took only 3 months to fully repair.
    • The 2025 attack involved underwater explosives, but damage was minimal.

    Unlike all those attacks, this one knocked out the main arch that spans the shipping channel. Unlike the rest of the bridge, this 750 foot span is supported from above by the arch so that shipping traffic can sail underneath it.

    Repairing this sort of damage is a lot more time consuming & difficult than those earlier attacks. In those previous ones, once you’ve examined the supports and made any repairs to them then you can cast the new concrete bridge segment off-site then use cranes to simply drop it into place onto those supports. But with this arched section you’ll need metalworkers to spend months rebuilding that arch first, then rebuild the suspended road bed under the arch.

    It’s going to be extremely difficult for Russia to find metalworkers willing to work under the constant threat of additional drone attacks, not to mention protecting all the materials & equipment that they’ll need at the site of the span. Estimates are that it could take anywhere from 8 months to 2 years to rebuild under optimal conditions. That means not only no new attacks, but favorable weather, unrestricted supplies, etc. And I doubt Ukraine would sit idly by and let that happen.

  • 10 points on How Ukraine struck the Kerch bridge, a symbol of Putin’s rule in !ukraine@sopuli.xyz ·

    Ukraine then launched a second drone wave. Its function was crucial and different: to act as a relay system for radio signals. Previously, Ukrainian units had used Starshield, the military equivalent of Starlink, for mid-range strikes on occupied territory. Elon Musk’s SpaceX owns the satellite internet network, which is overseen by the Pentagon and the Trump administration.

    Ten days ago, however, limits were mysteriously imposed on Ukrainian drones, so they could no longer fly at above 161 km/h (100 mph). SpaceX insists there is no slowdown – a statement Ukraine’s president, Volodymyr Zelenskyy, says is untrue. On Monday night, it appears Kyiv bypassed US restrictions by setting up its own extraordinary and innovative real-time video and radio connection.

    Ukrainian ingenuity never ceases to amaze me. So nice to hear they were able to quickly pivot like this given the BS from Trump & Musk.

  • 19 points on xkcd #3325 in !comicstrips@lemmy.world ·

    Kind of gives a fresh perspective on how insanely vast space is when most things are dozens or hundreds or thousands of light years away from us.

  • 2 points on Short-term leases only in !funny@sh.itjust.works ·

    Flavor Aid, not Kool-Aid.

  • 0 points on Breaking Bad Remake in !funny@lemmy.world ·

    With Miss Piggy as Skyler, Fozzie Bear as Hank, and Sam the Eagle as Gus Fring.

  • 0 points on Disgraced eMudhra drops out of TLS business after using cert private key of 4 in !technology@lemmy.zip ·

    Should have been 42. That would have taken milliseconds more to crack.