良辰 发布的文章
量子技术,几百年来第一次介入参与的技术革命
不管是以蒸汽机为代表的第一次工业革命,还是以电气化为代表的第二次工业革命,我们国家基本都错过了。以信息技术为代表的第三次工业革命,我们仅仅赶上了个尾巴,而且核心技术都不源于我国。从改革开放到现在,我们基本上都是在学习国外发明的技术,通过引进吸收再重新发展信息技术。所以,能够在历史上第一次同步参与一次技术革命的意义是非常大的,我认为这也是考验我们中华民族智慧和能力的一次革命。第二次量子革命是我国几百年来第一次有能力有基础全面介入和参与的一次技术革命。
量子力学是近400年现代科学发展史上一个革命性飞跃。20世纪有3个重大科学发现,即相对论、量子力学和DNA,所以量子力学是公认的上世纪最伟大的科学发现之一。【量子技术的人才很少】
我国目前的短板是哪些?
薛其坤:第一,量子技术的人才储备不足。因为这个技术比较尖端,很长时间都处在基础研究阶段,近20年,我国基础研究才得到快速发展。人才培养需要时间,不管是量子科技所有领域的人才团队规模,还是杰出的科学家群体,我们都是不足的。第二,一些基本的材料比如关键的元器件和设备仍然依赖进口。和其他领域类似,我们科研人员做量子科技实验,还要依赖部分进口设备,还需要解决完全自主化问题。但是从时代发展来讲,我们基本上达到了在同一个平台竞争的阶段。
go的后台管理gfast
基于GF(Go Frame)的后台管理系统; 前端采用ruoyi-ui 、Vue、Element UI; 后端采用GO语言 框架 GF(Go Frame)
https://gitee.com/tiger1103/gfast
国内go论坛https://studygolang.com/
go大文件上传
go进行大文件上传
js中文rsa,中文加密偶尔解密不出来
https://blog.csdn.net/lionking1990/article/details/106092990
直接改动jsencrypt.js文件,在文件最下方的 JSEncrypt.version = "3.1.4"; 前面,添加下面的代码:
Java设置内存大小
Java后台运行Jar包并设置内存参数
很简单,就一个命令如下:
nohup java -Xms800m -Xmx800m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:MaxNewSize=512m -jar 你的jar包 >>/dev/null &
go框架
https://github.com/gochenzl/chess
leaf和mqant
goannie各种视频下载
gobyexample
wpf TabControl tabItem
<TabControl MinHeight="500" MaxHeight="700" MinWidth="400">
<TabItem Style="{StaticResource TabStyle}" Header="Width Properties Sample" IsSelected="true">
<StackPanel>
<TextBlock >Width Properties Sample</TextBlock>
<TextBlock >Four properties are</TextBlock>
</StackPanel>
</TabItem>
</TabControl>
vs2019 net.core下载
creator折线图
creator里面没有折线图,可以参考这个
// 折线图
const { ccclass, property } = cc._decorator;
@ccclass
export default class LineChartComponent extends cc.Graphics {
@property(cc.Color)
lineColor: cc.Color = null;
@property(cc.Color)
circleColor: cc.Color = null;
@property(cc.Color)
xyColor: cc.Color = null;
@property
height = 200;
@property
width = 600;
@property
stepLeve = 7;
public paint = null;
onLoad() {
this.width += Math.floor(this.width / this.stepLeve);
}
onDestroy() {
}
start() {
this.paint = this.node.addComponent(cc.Graphics);
}
randChart() {
let list = [];
for (let i = 0; i < this.stepLeve; i++) {
list.push(Math.random() * 100);
}
this.setLineChart(list, null);
}
setLineChart(listY, listX) {
let color = this.lineColor;
// 计算数据
let max = Math.max.apply(null, listY);
let min = Math.min.apply(null, listY);
let yd = this.height / (max - min);
let xd = this.width / listY.length;
// 画横轴
this.paint.lineWidth = 5;
this.paint.strokeColor = new cc.Color(66, 66, 66, 66);
this.paint.moveTo(0, 0);
for (let i = 0; i <= this.stepLeve; i++) {
this.paint.moveTo(0, i * this.height / this.stepLeve);
this.paint.lineTo(this.width, i * this.height / this.stepLeve);
this.putLabel(-20, i * this.height / this.stepLeve - 15, Math.floor((i * (max - min) / this.stepLeve) + min), 25)
}
this.paint.stroke();
// 画数据线
this.paint.lineWidth = 5;
this.paint.strokeColor = color;
this.paint.moveTo(1, (listY[0] - min) * yd);
for (let i = 1; i < listY.length; i++) {
this.paint.lineTo(i * xd, (listY[i] - min) * yd);
}
this.paint.stroke();
// 画 刻度,点,字
this.paint.lineWidth = 4;
this.paint.strokeColor = new cc.Color(66, 66, 66, 66);
for (let i = 0; i < listY.length; i++) {
this.paint.moveTo(i * xd, 0);
this.paint.lineTo(i * xd, -10);
this.paint.stroke();
this.putPoint(i * xd, (listY[i] - min) * yd, 7)
if (listX && listX[i]) {
this.putLabel(i * xd, -40, listX[i], 25);
}
else {
this.putLabel(i * xd, -40, i, 25)
}
}
}
// xy字
putLabel(x, y, str, size) {
let textNode = new cc.Node();
let text = textNode.addComponent(cc.Label);
this.node.addChild(textNode);
text.string = str;
textNode.x = x
textNode.y = y;
textNode.height = size;
text.fontSize = textNode.height - 3;
textNode.color = this.xyColor;
}
// 画实心点
putPoint(x, y, r) {
this.paint.fillColor = this.circleColor;
this.paint.circle(x, y, r);
this.paint.fill();
}
// update (dt) {}
}
直接工具做到编译器里
直接工具做到编译器里,这个方向不错。
creator抗锯齿
window.devicePixelRatio = 3;
cc.macro.ENABLE_WEBGL_ANTIALIAS = true;
cc.view.enableRetina(true);
cc.view.resizeWithBrowserSize(true);
unity资源
RSA加密,在线测试
http://www.metools.info/code/c81.html
太长加密失败,用encryptlong,npm i encryptlong -s,代码
windows的实用小工具:瓜西二维码v1.0
UI命名规范
UI命名规范:
(切图类型)_(模块名)_(4位唯一序号)_(2位状态序号)
bat打包成zip
@echo off
set "rar=C:\Program Files\WinRAR\WinRAR.exe"
cd .\abc\
"%rar%" a -r -y ../abc.zip .\
待做一个安卓发送二维码内容给PC的功能
安卓,生成二维码,或者发送文字给服务器,服务器转发给pc软件。嗯,可以的。极简单一功能即可。
想法诞生:2020.12.28