Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Back for a limited time - Get 15% off sitewide on Slashdot Deals with coupon code "BLACKFRIDAY" (some exclusions apply)". ×

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;

You have a massage (from the Swedish prime minister).