Shell Coding Guidelines Removing Suffix by SeparatorWant to strip off everything after the first or last occurrence of a separator in a string? Suppose your string is $string and the separator is $separator: Before the first 2025-09-28 Programming #reference #coding-guidelines #shell #programming
C++ Coding Guidelines Guiding Philosophy Prioritize modularity, clarity, and maintainability over premature optimization or legacy patterns. Code should be readable, easily understood, and safe by default. Favor Python-s 2025-09-15 Programming #reference #c++ #coding-guidelines
古诗词现代解读 朝搴阰之木兰兮,夕揽洲之宿莽。 乘骐骥以驰骋兮,来吾道夫先路! 朝饮木兰之坠露兮,夕餐秋菊之落英。 回朕车以复路兮,及行迷之未远。 步余马于兰皋兮,驰椒丘且焉止息。 忽反顾以游目兮,将往观乎四荒。 驷玉虬以桀鹥兮,溘埃风余上征。 朝发轫于苍梧兮,夕余至乎县圃。 览相观于四极兮,周流乎天余乃下。 朝发轫于天津兮,夕余至乎西极。 凤皇翼其承旗兮,高翱翔之翼翼。 驾八龙之婉婉兮,载云旗之委蛇。 抑志而 2025-09-12 Linguistics and Literature #poetry #literature
Running Local LLMs with Ollama Large Language Models (LLMs) have revolutionized AI, but cloud-based solutions often come with privacy concerns and usage limitations. Ollama provides an elegant solution by enabling you to run LLMs l 2025-09-05 AI and Machine Learning #machine-learning #llm #ollama
Python Coding Guidelines General Principles One file = one module = one purpose: Each file must be explicitly importable as a module and serve exactly one main purpose. Do not default to generic Python ecosystem “be 2025-08-29 Programming #reference #coding-guidelines #python
Eating in the Americas - Down-to-earth Foodstuffs 吃在美洲——接地气儿的食材 Eating in the Americas - Down-to-earth Foodstuffs 这些植物和动物在美洲有原生族群: These plants and animals have populations native to the Americas: 植物 Plants 天门冬目 Asparagales 天门冬科 Asparagaceae 龙舌兰属 Aga 2025-08-21 Lifestyle #food
Setting Up a VNC Server for Remote Desktop Access While SSH is a staple tool and almost universally understood among Linux users, setting up VNC for remote desktop access - especially headlessly or with virtual framebuffers - remains mysterious to ma 2025-08-21 Systems #reference #systems #vnc #remote-desktop
英语名词新译 “哎妈呀,这不就是咱们屯子里的那个……吗!” 专有名词 Berkeley 桦林 古英语的 *beorc* 意为桦树,*leah* 意为林地、空地 Carmichael 米哈伊尔堡 苏格兰盖尔语的 caer 意为“要塞”或“堡垒” Cornell 角斗士 古凯尔特语的 corn 意为“角”或“突出物 ”,wall 意为“统治者”或“勇士” Dunbar 山头堡 苏格兰盖尔语的 dùn 2025-07-30 Linguistics and Literature #linguistics #translation
Metaclass Fundamentals Metaclasses are one of Python’s most powerful yet least understood features. They enable patterns that would be difficult or impossible with regular class definitions. In this post, we’ll explore meta 2025-07-25 Programming #python #metaprogramming
Creating Custom Data Structures from Abstract Containers in `collections.abc` Creating Custom Data Structures from Abstract Containers in collections.abcPython’s collections.abc module provides a set of abstract base classes (ABCs) that define the interfaces for various contain 2025-07-24 Programming #python #data-structures