Apollo11Code

Nasa released the original code for Apollo 11 guidance computer, few hours later the first “issue” has been reported.

NASA released the original source code for Apollo 11 guidance computer (AGC) yesterday. The code was released on GitHub, and few hours later someone reported the first “issue“. A customer has had a fairly serious problem with stirring the cryogenic tanks with a circuit fault present. To reproduce: Build CSM Perform mission up to translunar […]

Read More

c++

Solution to the gcc error: undefined reference to `ilogb’ (C/C++)

The ilogb( ) functions return the exponent of their floating-point argument as a signed integer. If the argument is not normalized, ilogb( ) returns the exponent of its normalized value. Here’s simple program that uses ilogb()

  Now, if You use this function and get the following gcc linker error: undefined reference to `ilogb’ […]

Read More

C#

Random DateTime in the range (C#)

So You need a random DateTime value in some range, and C# Random class does not provide Random.NextDateTime(from, to). Here’s a simple solution for this problem…

  As this method is written as an extension method to Random class, you’ll be able to use it just as a static Random class method (Random.NextDateTime(startDateTime, endDateTime). […]

Read More