`
文章列表
AttributeError: 'Request' object has no attribute 'is_xhr' 参考 : https://stackoverflow.com/questions/60131900/weird-is-xhr-error-when-deploying-flask-app-to-heroku "werkzeug": {             "hashes": [                 "sha256:2de2a5db0baeae7b2d2664949077c2ac63fbd16d98da0ff7 ...
直接用阿里云Pypi pip config set global.index-url http://mirrors.aliyun.com/pypi/simple
新建动画节点的时候千万别【空节点】 你可以选择创建一个Sprite(精灵)节点
1、Apache Apache能接受url长度限制为8 192 字符 2、IIS Microsoft Internet Information Server(IIS)能接受url长度限制为16 384个字符。 这个是可以通过修改的(IIS7)configuration/system.webServer/security/requestFiltering/requestLimits@maxQueryStringsetting.<requestLimits maxQueryString="length"/> 3、Perl HTTP::Daemon ...

scp后台运行

 
scp后台运行 1.正常执行scp命令 2.输入ctrl + z 暂停任务 3.bg将其放入后台 4.disown -h 将这个作业忽略HUP信号 5.测试会话中断,任务继续运行不受影响 1.正常执行scp命令 从oradb30机器拷贝一个文件夹到oradb31机器: scp -r /u01/media/Disk1/ 192.168.1.31:/u01/media/ [root@oradb30 ~]# scp -r /u01/media/Disk1/ 192.168.1.31:/u01/media/ reverse mapping checking getaddrinfo for ...

redis攻击

redis 6379 如果对外 开放。。 如果 没设置密码 攻击步骤如下 cd /root ssh-keygen -t rsa echo -e "\n\n" > testx.pub #生成用于登录的公钥 cat /root/.ssh/id_rsa.pub >> testx.pub echo -e "\n\n" >> testx.pub #登录上去弄空redis数据库 ./redis-cli -h xxx.xxx.xxx.xxx flushall #设置一个随便的公钥key cat /root/ ...
1,在 /etc 新建 my.cnf 文件 sudo vim my.cnf 2,将如下配置内容写入到文件中 # Example MySQL config file for medium systems. # # This is for a system with little memory (32M - 64M) where MySQL plays # an important part, or systems up to 128M where MySQL is used together with # other programs (such a ...

OdataDeepInsert

Deep Inserts OData already supports 'deep inserts'. A 'deep insert' creates an entity and builds a link to an existing entity. So posting here: ~/People(6)/Friends Inserts a new person and creates a 'friends' link with Person 6. The same type specification rules apply for deep inserts too, so pos ...
Jupyter Notebook 包含两种模式。一种是命令模式,按 ESC 键进入,这时边框是蓝色的;另一种是编辑模式,按 Enter 键进入,边框是绿色的。 使用到的快捷键会随时补充。 命令模式: shift + enter : 运行当前单元后,选中下一单元 ctrl + enter :只运行当前单元 Y : 切换code状态 M : 切换Markdown状态 A :在上方插入单元格 B :在下方插入单元格 连按两次D :删除当前单元格 连按两次 I : 中断内核运行 C :复制当前单元格 shift + v :粘贴单元格 L:显示代码框中每行的数字标识 shift + L :显示全部代码 ...
为了使 A−1 存在,等式 Ax=b 对每个b 值有一个解。然而等式对某些 b 值可能没有解或有无限多个解。对某个 b 值不可能有几个解;如果 x 和 y 是解的话,那么 z=αx+(1−α)y 也是一个解,其中 α 为实数。 为了分析等式解的个数,我们将矩阵 A的列看作是从原点(指定值全为零的向量)出发的不同方向。从这个角度看,x 每个元素指定了每个方向上需要的距离,例如:xi 指定了在 i 列的方向上移动了多远: Ax=∑ixiA:,i 一般这种运算叫做线性组合。正式地,向量 {v(1),...,v(n)} 某些集合的线性组合可以通过给每个向量乘以一个标量系数并相加得到: ∑iciv(i) ...
#app.js checkIsIPhoneX: function () { const self = this wx.getSystemInfo({ success: function (res) { // 根据 model 进行判断 if (res.model.search('iPhone X') != -1) { self.globalData.isIPX = true } // 或者根据 screenHeight 进行判断 // if ...
1.data-questionId的驼峰式命名是不行的必须小写 2.没有设置的合法域名去请求数据也会影响 //当时的app.js import oData from './utils/network.js' import Storage from './utils/storage.js' const store = new Storage(wx); const regeneratorRuntime = require('./utils/libs/regenerator-runtime/runtime-module.js') App({   onLaunch: function() {     ...
初始化GlobalData 在App.js的最上方可以设置GlobalData的初始值。 App({ globalData:{ appid: '1wqas2342dasaqwe232342xxxxxxxxxx',//appid需自己提供,此处的appid我随机编写 secret: 'e0dassdadef2424234209bwXXXXXXXXXXXXXX',//secret需自己提供,此处的secret我随机编写 openid:'你好', //自定义 }, 在App.js中修改GlobalData的值 比如,获得UserInfo后将o ...
中位数就是中间的那个数, 如果一个集合是奇数个,那么中位数就是按大小排列后,最中间那个数, 如果一个集合是偶数个,那么中位数就是按大小排列后,最中间那2个数的平均数。 public static void main(String[] args) { List<Integer> total = new ArrayList<Integer>(); total.add(4); total.add(2); total.add(3); total.add(1); double a = median(total); System.out.pri ...

plt.subplot 图

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplot.html subplot(nrows, ncols, index, **kwargs) subplot(pos, **kwargs) subplot(ax) t=np.arange(0.0,2.0,0.1) s=np.sin(t*np.pi) plt.subplot(2,2,1) #要生成两行两列,这是第一个图plt.subplot('行','列','编号') plt.plot(t,s,'b--') plt.ylabel('y1') plt.subplot(2,2,2) ...
Global site tag (gtag.js) - Google Analytics