Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror

Comment: Re:I install that solution all the time. (Score 1) 85 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 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;
        }

All the simple programs have been written.

Working...