[Java] Generate Chrome import bookmark file based on Bookmarks.bak

Scenario: A few days ago, a colleague of mine accidentally deleted the bookmarks of an entire folder. He didn’t even click the undo button in the lower left corner without logging in to his account. He didn’t know how to restore it. There is a method on the Internet, which is to enterC:\\User\AppData\Local\Google\Chrome\\User Data\Default< /strong> […]

Easy to control! How Prometheus monitors indicators and quickly locates faults

Prometheus monitors business indicators Now that Kubernetes has become the de facto container orchestration standard, the deployment of microservices has become very easy. However, as the scale of microservices expands, the challenges brought by service governance will also become greater and greater. In this context, the concept of service observability emerged. In a distributed system, […]

Prometheus monitors Kafka (three methods JMX/Kafka_exporter/KMINION monitors Kafka)

Background One sentence describes the needs: The company needs to monitor the consumption of the Kafka message queue, emphasizing the need to check the number of messages in the current Topic. One sentence explains the solution: Java processes like Kafka can first obtain monitoring data through JMX Agent or third-party Agent (kafka_exporter\KMINION, etc.), then collect […]

Hair loss secrets: the most complete summary of front-end Chrome debugging skills

Click on the front-end Q above and follow the public account Reply to join the group and join the front-end Q technology exchange group Author: An Muxi Original text: https://juejin.cn/post/7248118049584316472 Note: The tests and screenshots in this article are all from the Edge browser (the kernel is Chromium). For the browser kernel, you can learn […]

Hair loss secrets: the most complete summary of front-end Chrome debugging skills

Author: An Muxi Original text: https://juejin.cn/post/7248118049584316472 Note: The tests and screenshots in this article are all from the Edge browser (the kernel is Chromium). For the browser kernel, you can learn about “What browsers/kernels are there?” [1]》 00. Summary of basic operations Operation type Shortcut keys/instructions Switch browser tabs Ctrl + 1 to 8Switch to […]

Monitoring system-Prometheus (3) Metrics in Prometheus

Article directory Monitoring system-Prometheus (3) Metrics in Prometheus 1. Prometheus indicator type 1. GaugeVec and Gauge type indicators of Prometheus 2. Actual demo of converting heartbeat data into gauge type indicators of Prometheus Used promhttp.Handler() of the Prometheus Go client library to expose the metrics interface 3. Configure Prometheus to obtain custom indicators How to […]

Prometheus+Grafana deployment (super detailed)

Prometheus + Grafana + Alertmanager deployment to implement enterprise WeChat robot alarms Summary Prometheus supports multi-operating system deployment and can also be deployed through container platforms such as docker and kubernetes. For details, please go to the official website: https://prometheus.io/download/ 1. Environment preparation node Centos 7 IP prometheus & amp; grafana & amp ;alertmanager 192.168.50.a […]

Examples of using fromElements and fromSequence in flink data source

Examples of using fromElements and fromSequence with flink data source package org.example; import org.apache.flink.api.common.functions.FlatMapFunction; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.api.windowing.assigners.TumblingEventTimeWindows; import org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows; import org.apache.flink.streaming.api.windowing.time.Time; import org.apache.flink.util.Collector; public class CollectionSource { public static void main(String[] args) throws Exception{ StreamExecutionEnvironment env=StreamExecutionEnvironment.createLocalEnvironment(); // Use fromElements to get a data source DataStream<Integer> myints=env.fromElements(1,2,3,4,5,6,7,8); // Use fromSequence to […]

[Chrome] Use k8s and docker to deploy the headless browser Headless, Java calling example

What is a headless browser? A headless browser is a browser without a graphical user interface. A headless browser does not control the operation of the browser through its graphical user interface (GUI), but uses the command line. Why use Chrome headless? Chrome Headless is used for scraping (Google), testing (developers), and hacking (hackers). Search […]

Chrome plug-in: instagram fan list tracking

Developing a Chrome plug-in to track Instagram fan lists and manage followers is a relatively complex task that requires an in-depth understanding of Instagram’s web page structure and the basics of using Chrome plug-in development. Below are a rough outline of the steps and sample code, but since Instagram’s web page structure may change at […]