3、上传头像到七牛云并显示

  • Post author:
  • Post category:其他

在设置中,更换头像,上传到七牛云,并显示新头像。 controller: @LoginRequired @GetMapping("/setting") public String getSettingPage(Model model) { // 上传文件名称 String fileName = CommunityUtil.generateUUID(); // 设置响应信息 StringMap po…

继续阅读 3、上传头像到七牛云并显示

固体的弹性性质

  • Post author:
  • Post category:其他

(1)应力和应变 应力的单位和压强相同。 将固体在直角坐标系x1,x2,x3,中划分为体积可以忽略的正方体体积元,设物体受力为Fij,其中,i为所受力的面,j为所受力的方向。 所以体积元共受9个力,可以写成3*3的矩阵,其中F(i,j)=F(j,i),在这里不做证明,所以一共有6个独立分量。 (2)广义胡克定律 F(i,j)=c(i,j,k,l)*e(k,l) 其中,i和j分别可以取1,2,3,所…

继续阅读 固体的弹性性质

lnmp的一键部署(脚本)

  • Post author:
  • Post category:其他

#!/bin/bash #安装环境依赖包 systemctl stop firewalld systemctl disable firewalld setenforce 0 yum -y install expect &> /dev/null nginx() { yum -y install gcc gcc-c++ pcre-devel zlib-devel make useradd…

继续阅读 lnmp的一键部署(脚本)

图的五种存储结构及其C语言实现

  • Post author:
  • Post category:其他

文章目录 ? 一、图的基本概念 ?二、图的基本存储结构 ?1.邻接矩阵法 ?1.1 存储结构 ?1.2 创建邻接矩阵 ?1.3 打印邻接矩阵存储的图 ?1.4 测试函数 ?2.邻接表法 ?2.1 存储结构 ?2.2 创建邻接表 ?2.3 打印邻接表法存储的图 ?2.4 测试函数 ?️3.十字链表法 ?️3.1 存储结构 ?3.2 创建十字链表 ?3.3 打印十字链表存储的图 ?3.4 测试函数 ?…

继续阅读 图的五种存储结构及其C语言实现

【centos】yum mysql8

  • Post author:
  • Post category:mysql

安装mysql 搜索 mysql 的版本 yum list mysql-server yum 安装 yum install -y mysql-server ValueError: /var/log/mysql(/.*)? 的文件上下文已定义 警告不用管 启动mysql systemctl start mysqld 查看mysql状态 systemctl start mysqld 修改密码 http…

继续阅读 【centos】yum mysql8

AndroidStudio Lint-静态代码检查常见问题解决

  • Post author:
  • Post category:其他

前提: 检查Java环境: java -version 如果没有显示对应的java版本,请执行: sudo apt-get install openjdk-8-jdk 代码执行Lint并导出报告: 如在项目路径下,请执行: ./gradlew lint 出现BUILD SUCCESSFUL 即为成功,红框为HTML报告的路径 常见问题: 如果执行中出现以下的权限问题 请执行: sudo chmod…

继续阅读 AndroidStudio Lint-静态代码检查常见问题解决

一维离散傅里叶变换

  • Post author:
  • Post category:其他

直接上干货 一. 欧拉公式 二. 傅里叶变换 N为采样的总个数,也就是样本的总个数 应用欧拉公式 三. 傅里叶逆变换 公式 四. c++编程实现 #include<iostream> #include<cmath> #include<iomanip> using namespace std; #define PI 3.1415926535 class FFT {…

继续阅读 一维离散傅里叶变换

WebRtc: PeerConnection demo测试

  • Post author:
  • Post category:其他

peerconnection client和server的使用 测试环境说明: 系统: ubuntu14.04 工程: webrtc-linux 网络:本机localhost webrtc工程编译过后会在out/linux目录下生成一些测试用可执行程序 其中有 peerconnection_server 和 peerconnection_client可以用于测试连接 后台执行server ./pe…

继续阅读 WebRtc: PeerConnection demo测试

ES 插入文档报错:Rejecting mapping update to [testindex] as the final mapping would have more than 1 type

  • Post author:
  • Post category:其他

笔者在用 curl 命令行对 ElasticSearch 进行文档插入时,报了如下错误。 [estestuser@vm-10-201-42-9 ~]$ curl -u elastic -H "Content-Type: application/json" -XPOST 'http://localhost:9200/testindex/5?pretty' -d '{"mchnt_id" : "5"}…

继续阅读 ES 插入文档报错:Rejecting mapping update to [testindex] as the final mapping would have more than 1 type

python 软件授权系统及注册机三(打包及使用)

  • Post author:
  • Post category:python

python 软件授权系统及注册机三(打包及使用) 1.打包 2.使用方式 (1)用户运行register.exe得到机器码 (2)用户将机器码发送给管理员 (3)管理员生成注册码 (4)用户获得管理员的注册码后注册激活 (5)注册成功进入主页面 3.资源链接 1.打包 使用auto-py-to-exe即可,在我之前的文章中也有讲过,这里需要注意的是加密打包时,只需要选择主程序registerMA…

继续阅读 python 软件授权系统及注册机三(打包及使用)