A while back I was developing a workflow scheduler. However the run duration kept coming back negative. The runs kept finishing like 15 seconds before they started. Eventually I figured out why; the company had configured a policy to use their custom NTP server, but it was 16.7 seconds off. So my Windows laptop’s time was in the future, but the WSL VM (which ran the program) used another NTP server and was correct. In the end I just added a bodge that made the program request the time from an external server on startup to calculate an offset.

  • 18107@aussie.zone
    link
    fedilink
    English
    arrow-up
    4
    ·
    46 minutes ago

    I was learning a new language, and decided to start with hello world. Only 7 words. I think I counted 14 bug fixes by the time I got it working.

    I learnt (again) that I shouldn’t program while tired, and really shouldn’t learn a new language whole tired.