Table of Contents 1. Get Current Thread Information 2. Manage Thread States 2.1 Starting and Passing Parameters 2.1.1 ParameterizedThreadStart 2.1.[......] 继续阅读

2020年4月15日 0条评论 4803点热度 3人点赞 痴者工良 阅读全文

目录 1,获取当前线程信息 2,管理线程状态 2.1 启动与参数传递 2.1.1 ParameterizedThreadStart 2.1.2 使用静态变量或类成员变量 2.1.3 委托与Lambda 2.2 暂停与阻塞 2.3 线程状态 2.4 终止 2.5 线程的不确定性 2.6 线程优[......] 继续阅读

2020年4月15日 0条评论 4867点热度 3人点赞 痴者工良 阅读全文

Tip: 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111[......] 继续阅读

2020年4月12日 0条评论 3116点热度 0人点赞 痴者工良 阅读全文

文章内容有知识点提示时: 提示:1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111[......] 继续阅读

2020年4月12日 0条评论 3870点热度 0人点赞 痴者工良 阅读全文

Reimage Repair is a very powerful tool that can diagnose system issues and repair the system. It can easily fix various errors encountered during Win[......] 继续阅读

2020年4月4日 0条评论 1080点热度 5人点赞 痴者工良 阅读全文

Reimage Repair 是一个非常强大的工具,能够诊断系统问题,修复系统。 对于 windows 10 更新时碰到的各种错误,使用此软件可以很容易地修复系统。 以管理员权限打开cmd,输入 SFC/scannow 也可以扫描系统。 使用 dism /online /cleanup-image[......] 继续阅读

2020年4月4日 0条评论 7363点热度 5人点赞 痴者工良 阅读全文

[5 Minutes] Rookie Study on Design Patterns: Six Design Principles [TOC] As a rookie, the author will attempt to explain the characteristics and appli[......] 继续阅读

2020年4月4日 0条评论 1316点热度 1人点赞 痴者工良 阅读全文

[5分钟]菜鸟修研之设计模式:六大设计原则 [TOC] 笔者作为一个菜鸟,会尝试以简单的代码和容易理解的语句去解释这几种原则的特性和应用场景。 这六种原则分别为单一职责原则、接口隔离原则、里氏替换原则、迪米特法则、依赖倒置原则、开闭原则。 单一职责原则 单一职责原则(SRP:Single respo[......] 继续阅读

2020年4月4日 0条评论 4116点热度 2人点赞 痴者工良 阅读全文

readonly string ganweiCosr = "AllowSpecificOrigins"; Startup.ConfigureServices 中,添加服务 #if CORS services.AddCors(options[......]继续阅读

2020年4月3日 0条评论 7110点热度 7人点赞 痴者工良 阅读全文

Startup 中,添加一个变量 readonly string ganweiCosr = "AllowSpecificOrigins"; Startup.ConfigureServices 中,添加服务 #if CORS services[......]继续阅读

2020年4月3日 0条评论 7014点热度 7人点赞 痴者工良 阅读全文

Create a static class to inject Dapper services. /// <summary> /// Inject Dapper /// </summary> public static class Dapper[......]继续阅读

2020年4月3日 0条评论 1288点热度 6人点赞 痴者工良 阅读全文

新建一个静态类吗,注入 dapper 服务。 /// <summary> /// 注入dapper /// </summary> public static class DapperService { /// <s[......]继续阅读

2020年4月3日 0条评论 6229点热度 6人点赞 痴者工良 阅读全文

可以在容器中执行命令,查看到信息 /egrep '^1:.+(docker|lxc|kubepods)' /proc/1/cgroup 那么我们可以通过读取文件的方法,去分析是否在容器中运行。 代码如下 /// <summary> //[......]继续阅读

2020年4月1日 0条评论 4552点热度 0人点赞 痴者工良 阅读全文

可以在容器中执行命令,查看到信息 /egrep '^1:.+(docker|lxc|kubepods)' /proc/1/cgroup 那么我们可以通过读取文件的方法,去分析是否在容器中运行。 代码如下 /// <summary>[......]继续阅读

2020年4月1日 0条评论 5118点热度 0人点赞 痴者工良 阅读全文

SQLite does not actually delete data; instead, it moves the data to free pages. This can cause the database size to increase over time. The vacuum com[......] 继续阅读

2020年4月1日 0条评论 1208点热度 4人点赞 痴者工良 阅读全文

SQLite 删除数据不会真正删除,而是移动到空闲页中。这样会导致体积越来越大。 vacuum 命令通过复制主数据库中的内容到一个临时数据库文件,然后清空主数据库,并从副本中重新载入原始的数据库文件。这消除了空闲页,把表中的数据排列为连续的,另外会清理数据库文件结构。 意思是,体积太大,就执行 va[......] 继续阅读

2020年4月1日 0条评论 4862点热度 4人点赞 痴者工良 阅读全文

1. Knowledge Scope Basics of Java Language Operations and Statements Basics of Object-Oriented Programming Arrays and Strings Graphical User Interfac[......] 继续阅读

2020年3月29日 0条评论 1062点热度 0人点赞 痴者工良 阅读全文

1,知识范围 Java 语言基础 运算和语句 面向对象编程基础 数组和字符串 图像界面(GUI) 图形图像多媒体 多线程 输出输入流 网络和数据库编程 这些知识中,GUI、和图像、多线程、输出输入流、网络数据库,时间较紧的情况下,没那么多时间学习(不想学Java)。 一张试卷 100 分,60[......] 继续阅读

2020年3月29日 0条评论 4172点热度 0人点赞 痴者工良 阅读全文

The previous article mainly focused on basic syntax, while this one focuses on GUI-related topics. GUI is very old, and I wouldn't learn it if it wer[......] 继续阅读

2020年3月28日 0条评论 4050点热度 0人点赞 痴者工良 阅读全文

上一篇主要是基础语法,这一篇主要是 GUI 方面的题目。 GUI 非常老啦,如果不是为了考试,才不学这个。 1,在 java.awt.event 包中用来检测并对事件做出反应的模型有哪些? 答:源对象(Source)、监视器对象(Eventlistener)、事件对象(EventObject) 监[......] 继续阅读

2020年3月28日 0条评论 4036点热度 0人点赞 痴者工良 阅读全文
1333435363754