Type Coercion Rules In Javascript

In order for readers to be able to understand those crazy equality examples in Javascript Catches And Pitfalls – part1 (equality and comparisons), here’s a list of rules Javascript follows when coercing variable types. I would’ve put this into the mentioned post, but I’m afraid the post would get waaaaaaaaay to long. So here we […]

Read More

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

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