deploy 遇到 400 错误
错误日志
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xxxx: Failed to deploy artifacts: Could not transfer artifact xxx:pom:1.0.1 from/to archiva.internal (http://nexus.xxx/nexus/content/reposito
Read more ...
行为模式关注类和对象如何交互,以及如何负责对应的事务,也就是怎么定义类的行为和职责。
行为模式还可以大致分成:类行为模式(继承)和对象行为模式(组合或聚合),后者更符合「合成复用原则」。
具体模式
Observer, Notifies multiple objects about state changes in another object.
Strategy, Defines interchangeable algorithms within a family of algorithms
Command, Encapsulates
Read more ...
设计模式中的结构模式可以让我们组合类或者对象形成比较大型的结构,但也能保证结构的可维护性和可扩展性。
Adapter, Allows incompatible interfaces to work together.
Decorator, Dynamically adds behavior to objects without altering their structure.
Facade, Simplifies access to complex systems by providing a unified interface.
Read more ...
Crystal: 多 Claude Code 实例管理器
之前的视频当中介绍过了 Claudia,它是一个 Claude Code 的桌面管理器,它将很多 Claude Code 的终端功能迁移到了桌面版当中,它也支持在应用内直接和 Claude Code 进行对话,但是它缺少了一个核心的功能,那就是当我在同一个项目中开启不同的 Session 时,有可能产生冲突,为了避免这个问题,官方的解决办法是使用 Git worktree,在开发不同的功能时,使用不同的 Worktree 来隔离每一个 Cloud Code 的环境。 今天要介绍的 Crystal 就是这样的一款可以支持多个 Cloud Code 的桌面客户端,并且每一个会话之间相互隔离。
解决 Claude Code 上下文丢失问题: claunch 项目会话管理
今天在使用 Claude Code 的过程,发生了一件非常沮丧的事情,我远程控制的 Claude Code 电脑忘记插上充电器,平时都是依靠连接的显示器进行充电的,昨天晚上将显示器关闭,导致使用的时候一直都是用的电脑的电池,于是在中午的时候,我通过 [[VibeTunnel]] 连接不上我的 Claude Code 了。并且 Claude Code 中执行的内容也中断了,最关键的是有一些上下文,如果重新再来,极有可能造成很大的不一致。