本文首发于 Ficow Shen's Blog,原文地址: Docker 中使用 scratch 镜像构建 Go 应用镜像,容器报错:X509: Certificate Signed by Unknown Authority。 内容概览 前言 将证书添加到镜像中 不使用 HTTPS 总结 前言 当使 ...
分类:
其他好文 时间:
2020-11-13 13:14:43
阅读次数:
18
以下是main函数最开始的两段,也是cocos2d一开始执行的地方: AppDelegate app; return Application::getInstance()->run(); 接下来用代码对以上函数进行简单复原: #include<iostream> #include<assert.h> ...
分类:
其他好文 时间:
2020-11-11 16:08:51
阅读次数:
4
偏函数应用(Partial Application)是指固定一个函数的某些参数,然后产生另一个更小元的函数。而所谓的元是指函数参数的个数,比如含有一个参数的函数被称为一元函数。 偏函数应用(Partial Application)与函数柯里化很容易混淆,它们之间的区别是: 偏函数应用是固定一个函数的 ...
分类:
其他好文 时间:
2020-11-10 10:30:28
阅读次数:
7
public partial class App : Application { public App() { this.Startup += (o1, e1)=>{ string commandLine = Environment.CommandLine; string appFilePath = ...
分类:
移动开发 时间:
2020-11-08 17:59:30
阅读次数:
30
不用紧急上线,在线优化SQL?MySQL5.7新特性QueryRewriteplugin使用导读:MySQLQueryRewritePlugin是MySQL5.7.6引入的新功能,可以让MySQLDBA在Server内做一些SQL改写及优化,用于一些紧急优化或是测试上线。本文是吴炳锡在高可用架构群的分享,介绍如何如何使用该功能。吴炳锡,知数堂联合创始人,MySQLDBA课程讲师,前新媒传信首席DB
分类:
数据库 时间:
2020-11-07 17:01:33
阅读次数:
26
TechRoad 1. Architecture <Java Application architecture> modular, Spring context config <EIS> technology decision, base eis-platform-brms <MS PPP> cha ...
分类:
其他好文 时间:
2020-11-07 16:51:15
阅读次数:
24
1,创建module,pom引入依赖:spring-boot-configuration-processor 2,创建entity,类上加注解:@ConfigurationProperties(prefix="sms"),这样可以读取application.yml文件,把文件的属性映射到class的 ...
分类:
编程语言 时间:
2020-11-07 15:49:12
阅读次数:
18
前置知识 ajax形式post提交数据的content-type有主要常用三种 application/x-www-form-urlencoded multipart/form-data(上传文件) application/json 原生的django对于content-type为applicati ...
分类:
移动开发 时间:
2020-11-06 01:26:29
阅读次数:
24
this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; Application.ExitThread ...
分类:
编程语言 时间:
2020-11-04 18:44:34
阅读次数:
18
[app] # (str) Title of your application title = My Camera # (str) Package name package.name = myapp # (str) Package domain (needed for android/ios pac ...
分类:
其他好文 时间:
2020-11-04 18:36:40
阅读次数:
20