找到约 10000 条结果
  • 使用Prometheus监控etcd
    安装 {代码...} 配置文件 {代码...} 运行 注意prometheus的web界面使用9090端口 {代码...} 访问 [链接]:5002 自动把集群的所有请求汇总了。 alertmanager  docker-hub-alertmanager github-alertmanager Prometheus 做為監控系統的優勢與限制 参考 etcd-metrics prometheus prometheus Using Docker 使用 Prometheus 监...
    2016-06-07
    2
  • LeetCode38.报数
    报数序列是一个整数序列,按照其中的整数的顺序进行报数,得到下一个数。其前五项如下: 1 11 21 1211 111221 1 被读作 "one 1" ("一个一") , 即 11。11 被读作 "two 1s" ("两个一"), 即 21。21 被读作 "one 2", "one 1" ("一个二" , "一个一") , 即 1211。 给定一个正整数 n(1 ≤ n ≤ 30),输出报数序列的第 n 项。 ...
    2019-02-18
  • Go 快速入门指南 - URL
    概述调用 net/url 包即可。例子构造 URL {代码...} 解析 URL {代码...} 解析 URL (带参数) {代码...} 联系我
    2022-12-30
  • Kotlin 线程同步的方法
    面试的时候经常会被问及多线程同步的问题,例如:“ 现有 Task1、Task2 等多个并行任务,如何等待全部任务执行完成后,开始执行 Task3 ? ”Kotlin 中有多种实现方式可供选择,本文将所有这些方式做了整理:Thread.joinSynchronizedReentrantLockBlockingQueueCountDownLatchCyclicBarrierCASFutureCompletableFutureRxjava...
    2021-12-16
  • svg背景动画
    在前端开发中经常需要一些过渡动画,可以借助SVG作为背景动画实现。 原文链接 animate svg中animate元素可以用于实现动画效果 attributeName 定义发生变化的元素属性名 attributeType 当attributeType="XML"时,attributeName被认为是XML的属性;当attributeType="CSS"时,attributeName被认为是css的属性;不指定attrib...
    2017-12-06
  • 12.kubernetes笔记 Volume存储卷(三) Longhorn Storageclass 动态预配存储空间
    前面介绍的PV、PVC完成了存储类型和Pod挂载的解耦,开发人员直接使用PVC,而Volume存储系统的PV由管理员维护,但随之带来的问题,开发人员使用PVC之前,需要系统管理员提前手动创建PV,而随着pod的不断增多,系统管理员的工作会变得重复和繁琐,静态供给方式这并不符合自动化运维的趋势,随之应运而生的Storageclass 动...
    2021-10-22
  • PyTips 0x07 - Python 字符串
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: invalid continuation byte
    2016-03-16
  • 一个小巧跨平台文件流压缩解压库CrossLZ
    CrossLZ[链接]CrossLZ is a tiny cross-platform fast stream compression library.When should you use CrossLZ:When you need a cross-platform compression stream library.When you need standard glibc file stream equivalent APIs.When you need a tiny extensive compression stream framework.When you need a ...
    2022-03-11
  • Laravel 发送响应
    Laravel 发送响应 {代码...} 发送响应头 {代码...} 发送响应体 {代码...} 发送到客户端 {代码...} 后续动作 执行中间件的 terminate 方法和事件等 至此,框架核心流程全部走完
    2017-03-31
  • leetcode 13 Roman to Integer
    Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.输入一个字符串形式的罗马数字,我们需要将它转换为阿拉伯数字表示的整数。其中输入的数字在1到3999的范围内。
    2018-02-11
  • JavaScript把秒格式为易读形式
    把 33546001秒 格式化为 1年23天6小时20分1秒这种易读格式。 {代码...} 如果时分秒不足10需要补0,就是下边这样: {代码...} 有时我们还需要格式化过去的某个时间点,距离现在已经过去多久,如下:把文章或者评论的 发布时间 转换成,刚刚,10分钟前....可以参考下面这篇文章格式化发布时间
    2022-07-28
  • IPQ5018 IPQ6010 IPQ8072 Support Latest Opensource Code
    In the ever-evolving landscape of technology, connectivity is the cornerstone of innovation. At Wallys Tech, we're excited to announce our latest endeavor – a comprehensive open-source code repository now available on GitHub. This repository is tailored to support the development of routers, spec...
    2023-12-05
  • sqlalchemy连接mysql中文乱码问题
    我用的dialect是pymysql,先看了一下pymysql,发现果然在这一层就已经出问题了 如果用纯pymysql的话,在连接数据库的时候要加上charset='utf8' {代码...} 然后在sqlalchemy这一层的做法是在dsn字符串后面加上?charset=utf8 {代码...} 参考[链接] 感谢
    2014-09-11
  • 根据身份证号码 严格验证 并 获取身份信息
    s-id-card最近公司需求是验证身份证 并严格验证 所有 封装了一个这个希望可以帮助大家 也希望反馈介绍根据身份证号码 返回身份信息 (户籍、出生年月、年龄、性别)严格验证身份证是否合法安装 {代码...} 使用引用import sIDCard from "s-id-card";调用sIDCard("string",Boolean)参数参数说明必填默认string身份证号必填...
    2020-11-12
  • 开启K8S的学习篇章
    今日是2022年4月6日。从今日起,每天至少更新一篇K8S技术文章。Let's Go!
    2022-04-26
  • 在Kubernetes上对Ambassador,Contour和Nginx性能进行基准测试
    在典型的Kubernetes部署中,所有到Kubernetes服务的流量都流经ingress。Ingress代理从Internet到后端服务的流量。这样,Ingres就在您提高性能的关键路径上。有多种基准测试和衡量性能的方法。
    2020-04-11
  • golang 求两个数组的交集 差集 去重等方法
    {代码...}
    2022-03-20