博客转自:http://www.lighthouse3d.com/tutorials/glut-tutorial/subwindow-reshape/ The callback for the reshape function needs to do two things: it resizes t ...
分类:
其他好文 时间:
2020-05-23 18:30:51
阅读次数:
61
git.exe pull --progress -v --no-rebase "origin" master remote: You do not have permission to pull the repositoryfatal: unable to access 'https://gitee ...
分类:
其他好文 时间:
2020-05-23 09:53:49
阅读次数:
352
1. 过滤复制 3.1 说明 过滤复制可以从两方面下手, 一个是配置主库的dump线程, 让其只发送需要同步的db二进制. 另一个就是配置从库的sql线程, 让其只回放我们需要同步的db二进制文件 主库: show master status; Binlog_Do_DB # 该参数用来指定需要同步的 ...
分类:
数据库 时间:
2020-05-23 00:37:07
阅读次数:
73
显示状态1-处于"/"旋转 #!/bin/sh sleep 10 & pid=$! # Process Id of the previous running command spin='-\|/' i=0 while kill -0 $pid 2>/dev/null do i=$(( (i+1) % ...
分类:
系统相关 时间:
2020-05-22 19:39:19
阅读次数:
349
[TOC] 一、一段代码引发的思考 首选,看下面这段代码会输出什么结果? 我们在主线程休眠1s后将子线程用到的stop开关设为了true,这个时候子线程是不是应该停止while循环,输出i的最终结果呢? 运行结果: 最终结果是程序会在后台一直运行.. 这说明了我们在主线程中修改的内容对子线程是不可见 ...
分类:
编程语言 时间:
2020-05-22 14:26:58
阅读次数:
60
Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, ...
分类:
其他好文 时间:
2020-05-22 13:12:40
阅读次数:
54
1、翻译自StackOverflow的推论 原文:https://stackoverflow.com/questions/35229143/what-exactly-do-sockets-shutdown-disconnect-close-and-dispose-do This answer mad ...
按键可以用按键扫描的方法和外部中断的方法。 外部中断看前面,个人推荐使用外部中断更好。 其余情况可以用按键扫描,这里只讲按键扫描的方法。 先在main.h中定义按键名称 #define KEY0 HAL_GPIO_ReadPin(GPIOC,GPIO_PIN_5) //KEY0按键PC5 #defi ...
分类:
其他好文 时间:
2020-05-22 09:35:56
阅读次数:
124
问题现象: 运行py文件时,弹出框提示:Configuration is still incorrect.Do you want to edit it again? 问题原因: 没有配置python解释器 解决方法: 1.File → Settings 2.Project Interpreter 3 ...
分类:
其他好文 时间:
2020-05-22 09:22:41
阅读次数:
503
#!/bin/bash for((i=1;i<=100;i++)); do echo $(expr $i \* 3 + 1); done #!/bin/bash for i in $(seq 1 100) do echo $(expr $i \* 3 + 1); done #!/bin/bash f ...
分类:
系统相关 时间:
2020-05-21 19:31:55
阅读次数:
113