摘要:
1.下载mysql deb https://dev.mysql.com/downloads/mysql/ #移动到/usr/local/src/目录,解压 sudo mv mysql-server_8.0.13-1ubuntu16.04_amd64.deb-bundle.tar /usr/local
阅读全文
posted @ 2018-10-26 23:30
anobscureretreat
阅读(848)
推荐(0)
摘要:
上面是我使用的版本! 1.首先搭建 xampp 下载XAMPP:https://www.apachefriends.org/download.html 注意:下载低版本的,不然之后会找不到mysql 赋予权限 sudo chmod 777 xampp-linux-x64-5.6.38-0-insta
阅读全文
posted @ 2018-10-26 20:44
anobscureretreat
阅读(483)
推荐(0)
摘要:
data={"data":[{"end_point": [-2.45, 5.04], "hotelid": "demo_one", "begin_point": [-4.37, 6.36], "name": "a5", "floor": "1"},{"end_point": [-2.45, 5.04], "hotelid": "demo_one", &quo
阅读全文
posted @ 2018-10-26 15:14
anobscureretreat
阅读(5036)
推荐(0)
摘要:
2RRJMBXW33-eyJsaWNlbnNlSWQiOiIyUlJKTUJYVzMzIiwibGljZW5zZWVOYW1lIjoi5b285bK4IHNvZnR3YXJlMiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnN
阅读全文
posted @ 2018-10-26 01:41
anobscureretreat
阅读(246)
推荐(0)
摘要:
今天操作/etc/sudoers 文件,因为该文件只读,所以sudo chmod 777 /etc/sudoers ,结果可以修改这个文件了,但是导致所有用户的sudo都不能用了 是因为在Linux中该文件必须是只读权限的才行,如果你知道root密码,可以到root账户下修改,直接chmod 044
阅读全文
posted @ 2018-10-25 20:08
anobscureretreat
阅读(8818)
推荐(0)
摘要:
ubuntu添加用户 ubuntu删除用户
阅读全文
posted @ 2018-10-25 19:52
anobscureretreat
阅读(600)
推荐(0)
摘要:
import json test_dict = {'bigberg':7600,'iPhone':6300,'Bike':800,'shirt':300} print(test_dict) print(type(test_dict))#字典 #dumps 将数据转换成字符串 json_str = json.dumps(test_dict) print(json_str) print(...
阅读全文
posted @ 2018-10-25 00:48
anobscureretreat
阅读(212)
推荐(0)
摘要:
with open(mpath, "w") as f: yaml.safe_dump(yaml_dict,f,encoding='utf-8', allow_unicode=True)
阅读全文
posted @ 2018-10-24 20:10
anobscureretreat
阅读(1073)
推荐(0)
摘要:
with open(mpath,"w") as k: dlist=[] for key in yaml_dict["data"]: dlist.append(yaml_dict["data"][key]) print(dlist) yaml_dict["data"]...
阅读全文
posted @ 2018-10-24 20:09
anobscureretreat
阅读(164)
推荐(0)
摘要:
public class Numeric { public static void main(String[] args) { String string = "-1234.15"; boolean numeric = true; numeric = string.matches("-?\\d+(\\.\\d+)?"); ...
阅读全文
posted @ 2018-10-24 12:58
anobscureretreat
阅读(276)
推荐(0)
摘要:
屏幕划线,通过平面坐标系实现,基本组成是一个一个的点,起点为A,终点为B 本文的算法,可以实现平面栅格中,指定的A,B两点之间进行连线(代码中仅打印了两点间需要画出的坐标点)
阅读全文
posted @ 2018-10-24 01:44
anobscureretreat
阅读(1147)
推荐(0)
摘要:
pip install PyDispatcher
阅读全文
posted @ 2018-10-24 01:36
anobscureretreat
阅读(648)
推荐(0)
摘要:
pip install PyVRML97
阅读全文
posted @ 2018-10-24 01:35
anobscureretreat
阅读(299)
推荐(0)
摘要:
安装环境:win10 64位操作系统,python3.7 一.安装py库 需要用pip 安装 可能会报错, 是因为没有安装对应的c++库 打开网站https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl 找到pyopengl 下载对应的版本,我的是py
阅读全文
posted @ 2018-10-24 01:25
anobscureretreat
阅读(2615)
推荐(0)
摘要:
一.下载以及设置IP 首先需要下载两个文件:http://www.znrobo.com/download/ 解压后我们会看到一个安装程序目录,还有一个是package 下面安装IP配置助手: 一直下一步,安装完毕后,我们需要一根数据线,连接激光前端配置插口,另一端USB插口插在电脑上 现在我们开始为
阅读全文
posted @ 2018-10-23 20:39
anobscureretreat
阅读(1335)
推荐(0)
摘要:
安装了Ubuntu16.04的server版本,结果进入系统输入ifconfig后发现,只有一个网卡enp1s0,还有一个网络回路lo,ifconfig -a 发现其实一共有四个网卡,enp1s0,enp2s0,enp3s0,enp4s0。 我们的工控机有四个网口,现在需要把前三个做成桥接,第四个动
阅读全文
posted @ 2018-10-23 15:36
anobscureretreat
阅读(2305)
推荐(0)
摘要:
https://wenku.baidu.com/view/51fb15742f60ddccdb38a007.html
阅读全文
posted @ 2018-10-22 17:47
anobscureretreat
阅读(332)
推荐(0)
摘要:
开启防火墙 ufw enable 关闭防火墙 ufw disable
阅读全文
posted @ 2018-10-22 16:47
anobscureretreat
阅读(3712)
推荐(0)
摘要:
#include // cout #include // is_heap, make_heap, pop_heap #include // vector using namespace std; int main () { vector foo {9,5,2,6,4,1,3,8,7}; if (!is_heap(foo.begin()...
阅读全文
posted @ 2018-10-22 14:43
anobscureretreat
阅读(407)
推荐(0)
摘要:
#include // cout #include // includes, sort using namespace std; bool myfunction (int i, int j) { return i<j; } int main () { int container[] = {5,10,15,20,25,30,35,40,45,50}; int con...
阅读全文
posted @ 2018-10-21 01:50
anobscureretreat
阅读(997)
推荐(0)
摘要:
#include // cout #include // generate_n using namespace std; int current = 0; int UniqueNumber () { return ++current; } int main () { int myarray[9]; generate_n (myarray, 5, UniqueNu...
阅读全文
posted @ 2018-10-21 01:14
anobscureretreat
阅读(332)
推荐(0)
摘要:
DEV-C++默认的标准是C++98,改成C++11的方法如下: Tools -> Compiler Options -> Setting -> Code Generation -> Language standard(-std),选ISO C++11。
阅读全文
posted @ 2018-10-21 00:59
anobscureretreat
阅读(2049)
推荐(0)
摘要:
#include // cout #include // generate #include // vector #include // time #include // rand, srand using namespace std; // function generator: int RandomNumber () { ret...
阅读全文
posted @ 2018-10-21 00:58
anobscureretreat
阅读(1459)
推荐(0)
摘要:
#include // cout #include // for_each #include // vector using namespace std; void myfunction (int i) { // function: cout myvector; myvector.push_back(10); myvector.push_bac...
阅读全文
posted @ 2018-10-21 00:43
anobscureretreat
阅读(1626)
推荐(0)
摘要:
#include // std::cout #include // std::find_if_not #include // std::array using namespace std; int main () { array foo = {1,2,3,4,5}; array::iterator it =find_if_not (foo.begi...
阅读全文
posted @ 2018-10-21 00:33
anobscureretreat
阅读(550)
推荐(0)
摘要:
#include // std::cout #include // std::find_if #include // std::vector using namespace std; bool IsOdd (int i) { return ((i%2)==1); } int main () { vector myvector; myvector...
阅读全文
posted @ 2018-10-21 00:25
anobscureretreat
阅读(2654)
推荐(0)
摘要:
#include // std::cout #include // std::find_first_of #include // std::vector #include // std::tolower using namespace std; bool comp_case_insensitive (char c1, char c2) { r...
阅读全文
posted @ 2018-10-21 00:20
anobscureretreat
阅读(322)
推荐(0)
摘要:
#include // cout #include // find_end #include // vector using namespace std; bool myfunction (int i, int j) { return (i==j); } int main () { int myints[] = {1,2,3,4,5,1,2,3,4...
阅读全文
posted @ 2018-10-20 23:55
anobscureretreat
阅读(490)
推荐(0)
摘要:
#include /* printf */ #include /* assert */ void print_number(int* myInt) { assert (myInt!=NULL); printf ("%d\n",*myInt); } int main () { int a=10; int * b = NULL; int * c = ...
阅读全文
posted @ 2018-10-20 22:19
anobscureretreat
阅读(144)
推荐(0)
摘要:
#include double factorial(unsigned int i) { if(i <= 1) { return 1; } return i * factorial(i - 1); } int main() { int i = 15; printf("%d 的阶乘为 %f\n", i, factorial(i)); ...
阅读全文
posted @ 2018-10-20 17:48
anobscureretreat
阅读(152)
推荐(0)
摘要:
#include // cout #include // find_end #include // vector using namespace std; void paint(int,int); void judge(int [],int [],int,int,int,int,int); void paint(int i,int j){ coutB[...
阅读全文
posted @ 2018-10-19 22:36
anobscureretreat
阅读(189)
推荐(0)
摘要:
if(A[0]>B[0]){ if(A[1]>B[1]){ for(int i=B[0];i<=A[0];i++){ for(int j=B[1];j<=A[1];j++){ paint(i,j); } } }else if (A[1]<B[1]){ for(int i=B[0];i<=A[0];i
阅读全文
posted @ 2018-10-19 20:55
anobscureretreat
阅读(214)
推荐(0)
摘要:
#include // cout #include // find #include // vector #include using namespace std; int main () { // using find with array and pointer: int myints[] = { 10, 20, 30, 40 };...
阅读全文
posted @ 2018-10-19 16:31
anobscureretreat
阅读(10697)
推荐(1)
摘要:
#include // cout #include // fill_n #include // vector using namespace std; int main () { vector myvector (8,10); // myvector: 10 10 10 10 10 10 10 10 fill_n (my...
阅读全文
posted @ 2018-10-19 16:09
anobscureretreat
阅读(471)
推荐(0)
摘要:
#include // cout #include // fill #include // vector using namespace std; int main () { vector myvector (8); // myvector: 0 0 0 0 0 0 0 0 fill (my...
阅读全文
posted @ 2018-10-19 15:57
anobscureretreat
阅读(1070)
推荐(0)
摘要:
#include // cout #include // equal_range, sort #include // vector using namespace std; bool mygreater (int i,int j) { return (i>j); } int main () { int myints[] = {10,20,30,30,...
阅读全文
posted @ 2018-10-19 15:39
anobscureretreat
阅读(489)
推荐(1)
摘要:
#include // cout #include // equal #include // vector using namespace std; bool mypredicate (int i, int j) { return (i==j); } int main () { int myints[] = {20,40,60,80,100}...
阅读全文
posted @ 2018-10-19 14:54
anobscureretreat
阅读(2241)
推荐(0)
摘要:
#include // cout #include // count_if #include // vector using namespace std; bool IsOdd (int i) { return ((i%2)!=0); } int main () { vector myvector; for (int i=1; i<10; i...
阅读全文
posted @ 2018-10-19 14:31
anobscureretreat
阅读(1274)
推荐(0)
摘要:
#include // cout #include // count #include // vector using namespace std; int main () { // counting elements in array: int myints[] = {10,20,30,30,20,10,10,20}; // 8 elem...
阅读全文
posted @ 2018-10-19 14:24
anobscureretreat
阅读(2898)
推荐(0)
摘要:
#include <iostream> // cout #include <algorithm> // copy #include <vector> // vector using namespace std; int main () { int myints[]={10,20,30,40,50,6
阅读全文
posted @ 2018-10-19 14:15
anobscureretreat
阅读(926)
推荐(0)