cmake_build_type cmake build type

[Typescript] Inferring Literal Types from any Basic Type

export const inferItemLiteral = <T>(t: T) => { return { output: t, }; }; const result1 = inferItemLiteral("a"); // ? {output: string} /* vs */ export ......
Typescript Inferring Literal Basic Types

[Typescript] Generic slots, using built-in types as much as possible

There are two options doing the same things. const makeSafe = <TParams extends any[], TReturn>(func: (...args: TParams) => TReturn) => ( ...args: TPar ......
Typescript built-in possible Generic slots

cmake小贴士

visual studio 环境里,可以用 IDE 生成CMakePreset.json 。 Tools > Options > CMake > General. 有CMake集成管理界面, 当CMakeLists.txt 目录中,同时有CMakePreset.json 和 CMakesetting ......
cmake

'T' must be a non-abstract type with a public parameterless constructor

虽然工作10多年, 但是真正使用框架的项目很少很少... 所以对接口, 方法等约束毫无经验 今天做了个动态代理dispatchproxy的类, 但是在调用时却一直提示如下错误: Error CS0310 'T' must be a non-abstract type with a public pa ......

Vue启用报错 RangeError: Invalid typed array length: -4095

近期开发的前端项目项目启用失败,记录下修复过程 RangeError: Invalid typed array length: -4095 错误原因:node版本问题,安装10.x.x 即可 重新安装: 1.将原来的nvm,node卸载 2.安装nvm 如果显示上面内容即安装成功 3. 在nvm上安 ......
RangeError Invalid length typed array

监听 input type=file 文件上传取消事件

在做项目的时候,需要根据是否上传图片,(前提是已经上传文件,再次上传取消时,监听取消事件)进而判断页面变化。通过查阅相关资料,发现change事件并不能监听取消,于是从另外一种角度:判断上传的文件是否有值,进而监听取消事件。 代码如下: <input type="file" name="file" ......
事件 文件 input file type

Abnormal build process termination--解决IDEA启动web项目报错

在project structure中,把sdk中的jdk重新添加,却发现选择了正确的jdk目录却提示不是正确的jdk路径。于是,我重新安装了jdk。在idea中又重新引了jdk。这个问题就解决了。所以有时候当你一直运行正确的时候,突然发现有问题了。可能就是近期修改的东西导致的。 基本就是jdk的问 ......
termination Abnormal process 项目 build

Macos 如何安装 cmake

方法一:brew brew install cmake 用 brew 安装是一个万能方法,但是 cmake 版本迭代太快。目前 CLion 最高支持 cmake24.x 版本,而 cmake 目前是 26.x。每次用 brew 更新 cmake 后都要在 CLion 中重新指定 cmake 位置,比 ......
Macos cmake

Can't get JDBC type for null

背景 Java连接PostGres库, 运行SparkSQL脚本报错, 原因是: SQL脚本中不能存在null关键字. 解决方案 将null替换为**''**即可. ......
JDBC type null Can get

Content type 'application/json' not supported] (已解决)

今天在用postman发请求时,以Json的形式发送一个POJO参数,结果一直报错:WARNING] Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/jso ......
application supported Content 39 type

【python】使用build模块进行简单打包分发

build模块 build模块是python3.6引入的一个简单的打包工具,和setuptools的区别是,build更加灵活简单,而setuptools提供了很多的高级功能, 可以更加灵活的满足不同的项目需求 也就是说,build提供了一个简单的标准库级别的构建和打包工具,而setuptools ......
模块 python build

windows 下使用CMake 配置 googletest测试库

这个项目实际包含的知识细节,可以在微软的网站找到支持: 1 . 安装googletest. 下载,解压, googletest 进入开发者模式 cmd 界面: Developer Command Prompt for VS 2022 编译,安装googletest # 在解压后的目录下 mkdir ......
googletest windows CMake

Jenkins 利用Build With Parameters 插件实现选择参数构建

前言 jenkins是CI/CD中部署时候一个重要工具,可以按照我们需求进行配置一些编译打包测试工作,有些是全自动化的,有些需要进行手动参数进行触发。今天给大家分享一下Jenkins使用Build With Parameters插件,实现外置参数进行触发job。 作者:良知犹存 转载授权以及围观:欢 ......
Parameters 插件 参数 Jenkins Build

第三库FindXXX.cmake

1、CURL include (../cmake/ExternalProjectHelper) if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") find_external_project_add(NAME curl DEPENDS "openssl" CONFIGU ......
FindXXX cmake

cmake 函数编译第三方库

