I18N 文章备忘录 作者: liesauer 时间: 2019-05-04 分类: 参考 评论 ## I18N/L10N [Internationalization and localization](https://en.wikipedia.org/wiki/Internationalization_and_localization "Internationalization and localization") ## gettext [GNU gettext utilities](http://www.gnu.org/software/gettext/manual/gettext.html "GNU gettext utilities") ## .POT .PO .MO [The Format of PO Files](https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html "The Format of PO Files") [PO and POT files](https://www.drupal.org/node/1814954 "PO and POT files") ## Locale ID [ISO 3166 Codes (Countries)](http://kirste.userpage.fu-berlin.de/diverse/doc/ISO_3166.html "ISO 3166 Codes (Countries)") [Language and Locale IDs](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html "Language and Locale IDs") [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47 "Tags for Identifying Languages") [Matching of Language Tags](https://tools.ietf.org/html/rfc4647 "Matching of Language Tags") [iso-3166-1全球国家名称代码](http://doc.chacuo.net/iso-3166-1 "iso-3166-1全球国家名称代码") [Full list of country codes](https://www.iso.org/obp/ui/#search/code/ "Full list of country codes") [language-subtag-registry](http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry "language-subtag-registry") [[MS-LCID]: Windows Language Code Identifier (LCID) Reference](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f "[MS-LCID]: Windows Language Code Identifier (LCID) Reference") [2.2 LCID Structure](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/63d3d639-7fd2-4afb-abbe-0d5b5551eef8 "2.2 LCID Structure") [Choosing a Language Tag](https://www.w3.org/International/questions/qa-choosing-language-tags)
PHP,你怎么穿着品如的衣服? 作者: liesauer 时间: 2019-04-19 分类: 开发 评论 ## 运行环境 1. `PHP >= 5.4` 然而如果你的 `PHP` 版本小于 `7.1`,这段代码还是跑不了,会报`PHP Fatal error: Cannot access empty property`,要将以下语句移除才能运行起来 ```text null => '我是null', $prop = null; var_dump($dynamicVar->$prop); ``` 我猜测应该是 `PHP 7.1` 加强了对 `nullable` `void` 的支持,所以导致了属性可以为 `null` 的诡异写法。 ```php $value) { $this->$var = $value; } } } $dynamicVar = new DynamicObj([ null => '我是null', 0 => '我是数字', '1' => '我也是数字', '0我是_- 非法属性名☺' => '。。。', 0x123456 => 'hex test', ]); var_dump($dynamicVar); $prop = null; var_dump($dynamicVar->$prop); var_dump($dynamicVar->{'0我是_- 非法属性名☺'}); var_dump($dynamicVar->{0x123456}); $json = json_encode($dynamicVar); var_dump($json); var_dump(json_decode($json)); var_dump(json_decode($json, true)); ``` - 阅读剩余部分 -
PHP 5.6 弃用 $HTTP_RAW_POST_DATA 所带来的小坑 作者: liesauer 时间: 2019-03-27 分类: 开发 评论 ## 起因 在将服务器PHP版本升级至5.6之后,发现微信公众号不回复信息了,也没发现有报错信息。搞了好久,终于在 `register_shutdown_function` 中的 handler 里捕获到了如下错误信息: ```text 8192Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead.Unknown0 ``` 大致是说 `$HTTP_RAW_POST_DATA` 这个变量已经在PHP 5.6 中弃用且会在未来的版本中移除。 - 阅读剩余部分 -
如何安逸地过 CloudFlare 5秒盾 作者: liesauer 时间: 2019-03-21 分类: 破解 1 条评论 # FBI WARNING 本文不对具体细节做介绍,如果这篇文章对你有用,请做好相应的功课。 # 关键词 `CloudFlare` `5秒盾` `浏览器安全检查中` `Checking your browser before accessing xxx.com` `jschl_answer` - 阅读剩余部分 -
AutoCAD多版本 32位&64位 官方原版及注册机下载地址 作者: liesauer 时间: 2019-02-28 分类: 资源 2 条评论 ## 注册机 [http://www.xforce-cracks.com/?s=cad](http://www.xforce-cracks.com/?s=cad "http://www.xforce-cracks.com/?s=cad") ## AutoCAD 2021 [AutoCAD 2021 简体中文版 64位](http://trial2.autodesk.com/NetSWDLD/2021/ACD/9046B381-E756-4D38-A7EF-FAD07F4456E6/SFX/AutoCAD_2021_Simplified_Chinese_Win_64bit_dlm.sfx.exe) [AutoCAD 2021 离线帮助文件](http://download.autodesk.com/us/support/autocad_2021_product_help_download_page/autocad_2021_offline_help_simplified_chinese_win_64bit_dlm.sfx.exe) ## AutoCAD 2020 [AutoCAD 2020 简体中文版 64位](http://trial2.autodesk.com/NetSWDLD/2020/ACD/D98B88A0-50EC-4B88-9CA3-EA909DD6BC8C/SFX/AutoCAD_2020_Simplified_Chinese_Win_64bit_dlm.sfx.exe) [AutoCAD 2020 离线帮助文件](http://download.autodesk.com/us/support/autocad_2020_product_help_download_page/autocad_2020_offline_help_simplified_chinese_win_64bit_dlm.sfx.exe) [AutoCAD 2020.1 Update 64位](https://up.autodesk.com/2020/ACD/1B52239E-5BA3-4A90-BAD4-6936ED3425BD/AutoCAD_2020.1_Update_64bit.exe) [AutoCAD 2020.2 Update 64位](http://up.autodesk.com/2020/ACD/F1D2E857-19D2-4505-B39B-D918A338995A/AutoCAD_2020.1.2_Update_64bit.exe) ## AutoCAD 2019 [简体中文版 32位](http://trial2.autodesk.com/NetSWDLD/2019/ACD/281B1051-D3D3-4FCC-A52C-CF750093307C/SFX/AutoCAD_2019_Simplified_Chinese_Win_32bit_dlm.sfx.exe "简体中文版 32位") [简体中文版 64位](http://trial2.autodesk.com/NetSWDLD/2019/ACD/19B8BB53-6D2C-4FFF-A2E9-C8BBABC04DC8/SFX/AutoCAD_2019_Simplified_Chinese_Win_64bit_dlm.sfx.exe "简体中文版 64位") [AutoCAD 2019 离线帮助文件](http://download.autodesk.com/us/support/files/autocad_2019_product_help_download_page/AutoCAD_2019_Offline_Help_Simplified_Chinese_Win_32_64bit_dlm.sfx.exe "AutoCAD 2019 离线帮助文件 32位&64位") [AutoCAD 2019.0.1 Update 32位](https://up.autodesk.com/2019/ACD/DCB64C0D-CFEE-4CDA-B52A-9680EFF43597/AutoCAD_2019.0.1_Update_32bit.exe "AutoCAD 2019.0.1 Update 32位") [AutoCAD 2019.0.1 Update 64位](https://up.autodesk.com/2019/ACD/3C660FAD-2394-4684-889D-998BDF6F485A/AutoCAD_2019.0.1_Update_64bit.exe "AutoCAD 2019.0.1 Update 64位") - 阅读剩余部分 -