代码改变世界

随笔档案-2019年09月

用于 Quinella/Exacta/Trifecta/Pick Four/Pick Six/Quaddie/Superfecta 7大规则的测试

2019-09-28 11:59 by Dorisoy, 336 阅读, 收藏,
摘要: 上2篇给了详细API 设计,下面我们来模拟测试下: Quinella: Here is the output: 2 42.5 (1, 2) 15.000 (1, 4) 27.500 Calculation Time: 0.001 Exacta: self.bet_type = "Exacta" se 阅读全文

How to Construct the Input Bet String

2019-09-28 11:39 by Dorisoy, 317 阅读, 收藏,
摘要: The purpose of this section is to describe the format of the string which will submitted to the Python bet processor strats.py. This string is a serie 阅读全文

Odds calculation required for the python strategy library

2019-09-28 11:33 by Dorisoy, 518 阅读, 收藏,
摘要: Bet Class Here is an example of the expected string input on instantiation of the class. It is expecting a string using the POST method in a cgi scrip 阅读全文

超实用文件监控多线程FTP上传工具

2019-09-28 11:19 by Dorisoy, 1055 阅读, 收藏,
摘要: 这是自己很久以前写的一个多线程FTP 上传工具,支持多账户,自定义线程数,自定义文件监控目录,可用做文件发布使用,非常实用,今天有小伙伴问起,现分享出来: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 阅读全文

MySQL 8.0 以上版本重置 root 用户密码的终极办法

2019-09-12 14:03 by Dorisoy, 4849 阅读, 收藏,
摘要: 1. 在 /etc/my.cnf 文件末尾追加 skip-grant-tables 2.重启MySQL服务 3.免密码登录 root 用户(输入密码时直接回车即可) 4.重置密码 注意:先执行flush privileges;然后会alter成功,要不然会alter失败 5. 修改密码安全级别 6. 阅读全文

Linux(Contos7)下使用SSH远程安装MySQL 8.0.17 完整笔记

2019-09-12 12:07 by Dorisoy, 1779 阅读, 收藏,
摘要: 1. 使用putty 配置远程服务器连接,登录服务器。 由于没有指定下载包 使用 yum install mysql-server 提示 未指定包,如: 2. 因为甲骨文的收购了Mysql并且对Mysql进行了闭源开发,所以以前的yum下载命令无法获取到下载包,我们使用rpm方式来安装,这时我们就需 阅读全文