👋 Welcome to my blog site!
- Writing, coding, and living at my own pace.
- 写作、编程、以自己的节奏生活。
- A quiet corner of the web for ideas and growth.
- 在这片安静的网络角落,记录思想与成长。
👋 Welcome to my blog site!
Prerequisites 3 Virtual Machines or servers (Using Ubuntu 24.04 LTS here). Ensure mysql-server and mysql-shell are installed. (If not installed, use this command: apt install mysql-server mysql-shell -y). These three servers must have network connectivity with each other. Edit /etc/mysql/mysql.conf.d/mysqld.cnf and change bind-address = 127.0.0.1 to bind-address = 0.0.0.0. Restart MySQL after making this change. Getting Started 🚀 Update the /etc/hosts file Run on all 3 servers 127.0.0.1 localhost 192.168.100.140 db-node-01 192.168.100.141 db-node-02 192.168.100.142 db-node-03 Update hostnames Run on all 3 servers respectively ...
Prerequisites 3 Virtual Machines or servers (Using Ubuntu 24.04 LTS here). (Server 1, 2, 3) These three servers must have network connectivity with each other. Getting Started 🚀 Install RabbitMQ and dependencies Run on all 3 servers # Install offical source curl -1sLf 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/setup.deb.sh' | sudo -E bash curl -1sLf 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/setup.deb.sh' | sudo -E bash # Install dependencies apt-get install -y erlang-base erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl # Install RabbitMQ apt-get install -y rabbitmq-server Secure config Run on all 3 servers ...
This is just a design proposal for a permission system; it does not contain any code. Overview What is Bitwise operations? Bitwise operations are calculations performed on binary bits, but do not include mathematical operations such as addition, subtraction, multiplication, and division. Common bitwise operations include AND (&), OR (|), NOT (~), XOR (^), left shift («), and right shift (»). AND: As the name suggests, 1001 & 1010 => 1000. The result is 1 only if both corresponding bits in the binary representation are 1. ...
First of all, this is just a tutorial, there is no complete code. Overview What is the NFC M1 card? The NFC M1 is a passive RFID/NFC card produced by NXP Semiconductors. It has 1 KB of storage, divided into 16 sectors. It operates at 13.56 MHz (High Frequency), which is the standard frequency for NFC. It follows the ISO/IEC 14443-A(Type-A) protocol. For example diagram: Read Card How to read card in Android? First, you should have a android phone of NFC function. You must be enable NFC in your android phone. A empty or useless card. Let’s write code. AndroidManifest.xml Request permissions <uses-permission android:name="android.permission.NFC" /> <uses-feature android:name="android.hardware.nfc" android:required="true" /> MainActivity.kt Define a NFC adapter: private var nfcAdapter: NfcAdapter? = null, NfcAdapter is android.nfc.NfcAdapter Init NFC adapter in MainActivity#onCreate method: this.nfcAdapter = NfcAdapter.getDefaultAdapter(this) Create a override method(For example): If you need to read cards from other SAKs or card models, you will need to write the corresponding multi-branch conditions yourself. ...
Aisa China HongKong, China VPS Ningbo, Zhejiang, China DS Ningbo, Zhejiang, China VPS Eurpo Germany Frankfurt, Germany VPS North America United States Los Angeles, United States VPS 1 A400 Los Angeles, United States VPS 2 A400 Los Angeles, United States VPS 3 DMIT Los Angeles, United States VPS 4 DMIT