报错 SSL 证书过期后,当使用 x-ui 的 一键申请SSL证书 > 方式2:acme DNS API mode 时,出现如下报错: [DEG] 你的域名设置为:xxx,正在进行域名合法性校验... [ERR] 域名合法性校验失败,当前环境已有对应域名证书,不可重复申请,当前证书详情: xxx 解决 可执行如下命令: rm -rf ~/.acme.sh 脚本提供的证书申请成功后会保存在 /root/cert 目录下,卸载 x-ui 并不会卸载证书,请勿重复申请。 参照 [x-ui 常见问题](https://...
当一座新赌场的建设计划正在酝酿之时,通过四个关键人物的经历,可梳理出一段关于争斗与沉沦的往事,其中充斥着个性的碰撞与罪行的纠葛。 一名警察正在检查 1943 年突袭曼哈顿一间公寓时缴获的轮盘。Seymour Wally 摄/ NY Daily News 档案 / Getty 图片 解梦书是对梦境的剖析,每个梦境后都附有数字。一个多世纪以来,解梦书一直是纽约赌博界的圣经。这些神秘的作者——通常是女...
Palantir 如今炙手可热。这家公司刚入选标普 500 指数,股价一路飙升,市值逼近千亿美元。风投机构争相追逐前 Palantir 创始人寻求投资机会。 对于公司的老员工和离职人员而言,这种盛况令人深感错位。尤其在 2016-2020 年期间,提及自己在 Palantir 工作会招致反感。当时公司被视作间谍技术机构、NSA 监控帮凶甚至更糟,办公室外常有抗议活动。即便是道德层面不反感的人,也认为这不过是伪装成软件公司的咨询机构,充其量是高端人才套利平台。 我于去年离职,但从未公开谈论过在公司的见闻。外界对这家企业的认知存在大量盲区。作为曾在此效力八年的亲历者,我将尝试阐释某些未被洞察的...
格特鲁德·伯格 (Gertrude Berg) 的《戈德堡一家》(The Goldbergs) 曾是一部大胆描绘犹太家庭并备受喜爱的作品。然而,随后的黑名单事件却彻底摧毁了她留下的宝贵事业。 伯格的节目始于 1929 年的广播,一经播出便大受欢迎。1949 年,该节目被搬上电视荧屏。/ Getty 1954 年 5 月 9 日,在 CBS 游戏节目《What's My Line?》的录制现场,当...
Java Coding Tips Use less target.setXX(source.getXX) // when you want to use less target.setXX(source.getXX), same name BeanUtils.copyProperties(source, target) Manipulate Array copy array `java // most efficient(recommend) void System.arraycopy(int[] srcArr, int srcBeginP...
摘要: Java's TreeMap class provides sorted key-value pair management with methods for basic operations (put, get, remove, containsKey/Value, clear, size, isEmpty), sorted map functions (first/last key/entry, pollFirst/LastEntry), navigable map operations for range queries (lower/floor/ceiling/higher entries/keys, subMap, headMap, tailMap), and view methods (keySet, values, entrySet, navigableKeySet, descendingKeySet, descendingMap).
Java's TreeMap class provides a variety of methods for managing and accessing key-value pairs in a sorted manner. Here are some of the key methods: Basic Operations put(K key, V value): Inserts a mapping from the specified key to the specified value. get(Object key): Returns the value a...
摘要: The ZGC garbage collector is designed for low latency, using Region-based memory layout, concurrent mark-compact algorithms, and innovative techniques like colored pointers and multi-mapping. It dynamically manages memory with small, medium, and large pages, optimizing object placement. ZGC's colored pointers store metadata directly in references, reducing memory barriers and enabling efficient concurrent operations. Despite its 4TB memory limit and lack of generational collection, ZGC outperforms other collectors in latency, achieving sub-10ms pauses while maintaining high throughput.
ZGC 收集器是一款基于 Region 内存布局的,(暂时) 不设分代的,使用了读屏障、染色指针和内存多重映射等技术来实现可并发的标记 - 整理算法的,以低延迟为首要目标的一款垃圾收集器。 ZGC的内存布局 与 Shenandoah 和 G1 一样,ZGC 也采用基于 Region 的堆内存布局,但与它们不同的是,ZGC 的 Page 具有动态性——动态创建和销毁,以及动态的区域容量大小。在 x64 硬件平台下,ZGC 的 Page 可以具有如下图所示的大、中、小三类容量: 小型 Page (Small Page):容量固定为 2 MB,用户放置小于 256 KB 的小对象...
In Java, the distinction between instance methods and static methods lies in their relationship with objects of a class. In simple terms, instance methods belong to an object (an instance of a class), while static methods belong to the class itself. Here's a breakdown of the key differe...
摘要: This text analyzes the "Remove Sub-folders from the Filesystem" LeetCode problem and presents two solution approaches. Method 1 uses a Trie (prefix tree) data structure: define trie nodes, insert all files into the tree, then use DFS traversal to collect parent nodes. Method 2 uses sorting: sort files lexicographically, add the first file to results, then traverse remaining elements to check if each is a subfolder of the last added element. For the Trie approach, time complexity is O(nl) and space complexity is O(nl), where n is array length and l is average folder length. For the Sort approach, time complexity is O(nl⋅logn) due to sorting, and space complexity is O(l) for temporary string operations during prefix comparisons.
Question remove sub folders from the filesystem Analysis Method 1: Trie(Prefix tree) define trie node structure insert all file into tree using DFS traverse to collect parent node Method 2:...
摘要: The problem involves balancing fruit costs between two baskets. If the total count of any fruit cost is odd, balancing is impossible. Excess fruits are listed and sorted. A greedy strategy pairs smallest and largest costs to minimize exchange costs, choosing between direct or indirect swaps based on cost efficiency. Time complexity is O(n log n) due to sorting.
Question rearranging fruits Approach: Greedy Intuition According to the problem, the cost x of any fruit must appear an even number of times across the two fruit baskets; otherwise, it is impossible to evenly distribute th...