自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 To display the conditions report re-run your application with ‘debug‘ enabled

SpringBoot初学者笔记当启动时遇到To display the conditions report re-run your application with ‘debug’ enabled.只需要在启动类上的注解@SpringBootApplication中加(exclude = {DataSourceAutoConfiguration.class})即可@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

2022-03-14 18:01:13 7237 6

原创 java将本地JAR包引入pom文件

例子:以kingbase8为例,在你项目下有pom.xml的地方运行:mvn install:install-file -Dfile=D:\data\java_jar\kingbase8-8.6.0.jar -DgroupId=kingbase8 -DartifactId=kingbase8 -Dversion=8 -Dpackaging=jar -DgeneratePom=true我这里=后面的值不能有点,比如-Dversion=8.6就失败了。该语句中参数: DgroupId :组id 【

2022-03-14 12:32:03 1771

原创 tar打包忽略某个目录

tar -cvzf test.tar.gz --exclude=test/.git/ test注意–exclude放在test目录之前。

2022-03-08 18:34:38 2764 1

原创 java中Comparator自定义排序

全在代码里!! 超详细注释,可直接运行。import java.util.Comparator;import java.util.LinkedList;import java.util.List;/** * java中Comparator自定义排序: * Comparator接口可以实现自定义排序,实现Comparator接口时,要重写compare方法: * int compare(Object o1, Object o2) 返回一个基本类型的整型 * 如果要按照升序排序,则o1 小于

2022-03-01 10:48:19 1414

原创 JAVA混音

两路short型混音 参考链接:https://blog.csdn.net/jeffasd/article/details/77335874public static float[] mix_float(float[][] src_buffer, float[] buffer_mix) { //src_buffer 里面有两路流 //归一化混音 float MAX = 3.4028235E38f; float MIN = 1.4E-45f;

2022-01-19 16:54:23 603

原创 java byte数组转short数组

https://www.cnblogs.com/wikiki/p/5340925.html

2022-01-18 17:20:40 4078

原创 java8/jdk1.8 官网下载地址

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2022-01-17 15:17:11 2932

原创 docker内使用apt-get update时报Temporary failure resolving ‘security.ubuntu.com错的解决方法

经常构建docker 镜像的时候,在镜像Build时需要经常软件的安装或更新时,运行apt-get update 或者apt-get install 时出现Temporary failure resolving 'security.ubuntu.com’报错时,虽然/etc/resolv.conf已经配置了dns,但是仍然报此错误,修改如下可以解决:cd /etc/dockervim daemon.json然后将如下的内容放入daemon.json里面{“dns”: [“8.8.8.8”, “11

2022-01-05 16:36:11 1679

原创 docker连接不上docker官方镜像库

vim /etc/docker/daemon.json{"insecure-registries":["172.16.15.145:5000","registry.thunisoft.com:5000","http://hub-mirror.c.163.com", "https://registry.docker-cn.com","docker.mirrors.ustc.edu.cn"]}主要加上 docker.mirrors.ustc.edu.cn 就行了。不要加https。systemctl

2021-12-08 14:38:14 559

原创 ubuntu编译jsoncpp

https://blog.csdn.net/ddazz0621/article/details/114021188这里里面最后测试的时候要把so文件cp到/usr/lib下才可以。

2021-11-30 18:37:07 147

原创 jsoncpp 写入txt文件中的unicode问题

jsoncpp的下载方法:git clone https://github.com/open-source-parsers/jsoncpp.gitgit clone https://hub.fastgit.org/open-source-parsers/jsoncpp.git (太慢用国内github镜像)简单demo实现方式:把lib_json从jsoncpp/src/lib_json 复制到当前文件把json 从jsoncpp/include/json复制到 /ust/include

2021-11-30 11:14:39 182

原创 sudo chmod 777 /etc所引发的错误

目前发现 sudo不可用,这个好查。ssh远程连接不可用,解决办法:https://www.machunjie.com/linux/122.html

2021-11-25 16:43:42 1035

原创 显卡驱动报错:NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver.

参考链接:https://blog.csdn.net/u012114438/article/details/104425573dkms安装报错之后参考此:https://blog.csdn.net/JerryZhang__/article/details/108865176安装gcc 8,参考此:https://blog.csdn.net/dbdxnuliba/article/details/100977363之后再dkms安装,成功...

2021-11-12 11:25:45 415

原创 python部署TensorRT多进程问题解决

单进程推理成功之后,直接多进程包装,会出现以下错误:Tensorrt ERROR: CUDA initialization failure with error 3

2021-09-17 10:43:08 1956 2

原创 【bug记录】AttributeError: ‘NoneType‘ object has no attribute ‘loader‘

在那个出问题的.pth文件里第一个分号后面换行就可以解决了。

2021-08-06 10:06:49 211

原创 .git文件夹过大,给它瘦身

经过验证可用:需要瘦身的库 git clone –bare 到本地 ,注意下面name都换成自己的git clone --bare https://git.server.com/group/name.git查看 git 库空间大小du -sh ./name.git查看历史上哪些文件庞大(检查所有分支),-3代表top3的大文件,最后一列的文件路径下面要用cd name.gitgit rev-list --all | xargs -rL1 git ls-tree -r --lon

2021-03-04 11:00:09 1050 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除