Tricks

Sequel Pro cannot create a JSON value from a string with CHARACTER SET ‘binary’

I had this problem dealing with exports made by Sequel Pro. I unchecked the Output BLOB fields as hex option and the problem went away. Visually inspecting the export showed legible JSON instead of binary.

导出数据的时候把 “Output BLOB fields as hex” 这个选项取消就可以了。

参考:https://stackoverflow.com/questions/38078119/mysql-5-7-12-import-cannot-create-a-json-value-from-a-string-with-character-set

使用 gitbook 创建一本书

Summary.md 这个文件相对于是一本书的目录结构。比如SUMMARY.md :

# Summary
* [Introduction](README.md)
* [基本安装](howtouse/README.md)
   * [Node.js安装](howtouse/nodejsinstall.md)
   * [Gitbook安装](howtouse/gitbookinstall.md)
   * [Gitbook命令行速览](howtouse/gitbookcli.md)
* [图书项目结构](book/README.md)
   * [README.md 与 SUMMARY编写](book/file.md)
   * [目录初始化](book/prjinit.md)
* [图书输出](output/README.md)
   * [输出为静态网站](output/outfile.md)
   * [输出PDF](output/pdfandebook.md)
* [发布](publish/README.md)
   * [发布到Github Pages](publish/gitpages.md)
* [结束](end/README.md)

SUMMARY.md基本上是列表加链接的语法。链接中可以使用目录,也可以使用。

Chrome Hotkeys

In Omnibar, press tab after a search-able website will search for the website prefix ? will search forcefully

⌘T  Open a new tab
⇧⌘T Reopen tab just closed
⌘W  colse a tab
⌘⌥→ Go to left tab
⌘[  / Delete    Go back in history
⌘]  / Delete    Go forward in history
⌘M  minimize
⇧⌘B show/hide bookmark bar
⇧⌘J Open Downloads
⌘Y  Open History
⌘L  omni bar
⌘R  reload page
⌘F  find
⌘G / ⏎  find next
⌘⌥I Inspect element
⌘⌥J JavaScript Console
⌘+Shift+D   Save all tabs in one folder
^⌘F Full screen(Mac style)
⌘-Shift-F   Real Full Screen