命令行程序的艺术 作者: liesauer 时间: 2019-01-13 分类: 参考 评论 [Command-line interface description language](http://docopt.org/ "Command-line interface description language") [Command-Line Syntax Key](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc771080%28v%3Dws.11%29 "Command-Line Syntax Key") [Utility Argument Syntax](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_01 "Utility Argument Syntax") [GNU Coding Standards](http://www.gnu.org/prep/standards/standards.html "GNU Coding Standards") [Command Line Standard](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-powershell-1.0/ee156811%28v%3Dtechnet.10%29 "Command Line Standard")
reStructuredText 文章备忘录 作者: liesauer 时间: 2019-01-12 分类: 参考 评论 [Quick reStructuredText](http://docutils.sourceforge.net/docs/user/rst/quickref.html "Quick reStructuredText") [A ReStructuredText Primer](http://docutils.sourceforge.net/docs/user/rst/quickstart.html "A ReStructuredText Primer") [reStructuredText Markup Specification](http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html "reStructuredText Markup Specification") [Index of /docs/ref/rst](http://docutils.sourceforge.net/docs/ref/rst/ "Index of /docs/ref/rst") [reStructuredText Standard Definition Files](http://docutils.sourceforge.net/docs/ref/rst/definitions.html "reStructuredText Standard Definition Files") [reStructuredText Directives](http://docutils.sourceforge.net/docs/ref/rst/directives.html "reStructuredText Directives") [An Introduction to reStructuredText](http://docutils.sourceforge.net/docs/ref/rst/introduction.html "An Introduction to reStructuredText") [reStructuredText Interpreted Text Roles](http://docutils.sourceforge.net/docs/ref/rst/roles.html "reStructuredText Interpreted Text Roles")
记一次酸酸乳软件crash排查 作者: liesauer 时间: 2018-12-12 分类: 开发 评论 ## 起因 因临时有需要,所以就打开了吃灰好久的酸酸乳软件,然后就发现刚启动没多久就发生了crash。 ## 排查 初步判断,把原因锁定在酸酸乳订阅上,因为之前都是用得好好的,其中最大的变数就是酸酸乳订阅,因为每次打开软件都是自动更新订阅,然后查看日志发现了一以下报错  这个异常是当尝试将 `nil` 插入到字典或者数组中才会发生的,所以就怀疑酸酸乳地址有错,导致软件解析失败,从而将 `nil` 加入到了字典中导致crash。果不其然,在前面的日志中发现其中一个酸酸乳是ipv6的服务器,因为ipv6格式中含有 `:` ,和酸酸乳协议刚好产生冲突,导致分割出来的字段超出预期而导致crash。  ## 解决方案 既然问题找到了,解决也简单,将ipv6的酸酸乳过滤掉即可。
在Sublime中使用XDebug调试PHP代码 作者: liesauer 时间: 2018-11-10 分类: 开发 评论 ## 添加PHP至PATH环境变量 略过  ## 下载配置XDebug 在`php.ini`中配置以下XDebug内容,这里我们只做了最简化的配置。 ``` [XDebug] # 根据具体的PHP版本以及系统选择相对应的XDebug扩展 zend_extension=xdebug.so xdebug.remote_enable=1 xdebug.remote_host="localhost" xdebug.port=9000 xdebug.remote_handler="dbgp" ``` - 阅读剩余部分 -
记一遇到的PHP类型限定小坑 作者: liesauer 时间: 2018-10-26 分类: 开发 评论 ## 原由 最近写了一个新的项目,在测试的时候发现PHP报了一个很诡异的错误 ``` Argument 1 passed to xxx must be an instance of string, string given, called in yyy ``` ## 分析 一开始看到这个错误,我第一反应就是是不是把`string`写错了,然后认真看了下,这完全一毛一样啊!  - 阅读剩余部分 -