Welcome to the Gutenberg Editor

Of Mountains & Printing Presses

The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.

What you are reading now is a text block the most basic block of all. The text block has its own controls to be moved freely around the post…

… like this one, which is right aligned.

Headings are separate blocks as well, which helps with the outline and organization of your content.

A Picture is Worth a Thousand Words

Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you’ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.

Try selecting and removing or editing the caption, now you don’t have to be careful about selecting the image or other text by mistake and ruining the presentation.

The Inserter Tool

Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That’s the spirit behind the inserter—the (+) button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.

Go give it a try, you may discover things WordPress can already add into your posts that you didn’t know about. Here’s a short list of what you can currently find there:

  • Text & Headings
  • Images & Videos
  • Galleries
  • Embeds, like YouTube, Tweets, or other WordPress posts.
  • Layout blocks, like Buttons, Hero Images, Separators, etc.
  • And Lists like this one of course :)

Visual Editing

A huge benefit of blocks is that you can edit them in place and manipulate your content directly. Instead of having fields for editing things like the source of a quote, or the text of a button, you can directly change the content. Try editing the following quote:

The editor will endeavor to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.

Matt Mullenweg, 2017

The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It’s always easy to add it back.

Blocks can be anything you need. For instance, you may want to add a subdued quote as part of the composition of your text, or you may prefer to display a giant stylized one. All of these options are available in the inserter.

You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.

Media Rich

If you combine the new wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:

Sure, the full-wide image can be pretty big. But sometimes the image is worth it.

The above is a gallery with just two images. It’s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.

Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:

vimeo.com/22439234

You can build any block you like, static or dynamic, decorative or plain. Here’s a pullquote block:

Code is Poetry

The WordPress community

If you want to learn more about how to build additional blocks, or if you are interested in helping with the project, head over to the GitHub repository.


Thanks for testing Gutenberg!

👋

静音Office Lens快门声音

Office Lens的快门声在一些手机上(比如我的Le2)无法关闭,这严重影响了该软件的使用。在Google上面查找,始终找不到解决方案,而只是一些吐槽。

大家对微软已经无力吐槽了。

机智如我,自然要想个办法。经过广泛调研,深入研究,最终得到解决方案。

具体思路是:将快门声音对应的音频文件设为无法访问。

安装Root Explorer,定位到/system/media/audio/ui,找到camera_click.ogg文件,将其权限设为000。如下图所示。

设置完成后,再打开Office Lens,世界清静了。

Zotero中分类包含子分类

Zotero中可以将不同文献分门别类,放在不同的文件夹中,称为(collection)。同时文件夹中还可以创建子文件夹,称为subcollection。默认情况下,除非你将对应条目添加到父文件夹中,否则子文件夹中的条目在上一级文件夹中并非是可见的。这不符合我们的使用习惯。

如何在上一级文件夹中包含下属文件夹中的所有文献信息呢?答案就是设置一个参数。

这个参数在高级设置里面。打开方式如下图:

找到 recursiveCollections 这一行。其默认值是False,双击就可以将其改为True。

搞定!

Ref: https://www.zotero.org/support/preferences/hidden_preferences

解决Windows10卡在登录界面或登录成功后失去响应的问题

症状如下:电脑自动重启更新,卡在更新界面不能继续。强制重启后,可以正常引导,但是在登录时候容易卡死,随后进去之后,鼠标在任务栏上显示“繁忙”,桌面不能成功加载。可以进安全模式。

通过查看Windows更新记录,显示Windows Defender更新后,开始出现这一情况,因此决定将Windows Defender禁用。禁用后恢复正常。

禁用方法如下:

在安全模式下,打开系统管理员权限的命令提示符,在其中输入 reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f 。

参考资料:tieba.baidu.com/p/3939957170

 

三种向NCBI提交SRA高通量测序原始数据的方法

将测序原始数据提交到SRA已经逐渐成为投稿的必备条件。对于高通量测序数据来说,动辄几百兆或者更大文件的传输是一个相对比较耗时的部分。NCBI提供了3种方式来提交这部分数据:

  1. 网页形式(包括浏览器上传和Aspera Connect插件上传);
  2. Aspera命令行方式提交;
  3. FTP方式提交。

第一种方式

网页提交应当是用户最熟悉的方式,跟日常上网的操作一样。但是,如果不使用Aspera Connect插件,一次只能提交一个文件。而且整个提交过程中没有进度提示,是最低效率的方式。然而,通过使用Aspera Connect插件,可以同时提交多个文件并看到进度。

一般情况下,使用Aspera插件在网页上提交是最方便的、推荐的上传方式。

不过,有时候由于浏览器、网络等存在问题,浏览器并不能正确调用Aspera软件。那就只能用其它方式传输了。

后面两种,都属于先将文件上传到临时文件夹(preloaded),随后再与SRA中的meta table中的文件列表一一对应起来的方法。

第二种方式

第二种方式是我最近一次使用的方式。当时,在浏览器上无法正确启动Aspera软件,并且使用时出现多次蓝屏。当你选择这种方式,需要打开一个命令行,输入网页上提示的命令即可。

下图即网页上面的提示。注意你需要下载一个key file在命令中使用。同时,还有把所有文件放在一个文件夹中。相应文件夹中的所有文件都会被上传。

命令运行时的界面如下:

这种方式传输速度也很快。我用WIFI是的连接速度在30 Mbps左右。

第三种方式

第三种方式,应当是最传统的文件传输方式,即FTP方式。选择FTP方式时,网页上会显示FTP服务器的地址、用户名、密码、用户目录等信息。需要注意的是,你并没有服务器根目录的访问权限,因此需要在设置FTP服务器时指定目录(FileZilla)。

首先,打开站点管理器,新建站点,填写主机、用户名、密码等信息。

其次,进入“高级”标签页,在上面把用户目录填写上。

这时候就可以连接了。需要注意的是,连接之后,需要在用户目录中新建一个子文件夹(必选操作)。然后才能将文件通过FTP传输到用户目录的新建子文件夹内。

根据我的使用情况,FTP传输的速度只有第二种方法的十分之一不到。除非你网络环境很好,否则不值得推荐。

===================================

综上所述,上传文件首选带有Aspera插件的浏览器模式,其次是Aspera命令行模式,再次FTP模式。