Rust: Programming language for safety and speed

Introduction Rust is a non-garbage collected, compiled systems programming language with strong typing. It began as a personal project by a Mozilla research employee in 2006, and later, Mozilla started sponsoring the project in 2009. Eventually, Mozilla adopted Rust for Firefox and rewrote the core in Rust in 2017. Rust is an advanced language with numerous features that developers appreciate. Positioned as a compelling alternative to C/C++, Rust offers robust capabilities for system-level programming....

February 7, 2024

Python Dependency Management: pip and poetry

Install package using pip python3 -m pip install iotcore Show package details using pip python3 -m pip show iotcore Uninstall package using pip python3 -m pip uninstall iotcore List installed packages using pip python3 -m pip list Upgrade a package using pip python3 -m pip install --upgrade iotcore # or python3 -m pip install -U iotcore New python project using poetry poetry new poeetry_demo Install new package using poetry poetry add arrow Show installed packages using poetry...

November 27, 2023

Learn Swedish - Grammar

Mjuka och Hårda vokaler (Soft & Hard Vowels) A O U Å Eg: Gammal (old) Gott (Tasty) Kul (Fun) Gå (walk) E I Y Ä Ö Eg: Ge (Give) Kypare (Waiter) Gilla (Like) Kärlek (Love) Get (Goat) Köpa (Buy) PERSONLIGA PRONOMEN Subjekt Objekt-Form Singular Jag (I) - ഞാൻ Mig (Me) - എന്നെ Du (You - singular, informal) - നീ Dig (You - singular, informal) - നിനക്ക് Han (He) - അവന്‍ Honom (Him) - അവനെ Hon (Her) - അവള്‍ Henne (Her) - അവളെ Hen Hen Den (It) - അത് Den Det (It) - അത് Det Man (ഒരുവന്‍) En Plural Vi (We)- ഞങ്ങള്‍ Oss (Us) - ഞങ്ങളെ Ni (You plural) - നിങ്ങൾ Er (You - plural or formal singular) De (They) - അവര്‍ Dem (Them) - അവരെ Notes:...

November 20, 2023

Refresh C Programming

Convert void data-type (byte array) to uint8_t type static uint8_t notify_func(const void *data) { uint8_t value = ((uint8_t *)data)[7]; return value; } Structure data-type as function arguments static uint8_t notify_func(struct bt_gatt_subscribe_params *params) { printk("value_handle : %d", params->value_handle) } Declare enums as types typedef enum { STRING, NUMBERS, COMPLEX, DATATYPE_COUNT, INVALID_SENSOR } sensor_datatype_t; String initialisation to char pointer const char *p_mac_addr = "0C:8C:DC:41:E1:EF"; static void print_mac_addr(void) { printk("p_mac_addr : %s\n", p_mac_addr) } String as function return values...

November 11, 2023

Zephyr RTOS: Taking Your Embedded Projects to the Next Level

what is Zephyr? Zephyr RTOS is a game-changing technology developed by experts with decades of collective experience in the embedded world. Originally created as Rocket by Wind River Systems in 2015 and later rebranded as Zephyr, this open-source project has gained immense popularity since its inception. As an open-source project, anyone can access the source code and understand its internal workings. Over the years, Zephyr has garnered a lot of attention from major tech giants like Google, Meta, Intel, and many more, resulting in significant investments in the project....

March 24, 2023