Search found 73 matches

by m-goldberg
07 Jul 2011, 15:48
Forum: Off-Topic
Topic: English idioms for sorts of "brackets"
Replies: 27
Views: 25491

Re: English idioms for sorts of "brackets"

It is useful to think of English as a kind of Dutch that got an injection of Danish (9th and 10th century invasions and partial occupation) and then got painted over with a thick layer of French (11th century conquest and subsequent Norman-French occupation). It was only superficially Latinized in 1...
by m-goldberg
06 Jul 2011, 13:19
Forum: Off-Topic
Topic: English idioms for sorts of "brackets"
Replies: 27
Views: 25491

Re: English idioms for sorts of "brackets"

Muntoo, the cartoon you posted is great, but you really should have included an attribution.
by m-goldberg
02 Jul 2011, 10:47
Forum: Mindstorms Software
Topic: FW: bad rand generator: distribution/prevalences/periodicity
Replies: 92
Views: 70888

Re: FW: bad rand generator: distribution/prevalences/periodicity

m-goldberg,since 1951 there has been some minor progress in algebra, informatics and computer sciences. If you want to learn about it, refer to already published references. I am somewhat familiar with the work done on pseudo-random number generators in the last half of the 20th century. I spent a ...
by m-goldberg
02 Jul 2011, 02:42
Forum: Mindstorms Software
Topic: FW: bad rand generator: distribution/prevalences/periodicity
Replies: 92
Views: 70888

Re: FW: bad rand generator: distribution/prevalences/periodicity

A quote from John von Neumann (1951) -- Anyone who considers arithmetical methods for producing random digits is, of course, in a state of sin.
by m-goldberg
25 Apr 2011, 12:13
Forum: Mindstorms Software
Topic: [NXC] Separate signed int into bytes
Replies: 6
Views: 5955

Re: [NXC] Separate signed int into bytes

muntoo wrote:First NXC Question on StackOverflow
And another question: Is a signed integer stored using one's complement or what?
Negative signed integers are represented by two's complement values.
by m-goldberg
21 Mar 2011, 00:53
Forum: Mindstorms Software
Topic: Problem with LCD & multitasking with NXC
Replies: 6
Views: 7519

Re: Problem with LCD & multitasking with NXC

Here is some basic info about tasks and Precedes: 1. Do nor name tasks with numbers. Tasks must be named with valid identifiers. 2. The Precedes statement is not executable -- it is as John said a compiler pragma (instruction to the compiler) -- it does not generate NXT code, so don't put it any kin...
by m-goldberg
19 Mar 2011, 02:41
Forum: Mindstorms Software
Topic: I have a couple questions about NXC
Replies: 12
Views: 16011

Re: I have a couple questions about NXC

I often find it useful to use the PlayTone API call for debugging. For example if I have more than one task running, I might assign a different tone to each task and have each of the tasks play its assigned tone on entry. Sometimes, when I do this, I hear the tones in the sequence I expect, but some...
by m-goldberg
12 Mar 2011, 23:27
Forum: Mindstorms Software
Topic: NXC on windows and mac
Replies: 4
Views: 5702

Re: NXC on windows and mac

I can't answer your question since you don't tell me what the differences are. However, I have been using the nbc compiler on the Mac for several years with good results. I strongly recommend not using the AppleScripts. They are obsolete. I don't understand why John Hansen still distributes them. On...
by m-goldberg
10 Mar 2011, 15:12
Forum: Mindstorms Software
Topic: Code/Bug Trouble
Replies: 13
Views: 14008

Re: Code/Bug Trouble

Do we need to see more of his code? His problem is pretty obvious. 'Note(ii) = f;' where he should have used 'Note[ii] = f;'.
by m-goldberg
09 Mar 2011, 17:52
Forum: Mindstorms Software
Topic: Code/Bug Trouble
Replies: 13
Views: 14008

Re: Code/Bug Trouble

Your program doesn't have 'Note[ii] = f;', it has 'Note(ii) = f;'. I think the compiler has every right to complain about a reference to an undefined function.