function(find_external_project_add) set(options BUILD_SHARED_LIBRARY) set(oneValueArgs NAME) set(multiValueArgs DEPENDS EXPORT_LIBRARIES CONFIGURE_COM ......
第三方 函数 cmake

django-content-type简单示例

from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import mode ......

解决Java在请求某些不受信任的https网站时会报:PKIX path building failed

解决办法: 例如下载360 的安全证书,使用浏览器打开要调用的接口链接:https://api.e.360.cn/account/clientLogin,然后查看证书导出证书到本地,文件名取成 调用api的域名api.e.360.cn 将数字证书保存到jdk1.7.0_17\jre\lib\secu ......
building failed https 网站 Java

Code: 43, e.displayText() = DB::Exception: Invalid types of arguments 2 and 3 of if (version 20.8.3.18 (official build))错误

Mysql当ifnull()和sum()联合使用时不会出现问题,如以下sql查询语句: select ifnull(sum(`sales_total`),0) sales_total, ifnull(sum(`order_count`),0) order_count, ifnull(sum(`avg ......

error TS9005: Declaration emit for this file requires using private name 'xxx'. An explicit type annotation may unblock declaration emit.

error TS9005: Declaration emit for this file requires using private name 'distance'. An explicit type annotation may unblock declaration emit. 代码如下: / ......

直播软件源码,pom 依赖遇到 build 下的依赖报错

直播软件源码,pom 依赖遇到 build 下的依赖报错 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <ve ......
源码 build 软件 pom

Python调用TensorFlow时出现:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated

百度了很多说是numpy版本过高,将numpy版本降低即可,我降低为1.16.2 但是会碰到pip uninstall numpy卸载不掉的问题 我一直忽视了是在conda创建的虚拟环境acc中运行的这个代码, 进入cmd pip uninstall时没注意是在base环境下,还是在自己创建的虚拟环 ......

Content-Type四种常见取值[转载]

一、application/x-www-form-urlencoded 最常见 POST 提交数据的方式。浏览器的原生 form 表单,如果不设置 enctype 属性,那么最终就会以 application/x-www-form-urlencoded 方式提交数据。请求类似于下面这样: POST ......
Content-Type 常见 Content Type

常用Content-Type汇总

MIME type ###定义 媒体类型(通常称为 Multipurpose Internet Mail Extensions 或 MIME 类型)是一种标准,用来表示文档、文件或字节流的性质和格式。 ###语法 MIME 的组成结构非常简单;由类型与子类型两个字符串中间用'/'分隔而组成。不允许空 ......
Content-Type 常用 Content Type

docker启动报错the backing xfs filesystem is formatted without d_type support

WARNING: overlay2: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior. Reformat the filesystem with fty ......
filesystem formatted backing support without

build.xml配置文件——调整格式2

<?xml version="1.0" encoding="UTF-8"?><project name="ant-jmeter-test" default="run" basedir="."> <tstamp> <format property="time" pattern="yyyyMMddhhm ......
格式 文件 build xml

cmake使用eigen库

Eigen是一个C++开源线性代数库:提供矩阵的线性代数运算。 注:Eigen是一个只有头文件的库 cmake使用eigen库 find_package(Eigen3) INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR}) 程序中使用eigen库,引用各功能头文件 # ......
cmake eigen

MIME type (散列表)

整理回顾一下Codingame上做过的一些编程题。先从散列表实现的一个题目MIME type开始。 https://www.codingame.com/ide/puzzle/mime-type 目标 MIME在多种互联网协议中被使用到,用来标识发送内容的媒体类型(html,图片,视频),通常通过文件 ......
MIME type

go run、build、install、get的原理和区别

学习go也有好些年头了,都没怎么研究过go的编译命令。真是惭愧。今天学习并记录下 结论: go run 专门用来运行命令源码文件的命令,一般用来运行单个文件 go build 主要是用于测试编译。编译某个包或者项目,在当前目录下生成可执行文件 go install 编译并安装代码包或者源码文件的。 ......
原理 install build get run

CMake学习

转载来自:https://subingwen.cn/cmake/CMake-primer/ 1. CMake 概述CMake 是一个项目构建工具,并且是跨平台的。关于项目构建我们所熟知的还有 Makefile(通过 make 命令进行项目的构建),大多是 IDE 软件都集成了 make,比如:VS ......
CMake

required a bean of type 'org.springframework.web.client.RestTemplate' that could not be found.

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2023-04-04 14:54:30.963 ERROR 49212 [ ......