加载中
win10编辑hosts

1. 创建脚本文件 D:\edit_hosts.bat @echo off start notepad C:\Windows\System32\drivers\etc\hosts 2. 发送到桌面快捷方式。修改快捷方式文件属性 -> 快捷方式 -> 高级 -> 勾选上”用管理...

2022/10/20 09:04
40
select into group by

根据多条数据的记录表,生成状态表。 工作中经常遇到类似的操作,记录下我写的sql -- 多条的记录表 my_records_table id, name, status1, status2, created_at, ... -- 状态表 my_st......

2022/03/15 18:11
309
jdbc mysql保存point数据

CREATE TABLE `schools` ( `name` varchar(255), `location` point ) PreparedStatement ps = conn.prepareStatement( "INSERT INTO schools(name, location) values (?,ST_GeomFromText(?))...

2022/03/08 17:31
514
glusterfs 测试

测试环境centos8 https://github.com/gluster/glusterfs/tags 下载安装 wget https://github.com/gluster/glusterfs/archive/refs/tags/v9.4.tar.gz tar zxvf v9.4.tar.gz cd glusterfs-9.4 ...

2021/10/20 16:27
146
php8

[root@ecs-4e7a-0002 php8.0]# ./bin/php -d opcache.enable_cli=1 -d opcache.jit_buffer_size=64M -d opcache.jit=1235 bench.php simple 0.001 simplecall 0.000 simpleucall 0......

2020/07/01 10:45
259
nginx日志分割脚本

重新分享下我的nginx日志分割脚本 可以备份多个日志。 快速创建新日志,减少备份时期丢失日志。 备份目录按${website}日志名自动创建。 空日志不会创建备份日志。 注意日志文件名格式 以 "a...

2020/04/08 10:31
52
php函数pack()返回的字符串是什么 php binary string

php函数pack()返回的字符串是什么? // 'd' double 占用8个字节 $data = pack('d', 3.1415); // dd函数见 Symfony\VarDumper dd($data) 输出: b"o\x12ƒÀÊ!\t@" 完全看不懂啊! $i = 0; dd(...

2019/08/29 18:24
171
百度地图 经纬度坐标转换为像素坐标原理

// 投影实例 const projection = map.getMapType().getProjection() // 地图div宽高 const box = map.getSize() const zoom = window.Math.pow(2, 18 - map.getZoom()) // 中心坐标 转 平面坐...

2019/08/28 17:04
5.4K
js 异步for each

async.js 中有 forEachOf 方法,但是打包到小程序里接近1M大小。 自己写个了 function sync_each(arr, fn_done, callback) { // 迭代 var next_index = 0; var it = { next: function......

2018/09/14 10:00
99
ImageMagick批量压缩图片

#!/bin/sh for img in `find ./image -name "*.jpg"`; do newimg=`basename $img` convert -quality 75% $img ./ok/$newimg echo ./ok/$newimg done......

2018/07/16 17:53
985
小程序使用msgpack

瞎折腾半天 下载 https://github.com/kawanet/msgpack-lite const msgpack = require("../../libs/msgpack.min.js"); wx.request({ url: 'https://localhost/api', responseType: 'arraybuf...

2018/07/10 17:56
944
centos8 安装 elasticsearch

官方安装说明 https://www.elastic.co/guide/en/elasticsearch/reference/7.15/rpm.html#rpm-repo vim /etc/yum.repos.d/elasticsearch.repo [elasticsearch] name=Elasticsearch repository...

geohash 附近搜索

附近搜索 geohash.neighbors 生成周边8个geohash(如下图),生成的长方形区域,与我要的搜索附近半径几公里以内肯定不相符。找到老外写的 https://github.com/ashwin711/proximityhash 。 需要...

2018/03/15 17:21
1K

没有更多内容

加载失败,请刷新页面

返回顶部
顶部