Going beyond vibe coding to use AI as health and gym coaching

Like all AI project, data collection is needed. Treating health improvement program as a sports science requires basic information such as heart rate, and training regime logs.

I have started knowing nothing of the metrics other than using intuitively data gathered from smart devices such as the Xiaomi Smart Band 9 Pro which I had bought in late June 2025.

It is a commitment to start a healthy lifestyle; as a sunken cost fallacy to start working out using data driven motivation for self-improvement.

A device to get data of your health, Xiaomi Smart Band 9 Pro

It has a for android, the Mi Fitness which will provide telemetry needed.

Continue reading

Use Ventoy to create USB drive multiboot disk for your computer

For the TLDR Get start . Ventoy

Select and install your preferred version, either windows or linux

Run the program after unzip

E drive the USB drive to be made as multiboot USB drive

Click on Install button to install Ventoy into your USB drive.

Once it is done, open the Computer Management to verify Ventoy installation.

Disk 3 which is selected to have Ventoy installed

Upon install a partition VTOYEFI will be a 32MB partition in your USB drive.

Next place all your intended ISO into the counterpart partition.

Add ISO into the other partition of the USB drive

You can now boot a computer using Ventoy.

How to subscribe to right issue in Malaysia

Most of the bursary apps in Malaysia does not have the mechanism to perform full subscription to right issue on your counter.

The most the app could do is to sell or start the right issue from the app.

Instead of selling the right issue from the app as an immediate profit. To buy the subscription, the person of interest needs to “bid” to buy the numbers of right issue from the app. After bidding the right issue, it does not means you have subscribed fully. You have just buy the right to subscribe to the right issue.

Luckily my remiser has helped me through the process.

Once, upon subscription go to other 3rd party such as Shareworks to create your account. Do follow up with the staffs for the activation of the account once expedited by your remiser it may take a single working day. Make sure you have your CDS account number. Get it from your remiser or from your bursary statement.

After an account is created this is the expected response from the website
Upon activation, wait for the account to be verified

Once the account is done, time to login to the Shareworks website and proceed to perform subscription to right issue. If everything is good you should see the right issue on the Sharework in your account.

Right issue in your account

Fill up the e-form.

This part of the e-form are autofilled
Fill up the numbers of shares of right issue, make payment based on the instructions given on the right column “Please make Grand Tota payment in”
Fill up your banking account incase refund of your purchase should your subscription is unsuccessful
Upon submitting your subscription, status will show submitted
Download and verify submitted e-form

Follow up with the contact in sharework a few working day later to check the status.

Subscribe into right issue is a good learning experience. However, the discounted price right issue however is not too far off from the lower price of the ordinary share in the share market. It is due to my lack of experience in the share market works. A large bulk of the discount is offset by the bidding to earn right to subscription of right issue.

Quickly installing wazuh into docker environment

Based on Wazuh official documentation Wazuh Docker deployment – Deployment on Docker · Wazuh documentation

TLDR; just need to have docker engine installed on your favorite OS.

The next thing to do is to ensure your OS has a git client and run the following to clone Wazuh into your machine

git clone https://github.com/wazuh/wazuh-docker.git -b v4.12.0

Next, generate the certificates that are needed by Wazuh to work. Make sure to decide to run on a single node or multinode indexer Wazuh. Go to the appropriate directory from the cloned Wazuh git repo. Then run

sudo docker-compose -f generate-indexer-certs.yml run --rm generator

If you are using the newer version aka Version 2 docker compose run the following instead

sudo docker compose -f generate-indexer-certs.yml run --rm generator

Once certificate are generated correctly

Once the certificate is installed, go to the correct directory then run the following:

sudo docker-compose up -d

Again, should version 2 of docker compose is used run the following instead

sudo docker compose up -d

Wazuh multinode when running correctly

If everything is good you will be able to browse to your Wazuh dashboard in a minute or 2.

Wazuh dashboard login
First time login into Wazuh dashboard
Wazuh Dashboard overview
Security warning or violation visualized

Using Wazuh to Secure Systems from the Wild Web

Wazuh SIEM (Security Information and Event Management) platform can help protect systems.

Wazuh SIEM Solution

Wazuh is a free, open-source tool that monitors systems, detects attacks, and logs security events.

It consists of:

  • Wazuh Server (collects and analyzes logs).
  • Wazuh Agents (installed on devices to send logs).
  • Wazuh Dashboard (visualizes threats and alerts).

