A successful Git branching model

Why git? For a thorough discussion on the pros and cons of Git compared to centralized source code control systems. As a developer, I prefer Git above all other tools around today. Git really changed the way developers think of merging and branching. From the classic CVS/Subversion world I came from, merging/branching has always been considered a bit scary and something you only do every once in a while. As a consequence of its simplicity and repetitive nature, branching and merging are no longer something to be afraid of. Version control tools are supposed to assist in branching/merging more than anything else. ...

May 23, 2022 · 11 min · 

Hugo Automatic deployment

GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want. I use Github Actions to deploy site source files (eg: hugoBlog source) to GitHub Pages (eg: liugangjian.github.io ) automatically . My blog project architecture is shown below. In the figure we can clearly see there are three repositories. ...

January 20, 2022 · 2 min · 

Java Annotations Introduction

Java custom annotations are generally used with interceptors or AOP . Using the custom annotations to design your own framework can make the code look very elegant. What is Annotations ? Java annotation is an annotation mechanism, introduced by jdk5.0. Classes, methods, variables, parameters and packages in the Java language can be labeled. Unlike the Javadoc, Annotation can obtain annotation content through reflection. When the compiler generates class files, annotations can be embedded in bytecode. The Java virtual machine can retain the annotation content and obtain the annotation content at run time. Of course, it also supports custom Java annotations. ...

January 18, 2022 · 5 min · 

MCP Model Context Protocol - 交互式演示

MCP Model Context Protocol - 交互式演示 欢迎来到我的MCP交互式演示!本文档展示了Model Context Protocol的核心概念和功能。 什么是MCP? MCP(Model Context Protocol)是一个开放标准,允许AI助手安全地连接到各种数据源和工具。它为AI应用提供了: 📊 数据源连接:数据库、API、文件系统 🛠️ 工具集成:代码编辑器、设计工具、办公软件 🔒 安全性:权限控制、数据隔离 🚀 可扩展性:自定义协议和工具 交互式演示 下面是一个使用Slidev创建的交互式演示文稿,展示了MCP的工作原理和应用场景: 🎯 高级架构演示 下面是一个更高级的MCP架构演示,展示了实际的数据流和交互过程: 🚀 高级演示特性 这个高级演示包含以下特性: 🎨 暗色主题:专业的暗色界面设计 🎮 交互式组件:Vue.js驱动的动态界面 📊 实时数据流:展示MCP通信协议的实际工作过程 🔄 状态机模拟:完整的MCP请求-响应流程 📱 多场景支持:GitHub集成、PostgreSQL数据库、Slack机器人 演示功能特性 这个交互式演示包含以下特性: ...

January 19, 2024 · 1 min ·