Tag Archives: binary

[Solved] Kibana Error: Kibana server is not ready yet

Background


Visit kinaba in the web page http://localhost:5601 , always prompt “kibana server is not ready yet”.

Execute the following command to view kibana logs,

docker logs kibana

Tips found:

Text


It is suspected that the internal IP of each container changes after the container is restarted.

1. Therefore, execute the following command to check the internal IP of elasticsearch container and find that it is kibana The ES container IP in yaml configuration file is inconsistent with the actual es container IP.

docker inspect --format '{{ .NetworkSettings.IPAddress }}'  es container ID

// Check the id of es container
docker ps

2. Enter kibana container and update kibana.Yaml configuration file. Execute the following command to enter and edit kibana.yaml,

docker exec -it kibana container id /bin/bash
cd config
vi kibana.yml

Replace the IP address of the selected part in the figure below with the actual es container IP address, save and exit kibana.

3. Stop kibana service, delete kibana container and restart kibana.

// 3.1 Stop the kibana service
docker stop kibana container id

// 3.2 Delete the kibana container. (Not delete the kibana image! Not delete the kibana image! Not delete the kibana image!)
docker rm -f kibana container id

// 3.3 Enable running kibana
docker run --name kibana -e ELASTICSEARCH_HOST=http://es_contaner_ip:9200 -p 5601:5601 -d kibana:7.7.0


// Note: The command 'kibana:' in 3.3 above is followed by the kibana version number. To be on the safe side, it is recommended that the version of elasticsearch and kibana remain the same.

4. Browser revisit http://localhost:5601, refresh a few more times to access kibana normally.

Modification scheme of binary files in dot matrix font library

Preface: This article aims at the complete Unicode dot matrix font library (other font library calculation methods are different)
solution: part of the dot matrix font library does not meet the business requirements and needs to be changed again (not the whole font library)
note: the two software used in this article are provided with download link at the back!

Steps:

1. Get the Unicode code of the character to be modified
(example: á Unicode code 0x00e1)

2. Calculate the position of characters in binary file;

 

Calculation formula: index = number of bytes occupied by Unicode * characters (need to be converted to decimal and then converted to hexadecimal)

In this example, (0x00e1) converts 225225 * 24 (bytes occupied by characters in the font) = 5400 to hexadecimal

1518)

3. According to the calculated position, find the corresponding data (24 consecutive bits after the position (12 * 2)):

As shown in the picture

The red box is the data of this character in the font,

4. Get the desired character lattice data

5. Replace the original data, complete the

Software resources:

Hex Editor Neo download address: https://www.xp510.com/xiazai/Application/program/20476.html

Download address of font 3: CSDN
Download

above! thank you!