Posts

Google Ads

Table of countries with their country codes and GMT offsets

This table provides a list of countries along with their ISO 3166-1 alpha-2 country codes and corresponding GMT (Greenwich Mean Time) offsets. The GMT offset represents the time difference between the country's local time and Greenwich Mean Time, which serves as a reference point for global timekeeping.

Generate SSL certifications for Mosquitto MQTT TLS Security in Windows

This is my Windows batch code to generate all the necessary SSL certificates for Mosquitto MQTT TLS security. This batch code will run unattended and it is recommended that you make your necessary adjustment to the code below. I wrote this windows batch code based on   Mosquitto SSL Configuration -MQTT TLS Security . Please refer to the guide for more information on how to set up MQTT TLS with Mosquitto.

Turn off the HDMI output on the Raspberry Pi 3B+

Turning off the HDMI output on the Raspberry Pi saves around 10 mA. If your applications does not need the HDMI output, you might as well turn it off to optimize power consumption. Below are the Linux commands to turn it off and on.

Turn off USB and LAN on the Raspberry Pi 3B+

Turning off the USB and LAN can save around 200 mA of power. However, it is not possible to turn off individual USB or LAN separately as they are sharing the same I.C. Below are the Linux commands to turn off and on the USB and LAN.

Turn off the Power LED on the Raspberry Pi 3B+

Turning off the power (PWR) LED might save you a few mA but if you don't need it, below are the Linux commands to turn it off and on back again. Additionally, you can also change the Activity (ACT) LED behavior as well.

Turn off the WiFi and Bluetooth on the Raspberry Pi 3B+

Turning off the WiFi and Bluetooth will save around 30 mA on the Raspberry Pi 3B+. Below are the commands to turn them off and on.

Howto Set Up Raspberry Pi Without PC Monitor, Keyboard and Mouse

There are many write-ups about this topic. However, this guide is the best and easiest to set up. All you need to do is to enable SSH by adding a blank file with filename of SSH in the boot partition of the SD card. Then connect a LAN cable from your PC to the Raspberry Pi. Yes, direct LAN cable connection from PC to Raspberry Pi. Use any SSH client software you have and log in to raspberrypi.local Below is the video made by the author. Please leave him/her some token of appreciation. Thank you.

How to remove a record of an installed package without removing the installed files in Linux

If you are working with Raspberry Pi or any other Linux systems and you want to protect how you set up the board, you can use this method to remove the record of custom packages that you have installed. It will make it harder for people to reverse engineer your setup.  They can still clone your SD card and use it on other RPi boards. For that, you can refer to  How to prevent Raspberry Pi SD card cloning  blog post.

How to prevent Raspberry Pi SD card cloning

A simple script to prevent Raspberry Pi micro SD card cloning. It uses the CPU serial number as the unique ID for authentication. Use this script during boot up to check if the Raspberry Pi CPU serial number matches with the number hardcoded in the script. If the number does not match, then it will shut down Raspberry Pi.

A Better SKMEI 1418 / 1427 Instructions Manual

Image
This SKMEI 1418 / 1427 digital watch is a great outdoor watch for a really cheap price. However, the instructions manual is far from good. It took me some time to explore some of the functions and at the same time trying to understand the instructions manual provided by SKMEI. I decided to write an alternative instructions manual for this watch so that other owners of this watch might benefit from it. But never the less, I am not a good English language writer myself. But I do think it is still better than the instructions manual provided. Feel free to correct me using the comment section.

SKMEI 1418 / 1427 watch main screen

Image
SKMEI 1418 / 1427 has five buttons that perform various functions depends on the mode or screen it is in. For example on the main screen, the dedicated barometer button is to switch the mode to barometer mode from the main screen. When in the setting mode, the same button performs as an up button or when in stopwatch mode, the same button is the start button. Keep reading to learn how to navigate through the watch modes from the main screen.

SKMEI 1418 / 1427 digital barometer

Image
SKMEI 1418 / 1427 barometer mode displays the current air pressure and current temperature measurement. It also stores a history of air pressure measurement for 24 hours with one measurement per hour. Keep reading to find out how to set it up, calibrate and use it.

SKMEI 1418 / 1427 stopwatch function

Image
This SKMEI 1418 / 1427 stopwatch function is represented as CHR which I believe it is short for the chronograph. The operation is pretty straightforward and similar to other watches with the  Start  and  Reset  buttons are printed on the watch.

SKMEI 1418 / 1427 pacer function

Image
This is a step pacing function. It creates beeping sounds for you to keep the rhythm of your run. The main display the total beeps and the bottom display the frequency of the beeps in beeps per minute (bpm). I remember that this function was in one of the Casio running watch before the year 2000. It helps to pace your steps to make sure that your running speed is not slower and meet your target completion time during training. But I never remember this was a popular function during that time.

SKMEI 1418 / 1427 alarm function

Image
SKMEI 1418 / 1427 has two alarms that can be set up separately. In this mode, you can turn on and off the hourly chime mode.