线程池ThreadPoolExecutor详解

  • Post author:
  • Post category:其他

1.ThreadPoolExecutor构造参数 public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, Rejec…

继续阅读 线程池ThreadPoolExecutor详解

MyBatis PLus 处理json存储及返回

  • Post author:
  • Post category:其他

介绍 直接存储在数据库中的json串在发送到前端的时候会自动加上\,导致前端无法直接解析数据,选择使用Json串格式直接接收、储存和返回json串。 pom引入 <!--mybatis-plus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus…

继续阅读 MyBatis PLus 处理json存储及返回

html文本框判断,html的判断文本框内容举例

  • Post author:
  • Post category:其他

在很多情况下,我们都需要登陆、注册等,如果输入的东西不符合要求,那么就会无法提交数据内容。 我们这次的界面设计里面用到了这个,觉得有用拿来看看。序号 这里的pattern里面是正则表达式规则,是在text里面输入符合规则的数据,这个简单的就是输入的数据必须是0到9数字。 function Show() { if (Manager.value == "") { alert("内容为空") } }管理…

继续阅读 html文本框判断,html的判断文本框内容举例

Blender:新手入门练习(一)

  • Post author:
  • Post category:其他

文章目录 1.台灯制作步骤作品效果 2.酒瓶作品效果 3.板凳作品效果 4.吉普车制作步骤作品效果 1.台灯制作步骤 (1).按快捷键shift+A新建一个立方体 (2).按快捷键Tab+3切换到面模式,选中立方体上面的面,使用快捷键G,再按快捷键Z,移动鼠标后,就可将立方体沿着Z轴进行压缩/放大。 (3).继续选择立方体的上面,按住快捷键I,插入一个面,按住快捷键E,移动鼠标,挤出面。 (4).…

继续阅读 Blender:新手入门练习(一)

EMV 交易处理流程

  • Post author:
  • Post category:其他

转自 http://www.cppblog.com/MichaelLiu/articles/9540.html EMV交易过程解析之一 Initiate Application  Michael 2006年7月7日 EMV标准定义了十一个过程,这些过程主要通过交易数据的认证、持卡人身份验证以及风险管理等来实现交易的安全,接下来我们将对这些过程逐一进行剖析,从而明白,为什么EMV交易是安全的。 我将…

继续阅读 EMV 交易处理流程

docker-compose安装postgresql

  • Post author:
  • Post category:其他

1.docker-compose安装,查看官网:docker-compose安装 2.选择安装目录创建docker-compose.yml部署文件 例如我选择的安装目录为: docker-compose.yml文件内容如下: 1.单纯安装postgresql version: "3.9" services: postgres: image: postgres:12-alpine container…

继续阅读 docker-compose安装postgresql

SpringBoot POM web开发(spring-boot-starter-web)

  • Post author:
  • Post category:其他

SpringBoot要集成SpringMVC进行Controller的开发,所以项目要导入web的启动依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depen…

继续阅读 SpringBoot POM web开发(spring-boot-starter-web)

CMU 15213:malloc笔记和malloc实验

  • Post author:
  • Post category:其他

1. malloc笔记 1.1 基础概念 1.dynamic memory allocators:应用程序运行期间申请的内存(malloc)。 2.堆:dynamic memory allocator管理的进程内存区域 3.types of allocator:隐式分配器(new and garbage collection)和显示分配器(malloc & free) 1.2 explic…

继续阅读 CMU 15213:malloc笔记和malloc实验

1000:A+B problem

  • Post author:
  • Post category:其他

题目描述 Calculate a+b 输入 Two integer a,b (0<=a,b<=10) 输出 Output a+b 样例输入 1 2 样例输出 3 代码 #include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", a+b); return 0;…

继续阅读 1000:A+B problem

数据归一化(详解,含代码实现)

  • Post author:
  • Post category:其他

数据归一化   对于初学的朋友,不知道有没有这样的疑惑,数据归一化是什么?我们为什么要对数据进行归一化处理?   不急,让我们从接下来的例子,发现数据归一化的真面目。 肿瘤大小(厘米)发现时间(天)样本一1200样本二5100   不难计算,此时样本间的距离被发现时间所主导。   那如果此时我们将发现时间使用年做单位又会有怎样的结果呢? 肿瘤大小(厘米)发现时间(年)样本一10.55样本二50.2…

继续阅读 数据归一化(详解,含代码实现)