摘要: 编译SDL2 动态链接库 for Android mkdir SDL2 mv .../SDL2-2.0.16 ./SDL2 mv .../SDL2_ttf-2.0.15 ./SDL2 然后在SDL2目录下添加文件 Android.mk 如下内容 include $(call all-subdir-m 阅读全文
posted @ 2021-11-08 14:14 开学五年级了 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 渲染UTF8字体的时候,发现取字体是按偏移量的而不是第几个字 ALLEGRO_USTR_INFO info; const ALLEGRO_USTR *ustr = al_ref_cstr(&info, str.c_str()); int words = al_ustr_length(ustr); f 阅读全文
posted @ 2021-11-06 18:31 开学五年级了 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 客户端connect 服务器时候,有可能服务器down掉了,从而导致一直在等connect超时,这个系统时间是21秒左右。我试着用setsockopt去设置connect超时时间,不行 不管用。 timeval t{3, 1}; ret = setsockopt(socket, SOL_SOCKET 阅读全文
posted @ 2021-11-05 23:27 开学五年级了 阅读(33) 评论(0) 推荐(0) 编辑
摘要: function encrypt(){ PWD=$1; read CONTENT; echo $CONTENT | openssl enc -aes-128-ecb -nosalt -k $PWD -md md5|base64 -w 0; } function decrypt(){ PWD=$1; 阅读全文
posted @ 2021-09-29 21:42 开学五年级了 阅读(268) 评论(0) 推荐(0) 编辑
摘要: pip install pyftpdlib python -m pyftpdlib //Visit ftp://127.0.0.1:2122/ -i 指定IP地址(默认为本机的IP地址) -p 指定端口(默认为2121) -w 写权限(默认为只读) -d 指定目录 (默认为当前目录) -u 指定用户 阅读全文
posted @ 2021-04-23 23:16 开学五年级了 阅读(111) 评论(0) 推荐(0) 编辑
摘要: thread_local 变量调用其类型的拷贝构造函数,为每一个线程创建一个副本。 #include <stdio.h> #include <thread> #include <string.h> class STR{ public: char *s; STR(const STR& str){ ST 阅读全文
posted @ 2020-09-16 15:34 开学五年级了 阅读(598) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/lyd135364/article/details/78623119 https://www.cnblogs.com/saszhuqing/p/8716644.html https://www.cnblogs.com/qiyebao/p/4484047.h 阅读全文
posted @ 2019-04-02 15:27 开学五年级了 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Git 记不住命令 阅读全文
posted @ 2018-09-11 13:41 开学五年级了 阅读(271) 评论(0) 推荐(0) 编辑
摘要: sshj 示例 阅读全文
posted @ 2018-08-29 10:37 开学五年级了 阅读(1924) 评论(0) 推荐(0) 编辑
摘要: Golang 包管理简介 阅读全文
posted @ 2018-06-28 16:44 开学五年级了 阅读(133) 评论(0) 推荐(0) 编辑