B shows binary; O shows octal; X shows hex; decimal default.

#binary #octal #hex

#Octal #Mathematics represented in #graphs in a plot:

A bonus top tip for today:

'\376' will not compare equal to a character in memory with the value 254.

This is not assembly language, where one can compare an 8-bit byte with an 8-bit constant and have it just work, willy-nilly.

That would be crazy.

#djbwares #dnscache #octal #StandardC

Today's top tip:

8 is not an octal digit.

I had to take a 2 hour break (dealing with a relative) before I spotted that one.

#octal #djbwares #dnscache

Aircraft and glider transponder codes - FAA gotcha.

I have not yet received my glider registration from the FAA (any day now, lol!), but they have assigned a transponder code for the N-number I have reserved. (see first screenshot)

To configure my avionics, I need to load this transponder code into the device.

FLARM wants it as a 24-bit hexadecimal value. (Each hexadecimal value is 4 bits in binary...so it's going to be a six-character code...but my code is not six characters.)

Hmmmm, that number the FAA gave me just doesn't seem correct.

I then called up a known, long-registered aircraft to compare their transponder code. (2nd screenshot)

Surprise! The transponder code I was given was in octal, but not labeled as such. OK, convert to hexadecimal and now everything makes sense.

Onward!

#AvGeek #Aviation #ElectricAircraft #ExperimentalAviation #Homebuilt #Glider #DIY #Avionics #Electronics #Transponder #Octal #Hexadecimal #Gotcha #FAA

Fun fact, today's #UnixDate is an #octal #palindrome

$ printf '%04o\n' $(( $(date +%s) / 86400 ))
47074

#epoch

Cómo expresar enteros en #binario, #octal y #hexadecimal en C++ / #Cpp.

Acá te explico cómo se hace.

#programacion #basicos

https://www.youtube.com/watch?v=oq5ywRCHeJc

Taller de Programación (C++) - 29 - Literales enteros: binario, octal y hexadecimal

YouTube

Has anyone ever written a "color theory for #octal programmers"?

I want something like Hacker's Delight meets Paul Klee