0%

玩转 Claude Code:全平台接入智谱 GLM-4.6 配置实战

📝 前言

起因是半年前买的 Cursor 教育 Pro 版失效了,刚好最近有非常刚需的项目变成需求,于是花了点时间做调研,查看是否有更 fancy 的方法能让我实现代码编写和项目管理,最后发现 Claude Code是真香。

但在国内直连 Anthropic 官方 API 不仅门槛高,成本也不低。好在许多国产的模型,如智谱 AI (ChatGLM) ,豆包,Minmax 等现在非常给力,提供了完全兼容 Anthropic 协议的接口,可以轻松地平替掉 Claude 内置的模型,绕过ip的限制。

这意味着我们完全可以用 Claude Code 的壳,跑国产模型 (如GLM-4.6 )的芯。不仅访问速度起飞,成本也大大降低。这篇笔记整理了我在 Windows、macOS 和 Ubuntu 上跑通智谱 GLM-4.6 模型流程的配置方法,希望能帮大家少走弯路。

Read more »

13 排队论

1. 背景知识

1.1 Notation

  • 肯德尔记号 (Kendall):输入分布/输出分布/并联服务台数($X/Y/Z$)

1971 年,国际排队符号标准会上扩展至六项,记为 ($X/Y/Z/A/B/C$):

1
输入分布/输出分布/并联服务台数/系统容量(队长)/系统状态(顾客源数)/服务规则

e.g. $M/M/1/\infty/\infty/FCFS$

Read more »

This blog is the learning notes for preparing the preliminary exams of Queue theory, referring to Fundamentals of supply chain theory.

  • Snyder, L. V., & Shen, Z. J. M. (2019). Fundamentals of supply chain theory. John Wiley & Sons.

1. Introduction

1.1 The Evolution of Supply Chain Theory

Supply chains used to be viewed, at least by some managers, as “necessary evils.”

By the end of the last century, however, the purpose of the supply chain had begun to change as some firms discovered that supply chains could be a source of competitive advantage, rather than simply a cost driver.

The final chapter of this book is devoted to exploring how the tools of supply chain theory are used in a few of these application areas—electricity systems, health care, and public sector operations.

Read more »

This blog is the learning notes for preparing the preliminary exams of Queue theory, referring to Smart Grids-fundamentals and technologies in electricity networks

  • Buchholz, B. M., & Styczynski, Z. (2014). Smart Grids-fundamentals and technologies in electricity networks (Vol. 396). Heidelberg: Springer.

1. Vision and Strategy for the Electricity Networks of the Future

1.1 Drivers of Smart Grids

The main challenges that need to be solved in the European Union are [1]:

  • the decreasing availability of fossil and nuclear primary energy sources (PES) and,
  • accordingly, their rapidly increasing prices,
  • the 70% dependency of Central Europe on imported PES,
  • the increasing impact of greenhouse emissions on the environment.
Read more »

This blog is the learning notes for preparing the preliminary exams of Queue theory, referring to Fundamentals of queueing theory

  • Shortle, J. F., Thompson, J. M., Gross, D., & Harris, C. M. (2018). Fundamentals of queueing theory (Vol. 399). John Wiley & Sons.

1. Introduction

Queueing theory attempts to answer these questions through detailed mathematical analysis

There are many valuable applications of queueing theory including traffic flow(vehicles, aircraft, people, communications), scheduling (patients in hospitals, jobson machines, programs on a computer), and facility design (banks, post offices, amusement parks, fast-food restaurants).

Read more »

This blog is the learning notes for preparing the preliminary exams of Queue theory, referring to Simulation modeling and analysis

  • Law, A. M., Kelton, W. D., & Kelton, W. D. (2014). Simulation modeling and analysis (Vol. 3). New York: Mcgraw-hill.

1 Basic Simulation Modeling

Basic Simulation Modeling

1.1 The Nature of Simulation

Lectures:

This is a book about techniques for using computers to imitate, or simulate, the operations of various kinds of real-world facilities or processes.

analytic solution: 解析解

Read more »

This blog is the learning notes for preparing the preliminary exams of Queue theory, referring to Introduction to operations research

  • Hillier, F. S., & Lieberman, G. J. (2015). Introduction to operations research. McGraw-Hill.

1. Introduction

These kinds ofproblems and the need to find a better way to solve them provided the environment for theemergence of operations research (commonly referred to as OR)

Many of thestandard tools of OR, such as linear programming, dynamic programming, queueing theory,and inventory theory, were relatively well developed before the end of the 1950s

Three main characteristics of OR:

  1. The research part of the name means that operations research uses an approach that resembles the way research is conducted in established scientific fields.
  2. Still another characteristic of OR is its broad viewpoint.
  3. An additional characteristic is that OR frequently attempts to search for a best solution (referred to as an optimal solution) for the model that represents the problem under consideration.
Read more »

由于 MacBook 自身不具备合盖不休眠功能,而且在合盖的情况下就一定会进入休眠状态。休眠后网络将断开,下载任务也会停止。可以借助一串代码就可以完美的解决这个问题。

Read more »

1. Python 解析和处理 xml 文件

1.1 SAX知识了解

SAX (simple API for XML) 有解析器和事件处理器:

  • 解析器:负责读取XML文档,并向事件处理器发送事件,如元素开始跟元素结束事件。
  • 事件处理器:则负责对事件作出响应,对传递的XML数据进行处理。
Read more »