上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: * 在array_map()函数中使用闭包 Array( [0] => 2 [1] => 3 [2] => 4) * 使用use关键字附加闭包的状态 Clay, get me some sweet tea! * 使用bindTo方法附加闭包的状态 阅读全文
posted @ 2018-07-15 17:25 zhanghui_ming 阅读(107) 评论(0) 推荐(0)
摘要: * 使用生成器处理csv文件 input: ../data/t_video.csv output: Generator: 阅读全文
posted @ 2018-07-15 13:49 zhanghui_ming 阅读(463) 评论(0) 推荐(0)
摘要: windows ~/.emacs mac ~/.emacs 阅读全文
posted @ 2018-07-15 11:28 zhanghui_ming 阅读(195) 评论(0) 推荐(0)
摘要: The right way /dev/hell Code Response.php 接口 demo: modern-php/├── data│ └── stream.txt└── interface ├── CommandOutputDocument.php ├── DocumentStore.ph 阅读全文
posted @ 2018-07-15 10:07 zhanghui_ming 阅读(119) 评论(0) 推荐(0)
摘要: * 通过composer下载 // composer.json * 去掉讨厌的注释 https://doc.phpspider.org/demo-start.html ./vendor/owner888/phpspider/core/phpspider.php 删掉这段恶心的代码 * 导入数据库文件 阅读全文
posted @ 2018-07-14 23:13 zhanghui_ming 阅读(346) 评论(1) 推荐(0)
摘要: laravel 连接数据库出现错误 1. 确认./config/database.php 2. 检查.env文件 默认的配置导致的错误 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret 3. 重启服务 laravel art 阅读全文
posted @ 2018-07-14 10:43 zhanghui_ming 阅读(328) 评论(0) 推荐(0)
摘要: <?php class DB { private static $dh = null; private function __construct() { self::$dh = mysqli_connect("localhost","root",""); if (!self::$dh) { die('Could not connect: ' . mysql_err... 阅读全文
posted @ 2018-07-13 11:05 zhanghui_ming 阅读(116) 评论(0) 推荐(0)
摘要: 1. 确认服务器 开放8088端口 https://www.apachefriends.org/download.html 下载XAMPP for Windows,安装 2. 修改apache主配置文件 e:/opt/xampp/apache/conf/httpd.conf 默认有Listen 80 阅读全文
posted @ 2018-07-13 10:41 zhanghui_ming 阅读(2048) 评论(0) 推荐(0)
摘要: List process by port number -a – Displays all connections and listening ports. -o – Displays the owning process ID associated with each connection. -n 阅读全文
posted @ 2018-07-13 10:24 zhanghui_ming 阅读(146) 评论(0) 推荐(0)
摘要: 方法1: 用SET PASSWORD命令 mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');方法2:用mysqladmin mysqladmin -u root password "newpa 阅读全文
posted @ 2018-07-13 10:20 zhanghui_ming 阅读(152) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页