Posts

Kafbat and Kafka using WSL

 Kafbat container connect to local WSL Kafka on Windows.   Introduction I wanted to set up a quick dev environment on my Windows machine, using linux (WSL). Didn't want to spend too much time on this but eventually wasted 2 hours. Hopefully this will help you get going quickly.  Aim To get a local kafka broker running and use Kafbat UI to connect to it.   Running Kafbat UI  docker run -it -p 8080:8080 --net="host" -e DYNAMIC_CONFIG_ENABLED=true ghcr.io/kafbat/kafka-ui  The --net=host allows it to form part of the machines network and understand hosts.  My WSL /etc/hosts file already had an entry created as shown below. So I needed to use the same hostname : # This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf: # [network] # generateHosts = false 127.0.0.1       localhost 127.0.1.1        E1509.internal.mycompany.com   E1509 ...

Can't Import Contacts into Huawei Phone (Solved)

 Import Contacts into Huawei  Phone Introduction: When I exported my contacts from a Samsung phone (using contacts), it created a Contacts.vcf file. When I tried to import this into my Huawei Mate 50 Pro, I thought it was a software incompatibility problem. Cause: The import from files cannot handle large files, so you need to break the contacts into smaller files. From my limited testing it seems that I was able to load the file if it was 125K long. Solution Open the Contacts.vcf file in note-pad on your pc, and break it down into smaller files. Just make sure you cut at end of a contact block. For example: BEGIN:VCARD VERSION:2.1 N:Some other contact;SD;;; TEL;CELL:+278xxxxxxxx END:VCARD <!----- cut file here! ------> BEGIN:VCARD VERSION:2.1 N:Some contact;; TEL;CELL:082xxxxxxx END:VCARD