最近更新的页面
App: Local Machine translation 2 (translate2)
The translate2 app is one of the apps that provide machine translation functionality in Nextcloud...
Using the Object Store
The Object Store allows you to store data of any (i.e. large) size by implementing a chunking mec...
字符串的新增方法
本章介绍字符串对象的新增方法。 String.fromCodePoint() ES5 提供 String.fromCharCode()方法,用于从 Unicode 码点返回对应字符,但是这个方法...
严格模式
除了正常的运行模式,JavaScript 还有第二种运行模式:严格模式(strict mode)。顾名思义,这种模式采用更加严格的 JavaScript 语法。 同样的代码,在正常模式和严格模式...
对象的扩展
对象(object)是 JavaScript 最重要的数据结构。ES6 对它进行了重大升级,本章介绍数据结构本身的改变,下一章介绍 Object对象的新增方法。 属性的简洁表示法 ES6 允许在...
Favicon API 文档
API 概述 该 API 服务用于获取网站的 favicon 图标。不仅限于 WordPress 站点,它会自动检测并返回目标网站的 favicon 图标。如果无法获取到目标网站的 favico...
Slow Consumers
To support resiliency and high availability, NATS provides built-in mechanisms to automatically p...
this 关键字
涵义 this关键字是一个非常重要的语法点。毫不夸张地说,不理解它的含义,大部分开发任务都无法完成。 前一章已经提到, this可以用在构造函数之中,表示实例对象。除此之外, this还可以用在...
Headers 对象
简介 Headers 代表 HTTP 消息的数据头。 它通过 Headers()构造方法,生成实例对象。 Request.headers属性和 Response.headers属性,指向的都是 ...
Walkthrough Setup
We have provided Walkthroughs for you to try NATS (and JetStream) on your own. In order to follow...
Managing JetStream
Once the server is running it's time to use the management tool. Please refer to the installation...
NATS Server Clients
A NATS client is an application making a connection to one of the nats servers pointed to by its ...
Queue Groups
When subscribers register themselves to receive messages from a publisher, the 1:N fan-out patter...
NATS Admin CLI
nats Admin CLI The nats CLI can be used to manage Streams and Consumers easily using it's --con...
Go 语言图像请求
与自有程序集成页面希望增加 Golang 语言的案例,来自 @okatu-loli ,Go 实现 Cravatar 示例如下,可供参考。 package main import ( "cry...
条件判断
本章介绍 Bash 脚本的条件判断语法。 if 结构 if是最常用的条件判断结构,只有符合给定条件时,才会执行指定的命令。它的语法如下。 if commands; then commands...
Publishing to Streams
Go func ExampleJetStream() { nc, err := nats.Connect("localhost") if err != nil { log.Fatal(e...
Authenticating with a User and Password
For this example, start the server using: nats-server --user myname --pass password You can encry...
Linux 硬件管理
挂载外部硬盘 系统接入外部硬盘后,先用 fdisk 命令找出硬盘编号。 $ sudo fdisk -l 这里假定硬盘编号是 /dev/sdc。 然后,创建一个挂载点目录 /mnt/sdd。 $ ...
Caches, Flush and Ping
For performance reasons, most if not all, of the client libraries will buffer outgoing data so th...