In the Fibonacci sequence, is fib(0) 0 or 1 ?

You’re correct. The Fibonacci sequence is formally defined with seed values fib(0) = 0 and fib(1) = 1. This is a requirement for the rest of the sequence to be right (and not offset by one or anything). In mathematics, the Fibonacci numbers, commonly denoted F_n, form a sequence, called the Fibonacci sequence, such that each number is the sum … Read more

typedef fixed length array

The typedef would be However, this is probably a very bad idea, because the resulting type is an array type, but users of it won’t see that it’s an array type. If used as a function argument, it will be passed by reference, not by value, and the sizeof for it will then be wrong. A better … Read more

TypeError: got multiple values for argument

This happens when a keyword argument is specified that overwrites a positional argument. For example, let’s imagine a function that draws a colored box. The function selects the color to be used and delegates the drawing of the box to another function, relaying all extra arguments. Then the call will fail because two values are … Read more

Systrace for Windows

WinDbg’s Logger.exe is the closest to strace: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/logger-and-logviewer EDIT: There’s also windbg’s wt: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/wt–trace-and-watch-data-

Simple PowerShell LastWriteTime compare

Try the following. This is part of the item property weirdness. When you run Get-ItemProperty it does not return the value but instead the property. You have to use one more level of indirection to get to the value.