摘要: 先在 https://pecl.php.net/package/redis 下载windows版本的redis的dll,然后放在 php 安装目录里面的 ext 文件夹里面,然后在php.ini中添加一行 extension=php_redis.dll,就可以了 阅读全文
posted @ 2021-02-01 21:21 aGreatMan 阅读(81) 评论(0) 推荐(0)
摘要: 在网上搜索了各种方法,尝试更换StreamReader 读到的 stream 的 Encoding,但是换了好几种都不奏效,后来发现是调试终端的问题,把调试终端的codepage设置为65001就好了 阅读全文
posted @ 2021-01-27 23:19 aGreatMan 阅读(631) 评论(0) 推荐(0)
摘要: 第一种方法 + 在要获取的文件URL后面添加参数,如本来要获取的文件URL是 http://cdn.xxx.qiniu.cn/test.file,加参数改成 http://cdn.xxx.qiniu.cn/test.file?r=(new Date).getTime() 第二种方法 + 调用API刷 阅读全文
posted @ 2021-01-18 19:02 aGreatMan 阅读(419) 评论(0) 推荐(0)
摘要: using System; using System.IO; namespace _2020_01_17 { class Program { static void Main(string[] args) { string dir = Path.Combine(Directory.GetCurren 阅读全文
posted @ 2021-01-18 18:59 aGreatMan 阅读(561) 评论(0) 推荐(0)
摘要: 在c#的System.Diagnostics命名空间里有一个Stopwatch类,可以用来计时 using System;using System.Diagnostics; namespace ConsoleApp2 { class Program { static void Main(string 阅读全文
posted @ 2021-01-18 13:27 aGreatMan 阅读(181) 评论(0) 推荐(0)
摘要: 使用阿里云composer镜像源 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ 参考链接: https://developer.aliyun.com/composer 阅读全文
posted @ 2021-01-18 11:45 aGreatMan 阅读(65) 评论(0) 推荐(0)
摘要: 在phpmyadmin的默认安装目录有一个config.inc.php,更改里面的password即可 阅读全文
posted @ 2021-01-18 11:18 aGreatMan 阅读(278) 评论(0) 推荐(0)
摘要: mysqladmin -u <用户名> -p password <你要设置的新密码> 然后按照提示输入原来的旧密码 阅读全文
posted @ 2021-01-18 11:15 aGreatMan 阅读(183) 评论(0) 推荐(0)
摘要: 把chrome安装目录下的version.dll给删除了就好了 阅读全文
posted @ 2020-12-08 16:14 aGreatMan 阅读(761) 评论(1) 推荐(0)
摘要: 最近发现css设置padding后背景颜色会消失, 在网上查了查,发现,background 和 padding 是有先后顺序要求的,要先设置background,再设置padding 参考: https://blog.csdn.net/bangyiqing/article/details/5195 阅读全文
posted @ 2020-11-21 13:51 aGreatMan 阅读(1130) 评论(0) 推荐(0)