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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2022年11月13日 0条评论 2088点热度 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条评论 1936点热度 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条评论 2367点热度 0人点赞 痴者工良 阅读全文

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

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

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

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

MYSQL 数据库事务支持以下几种隔离级别: Read Uncommitted(读取未提交内容) Read Committed(读取提交内容) Repeatable Read(可重读) Serializable(可串行化) 每个会话中,都可以设置事务的隔离级别,如果不设置,就会使用数据库默认的隔离级[......] 继续阅读

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

Background In Windows, applications can use the app.manifest asset file to configure the role permissions used when the program is launched. The effec[......] 继续阅读

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

问题背景 在 Windows 中,开发的应用可以使用 app.manifest 资产文件配置程序启动时,使用何种角色权限启动。 效果如下: 正常情况下,在 app.manifest 加上以下配置即可: 如果项目中没有这个文件,可以在项目中新建项-清单文件。 <trustInfo xm[......]继续阅读

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

[TOC] Background Actually, I've been planning to write this article for a while, but I've been quite lazy, so I've kept delaying it. Recently, updates[......] 继续阅读

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

[TOC] 背景 其实,规划这篇文章有一段时间了,但是比较懒,所以一直拖着没写。 最近时总更新太快了,太卷了,所以借着 .NET 7 正式版发布,熬夜写完这篇文章,希望能够追上时总的一点距离。 本文主要介绍如何在 .NET 和 Go 语言中如何生成系统(Windows)动态链接库,又如何从代码中引用[......] 继续阅读

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