上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: #epsg:3857 web mercator#lon=[-180,180],lat=[-85.05112877980659,85.05112877980659]function getTileZXY(lat, lon, zoom) { var xtile = parseInt(Math.floor 阅读全文
posted @ 2021-11-16 18:44 松山居士 阅读(177) 评论(0) 推荐(0)
摘要: 椭球面积:将字段计算器的解析程序设置为 Python,输入 !shape.geodesicArea! 代码,点击确定,开始计算。 椭球长度:将字段计算器的解析程序设置为 Python,输入 !shape.geodesicLength! 代码,点击确定,开始计算。 阅读全文
posted @ 2021-11-08 11:07 松山居士 阅读(3883) 评论(0) 推荐(0)
摘要: 1、配置WSL2和安装Ubuntu。在/etc/wsl.conf配置文件中添加如下内容启用Systemd,如果文件不存在则新建。 [boot] systemd=true 2、Ubuntu中安装依赖库 sudo apt update&&sudo apt upgrade -y sudo apt inst 阅读全文
posted @ 2021-10-20 15:14 松山居士 阅读(448) 评论(0) 推荐(0)
摘要: 安装工具链 sudo apt install llvm lldb clang 程序编译及调试 clang -g main.c #编译时加上-g生成调试信息 lldb #启动调试器file a.out #指定编译的文件l 20 #list:查看第20行源代码,按enter键可一直向下看l main.c 阅读全文
posted @ 2021-09-08 14:26 松山居士 阅读(709) 评论(0) 推荐(0)
摘要: 一、安装vcpkg git clone https://github.com/microsoft/vcpkg bootstrap-vcpkg.bat 二、安装mingw64 https://sourceforge.net 上搜索mingw64,下载mingw-w64-install.exe安装x86 阅读全文
posted @ 2021-09-06 22:13 松山居士 阅读(1651) 评论(0) 推荐(0)
摘要: 1、安装 MSYS2 (Minimal SYStem 2),可以把它当作一个轻量集的linux环境,官网下载最新版,安装路径最好没有空格和中文。安装后在开始菜单有如下启动菜单,MinGW64和MinGW UCRT的区别是调用的Windows基本C库不同,可以任意选择。 2、启动MSYS2 MinGW 阅读全文
posted @ 2021-07-20 20:37 松山居士 阅读(1600) 评论(0) 推荐(0)
摘要: Docker中的容器运行中会不断消耗磁盘空间,最终磁盘耗尽导致故障。其中,Docker容器产生的日志是主因。 #查看日志大小及位置[root@test docker]# du -h $(find /var/lib/docker/containers/ -name *-json.log) 164M / 阅读全文
posted @ 2021-06-22 10:02 松山居士 阅读(353) 评论(0) 推荐(0)
摘要: 最小化安装的CentOS没有图形化配置工具,可以通过文件进行配置。 [root@test ~]# cd /etc/sysconfig/network-scripts/ [root@test network-scripts]# ll total 232 -rw-r--r--. 1 root root 阅读全文
posted @ 2021-06-09 16:09 松山居士 阅读(552) 评论(0) 推荐(0)
摘要: CentOS作为服务器操作系统,默认会自动休眠的设定有点匪夷所思。 手动关闭自动休眠的方法如下: [root@CentOS ~]# vi /etc/X11/xorg.conf Section "ServerFlags" Option "BlankTime" "0" #关闭黑屏 Option "Sta 阅读全文
posted @ 2021-06-05 15:02 松山居士 阅读(4073) 评论(0) 推荐(0)
摘要: 在安装CentOS的时候,采用默认磁盘分区安装,往往给centos-root较少空间,剩余的空间全划分给centos-home,可以在后期将空间再调整。 [root@localhost ~]# umount /home [root@localhost ~]# lvremove /dev/mapper 阅读全文
posted @ 2021-04-27 17:19 松山居士 阅读(1538) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页