Simulated Attacks & Findings

  • Brute Force Attacks: Hackers try guessing passwords repeatedly. Wazuh detects and blocks these attempts.
  • SQL Injection: Hackers inject malicious code into websites. Wazuh logs and prevents unauthorized access.
  • Shellshock Attack: Exploits a Linux vulnerability. Wazuh identifies and stops such attempts.

Security Recommendations

  • Regularly update software to fix vulnerabilities.
  • Use strong passwords and multi-factor authentication.
  • Monitor systems with tools like Wazuh to detect threats early.

Conclusion
Wazuh helps organizations detect, analyze, and respond to cyber threats before they cause harm. By implementing strong security measures, users can protect their systems from the dangers of the “Wild Web.”

Final Thought: Cybersecurity is essential—tools like Wazuh make it easier to stay safe online!

Using the ESP32 ESP32S Universal Purple Expansion Board module compatible with 38 pins ESP32 development board

Based on the previous post https://chow.karmeng.my/2025/03/28/programming-esp32-wrover-with-dht22-am2302-humidity-and-temperature-sensor/ , the breadboard that I had purchased has very unreliable connectivity. Resulting in signals from sensor not able to reach the ESP32 microcontroller board.

Upon hours of browsing, discovered expansion board module that is compatible with ESP32 and based on the price it does not break my pocket.

Gotten this cheap from an ecommerce site available in Malaysia

At the time of this post the price point offered is very affordable. I had order 2 pieces of the hardware.

Continue reading

programming esp32-wrover with DHT22 (AM2302) humidity and temperature sensor

Referring to the original material at ESP32 with DHT11/DHT22 Temperature and Humidity Sensor using Arduino IDE | Random Nerd Tutorials

The reference is straight forward; however, it is not for the esp32-wrover.

Based on the from the reference, using educated guess without reading the specification, it is a hindsight that the original wiring will not work.

Original wiring on the breadboard for the ESP32-wrover, spoiler this is wrong for many reasons

It didn’t work, was getting the error “Failed to read from DHT sensor!” from the sample code.

DHTPIN were used is 4, which I had wrongly assumed it to be the physical pin number. Little did I know that, the reference is referring to GPIO4 instead of the physical pin number.

Based on the reference, ESP32-wrover spec sheet page 9, the physical pin 4 is the SENSOR_VP.

Continue reading

hello world for esp32-wrover

This post is based mostly on Installing ESP32 Board in Arduino IDE 2 (Windows, Mac OS X, Linux) | Random Nerd Tutorials it is a good resource to get started on verify the ESP32-WROVER is working.

The hardest part is to determine what are the connector chip and installing libraries into Arduino IDE. Refer to the shared link in the beginning of this post.

Code from DeepSeek for a complicated hello world, assuming to make the LED blinks in morse code:

#include <Arduino.h>

#define LED_PIN 2  // Built-in LED on GPIO 2

// Morse code representations for A-Z
const char* morseCodes[] = {
  ".-",    // A
  "-...",  // B
  "-.-.",  // C
  "-..",   // D
  ".",     // E
  "..-.",  // F
  "--.",   // G
  "....",  // H
  "..",    // I
  ".---",  // J
  "-.-",   // K
  ".-..",  // L
  "--",    // M
  "-.",    // N
  "---",   // O
  ".--.",  // P
  "--.-",  // Q
  ".-.",   // R
  "...",   // S
  "-",     // T
  "..-",   // U
  "...-",  // V
  ".--",   // W
  "-..-",  // X
  "-.--",  // Y
  "--.."   // Z
};

void setup() {
  pinMode(LED_PIN, OUTPUT);  // Set the LED pin as an output
  Serial.begin(115200);
}

void loop() {
  String message = "SOS";  // Message to transmit in Morse code
  message.toUpperCase();   // Convert message to uppercase

  // Transmit the message in Morse code
  for (int i = 0; i < message.length(); i++) {
    char currentChar = message[i];
    if (currentChar >= 'A' && currentChar <= 'Z') {
      transmitMorse(morseCodes[currentChar - 'A']);  // Transmit Morse code for the character
    } else if (currentChar == ' ') {
      delay(1400);  // Gap between words (7 units)
    }
    delay(600);  // Gap between letters (3 units)
  }

  delay(2000);  // Wait before repeating the message
}

// Function to transmit a Morse code pattern
void transmitMorse(const char* morseCode) {
  for (int i = 0; i < strlen(morseCode); i++) {
    if (morseCode[i] == '.') {
      blinkDot();  // Transmit a dot
    } else if (morseCode[i] == '-') {
      blinkDash();  // Transmit a dash
    }
    delay(200);  // Gap between dots/dashes (1 unit)
  }
}

