Forgot your password?
typodupeerror

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

by MattCohn.com (#41070583) Attached to: Ask Slashdot: Recording Business Meeting Audio On an Intranet?

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

by MattCohn.com (#26313743) Attached to: Microsoft Issues Workaround For Zune Freeze

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;
        }

The reason that every major university maintains a department of mathematics is that it's cheaper than institutionalizing all those people.

Working...