![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发
认真做事
这个作者很懒,什么都没留下…
展开
-
Mac端口转发
mac os 10.10以上的开启端口转发-解决mac默认不开启102以上端口权限问题,详情请参见man pfctl1、回到根目录:cd ~ 2、pf=yes 3、cd /etc/pf.anchors/ 4、管理员权限创建http文件:sudo vi http 编辑如下内容 rdr pass on lo0 inet proto tcp from any to any port 80 ->转载 2016-09-18 13:50:26 · 1856 阅读 · 0 评论 -
mysql rand()函数获取随机数
1、随机获取一条数据:ORDER BY RAND(); 2、获取随机数0-1范围:SELECT RAND(); 3、取整 1:SELECT CEIL(RAND()); 1:SELECT CEILING(RAND()); 0:SELECT FLOOR(RAND()); 4、RAND()*N的取值范围:1-N 5、取x-y之间的随机数:SELECT (CEIL(RA原创 2016-11-29 18:32:35 · 12660 阅读 · 0 评论 -
MySQL批量修改一个字段的部分内容
update 表名 set 字段名 = replace(字段名,’search’,’replace’)update gxb_user set avatar = replace(avatar,’http://’,’https://’) where uid >0;原创 2017-01-05 17:20:31 · 2333 阅读 · 0 评论 -
coding代码迁移到gitlab
1、终端下载一个洁净的代码 git clone https://git.coding.net/kkb_codemaster/wx-qa.git 2、项目不是公开的话要输入用户名和密码 3、下载完成后 gitlab->projects->new project 4、把下载好的coding代码放入即可原创 2017-01-13 17:08:28 · 3140 阅读 · 0 评论 -
Mac免安装版tomcat下载及运行
1、官网:http://tomcat.apache.org 选择版本下载(Core下.zip) 2、终端打开到tomcat bin目录,执行sh startup.sh, 若提示Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run t原创 2017-02-08 11:47:56 · 1206 阅读 · 0 评论 -
XVcode图形验证码生成
生成并保存到本地//生成验证码图片到本地磁盘 draw image and save to disk public String PicCode() { String path = ".";//图片存储路径 path for image save Integer height = 40;//image 高度。 image height. count as p原创 2017-03-28 14:17:28 · 514 阅读 · 0 评论