// Function to blink a dot (short flash)
void blinkDot() {
  digitalWrite(LED_PIN, HIGH);  // Turn the LED on
  delay(200);                   // Dot duration (1 unit)
  digitalWrite(LED_PIN, LOW);   // Turn the LED off
}

// Function to blink a dash (long flash)
void blinkDash() {
  digitalWrite(LED_PIN, HIGH);  // Turn the LED on
  delay(600);                   // Dash duration (3 units)
  digitalWrite(LED_PIN, LOW);   // Turn the LED off
}

Code to connect to WiFi:

#include <WiFi.h>

// Replace with your network credentials
const char* ssid = "myhome4iot";
const char* password = "i have the longest wifi password ever";

void setup() {
  Serial.begin(115200);

  // Connect to Wi-Fi
  WiFi.begin(ssid, password);
  Serial.println("Connecting to Wi-Fi...");

  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.print(".");
  }

  // Connection successful
  Serial.println("\nWi-Fi connected!");

  // Get and print network information
  IPAddress ip = WiFi.localIP();
  IPAddress gateway = WiFi.gatewayIP();
  IPAddress dns = WiFi.dnsIP();

  Serial.println("Network Information:");
  Serial.print("IP Address: ");
  Serial.println(ip);
  Serial.print("Gateway: ");
  Serial.println(gateway);
  Serial.print("DNS Server: ");
  Serial.println(dns);
}

void loop() {
  // Nothing to do here
}
Returning IP information of ESP32

Code to scan WiFi:

#include <WiFi.h>

void setup() {
  Serial.begin(115200);

  // Set ESP32 to station mode
  WiFi.mode(WIFI_STA);
  WiFi.disconnect();  // Disconnect from any previous connection
  delay(100);

  Serial.println("Starting Wi-Fi scan...");
}

void loop() {
  // Scan for nearby Wi-Fi networks
  int numNetworks = WiFi.scanNetworks();

  if (numNetworks == 0) {
    Serial.println("No networks found.");
  } else {
    Serial.print(numNetworks);
    Serial.println(" networks found:");
    for (int i = 0; i < numNetworks; i++) {
      // Print SSID and RSSI for each network
      Serial.print(i + 1);
      Serial.print(": ");
      Serial.print(WiFi.SSID(i));  // SSID
      Serial.print(" (");
      Serial.print(WiFi.RSSI(i));  // Signal strength (RSSI)
      Serial.print(" dBm)");
      Serial.print(" [");
      Serial.print(getEncryptionType(WiFi.encryptionType(i)));  // Encryption type
      Serial.println("]");
    }
  }

  Serial.println("-----------------------------");
  delay(10000);  // Wait 10 seconds before scanning again
}

// Function to convert encryption type to a human-readable string
String getEncryptionType(wifi_auth_mode_t encryptionType) {
  switch (encryptionType) {
    case WIFI_AUTH_OPEN:
      return "Open";
    case WIFI_AUTH_WEP:
      return "WEP";
    case WIFI_AUTH_WPA_PSK:
      return "WPA";
    case WIFI_AUTH_WPA2_PSK:
      return "WPA2";
    case WIFI_AUTH_WPA_WPA2_PSK:
      return "WPA/WPA2";
    case WIFI_AUTH_WPA2_ENTERPRISE:
      return "WPA2 Enterprise";
    case WIFI_AUTH_WPA3_PSK:
      return "WPA3";
    case WIFI_AUTH_WPA2_WPA3_PSK:
      return "WPA2/WPA3";
    default:
      return "Unknown";
  }
}

Unfortunately, due to the ESP32-WROVER hardware limitation, any modern 5GHz WiFi will not be able to be scanned or detected. On top of that, the stock ESP32-WROVER-IE needs to have a actual wifi cable to extend its range.

WiFi range is too short to scan a large area as well as limitation of WiFi hardware/chip

Preparing IoT projects for cheap

IoT starter kit using the ESP32-WROVER-IE

I had recently embarked on a small project inspired by ex-colleagues. One of the largest obstacles for a hobbyist is the cost of starting an IOT project.

The project was reignited after encouraging from a friend. I am amazed after learning from him that I can get an arduino with wifi and BLE; ESP32-wrover-ie . The primary appeal is the module cost MYR32 (at the time of the blog post). Its price will be able to allow hobbyist like me to create IoT that will act as a DAQ (Data AQuisition) device, that I can use the data to try out weather forecast modelling using BiLTSM; that will be another story hopefully in near future.

The customed model kit bundle are as following:

Continue reading