首先在要被执行的 类型 加上参数: [Option(Description = "CloudEvents 'source' (default: urn:example-com:mysource:abc)", LongName = "source", ShortName = "s")][......]继续阅读

2022年11月19日 0条评论 3913点热度 0人点赞 痴者工良 阅读全文

Introduce this library: YamlDotNet Configuration example: services.AddYamlDotNetSerializer( serializer => serializer[......]继续阅读

2022年11月19日 0条评论 13082点热度 0人点赞 痴者工良 阅读全文

引入这个库: YamlDotNet 配置示例: services.AddYamlDotNetSerializer( serializer => serializer .IncludeNonPubli[......]继续阅读

2022年11月19日 0条评论 4036点热度 0人点赞 痴者工良 阅读全文

From ServerlessWorkflow, I learned an interesting configuration for NewtonsoftJson. var newtonsoftJsonDefaultConfig = (JsonSerializerSetti[......]继续阅读

2022年11月19日 0条评论 4011点热度 1人点赞 痴者工良 阅读全文

从 ServerlessWorkflow 中学习到一个有趣的 NewtonsoftJson 配置。 var newtonsoftJsonDefaultConfig = (JsonSerializerSettings settings) => {[......]继续阅读

2022年11月19日 0条评论 4221点热度 1人点赞 痴者工良 阅读全文

ISO 8601 specifies the time format. In Go language, Duration implements this time format. package main import ( "fmt" "time&q[......]继续阅读

2022年11月19日 0条评论 4652点热度 0人点赞 痴者工良 阅读全文

ISO8601 规定了时间格式。 在 Go 语言中,Duration 就实现了这种时间格式。 package main import ( "fmt" "time" ) func main() { t := time.Now() fmt.Println(t) } 输[......] 继续阅读

2022年11月19日 0条评论 4709点热度 0人点赞 痴者工良 阅读全文

Background I suddenly learned about a project called ServerlessWorkflow. https://github.com/serverlessworkflow The specific utility of this project[......] 继续阅读

2022年11月19日 0条评论 1428点热度 1人点赞 痴者工良 阅读全文

背景 突然了解到有个项目叫 ServerlessWorkflow 。 https://github.com/serverlessworkflow 这个项目有什么用,并不重要,重要的是可以从这里了解到云原生中间件开发的一些现状和需要学习的知识。 因为这个项目是 CNCF 项目,里面使用到的规范、思[......] 继续阅读

2022年11月19日 0条评论 4690点热度 1人点赞 痴者工良 阅读全文

首先打开 /etc/kubernetes/pki 目录,里面会有很多证书。 执行命令查看当前证书允许通过哪些地址访问 APIServer: openssl x509 -in apiserver.crt -noout -text | grep -A 2 'Alternative' 可以看到证书[......] 继续阅读

2022年11月18日 0条评论 1054点热度 0人点赞 痴者工良 阅读全文

首先打开 /etc/kubernetes/pki 目录,里面会有很多证书。 执行命令查看当前证书允许通过哪些地址访问 APIServer: openssl x509 -in apiserver.crt -noout -text|grep -A 2 'Alternative' 可以看到证书允许的[......] 继续阅读

2022年11月18日 0条评论 3964点热度 0人点赞 痴者工良 阅读全文

示例代码如下: void Main() { string pName = "程序的名称"; Process[] temp = Process.GetProcessesByName(pName); if (temp.Length > 0) { IntPtr han[......]继续阅读

2022年11月16日 0条评论 1196点热度 0人点赞 痴者工良 阅读全文

示例代码如下: void Main() { string pName = "程序的名称"; Process[] temp = Process.GetProcessesByName(pName); if (temp.Length > 0) { In[......]继续阅读

2022年11月16日 0条评论 3806点热度 0人点赞 痴者工良 阅读全文

创建一个元素: <Label x:Name="Label1" Text="111" VerticalOptions="Center"[......]继续阅读

2022年11月14日 0条评论 3452点热度 0人点赞 痴者工良 阅读全文

创建一个元素: <Label x:Name="Label1" Text="111" VerticalOptions="Center" HorizontalOptions="Ce[......]继续阅读

2022年11月14日 0条评论 3732点热度 0人点赞 痴者工良 阅读全文

package main import ( "context" "fmt" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes&q[......]继续阅读

2022年11月13日 0条评论 2962点热度 0人点赞 痴者工良 阅读全文

package main import ( "context" "fmt" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/t[......]继续阅读

2022年11月13日 0条评论 2766点热度 0人点赞 痴者工良 阅读全文

In the following example, the timer sends a message to the channel every 1 second. It will automatically terminate when the count reaches 10 times. fu[......]继续阅读

2022年11月13日 0条评论 3157点热度 0人点赞 痴者工良 阅读全文

在下面这个示例中,定时器每 1 秒向 channel 发生一次消息。当数量达到 10 次时,会自动终止。 func main() { fmt.Println("Commencing countdown.") tick := time.Tick(1 * time.Second)[......]继续阅读

2022年11月13日 0条评论 3510点热度 0人点赞 痴者工良 阅读全文

MYSQL database transactions support the following isolation levels: Read Uncommitted Read Committed Repeatable Read Serializable In each session, the[......] 继续阅读

2022年11月11日 0条评论 1490点热度 0人点赞 痴者工良 阅读全文
1121314151655