Engine API version history
読む時間の目安: 31 分v1.40 API changes
Docker Engine API v1.40 documentation
- The
/_ping
endpoint can now be accessed both usingGET
orHEAD
requests. when accessed using aHEAD
request, all headers are returned, but the body is empty (Content-Length: 0
). This change is not versioned, and affects all API versions if the daemon has this patch. Clients are recommended to try usingHEAD
, but fallback toGET
if theHEAD
requests fails. GET /_ping
andHEAD /_ping
now setCache-Control
andPragma
headers to prevent the result from being cached. This change is not versioned, and affects all API versions if the daemon has this patch.GET /services
now returnsSysctls
as part of theContainerSpec
.GET /services/{id}
now returnsSysctls
as part of theContainerSpec
.POST /services/create
now acceptsSysctls
as part of theContainerSpec
.POST /services/{id}/update
now acceptsSysctls
as part of theContainerSpec
.POST /services/create
now acceptsConfig
as part ofContainerSpec.Privileges.CredentialSpec
.POST /services/{id}/update
now acceptsConfig
as part ofContainerSpec.Privileges.CredentialSpec
.POST /services/create
now includesRuntime
as an option inContainerSpec.Configs
POST /services/{id}/update
now includesRuntime
as an option inContainerSpec.Configs
GET /tasks
now returnsSysctls
as part of theContainerSpec
.GET /tasks/{id}
now returnsSysctls
as part of theContainerSpec
.GET /networks
now supports adangling
filter type. When set totrue
(or1
), the endpoint returns all networks that are not in use by a container. When set tofalse
(or0
), only networks that are in use by one or more containers are returned.GET /nodes
now supports a filter typenode.label
filter to filter nodes based on the node.label. The format of the label filter isnode.label=<key>
/node.label=<key>=<value>
to return those with the specified labels, ornode.label!=<key>
/node.label!=<key>=<value>
to return those without the specified labels.POST /containers/create
,GET /containers/{id}/json
, andGET /containers/json
now supportsBindOptions.NonRecursive
.POST /swarm/init
now accepts aDataPathPort
property to set data path port number.GET /info
now returns information aboutDataPathPort
that is currently used in swarmGET /info
now returnsPidsLimit
boolean to indicate if the host kernel has PID limit support enabled.GET /info
now includesname=rootless
inSecurityOptions
when the daemon is running in rootless mode. This change is not versioned, and affects all API versions if the daemon has this patch.GET /info
now returnsnone
asCgroupDriver
when the daemon is running in rootless mode. This change is not versioned, and affects all API versions if the daemon has this patch.POST /containers/create
now acceptsDeviceRequests
as part ofHostConfig
. Can be used to set Nvidia GPUs.GET /swarm
endpoint now returns DataPathPort infoPOST /containers/create
now takesKernelMemoryTCP
field to set hard limit for kernel TCP buffer memory.GET /service
now returnsMaxReplicas
as part of thePlacement
.GET /service/{id}
now returnsMaxReplicas
as part of thePlacement
.POST /service/create
andPOST /services/(id or name)/update
now take the fieldMaxReplicas
as part of the servicePlacement
, allowing to specify maximum replicas per node for the service.GET /containers
now returnsCapabilities
field as part of theHostConfig
.GET /containers/{id}/json
now returns aCapabilities
field as part of theHostConfig
.POST /containers/create
now takes aCapabilities
field to set the list of kernel capabilities to be available for the container (this overrides the default set).POST /containers/create
on Linux now creates a container withHostConfig.IpcMode=private
by default, if IpcMode is not explicitly specified. The per-daemon default can be changed back toshareable
by usingDefaultIpcMode
daemon configuration parameter.POST /containers/{id}/update
now accepts aPidsLimit
field to tune a container’s PID limit. Set0
or-1
for unlimited. Leavenull
to not change the current value.POST /build
now acceptsoutputs
key for configuring build outputs when using BuildKit mode.
V1.39 API changes
Docker Engine API v1.39 documentation
GET /info
now returns an empty string, instead of<unknown>
forKernelVersion
andOperatingSystem
if the daemon was unable to obtain this information.GET /info
now returns information about the product license, if a license has been applied to the daemon.GET /info
now returns aWarnings
field, containing warnings and informational messages about missing features, or issues related to the daemon configuration.POST /swarm/init
now accepts aDefaultAddrPool
property to set global scope default address poolPOST /swarm/init
now accepts aSubnetSize
property to set global scope networks by giving the length of the subnet masks for every such networkPOST /session
(added in V1.31 is no longer experimental. This endpoint can be used to run interactive long-running protocols between the client and the daemon.
V1.38 API changes
Docker Engine API v1.38 documentation
GET /tasks
andGET /tasks/{id}
now return aNetworkAttachmentSpec
field, containing theContainerID
for non-service containers connected to “attachable” swarm-scoped networks.
v1.37 API changes
Docker Engine API v1.37 documentation
POST /containers/create
andPOST /services/create
now supports exposing SCTP ports.POST /configs/create
andPOST /configs/{id}/create
now accept aTemplating
driver.GET /configs
andGET /configs/{id}
now return theTemplating
driver of the config.POST /secrets/create
andPOST /secrets/{id}/create
now accept aTemplating
driver.GET /secrets
andGET /secrets/{id}
now return theTemplating
driver of the secret.
v1.36 API changes
Docker Engine API v1.36 documentation
Get /events
now returnexec_die
event when an exec process terminates.
v1.35 API changes
Docker Engine API v1.35 documentation
POST /services/create
andPOST /services/(id)/update
now accepts anIsolation
field on container spec to set the Isolation technology of the containers running the service (default
,process
, orhyperv
). This configuration is only used for Windows containers.GET /containers/(name)/logs
now supports an additional query parameter:until
, which returns log lines that occurred before the specified timestamp.POST /containers/{id}/exec
now accepts aWorkingDir
property to set the work-dir for the exec process, independent of the container’s work-dir.Get /version
now returns aPlatform.Name
field, which can be used by products using Moby as a foundation to return information about the platform.Get /version
now returns aComponents
field, which can be used to return information about the components used. Information about the engine itself is now included as a “Component” version, and contains all information from the top-levelVersion
,GitCommit
,APIVersion
,MinAPIVersion
,GoVersion
,Os
,Arch
,BuildTime
,KernelVersion
, andExperimental
fields. Going forward, the information from theComponents
section is preferred over their top-level counterparts.
v1.34 API changes
Docker Engine API v1.34 documentation
POST /containers/(name)/wait?condition=removed
now also also returns in case of container removal failure. A pointer to a structure namedError
added to the response JSON in order to indicate a failure. IfError
isnull
, container removal has succeeded, otherwise the test of an error message indicating why container removal has failed is available fromError.Message
field.
v1.33 API changes
Docker Engine API v1.33 documentation
GET /events
now supports filtering 4 more kinds of events:config
,node
,secret
andservice
.
v1.32 API changes
Docker Engine API v1.32 documentation
POST /containers/create
now accepts additional values for theHostConfig.IpcMode
property. New values areprivate
,shareable
, andnone
.DELETE /networks/{id or name}
fixed issue where aname
equal to another network’s name was able to mask thatid
. If both a network with the given name exists, and a network with the given id, the network with the given id is now deleted. This change is not versioned, and affects all API versions if the daemon has this patch.
v1.31 API changes
Docker Engine API v1.31 documentation
DELETE /secrets/(name)
now returns status code 404 instead of 500 when the secret does not exist.POST /secrets/create
now returns status code 409 instead of 500 when creating an already existing secret.POST /secrets/create
now accepts aDriver
struct, allowing theName
and driver-specificOptions
to be passed to store a secrets in an external secrets store. TheDriver
property can be omitted if the default (internal) secrets store is used.GET /secrets/(id)
andGET /secrets
now return aDriver
struct, containing theName
and driver-specificOptions
of the external secrets store used to store the secret. TheDriver
property is omitted if no external store is used.POST /secrets/(name)/update
now returns status code 400 instead of 500 when updating a secret’s content which is not the labels.POST /nodes/(name)/update
now returns status code 400 instead of 500 when demoting last node fails.GET /networks/(id or name)
now takes an optional query parameterscope
that will filter the network based on the scope (local
,swarm
, orglobal
).POST /session
is a new endpoint that can be used for running interactive long-running protocols between client and the daemon. This endpoint is experimental and only available if the daemon is started with experimental features enabled.GET /images/(name)/get
now includes anImageMetadata
field which contains image metadata that is local to the engine and not part of the image config.POST /services/create
now accepts aPluginSpec
whenTaskTemplate.Runtime
is set toplugin
GET /events
now supports config eventscreate
,update
andremove
that are emitted when users create, update or remove a configGET /volumes/
andGET /volumes/{name}
now return aCreatedAt
field, containing the date/time the volume was created. This field is omitted if the creation date/time for the volume is unknown. For volumes with scope “global”, this field represents the creation date/time of the local instance of the volume, which may differ from instances of the same volume on different nodes.GET /system/df
now returns aCreatedAt
field forVolumes
. Refer to the/volumes/
endpoint for a description of this field.
v1.30 API changes
Docker Engine API v1.30 documentation
GET /info
now returns the list of supported logging drivers, including plugins.GET /info
andGET /swarm
now returns the cluster-wide swarm CA info if the node is in a swarm: the cluster root CA certificate, and the cluster TLS leaf certificate issuer’s subject and public key. It also displays the desired CA signing certificate, if any was provided as part of the spec.POST /build/
now (when not silent) produces anAux
message in the JSON output stream with payloadtypes.BuildResult
for each image produced. The final such message will reference the image resulting from the build.GET /nodes
andGET /nodes/{id}
now returns additional information about swarm TLS info if the node is part of a swarm: the trusted root CA, and the issuer’s subject and public key.GET /distribution/(name)/json
is a new endpoint that returns a JSON output stream with payloadtypes.DistributionInspect
for an image name. It includes a descriptor with the digest, and supported platforms retrieved from directly contacting the registry.POST /swarm/update
now accepts 3 additional parameters as part of the swarm spec’s CA configuration; the desired CA certificate for the swarm, the desired CA key for the swarm (if not using an external certificate), and an optional parameter to force swarm to generate and rotate to a new CA certificate/key pair.POST /service/create
andPOST /services/(id or name)/update
now take the fieldPlatforms
as part of the servicePlacement
, allowing to specify platforms supported by the service.POST /containers/(name)/wait
now accepts acondition
query parameter to indicate which state change condition to wait for. Also, response headers are now returned immediately to acknowledge that the server has registered a wait callback for the client.POST /swarm/init
now accepts aDataPathAddr
property to set the IP-address or network interface to use for data trafficPOST /swarm/join
now accepts aDataPathAddr
property to set the IP-address or network interface to use for data trafficGET /events
now supports service, node and secret events which are emitted when users create, update and remove service, node and secretGET /events
now supports network remove event which is emitted when users remove a swarm scoped networkGET /events
now supports a filter typescope
in which supported value could be swarm and localPUT /containers/(name)/archive
now accepts acopyUIDGID
parameter to allow copy UID/GID maps to dest file or dir.
v1.29 API changes
Docker Engine API v1.29 documentation
DELETE /networks/(name)
now allows to remove the ingress network, the one used to provide the routing-mesh.POST /networks/create
now supports creating the ingress network, by specifying anIngress
boolean field. As of now this is supported only when using the overlay network driver.GET /networks/(name)
now returns anIngress
field showing whether the network is the ingress one.GET /networks/
now supports ascope
filter to filter networks based on the network mode (swarm
,global
, orlocal
).POST /containers/create
,POST /service/create
andPOST /services/(id or name)/update
now takes the fieldStartPeriod
as a part of theHealthConfig
allowing for specification of a period during which the container should not be considered unhealthy even if health checks do not pass.GET /services/(id)
now accepts aninsertDefaults
query-parameter to merge default values into the service inspect output.POST /containers/prune
,POST /images/prune
,POST /volumes/prune
, andPOST /networks/prune
now support alabel
filter to filter containers, images, volumes, or networks based on the label. The format of the label filter could belabel=<key>
/label=<key>=<value>
to remove those with the specified labels, orlabel!=<key>
/label!=<key>=<value>
to remove those without the specified labels.POST /services/create
now acceptsPrivileges
as part ofContainerSpec
. Privileges currently includeCredentialSpec
andSELinuxContext
.
v1.28 API changes
Docker Engine API v1.28 documentation
POST /containers/create
now includes aConsistency
field to specify the consistency level for eachMount
, with possible valuesdefault
,consistent
,cached
, ordelegated
.GET /containers/create
now takes aDeviceCgroupRules
field inHostConfig
allowing to set custom device cgroup rules for the created container.- Optional query parameter
verbose
forGET /networks/(id or name)
will now list all services with all the tasks, including the non-local tasks on the given network. GET /containers/(id or name)/attach/ws
now returns WebSocket in binary frame format for API version >= v1.28, and returns WebSocket in text frame format for API version< v1.28, for the purpose of backward-compatibility.GET /networks
is optimised only to return list of all networks and network specific information. List of all containers attached to a specific network is removed from this API and is only available using the network specificGET /networks/{network-id}
.GET /containers/json
now supportspublish
andexpose
filters to filter containers that expose or publish certain ports.POST /services/create
andPOST /services/(id or name)/update
now accept theReadOnly
parameter, which mounts the container’s root filesystem as read only.POST /build
now acceptsextrahosts
parameter to specify a host to ip mapping to use during the build.POST /services/create
andPOST /services/(id or name)/update
now accept arollback
value forFailureAction
.POST /services/create
andPOST /services/(id or name)/update
now accept an optionalRollbackConfig
object which specifies rollback options.GET /services
now supports amode
filter to filter services based on the service mode (eitherglobal
orreplicated
).POST /containers/(name)/update
now supports updatingNanoCPUs
that represents CPU quota in units of 10-9 CPUs.
v1.27 API changes
Docker Engine API v1.27 documentation
GET /containers/(id or name)/stats
now includes anonline_cpus
field in bothprecpu_stats
andcpu_stats
. If this field isnil
then for compatibility with older daemons the length of the correspondingcpu_usage.percpu_usage
array should be used.
v1.26 API changes
Docker Engine API v1.26 documentation
POST /plugins/(plugin name)/upgrade
upgrade a plugin.
v1.25 API changes
Docker Engine API v1.25 documentation
- The API version is now required in all API calls. Instead of just requesting, for example, the URL
/containers/json
, you must now request/v1.25/containers/json
. GET /version
now returnsMinAPIVersion
.POST /build
acceptsnetworkmode
parameter to specify network used during build.GET /images/(name)/json
now returnsOsVersion
if populatedGET /info
now returnsIsolation
.POST /containers/create
now takesAutoRemove
in HostConfig, to enable auto-removal of the container on daemon side when the container’s process exits.GET /containers/json
andGET /containers/(id or name)/json
now return"removing"
as a value for theState.Status
field if the container is being removed. Previously, “exited” was returned as status.GET /containers/json
now acceptsremoving
as a valid value for thestatus
filter.GET /containers/json
now supports filtering containers byhealth
status.DELETE /volumes/(name)
now accepts aforce
query parameter to force removal of volumes that were already removed out of band by the volume driver plugin.POST /containers/create/
andPOST /containers/(name)/update
now validates restart policies.POST /containers/create
now validates IPAMConfig in NetworkingConfig, and returns error for invalid IPv4 and IPv6 addresses (--ip
and--ip6
indocker create/run
).POST /containers/create
now takes aMounts
field inHostConfig
which replacesBinds
,Volumes
, andTmpfs
. note:Binds
,Volumes
, andTmpfs
are still available and can be combined withMounts
.POST /build
now performs a preliminary validation of theDockerfile
before starting the build, and returns an error if the syntax is incorrect. Note that this change is unversioned and applied to all API versions.POST /build
acceptscachefrom
parameter to specify images used for build cache.GET /networks/
endpoint now correctly returns a list of all networks, instead of the default network if a trailing slash is provided, but noname
orid
.DELETE /containers/(name)
endpoint now returns an error ofremoval of container name is already in progress
with status code of 400, when container name is in a state of removal in progress.GET /containers/json
now supports ais-task
filter to filter containers that are tasks (part of a service in swarm mode).POST /containers/create
now takesStopTimeout
field.POST /services/create
andPOST /services/(id or name)/update
now acceptMonitor
andMaxFailureRatio
parameters, which control the response to failures during service updates.POST /services/(id or name)/update
now accepts aForceUpdate
parameter inside theTaskTemplate
, which causes the service to be updated even if there are no changes which would ordinarily trigger an update.POST /services/create
andPOST /services/(id or name)/update
now return aWarnings
array.GET /networks/(name)
now returns fieldCreated
in response to show network created time.POST /containers/(id or name)/exec
now accepts anEnv
field, which holds a list of environment variables to be set in the context of the command execution.GET /volumes
,GET /volumes/(name)
, andPOST /volumes/create
now return theOptions
field which holds the driver specific options to use for when creating the volume.GET /exec/(id)/json
now returnsPid
, which is the system pid for the exec’d process.POST /containers/prune
prunes stopped containers.POST /images/prune
prunes unused images.POST /volumes/prune
prunes unused volumes.POST /networks/prune
prunes unused networks.- Every API response now includes a
Docker-Experimental
header specifying if experimental features are enabled (value can betrue
orfalse
). - Every API response now includes a
API-Version
header specifying the default API version of the server. - The
hostConfig
option now accepts the fieldsCpuRealtimePeriod
andCpuRtRuntime
to allocate cpu runtime to rt tasks whenCONFIG_RT_GROUP_SCHED
is enabled in the kernel. - The
SecurityOptions
field within theGET /info
response now includesuserns
if user namespaces are enabled in the daemon. GET /nodes
andGET /node/(id or name)
now returnAddr
as part of a node’sStatus
, which is the address that that node connects to the manager from.- The
HostConfig
field now includesNanoCPUs
that represents CPU quota in units of 10-9 CPUs. GET /info
now returns more structured information about security options.- The
HostConfig
field now includesCpuCount
that represents the number of CPUs available for execution by the container. Windows daemon only. POST /services/create
andPOST /services/(id or name)/update
now accept theTTY
parameter, which allocate a pseudo-TTY in container.POST /services/create
andPOST /services/(id or name)/update
now accept theDNSConfig
parameter, which specifies DNS related configurations in resolver configuration file (resolv.conf) throughNameservers
,Search
, andOptions
.GET /networks/(id or name)
now includes IP and name of all peers nodes for swarm mode overlay networks.GET /plugins
list plugins.POST /plugins/pull?name=<plugin name>
pulls a plugin.GET /plugins/(plugin name)
inspect a plugin.POST /plugins/(plugin name)/set
configure a plugin.POST /plugins/(plugin name)/enable
enable a plugin.POST /plugins/(plugin name)/disable
disable a plugin.POST /plugins/(plugin name)/push
push a plugin.POST /plugins/create?name=(plugin name)
create a plugin.DELETE /plugins/(plugin name)
delete a plugin.POST /node/(id or name)/update
now accepts bothid
orname
to identify the node to update.GET /images/json
now support areference
filter.GET /secrets
returns information on the secrets.POST /secrets/create
creates a secret.DELETE /secrets/{id}
removes the secretid
.GET /secrets/{id}
returns information on the secretid
.POST /secrets/{id}/update
updates the secretid
.POST /services/(id or name)/update
now accepts service name or prefix of service id as a parameter.POST /containers/create
added 2 built-in log-opts that work on all logging drivers,mode
(blocking
|non-blocking
), andmax-buffer-size
(e.g.2m
) which enables a non-blocking log buffer.POST /containers/create
now takesHostConfig.Init
field to run an init inside the container that forwards signals and reaps processes.
v1.24 API changes
Docker Engine API v1.24 documentation
POST /containers/create
now takesStorageOpt
field.GET /info
now returnsSecurityOptions
field, showing ifapparmor
,seccomp
, orselinux
is supported.GET /info
no longer returns theExecutionDriver
property. This property was no longer used after integration with ContainerD in Docker 1.11.GET /networks
now supports filtering bylabel
anddriver
.GET /containers/json
now supports filtering containers bynetwork
name or id.POST /containers/create
now takesIOMaximumBandwidth
andIOMaximumIOps
fields. Windows daemon only.POST /containers/create
now returns an HTTP 400 “bad parameter” message if no command is specified (instead of an HTTP 500 “server error”)GET /images/search
now takes afilters
query parameter.GET /events
now supports areload
event that is emitted when the daemon configuration is reloaded.GET /events
now supports filtering by daemon name or ID.GET /events
now supports adetach
event that is emitted on detaching from container process.GET /events
now supports anexec_detach
event that is emitted on detaching from exec process.GET /images/json
now supports filterssince
andbefore
.POST /containers/(id or name)/start
no longer accepts aHostConfig
.POST /images/(name)/tag
no longer has aforce
query parameter.GET /images/search
now supports maximum returned search resultslimit
.POST /containers/{name:.*}/copy
is now removed and errors out starting from this API version.- API errors are now returned as JSON instead of plain text.
POST /containers/create
andPOST /containers/(id)/start
allow you to configure kernel parameters (sysctls) for use in the container.POST /containers/<container ID>/exec
andPOST /exec/<exec ID>/start
no longer expects a “Container” field to be present. This property was not used and is no longer sent by the docker client.POST /containers/create/
now validates the hostname (should be a valid RFC 1123 hostname).POST /containers/create/
HostConfig.PidMode
field now acceptscontainer:<name|id>
, to have the container join the PID namespace of an existing container.
v1.23 API changes
Docker Engine API v1.23 documentation
GET /containers/json
returns the state of the container, one ofcreated
,restarting
,running
,paused
,exited
ordead
.GET /containers/json
returns the mount points for the container.GET /networks/(name)
now returns anInternal
field showing whether the network is internal or not.GET /networks/(name)
now returns anEnableIPv6
field showing whether the network has ipv6 enabled or not.POST /containers/(name)/update
now supports updating container’s restart policy.POST /networks/create
now supports enabling ipv6 on the network by setting theEnableIPv6
field (doing this with a label will no longer work).GET /info
now returnsCgroupDriver
field showing what cgroup driver the daemon is using;cgroupfs
orsystemd
.GET /info
now returnsKernelMemory
field, showing if “kernel memory limit” is supported.POST /containers/create
now takesPidsLimit
field, if the kernel is >= 4.3 and the pids cgroup is supported.GET /containers/(id or name)/stats
now returnspids_stats
, if the kernel is >= 4.3 and the pids cgroup is supported.POST /containers/create
now allows you to override usernamespaces remapping and use privileged options for the container.POST /containers/create
now allows specifyingnocopy
for named volumes, which disables automatic copying from the container path to the volume.POST /auth
now returns anIdentityToken
when supported by a registry.POST /containers/create
with bothHostname
andDomainname
fields specified will result in the container’s hostname being set toHostname
, rather thanHostname.Domainname
.GET /volumes
now supports more filters, new added filters arename
anddriver
.GET /containers/(id or name)/logs
now accepts adetails
query parameter to stream the extra attributes that were provided to the containersLogOpts
, such as environment variables and labels, with the logs.POST /images/load
now returns progress information as a JSON stream, and has aquiet
query parameter to suppress progress details.
v1.22 API changes
Docker Engine API v1.22 documentation
POST /container/(name)/update
updates the resources of a container.GET /containers/json
supports filterisolation
on Windows.GET /containers/json
now returns the list of networks of containers.GET /info
Now returnsArchitecture
andOSType
fields, providing information about the host architecture and operating system type that the daemon runs on.GET /networks/(name)
now returns aName
field for each container attached to the network.GET /version
now returns theBuildTime
field in RFC3339Nano format to make it consistent with other date/time values returned by the API.AuthConfig
now supports aregistrytoken
for token based authenticationPOST /containers/create
now has a 4M minimum value limit forHostConfig.KernelMemory
- Pushes initiated with
POST /images/(name)/push
and pulls initiated withPOST /images/create
will be cancelled if the HTTP connection making the API request is closed before the push or pull completes. POST /containers/create
now allows you to set a read/write rate limit for a device (in bytes per second or IO per second).GET /networks
now supports filtering byname
,id
andtype
.POST /containers/create
now allows you to set the static IPv4 and/or IPv6 address for the container.POST /networks/(id)/connect
now allows you to set the static IPv4 and/or IPv6 address for the container.GET /info
now includes the number of containers running, stopped, and paused.POST /networks/create
now supports restricting external access to the network by setting theInternal
field.POST /networks/(id)/disconnect
now includes aForce
option to forcefully disconnect a container from networkGET /containers/(id)/json
now returns theNetworkID
of containers.POST /networks/create
Now supports an options field in the IPAM config that provides options for custom IPAM plugins.GET /networks/{network-id}
Now returns IPAM config options for custom IPAM plugins if any are available.GET /networks/<network-id>
now returns subnets info for user-defined networks.GET /info
can now return aSystemStatus
field useful for returning additional information about applications that are built on top of engine.
v1.21 API changes
Docker Engine API v1.21 documentation
GET /volumes
lists volumes from all volume drivers.POST /volumes/create
to create a volume.GET /volumes/(name)
get low-level information about a volume.DELETE /volumes/(name)
remove a volume with the specified name.VolumeDriver
was moved fromconfig
toHostConfig
to make the configuration portable.GET /images/(name)/json
now returns information about an image’sRepoTags
andRepoDigests
.- The
config
option now accepts the fieldStopSignal
, which specifies the signal to use to kill a container. GET /containers/(id)/stats
will return networking information respectively for each interface.- The
HostConfig
option now includes theDnsOptions
field to configure the container’s DNS options. POST /build
now optionally takes a serialized map of build-time variables.GET /events
now includes atimenano
field, in addition to the existingtime
field.GET /events
now supports filtering by image and container labels.GET /info
now lists engine version information and return the information ofCPUShares
andCpuset
.GET /containers/json
will returnImageID
of the image used by container.POST /exec/(name)/start
will now return an HTTP 409 when the container is either stopped or paused.POST /containers/create
now takesKernelMemory
in HostConfig to specify kernel memory limit.GET /containers/(name)/json
now accepts asize
parameter. Setting this parameter to ‘1’ returns container size information in theSizeRw
andSizeRootFs
fields.GET /containers/(name)/json
now returns aNetworkSettings.Networks
field, detailing network settings per network. This field deprecates theNetworkSettings.Gateway
,NetworkSettings.IPAddress
,NetworkSettings.IPPrefixLen
, andNetworkSettings.MacAddress
fields, which are still returned for backward-compatibility, but will be removed in a future version.GET /exec/(id)/json
now returns aNetworkSettings.Networks
field, detailing networksettings per network. This field deprecates theNetworkSettings.Gateway
,NetworkSettings.IPAddress
,NetworkSettings.IPPrefixLen
, andNetworkSettings.MacAddress
fields, which are still returned for backward-compatibility, but will be removed in a future version.- The
HostConfig
option now includes theOomScoreAdj
field for adjusting the badness heuristic. This heuristic selects which processes the OOM killer kills under out-of-memory conditions.
v1.20 API changes
Docker Engine API v1.20 documentation
GET /containers/(id)/archive
get an archive of filesystem content from a container.PUT /containers/(id)/archive
upload an archive of content to be extracted to an existing directory inside a container’s filesystem.POST /containers/(id)/copy
is deprecated in favor of the abovearchive
endpoint which can be used to download files and directories from a container.- The
hostConfig
option now accepts the fieldGroupAdd
, which specifies a list of additional groups that the container process will run as.
v1.19 API changes
Docker Engine API v1.19 documentation
- When the daemon detects a version mismatch with the client, usually when the client is newer than the daemon, an HTTP 400 is now returned instead of a 404.
GET /containers/(id)/stats
now acceptsstream
bool to get only one set of stats and disconnect.GET /containers/(id)/logs
now accepts asince
timestamp parameter.GET /info
The fieldsDebug
,IPv4Forwarding
,MemoryLimit
, andSwapLimit
are now returned as boolean instead of as an int. In addition, the end point now returns the new boolean fieldsCpuCfsPeriod
,CpuCfsQuota
, andOomKillDisable
.- The
hostConfig
option now accepts the fieldsCpuPeriod
andCpuQuota
POST /build
acceptscpuperiod
andcpuquota
options
v1.18 API changes
Docker Engine API v1.18 documentation
GET /version
now returnsOs
,Arch
andKernelVersion
.POST /containers/create
andPOST /containers/(id)/start
allow you to set ulimit settings for use in the container.GET /info
now returnsSystemTime
,HttpProxy
,HttpsProxy
andNoProxy
.GET /images/json
added aRepoDigests
field to include image digest information.POST /build
can now set resource constraints for all containers created for the build.CgroupParent
can be passed in the host config to setup container cgroups under a specific cgroup.POST /build
closing the HTTP request cancels the buildPOST /containers/(id)/exec
includesWarnings
field to response.


about total management?
Total Management is a free, tabeless, W3X-compliant web design layout by Template World. This template has been tested and proven compatible with all major browser environments and operating systems. You are free to modify the design to suit your testes in any way you like.
We only ask you to not remove "Design by Template World" and the link http://www.templateworld.com from the footer of the template.
If you are interested in seeing more of our free web template designs feel free to visit our website, Template World. We intend to add at least 25 new free templates in the coming month.


Manual: performance
Lever needs to perform to occupy a niche of VR programming. Failure to perform fast is a failure of the language.
Table of contents ↑01. Benchmarks
The benchmarks directory in lever is still a bit of a stub when I am updating this text. So far I've checked the JIT performance against a nbody simulation.
In the samples directory there are already programs that are clearly no longer usable without a working JIT. I can no longer expect to run some of them without JIT enabled.
02. Current performance
There's a rudimentary way to compare performance of CPython and Lever. Python runs a bootstrap compiler and Lever has the same compiler as a library to allow it to run standalone.
Lever is extremely heavy at how it compiles because it uses customizable grammar with a parsing engine. It allows fast, lisp-like experimentation with syntax.
We can trigger python compiler by touching a file we want to benchmark with, then run the compile-lib command.
cheery@ruttunen:~/Documents/lever$ touch lib/c.lc cheery@ruttunen:~/Documents/lever$ time python setup.py compile-lib Compiling libraries for lever real 0m1.603s user 0m1.540s sys 0m0.028s cheery@ruttunen:~/Documents/lever$
Next I wrote a small program that triggers a lever compiler to run on the same file.
import binon, compiler source = dir ++ "lib/c.lc" code = compiler.read_file(source, "lib/c.lc") binon.write_file(dir ++ "out.lc.cb", code)
The results propose that Lever is 4 times slower than python at compiling itself. But it is likely safe to say you could get worse results here.
cheery@ruttunen:~/Documents/lever$ time lever test.lc real 0m7.109s user 0m6.808s sys 0m0.288s cheery@ruttunen:~/Documents/lever$
This indicates rather similar results as in early tests. Worst-case performance of RPython-written language that resembles Python seem to be on the scale of 2 to 20 times slower.
03. Future performance
PyPy has used RPython to provide a language that is faster than Python on many occassions. With a new language there's not the restriction that we would have to fixate on some implementation detail. This likely allows us to provide better results than with PyPy.
We concentrate on narrow scope of software that we want to make fast. Precisely desktop and graphically intensive software. That should help too.
There are also some cases like the vector arithmetic support in runtime that can really turn tables in interesting scenarios into Lever's favor.
04. When it is not enough...
Even if we got near to C speeds with Lever runtime some day, there is still the "not as fast as C" -barrier in using dynamic languages to graphics programming. No matter how it good it looked, it's just not enough when you got to crunch it all the way down.
I see that the problem is not the performance of the language at this point. It's how well and how gradually can you lower out of it? Of course we could prototype everything in Python if it was easy to transition the performance critical code to the form where it performs. There would be huge development gains to get things into place in easy language and walk down from that in steps, rather than having to do a big jump when you get the design right.
For this reason I've picked some features that make Lever easier to translate. When I'll get things far enough for it to be useful, I'll replicate some of RPython's translation framework on Lever and repurpose it to apply on graphics.
There's no plans to get it to replace PyPy though. They are doing lots of good things and I don't see a reason to replicate the greater work they do with the JIT generation along translation. They are doing whole host of things I don't have to do myself at this point.
It's nice to have a small, sub 10kloc runtime you can hack away with.
05. Platform performance considerations
There's chance that WebAssembly succeeds to provide a generic language target. This might happen somewhere between 2 to 6 years.
It will be very likely feasible to take this into account and have Lever translate to WebAssembly. It requires that they come up with their GC-integration and call/cc -support.
There's very, very long run to this. But it would allow both the translation framework and Lever itself use WebAssembly as a target language. That would be sort of nice.
06. Background on performance.text
I made this text when someone mentioned Lever should perform at the Phoronix.com -article comments.
I realised I should probably mention my plans to get Lever to perform somewhere.


Before Change
self._graph_ops["val_accuracy"] = tf.reduce_mean(tf.cast(val_correct_predictions, tf.float32))
// Epoch summaries for Tensorboard
self._graph_tensorboard_summary(l2_cost, gradients, variables, global_grad_norm)
def _training_batch_results(self, batch_num, start_time, tqdm_range, train_writer):
elapsed = time.time() - start_time
After Change
self._graph_ops["val_accuracy"] = tf.reduce_mean(tf.cast(val_correct_predictions, tf.float32))
// Epoch summaries for Tensorboard
if self._tb_dir is not None:
self._graph_tensorboard_summary(l2_cost, gradients, variables, global_grad_norm)
def _training_batch_results(self, batch_num, start_time, tqdm_range, train_writer=None):
elapsed = time.time() - start_time
if self._tb_dir is not None:


| Finite
Geometry Notes
|
1. Background
2. Other related web pages
3. Related philosophical remarks
Background:
For non-mathematicians...
See some selected quotations on Hesse's Glass Bead Game, and the way it combines music and mathematics. Then see the combination of music and mathematics in Timothy A. Smith's Shockwave movie (or his pdf essay) combining patterns like those above with an analysis of a Bach fugue.
For mathematicians...
Kaleidoscopes are, of course, intimately related to reflection groups. For the connection to the geometry of the above patterns, see The Diamond Theorem. Switching two rows, columns, or quadrants in the "kaleidoscope" above is equivalent to performing an affine reflection (an automorphism of an affine space fixing a hyperplane pointwise) in a 16-point finite geometry. For some context, see Reflection Groups in Finite Geometry.
Other related web pages
|
Clifford Geertz on Levi-Strauss, from The Cerebral Savage: "Savage logic works like a kaleidoscope whose chips can fall into a variety of patterns.... The patterns consist in the disposition of the chips vis-a-vis one another (that is, they are a function of the relationships among the chips rather than their individual properties considered separately). And their range of possible transformations is strictly determined by the construction of the kaleidoscope, the inner law which governs its operation.... ... Levi-Strauss generalizes this permutational view of thinking to savage thought in general. It is all a matter of shuffling discrete (and concrete) images... ... And the point is general. The relationship between a symbolic structure and its referent, the basis of its meaning, is fundamentally 'logical,' a coincidence of form-- not affective, not historical, not functional. Savage thought is frozen reason and anthropology is, like music and mathematics, 'one of the few true vocations.' Or like linguistics." Edward Sapir on Linguistics, Mathematics, and Music: "...
linguistics has also that profoundly serene and satisfying quality
which inheres in mathematics and in music and which may be described as
the creation out of simple elements of a self-contained universe of
forms. Linguistics has neither the sweep nor the instrumental
power of mathematics, nor has it the universal aesthetic appeal of
music. But under its crabbed, technical, appearance there lies
hidden the same classical spirit, the same freedom in restraint, which
animates mathematics and music at their purest." -Edward
Sapir, "The Grammarian and his Language," Robert de Marrais on Levi-Strauss and Derrida, from "Catastrophes, Kaleidoscopes, String Quartets: Deploying the Glass Bead Game," Part II: "...underwriting the form languages of ever more domains of mathematics is a set of deep patterns which not only offer access to a kind of ideality that Plato claimed to see the universe as created with in the Timaeus; more than this, the realm of Platonic forms is itself subsumed in this new set of design elements-- and their most general instances are not the regular solids, but crystallographic reflection groups.  * (In the next exciting episode, we'll see how Derrida claims mathematics is the key to freeing us from 'logocentrism'-- then ask him why, then, he jettisoned the deepest structures of mathematical patterning just to make his name...) * H. S. M. Coxeter, Regular Polytopes (New York: Dover, 1973) is the great classic text by a great creative force in this beautiful area of geometry (A polytope is an n-dimensional analog of a polygon or polyhedron. Chapter V of this book is entitled 'The Kaleidoscope'....)" De Marrais attacks Derrida for ignoring the "kaleidoscope" metaphor of Levi-Strauss. Here is a quotation from Derrida himself: "The time for reflection is also the chance for turning back on the very conditions of reflection, in all the senses of that word, as if with the help of an optical device one could finally see sight, could not only view the natural landscape, the city, the bridge and the abyss, but could view viewing. (1983:19) -- Derrida, J. (1983) 'The Principle of Reason: The University in the Eyes of its Pupils,' Diacritics 13.3: 3-20." The above quotation comes from Simon Wortham, who thinks the "optical device" of Derrida is a mirror. The same quotation appears in Desiring Dualisms at thispublicaddress.com, where the "optical device" is interpreted as a kaleidoscope. Derrida's "optical device" may be compared with Joyce's "collideorscape." For a different connection with Derrida, see The 'Collideorscape' as Differance. From Noel Gray, The Kaleidoscope: Shake, Rattle, and Roll: "... what we will be considering is how the ongoing production of meaning can generate a tremor in the stability of the initial theoretical frame of this instrument; a frame informed by geometry's long tradition of privileging the conceptual ground over and above its visual manifestation. And to consider also how the possibility of a seemingly unproblematic correspondence between the ground and its extrapolation, between geometric theory and its applied images, is intimately dependent upon the control of the truth status ascribed to the image by the generative theory. This status in traditional geometry has been consistently understood as that of the graphic ancilla-- a maieutic force, in the Socratic sense of that term-- an ancilla to lawful principles; principles that have, traditionally speaking, their primary expression in the purity of geometric idealities.* It follows that the possibility of installing a tremor in this tradition by understanding the kaleidoscope's images as announcing more than the mere subordination to geometry's theory-- yet an announcement that is still in a sense able to leave in place this self-same tradition-- such a possibility must duly excite our attention and interest. * I refer here to Plato's utilisation in the Meno of graphic austerity as the tool to bring to the surface, literally and figuratively, the inherent presence of geometry in the mind of the slave." See also Noel Gray, Ph.D. thesis, U. of Sydney, Dept. of Art History and Theory, 1994: "The Image of Geometry: Persistence qua Austerity-- Cacography and The Truth to Space." |
Page created August 9, 2005. Last modified August 23, 2010.


Talk with with alumni or people looking to enroll in a bootcamp. Share your experiences and provide feedback.
Connect with employers and recruiters as well as mentors and novices alike. Grow your network and get your name out.
View all kinds of data about a school, such as average salary upon graduation, overall rating, and employment rate.


Jonas Moll, Dave Müller, Martin Baeré Pedersen
Talk about stimulating the creativity of users, and allowing them to challenge designers, through 'design games'. They mostly point to other papers which discuss the concrete projects they did. Mostly this paper is about Wittgenstein and 'language games' and the parallel in terms of forms of life/practice and difficulty of 'translation where design workshops containing both designers and users.
"The view that genuine user participation can be accomplished as a quick-and-dirty method, often leads to the participants being used merely as informants. Thereby the potential for innovation and creativity of the users [8], and their potential to challenge the assumptions and design ideas, stays untapped."
"On one hand we have the language-game of the designers, involving
concepts from the field
of design. On the other hand we have the language-game of the users and
stakeholders which is grounded in their work-practice and involving
concepts from their work domain. The question of communication between
these two distinct practices is not a trivial one. Therefore organizing a
way for designers and users to develop a common language becomes
paramount for a successful design process." [discussing Ehn "Work
oriented design of computer artefacts"]
"it is important to attend to how these games are designed by making the tacit knowledge in the process explicit, as addressed by Friis when discussing design processes in general"
Language Games


Please make sure that your browser supports HTML5
fps:
HQ Preset
Default Preset
Light Preset
Zoomed Preset
Lights
Animation
Rotation
Detail:
Depth:
Power:
Field of View:


 We've seen it in big-name titles like Fortnite and Rocket League, and as of next month, the indie fighting game Fantasy Strike will include full cross-play support.
While cross-play was already in the game, it was limited due to Sony's restrictions. That's now changed:
Sony has finally allowed us to convert to full crossplay amongst all our platforms, which we will deploy next month.
Previously, the Switch and PlayStation versions of the game could only communicate with the Steam release. Now, though, you'll be able to take on any player on any platform in casual and ranked play.
There'll also be the option to directly challenge other players in 1v1 and 3v3 team battles, without needing to know which platform they are on. To do this, you add the player's FantasyTag to your in-game friends list, allowing you to then challenge or spectate them.
Indie developer Sirlin Games said this update would make queue times even quicker:
As an indie fighting game dev, crossplay means the world to us. More so than many other genres, a fighting game needs a united player base in order to achieve fast queue times, fair matches, and the highest level of competition. Our queue times have already been good, with an average wait of less than 90 seconds across all hours of the week. With full crossplay, it will be even faster.
In celebration of the cross-play launch next month (which is not yet dated), there'll be an online tournament taking place across all platforms. For more updates about the game, check out the official Discord and Twitter channel.
You can also read our review, where we gave the game eight out of ten stars.
Will you be trying out full cross-play support in Fantasy Strike next month? Tell us below.
[via fantasystrike.com]


My Patients
All Patients
You are currently in {{securityService.getActiveWard().WardName}} ward. To change, you can always click here.
Active Ward :
{{securityService.getActiveWard().WardName}}
Ward Request of {{globalPatient.ShortName}}
X
Vitals of {{globalPatient.ShortName}}
X
Receive Notes of {{globalPatient.ShortName}}
X


FROM THE DESK OF MR.PATRICK JOMBO.
 (TWENTY
FIVE MILLON SEVEN HUNDRED THOUSAND US DOLLARS).
MEANWHILE ALL THE WHOLE ARRANGEMENT TO PUT CLAIM OVER THIS FUND AS
THE BONAFIDE NEXT OF KIN TO THE DECEASED, GET THE REQUIRED APPROVAL
AND TRANSFER THIS MONEY TO A FOREIGN ACCOUNT HAS BEEN PUT IN PLACE.

I AM URGENTLY WAITING FOR YOUR REPLY.
THANKS AND BE BLESSED
YOUR'S FAITHFULLY,
MR.PATRICK JOMBO
Discover the new Windows Vista Learn more!


Hi, my name is Waldemar Quevedo (though most people call me Wally)
Originally from Guadalajara, Mexico
B.A in Computer Science from the Monterey Institute of Technology and Higher Education.
Emacsen, Org mode user, ex-GSoC, HackerSchool alumn
Moved to Tokyo in 2010 to join Rakuten during its initial stages of globalization.
Helped launch the platform as a service from Rakuten in 2012 using Cloudfoundry. Developed its logging infrastructure.
Interested in distributed systems, literate programming, and GIS technologies.
Maintainer of the org-ruby gem being used at Github,
(in case you find some functionality missing please issue a ticket here
please)
Currently at NYC doing HackerSchool
You can find me at:


Dublin Bus (Irish: Bus Átha Cliath) is a bus operator providing services in Dublin. It is a subsidiary of Córas Iompair Éireann. The company carried 139.4 million passengers in 2017.Dublin Bus operates an extensive network of 110 radial, cross-city and peripheral routes and 18 night routes in the city of Dublin and the Greater Dublin Area. The company carries around 325,000 people each day.The main radial routes are focused upon Dublin's sixteen Quality Bus Corridors which provide buses with daytime access to the city centre. As of May 2018, the fleet consisted of 1016 buses plying over 110 Routes.Dublin Bus operates seven depots in Clontarf, Conyngham Road, Donnybrook, Harristown, Phibsborough, Ringsend and Summerhill.Dublin bus also has 2 sub depots in bray and in Skerries. There are more than 3000+ Bus Stops in Greater Dublin Area with Real Time Passenger information. Official Website of DublinBus SORRY ! RAN OUT OF AWS CREDITS. PLEASE TRY THE DUBLIN BIKES VISUALIZATION


Equal to, an elementwise comparison of two arrays. More...
Functions | |
| AFAPI af_err | af_eq (af_array *out, const af_array lhs, const af_array rhs, const bool batch) |
| C Interface to check if corresponding elements of two arrays are equal. | |
| AFAPI array | operator== (const array &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const bool &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const int &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const unsigned &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const char &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const unsigned char &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const long &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const unsigned long &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const long long &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const unsigned long long &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const double &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const float &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const cfloat &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const cdouble &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const bool &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const int &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const unsigned &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const char &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const unsigned char &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const long &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const unsigned long &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const long long &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const unsigned long long &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const double &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const float &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const cfloat &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const cdouble &rhs) |
| AFAPI array | operator== (const short &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const unsigned short &lhs, const array &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const short &rhs) |
| Performs an equality operation on two arrays or an array and a value. | |
| AFAPI array | operator== (const array &lhs, const unsigned short &rhs) |
Equal to, an elementwise comparison of two arrays.
Check if the elements of one array are equal to those of another array.
C Interface to check if corresponding elements of two arrays are equal.
| [out] | out | result of lhs == rhs ; type is b8 |
| [in] | lhs | first input |
| [in] | rhs | second input |
| [in] | batch | specifies if operations need to be performed in batch mode |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |
Performs an equality operation on two arrays or an array and a value.
| [in] | lhs | the left hand side value of the operand |
| [in] | rhs | the right hand side value of the operand |


Agenda
New meetings
Mailbox
New messages
Common tasks
New grupal messages
New common tasks
Notices
New notices


{% extends "layout.html" %} {% block page_title %} Question page {% endblock %} {% block content %} {% include "includes/consent.html" %} Try a different way to prove my identity {% endblock %}


+++ title = "QueenBee" linkTitle = "QueenBee" +++ {{< blocks/cover title="BeeFog 雾计算引擎" image_anchor="top" height="full" color="orange" >}}
{{< /blocks/cover >}} {{% blocks/lead color="primary" %}} Docsy is a theme for the Hugo static site generator that's specifically designed for technical documentation sets. Our aim is to help you get a working documentation site up and running as easily as possible, so you can concentrate on creating great content for your users. {{% /blocks/lead %}} {{< blocks/section color="dark" type="features">}} {{% blocks/feature icon="fa-lightbulb" title="特性概览" url="/zh/docs/1-overview/" %}} As well as our example site, there's a growing number of projects using Docsy for their doc sites. {{% /blocks/feature %}} {{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/masschaos/queenbee" %}} We do a [Pull Request](https://github.com/google/docsy/pulls) contributions workflow on **GitHub**. New users are always welcome! {{% /blocks/feature %}} {{% blocks/feature icon="fab fa-weixin" title="加入开发者群" url="#" %}} 国内开发者可以在微信群中讨论. {{% /blocks/feature %}} {{< /blocks/section >}}


Normally our programs flow line-by-line, in which the commands flows from the first line and goes downwards (known as being Sequential). The first lines runs first, then the second line, then the third line, etc. Branching is when we manipulate this flow in a different way. For example when we call a function it goes to the function and back to the normal flow of the program. In this section we will go over several different ways to branch: loops, if/else statements, and conditions.
Conditions are expressions that will come out as either true or false. This comes from comparing two items which will turn out as either true or false. Remember that the assignment operator is "a = b"(a is b), to compare two items we use either "a == b"(does a equal b?). Or we can use "a === b"(is a strictly equal to b?). Here is a list of comparison operators:
var x = 3; var y = 2; alert(x==y); // --> false; alert(x != y); // != means NOT EQUALS --> true alert(x > y); // --> true; alert(x < y); // --> false; var y = "3"; alert(x===y); // num(3) == str("3") --> false; alert(x==y) // num(3) == [num(3)] --> true;
The most basic branch is the IF STATEMENT. Which will run a code if the statement is true, otherwise will not run the code if the statement is false. The code that the IF statement executes is between two brackets. Here is an outline:
if( condition ){ // <-- Start IF // Code that runs if condition is true. } // <-- End IF.
Here is some example code:
var x = 5; if(x == 5){ alert("x is 5"); // x is 5 => true. So the alert statement will run. }
Here is an example of a if statement that does not run.
var x = 10; if(x < 10){ alert("x is less than 10"); // (10 < 10) => false. So the alert statement will not run. } alert("End");
A add-on to the if statement is an IF-ELSE Statement. It will run the code in the if statement when the condition is true, otherwise if the condition is false it will run the code in the else statement:
if( condition ){ //Code to run on condition is true } else { //Code to run on condition is false }
And here is some example code:
function checkEvenOdd(num){ if(num%2 == 0){ // Remember '%' means Modulus (division remainder). alert(num+" is even"); // If num%2 is 0 it means the number is even. } else { alert(num+" is odd"); } } checkEvenOdd(7); // 7 is odd checkEvenOdd(12); // 12 is even
Finnally we have the IF-ELSE IF-ELSE statement. You can think of it as a stack of if statements with an else at the bottom. Checking through a list of conditions and running unique code based on which condition we have met. Note that the else if part can be repeated, here is an outline:
if( condition1 ){ // Code for condition1 is true } else if( condition2 ){ // Code for condition2 is true, if condition 1 was false. } else { // If all the conditions were false run this. }
And here is some example code (Note : This uses a Object to get the current time in hours)
var time = new Date().getHours(); // time is the current hour of the day from( 0 to 23) if(time < 12){ alert("Good morning!"); // From mid-night to 11AM. } else if(time <= 16){ alert("Good afternoon!"); // From noon to 4PM } else if(time <= 20){ alert("Good evening!"); // From 5PM to 8PM } else { alert("Good night!"); // From 9PM to 11PM }
Another branch structure that has very similar functionality as the if-else if-else stucture is the Switch-Case structure. Here is an outline and it will be explained below:
switch( variable ) { case 1: // Execute block if (variable === 1) break; case 2: // Execute block if (variable === 2) break; default: // Execute code if all cases fail }
Switch-Case uses a variable to compare to and checks the strict equality of that variable to each case. In this case if the variable is 1 then the first block will execute. The default is like the else in the if-type structures, such that if all cases are false then default will run. break is to exit some block of code early. It is used in this case so it does not run into other cases (since code is naturally sequential) .
For a better understanding lets put a if-else if-else structure next to a switch-case that do the same thing:
switch( x ) { case "one": alert("x is one"); break; case "two": alert("x is two"); break; default: alert("x is not one or two."); }
if(x === "one") { alert("x is one"); } else if(x === "two") { alert("x is two"); } else { alert("x is not one or two"); }
In programing loops are blocks of code that repeat. Arrays almost always use loops to go through them, for example lets say we have an array:
// How would we go through this? var myArray = ["one","two","three","four","five"];
We could always write and output it line-by-line, but that would be cumbersom, definitely for large arrays.
output( myArray[0] ); output( myArray[1] ); output( myArray[2] ); output( myArray[3] ); output( myArray[4] );
The first loop we will talk about is the FOR loop:
for( init ; condition ; step ){ // Code Block. }
A for loop goes through init and checks condition, at the end of the loop it goes through step, and then condition again. If condition is true go through the loop again. The solution to the problem above would be using a for loop:
for(var i=0; i<myArray.length; i++){ output( myArray[i] ); }
A simpler to write and read loop exclusively for going through arrays or objects is the for-in loop:
for( item in myArray ){ output( myArray[item] ); }
This gives the same output as the normal for loop above.
You can also place a for loop inside of a for loop, this is known as a nested for loop. For example let's say we have a 2D array(an array within an array), known as a matrix in mathmatics. We would use nested for loops to get every element:
var myTable = [ [1,2,3], [4,5,6], [7,8,9] ]; for( item in myTable){ for( subItem in myTable ){ output( myArray[item][subItem] ); } }
Another common loop is the while loop, in which will repeat some block of code as long as some condition is true:
while( condition ){ //Block of code that runs while condition is true. }
So for example we could do something similar to a for loop using the while loop
var list = [1,2,3,4,5]; var i = 0; while(i < list.length){ output(list[i]); i++; }
As you can see we are doing exactly what we do in a for loop but more manually. The while loop is often used when we don't know how many times the loop will repeat, while the for loop is used when we know exactly how many times the loop will repeat.
A infinite loop is a loop that never stops. And is when the condition in a loop is never false, you will mostly want to avoid infinite loops as much as possible. Here are two examples of infinite loops mistakes:
var list = [1,2,3,4]; for(var i = 1; i!=4; i+=2){ output(list[i]); }
The first problem we notice is (i!=4), notice i will be: 1,3,5,7,9,... So it will always not be 4, this causes our infinite loop. It's much safter to use less-than or greater-than.
while(true){ alert("hello"); }
In this case the condition will always be true, unless we break out of the loop within the block of code inside the loop it will be an infinite loop. Although it does not mean it will always be an infite loop, we could use a break statement, for example:
var num = 0; while(true){ num += 2; if(num>=12){ break; } output( num ); }