Become a fan of Slashdot on Facebook


Forgot your password?
Slashdot Deals: Cyber Monday Sale Extended! Courses ranging from coding to project management - all eLearning deals 20% off with coupon code "CYBERMONDAY20". ×

Comment Re:I install that solution all the time. (Score 1) 85

I came to post this same link. This will automatically save files to a network share or record them on to a removable compact flash card, making it easier to use and more versatile than a home-grown general purpose computer solution. It can be easily wired with remote start/stop and status indication. It can work manually, based on the faceplate controls, remote contact start/stop, or web-based UI, or automatically based on a schedule. It has both consumer and professional, analog and digital audio inputs and outputs. It's a sturdy, slim, quiet, rack-mounted solution.

Comment Re:Can anyone explain this bug? (Score 1) 277

Here's the actual buggy code.
The error is infinite loop in ConvertDays(), starting at line 249. The first loop does not cope with "IsLeapYear() == true" when "days == 366"

The fix:

        year = ORIGINYEAR;

        daysInYear = IsLeapYear(year) ? 366 : 365;
        while (days > daysInYear)
                days -= daysInYear;
                year += 1;

                daysInYear = IsLeapYear(year) ? 366 : 365;

If it's worth hacking on well, it's worth hacking on for money.