#bool

2025-04-17

One of the websites I manage is sports related and heavily data-driven.

And there is a great and wonderful spectrum of sex and gender in the world that is to be celebrated.

I still used a boolean to denote a person's sex, which for this application is a binary distinction.

At my heart however, I am a child, so I'll let you guess what 1 and 0 each represents.

#bool #boolean

2025-01-30

[Перевод] Маленький bool Дума

Должен признать, у меня есть некая особая любовь к классическому DOOM . Несмотря на то, что игре уже 31 год, в нее все еще весело играть самому (хотя и выходит у меня так себе) или просто смотреть на то, как другие в нее играют (вот в этом я показываю себя лучше); и поскольку исходный код игры открыт, ей можно наслаждаться на любой современной платформе — ПК, смартфон, камера , осциллоскоп — да и вообще на любой вещи, которая придет вам в голову. В результате чего, благодаря ряду обстоятельств, я оказался меинтейнером нескольких связанных с DOOM пакетов в Fedora Linux. Итак, за несколько месяцев до нового релиза, проект Fedora Linux осуществляет массовую сборку всех пакетов. Это имеет несколько преимуществ — позволяет убедиться в совместимости ABI, обновить статически линкуемые зависимости, использовать новые оптимизации компилятора и так далее. Как бы то ни было, с приближением релиза Fedora Linux 42 в середине апреля, пришло время для массовой пересборки, и как часто бывает, не все пакеты выжили. Одним из пакетов, которые не удалось собрать оказался chocolate-doom .

habr.com/ru/companies/beget/ar

#doom #c #assembler #bool

2024-03-18

I can never remember the name in de Morgan’s law.

»You invert that with whatsisname … Morgana’s rule«

#Bool #boolean #DeMorgan #Morgana
en.wikipedia.org/wiki/De_Morga

2024-03-06

I wonder if anyone has seriously thought about adding some kind of namespacing to the C preprocessor.

for example, it would be nice if you could say

FOO
"foo.h"

and then all the preprocessor defines from foo.h are brought into your file with names like FOO##

2023-08-18

Python Data Types:

Floats can behave unpredictably.
Pycode
10 * 0.1 * 3 == 3 #bool
0.1 * 3 * 10 == 3 #bool
0.1 * 3 == 0.3 #bool
0.1 * 3 # float

The last one gives a float instead of Boolean. Excellent explanation of this here:
0.30000000000000004.com
#Datascience@Hertie_DSLab
#Hertie Data science lab summer school

Coding Chicacodingchica
2023-06-30

In Java, we can use statements like if-then/if-then-else to control what portions of the code are executed.

Our conditions can be simple tests or they can be chains of tests strung together to make one overall boolean result.

codingchica.com/2023/06/29/if-

2020-04-27

Did you know:

If you have a bool as string in javascript, e.g. "true" and you need it as real boolean value, you can use `JSON.parse("true")` to "convert" it.

#javascript #didyouknow #bool #boolean #string #parse

swesdo [music]swesdo
2018-11-24

The entire 🅱○◎🅻 alphabet 🅰🅱🅲🅳🅴🅵🅶🅷🅸🅹🅺🅻🅼🅽🅾🅿🆀🆁🆂🆃🆄🆅🆆🆇🆈🆉

🅐🅑🅒🅓🅔🅕🅖🅗🅘🅙🅚🅛🅜🅝🅞🅟🅠🅡🅢🅣🅤🅥🅦🅧🅨🅩

ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ

💮

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst