hexsha
stringlengths 40
40
| size
int64 5
1.04M
| ext
stringclasses 6
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 3
344
| max_stars_repo_name
stringlengths 5
125
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
sequencelengths 1
11
| max_stars_count
int64 1
368k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
344
| max_issues_repo_name
stringlengths 5
125
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
sequencelengths 1
11
| max_issues_count
int64 1
116k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
344
| max_forks_repo_name
stringlengths 5
125
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
sequencelengths 1
11
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
1.04M
| avg_line_length
float64 1.14
851k
| max_line_length
int64 1
1.03M
| alphanum_fraction
float64 0
1
| lid
stringclasses 191
values | lid_prob
float64 0.01
1
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4dc8ff268711d24b5b34c580a23f61fb5201ed7 | 360 | md | Markdown | _definitions/bld-fieri-facias.md | digitallawyer/openlegaldictionary | a318d6c73c3d8e33756d947add397dac7f25cca2 | [
"MIT"
] | 5 | 2018-08-07T21:57:01.000Z | 2022-02-26T13:29:20.000Z | _definitions/bld-fieri-facias.md | digitallawyer/openlegaldictionary | a318d6c73c3d8e33756d947add397dac7f25cca2 | [
"MIT"
] | 1 | 2018-08-07T22:29:07.000Z | 2018-08-07T22:45:46.000Z | _definitions/bld-fieri-facias.md | digitallawyer/openlegaldictionary | a318d6c73c3d8e33756d947add397dac7f25cca2 | [
"MIT"
] | 2 | 2020-12-26T17:22:04.000Z | 2021-02-12T21:35:50.000Z | ---
title: Fieri Facias
letter: F
permalink: "/definitions/bld-fieri-facias.html"
body: "(That you cause.to be made.) in practice. A writ of execution commanding the
sheriff to levy and make the amount of a Judgment from the goods and chattels of
the judgment debtor"
published_at: '2018-07-07'
source: Black's Law Dictionary 2nd Ed (1910)
layout: post
--- | 32.727273 | 83 | 0.75 | eng_Latn | 0.980535 |
f4dd251d9f370dc2e7d5920b6f366cc183539cd1 | 2,202 | md | Markdown | ANDROID.md | nahtethan/dxg-display | 353d8c623042c2de78112d829c26a77378bc8e30 | [
"MIT"
] | 90 | 2015-08-31T22:25:37.000Z | 2022-03-25T10:09:35.000Z | ANDROID.md | nahtethan/dxg-display | 353d8c623042c2de78112d829c26a77378bc8e30 | [
"MIT"
] | 1 | 2017-07-29T14:53:42.000Z | 2017-08-15T03:42:49.000Z | ANDROID.md | nahtethan/dxg-display | 353d8c623042c2de78112d829c26a77378bc8e30 | [
"MIT"
] | 18 | 2016-03-21T07:11:56.000Z | 2020-05-27T12:10:04.000Z | ## 安卓手机投屏到电纸书的软件 ##
| 各种同屏组合 | All supported devices |
| ------------ | --------------------- |
| [Windows投屏Kindle dx/g][DXG] | [Mirror Windows to Kobo aura one][KOBOen] |
| [Windows投屏安卓电纸书][BOOX] | [Mirror Windows to Android os E-readers with wifi][BOOXen] |
| [安卓投屏安卓(Android to Android)][ANDROID] | [Mirror Mac to Android os E-readers][BOOX-mac] |
## 安装步骤,咨询请加电子墨水显示软件QQ群:326606690 ##
1. 这个软件支持安卓手机,暂时不支持苹果手机。
2. 手机和电纸书连接同一个无线网络。
3. 检查电纸书上有没有安装TwoDG2,没有的话安装安卓软件[TwoDG2.apk][TwoDG2_apk]。
4. 电纸书打开刚才安装的TwoDG2,屏幕方向(Screen orientation)选择“Portrait”,e-reader's IP will be displayed:
![][wifi_jpg]
5. 手机安装安卓软件[Floating.apk][Floating_apk]。
6. 手机打开刚才安装的Floating,输入步骤4显示的电纸书无线网络地址(IP)。
7. 点击开始按钮,电纸书将镜像手机上的内容。(注意:上面下载的apk是试用版,电纸书只显示一半,[正式版点我][taobao])
8. 效果(Max支持分辨率:1600x1200,1376x1032,1200x900,1024x768,800x600):
![][max_jpg]
[DXG]: https://github.com/nahtethan/dxg-display/blob/master/DXG.md
[BOOX]: https://github.com/nahtethan/dxg-display/blob/master/BOOX.md
[BOOXen]: https://github.com/nahtethan/dxg-display/blob/master/BOOXen.md
[ANDROID]: https://github.com/nahtethan/dxg-display/blob/master/ANDROID.md
[KOBOen]: https://github.com/nahtethan/dxg-display/blob/master/e-reader/KOBOen.md
[BOOX-cmd]: https://github.com/nahtethan/dxg-display/blob/master/e-reader/BOOX-cmd.md
[BOOX-mac]: https://github.com/nahtethan/dxg-display/blob/master/e-reader/BOOX-mac.md
[max_jpg]: https://github.com/nahtethan/dxg-display/blob/master/99-pictures/max.jpg
[wifi_jpg]: https://github.com/nahtethan/dxg-display/blob/master/99-pictures/wifi.jpg
[mirror_jpg]: https://github.com/nahtethan/dxg-display/blob/master/99-pictures/mirror.jpg
[storage_jpg]: https://github.com/nahtethan/dxg-display/blob/master/99-pictures/storage.jpg
[eMonitor_jpg]: https://github.com/nahtethan/dxg-display/blob/master/99-pictures/eMonitor.jpg
[mirror_zip]: https://raw.githubusercontent.com/nahtethan/dxg-display/master/00-binary/mirror.zip
[TwoDG2_apk]: https://raw.githubusercontent.com/nahtethan/dxg-display/master/00-binary/TwoDG2.apk
[Floating_apk]: https://raw.githubusercontent.com/nahtethan/dxg-display/master/00-binary/Floating.apk
[qd]: http://qd.160.com/
[taobao]: https://item.taobao.com/item.htm?id=520024244524
| 57.947368 | 101 | 0.756585 | yue_Hant | 0.512841 |
f4ddabf30d1e3538a6a2e46b96516e450c7be213 | 27 | md | Markdown | README.md | pletbjerg/pletbjerg.github.io | 0c96fbcc59710a753a401999adcc701036d17888 | [
"BSD-3-Clause"
] | null | null | null | README.md | pletbjerg/pletbjerg.github.io | 0c96fbcc59710a753a401999adcc701036d17888 | [
"BSD-3-Clause"
] | null | null | null | README.md | pletbjerg/pletbjerg.github.io | 0c96fbcc59710a753a401999adcc701036d17888 | [
"BSD-3-Clause"
] | null | null | null | # pletbjerg.github.io
test
| 9 | 21 | 0.777778 | dan_Latn | 0.661117 |
f4dde38321b00d97a62f9a88cce3d017667ca8bc | 141 | md | Markdown | 404.md | majjoha/majjoha.github.io | 9ca438b59903eedb350c2ae0aa5c884da45e909d | [
"CC-BY-4.0"
] | null | null | null | 404.md | majjoha/majjoha.github.io | 9ca438b59903eedb350c2ae0aa5c884da45e909d | [
"CC-BY-4.0"
] | 1 | 2020-03-03T09:54:46.000Z | 2020-03-03T09:54:46.000Z | 404.md | majjoha/majjoha.github.io | 9ca438b59903eedb350c2ae0aa5c884da45e909d | [
"CC-BY-4.0"
] | null | null | null | ---
layout: post
title: "Page not found"
permalink: /404.html
sitemap: false
---
This page could not be found. Return to [home](/) instead.
| 15.666667 | 58 | 0.687943 | eng_Latn | 0.982826 |
f4de102ad22867a337b919f2d8e69db771630cf1 | 2,469 | md | Markdown | docs/framework/wpf/graphics-multimedia/key-frame-animation-how-to-topics.md | jame2408/docs.zh-tw | 045d84c86858b037f8b10ff274068863e68e5686 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/wpf/graphics-multimedia/key-frame-animation-how-to-topics.md | jame2408/docs.zh-tw | 045d84c86858b037f8b10ff274068863e68e5686 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/wpf/graphics-multimedia/key-frame-animation-how-to-topics.md | jame2408/docs.zh-tw | 045d84c86858b037f8b10ff274068863e68e5686 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: 主要畫面格動畫 HOW TO 主題
ms.date: 03/30/2017
f1_keywords:
- AutoGeneratedOrientationPage
helpviewer_keywords:
- animation [WPF], key-frame
- key frames [WPF], how-to topics
ms.assetid: a5f9ab1a-d14c-4816-8540-3c5b8c8143d5
ms.openlocfilehash: 4efd6ea1ee5987efcabb038152fca7f1ed90c8f5
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.translationtype: MT
ms.contentlocale: zh-TW
ms.lasthandoff: 05/04/2018
ms.locfileid: "33561959"
---
# <a name="key-frame-animation-how-to-topics"></a>主要畫面格動畫 HOW TO 主題
本節中的主題將示範如何使用超過兩個屬性值和控制項插補的動畫主要畫面格動畫。
## <a name="in-this-section"></a>本節內容
[使用主要畫面格建立物件的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-an-object-by-using-key-frames.md)
[使用主要畫面格建立布林值的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-a-boolean-by-using-key-frames.md)
[使用主要畫面格建立雙精度浮點數的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-a-double-by-using-key-frames.md)
[使用主要畫面格建立矩陣的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-a-matrix-by-using-key-frames.md)
[使用主要畫面格建立點的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-a-point-by-using-key-frames.md)
[使用主要畫面格建立矩形幾何的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-a-rectangle-geometry-by-using-key-frames.md)
[使用主要畫面格建立字串的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-a-string-by-using-key-frames.md)
[使用主要畫面格建立色彩的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-color-by-using-key-frames.md)
[使用主要畫面格建立大小變更的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-size-changes-by-using-key-frames.md)
[使用主要畫面格建立框線粗細的動畫](../../../../docs/framework/wpf/graphics-multimedia/how-to-animate-the-thickness-of-a-border-by-using-key-frames.md)
[控制主要畫面格動畫執行時間](../../../../docs/framework/wpf/graphics-multimedia/how-to-control-key-frame-animation-timing.md)
## <a name="reference"></a>參考資料
<xref:System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames>
<xref:System.Windows.Media.Animation.Storyboard>
<xref:System.Windows.Media.Animation.KeyTime>
## <a name="see-also"></a>另請參閱
[圖形和多媒體](../../../../docs/framework/wpf/graphics-multimedia/index.md)
[動畫概觀](../../../../docs/framework/wpf/graphics-multimedia/animation-overview.md)
[主要畫面格動畫概觀](../../../../docs/framework/wpf/graphics-multimedia/key-frame-animations-overview.md)
| 56.113636 | 137 | 0.72742 | yue_Hant | 0.7669 |
f4de1fa0dd738a712a08c220bd84b4d92dc27213 | 12,004 | md | Markdown | _posts/2019-04-02-shell.md | vzhan229/vzhan229.github.io | fa36d8cda4e8ae88dc1a2708fd7d652349718191 | [
"MIT"
] | null | null | null | _posts/2019-04-02-shell.md | vzhan229/vzhan229.github.io | fa36d8cda4e8ae88dc1a2708fd7d652349718191 | [
"MIT"
] | null | null | null | _posts/2019-04-02-shell.md | vzhan229/vzhan229.github.io | fa36d8cda4e8ae88dc1a2708fd7d652349718191 | [
"MIT"
] | null | null | null | ---
layout: post
title: shell脚本
subtitle: shell
date: 2019-04-02
author: BY 孟超
header-img: img/post-bg-unix-linux.jpg
catalog: true
tags:
- shell
---
# shell script
推荐书籍《shell脚本攻略》、《linux命令行与shell脚本编程大全》
## 一、shell脚本的创建、显示等
### 执行脚本
shell脚本的文件后缀名一般是.sh。一般我们在shell脚本中的第一行这样写**#!/bin/bash**,我们在执行脚本文件的时候,可以用多种方法,可以用路径,假设我们就在脚本的当前路径,可以用**./xxx.sh**来执行,还可以用完整路径来执行,我们还可以指定shell来执行,比如**bash xxx.sh** 或者**sh xxx.sh** 来执行。
以上这些种执行方法都会产生子shell来执行脚本,但是下面的这个命令,**source xxx.sh**会直接调用当前的shell来执行脚本。子shell来执行会浪费时间和一些额外的消耗,而且子shell不能使用父shell中的定义的局部变量。
### echo
在shell中我们一般用echo来打印,就像C语言中的printf一样。echo在shell中用于打印,比如在中断中输入如下命令
echo “hello world”
echo hello world
echo 'hello world'
这三个都会打印出来hello world,但其实他们还是有一点差别的。
先说说这个单引号的吧,这个单引号的很简单,不管里边是什么,就按照原模原样打印出来,不管里边是否有转义字符还是有没有变量,就是单引号里边是什么,就照样打印出来。既不会解释转义字符,也不会解释变量。
再来看有双引号的和什么都没有的,这两个当里边有转义字符或者变量的时候会自动解释的,我在网上看见的什么echo后面加一个-E就不会解释转义字符了,但是我在cent os7以及Ubuntu14.04上测试,不管什么样都会自动解释转义字符的。
但是没有单引号和双引号的也就是什么都没有的这种情况中是不能打印出分号;,因为分号有特殊作用。
echo hello; hello
对于上面的命令, Bash将echo hello作为一个命令,将hello作为另外一个命令。
上面的命令和下面的形式是一样的。
echo hello
hello
相当于在终端输入了两个命令。
再说一说这个感叹号的事。在echo中使用这个!感叹号的时候,如echo “hello !world”,echo hello!world会报错,因为感叹号在这里代表的是历史命令。加转义字符的符号\的时候,会将这个转移字符一并打印出来
但是在没有引号的情况下,末尾用感叹号是可以打印出来的,有双引号的时候末尾用双引号也是不行滴。据说在脚本文件中使用也没有毛病(待鉴定),在终端中使用就有问题。
### 变量
linux中有环境变量和局部变量之分,可以用env或者printenv来打印系统环境变量,用set命令来打印当前shell下的所有变量。
### 重定向输入和输出
**输出重定向**
```shell
date > test6
```
比如这个命令,就会将之前的打印到屏幕上的东西打印到这个文件里,如果没有这个文件,则会创建这个 文件,如果有这个文件,则会清除之前文件里边的所有东西。
```shell
date >> test6
```
这个命令会将打印出来的信息追加到这个文件末尾,原来的内容还存在。
**输入重定向**
```shell
wc < test6
```
wc命令可以对对数据中的文本进行计数 ,输出行数,词数,字节数,这是将文件重定向给wc命令。
### 管道
将一个命令的输出作为另一个命令的输入。
```shell
ls -l | less
```
我可以将ls命令输出的东西,都传给less这个命令,以方便观察。输出的太多,就会发现这个好处了
### 数学运算
利用bc命令来实现。bc命令默认是不会保留小数点的,需要在每次使用的时候自己进行设置。要退出bash计算器,你必须输入quit。
scale变量的默认值是0 ,scale就是用来确定保留几位小数的。
```shell
#!/bin/bash
var1=$(echo "scale=4; 3.44 / 5" | bc)
echo The answer is $var1
```
可以这样写来实现计算。
## 二、if相关语法
if语句与then可以搭配elif进行相关的命令。
```shell
#!/bin/bash
# Testing nested ifs - use elif
#
testuser=NoSuchUser
if grep $testuser /etc/passwd
then
echo "The user $testuser exists on this system "
#
elif ls -d /home/$testuser
then
echo "The user $testuser does not exist on this system."
echo "However, $testuser has a directory."
```
if命令后边可以跟双方括号[[ ]],可以实现一些特殊的东西,比如两个*****号代表幂运算
**if中的高级特性**
数值比较
n1 -eq n2 检查n1是否与n2相等
n1 -ge n2 检查n1是否大于或等于n2
n1 -gt n2 检查n1是否大于n2
n1 -le n2 检查n1是否小于或等于n2
n1 -lt n2 检查n1是否小于n2
n1 -ne n2 检查n1是否不等于n2
```shell
if [ $value1 -gt 5 ]
then
echo "The test value $value1 is greater than 5"
fi
#
if [ $value1 -eq $value2 ]
then
echo "The values are equal"
else
echo "The values are different"
fi
```
字符串比较
str1 = str2 检查str1是否和str2相同
str1 != str2 检查str1是否和str2不同
str1 < str2 检查str1是否比str2小
str1 > str2 检查str1是否比str2大
-n str1 检查str1的长度是否非0
-z str1 检查str1的长度是否为0
**文件比较**
-d file 检查file是否存在并是一个目录
-e file 检查file是否存在
-f file 检查file是否存在并是一个文件
-r file 检查file是否存在并可读
-s file 检查file是否存在并非空
-w file 检查file是否存在并可写
-x file 检查file是否存在并可执行
-O file 检查file是否存在并属当前用户所有
-G file 检查file是否存在并且默认组与当前用户相同
file1 -nt file2 检查file1是否比file2新
file1 -ot file2 检查file1是否比file2旧
还有case命令
```shell
#!/bin/bash
# using the case command
#
case $USER in
rich | barbara)
echo "Welcome, $USER"
echo "Please enjoy your visit";;
testing)
echo "Special testing account";;
jessica)
echo "Do not forget to log off when you're done";;
*)
echo "Sorry, you are not allowed here";;
esac
```
## 三、for循环
for命令最基本的用法就是遍历for命令自身所定义的一系列值。
```shell
#!/bin/bash
for test in Alabama Alaska Arizona Arkansas California Colorado
do
echo The next state is $test
done
$ ./test1
The next state is Alabama
The next state is Alaska
The next state is Arizona
The next state is Arkansas
The next state is California
The next state is Colorado
```
每次for命令遍历值列表,它都会将列表中的下个值赋给$test变量。 $test变量可以像for命令语句中的其他脚本变量一样使用。在最后一次迭代后, $test变量的值会在shell脚本的剩余部分一直保持有效。它会一直保持最后一次迭代的值(除非你修改了它)。
**C语言中for循环**
```shell
for (i = 0; i < 10; i++)
{
printf("The next number is %d\n", i);
}
```
C语言模式的for循环也可以在shell脚本中使用。很棒
**读取变量列表**
```shell
#!/bin/bash
# using a variable to hold the list
list="Alabama Alaska Arizona Arkansas Colorado"
list=$list" Connecticut"
for state in $list
do
echo "Have you ever visited $state?"
done
```
**用通配符读取目录**
```shell
#!/bin/bash
# iterate through all the files in a directory
for file in /home/rich/test/*
do
if [ -d "$file" ]
then
echo "$file is a directory"
elif [ -f "$file" ]
then
echo "$file is a file"
fi
done
```
**循环处理文件数据**
```shell
#!/bin/bash
# changing the IFS value
IFS.OLD=$IFS
IFS=$'\n'
for entry in $(cat /etc/passwd)
do
echo "Values in $entry –"
IFS=:
for value in $entry
do
echo " $value"
done
done
```
## 四、while命令
```shell
#while命令的格式是:
while test command
do
other commands
done
```
## 五、until命令
until命令和while命令工作的方式完全相反。 until命令要求你指定一个通常返回非零退出状态码的测试命令。只有测试命令的退出状态码不为0, bash shell才会执行循环中列出的命令。一旦测试命令返回了退出状态码0,循环就结束了 。
## 六、循环处理文件数据
修改IFS环境变量 (IFS环境变量: IFS 是一种 set 变量,当 shell 处理"命令替换"和"参数替换"时,shell 根据 IFS 的值,默认是 space, tab, newline 来拆解读入的变量,然后对特殊字符进行处理,最后重新组合赋值给该变量。)
典型的例子是处理/etc/passwd文件中的数据。这要求你逐行遍历/etc/passwd文件,并将IFS变量的值改成冒号,这样就能分隔开每行中的各个数据段了。
```shell
#!/bin/bash
# changing the IFS value
IFS.OLD=$IFS #保存之前的IFS,可以过后复原
IFS=$'\n'
for entry in $(cat /etc/passwd)
do
echo "Values in $entry –"
IFS=:
for value in $entry
do
echo " $value"
done
done
```
## 七、控制循环
break
continue
## 八、处理循环输出
最后,在shell脚本中,你可以对循环的输出使用管道或进行重定向。这可以通过在done命令之后添加一个处理命令来实现。
```shell
for file in /home/rich/*
do
if [ -d "$file" ]
then
echo "$file is a directory"
elif
echo "$file is a file"
fi
done > output.txt
```
## 九、处理用户输入。命令行
**命令行参数**
我们执行脚本的时候,就可以输入参数,而且本身自己的文件名也是一个参数,分别用$0、$1、……$9、${10}……表示,而且比如我们执行脚本的时候,./xxx.sh这个./也会成为参数的一部分,比较讨人厌。但是我们有一个命令可以解决这个问题。
```shell
name=$(basename $0)
```
basename 命令就可以处理这个问题。
**移动变量**
shift命令,用一次这个命令,就可以将命令行中的参数左移一位,所以,变量$3的值会移到$2中,变量$2的值会移到$1中,而变量$1的值则会被删除(注意,变量$0的值,也就是程序名,不会改变)
**处理选项**
```shell
#!/bin/bash
# extracting command line options as parameters
#
echo
while [ -n "$1" ]
do
case "$1" in
-a) echo "Found the -a option" ;;
-b) echo "Found the -b option" ;;
-c) echo "Found the -c option" ;;
*) echo "$1 is not an option" ;;
esac
shift
done
$
$ ./test15.sh -a -b -c -d
Found the -a option
Found the -b option
Found the -c option
-d is not an option
$
```
**分离参数和选项**
对Linux来说,这个特殊字符是双破折线(--)。 shell会用双破折线来表明选项列表结束。在双破折线之后,脚本就可以放心地将剩下的命令行参数当作参数,而不是选项来处理了。要检查双破折线,只要在case语句中加一项就行了
```shell
#!/bin/bash
# extracting options and parameters
echo
while [ -n "$1" ]
do
case "$1" in
-a) echo "Found the -a option" ;;
-b) echo "Found the -b option";;
-c) echo "Found the -c option" ;;
--) shift
break ;;
*) echo "$1 is not an option";;
esac
shift
done
#
count=1
for param in $@
do
echo "Parameter #$count: $param"
count=$[ $count + 1 ]
done
$
```
**处理带值的选项**
使用getopt命令
```shell
$ getopt ab:cd -a -b test1 -cd test2 test3
-a -b test1 -c -d -- test2 test3
```
命令行中可以这么使用
在脚本中使用getopt命令
方法是用getopt命令生成的格式化后的版本来替换已有的命令行选项和参数。用set命令能够做到。 set命令能够处理shell中的各种变量。set命令的选项之一是双破折线(--),它会将命令行参数替换成set命令的命令行值。然后,该方法会将原始脚本的命令行参数传给getopt命令,之后再将getopt命令的输出传给set命令,用getopt格式化后的命令行参数来替换原始的命令行参数,看起来如下所示。set -- $(getopt -q ab:cd "$@")现在原始的命令行参数变量的值会被getopt命令的输出替换,而getopt已经为我们格式化好了命令行参数。
```shell
#!/bin/bash
# Extract command line options & values with getopt
#
set -- $(getopt -q ab:cd "$@")
#
echo
while [ -n "$1" ]
do
case "$1" in
-a) echo "Found the -a option" ;;
-b) param="$2"
echo "Found the -b option, with parameter value $param"
shift ;;
-c) echo "Found the -c option" ;;
--) shift
break ;;
*) echo "$1 is not an option";;
esac
shift
done
#
count=1
for param in "$@"
do
echo "Parameter #$count: $param"
count=$[ $count + 1 ]
done
```
**获得用户的输入**
read命令从标准输入(键盘)或另一个文件描述符中接受输入。在收到输入后, read命令
会将数据放进一个变量。下面是read命令的最简单用法。
```shell
#!/bin/bash
# testing the read command
#
echo -n "Enter your name: "
read name
echo "Hello $name, welcome to my program. "
#
```
**超时**
使用read命令时要当心。脚本很可能会一直苦等着脚本用户的输入。如果不管是否有数据输入,脚本都必须继续执行,你可以用-t选项来指定一个计时器。 -t选项指定了read命令等待输入的秒数。当计时器过期后, read命令会返回一个非零退出状态码。
```shell
#!/bin/bash
# timing the data entry
#
if read -t 5 -p "Please enter your name: " name
then
echo "Hello $name, welcome to my script"
else
echo
echo "Sorry, too slow! "
fi
```
**隐藏输入内容**
有时你需要从脚本用户处得到输入,但又在屏幕上显示输入信息。其中典型的例子就是输入的密码,但除此之外还有很多其他需要隐藏的数据类型。-s选项可以避免在read命令中输入的数据出现在显示器上(实际上,数据会被显示,只是read命令会将文本颜色设成跟背景色一样)。这里有个在脚本中使用-s选项的例子。
```shell
#!/bin/bash
# hiding input data from the monitor
#
read -s -p "Enter your password: " pass
echo
echo "Is your password really $pass? "
$
```
**读取文件内容**
最后,也可以用read命令来读取Linux系统上文件里保存的数据。每次调用read命令,它都会从文件中读取一行文本。当文件中再没有内容时, read命令会退出并返回非零退出状态码。其中最难的部分是将文件中的数据传给read命令。最常见的方法是对文件使用cat命令,将结果通过管道直接传给含有read命令的while命令。下面的例子说明怎么处理。
```shell
#!/bin/bash
# reading data from a file
#
count=1
cat test | while read line
do
echo "Line $count: $line"
count=$[ $count + 1]
done
echo "Finished processing the file"
```
## 十、呈现数据
linux系统中每个文件打开都对应着一个文件描述符,C语言中有文件指针,其实文件指针包含了文件描述符,文件指针是一个结构体。默认会打开三个文件描述符是012,分别是STDIN STDOUT STDERR.所以默认输入是键盘,默认输出是显示器。STDERR也会打印到屏幕上。
**重定向错误**
命令行中
```shell
ls -al test badtest test2 2> test5
```
只重定向了错误,最后边的2 就是STDERR的文件描述符。
```shell
ls -al test test2 test3 badtest 2> test6 1> test7
```
重定向了错误和数据
**脚本中临时重定向**
```shell
#!/bin/bash
# testing STDERR messages
echo "This is an error" >&2
echo "This is normal output"
```
默认会将错误输出到屏幕上,可以在运行脚本的时候指定STDERR输出位置,就像上面在命令行中执行的语句一样
**脚本中永久重定向**
用exec命令告诉shell在脚本执行期间重定向某个特定文件描述符 。
```shell
#!/bin/bash
# redirecting all output to a file
exec 1>testout
echo "This is a test of redirecting all output"
echo "from a script to another file."
echo "without having to redirect every individual line"
```
exec命令会启动一个新shell并将STDOUT文件描述符重定向到文件。脚本中发给STDOUT的所有输出会被重定向到文件。
**重定向输入**
exec命令允许你将STDIN重定向到Linux系统上的文件中:
exec 0< testfile
这个命令会告诉shell它应该从文件testfile中获得输入,而不是STDIN。这个重定向只要在脚本需要输入时就会作用。下面是该用法的实例。
```shell
# redirecting file input
exec 0< testfile
count=1
while read line
do
echo "Line #$count: $line"
count=$[ $count + 1 ]
done
```
## 十一、函数
格式
```shell
function name {
commands
}
```
**向函数传参**
bash shell会将函数当作小型脚本来对待。这意味着你可以像普通脚本那样向函数传递参数函数可以使用标准的参数环境变量来表示命令行上传给函数的参数。例如,函数名会在$0变量中定义,函数命令行上的任何参数都会通过$1、 $2等定义。也可以用特殊变量$#来判断传给函数的参数数目。在脚本中指定函数时,必须将参数和函数放在同一行,像这样:
func1 $value1 10
然后函数可以用参数环境变量来获得参数值。
## sed gawk
**文本处理**
**sed**
sed命令的格式如下:**sed options script file**
**1、在命令行定义编辑器命令**
默认情况下,sed编辑器会将指定的命令应用到STDIN输入流上。这样你可以直接将数据通过管道输入sed编辑器处理。这里有个简单的示例。
```shell
$ echo "This is a test" | sed 's/test/big test/'
This is a big test
```
**2、在命令行使用多个编辑器命令**
要在sed命令行上执行多个命令时,只要用-e选项就可以了。
```shell
$ sed -e 's/brown/green/; s/dog/cat/' data1.txt
```
**3、从文件中读取编辑器命令**
```shell
$ sed -f script1.sed data1.txt
```
sed编辑器脚本文件记为.sed结尾
**gawk**
gawk程序的基本格式如下:**gawk options program file**
**从命令行读取程序脚本**
gawk程序脚本用一对花括号来定义。你必须将脚本命令放到两个花括号({})中。
```shell
gawk '{print "hello world"}'
```
不管输入什么,都会打印出hello world,
要终止这个gawk程序,必须保证数据流已经结束了,CTRL + D 组合键会在bash中产生EOF字符,这个组合键能够中止这个gawk程序,并返回到命令行下面。
**$$**
Shell本身的PID(ProcessID)
**$!**
Shell最后运行的后台Process的PID
**$?**
最后运行的命令的结束代码(返回值)
**$-**
使用Set命令设定的Flag一览
**$@**
所有参数列表。如"$@"用「"」括起来的情况、以"$1" "$2" … "$n" 的形式输出所有参数。
**$#**
添加到Shell的参数个数
**$0**
Shell本身的文件名
**$1~$n**
添加到Shell的各参数值。$1是第1参数、$2是第2参数…。
**$!**
最近一个后台命令的PID。
**$***
含有所有参数内容的单个值,由IFS环境变量中的第一个字符分隔;没定义IFS的话,
由空格分隔。
**$$**
当前shell的进程ID(PID) | 15.56939 | 285 | 0.694852 | yue_Hant | 0.49665 |
f4de78108ca3c447c99581c2016447ca1be13980 | 250 | md | Markdown | pages/info/maserati.md | DevelopedInside/lineage_wiki | 0127946269bf7b87f008e588c0f57c6dcd4a7c75 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pages/info/maserati.md | DevelopedInside/lineage_wiki | 0127946269bf7b87f008e588c0f57c6dcd4a7c75 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pages/info/maserati.md | DevelopedInside/lineage_wiki | 0127946269bf7b87f008e588c0f57c6dcd4a7c75 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | ---
sidebar: home_sidebar
title: Info about maserati
folder: info
layout: deviceinfo
# name of the page (/{{permalink}}.html)
redirect_from: maserati_info.html
permalink: /devices/maserati/
device: maserati
---
{% include templates/device_info.md %}
| 20.833333 | 40 | 0.76 | eng_Latn | 0.558816 |
f4de8beb1a11f8f05c2c4704bdb4ec8d906038e3 | 240 | md | Markdown | erpnext_documentation/www/docs/v13/user/manual/es/index.md | Anuja-pawar/erpnext_documentation | 0d8e02e5508edebbce24bdf967d766d7cbad5c08 | [
"MIT"
] | 67 | 2020-03-10T18:11:31.000Z | 2022-03-11T16:51:25.000Z | erpnext_documentation/www/docs/v13/user/manual/es/index.md | Anuja-pawar/erpnext_documentation | 0d8e02e5508edebbce24bdf967d766d7cbad5c08 | [
"MIT"
] | 106 | 2020-04-06T06:49:17.000Z | 2021-07-23T01:13:59.000Z | erpnext_documentation/www/docs/v13/user/manual/es/index.md | Anuja-pawar/erpnext_documentation | 0d8e02e5508edebbce24bdf967d766d7cbad5c08 | [
"MIT"
] | 162 | 2020-02-25T07:17:08.000Z | 2022-03-17T08:25:29.000Z | <!-- add-breadcrumbs -->
# Manual de Usuario (Español)
### Contenido:
{index}
**Trabajo en progreso.**
[La traducción al Español del manual de ERPNext está en progreso. Click aquí para ver el manual en ingles](/docs/v13/user/manual/en)
| 21.818182 | 132 | 0.7125 | spa_Latn | 0.916072 |
f4de9fbf2eae2a06f8765a6b893221fe1f931138 | 294,908 | md | Markdown | site/user/api/SkPath_Reference.md | mohad12211/skia | 042a53aa094715e031ebad4da072524ace316744 | [
"BSD-3-Clause"
] | 3 | 2019-03-07T17:01:23.000Z | 2021-07-03T22:01:36.000Z | site/user/api/SkPath_Reference.md | mohad12211/skia | 042a53aa094715e031ebad4da072524ace316744 | [
"BSD-3-Clause"
] | 2 | 2021-09-10T03:50:52.000Z | 2021-09-10T07:10:19.000Z | site/user/api/SkPath_Reference.md | promoter/skia | bc5ed776134c60ae13d22cabc8e0f6aca0fdd422 | [
"BSD-3-Clause"
] | 5 | 2020-09-04T01:27:32.000Z | 2021-07-31T06:34:43.000Z | SkPath Reference
===
<a name='SkPath'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
class <a href='SkPath_Reference#SkPath'>SkPath</a> {
enum <a href='#SkPath_Direction'>Direction</a> : int {
<a href='#SkPath_kCW_Direction'>kCW_Direction</a>,
<a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>,
};
<a href='#SkPath_empty_constructor'>SkPath()</a>;
<a href='#SkPath_copy_const_SkPath'>SkPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>);
<a href='#SkPath_destructor'>~SkPath()</a>;
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_copy_operator'>operator=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>);
friend bool <a href='#SkPath_equal_operator'>operator==</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& a, const <a href='SkPath_Reference#SkPath'>SkPath</a>& b);
friend bool <a href='#SkPath_notequal_operator'>operator!=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& a, const <a href='SkPath_Reference#SkPath'>SkPath</a>& b);
bool <a href='#SkPath_isInterpolatable'>isInterpolatable</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& compare) const;
bool <a href='#SkPath_interpolate'>interpolate</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& ending, <a href='undocumented#SkScalar'>SkScalar</a> weight, <a href='SkPath_Reference#SkPath'>SkPath</a>* out) const;
enum <a href='#SkPath_FillType'>FillType</a> {
<a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>,
<a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a>,
<a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a>,
<a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a>,
};
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_getFillType'>getFillType</a>() const;
void <a href='#SkPath_setFillType'>setFillType</a>(<a href='#SkPath_FillType'>FillType</a> ft);
bool <a href='#SkPath_isInverseFillType'>isInverseFillType</a>() const;
void <a href='#SkPath_toggleInverseFillType'>toggleInverseFillType</a>();
enum <a href='#SkPath_Convexity'>Convexity</a> : uint8_t {
<a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a>,
<a href='#SkPath_kConvex_Convexity'>kConvex_Convexity</a>,
<a href='#SkPath_kConcave_Convexity'>kConcave_Convexity</a>,
};
<a href='#SkPath_Convexity'>Convexity</a> <a href='#SkPath_getConvexity'>getConvexity</a>() const;
<a href='#SkPath_Convexity'>Convexity</a> <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a>() const;
void <a href='#SkPath_setConvexity'>setConvexity</a>(<a href='#SkPath_Convexity'>Convexity</a> convexity);
bool <a href='#SkPath_isConvex'>isConvex</a>() const;
bool <a href='#SkPath_isOval'>isOval</a>(<a href='SkRect_Reference#SkRect'>SkRect</a>* bounds) const;
bool <a href='#SkPath_isRRect'>isRRect</a>(<a href='SkRRect_Reference#SkRRect'>SkRRect</a>* rrect) const;
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_reset'>reset()</a>;
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rewind'>rewind()</a>;
bool <a href='#SkPath_isEmpty'>isEmpty</a>() const;
bool <a href='#SkPath_isLastContourClosed'>isLastContourClosed</a>() const;
bool <a href='#SkPath_isFinite'>isFinite</a>() const;
bool <a href='#SkPath_isVolatile'>isVolatile</a>() const;
void <a href='#SkPath_setIsVolatile'>setIsVolatile</a>(bool <a href='#SkPath_isVolatile'>isVolatile</a>);
static bool <a href='#SkPath_IsLineDegenerate'>IsLineDegenerate</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, bool exact);
static bool <a href='#SkPath_IsQuadDegenerate'>IsQuadDegenerate</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2,
const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p3, bool exact);
static bool <a href='#SkPath_IsCubicDegenerate'>IsCubicDegenerate</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2,
const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p3, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p4, bool exact);
bool <a href='#SkPath_isLine'>isLine</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='undocumented#Line'>line</a>[2]) const;
int <a href='#SkPath_countPoints'>countPoints</a>() const;
<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_getPoint'>getPoint</a>(int index) const;
int <a href='#SkPath_getPoints'>getPoints</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='SkPoint_Reference#Point'>points</a>[], int max) const;
int <a href='#SkPath_countVerbs'>countVerbs</a>() const;
int <a href='#SkPath_getVerbs'>getVerbs</a>(uint8_t <a href='SkPath_Reference#Verb'>verbs</a>[], int max) const;
void <a href='#SkPath_swap'>swap</a>(<a href='SkPath_Reference#SkPath'>SkPath</a>& other);
const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='#SkPath_getBounds'>getBounds</a>() const;
void <a href='#SkPath_updateBoundsCache'>updateBoundsCache</a>() const;
<a href='SkRect_Reference#SkRect'>SkRect</a> <a href='#SkPath_computeTightBounds'>computeTightBounds</a>() const;
bool <a href='#SkPath_conservativelyContainsRect'>conservativelyContainsRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>) const;
void <a href='#SkPath_incReserve'>incReserve</a>(int extraPtCount);
void <a href='#SkPath_shrinkToFit'>shrinkToFit</a>();
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_moveTo'>moveTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_moveTo'>moveTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rMoveTo'>rMoveTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_lineTo'>lineTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_lineTo'>lineTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rLineTo'>rLineTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_quadTo'>quadTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_quadTo'>quadTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rQuadTo'>rQuadTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx1, <a href='undocumented#SkScalar'>SkScalar</a> dy1, <a href='undocumented#SkScalar'>SkScalar</a> dx2, <a href='undocumented#SkScalar'>SkScalar</a> dy2);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_conicTo'>conicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2,
<a href='undocumented#SkScalar'>SkScalar</a> w);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_conicTo'>conicTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, <a href='undocumented#SkScalar'>SkScalar</a> w);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rConicTo'>rConicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx1, <a href='undocumented#SkScalar'>SkScalar</a> dy1, <a href='undocumented#SkScalar'>SkScalar</a> dx2, <a href='undocumented#SkScalar'>SkScalar</a> dy2,
<a href='undocumented#SkScalar'>SkScalar</a> w);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_cubicTo'>cubicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2,
<a href='undocumented#SkScalar'>SkScalar</a> x3, <a href='undocumented#SkScalar'>SkScalar</a> y3);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_cubicTo'>cubicTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p3);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rCubicTo'>rCubicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx1, <a href='undocumented#SkScalar'>SkScalar</a> dy1, <a href='undocumented#SkScalar'>SkScalar</a> dx2, <a href='undocumented#SkScalar'>SkScalar</a> dy2,
<a href='undocumented#SkScalar'>SkScalar</a> dx3, <a href='undocumented#SkScalar'>SkScalar</a> dy3);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='undocumented#SkScalar'>SkScalar</a> startAngle, <a href='undocumented#SkScalar'>SkScalar</a> sweepAngle, bool forceMoveTo);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2, <a href='undocumented#SkScalar'>SkScalar</a> radius);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> p2, <a href='undocumented#SkScalar'>SkScalar</a> radius);
enum <a href='#SkPath_ArcSize'>ArcSize</a> {
<a href='#SkPath_kSmall_ArcSize'>kSmall_ArcSize</a>,
<a href='#SkPath_kLarge_ArcSize'>kLarge_ArcSize</a>,
};
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> rx, <a href='undocumented#SkScalar'>SkScalar</a> ry, <a href='undocumented#SkScalar'>SkScalar</a> xAxisRotate, <a href='#SkPath_ArcSize'>ArcSize</a> largeArc,
<a href='#SkPath_Direction'>Direction</a> sweep, <a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> r, <a href='undocumented#SkScalar'>SkScalar</a> xAxisRotate, <a href='#SkPath_ArcSize'>ArcSize</a> largeArc, <a href='#SkPath_Direction'>Direction</a> sweep,
const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> xy);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rArcTo'>rArcTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> rx, <a href='undocumented#SkScalar'>SkScalar</a> ry, <a href='undocumented#SkScalar'>SkScalar</a> xAxisRotate, <a href='#SkPath_ArcSize'>ArcSize</a> largeArc,
<a href='#SkPath_Direction'>Direction</a> sweep, <a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_close'>close()</a>;
static bool <a href='#SkPath_IsInverseFillType'>IsInverseFillType</a>(<a href='#SkPath_FillType'>FillType</a> fill);
static <a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_ConvertToNonInverseFillType'>ConvertToNonInverseFillType</a>(<a href='#SkPath_FillType'>FillType</a> fill);
static int <a href='#SkPath_ConvertConicToQuads'>ConvertConicToQuads</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p0, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2,
<a href='undocumented#SkScalar'>SkScalar</a> w, <a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[], int pow2);
bool <a href='#SkPath_isRect'>isRect</a>(<a href='SkRect_Reference#SkRect'>SkRect</a>* <a href='SkRect_Reference#Rect'>rect</a>, bool* isClosed = nullptr, <a href='#SkPath_Direction'>Direction</a>* direction = nullptr) const;
bool <a href='#SkPath_isNestedFillRects'>isNestedFillRects</a>(<a href='SkRect_Reference#SkRect'>SkRect</a> <a href='SkRect_Reference#Rect'>rect</a>[2], <a href='#SkPath_Direction'>Direction</a> dirs[2] = nullptr) const;
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRect'>addRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRect'>addRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, <a href='#SkPath_Direction'>Direction</a> dir, unsigned start);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRect'>addRect</a>(<a href='undocumented#SkScalar'>SkScalar</a> left, <a href='undocumented#SkScalar'>SkScalar</a> top, <a href='undocumented#SkScalar'>SkScalar</a> right, <a href='undocumented#SkScalar'>SkScalar</a> bottom,
<a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addOval'>addOval</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addOval'>addOval</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='#SkPath_Direction'>Direction</a> dir, unsigned start);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addCircle'>addCircle</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y, <a href='undocumented#SkScalar'>SkScalar</a> radius,
<a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addArc'>addArc</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='undocumented#SkScalar'>SkScalar</a> startAngle, <a href='undocumented#SkScalar'>SkScalar</a> sweepAngle);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRoundRect'>addRoundRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, <a href='undocumented#SkScalar'>SkScalar</a> rx, <a href='undocumented#SkScalar'>SkScalar</a> ry,
<a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRoundRect'>addRoundRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, const <a href='undocumented#SkScalar'>SkScalar</a> radii[],
<a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRRect'>addRRect</a>(const <a href='SkRRect_Reference#SkRRect'>SkRRect</a>& rrect, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRRect'>addRRect</a>(const <a href='SkRRect_Reference#SkRRect'>SkRRect</a>& rrect, <a href='#SkPath_Direction'>Direction</a> dir, unsigned start);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPoly'>addPoly</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[], int count, bool close);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPoly'>addPoly</a>(const std::initializer_list<<a href='SkPoint_Reference#SkPoint'>SkPoint</a>>& list, bool close);
enum <a href='#SkPath_AddPathMode'>AddPathMode</a> {
<a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>,
<a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a>,
};
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPath'>addPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src, <a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy,
<a href='#SkPath_AddPathMode'>AddPathMode</a> mode = <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPath'>addPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src, <a href='#SkPath_AddPathMode'>AddPathMode</a> mode = <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPath'>addPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src, const <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>& <a href='SkMatrix_Reference#Matrix'>matrix</a>,
<a href='#SkPath_AddPathMode'>AddPathMode</a> mode = <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>);
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_reverseAddPath'>reverseAddPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src);
void <a href='#SkPath_offset'>offset</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy, <a href='SkPath_Reference#SkPath'>SkPath</a>* dst) const;
void <a href='#SkPath_offset'>offset</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy);
void <a href='#SkPath_transform'>transform</a>(const <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>& <a href='SkMatrix_Reference#Matrix'>matrix</a>, <a href='SkPath_Reference#SkPath'>SkPath</a>* dst) const;
void <a href='#SkPath_transform'>transform</a>(const <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>& <a href='SkMatrix_Reference#Matrix'>matrix</a>);
bool <a href='#SkPath_getLastPt'>getLastPt</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a>* lastPt) const;
void <a href='#SkPath_setLastPt'>setLastPt</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y);
void <a href='#SkPath_setLastPt'>setLastPt</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p);
enum <a href='#SkPath_SegmentMask'>SegmentMask</a> {
<a href='#SkPath_kLine_SegmentMask'>kLine_SegmentMask</a> = 1 << 0,
<a href='#SkPath_kQuad_SegmentMask'>kQuad_SegmentMask</a> = 1 << 1,
<a href='#SkPath_kConic_SegmentMask'>kConic_SegmentMask</a> = 1 << 2,
<a href='#SkPath_kCubic_SegmentMask'>kCubic_SegmentMask</a> = 1 << 3,
};
uint32_t <a href='#SkPath_getSegmentMasks'>getSegmentMasks</a>() const;
enum <a href='#SkPath_Verb'>Verb</a> {
<a href='#SkPath_kMove_Verb'>kMove_Verb</a>,
<a href='#SkPath_kLine_Verb'>kLine_Verb</a>,
<a href='#SkPath_kQuad_Verb'>kQuad_Verb</a>,
<a href='#SkPath_kConic_Verb'>kConic_Verb</a>,
<a href='#SkPath_kCubic_Verb'>kCubic_Verb</a>,
<a href='#SkPath_kClose_Verb'>kClose_Verb</a>,
<a href='#SkPath_kDone_Verb'>kDone_Verb</a>,
};
bool <a href='#SkPath_contains'>contains</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y) const;
void <a href='#SkPath_dump'>dump</a>(<a href='SkWStream_Reference#SkWStream'>SkWStream</a>* <a href='SkStream_Reference#Stream'>stream</a>, bool forceClose, bool dumpAsHex) const;
void <a href='#SkPath_dump'>dump()</a> const;
void <a href='#SkPath_dumpHex'>dumpHex</a>() const;
size_t <a href='#SkPath_writeToMemory'>writeToMemory</a>(void* buffer) const;
<a href='undocumented#sk_sp'>sk_sp</a><<a href='undocumented#SkData'>SkData</a>> <a href='#SkPath_serialize'>serialize()</a> const;
size_t <a href='#SkPath_readFromMemory'>readFromMemory</a>(const void* buffer, size_t length);
uint32_t <a href='#SkPath_getGenerationID'>getGenerationID</a>() const;
bool <a href='#SkPath_isValid'>isValid</a>() const;
};
</pre>
<a href='SkPath_Reference#Path'>Paths</a> contain geometry. <a href='SkPath_Reference#Path'>Paths</a> may be empty, or contain one or more <a href='SkPath_Reference#Verb'>Verbs</a> that
outline a figure. <a href='SkPath_Reference#Path'>Path</a> always starts with a move verb to a <a href='#Cartesian_Coordinate'>Cartesian_Coordinate</a>,
and may be followed by additional <a href='SkPath_Reference#Verb'>verbs</a> that add <a href='undocumented#Line'>lines</a> or <a href='undocumented#Curve'>curves</a>.
Adding a close verb makes the geometry into a continuous loop, a closed <a href='SkPath_Overview#Contour'>contour</a>.
<a href='SkPath_Reference#Path'>Paths</a> may contain any number of <a href='SkPath_Overview#Contour'>contours</a>, each beginning with a move verb.
<a href='SkPath_Reference#Path'>Path</a> <a href='SkPath_Overview#Contour'>contours</a> may contain only a move verb, or may also contain <a href='undocumented#Line'>lines</a>,
<a href='#Path_Quad'>Quadratic_Beziers</a>, <a href='SkPath_Reference#Conic'>Conics</a>, and <a href='#Path_Cubic'>Cubic_Beziers</a>. <a href='SkPath_Reference#Path'>Path</a> <a href='SkPath_Overview#Contour'>contours</a> may be open or
closed.
When used to draw a filled area, <a href='SkPath_Reference#Path'>Path</a> describes whether the fill is inside or
outside the geometry. <a href='SkPath_Reference#Path'>Path</a> also describes the winding rule used to fill
overlapping <a href='SkPath_Overview#Contour'>contours</a>.
Internally, <a href='SkPath_Reference#Path'>Path</a> lazily computes metrics likes bounds and convexity. Call
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_updateBoundsCache'>updateBoundsCache</a> to make <a href='SkPath_Reference#Path'>Path</a> thread safe.
<a name='Verb'></a>
<a name='SkPath_Verb'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
enum <a href='#SkPath_Verb'>Verb</a> {
<a href='#SkPath_kMove_Verb'>kMove_Verb</a>,
<a href='#SkPath_kLine_Verb'>kLine_Verb</a>,
<a href='#SkPath_kQuad_Verb'>kQuad_Verb</a>,
<a href='#SkPath_kConic_Verb'>kConic_Verb</a>,
<a href='#SkPath_kCubic_Verb'>kCubic_Verb</a>,
<a href='#SkPath_kClose_Verb'>kClose_Verb</a>,
<a href='#SkPath_kDone_Verb'>kDone_Verb</a>,
};
</pre>
<a href='#SkPath_Verb'>Verb</a> instructs <a href='SkPath_Reference#Path'>Path</a> how to interpret one or more <a href='SkPoint_Reference#Point'>Point</a> and optional <a href='#Path_Conic_Weight'>Conic_Weight</a>;
manage <a href='SkPath_Overview#Contour'>Contour</a>, and terminate <a href='SkPath_Reference#Path'>Path</a>.
### Constants
<table style='border-collapse: collapse; width: 62.5em'>
<tr><th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Const</th>
<th style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>Value</th>
<th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Description</th></tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kMove_Verb'><code>SkPath::kMove_Verb</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>0</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Consecutive <a href='#SkPath_kMove_Verb'>kMove_Verb</a> are preserved but all but the last <a href='#SkPath_kMove_Verb'>kMove_Verb</a> is
ignored. <a href='#SkPath_kMove_Verb'>kMove_Verb</a> after other <a href='SkPath_Reference#Verb'>Verbs</a> implicitly closes the previous <a href='SkPath_Overview#Contour'>Contour</a>
if <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_kFill_Style'>kFill_Style</a> is set when drawn; otherwise, stroke is drawn open.
<a href='#SkPath_kMove_Verb'>kMove_Verb</a> as the last <a href='#SkPath_Verb'>Verb</a> is preserved but ignored.
</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kLine_Verb'><code>SkPath::kLine_Verb</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>1</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
<a href='undocumented#Line'>Line</a> is a straight segment from <a href='SkPoint_Reference#Point'>Point</a> to <a href='SkPoint_Reference#Point'>Point</a>. Consecutive <a href='#SkPath_kLine_Verb'>kLine_Verb</a>
extend <a href='SkPath_Overview#Contour'>Contour</a>. <a href='#SkPath_kLine_Verb'>kLine_Verb</a> at same position as prior <a href='#SkPath_kMove_Verb'>kMove_Verb</a> is
preserved, and draws <a href='SkPoint_Reference#Point'>Point</a> if <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_kStroke_Style'>kStroke_Style</a> is set, and
<a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_Cap'>Cap</a> is <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_kSquare_Cap'>kSquare_Cap</a> or <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_kRound_Cap'>kRound_Cap</a>. <a href='#SkPath_kLine_Verb'>kLine_Verb</a>
at same position as prior <a href='undocumented#Line'>line</a> or <a href='undocumented#Curve'>curve</a> <a href='#SkPath_Verb'>Verb</a> is preserved but is ignored.
</td>
</tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kQuad_Verb'><code>SkPath::kQuad_Verb</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>2</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Adds <a href='SkPath_Reference#Quad'>Quad</a> from <a href='#Path_Last_Point'>Last_Point</a>, using control <a href='SkPoint_Reference#Point'>Point</a>, and end <a href='SkPoint_Reference#Point'>Point</a>.
<a href='SkPath_Reference#Quad'>Quad</a> is a parabolic section within tangents from <a href='#Path_Last_Point'>Last_Point</a> to control <a href='SkPoint_Reference#Point'>Point</a>,
and control <a href='SkPoint_Reference#Point'>Point</a> to end <a href='SkPoint_Reference#Point'>Point</a>.
</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kConic_Verb'><code>SkPath::kConic_Verb</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>3</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Adds <a href='SkPath_Reference#Conic'>Conic</a> from <a href='#Path_Last_Point'>Last_Point</a>, using control <a href='SkPoint_Reference#Point'>Point</a>, end <a href='SkPoint_Reference#Point'>Point</a>, and <a href='#Path_Conic_Weight'>Conic_Weight</a>.
<a href='SkPath_Reference#Conic'>Conic</a> is a elliptical, parabolic, or hyperbolic section within tangents
from <a href='#Path_Last_Point'>Last_Point</a> to control <a href='SkPoint_Reference#Point'>Point</a>, and control <a href='SkPoint_Reference#Point'>Point</a> to end <a href='SkPoint_Reference#Point'>Point</a>, constrained
by <a href='#Path_Conic_Weight'>Conic_Weight</a>. <a href='#Path_Conic_Weight'>Conic_Weight</a> less than one is elliptical; equal to one is
parabolic (and identical to <a href='SkPath_Reference#Quad'>Quad</a>); greater than one hyperbolic.
</td>
</tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kCubic_Verb'><code>SkPath::kCubic_Verb</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>4</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Adds <a href='SkPath_Reference#Cubic'>Cubic</a> from <a href='#Path_Last_Point'>Last_Point</a>, using two control <a href='SkPoint_Reference#Point'>Points</a>, and end <a href='SkPoint_Reference#Point'>Point</a>.
<a href='SkPath_Reference#Cubic'>Cubic</a> is a third-order <a href='#Bezier_Curve'>Bezier_Curve</a> section within tangents from <a href='#Path_Last_Point'>Last_Point</a>
to first control <a href='SkPoint_Reference#Point'>Point</a>, and from second control <a href='SkPoint_Reference#Point'>Point</a> to end <a href='SkPoint_Reference#Point'>Point</a>.
</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kClose_Verb'><code>SkPath::kClose_Verb</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>5</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Closes <a href='SkPath_Overview#Contour'>Contour</a>, connecting <a href='#Path_Last_Point'>Last_Point</a> to <a href='#SkPath_kMove_Verb'>kMove_Verb</a> <a href='SkPoint_Reference#Point'>Point</a>. Consecutive
<a href='#SkPath_kClose_Verb'>kClose_Verb</a> are preserved but only first has an effect. <a href='#SkPath_kClose_Verb'>kClose_Verb</a> after
<a href='#SkPath_kMove_Verb'>kMove_Verb</a> has no effect.
</td>
</tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kDone_Verb'><code>SkPath::kDone_Verb</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>6</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Not in <a href='#Path_Verb_Array'>Verb_Array</a>, but returned by <a href='SkPath_Reference#Path'>Path</a> iterator.
</td>
</tr>
Each <a href='#SkPath_Verb'>Verb</a> has zero or more <a href='SkPoint_Reference#Point'>Points</a> stored in <a href='SkPath_Reference#Path'>Path</a>.
<a href='SkPath_Reference#Path'>Path</a> iterator returns complete <a href='undocumented#Curve'>curve</a> descriptions, duplicating shared <a href='SkPoint_Reference#Point'>Points</a>
for consecutive entries.
</table>
| <a href='#SkPath_Verb'>Verb</a> | Allocated <a href='SkPoint_Reference#Point'>Points</a> | Iterated <a href='SkPoint_Reference#Point'>Points</a> | <a href='SkPath_Reference#Conic_Weight'>Weights</a> |
| --- | --- | --- | --- |
| <a href='#SkPath_kMove_Verb'>kMove_Verb</a> | 1 | 1 | 0 |
| <a href='#SkPath_kLine_Verb'>kLine_Verb</a> | 1 | 2 | 0 |
| <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a> | 2 | 3 | 0 |
| <a href='#SkPath_kConic_Verb'>kConic_Verb</a> | 2 | 3 | 1 |
| <a href='#SkPath_kCubic_Verb'>kCubic_Verb</a> | 3 | 4 | 0 |
| <a href='#SkPath_kClose_Verb'>kClose_Verb</a> | 0 | 1 | 0 |
| <a href='#SkPath_kDone_Verb'>kDone_Verb</a> | -- | 0 | 0 |
### Example
<div><fiddle-embed name="@Path_Verb">
#### Example Output
~~~~
verb count: 7
verbs: kMove_Verb kLine_Verb kQuad_Verb kClose_Verb kMove_Verb kCubic_Verb kConic_Verb
~~~~
</fiddle-embed></div>
<a name='Direction'></a>
<a name='SkPath_Direction'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
enum <a href='#SkPath_Direction'>Direction</a> : int {
<a href='#SkPath_kCW_Direction'>kCW_Direction</a>,
<a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>,
};
</pre>
<a href='#SkPath_Direction'>Direction</a> describes whether <a href='SkPath_Overview#Contour'>Contour</a> is clockwise or counterclockwise.
When <a href='SkPath_Reference#Path'>Path</a> contains multiple overlapping <a href='SkPath_Overview#Contour'>Contours</a>, <a href='#SkPath_Direction'>Direction</a> together with
<a href='#Path_Fill_Type'>Fill_Type</a> determines whether overlaps are filled or form holes.
<a href='#SkPath_Direction'>Direction</a> also determines how <a href='SkPath_Overview#Contour'>Contour</a> is measured. For instance, dashing
measures along <a href='SkPath_Reference#Path'>Path</a> to determine where to start and stop stroke; <a href='#SkPath_Direction'>Direction</a>
will change dashed results as it steps clockwise or counterclockwise.
Closed <a href='SkPath_Overview#Contour'>Contours</a> like <a href='SkRect_Reference#Rect'>Rect</a>, <a href='#RRect'>Round_Rect</a>, <a href='undocumented#Circle'>Circle</a>, and <a href='undocumented#Oval'>Oval</a> added with
<a href='#SkPath_kCW_Direction'>kCW_Direction</a> travel clockwise; the same added with <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>
travel counterclockwise.
### Constants
<table style='border-collapse: collapse; width: 62.5em'>
<tr><th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Const</th>
<th style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>Value</th>
<th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Description</th></tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kCW_Direction'><code>SkPath::kCW_Direction</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>0</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
contour travels clockwise</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kCCW_Direction'><code>SkPath::kCCW_Direction</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>1</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
contour travels counterclockwise</td>
</tr>
</table>
### Example
<div><fiddle-embed name="4bbae00b40ed2cfcd0007921ad693a7b"></fiddle-embed></div>
### See Also
<a href='#SkPath_arcTo'>arcTo</a> <a href='#SkPath_rArcTo'>rArcTo</a> <a href='#SkPath_isRect'>isRect</a> <a href='#SkPath_isNestedFillRects'>isNestedFillRects</a> <a href='#SkPath_addRect'>addRect</a> <a href='#SkPath_addOval'>addOval</a>
<a name='SkPath_empty_constructor'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_empty_constructor'>SkPath()</a>
</pre>
Constructs an empty <a href='SkPath_Reference#SkPath'>SkPath</a>. By default, <a href='SkPath_Reference#SkPath'>SkPath</a> has no <a href='SkPath_Reference#Verb'>verbs</a>, no <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and no <a href='SkPath_Reference#Conic_Weight'>weights</a>.
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a> is set to <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>.
### Return Value
empty <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_empty_constructor">
#### Example Output
~~~~
path is empty
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_reset'>reset</a> <a href='#SkPath_rewind'>rewind</a>
<a name='SkPath_copy_const_SkPath'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_copy_const_SkPath'>SkPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>)
</pre>
Constructs a copy of an existing <a href='#SkPath_copy_const_SkPath_path'>path</a>.
Copy constructor makes two <a href='SkPath_Reference#Path'>paths</a> identical by value. Internally, <a href='#SkPath_copy_const_SkPath_path'>path</a> and
the returned result share pointer values. The underlying <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>
and <a href='SkPath_Reference#Conic_Weight'>weights</a> are copied when modified.
Creating a <a href='SkPath_Reference#SkPath'>SkPath</a> copy is very efficient and never allocates memory.
<a href='SkPath_Reference#SkPath'>SkPath</a> are always copied by value from the interface; the underlying shared
pointers are not exposed.
### Parameters
<table> <tr> <td><a name='SkPath_copy_const_SkPath_path'><code><strong>path</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to copy by value</td>
</tr>
</table>
### Return Value
copy of <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_copy_const_SkPath"><div>Modifying one <a href='#SkPath_copy_const_SkPath_path'>path</a> does not effect another, even if they started as copies
of each other.
</div>
#### Example Output
~~~~
path verbs: 2
path2 verbs: 3
after reset
path verbs: 0
path2 verbs: 3
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_copy_operator'>operator=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_copy_const_SkPath_path'>path</a>)
<a name='SkPath_destructor'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_destructor'>~SkPath()</a>
</pre>
Releases ownership of any shared <a href='undocumented#Data'>data</a> and deletes <a href='undocumented#Data'>data</a> if <a href='SkPath_Reference#SkPath'>SkPath</a> is sole owner.
### Example
<div><fiddle-embed name="@Path_destructor"><div>delete calls <a href='SkPath_Reference#Path'>Path</a> destructor, but copy of original in path2 is unaffected.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_empty_constructor'>SkPath()</a> <a href='#SkPath_copy_const_SkPath'>SkPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>) <a href='#SkPath_copy_operator'>operator=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>)
<a name='SkPath_copy_operator'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_copy_operator'>operator=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>)
</pre>
Constructs a copy of an existing <a href='#SkPath_copy_operator_path'>path</a>.
<a href='SkPath_Reference#SkPath'>SkPath</a> assignment makes two <a href='SkPath_Reference#Path'>paths</a> identical by value. Internally, assignment
shares pointer values. The underlying <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a> and <a href='SkPath_Reference#Conic_Weight'>weights</a>
are copied when modified.
Copying <a href='SkPath_Reference#SkPath'>SkPath</a> by assignment is very efficient and never allocates memory.
<a href='SkPath_Reference#SkPath'>SkPath</a> are always copied by value from the interface; the underlying shared
pointers are not exposed.
### Parameters
<table> <tr> <td><a name='SkPath_copy_operator_path'><code><strong>path</strong></code></a></td>
<td><a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, <a href='SkPath_Reference#Conic_Weight'>weights</a>, and <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a> to copy</td>
</tr>
</table>
### Return Value
<a href='SkPath_Reference#SkPath'>SkPath</a> copied by value
### Example
<div><fiddle-embed name="@Path_copy_operator">
#### Example Output
~~~~
path1 bounds = 10, 20, 30, 40
path2 bounds = 10, 20, 30, 40
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_swap'>swap</a> <a href='#SkPath_copy_const_SkPath'>SkPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_copy_operator_path'>path</a>)
<a name='SkPath_equal_operator'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_equal_operator'>operator==</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& a, const <a href='SkPath_Reference#SkPath'>SkPath</a>& b)
</pre>
Compares <a href='#SkPath_equal_operator_a'>a</a> and <a href='#SkPath_equal_operator_b'>b</a>; returns true if <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a>, <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='SkPath_Reference#Conic_Weight'>weights</a>
are equivalent.
### Parameters
<table> <tr> <td><a name='SkPath_equal_operator_a'><code><strong>a</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to compare</td>
</tr>
<tr> <td><a name='SkPath_equal_operator_b'><code><strong>b</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to compare</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> pair are equivalent
### Example
<div><fiddle-embed name="@Path_equal_operator"><div><a href='#SkPath_rewind'>rewind()</a> removes <a href='#Path_Verb_Array'>Verb_Array</a> but leaves storage; since storage is not compared,
<a href='SkPath_Reference#Path'>Path</a> pair are equivalent.
</div>
#### Example Output
~~~~
empty one == two
moveTo one != two
rewind one == two
reset one == two
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_notequal_operator'>operator!=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_equal_operator_a'>a</a>, const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_equal_operator_b'>b</a>) <a href='#SkPath_copy_operator'>operator=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>)
<a name='SkPath_notequal_operator'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_notequal_operator'>operator!=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& a, const <a href='SkPath_Reference#SkPath'>SkPath</a>& b)
</pre>
Compares <a href='#SkPath_notequal_operator_a'>a</a> and <a href='#SkPath_notequal_operator_b'>b</a>; returns true if <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a>, <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='SkPath_Reference#Conic_Weight'>weights</a>
are not equivalent.
### Parameters
<table> <tr> <td><a name='SkPath_notequal_operator_a'><code><strong>a</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to compare</td>
</tr>
<tr> <td><a name='SkPath_notequal_operator_b'><code><strong>b</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to compare</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> pair are not equivalent
### Example
<div><fiddle-embed name="@Path_notequal_operator"><div><a href='SkPath_Reference#Path'>Path</a> pair are equal though their convexity is not equal.
</div>
#### Example Output
~~~~
empty one == two
add rect one == two
setConvexity one == two
convexity !=
~~~~
</fiddle-embed></div>
<a name='Property'></a>
<a name='SkPath_isInterpolatable'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isInterpolatable'>isInterpolatable</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& compare)const
</pre>
Returns true if <a href='SkPath_Reference#SkPath'>SkPath</a> contain equal <a href='SkPath_Reference#Verb'>verbs</a> and equal <a href='SkPath_Reference#Conic_Weight'>weights</a>.
If <a href='SkPath_Reference#SkPath'>SkPath</a> contain one or more <a href='SkPath_Reference#Conic'>conics</a>, the <a href='SkPath_Reference#Conic_Weight'>weights</a> must match.
<a href='#SkPath_conicTo'>conicTo</a>() may add different <a href='SkPath_Reference#Verb'>verbs</a> depending on <a href='#Conic_Weight'>conic weight</a>, so it is not
trivial to interpolate a pair of <a href='SkPath_Reference#SkPath'>SkPath</a> containing <a href='SkPath_Reference#Conic'>conics</a> with different
<a href='#Conic_Weight'>conic weight</a> values.
### Parameters
<table> <tr> <td><a name='SkPath_isInterpolatable_compare'><code><strong>compare</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to <a href='#SkPath_isInterpolatable_compare'>compare</a></td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='#Verb_Array'>verb array</a> and <a href='SkPath_Reference#Conic_Weight'>weights</a> are equivalent
### Example
<div><fiddle-embed name="@Path_isInterpolatable">
#### Example Output
~~~~
paths are interpolatable
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_isInterpolatable'>isInterpolatable</a>
<a name='Interpolate'></a>
<a name='SkPath_interpolate'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool interpolate(const <a href='SkPath_Reference#SkPath'>SkPath</a>& ending, <a href='undocumented#SkScalar'>SkScalar</a> weight, <a href='SkPath_Reference#SkPath'>SkPath</a>* out)const
</pre>
Interpolates between <a href='SkPath_Reference#Path'>Paths</a> with <a href='#Path_Point_Array'>Point_Array</a> of equal <a href='undocumented#Size'>size</a>.
Copy <a href='#Path_Verb_Array'>Verb_Array</a> and <a href='SkPath_Reference#Conic_Weight'>Weights</a> to <a href='#SkPath_interpolate_out'>out</a>, and set <a href='#SkPath_interpolate_out'>out</a> <a href='#Path_Point_Array'>Point_Array</a> to a weighted
average of this <a href='#Path_Point_Array'>Point_Array</a> and <a href='#SkPath_interpolate_ending'>ending</a> <a href='#Path_Point_Array'>Point_Array</a>, using the formula:
<code>(<a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a> * <a href='#SkPath_interpolate_weight'>weight</a>) + <a href='#SkPath_interpolate_ending'>ending</a> <a href='SkPoint_Reference#Point'>Point</a> * (1 - <a href='#SkPath_interpolate_weight'>weight</a>)</code>.
<a href='#SkPath_interpolate_weight'>weight</a> is most useful when between zero (<a href='#SkPath_interpolate_ending'>ending</a> <a href='#Path_Point_Array'>Point_Array</a>) and
one (this <a href='#Path_Point_Array'>Point_Array</a>); will work with values outside of this
range.
<a href='#SkPath_interpolate'>interpolate()</a> returns false and leaves <a href='#SkPath_interpolate_out'>out</a> unchanged if <a href='#Path_Point_Array'>Point_Array</a> is not
the same <a href='undocumented#Size'>size</a> as <a href='#SkPath_interpolate_ending'>ending</a> <a href='#Path_Point_Array'>Point_Array</a>. Call <a href='#SkPath_isInterpolatable'>isInterpolatable</a> to check <a href='SkPath_Reference#Path'>Path</a>
compatibility prior to calling <a href='#SkPath_interpolate'>interpolate()</a>.
### Parameters
<table> <tr> <td><a name='SkPath_interpolate_ending'><code><strong>ending</strong></code></a></td>
<td><a href='#Path_Point_Array'>Point_Array</a> averaged with this <a href='#Path_Point_Array'>Point_Array</a></td>
</tr>
<tr> <td><a name='SkPath_interpolate_weight'><code><strong>weight</strong></code></a></td>
<td>contribution of this <a href='#Path_Point_Array'>Point_Array</a>, and
one minus contribution of <a href='#SkPath_interpolate_ending'>ending</a> <a href='#Path_Point_Array'>Point_Array</a>
</td>
</tr>
<tr> <td><a name='SkPath_interpolate_out'><code><strong>out</strong></code></a></td>
<td><a href='SkPath_Reference#Path'>Path</a> replaced by interpolated averages</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#Path'>Paths</a> contain same number of <a href='SkPoint_Reference#Point'>Points</a>
### Example
<div><fiddle-embed name="@Path_interpolate"></fiddle-embed></div>
### See Also
<a href='#SkPath_isInterpolatable'>isInterpolatable</a>
<a name='Fill_Type'></a>
<a name='SkPath_FillType'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
enum <a href='#SkPath_FillType'>FillType</a> {
<a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>,
<a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a>,
<a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a>,
<a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a>,
};
</pre>
<a href='#Path_Fill_Type'>Fill_Type</a> selects the rule used to fill <a href='SkPath_Reference#Path'>Path</a>. <a href='SkPath_Reference#Path'>Path</a> set to <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>
fills if the sum of <a href='SkPath_Overview#Contour'>Contour</a> edges is not zero, where clockwise edges add one, and
counterclockwise edges subtract one. <a href='SkPath_Reference#Path'>Path</a> set to <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> fills if the
number of <a href='SkPath_Overview#Contour'>Contour</a> edges is odd. Each <a href='#Path_Fill_Type'>Fill_Type</a> has an inverse variant that
reverses the rule:
<a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a> fills where the sum of <a href='SkPath_Overview#Contour'>Contour</a> edges is zero;
<a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a> fills where the number of <a href='SkPath_Overview#Contour'>Contour</a> edges is even.
### Example
<div><fiddle-embed name="@Path_FillType_a"><div>The top row has two clockwise rectangles. The second row has one clockwise and
one counterclockwise rectangle. The even-odd variants draw the same. The
winding variants draw the top rectangle overlap, which has a winding of 2, the
same as the outer parts of the top rectangles, which have a winding of 1.
</div></fiddle-embed></div>
### Constants
<table style='border-collapse: collapse; width: 62.5em'>
<tr><th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Const</th>
<th style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>Value</th>
<th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Description</th></tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kWinding_FillType'><code>SkPath::kWinding_FillType</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>0</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
is enclosed by a non-zero sum of Contour Directions</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kEvenOdd_FillType'><code>SkPath::kEvenOdd_FillType</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>1</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
is enclosed by an odd number of Contours</td>
</tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kInverseWinding_FillType'><code>SkPath::kInverseWinding_FillType</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>2</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
is enclosed by a zero sum of Contour Directions</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kInverseEvenOdd_FillType'><code>SkPath::kInverseEvenOdd_FillType</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>3</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
is enclosed by an even number of Contours</td>
</tr>
</table>
### Example
<div><fiddle-embed name="d2c33dc791cd165dcc2423226ba5b095"></fiddle-embed></div>
### See Also
<a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_Style'>Style</a> <a href='#SkPath_Direction'>Direction</a> <a href='#SkPath_getFillType'>getFillType</a> <a href='#SkPath_setFillType'>setFillType</a>
<a name='SkPath_getFillType'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_getFillType'>getFillType</a>()const
</pre>
Returns <a href='#SkPath_FillType'>FillType</a>, the rule used to fill <a href='SkPath_Reference#SkPath'>SkPath</a>. <a href='#SkPath_FillType'>FillType</a> of a new <a href='SkPath_Reference#SkPath'>SkPath</a> is
<a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>.
### Return Value
one of: <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>, <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a>, <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a>,
<a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a>
### Example
<div><fiddle-embed name="@Path_getFillType">
#### Example Output
~~~~
default path fill type is kWinding_FillType
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_setFillType'>setFillType</a> <a href='#SkPath_isInverseFillType'>isInverseFillType</a>
<a name='SkPath_setFillType'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_setFillType'>setFillType</a>(<a href='#SkPath_FillType'>FillType</a> ft)
</pre>
Sets <a href='#SkPath_FillType'>FillType</a>, the rule used to fill <a href='SkPath_Reference#SkPath'>SkPath</a>. While there is no check
that <a href='#SkPath_setFillType_ft'>ft</a> is legal, values outside of <a href='#SkPath_FillType'>FillType</a> are not supported.
### Parameters
<table> <tr> <td><a name='SkPath_setFillType_ft'><code><strong>ft</strong></code></a></td>
<td>one of: <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>, <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a>, <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a>,</td>
</tr>
</table>
<a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a>
### Example
<div><fiddle-embed name="@Path_setFillType"><div>If empty <a href='SkPath_Reference#Path'>Path</a> is set to inverse <a href='#SkPath_FillType'>FillType</a>, it fills all pixels.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_getFillType'>getFillType</a> <a href='#SkPath_toggleInverseFillType'>toggleInverseFillType</a>
<a name='SkPath_isInverseFillType'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isInverseFillType'>isInverseFillType</a>()const
</pre>
Returns if <a href='#SkPath_FillType'>FillType</a> describes area outside <a href='SkPath_Reference#SkPath'>SkPath</a> geometry. The inverse fill area
extends indefinitely.
### Return Value
true if <a href='#SkPath_FillType'>FillType</a> is <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a> or <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a>
### Example
<div><fiddle-embed name="@Path_isInverseFillType_2">
#### Example Output
~~~~
default path fill type is inverse: false
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_getFillType'>getFillType</a> <a href='#SkPath_setFillType'>setFillType</a> <a href='#SkPath_toggleInverseFillType'>toggleInverseFillType</a>
<a name='SkPath_toggleInverseFillType'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_toggleInverseFillType'>toggleInverseFillType</a>()
</pre>
Replaces <a href='#SkPath_FillType'>FillType</a> with its inverse. The inverse of <a href='#SkPath_FillType'>FillType</a> describes the area
unmodified by the original <a href='#SkPath_FillType'>FillType</a>.
| <a href='#SkPath_FillType'>FillType</a> | toggled <a href='#SkPath_FillType'>FillType</a> |
| --- | --- |
| <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> | <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a> |
| <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> | <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a> |
| <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a> | <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> |
| <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a> | <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> |
### Example
<div><fiddle-embed name="400facce23d417bc5043c5f58404afbd"><div><a href='SkPath_Reference#Path'>Path</a> drawn normally and through its inverse touches every <a href='undocumented#Pixel'>pixel</a> once.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_getFillType'>getFillType</a> <a href='#SkPath_setFillType'>setFillType</a> <a href='#SkPath_isInverseFillType'>isInverseFillType</a>
<a name='Convexity'></a>
<a name='SkPath_Convexity'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
enum <a href='#SkPath_Convexity'>Convexity</a> : uint8_t {
<a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a>,
<a href='#SkPath_kConvex_Convexity'>kConvex_Convexity</a>,
<a href='#SkPath_kConcave_Convexity'>kConcave_Convexity</a>,
};
</pre>
<a href='SkPath_Reference#Path'>Path</a> is convex if it contains one <a href='SkPath_Overview#Contour'>Contour</a> and <a href='SkPath_Overview#Contour'>Contour</a> loops no more than
360 degrees, and <a href='SkPath_Overview#Contour'>Contour</a> angles all have same <a href='#SkPath_Direction'>Direction</a>. Convex <a href='SkPath_Reference#Path'>Path</a>
may have better performance and require fewer resources on <a href='#GPU_Surface'>GPU_Surface</a>.
<a href='SkPath_Reference#Path'>Path</a> is concave when either at least one <a href='#SkPath_Direction'>Direction</a> change is clockwise and
another is counterclockwise, or the sum of the changes in <a href='#SkPath_Direction'>Direction</a> is not 360
degrees.
Initially <a href='SkPath_Reference#Path'>Path</a> <a href='#SkPath_Convexity'>Convexity</a> is <a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a>. <a href='SkPath_Reference#Path'>Path</a> <a href='#SkPath_Convexity'>Convexity</a> is computed
if needed by destination <a href='SkSurface_Reference#Surface'>Surface</a>.
### Constants
<table style='border-collapse: collapse; width: 62.5em'>
<tr><th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Const</th>
<th style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>Value</th>
<th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Description</th></tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kUnknown_Convexity'><code>SkPath::kUnknown_Convexity</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>0</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
indicates Convexity has not been determined</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kConvex_Convexity'><code>SkPath::kConvex_Convexity</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>1</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
one Contour made of a simple geometry without indentations</td>
</tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kConcave_Convexity'><code>SkPath::kConcave_Convexity</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>2</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
more than one Contour, or a geometry with indentations</td>
</tr>
</table>
### Example
<div><fiddle-embed name="ac49e8b810bd6ed5d84b4f5a3b40a0ec"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_Direction'>Direction</a> <a href='#SkPath_getConvexity'>getConvexity</a> <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a> <a href='#SkPath_setConvexity'>setConvexity</a> <a href='#SkPath_isConvex'>isConvex</a>
<a name='SkPath_getConvexity'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_Convexity'>Convexity</a> <a href='#SkPath_getConvexity'>getConvexity</a>()const
</pre>
Computes <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> if required, and returns stored value.
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> is computed if stored value is <a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a>,
or if <a href='SkPath_Reference#SkPath'>SkPath</a> has been altered since <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> was computed or set.
### Return Value
computed or stored <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a>
### Example
<div><fiddle-embed name="@Path_getConvexity"></fiddle-embed></div>
### See Also
<a href='#SkPath_Convexity'>Convexity</a> <a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_Direction'>Direction</a> <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a> <a href='#SkPath_setConvexity'>setConvexity</a> <a href='#SkPath_isConvex'>isConvex</a>
<a name='SkPath_getConvexityOrUnknown'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_Convexity'>Convexity</a> <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a>()const
</pre>
Returns last computed <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a>, or <a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a> if
<a href='SkPath_Reference#SkPath'>SkPath</a> has been altered since <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> was computed or set.
### Return Value
stored <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a>
### Example
<div><fiddle-embed name="@Path_getConvexityOrUnknown"><div><a href='#SkPath_Convexity'>Convexity</a> is unknown unless <a href='#SkPath_getConvexity'>getConvexity</a> is called without a subsequent call
that alters the <a href='SkPath_Reference#Path'>path</a>.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_Convexity'>Convexity</a> <a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_Direction'>Direction</a> <a href='#SkPath_getConvexity'>getConvexity</a> <a href='#SkPath_setConvexity'>setConvexity</a> <a href='#SkPath_isConvex'>isConvex</a>
<a name='SkPath_setConvexity'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_setConvexity'>setConvexity</a>(<a href='#SkPath_Convexity'>Convexity</a> convexity)
</pre>
Stores <a href='#SkPath_setConvexity_convexity'>convexity</a> so that it is later returned by <a href='#SkPath_getConvexity'>getConvexity</a>() or <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a>().
<a href='#SkPath_setConvexity_convexity'>convexity</a> may differ from <a href='#SkPath_getConvexity'>getConvexity</a>(), although setting an incorrect value may
cause incorrect or inefficient drawing.
If <a href='#SkPath_setConvexity_convexity'>convexity</a> is <a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a>: <a href='#SkPath_getConvexity'>getConvexity</a>() will
compute <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a>, and <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a>() will return <a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a>.
If <a href='#SkPath_setConvexity_convexity'>convexity</a> is <a href='#SkPath_kConvex_Convexity'>kConvex_Convexity</a> or <a href='#SkPath_kConcave_Convexity'>kConcave_Convexity</a>, <a href='#SkPath_getConvexity'>getConvexity</a>()
and <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a>() will return <a href='#SkPath_setConvexity_convexity'>convexity</a> until the <a href='SkPath_Reference#Path'>path</a> is
altered.
### Parameters
<table> <tr> <td><a name='SkPath_setConvexity_convexity'><code><strong>convexity</strong></code></a></td>
<td>one of: <a href='#SkPath_kUnknown_Convexity'>kUnknown_Convexity</a>, <a href='#SkPath_kConvex_Convexity'>kConvex_Convexity</a>, or <a href='#SkPath_kConcave_Convexity'>kConcave_Convexity</a></td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_setConvexity"></fiddle-embed></div>
### See Also
<a href='#SkPath_Convexity'>Convexity</a> <a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_Direction'>Direction</a> <a href='#SkPath_getConvexity'>getConvexity</a> <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a> <a href='#SkPath_isConvex'>isConvex</a>
<a name='SkPath_isConvex'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isConvex'>isConvex</a>()const
</pre>
Computes <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> if required, and returns true if value is <a href='#SkPath_kConvex_Convexity'>kConvex_Convexity</a>.
If <a href='#SkPath_setConvexity'>setConvexity</a>() was called with <a href='#SkPath_kConvex_Convexity'>kConvex_Convexity</a> or <a href='#SkPath_kConcave_Convexity'>kConcave_Convexity</a>, and
the <a href='SkPath_Reference#Path'>path</a> has not been altered, <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> is not recomputed.
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> stored or computed is <a href='#SkPath_kConvex_Convexity'>kConvex_Convexity</a>
### Example
<div><fiddle-embed name="d8be8b6e59de244e4cbf58ec9554557b"><div>Concave shape is erroneously considered convex after a forced call to
<a href='#SkPath_setConvexity'>setConvexity</a>.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_Convexity'>Convexity</a> <a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_Direction'>Direction</a> <a href='#SkPath_getConvexity'>getConvexity</a> <a href='#SkPath_getConvexityOrUnknown'>getConvexityOrUnknown</a> <a href='#SkPath_setConvexity'>setConvexity</a>
<a name='SkPath_isOval'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isOval'>isOval</a>(<a href='SkRect_Reference#SkRect'>SkRect</a>* bounds)const
</pre>
Returns true if this <a href='SkPath_Reference#Path'>path</a> is recognized as an <a href='undocumented#Oval'>oval</a> or <a href='undocumented#Circle'>circle</a>.
<a href='#SkPath_isOval_bounds'>bounds</a> receives <a href='#SkPath_isOval_bounds'>bounds</a> of <a href='undocumented#Oval'>oval</a>.
<a href='#SkPath_isOval_bounds'>bounds</a> is unmodified if <a href='undocumented#Oval'>oval</a> is not found.
### Parameters
<table> <tr> <td><a name='SkPath_isOval_bounds'><code><strong>bounds</strong></code></a></td>
<td>storage for bounding <a href='SkRect_Reference#SkRect'>SkRect</a> of <a href='undocumented#Oval'>oval</a>; may be nullptr</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> is recognized as an <a href='undocumented#Oval'>oval</a> or <a href='undocumented#Circle'>circle</a>
### Example
<div><fiddle-embed name="@Path_isOval"></fiddle-embed></div>
### See Also
<a href='undocumented#Oval'>Oval</a> <a href='#SkPath_addCircle'>addCircle</a> <a href='#SkPath_addOval'>addOval</a>
<a name='SkPath_isRRect'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isRRect'>isRRect</a>(<a href='SkRRect_Reference#SkRRect'>SkRRect</a>* rrect)const
</pre>
Returns true if <a href='SkPath_Reference#Path'>path</a> is representable as <a href='SkRRect_Reference#SkRRect'>SkRRect</a>.
Returns false if <a href='SkPath_Reference#Path'>path</a> is representable as <a href='undocumented#Oval'>oval</a>, <a href='undocumented#Circle'>circle</a>, or <a href='SkRect_Reference#SkRect'>SkRect</a>.
<a href='#SkPath_isRRect_rrect'>rrect</a> receives bounds of <a href='SkRRect_Reference#SkRRect'>SkRRect</a>.
<a href='#SkPath_isRRect_rrect'>rrect</a> is unmodified if <a href='SkRRect_Reference#SkRRect'>SkRRect</a> is not found.
### Parameters
<table> <tr> <td><a name='SkPath_isRRect_rrect'><code><strong>rrect</strong></code></a></td>
<td>storage for bounding <a href='SkRect_Reference#SkRect'>SkRect</a> of <a href='SkRRect_Reference#SkRRect'>SkRRect</a>; may be nullptr</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> contains only <a href='SkRRect_Reference#SkRRect'>SkRRect</a>
### Example
<div><fiddle-embed name="@Path_isRRect"><div>Draw rounded rectangle and its bounds.
</div></fiddle-embed></div>
### See Also
<a href='#RRect'>Round_Rect</a> <a href='#SkPath_addRoundRect'>addRoundRect</a> <a href='#SkPath_addRRect'>addRRect</a>
<a name='SkPath_reset'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_reset'>reset()</a>
</pre>
Sets <a href='SkPath_Reference#SkPath'>SkPath</a> to its initial state.
Removes verb array, <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array, and <a href='SkPath_Reference#Conic_Weight'>weights</a>, and sets <a href='#SkPath_FillType'>FillType</a> to <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>.
Internal storage associated with <a href='SkPath_Reference#SkPath'>SkPath</a> is released.
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_reset"></fiddle-embed></div>
### See Also
<a href='#SkPath_rewind'>rewind()</a>
<a name='SkPath_rewind'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rewind'>rewind()</a>
</pre>
Sets <a href='SkPath_Reference#SkPath'>SkPath</a> to its initial state, preserving internal storage.
Removes verb array, <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array, and <a href='SkPath_Reference#Conic_Weight'>weights</a>, and sets <a href='#SkPath_FillType'>FillType</a> to <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>.
Internal storage associated with <a href='SkPath_Reference#SkPath'>SkPath</a> is retained.
Use <a href='#SkPath_rewind'>rewind()</a> instead of <a href='#SkPath_reset'>reset()</a> if <a href='SkPath_Reference#SkPath'>SkPath</a> storage will be reused and performance
is critical.
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_rewind"><div>Although path1 retains its internal storage, it is indistinguishable from
a newly initialized <a href='SkPath_Reference#Path'>path</a>.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_reset'>reset()</a>
<a name='SkPath_isEmpty'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isEmpty'>isEmpty</a>()const
</pre>
Returns if <a href='SkPath_Reference#SkPath'>SkPath</a> is empty.
Empty <a href='SkPath_Reference#SkPath'>SkPath</a> may have <a href='#SkPath_FillType'>FillType</a> but has no <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a>, or <a href='SkPath_Reference#Conic'>conic</a> weight.
<a href='#SkPath_empty_constructor'>SkPath()</a> constructs empty <a href='SkPath_Reference#SkPath'>SkPath</a>; <a href='#SkPath_reset'>reset()</a> and <a href='#SkPath_rewind'>rewind()</a> make <a href='SkPath_Reference#SkPath'>SkPath</a> empty.
### Return Value
true if the <a href='SkPath_Reference#Path'>path</a> contains no <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> array
### Example
<div><fiddle-embed name="@Path_isEmpty">
#### Example Output
~~~~
initial path is empty
after moveTo path is not empty
after rewind path is empty
after lineTo path is not empty
after reset path is empty
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_empty_constructor'>SkPath()</a> <a href='#SkPath_reset'>reset()</a> <a href='#SkPath_rewind'>rewind()</a>
<a name='SkPath_isLastContourClosed'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isLastContourClosed'>isLastContourClosed</a>()const
</pre>
Returns if <a href='SkPath_Overview#Contour'>contour</a> is closed.
<a href='SkPath_Overview#Contour'>Contour</a> is closed if <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> array was last modified by <a href='#SkPath_close'>close()</a>. When stroked,
closed <a href='SkPath_Overview#Contour'>contour</a> draws <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_Join'>Join</a> instead of <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_Cap'>Cap</a> at first and last <a href='SkPoint_Reference#SkPoint'>SkPoint</a>.
### Return Value
true if the last <a href='SkPath_Overview#Contour'>contour</a> ends with a <a href='#SkPath_kClose_Verb'>kClose_Verb</a>
### Example
<div><fiddle-embed name="@Path_isLastContourClosed"><div><a href='#SkPath_close'>close()</a> has no effect if <a href='SkPath_Reference#Path'>Path</a> is empty; <a href='#SkPath_isLastContourClosed'>isLastContourClosed</a>() returns
false until <a href='SkPath_Reference#Path'>Path</a> has geometry followed by <a href='#SkPath_close'>close()</a>.
</div>
#### Example Output
~~~~
initial last contour is not closed
after close last contour is not closed
after lineTo last contour is not closed
after close last contour is closed
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_close'>close()</a>
<a name='SkPath_isFinite'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isFinite'>isFinite</a>()const
</pre>
Returns true for finite <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array values between negative <a href='undocumented#SK_ScalarMax'>SK_ScalarMax</a> and
positive <a href='undocumented#SK_ScalarMax'>SK_ScalarMax</a>. Returns false for any <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array value of
<a href='undocumented#SK_ScalarInfinity'>SK_ScalarInfinity</a>, <a href='undocumented#SK_ScalarNegativeInfinity'>SK_ScalarNegativeInfinity</a>, or <a href='undocumented#SK_ScalarNaN'>SK_ScalarNaN</a>.
### Return Value
true if all <a href='SkPoint_Reference#SkPoint'>SkPoint</a> values are finite
### Example
<div><fiddle-embed name="@Path_isFinite">
#### Example Output
~~~~
initial path is finite
after line path is finite
after scale path is not finite
~~~~
</fiddle-embed></div>
### See Also
<a href='undocumented#SkScalar'>SkScalar</a>
<a name='SkPath_isVolatile'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isVolatile'>isVolatile</a>()const
</pre>
Returns true if the <a href='SkPath_Reference#Path'>path</a> is volatile; it will not be altered or discarded
by the caller after it is drawn. <a href='SkPath_Reference#SkPath'>SkPath</a> by default have volatile set false, allowing
<a href='SkSurface_Reference#SkSurface'>SkSurface</a> to attach a cache of <a href='undocumented#Data'>data</a> which speeds repeated drawing. If true, <a href='SkSurface_Reference#SkSurface'>SkSurface</a>
may not speed repeated drawing.
### Return Value
true if caller will alter <a href='SkPath_Reference#SkPath'>SkPath</a> after drawing
### Example
<div><fiddle-embed name="@Path_isVolatile">
#### Example Output
~~~~
volatile by default is false
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_setIsVolatile'>setIsVolatile</a>
<a name='Volatile'></a>
<a name='SkPath_setIsVolatile'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_setIsVolatile'>setIsVolatile</a>(bool <a href='#SkPath_isVolatile'>isVolatile</a>)
</pre>
Specifies whether <a href='SkPath_Reference#SkPath'>SkPath</a> is volatile; whether it will be altered or discarded
by the caller after it is drawn. <a href='SkPath_Reference#SkPath'>SkPath</a> by default have volatile set false, allowing
<a href='undocumented#SkBaseDevice'>SkBaseDevice</a> to attach a cache of <a href='undocumented#Data'>data</a> which speeds repeated drawing.
Mark temporary <a href='SkPath_Reference#Path'>paths</a>, discarded or modified after use, as volatile
to inform <a href='undocumented#SkBaseDevice'>SkBaseDevice</a> that the <a href='SkPath_Reference#Path'>path</a> need not be cached.
Mark animating <a href='SkPath_Reference#SkPath'>SkPath</a> volatile to improve performance.
Mark unchanging <a href='SkPath_Reference#SkPath'>SkPath</a> non-volatile to improve repeated rendering.
<a href='undocumented#Raster_Surface'>raster surface</a> <a href='SkPath_Reference#SkPath'>SkPath</a> draws are affected by volatile for some shadows.
<a href='undocumented#GPU_Surface'>GPU surface</a> <a href='SkPath_Reference#SkPath'>SkPath</a> draws are affected by volatile for some shadows and concave geometries.
### Parameters
<table> <tr> <td><a name='SkPath_setIsVolatile_isVolatile'><code><strong>isVolatile</strong></code></a></td>
<td>true if caller will alter <a href='SkPath_Reference#SkPath'>SkPath</a> after drawing</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_setIsVolatile"></fiddle-embed></div>
### See Also
<a href='#SkPath_setIsVolatile_isVolatile'>isVolatile</a>
<a name='SkPath_IsLineDegenerate'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
static bool <a href='#SkPath_IsLineDegenerate'>IsLineDegenerate</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, bool exact)
</pre>
Tests if <a href='undocumented#Line'>line</a> between <a href='SkPoint_Reference#SkPoint'>SkPoint</a> pair is degenerate.
<a href='undocumented#Line'>Line</a> with no length or that moves a very short distance is degenerate; it is
treated as a <a href='SkPoint_Reference#Point'>point</a>.
<a href='#SkPath_IsLineDegenerate_exact'>exact</a> changes the equality test. If true, returns true only if <a href='#SkPath_IsLineDegenerate_p1'>p1</a> equals <a href='#SkPath_IsLineDegenerate_p2'>p2</a>.
If false, returns true if <a href='#SkPath_IsLineDegenerate_p1'>p1</a> equals or nearly equals <a href='#SkPath_IsLineDegenerate_p2'>p2</a>.
### Parameters
<table> <tr> <td><a name='SkPath_IsLineDegenerate_p1'><code><strong>p1</strong></code></a></td>
<td><a href='undocumented#Line'>line</a> start <a href='SkPoint_Reference#Point'>point</a></td>
</tr>
<tr> <td><a name='SkPath_IsLineDegenerate_p2'><code><strong>p2</strong></code></a></td>
<td><a href='undocumented#Line'>line</a> end <a href='SkPoint_Reference#Point'>point</a></td>
</tr>
<tr> <td><a name='SkPath_IsLineDegenerate_exact'><code><strong>exact</strong></code></a></td>
<td>if false, allow nearly equals</td>
</tr>
</table>
### Return Value
true if <a href='undocumented#Line'>line</a> is degenerate; its length is effectively zero
### Example
<div><fiddle-embed name="@Path_IsLineDegenerate"><div>As single precision floats, 100 and 100.000001 have the same bit representation,
and are exactly equal. 100 and 100.0001 have different bit representations, and
are not exactly equal, but are nearly equal.
</div>
#### Example Output
~~~~
line from (100,100) to (100,100) is degenerate, nearly
line from (100,100) to (100,100) is degenerate, exactly
line from (100,100) to (100.0001,100.0001) is degenerate, nearly
line from (100,100) to (100.0001,100.0001) is not degenerate, exactly
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_IsQuadDegenerate'>IsQuadDegenerate</a> <a href='#SkPath_IsCubicDegenerate'>IsCubicDegenerate</a>
<a name='SkPath_IsQuadDegenerate'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
static bool <a href='#SkPath_IsQuadDegenerate'>IsQuadDegenerate</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p3, bool exact)
</pre>
Tests if <a href='SkPath_Reference#Quad'>quad</a> is degenerate.
<a href='SkPath_Reference#Quad'>Quad</a> with no length or that moves a very short distance is degenerate; it is
treated as a <a href='SkPoint_Reference#Point'>point</a>.
### Parameters
<table> <tr> <td><a name='SkPath_IsQuadDegenerate_p1'><code><strong>p1</strong></code></a></td>
<td><a href='SkPath_Reference#Quad'>quad</a> start <a href='SkPoint_Reference#Point'>point</a></td>
</tr>
<tr> <td><a name='SkPath_IsQuadDegenerate_p2'><code><strong>p2</strong></code></a></td>
<td><a href='SkPath_Reference#Quad'>quad</a> control <a href='SkPoint_Reference#Point'>point</a></td>
</tr>
<tr> <td><a name='SkPath_IsQuadDegenerate_p3'><code><strong>p3</strong></code></a></td>
<td><a href='SkPath_Reference#Quad'>quad</a> end <a href='SkPoint_Reference#Point'>point</a></td>
</tr>
<tr> <td><a name='SkPath_IsQuadDegenerate_exact'><code><strong>exact</strong></code></a></td>
<td>if true, returns true only if <a href='#SkPath_IsQuadDegenerate_p1'>p1</a>, <a href='#SkPath_IsQuadDegenerate_p2'>p2</a>, and <a href='#SkPath_IsQuadDegenerate_p3'>p3</a> are equal;</td>
</tr>
</table>
if false, returns true if <a href='#SkPath_IsQuadDegenerate_p1'>p1</a>, <a href='#SkPath_IsQuadDegenerate_p2'>p2</a>, and <a href='#SkPath_IsQuadDegenerate_p3'>p3</a> are equal or nearly equal
### Return Value
true if <a href='SkPath_Reference#Quad'>quad</a> is degenerate; its length is effectively zero
### Example
<div><fiddle-embed name="@Path_IsQuadDegenerate"><div>As single precision floats: 100, 100.00001, and 100.00002 have different bit representations
but nearly the same value. Translating all three by 1000 gives them the same bit representation;
the fractional portion of the number can not be represented by the float and is lost.
</div>
#### Example Output
~~~~
quad (100,100), (100.00001,100.00001), (100.00002,100.00002) is degenerate, nearly
quad (1100,1100), (1100,1100), (1100,1100) is degenerate, nearly
quad (100,100), (100.00001,100.00001), (100.00002,100.00002) is not degenerate, exactly
quad (1100,1100), (1100,1100), (1100,1100) is degenerate, exactly
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_IsLineDegenerate'>IsLineDegenerate</a> <a href='#SkPath_IsCubicDegenerate'>IsCubicDegenerate</a>
<a name='SkPath_IsCubicDegenerate'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
static bool <a href='#SkPath_IsCubicDegenerate'>IsCubicDegenerate</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p3,
const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p4, bool exact)
</pre>
Tests if <a href='SkPath_Reference#Cubic'>cubic</a> is degenerate.
<a href='SkPath_Reference#Cubic'>Cubic</a> with no length or that moves a very short distance is degenerate; it is
treated as a <a href='SkPoint_Reference#Point'>point</a>.
### Parameters
<table> <tr> <td><a name='SkPath_IsCubicDegenerate_p1'><code><strong>p1</strong></code></a></td>
<td><a href='SkPath_Reference#Cubic'>cubic</a> start <a href='SkPoint_Reference#Point'>point</a></td>
</tr>
<tr> <td><a name='SkPath_IsCubicDegenerate_p2'><code><strong>p2</strong></code></a></td>
<td><a href='SkPath_Reference#Cubic'>cubic</a> control <a href='SkPoint_Reference#Point'>point</a> 1</td>
</tr>
<tr> <td><a name='SkPath_IsCubicDegenerate_p3'><code><strong>p3</strong></code></a></td>
<td><a href='SkPath_Reference#Cubic'>cubic</a> control <a href='SkPoint_Reference#Point'>point</a> 2</td>
</tr>
<tr> <td><a name='SkPath_IsCubicDegenerate_p4'><code><strong>p4</strong></code></a></td>
<td><a href='SkPath_Reference#Cubic'>cubic</a> end <a href='SkPoint_Reference#Point'>point</a></td>
</tr>
<tr> <td><a name='SkPath_IsCubicDegenerate_exact'><code><strong>exact</strong></code></a></td>
<td>if true, returns true only if <a href='#SkPath_IsCubicDegenerate_p1'>p1</a>, <a href='#SkPath_IsCubicDegenerate_p2'>p2</a>, <a href='#SkPath_IsCubicDegenerate_p3'>p3</a>, and <a href='#SkPath_IsCubicDegenerate_p4'>p4</a> are equal;</td>
</tr>
</table>
if false, returns true if <a href='#SkPath_IsCubicDegenerate_p1'>p1</a>, <a href='#SkPath_IsCubicDegenerate_p2'>p2</a>, <a href='#SkPath_IsCubicDegenerate_p3'>p3</a>, and <a href='#SkPath_IsCubicDegenerate_p4'>p4</a> are equal or nearly equal
### Return Value
true if <a href='SkPath_Reference#Cubic'>cubic</a> is degenerate; its length is effectively zero
### Example
<div><fiddle-embed name="@Path_IsCubicDegenerate">
#### Example Output
~~~~
0.00024414062 is degenerate
0.00024414065 is length
~~~~
</fiddle-embed></div>
<a name='SkPath_isLine'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isLine'>isLine</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='undocumented#Line'>line</a>[2])const
</pre>
Returns true if <a href='SkPath_Reference#SkPath'>SkPath</a> contains only one <a href='#SkPath_isLine_line'>line</a>;
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> array has two entries: <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, <a href='#SkPath_kLine_Verb'>kLine_Verb</a>.
If <a href='SkPath_Reference#SkPath'>SkPath</a> contains one <a href='#SkPath_isLine_line'>line</a> and <a href='#SkPath_isLine_line'>line</a> is not nullptr, <a href='#SkPath_isLine_line'>line</a> is set to
<a href='#SkPath_isLine_line'>line</a> start <a href='SkPoint_Reference#Point'>point</a> and <a href='#SkPath_isLine_line'>line</a> end <a href='SkPoint_Reference#Point'>point</a>.
Returns false if <a href='SkPath_Reference#SkPath'>SkPath</a> is not one <a href='#SkPath_isLine_line'>line</a>; <a href='#SkPath_isLine_line'>line</a> is unaltered.
### Parameters
<table> <tr> <td><a name='SkPath_isLine_line'><code><strong>line</strong></code></a></td>
<td>storage for <a href='#SkPath_isLine_line'>line</a>. May be nullptr</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> contains exactly one <a href='#SkPath_isLine_line'>line</a>
### Example
<div><fiddle-embed name="@Path_isLine">
#### Example Output
~~~~
empty is not line
zero line is line (0,0) (0,0)
line is line (10,10) (20,20)
second move is not line
~~~~
</fiddle-embed></div>
<a name='Point_Array'></a>
<a href='#Path_Point_Array'>Point_Array</a> contains <a href='SkPoint_Reference#Point'>Points</a> satisfying the allocated <a href='SkPoint_Reference#Point'>Points</a> for
each <a href='#SkPath_Verb'>Verb</a> in <a href='#Path_Verb_Array'>Verb_Array</a>. For instance, <a href='SkPath_Reference#Path'>Path</a> containing one <a href='SkPath_Overview#Contour'>Contour</a> with <a href='undocumented#Line'>Line</a>
and <a href='SkPath_Reference#Quad'>Quad</a> is described by <a href='#Path_Verb_Array'>Verb_Array</a>: <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, <a href='#SkPath_kLine_Verb'>kLine_Verb</a>, <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a>; and
one <a href='SkPoint_Reference#Point'>Point</a> for move, one <a href='SkPoint_Reference#Point'>Point</a> for <a href='undocumented#Line'>Line</a>, two <a href='SkPoint_Reference#Point'>Points</a> for <a href='SkPath_Reference#Quad'>Quad</a>; totaling four <a href='SkPoint_Reference#Point'>Points</a>.
<a href='#Path_Point_Array'>Point_Array</a> may be read directly from <a href='SkPath_Reference#Path'>Path</a> with <a href='#SkPath_getPoints'>getPoints</a>, or inspected with
<a href='#SkPath_getPoint'>getPoint</a>, with <a href='#SkPath_Iter'>Iter</a>, or with <a href='#SkPath_RawIter'>RawIter</a>.
<a name='SkPath_getPoints'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
int <a href='#SkPath_getPoints'>getPoints</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='SkPoint_Reference#Point'>points</a>[], int max)const
</pre>
Returns number of <a href='#SkPath_getPoints_points'>points</a> in <a href='SkPath_Reference#SkPath'>SkPath</a>. Up to <a href='#SkPath_getPoints_max'>max</a> <a href='#SkPath_getPoints_points'>points</a> are copied.
<a href='#SkPath_getPoints_points'>points</a> may be nullptr; then, <a href='#SkPath_getPoints_max'>max</a> must be zero.
If <a href='#SkPath_getPoints_max'>max</a> is greater than number of <a href='#SkPath_getPoints_points'>points</a>, excess <a href='#SkPath_getPoints_points'>points</a> storage is unaltered.
### Parameters
<table> <tr> <td><a name='SkPath_getPoints_points'><code><strong>points</strong></code></a></td>
<td>storage for <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#Point_Array'>SkPoint array</a>. May be nullptr</td>
</tr>
<tr> <td><a name='SkPath_getPoints_max'><code><strong>max</strong></code></a></td>
<td>maximum to copy; must be greater than or equal to zero</td>
</tr>
</table>
### Return Value
<a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#Point_Array'>SkPoint array</a> length
### Example
<div><fiddle-embed name="@Path_getPoints">
#### Example Output
~~~~
no points point count: 3
zero max point count: 3
too small point count: 3 (0,0) (20,20)
just right point count: 3 (0,0) (20,20) (-10,-10)
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_countPoints'>countPoints</a> <a href='#SkPath_getPoint'>getPoint</a>
<a name='SkPath_countPoints'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
int <a href='#SkPath_countPoints'>countPoints</a>()const
</pre>
Returns the number of <a href='SkPoint_Reference#Point'>points</a> in <a href='SkPath_Reference#SkPath'>SkPath</a>.
<a href='SkPoint_Reference#SkPoint'>SkPoint</a> count is initially zero.
### Return Value
<a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array length
### Example
<div><fiddle-embed name="@Path_countPoints">
#### Example Output
~~~~
empty point count: 0
zero line point count: 2
line point count: 2
second move point count: 3
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_getPoints'>getPoints</a>
<a name='SkPath_getPoint'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_getPoint'>getPoint</a>(int index)const
</pre>
Returns <a href='SkPoint_Reference#SkPoint'>SkPoint</a> at <a href='#SkPath_getPoint_index'>index</a> in <a href='SkPath_Reference#Point_Array'>SkPoint array</a>. Valid range for <a href='#SkPath_getPoint_index'>index</a> is
0 to <a href='#SkPath_countPoints'>countPoints</a>() - 1.
Returns (0, 0) if <a href='#SkPath_getPoint_index'>index</a> is out of range.
### Parameters
<table> <tr> <td><a name='SkPath_getPoint_index'><code><strong>index</strong></code></a></td>
<td><a href='SkPath_Reference#Point_Array'>SkPoint array</a> element selector</td>
</tr>
</table>
### Return Value
<a href='SkPath_Reference#Point_Array'>SkPoint array</a> value or (0, 0)
### Example
<div><fiddle-embed name="@Path_getPoint">
#### Example Output
~~~~
point 0: (-10,-10)
point 1: (10,10)
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_countPoints'>countPoints</a> <a href='#SkPath_getPoints'>getPoints</a>
<a name='Verb_Array'></a>
<a href='#Path_Verb_Array'>Verb_Array</a> always starts with <a href='#SkPath_kMove_Verb'>kMove_Verb</a>.
If <a href='#SkPath_kClose_Verb'>kClose_Verb</a> is not the last entry, it is always followed by <a href='#SkPath_kMove_Verb'>kMove_Verb</a>;
the quantity of <a href='#SkPath_kMove_Verb'>kMove_Verb</a> equals the <a href='SkPath_Overview#Contour'>Contour</a> count.
<a href='#Path_Verb_Array'>Verb_Array</a> does not include or count <a href='#SkPath_kDone_Verb'>kDone_Verb</a>; it is a convenience
returned when iterating through <a href='#Path_Verb_Array'>Verb_Array</a>.
<a href='#Path_Verb_Array'>Verb_Array</a> may be read directly from <a href='SkPath_Reference#Path'>Path</a> with <a href='#SkPath_getVerbs'>getVerbs</a>, or inspected with <a href='#SkPath_Iter'>Iter</a>,
or with <a href='#SkPath_RawIter'>RawIter</a>.
<a name='SkPath_countVerbs'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
int <a href='#SkPath_countVerbs'>countVerbs</a>()const
</pre>
Returns the number of <a href='SkPath_Reference#Verb'>verbs</a>: <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, <a href='#SkPath_kLine_Verb'>kLine_Verb</a>, <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a>, <a href='#SkPath_kConic_Verb'>kConic_Verb</a>,
<a href='#SkPath_kCubic_Verb'>kCubic_Verb</a>, and <a href='#SkPath_kClose_Verb'>kClose_Verb</a>; added to <a href='SkPath_Reference#SkPath'>SkPath</a>.
### Return Value
length of verb array
### Example
<div><fiddle-embed name="@Path_countVerbs">
#### Example Output
~~~~
empty verb count: 0
round rect verb count: 10
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_getVerbs'>getVerbs</a> <a href='#SkPath_Iter'>Iter</a> <a href='#SkPath_RawIter'>RawIter</a>
<a name='SkPath_getVerbs'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
int <a href='#SkPath_getVerbs'>getVerbs</a>(uint8_t <a href='SkPath_Reference#Verb'>verbs</a>[], int max)const
</pre>
Returns the number of <a href='#SkPath_getVerbs_verbs'>verbs</a> in the <a href='SkPath_Reference#Path'>path</a>. Up to <a href='#SkPath_getVerbs_max'>max</a> <a href='#SkPath_getVerbs_verbs'>verbs</a> are copied. The
<a href='#SkPath_getVerbs_verbs'>verbs</a> are copied as one byte per verb.
### Parameters
<table> <tr> <td><a name='SkPath_getVerbs_verbs'><code><strong>verbs</strong></code></a></td>
<td>storage for <a href='#SkPath_getVerbs_verbs'>verbs</a>, may be nullptr</td>
</tr>
<tr> <td><a name='SkPath_getVerbs_max'><code><strong>max</strong></code></a></td>
<td>maximum number to copy into <a href='#SkPath_getVerbs_verbs'>verbs</a></td>
</tr>
</table>
### Return Value
the actual number of <a href='#SkPath_getVerbs_verbs'>verbs</a> in the <a href='SkPath_Reference#Path'>path</a>
### Example
<div><fiddle-embed name="@Path_getVerbs">
#### Example Output
~~~~
no verbs verb count: 3
zero max verb count: 3
too small verb count: 3 move line
just right verb count: 3 move line line
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_countVerbs'>countVerbs</a> <a href='#SkPath_getPoints'>getPoints</a> <a href='#SkPath_Iter'>Iter</a> <a href='#SkPath_RawIter'>RawIter</a>
<a name='SkPath_swap'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_swap'>swap</a>(<a href='SkPath_Reference#SkPath'>SkPath</a>& other)
</pre>
Exchanges the <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, <a href='SkPath_Reference#Conic_Weight'>weights</a>, and <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a> with <a href='#SkPath_swap_other'>other</a>.
Cached state is also exchanged. <a href='#SkPath_swap'>swap()</a> internally exchanges pointers, so
it is lightweight and does not allocate memory.
<a href='#SkPath_swap'>swap()</a> usage has largely been replaced by <a href='#SkPath_copy_operator'>operator=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>).
<a href='SkPath_Reference#SkPath'>SkPath</a> do not copy their content on assignment until they are written to,
making assignment as efficient as <a href='#SkPath_swap'>swap()</a>.
### Parameters
<table> <tr> <td><a name='SkPath_swap_other'><code><strong>other</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> exchanged by value</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_swap">
#### Example Output
~~~~
path1 bounds = 0, 0, 0, 0
path2 bounds = 10, 20, 30, 40
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_copy_operator'>operator=</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>)
<a name='SkPath_getBounds'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='#SkPath_getBounds'>getBounds</a>()const
</pre>
Returns minimum and maximum axes values of <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array.
Returns (0, 0, 0, 0) if <a href='SkPath_Reference#SkPath'>SkPath</a> contains no <a href='SkPoint_Reference#Point'>points</a>. Returned bounds width and height may
be larger or smaller than area affected when <a href='SkPath_Reference#SkPath'>SkPath</a> is drawn.
<a href='SkRect_Reference#SkRect'>SkRect</a> returned includes all <a href='SkPoint_Reference#SkPoint'>SkPoint</a> added to <a href='SkPath_Reference#SkPath'>SkPath</a>, including <a href='SkPoint_Reference#SkPoint'>SkPoint</a> associated with
<a href='#SkPath_kMove_Verb'>kMove_Verb</a> that define empty <a href='SkPath_Overview#Contour'>contours</a>.
### Return Value
bounds of all <a href='SkPoint_Reference#SkPoint'>SkPoint</a> in <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array
### Example
<div><fiddle-embed name="@Path_getBounds"><div>Bounds of upright <a href='undocumented#Circle'>Circle</a> can be predicted from center and radius.
Bounds of rotated <a href='undocumented#Circle'>Circle</a> includes control <a href='SkPoint_Reference#Point'>Points</a> outside of filled area.
</div>
#### Example Output
~~~~
empty bounds = 0, 0, 0, 0
circle bounds = 25, 20, 75, 70
rotated circle bounds = 14.6447, 9.64466, 85.3553, 80.3553
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_computeTightBounds'>computeTightBounds</a> <a href='#SkPath_updateBoundsCache'>updateBoundsCache</a>
<a name='Utility'></a>
<a name='SkPath_updateBoundsCache'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_updateBoundsCache'>updateBoundsCache</a>()const
</pre>
Updates internal bounds so that subsequent calls to <a href='#SkPath_getBounds'>getBounds</a>() are instantaneous.
Unaltered copies of <a href='SkPath_Reference#SkPath'>SkPath</a> may also access cached bounds through <a href='#SkPath_getBounds'>getBounds</a>().
For now, identical to calling <a href='#SkPath_getBounds'>getBounds</a>() and ignoring the returned value.
Call to prepare <a href='SkPath_Reference#SkPath'>SkPath</a> subsequently drawn from multiple threads,
to avoid a race condition where each draw separately computes the bounds.
### Example
<div><fiddle-embed name="@Path_updateBoundsCache">
#### Example Output
~~~~
#Volatile
uncached avg: 0.18048 ms
cached avg: 0.182784 ms
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_getBounds'>getBounds</a>
<a name='SkPath_computeTightBounds'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkRect_Reference#SkRect'>SkRect</a> <a href='#SkPath_computeTightBounds'>computeTightBounds</a>()const
</pre>
Returns minimum and maximum axes values of the <a href='undocumented#Line'>lines</a> and <a href='undocumented#Curve'>curves</a> in <a href='SkPath_Reference#SkPath'>SkPath</a>.
Returns (0, 0, 0, 0) if <a href='SkPath_Reference#SkPath'>SkPath</a> contains no <a href='SkPoint_Reference#Point'>points</a>.
Returned bounds width and height may be larger or smaller than area affected
when <a href='SkPath_Reference#SkPath'>SkPath</a> is drawn.
Includes <a href='SkPoint_Reference#SkPoint'>SkPoint</a> associated with <a href='#SkPath_kMove_Verb'>kMove_Verb</a> that define empty
<a href='SkPath_Overview#Contour'>contours</a>.
Behaves identically to <a href='#SkPath_getBounds'>getBounds</a>() when <a href='SkPath_Reference#SkPath'>SkPath</a> contains
only <a href='undocumented#Line'>lines</a>. If <a href='SkPath_Reference#SkPath'>SkPath</a> contains <a href='undocumented#Curve'>curves</a>, computed bounds includes
the maximum extent of the <a href='SkPath_Reference#Quad'>quad</a>, <a href='SkPath_Reference#Conic'>conic</a>, or <a href='SkPath_Reference#Cubic'>cubic</a>; is slower than <a href='#SkPath_getBounds'>getBounds</a>();
and unlike <a href='#SkPath_getBounds'>getBounds</a>(), does not cache the result.
### Return Value
tight bounds of <a href='undocumented#Curve'>curves</a> in <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_computeTightBounds">
#### Example Output
~~~~
empty bounds = 0, 0, 0, 0
circle bounds = 25, 20, 75, 70
rotated circle bounds = 25, 20, 75, 70
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_getBounds'>getBounds</a>
<a name='SkPath_conservativelyContainsRect'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_conservativelyContainsRect'>conservativelyContainsRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>)const
</pre>
Returns true if <a href='#SkPath_conservativelyContainsRect_rect'>rect</a> is contained by <a href='SkPath_Reference#SkPath'>SkPath</a>.
May return false when <a href='#SkPath_conservativelyContainsRect_rect'>rect</a> is contained by <a href='SkPath_Reference#SkPath'>SkPath</a>.
For now, only returns true if <a href='SkPath_Reference#SkPath'>SkPath</a> has one <a href='SkPath_Overview#Contour'>contour</a> and is convex.
<a href='#SkPath_conservativelyContainsRect_rect'>rect</a> may share <a href='SkPoint_Reference#Point'>points</a> and edges with <a href='SkPath_Reference#SkPath'>SkPath</a> and be contained.
Returns true if <a href='#SkPath_conservativelyContainsRect_rect'>rect</a> is empty, that is, it has zero width or height; and
the <a href='SkPoint_Reference#SkPoint'>SkPoint</a> or <a href='undocumented#Line'>line</a> described by <a href='#SkPath_conservativelyContainsRect_rect'>rect</a> is contained by <a href='SkPath_Reference#SkPath'>SkPath</a>.
### Parameters
<table> <tr> <td><a name='SkPath_conservativelyContainsRect_rect'><code><strong>rect</strong></code></a></td>
<td><a href='SkRect_Reference#SkRect'>SkRect</a>, <a href='undocumented#Line'>line</a>, or <a href='SkPoint_Reference#SkPoint'>SkPoint</a> checked for containment</td>
</tr>
</table>
### Return Value
true if <a href='#SkPath_conservativelyContainsRect_rect'>rect</a> is contained
### Example
<div><fiddle-embed name="@Path_conservativelyContainsRect"><div><a href='SkRect_Reference#Rect'>Rect</a> is drawn in blue if it is contained by red <a href='SkPath_Reference#Path'>Path</a>.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_contains'>contains</a> <a href='undocumented#Op'>Op</a> <a href='SkRect_Reference#Rect'>Rect</a> <a href='#SkPath_Convexity'>Convexity</a>
<a name='SkPath_incReserve'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_incReserve'>incReserve</a>(int extraPtCount)
</pre>
Grows <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='#Verb_Array'>verb array</a> and <a href='SkPath_Reference#Point_Array'>SkPoint array</a> to contain <a href='#SkPath_incReserve_extraPtCount'>extraPtCount</a> additional <a href='SkPoint_Reference#SkPoint'>SkPoint</a>.
May improve performance and use less memory by
reducing the number and <a href='undocumented#Size'>size</a> of allocations when creating <a href='SkPath_Reference#SkPath'>SkPath</a>.
### Parameters
<table> <tr> <td><a name='SkPath_incReserve_extraPtCount'><code><strong>extraPtCount</strong></code></a></td>
<td>number of additional <a href='SkPoint_Reference#SkPoint'>SkPoint</a> to allocate</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_incReserve"></fiddle-embed></div>
### See Also
<a href='#Path_Point_Array'>Point_Array</a>
<a name='SkPath_shrinkToFit'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_shrinkToFit'>shrinkToFit</a>()
</pre>
Shrinks <a href='SkPath_Reference#SkPath'>SkPath</a> verb array and <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array storage to discard unused capacity.
May reduce the heap overhead for <a href='SkPath_Reference#SkPath'>SkPath</a> known to be fully constructed.
### See Also
<a href='#SkPath_incReserve'>incReserve</a>
<a name='Build'></a>
<a name='SkPath_moveTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_moveTo'>moveTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y)
</pre>
Adds beginning of <a href='SkPath_Overview#Contour'>contour</a> at <a href='SkPoint_Reference#SkPoint'>SkPoint</a> (<a href='#SkPath_moveTo_x'>x</a>, <a href='#SkPath_moveTo_y'>y</a>).
### Parameters
<table> <tr> <td><a name='SkPath_moveTo_x'><code><strong>x</strong></code></a></td>
<td>x-axis value of <a href='SkPath_Overview#Contour'>contour</a> start</td>
</tr>
<tr> <td><a name='SkPath_moveTo_y'><code><strong>y</strong></code></a></td>
<td>y-axis value of <a href='SkPath_Overview#Contour'>contour</a> start</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_moveTo"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_lineTo'>lineTo</a> <a href='#SkPath_rMoveTo'>rMoveTo</a> <a href='#SkPath_quadTo'>quadTo</a> <a href='#SkPath_conicTo'>conicTo</a> <a href='#SkPath_cubicTo'>cubicTo</a> <a href='#SkPath_close'>close()</a>
<a name='SkPath_moveTo_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_moveTo'>moveTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p)
</pre>
Adds beginning of <a href='SkPath_Overview#Contour'>contour</a> at <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_moveTo_2_p'>p</a>.
### Parameters
<table> <tr> <td><a name='SkPath_moveTo_2_p'><code><strong>p</strong></code></a></td>
<td><a href='SkPath_Overview#Contour'>contour</a> start</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_moveTo_2"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_lineTo'>lineTo</a> <a href='#SkPath_rMoveTo'>rMoveTo</a> <a href='#SkPath_quadTo'>quadTo</a> <a href='#SkPath_conicTo'>conicTo</a> <a href='#SkPath_cubicTo'>cubicTo</a> <a href='#SkPath_close'>close()</a>
<a name='SkPath_rMoveTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rMoveTo'>rMoveTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy)
</pre>
Adds beginning of <a href='SkPath_Overview#Contour'>contour</a> relative to <a href='#Last_Point'>last point</a>.
If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, starts <a href='SkPath_Overview#Contour'>contour</a> at (<a href='#SkPath_rMoveTo_dx'>dx</a>, <a href='#SkPath_rMoveTo_dy'>dy</a>).
Otherwise, start <a href='SkPath_Overview#Contour'>contour</a> at <a href='#Last_Point'>last point</a> offset by (<a href='#SkPath_rMoveTo_dx'>dx</a>, <a href='#SkPath_rMoveTo_dy'>dy</a>).
Function name stands for "relative move to".
### Parameters
<table> <tr> <td><a name='SkPath_rMoveTo_dx'><code><strong>dx</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Overview#Contour'>contour</a> start on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rMoveTo_dy'><code><strong>dy</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Overview#Contour'>contour</a> start on y-axis</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="63e32dec4b2d8440b427f368bf8313a4"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_lineTo'>lineTo</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_quadTo'>quadTo</a> <a href='#SkPath_conicTo'>conicTo</a> <a href='#SkPath_cubicTo'>cubicTo</a> <a href='#SkPath_close'>close()</a>
<a name='SkPath_lineTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_lineTo'>lineTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y)
</pre>
Adds <a href='undocumented#Line'>line</a> from <a href='#Last_Point'>last point</a> to (<a href='#SkPath_lineTo_x'>x</a>, <a href='#SkPath_lineTo_y'>y</a>). If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is
<a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0) before adding <a href='undocumented#Line'>line</a>.
<a href='#SkPath_lineTo'>lineTo</a>() appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed.
<a href='#SkPath_lineTo'>lineTo</a>() then appends <a href='#SkPath_kLine_Verb'>kLine_Verb</a> to <a href='#Verb_Array'>verb array</a> and (<a href='#SkPath_lineTo_x'>x</a>, <a href='#SkPath_lineTo_y'>y</a>) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_lineTo_x'><code><strong>x</strong></code></a></td>
<td>end of added <a href='undocumented#Line'>line</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_lineTo_y'><code><strong>y</strong></code></a></td>
<td>end of added <a href='undocumented#Line'>line</a> on y-axis</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="e311cdd451edacec33b50cc22a4dd5dc"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_rLineTo'>rLineTo</a> <a href='#SkPath_addRect'>addRect</a>
<a name='SkPath_lineTo_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_lineTo'>lineTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p)
</pre>
Adds <a href='undocumented#Line'>line</a> from <a href='#Last_Point'>last point</a> to <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_lineTo_2_p'>p</a>. If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is
<a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0) before adding <a href='undocumented#Line'>line</a>.
<a href='#SkPath_lineTo'>lineTo</a>() first appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed.
<a href='#SkPath_lineTo'>lineTo</a>() then appends <a href='#SkPath_kLine_Verb'>kLine_Verb</a> to <a href='#Verb_Array'>verb array</a> and <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_lineTo_2_p'>p</a> to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_lineTo_2_p'><code><strong>p</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of added <a href='undocumented#Line'>line</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_lineTo_2"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_rLineTo'>rLineTo</a> <a href='#SkPath_addRect'>addRect</a>
<a name='SkPath_rLineTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rLineTo'>rLineTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy)
</pre>
Adds <a href='undocumented#Line'>line</a> from <a href='#Last_Point'>last point</a> to <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rLineTo_dx'>dx</a>, <a href='#SkPath_rLineTo_dy'>dy</a>). If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is
<a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0) before adding <a href='undocumented#Line'>line</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed;
then appends <a href='#SkPath_kLine_Verb'>kLine_Verb</a> to <a href='#Verb_Array'>verb array</a> and <a href='undocumented#Line'>line</a> end to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
<a href='undocumented#Line'>Line</a> end is <a href='#Last_Point'>last point</a> plus <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rLineTo_dx'>dx</a>, <a href='#SkPath_rLineTo_dy'>dy</a>).
Function name stands for "relative <a href='undocumented#Line'>line</a> to".
### Parameters
<table> <tr> <td><a name='SkPath_rLineTo_dx'><code><strong>dx</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='undocumented#Line'>line</a> end on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rLineTo_dy'><code><strong>dy</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='undocumented#Line'>line</a> end on y-axis</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_rLineTo"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_lineTo'>lineTo</a> <a href='#SkPath_addRect'>addRect</a>
<a name='Quad'></a>
---
<a href='SkPath_Reference#Quad'>Quad</a> describes a <a href='#Path_Quad'>Quadratic_Bezier</a>, a second-order <a href='undocumented#Curve'>curve</a> identical to a section
of a parabola. <a href='SkPath_Reference#Quad'>Quad</a> begins at a start <a href='SkPoint_Reference#Point'>Point</a>, <a href='undocumented#Curve'>curves</a> towards a control <a href='SkPoint_Reference#Point'>Point</a>,
and then <a href='undocumented#Curve'>curves</a> to an end <a href='SkPoint_Reference#Point'>Point</a>.
### Example
<div><fiddle-embed name="@Quad_a"></fiddle-embed></div>
<a href='SkPath_Reference#Quad'>Quad</a> is a special case of <a href='SkPath_Reference#Conic'>Conic</a> where <a href='#Path_Conic_Weight'>Conic_Weight</a> is set to one.
<a href='SkPath_Reference#Quad'>Quad</a> is always contained by the triangle connecting its three <a href='SkPoint_Reference#Point'>Points</a>. <a href='SkPath_Reference#Quad'>Quad</a>
begins tangent to the <a href='undocumented#Line'>line</a> between start <a href='SkPoint_Reference#Point'>Point</a> and control <a href='SkPoint_Reference#Point'>Point</a>, and ends
tangent to the <a href='undocumented#Line'>line</a> between control <a href='SkPoint_Reference#Point'>Point</a> and end <a href='SkPoint_Reference#Point'>Point</a>.
### Example
<div><fiddle-embed name="@Quad_b"></fiddle-embed></div>
<a name='SkPath_quadTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_quadTo'>quadTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2)
</pre>
Adds <a href='SkPath_Reference#Quad'>quad</a> from <a href='#Last_Point'>last point</a> towards (<a href='#SkPath_quadTo_x1'>x1</a>, <a href='#SkPath_quadTo_y1'>y1</a>), to (<a href='#SkPath_quadTo_x2'>x2</a>, <a href='#SkPath_quadTo_y2'>y2</a>).
If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0)
before adding <a href='SkPath_Reference#Quad'>quad</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed;
then appends <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a> to <a href='#Verb_Array'>verb array</a>; and (<a href='#SkPath_quadTo_x1'>x1</a>, <a href='#SkPath_quadTo_y1'>y1</a>), (<a href='#SkPath_quadTo_x2'>x2</a>, <a href='#SkPath_quadTo_y2'>y2</a>)
to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_quadTo_x1'><code><strong>x1</strong></code></a></td>
<td>control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Quad'>quad</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_quadTo_y1'><code><strong>y1</strong></code></a></td>
<td>control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Quad'>quad</a> on y-axis</td>
</tr>
<tr> <td><a name='SkPath_quadTo_x2'><code><strong>x2</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Quad'>quad</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_quadTo_y2'><code><strong>y2</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Quad'>quad</a> on y-axis</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_quadTo"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_conicTo'>conicTo</a> <a href='#SkPath_rQuadTo'>rQuadTo</a>
<a name='SkPath_quadTo_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_quadTo'>quadTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2)
</pre>
Adds <a href='SkPath_Reference#Quad'>quad</a> from <a href='#Last_Point'>last point</a> towards <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_quadTo_2_p1'>p1</a>, to <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_quadTo_2_p2'>p2</a>.
If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0)
before adding <a href='SkPath_Reference#Quad'>quad</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed;
then appends <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a> to <a href='#Verb_Array'>verb array</a>; and <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_quadTo_2_p1'>p1</a>, <a href='#SkPath_quadTo_2_p2'>p2</a>
to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_quadTo_2_p1'><code><strong>p1</strong></code></a></td>
<td>control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of added <a href='SkPath_Reference#Quad'>quad</a></td>
</tr>
<tr> <td><a name='SkPath_quadTo_2_p2'><code><strong>p2</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of added <a href='SkPath_Reference#Quad'>quad</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_quadTo_2"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_conicTo'>conicTo</a> <a href='#SkPath_rQuadTo'>rQuadTo</a>
<a name='SkPath_rQuadTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rQuadTo'>rQuadTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx1, <a href='undocumented#SkScalar'>SkScalar</a> dy1, <a href='undocumented#SkScalar'>SkScalar</a> dx2, <a href='undocumented#SkScalar'>SkScalar</a> dy2)
</pre>
Adds <a href='SkPath_Reference#Quad'>quad</a> from <a href='#Last_Point'>last point</a> towards <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rQuadTo_dx1'>dx1</a>, <a href='#SkPath_rQuadTo_dy1'>dy1</a>), to <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rQuadTo_dx2'>dx2</a>, <a href='#SkPath_rQuadTo_dy2'>dy2</a>).
If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a>
is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0) before adding <a href='SkPath_Reference#Quad'>quad</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>,
if needed; then appends <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a> to <a href='#Verb_Array'>verb array</a>; and appends <a href='SkPath_Reference#Quad'>quad</a>
control and <a href='SkPath_Reference#Quad'>quad</a> end to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
<a href='SkPath_Reference#Quad'>Quad</a> control is <a href='#Last_Point'>last point</a> plus <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rQuadTo_dx1'>dx1</a>, <a href='#SkPath_rQuadTo_dy1'>dy1</a>).
<a href='SkPath_Reference#Quad'>Quad</a> end is <a href='#Last_Point'>last point</a> plus <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rQuadTo_dx2'>dx2</a>, <a href='#SkPath_rQuadTo_dy2'>dy2</a>).
Function name stands for "relative <a href='SkPath_Reference#Quad'>quad</a> to".
### Parameters
<table> <tr> <td><a name='SkPath_rQuadTo_dx1'><code><strong>dx1</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Quad'>quad</a> control on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rQuadTo_dy1'><code><strong>dy1</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Quad'>quad</a> control on y-axis</td>
</tr>
<tr> <td><a name='SkPath_rQuadTo_dx2'><code><strong>dx2</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Quad'>quad</a> end on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rQuadTo_dy2'><code><strong>dy2</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Quad'>quad</a> end on y-axis</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_rQuadTo"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_conicTo'>conicTo</a> <a href='#SkPath_quadTo'>quadTo</a>
<a name='Conic'></a>
<a href='SkPath_Reference#Conic'>Conic</a> describes a conical section: a piece of an ellipse, or a piece of a
parabola, or a piece of a hyperbola. <a href='SkPath_Reference#Conic'>Conic</a> begins at a start <a href='SkPoint_Reference#Point'>Point</a>,
<a href='undocumented#Curve'>curves</a> towards a control <a href='SkPoint_Reference#Point'>Point</a>, and then <a href='undocumented#Curve'>curves</a> to an end <a href='SkPoint_Reference#Point'>Point</a>. The influence
of the control <a href='SkPoint_Reference#Point'>Point</a> is determined by <a href='#Path_Conic_Weight'>Conic_Weight</a>.
Each <a href='SkPath_Reference#Conic'>Conic</a> in <a href='SkPath_Reference#Path'>Path</a> adds two <a href='SkPoint_Reference#Point'>Points</a> and one <a href='#Path_Conic_Weight'>Conic_Weight</a>. <a href='#Path_Conic_Weight'>Conic_Weights</a> in <a href='SkPath_Reference#Path'>Path</a>
may be inspected with <a href='#SkPath_Iter'>Iter</a>, or with <a href='#SkPath_RawIter'>RawIter</a>.
<a name='Conic_Weight'></a>
---
Weight determines both the strength of the control <a href='SkPoint_Reference#Point'>Point</a> and the type of <a href='SkPath_Reference#Conic'>Conic</a>.
Weight varies from zero to infinity. At zero, Weight causes the control <a href='SkPoint_Reference#Point'>Point</a> to
have no effect; <a href='SkPath_Reference#Conic'>Conic</a> is identical to a <a href='undocumented#Line'>line</a> segment from start <a href='SkPoint_Reference#Point'>Point</a> to end
<a href='SkPoint_Reference#Point'>point</a>. If Weight is less than one, <a href='SkPath_Reference#Conic'>Conic</a> follows an elliptical <a href='undocumented#Arc'>arc</a>.
If Weight is exactly one, then <a href='SkPath_Reference#Conic'>Conic</a> is identical to <a href='SkPath_Reference#Quad'>Quad</a>; <a href='SkPath_Reference#Conic'>Conic</a> follows a
parabolic <a href='undocumented#Arc'>arc</a>. If Weight is greater than one, <a href='SkPath_Reference#Conic'>Conic</a> follows a hyperbolic
<a href='undocumented#Arc'>arc</a>. If Weight is infinity, <a href='SkPath_Reference#Conic'>Conic</a> is identical to two <a href='undocumented#Line'>line</a> segments, connecting
start <a href='SkPoint_Reference#Point'>Point</a> to control <a href='SkPoint_Reference#Point'>Point</a>, and control <a href='SkPoint_Reference#Point'>Point</a> to end <a href='SkPoint_Reference#Point'>Point</a>.
### Example
<div><fiddle-embed name="@Conic_Weight_a"><div>When <a href='#Path_Conic_Weight'>Conic_Weight</a> is one, <a href='SkPath_Reference#Quad'>Quad</a> is added to <a href='SkPath_Reference#Path'>path</a>; the two are identical.
</div>
#### Example Output
~~~~
move {0, 0},
quad {0, 0}, {20, 30}, {50, 60},
done
~~~~
</fiddle-embed></div>
If weight is less than one, <a href='SkPath_Reference#Conic'>Conic</a> is an elliptical segment.
### Example
<div><fiddle-embed name="@Conic_Weight_b"><div>A 90 degree circular <a href='undocumented#Arc'>arc</a> has the weight <code>1 / <a href='undocumented#sqrt()'>sqrt</a>(2)</code>.
</div>
#### Example Output
~~~~
move {0, 0},
conic {0, 0}, {20, 0}, {20, 20}, weight = 0.707107
done
~~~~
</fiddle-embed></div>
If weight is greater than one, <a href='SkPath_Reference#Conic'>Conic</a> is a hyperbolic segment. As weight gets large,
a hyperbolic segment can be approximated by straight <a href='undocumented#Line'>lines</a> connecting the
control <a href='SkPoint_Reference#Point'>Point</a> with the end <a href='SkPoint_Reference#Point'>Points</a>.
### Example
<div><fiddle-embed name="@Conic_Weight_c">
#### Example Output
~~~~
move {0, 0},
line {0, 0}, {20, 0},
line {20, 0}, {20, 20},
done
~~~~
</fiddle-embed></div>
<a name='SkPath_conicTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_conicTo'>conicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2, <a href='undocumented#SkScalar'>SkScalar</a> w)
</pre>
Adds <a href='SkPath_Reference#Conic'>conic</a> from <a href='#Last_Point'>last point</a> towards (<a href='#SkPath_conicTo_x1'>x1</a>, <a href='#SkPath_conicTo_y1'>y1</a>), to (<a href='#SkPath_conicTo_x2'>x2</a>, <a href='#SkPath_conicTo_y2'>y2</a>), weighted by <a href='#SkPath_conicTo_w'>w</a>.
If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0)
before adding <a href='SkPath_Reference#Conic'>conic</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed.
If <a href='#SkPath_conicTo_w'>w</a> is finite and not one, appends <a href='#SkPath_kConic_Verb'>kConic_Verb</a> to <a href='#Verb_Array'>verb array</a>;
and (<a href='#SkPath_conicTo_x1'>x1</a>, <a href='#SkPath_conicTo_y1'>y1</a>), (<a href='#SkPath_conicTo_x2'>x2</a>, <a href='#SkPath_conicTo_y2'>y2</a>) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>; and <a href='#SkPath_conicTo_w'>w</a> to <a href='SkPath_Reference#Conic_Weight'>conic weights</a>.
If <a href='#SkPath_conicTo_w'>w</a> is one, appends <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a> to <a href='#Verb_Array'>verb array</a>, and
(<a href='#SkPath_conicTo_x1'>x1</a>, <a href='#SkPath_conicTo_y1'>y1</a>), (<a href='#SkPath_conicTo_x2'>x2</a>, <a href='#SkPath_conicTo_y2'>y2</a>) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
If <a href='#SkPath_conicTo_w'>w</a> is not finite, appends <a href='#SkPath_kLine_Verb'>kLine_Verb</a> twice to <a href='#Verb_Array'>verb array</a>, and
(<a href='#SkPath_conicTo_x1'>x1</a>, <a href='#SkPath_conicTo_y1'>y1</a>), (<a href='#SkPath_conicTo_x2'>x2</a>, <a href='#SkPath_conicTo_y2'>y2</a>) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_conicTo_x1'><code><strong>x1</strong></code></a></td>
<td>control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Conic'>conic</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_conicTo_y1'><code><strong>y1</strong></code></a></td>
<td>control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Conic'>conic</a> on y-axis</td>
</tr>
<tr> <td><a name='SkPath_conicTo_x2'><code><strong>x2</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Conic'>conic</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_conicTo_y2'><code><strong>y2</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Conic'>conic</a> on y-axis</td>
</tr>
<tr> <td><a name='SkPath_conicTo_w'><code><strong>w</strong></code></a></td>
<td>weight of added <a href='SkPath_Reference#Conic'>conic</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_conicTo"><div>As weight increases, <a href='undocumented#Curve'>curve</a> is pulled towards control <a href='SkPoint_Reference#Point'>point</a>.
The bottom two <a href='undocumented#Curve'>curves</a> are elliptical; the next is parabolic; the
top <a href='undocumented#Curve'>curve</a> is hyperbolic.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_rConicTo'>rConicTo</a> <a href='#SkPath_arcTo'>arcTo</a> <a href='#SkPath_addArc'>addArc</a> <a href='#SkPath_quadTo'>quadTo</a>
<a name='SkPath_conicTo_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_conicTo'>conicTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, <a href='undocumented#SkScalar'>SkScalar</a> w)
</pre>
Adds <a href='SkPath_Reference#Conic'>conic</a> from <a href='#Last_Point'>last point</a> towards <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_conicTo_2_p1'>p1</a>, to <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_conicTo_2_p2'>p2</a>, weighted by <a href='#SkPath_conicTo_2_w'>w</a>.
If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0)
before adding <a href='SkPath_Reference#Conic'>conic</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed.
If <a href='#SkPath_conicTo_2_w'>w</a> is finite and not one, appends <a href='#SkPath_kConic_Verb'>kConic_Verb</a> to <a href='#Verb_Array'>verb array</a>;
and <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_conicTo_2_p1'>p1</a>, <a href='#SkPath_conicTo_2_p2'>p2</a> to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>; and <a href='#SkPath_conicTo_2_w'>w</a> to <a href='SkPath_Reference#Conic_Weight'>conic weights</a>.
If <a href='#SkPath_conicTo_2_w'>w</a> is one, appends <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a> to <a href='#Verb_Array'>verb array</a>, and <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_conicTo_2_p1'>p1</a>, <a href='#SkPath_conicTo_2_p2'>p2</a>
to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
If <a href='#SkPath_conicTo_2_w'>w</a> is not finite, appends <a href='#SkPath_kLine_Verb'>kLine_Verb</a> twice to <a href='#Verb_Array'>verb array</a>, and
<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_conicTo_2_p1'>p1</a>, <a href='#SkPath_conicTo_2_p2'>p2</a> to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_conicTo_2_p1'><code><strong>p1</strong></code></a></td>
<td>control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of added <a href='SkPath_Reference#Conic'>conic</a></td>
</tr>
<tr> <td><a name='SkPath_conicTo_2_p2'><code><strong>p2</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of added <a href='SkPath_Reference#Conic'>conic</a></td>
</tr>
<tr> <td><a name='SkPath_conicTo_2_w'><code><strong>w</strong></code></a></td>
<td>weight of added <a href='SkPath_Reference#Conic'>conic</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_conicTo_2"><div><a href='SkPath_Reference#Conic'>Conics</a> and <a href='undocumented#Arc'>arcs</a> use identical representations. As the <a href='undocumented#Arc'>arc</a> sweep increases
the <a href='#Path_Conic_Weight'>Conic_Weight</a> also increases, but remains smaller than one.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_rConicTo'>rConicTo</a> <a href='#SkPath_arcTo'>arcTo</a> <a href='#SkPath_addArc'>addArc</a> <a href='#SkPath_quadTo'>quadTo</a>
<a name='SkPath_rConicTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rConicTo'>rConicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx1, <a href='undocumented#SkScalar'>SkScalar</a> dy1, <a href='undocumented#SkScalar'>SkScalar</a> dx2, <a href='undocumented#SkScalar'>SkScalar</a> dy2, <a href='undocumented#SkScalar'>SkScalar</a> w)
</pre>
Adds <a href='SkPath_Reference#Conic'>conic</a> from <a href='#Last_Point'>last point</a> towards <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rConicTo_dx1'>dx1</a>, <a href='#SkPath_rConicTo_dy1'>dy1</a>), to <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rConicTo_dx2'>dx2</a>, <a href='#SkPath_rConicTo_dy2'>dy2</a>),
weighted by <a href='#SkPath_rConicTo_w'>w</a>. If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a>
is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0) before adding <a href='SkPath_Reference#Conic'>conic</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>,
if needed.
If <a href='#SkPath_rConicTo_w'>w</a> is finite and not one, next appends <a href='#SkPath_kConic_Verb'>kConic_Verb</a> to <a href='#Verb_Array'>verb array</a>,
and <a href='#SkPath_rConicTo_w'>w</a> is recorded as <a href='#Conic_Weight'>conic weight</a>; otherwise, if <a href='#SkPath_rConicTo_w'>w</a> is one, appends
<a href='#SkPath_kQuad_Verb'>kQuad_Verb</a> to <a href='#Verb_Array'>verb array</a>; or if <a href='#SkPath_rConicTo_w'>w</a> is not finite, appends <a href='#SkPath_kLine_Verb'>kLine_Verb</a>
twice to <a href='#Verb_Array'>verb array</a>.
In all cases appends <a href='SkPoint_Reference#SkPoint'>SkPoint</a> control and end to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
control is <a href='#Last_Point'>last point</a> plus <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rConicTo_dx1'>dx1</a>, <a href='#SkPath_rConicTo_dy1'>dy1</a>).
end is <a href='#Last_Point'>last point</a> plus <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rConicTo_dx2'>dx2</a>, <a href='#SkPath_rConicTo_dy2'>dy2</a>).
Function name stands for "relative <a href='SkPath_Reference#Conic'>conic</a> to".
### Parameters
<table> <tr> <td><a name='SkPath_rConicTo_dx1'><code><strong>dx1</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Conic'>conic</a> control on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rConicTo_dy1'><code><strong>dy1</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Conic'>conic</a> control on y-axis</td>
</tr>
<tr> <td><a name='SkPath_rConicTo_dx2'><code><strong>dx2</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Conic'>conic</a> end on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rConicTo_dy2'><code><strong>dy2</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Conic'>conic</a> end on y-axis</td>
</tr>
<tr> <td><a name='SkPath_rConicTo_w'><code><strong>w</strong></code></a></td>
<td>weight of added <a href='SkPath_Reference#Conic'>conic</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_rConicTo"></fiddle-embed></div>
### See Also
<a href='#SkPath_conicTo'>conicTo</a> <a href='#SkPath_arcTo'>arcTo</a> <a href='#SkPath_addArc'>addArc</a> <a href='#SkPath_quadTo'>quadTo</a>
<a name='Cubic'></a>
---
<a href='SkPath_Reference#Cubic'>Cubic</a> describes a <a href='#Bezier_Curve'>Bezier_Curve</a> segment described by a third-order polynomial.
<a href='SkPath_Reference#Cubic'>Cubic</a> begins at a start <a href='SkPoint_Reference#Point'>Point</a>, curving towards the first control <a href='SkPoint_Reference#Point'>Point</a>;
and <a href='undocumented#Curve'>curves</a> from the end <a href='SkPoint_Reference#Point'>Point</a> towards the second control <a href='SkPoint_Reference#Point'>Point</a>.
### Example
<div><fiddle-embed name="@Cubic"></fiddle-embed></div>
<a name='SkPath_cubicTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_cubicTo'>cubicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2, <a href='undocumented#SkScalar'>SkScalar</a> x3, <a href='undocumented#SkScalar'>SkScalar</a> y3)
</pre>
Adds <a href='SkPath_Reference#Cubic'>cubic</a> from <a href='#Last_Point'>last point</a> towards (<a href='#SkPath_cubicTo_x1'>x1</a>, <a href='#SkPath_cubicTo_y1'>y1</a>), then towards (<a href='#SkPath_cubicTo_x2'>x2</a>, <a href='#SkPath_cubicTo_y2'>y2</a>), ending at
(<a href='#SkPath_cubicTo_x3'>x3</a>, <a href='#SkPath_cubicTo_y3'>y3</a>). If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to
(0, 0) before adding <a href='SkPath_Reference#Cubic'>cubic</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed;
then appends <a href='#SkPath_kCubic_Verb'>kCubic_Verb</a> to <a href='#Verb_Array'>verb array</a>; and (<a href='#SkPath_cubicTo_x1'>x1</a>, <a href='#SkPath_cubicTo_y1'>y1</a>), (<a href='#SkPath_cubicTo_x2'>x2</a>, <a href='#SkPath_cubicTo_y2'>y2</a>), (<a href='#SkPath_cubicTo_x3'>x3</a>, <a href='#SkPath_cubicTo_y3'>y3</a>)
to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_cubicTo_x1'><code><strong>x1</strong></code></a></td>
<td>first control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_cubicTo_y1'><code><strong>y1</strong></code></a></td>
<td>first control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a> on y-axis</td>
</tr>
<tr> <td><a name='SkPath_cubicTo_x2'><code><strong>x2</strong></code></a></td>
<td>second control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_cubicTo_y2'><code><strong>y2</strong></code></a></td>
<td>second control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a> on y-axis</td>
</tr>
<tr> <td><a name='SkPath_cubicTo_x3'><code><strong>x3</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a> on x-axis</td>
</tr>
<tr> <td><a name='SkPath_cubicTo_y3'><code><strong>y3</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a> on y-axis</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_cubicTo"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_rCubicTo'>rCubicTo</a> <a href='#SkPath_quadTo'>quadTo</a>
<a name='SkPath_cubicTo_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_cubicTo'>cubicTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p3)
</pre>
Adds <a href='SkPath_Reference#Cubic'>cubic</a> from <a href='#Last_Point'>last point</a> towards <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_cubicTo_2_p1'>p1</a>, then towards <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_cubicTo_2_p2'>p2</a>, ending at
<a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_cubicTo_2_p3'>p3</a>. If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to
(0, 0) before adding <a href='SkPath_Reference#Cubic'>cubic</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, if needed;
then appends <a href='#SkPath_kCubic_Verb'>kCubic_Verb</a> to <a href='#Verb_Array'>verb array</a>; and <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='#SkPath_cubicTo_2_p1'>p1</a>, <a href='#SkPath_cubicTo_2_p2'>p2</a>, <a href='#SkPath_cubicTo_2_p3'>p3</a>
to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_cubicTo_2_p1'><code><strong>p1</strong></code></a></td>
<td>first control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a></td>
</tr>
<tr> <td><a name='SkPath_cubicTo_2_p2'><code><strong>p2</strong></code></a></td>
<td>second control <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a></td>
</tr>
<tr> <td><a name='SkPath_cubicTo_2_p3'><code><strong>p3</strong></code></a></td>
<td>end <a href='SkPoint_Reference#SkPoint'>SkPoint</a> of <a href='SkPath_Reference#Cubic'>cubic</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_cubicTo_2"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_rCubicTo'>rCubicTo</a> <a href='#SkPath_quadTo'>quadTo</a>
<a name='SkPath_rCubicTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rCubicTo'>rCubicTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> dx1, <a href='undocumented#SkScalar'>SkScalar</a> dy1, <a href='undocumented#SkScalar'>SkScalar</a> dx2, <a href='undocumented#SkScalar'>SkScalar</a> dy2, <a href='undocumented#SkScalar'>SkScalar</a> dx3, <a href='undocumented#SkScalar'>SkScalar</a> dy3)
</pre>
Adds <a href='SkPath_Reference#Cubic'>cubic</a> from <a href='#Last_Point'>last point</a> towards <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rCubicTo_dx1'>dx1</a>, <a href='#SkPath_rCubicTo_dy1'>dy1</a>), then towards
<a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rCubicTo_dx2'>dx2</a>, <a href='#SkPath_rCubicTo_dy2'>dy2</a>), to <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rCubicTo_dx3'>dx3</a>, <a href='#SkPath_rCubicTo_dy3'>dy3</a>).
If <a href='SkPath_Reference#SkPath'>SkPath</a> is empty, or last <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a>
is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, <a href='#Last_Point'>last point</a> is set to (0, 0) before adding <a href='SkPath_Reference#Cubic'>cubic</a>.
Appends <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='#Verb_Array'>verb array</a> and (0, 0) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>,
if needed; then appends <a href='#SkPath_kCubic_Verb'>kCubic_Verb</a> to <a href='#Verb_Array'>verb array</a>; and appends <a href='SkPath_Reference#Cubic'>cubic</a>
control and <a href='SkPath_Reference#Cubic'>cubic</a> end to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
<a href='SkPath_Reference#Cubic'>Cubic</a> control is <a href='#Last_Point'>last point</a> plus <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rCubicTo_dx1'>dx1</a>, <a href='#SkPath_rCubicTo_dy1'>dy1</a>).
<a href='SkPath_Reference#Cubic'>Cubic</a> end is <a href='#Last_Point'>last point</a> plus <a href='SkPoint_Reference#Vector'>vector</a> (<a href='#SkPath_rCubicTo_dx2'>dx2</a>, <a href='#SkPath_rCubicTo_dy2'>dy2</a>).
Function name stands for "relative <a href='SkPath_Reference#Cubic'>cubic</a> to".
### Parameters
<table> <tr> <td><a name='SkPath_rCubicTo_dx1'><code><strong>dx1</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to first <a href='SkPath_Reference#Cubic'>cubic</a> control on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rCubicTo_dy1'><code><strong>dy1</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to first <a href='SkPath_Reference#Cubic'>cubic</a> control on y-axis</td>
</tr>
<tr> <td><a name='SkPath_rCubicTo_dx2'><code><strong>dx2</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to second <a href='SkPath_Reference#Cubic'>cubic</a> control on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rCubicTo_dy2'><code><strong>dy2</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to second <a href='SkPath_Reference#Cubic'>cubic</a> control on y-axis</td>
</tr>
<tr> <td><a name='SkPath_rCubicTo_dx3'><code><strong>dx3</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Cubic'>cubic</a> end on x-axis</td>
</tr>
<tr> <td><a name='SkPath_rCubicTo_dy3'><code><strong>dy3</strong></code></a></td>
<td>offset from <a href='#Last_Point'>last point</a> to <a href='SkPath_Reference#Cubic'>cubic</a> end on y-axis</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_rCubicTo"></fiddle-embed></div>
### See Also
<a href='SkPath_Overview#Contour'>Contour</a> <a href='#SkPath_moveTo'>moveTo</a> <a href='#SkPath_cubicTo'>cubicTo</a> <a href='#SkPath_quadTo'>quadTo</a>
<a name='Arc'></a>
---
<a href='undocumented#Arc'>Arc</a> can be constructed in a number of ways. <a href='undocumented#Arc'>Arc</a> may be described by part of <a href='undocumented#Oval'>Oval</a> and angles,
by start <a href='SkPoint_Reference#Point'>point</a> and end <a href='SkPoint_Reference#Point'>point</a>, and by radius and tangent <a href='undocumented#Line'>lines</a>. Each construction has advantages,
and some constructions correspond to <a href='undocumented#Arc'>Arc</a> drawing in graphics standards.
All <a href='undocumented#Arc'>Arc</a> draws are implemented by one or more <a href='SkPath_Reference#Conic'>Conic</a> draws. When <a href='#Path_Conic_Weight'>Conic_Weight</a> is less than one,
<a href='SkPath_Reference#Conic'>Conic</a> describes an <a href='undocumented#Arc'>Arc</a> of some <a href='undocumented#Oval'>Oval</a> or <a href='undocumented#Circle'>Circle</a>.
Circle<a href='#SkPath_arcTo'>arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool forceMoveTo)</a>
describes <a href='undocumented#Arc'>Arc</a> as a piece of <a href='undocumented#Oval'>Oval</a>, beginning at start angle, sweeping clockwise or counterclockwise,
which may continue <a href='SkPath_Overview#Contour'>Contour</a> or start a new one. This construction is similar to <a href='undocumented#PostScript'>PostScript</a> and
<a href='#HTML_Canvas'>HTML_Canvas</a> <a href='undocumented#Arc'>arcs</a>. Variation <a href='#SkPath_addArc'>addArc</a> always starts new <a href='SkPath_Overview#Contour'>Contour</a>. <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawArc'>drawArc</a> draws without
requiring <a href='SkPath_Reference#Path'>Path</a>.
Path<a href='#SkPath_arcTo_2'>arcTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar radius)</a>
describes <a href='undocumented#Arc'>Arc</a> as tangent to the <a href='undocumented#Line'>line</a> segment from last <a href='SkPoint_Reference#Point'>Point</a> added to <a href='SkPath_Reference#Path'>Path</a> to (x1, y1); and tangent
to the <a href='undocumented#Line'>line</a> segment from (x1, y1) to (x2, y2). This construction is similar to <a href='undocumented#PostScript'>PostScript</a> and
<a href='#HTML_Canvas'>HTML_Canvas</a> <a href='undocumented#Arc'>arcs</a>.
arcs<a href='#SkPath_arcTo_4'>arcTo(SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc, Direction sweep, SkScalar x, SkScalar y)</a>
describes <a href='undocumented#Arc'>Arc</a> as part of <a href='undocumented#Oval'>Oval</a> with radii (rx, ry), beginning at
last <a href='SkPoint_Reference#Point'>Point</a> added to <a href='SkPath_Reference#Path'>Path</a> and ending at (x, y). More than one <a href='undocumented#Arc'>Arc</a> satisfies this criteria,
so additional values choose a single solution. This construction is similar to <a href='undocumented#SVG'>SVG</a> <a href='undocumented#Arc'>arcs</a>.
<a href='#SkPath_conicTo'>conicTo</a> describes <a href='undocumented#Arc'>Arc</a> of less than 180 degrees as a pair of tangent <a href='undocumented#Line'>lines</a> and <a href='#Path_Conic_Weight'>Conic_Weight</a>.
<a href='#SkPath_conicTo'>conicTo</a> can represent any <a href='undocumented#Arc'>Arc</a> with a sweep less than 180 degrees at any rotation. All <a href='#SkPath_arcTo'>arcTo</a>
constructions are converted to <a href='SkPath_Reference#Conic'>Conic</a> <a href='undocumented#Data'>data</a> when added to <a href='SkPath_Reference#Path'>Path</a>.
![Arc](https://fiddle.skia.org/i/e17e48e9d2182e9afc0f5d26b72c60f0_raster.png "")
<table> <tr>
<td><sup>1</sup> sup<a href='#SkPath_arcTo'>arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool forceMoveTo)</a></td>
</tr> <tr>
<td><sup>2</sup> parameter adds move to first <a href='SkPoint_Reference#Point'>point</a></td>
</tr> <tr>
<td><sup>3</sup> start angle must be multiple of 90 degrees</td>
</tr> <tr>
<td><sup>4</sup> sup<a href='#SkPath_arcTo_2'>arcTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar radius)</a></td>
</tr> <tr>
<td><sup>5</sup> sup<a href='#SkPath_arcTo_4'>arcTo(SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc, Direction sweep, SkScalar x, SkScalar y)</a></td>
</tr>
</table>
### Example
<div><fiddle-embed name="5acc77eba0cb4d00bbf3a8f4db0c0aee"></fiddle-embed></div>
In the example above:
<table> <tr>
<td>1 describes an <a href='undocumented#Arc'>arc</a> from an <a href='undocumented#Oval'>oval</a>, a starting angle, and a sweep angle.</td>
</tr> <tr>
<td>2 is similar to 1, but does not require building a <a href='SkPath_Reference#Path'>path</a> to draw.</td>
</tr> <tr>
<td>3 is similar to 1, but always begins new <a href='SkPath_Overview#Contour'>Contour</a>.</td>
</tr> <tr>
<td>4 describes an <a href='undocumented#Arc'>arc</a> from a pair of tangent <a href='undocumented#Line'>lines</a> and a radius.</td>
</tr> <tr>
<td>5 describes an <a href='undocumented#Arc'>arc</a> from <a href='undocumented#Oval'>Oval</a> center, <a href='undocumented#Arc'>arc</a> start <a href='SkPoint_Reference#Point'>Point</a> and <a href='undocumented#Arc'>arc</a> end <a href='SkPoint_Reference#Point'>Point</a>.</td>
</tr> <tr>
<td>6 describes an <a href='undocumented#Arc'>arc</a> from a pair of tangent <a href='undocumented#Line'>lines</a> and a <a href='#Path_Conic_Weight'>Conic_Weight</a>.</td>
</tr>
</table>
<a name='SkPath_arcTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='undocumented#SkScalar'>SkScalar</a> startAngle, <a href='undocumented#SkScalar'>SkScalar</a> sweepAngle, bool forceMoveTo)
</pre>
Appends <a href='undocumented#Arc'>arc</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>. <a href='undocumented#Arc'>Arc</a> added is part of ellipse
bounded by <a href='#SkPath_arcTo_oval'>oval</a>, from <a href='#SkPath_arcTo_startAngle'>startAngle</a> through <a href='#SkPath_arcTo_sweepAngle'>sweepAngle</a>. Both <a href='#SkPath_arcTo_startAngle'>startAngle</a> and
<a href='#SkPath_arcTo_sweepAngle'>sweepAngle</a> are measured in degrees, where zero degrees is aligned with the
positive x-axis, and positive sweeps extends <a href='undocumented#Arc'>arc</a> clockwise.
<a href='#SkPath_arcTo'>arcTo</a>() adds <a href='undocumented#Line'>line</a> connecting <a href='SkPath_Reference#SkPath'>SkPath</a> last <a href='SkPoint_Reference#SkPoint'>SkPoint</a> to initial <a href='undocumented#Arc'>arc</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> if <a href='#SkPath_arcTo_forceMoveTo'>forceMoveTo</a>
is false and <a href='SkPath_Reference#SkPath'>SkPath</a> is not empty. Otherwise, added <a href='SkPath_Overview#Contour'>contour</a> begins with first <a href='SkPoint_Reference#Point'>point</a>
of <a href='undocumented#Arc'>arc</a>. Angles greater than -360 and less than 360 are treated modulo 360.
### Parameters
<table> <tr> <td><a name='SkPath_arcTo_oval'><code><strong>oval</strong></code></a></td>
<td>bounds of ellipse containing <a href='undocumented#Arc'>arc</a></td>
</tr>
<tr> <td><a name='SkPath_arcTo_startAngle'><code><strong>startAngle</strong></code></a></td>
<td>starting angle of <a href='undocumented#Arc'>arc</a> in degrees</td>
</tr>
<tr> <td><a name='SkPath_arcTo_sweepAngle'><code><strong>sweepAngle</strong></code></a></td>
<td>sweep, in degrees. Positive is clockwise; treated modulo 360</td>
</tr>
<tr> <td><a name='SkPath_arcTo_forceMoveTo'><code><strong>forceMoveTo</strong></code></a></td>
<td>true to start a new <a href='SkPath_Overview#Contour'>contour</a> with <a href='undocumented#Arc'>arc</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_arcTo"><div><a href='#SkPath_arcTo'>arcTo</a> continues a previous <a href='SkPath_Overview#Contour'>contour</a> when <a href='#SkPath_arcTo_forceMoveTo'>forceMoveTo</a> is false and when <a href='SkPath_Reference#Path'>Path</a>
is not empty.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_addArc'>addArc</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawArc'>drawArc</a> <a href='#SkPath_conicTo'>conicTo</a>
<a name='SkPath_arcTo_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> x1, <a href='undocumented#SkScalar'>SkScalar</a> y1, <a href='undocumented#SkScalar'>SkScalar</a> x2, <a href='undocumented#SkScalar'>SkScalar</a> y2, <a href='undocumented#SkScalar'>SkScalar</a> radius)
</pre>
Appends <a href='undocumented#Arc'>arc</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, after appending <a href='undocumented#Line'>line</a> if needed. <a href='undocumented#Arc'>Arc</a> is implemented by <a href='SkPath_Reference#Conic'>conic</a>
weighted to describe part of <a href='undocumented#Circle'>circle</a>. <a href='undocumented#Arc'>Arc</a> is contained by tangent from
last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#Point'>point</a> to (<a href='#SkPath_arcTo_2_x1'>x1</a>, <a href='#SkPath_arcTo_2_y1'>y1</a>), and tangent from (<a href='#SkPath_arcTo_2_x1'>x1</a>, <a href='#SkPath_arcTo_2_y1'>y1</a>) to (<a href='#SkPath_arcTo_2_x2'>x2</a>, <a href='#SkPath_arcTo_2_y2'>y2</a>). <a href='undocumented#Arc'>Arc</a>
is part of <a href='undocumented#Circle'>circle</a> sized to <a href='#SkPath_arcTo_2_radius'>radius</a>, positioned so it touches both tangent <a href='undocumented#Line'>lines</a>.
If last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a> does not start <a href='undocumented#Arc'>Arc</a>, <a href='#SkPath_arcTo'>arcTo</a> appends connecting <a href='undocumented#Line'>Line</a> to <a href='SkPath_Reference#Path'>Path</a>.
The length of <a href='SkPoint_Reference#Vector'>Vector</a> from (<a href='#SkPath_arcTo_2_x1'>x1</a>, <a href='#SkPath_arcTo_2_y1'>y1</a>) to (<a href='#SkPath_arcTo_2_x2'>x2</a>, <a href='#SkPath_arcTo_2_y2'>y2</a>) does not affect <a href='undocumented#Arc'>Arc</a>.
<a href='undocumented#Arc'>Arc</a> sweep is always less than 180 degrees. If <a href='#SkPath_arcTo_2_radius'>radius</a> is zero, or if
tangents are nearly parallel, <a href='#SkPath_arcTo'>arcTo</a> appends <a href='undocumented#Line'>Line</a> from last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a> to (<a href='#SkPath_arcTo_2_x1'>x1</a>, <a href='#SkPath_arcTo_2_y1'>y1</a>).
<a href='#SkPath_arcTo'>arcTo</a> appends at most one <a href='undocumented#Line'>Line</a> and one <a href='SkPath_Reference#Conic'>conic</a>.
<a href='#SkPath_arcTo'>arcTo</a> implements the functionality of <a href='undocumented#Arct'>PostScript arct</a> and <a href='undocumented#ArcTo'>HTML Canvas arcTo</a>.
### Parameters
<table> <tr> <td><a name='SkPath_arcTo_2_x1'><code><strong>x1</strong></code></a></td>
<td>x-axis value common to pair of tangents</td>
</tr>
<tr> <td><a name='SkPath_arcTo_2_y1'><code><strong>y1</strong></code></a></td>
<td>y-axis value common to pair of tangents</td>
</tr>
<tr> <td><a name='SkPath_arcTo_2_x2'><code><strong>x2</strong></code></a></td>
<td>x-axis value end of second tangent</td>
</tr>
<tr> <td><a name='SkPath_arcTo_2_y2'><code><strong>y2</strong></code></a></td>
<td>y-axis value end of second tangent</td>
</tr>
<tr> <td><a name='SkPath_arcTo_2_radius'><code><strong>radius</strong></code></a></td>
<td>distance from <a href='undocumented#Arc'>arc</a> to <a href='undocumented#Circle'>circle</a> center</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="386000684073fccabc224d7d6dc81cd9"></fiddle-embed></div>
### Example
<div><fiddle-embed name="78f3c65fa900610bb52518989b547095"></fiddle-embed></div>
### Example
<div><fiddle-embed name="@Path_arcTo_2_c"><div><a href='#SkPath_arcTo'>arcTo</a> is represented by <a href='undocumented#Line'>Line</a> and circular <a href='SkPath_Reference#Conic'>Conic</a> in <a href='SkPath_Reference#Path'>Path</a>.
</div>
#### Example Output
~~~~
move to (156,20)
line (156,20),(79.2893,20)
conic (79.2893,20),(200,20),(114.645,105.355) weight 0.382683
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_conicTo'>conicTo</a>
<a name='SkPath_arcTo_3'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> p2, <a href='undocumented#SkScalar'>SkScalar</a> radius)
</pre>
Appends <a href='undocumented#Arc'>arc</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, after appending <a href='undocumented#Line'>line</a> if needed. <a href='undocumented#Arc'>Arc</a> is implemented by <a href='SkPath_Reference#Conic'>conic</a>
weighted to describe part of <a href='undocumented#Circle'>circle</a>. <a href='undocumented#Arc'>Arc</a> is contained by tangent from
last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#Point'>point</a> to <a href='#SkPath_arcTo_3_p1'>p1</a>, and tangent from <a href='#SkPath_arcTo_3_p1'>p1</a> to <a href='#SkPath_arcTo_3_p2'>p2</a>. <a href='undocumented#Arc'>Arc</a>
is part of <a href='undocumented#Circle'>circle</a> sized to <a href='#SkPath_arcTo_3_radius'>radius</a>, positioned so it touches both tangent <a href='undocumented#Line'>lines</a>.
If last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> does not start <a href='undocumented#Arc'>arc</a>, <a href='#SkPath_arcTo'>arcTo</a>() appends connecting <a href='undocumented#Line'>line</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>.
The length of <a href='SkPoint_Reference#Vector'>vector</a> from <a href='#SkPath_arcTo_3_p1'>p1</a> to <a href='#SkPath_arcTo_3_p2'>p2</a> does not affect <a href='undocumented#Arc'>arc</a>.
<a href='undocumented#Arc'>Arc</a> sweep is always less than 180 degrees. If <a href='#SkPath_arcTo_3_radius'>radius</a> is zero, or if
tangents are nearly parallel, <a href='#SkPath_arcTo'>arcTo</a>() appends <a href='undocumented#Line'>line</a> from last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> to <a href='#SkPath_arcTo_3_p1'>p1</a>.
<a href='#SkPath_arcTo'>arcTo</a>() appends at most one <a href='undocumented#Line'>line</a> and one <a href='SkPath_Reference#Conic'>conic</a>.
<a href='#SkPath_arcTo'>arcTo</a>() implements the functionality of <a href='undocumented#Arct'>PostScript arct</a> and <a href='undocumented#ArcTo'>HTML Canvas arcTo</a>.
### Parameters
<table> <tr> <td><a name='SkPath_arcTo_3_p1'><code><strong>p1</strong></code></a></td>
<td><a href='SkPoint_Reference#SkPoint'>SkPoint</a> common to pair of tangents</td>
</tr>
<tr> <td><a name='SkPath_arcTo_3_p2'><code><strong>p2</strong></code></a></td>
<td>end of second tangent</td>
</tr>
<tr> <td><a name='SkPath_arcTo_3_radius'><code><strong>radius</strong></code></a></td>
<td>distance from <a href='undocumented#Arc'>arc</a> to <a href='undocumented#Circle'>circle</a> center</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_arcTo_3"><div>Because tangent <a href='undocumented#Line'>lines</a> are parallel, <a href='#SkPath_arcTo'>arcTo</a> appends <a href='undocumented#Line'>line</a> from last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a> to
<a href='#SkPath_arcTo_3_p1'>p1</a>, but does not append a circular <a href='SkPath_Reference#Conic'>Conic</a>.
</div>
#### Example Output
~~~~
move to (156,20)
line (156,20),(200,20)
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_conicTo'>conicTo</a>
<a name='SkPath_ArcSize'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
enum <a href='#SkPath_ArcSize'>ArcSize</a> {
<a href='#SkPath_kSmall_ArcSize'>kSmall_ArcSize</a>,
<a href='#SkPath_kLarge_ArcSize'>kLarge_ArcSize</a>,
};
</pre>
Four axis-aligned <a href='undocumented#Oval'>Ovals</a> with the same height and width intersect a pair of <a href='SkPoint_Reference#Point'>Points</a>.
<a href='#SkPath_ArcSize'>ArcSize</a> and <a href='#SkPath_Direction'>Direction</a> select one of the four <a href='undocumented#Oval'>Ovals</a>, by choosing the larger or smaller
<a href='undocumented#Arc'>arc</a> between the <a href='SkPoint_Reference#Point'>Points</a>; and by choosing the <a href='undocumented#Arc'>arc</a> <a href='#SkPath_Direction'>Direction</a>, clockwise
or counterclockwise.
### Constants
<table style='border-collapse: collapse; width: 62.5em'>
<tr><th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Const</th>
<th style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>Value</th>
<th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Description</th></tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kSmall_ArcSize'><code>SkPath::kSmall_ArcSize</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>0</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
smaller of Arc pair</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kLarge_ArcSize'><code>SkPath::kLarge_ArcSize</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>1</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
larger of Arc pair</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_ArcSize"><div><a href='undocumented#Arc'>Arc</a> begins at top of <a href='undocumented#Oval'>Oval</a> pair and ends at bottom. <a href='undocumented#Arc'>Arc</a> can take four routes to get there.
Two routes are large, and two routes are counterclockwise. The one route both large
and counterclockwise is blue.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_arcTo'>arcTo</a> <a href='#SkPath_Direction'>Direction</a>
<a name='SkPath_arcTo_4'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> rx, <a href='undocumented#SkScalar'>SkScalar</a> ry, <a href='undocumented#SkScalar'>SkScalar</a> xAxisRotate, <a href='#SkPath_ArcSize'>ArcSize</a> largeArc, <a href='#SkPath_Direction'>Direction</a> sweep,
<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y)
</pre>
Appends <a href='undocumented#Arc'>arc</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>. <a href='undocumented#Arc'>Arc</a> is implemented by one or more <a href='SkPath_Reference#Conic'>conics</a> weighted to
describe part of <a href='undocumented#Oval'>oval</a> with radii (<a href='#SkPath_arcTo_4_rx'>rx</a>, <a href='#SkPath_arcTo_4_ry'>ry</a>) rotated by <a href='#SkPath_arcTo_4_xAxisRotate'>xAxisRotate</a> degrees. <a href='undocumented#Arc'>Arc</a>
<a href='undocumented#Curve'>curves</a> from last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> to (<a href='#SkPath_arcTo_4_x'>x</a>, <a href='#SkPath_arcTo_4_y'>y</a>), choosing one of four possible routes:
clockwise or counterclockwise, and smaller or larger.
<a href='undocumented#Arc'>Arc</a> <a href='#SkPath_arcTo_4_sweep'>sweep</a> is always less than 360 degrees. <a href='#SkPath_arcTo'>arcTo</a>() appends <a href='undocumented#Line'>line</a> to (<a href='#SkPath_arcTo_4_x'>x</a>, <a href='#SkPath_arcTo_4_y'>y</a>) if
either radii are zero, or if last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> equals (<a href='#SkPath_arcTo_4_x'>x</a>, <a href='#SkPath_arcTo_4_y'>y</a>). <a href='#SkPath_arcTo'>arcTo</a>() scales radii
(<a href='#SkPath_arcTo_4_rx'>rx</a>, <a href='#SkPath_arcTo_4_ry'>ry</a>) to fit last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> and (<a href='#SkPath_arcTo_4_x'>x</a>, <a href='#SkPath_arcTo_4_y'>y</a>) if both are greater than zero but
too small.
<a href='#SkPath_arcTo'>arcTo</a>() appends up to four <a href='SkPath_Reference#Conic'>conic</a> <a href='undocumented#Curve'>curves</a>.
<a href='#SkPath_arcTo'>arcTo</a>() implements the functionality of <a href='undocumented#SVG_Arc'>SVG arc</a>, although <a href='undocumented#Sweep_Flag'>SVG sweep-flag</a> value
is opposite the integer value of <a href='#SkPath_arcTo_4_sweep'>sweep</a>; <a href='undocumented#Sweep_Flag'>SVG sweep-flag</a> uses 1 for clockwise,
while <a href='#SkPath_kCW_Direction'>kCW_Direction</a> cast to int is zero.
### Parameters
<table> <tr> <td><a name='SkPath_arcTo_4_rx'><code><strong>rx</strong></code></a></td>
<td>radius on x-axis before x-axis rotation</td>
</tr>
<tr> <td><a name='SkPath_arcTo_4_ry'><code><strong>ry</strong></code></a></td>
<td>radius on y-axis before x-axis rotation</td>
</tr>
<tr> <td><a name='SkPath_arcTo_4_xAxisRotate'><code><strong>xAxisRotate</strong></code></a></td>
<td>x-axis rotation in degrees; positive values are clockwise</td>
</tr>
<tr> <td><a name='SkPath_arcTo_4_largeArc'><code><strong>largeArc</strong></code></a></td>
<td>chooses smaller or larger <a href='undocumented#Arc'>arc</a></td>
</tr>
<tr> <td><a name='SkPath_arcTo_4_sweep'><code><strong>sweep</strong></code></a></td>
<td>chooses clockwise or counterclockwise <a href='undocumented#Arc'>arc</a></td>
</tr>
<tr> <td><a name='SkPath_arcTo_4_x'><code><strong>x</strong></code></a></td>
<td>end of <a href='undocumented#Arc'>arc</a></td>
</tr>
<tr> <td><a name='SkPath_arcTo_4_y'><code><strong>y</strong></code></a></td>
<td>end of <a href='undocumented#Arc'>arc</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_arcTo_4"></fiddle-embed></div>
### See Also
<a href='#SkPath_rArcTo'>rArcTo</a> <a href='#SkPath_ArcSize'>ArcSize</a> <a href='#SkPath_Direction'>Direction</a>
<a name='SkPath_arcTo_5'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_arcTo'>arcTo</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> r, <a href='undocumented#SkScalar'>SkScalar</a> xAxisRotate, <a href='#SkPath_ArcSize'>ArcSize</a> largeArc, <a href='#SkPath_Direction'>Direction</a> sweep,
const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> xy)
</pre>
Appends <a href='undocumented#Arc'>arc</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>. <a href='undocumented#Arc'>Arc</a> is implemented by one or more <a href='SkPath_Reference#Conic'>conic</a> weighted to describe
part of <a href='undocumented#Oval'>oval</a> with radii (<a href='#SkPath_arcTo_5_r'>r</a>.<a href='#SkPoint_fX'>fX</a>, <a href='#SkPath_arcTo_5_r'>r</a>.<a href='#SkPoint_fY'>fY</a>) rotated by <a href='#SkPath_arcTo_5_xAxisRotate'>xAxisRotate</a> degrees. <a href='undocumented#Arc'>Arc</a> <a href='undocumented#Curve'>curves</a>
from last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> to (<a href='#SkPath_arcTo_5_xy'>xy</a>.<a href='#SkPoint_fX'>fX</a>, <a href='#SkPath_arcTo_5_xy'>xy</a>.<a href='#SkPoint_fY'>fY</a>), choosing one of four possible routes:
clockwise or counterclockwise,
and smaller or larger.
<a href='undocumented#Arc'>Arc</a> <a href='#SkPath_arcTo_5_sweep'>sweep</a> is always less than 360 degrees. <a href='#SkPath_arcTo'>arcTo</a>() appends <a href='undocumented#Line'>line</a> to <a href='#SkPath_arcTo_5_xy'>xy</a> if either
radii are zero, or if last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> equals (<a href='#SkPath_arcTo_5_xy'>xy</a>.<a href='#SkPoint_fX'>fX</a>, <a href='#SkPath_arcTo_5_xy'>xy</a>.<a href='#SkPoint_fY'>fY</a>). <a href='#SkPath_arcTo'>arcTo</a>() scales radii <a href='#SkPath_arcTo_5_r'>r</a> to
fit last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> and <a href='#SkPath_arcTo_5_xy'>xy</a> if both are greater than zero but too small to describe
an <a href='undocumented#Arc'>arc</a>.
<a href='#SkPath_arcTo'>arcTo</a>() appends up to four <a href='SkPath_Reference#Conic'>conic</a> <a href='undocumented#Curve'>curves</a>.
<a href='#SkPath_arcTo'>arcTo</a>() implements the functionality of <a href='undocumented#SVG_Arc'>SVG arc</a>, although <a href='undocumented#Sweep_Flag'>SVG sweep-flag</a> value is
opposite the integer value of <a href='#SkPath_arcTo_5_sweep'>sweep</a>; <a href='undocumented#Sweep_Flag'>SVG sweep-flag</a> uses 1 for clockwise, while
<a href='#SkPath_kCW_Direction'>kCW_Direction</a> cast to int is zero.
### Parameters
<table> <tr> <td><a name='SkPath_arcTo_5_r'><code><strong>r</strong></code></a></td>
<td>radii on axes before x-axis rotation</td>
</tr>
<tr> <td><a name='SkPath_arcTo_5_xAxisRotate'><code><strong>xAxisRotate</strong></code></a></td>
<td>x-axis rotation in degrees; positive values are clockwise</td>
</tr>
<tr> <td><a name='SkPath_arcTo_5_largeArc'><code><strong>largeArc</strong></code></a></td>
<td>chooses smaller or larger <a href='undocumented#Arc'>arc</a></td>
</tr>
<tr> <td><a name='SkPath_arcTo_5_sweep'><code><strong>sweep</strong></code></a></td>
<td>chooses clockwise or counterclockwise <a href='undocumented#Arc'>arc</a></td>
</tr>
<tr> <td><a name='SkPath_arcTo_5_xy'><code><strong>xy</strong></code></a></td>
<td>end of <a href='undocumented#Arc'>arc</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_rArcTo"></fiddle-embed></div>
### See Also
<a href='#SkPath_rArcTo'>rArcTo</a> <a href='#SkPath_ArcSize'>ArcSize</a> <a href='#SkPath_Direction'>Direction</a>
<a name='SkPath_rArcTo'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_rArcTo'>rArcTo</a>(<a href='undocumented#SkScalar'>SkScalar</a> rx, <a href='undocumented#SkScalar'>SkScalar</a> ry, <a href='undocumented#SkScalar'>SkScalar</a> xAxisRotate, <a href='#SkPath_ArcSize'>ArcSize</a> largeArc, <a href='#SkPath_Direction'>Direction</a> sweep,
<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy)
</pre>
Appends <a href='undocumented#Arc'>Arc</a> to <a href='SkPath_Reference#Path'>Path</a>, relative to last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a>. <a href='undocumented#Arc'>Arc</a> is implemented by one or
more <a href='SkPath_Reference#Conic'>Conic</a>, weighted to describe part of <a href='undocumented#Oval'>Oval</a> with radii (<a href='#SkPath_rArcTo_rx'>rx</a>, <a href='#SkPath_rArcTo_ry'>ry</a>) rotated by
<a href='#SkPath_rArcTo_xAxisRotate'>xAxisRotate</a> degrees. <a href='undocumented#Arc'>Arc</a> <a href='undocumented#Curve'>curves</a> from last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a> to relative end <a href='SkPoint_Reference#Point'>Point</a>
(<a href='#SkPath_rArcTo_dx'>dx</a>, <a href='#SkPath_rArcTo_dy'>dy</a>), choosing one of four possible routes: clockwise or
counterclockwise, and smaller or larger. If <a href='SkPath_Reference#Path'>Path</a> is empty, the start <a href='undocumented#Arc'>Arc</a> <a href='SkPoint_Reference#Point'>Point</a>
is (0, 0).
<a href='undocumented#Arc'>Arc</a> <a href='#SkPath_rArcTo_sweep'>sweep</a> is always less than 360 degrees. <a href='#SkPath_arcTo'>arcTo</a> appends <a href='undocumented#Line'>Line</a> to end <a href='SkPoint_Reference#Point'>Point</a>
if either radii are zero, or if last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a> equals end <a href='SkPoint_Reference#Point'>Point</a>.
<a href='#SkPath_arcTo'>arcTo</a> scales radii (<a href='#SkPath_rArcTo_rx'>rx</a>, <a href='#SkPath_rArcTo_ry'>ry</a>) to fit last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a> and end <a href='SkPoint_Reference#Point'>Point</a> if both are
greater than zero but too small to describe an <a href='undocumented#Arc'>arc</a>.
<a href='#SkPath_arcTo'>arcTo</a> appends up to four <a href='SkPath_Reference#Conic'>Conic</a> <a href='undocumented#Curve'>curves</a>.
<a href='#SkPath_arcTo'>arcTo</a> implements the functionality of <a href='#SVG_Arc'>SVG_Arc</a>, although <a href='undocumented#SVG'>SVG</a> "sweep-flag" value is
opposite the integer value of <a href='#SkPath_rArcTo_sweep'>sweep</a>; <a href='undocumented#SVG'>SVG</a> "sweep-flag" uses 1 for clockwise, while
<a href='#SkPath_kCW_Direction'>kCW_Direction</a> cast to int is zero.
### Parameters
<table> <tr> <td><a name='SkPath_rArcTo_rx'><code><strong>rx</strong></code></a></td>
<td>radius before x-axis rotation</td>
</tr>
<tr> <td><a name='SkPath_rArcTo_ry'><code><strong>ry</strong></code></a></td>
<td>radius before x-axis rotation</td>
</tr>
<tr> <td><a name='SkPath_rArcTo_xAxisRotate'><code><strong>xAxisRotate</strong></code></a></td>
<td>x-axis rotation in degrees; positive values are clockwise</td>
</tr>
<tr> <td><a name='SkPath_rArcTo_largeArc'><code><strong>largeArc</strong></code></a></td>
<td>chooses smaller or larger <a href='undocumented#Arc'>Arc</a></td>
</tr>
<tr> <td><a name='SkPath_rArcTo_sweep'><code><strong>sweep</strong></code></a></td>
<td>chooses clockwise or counterclockwise <a href='undocumented#Arc'>Arc</a></td>
</tr>
<tr> <td><a name='SkPath_rArcTo_dx'><code><strong>dx</strong></code></a></td>
<td>x-axis offset end of <a href='undocumented#Arc'>Arc</a> from last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a></td>
</tr>
<tr> <td><a name='SkPath_rArcTo_dy'><code><strong>dy</strong></code></a></td>
<td>y-axis offset end of <a href='undocumented#Arc'>Arc</a> from last <a href='SkPath_Reference#Path'>Path</a> <a href='SkPoint_Reference#Point'>Point</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#Path'>Path</a>
### Example
<div><fiddle-embed name="@Path_rArcTo"></fiddle-embed></div>
### See Also
<a href='#SkPath_arcTo'>arcTo</a> <a href='#SkPath_ArcSize'>ArcSize</a> <a href='#SkPath_Direction'>Direction</a>
<a name='SkPath_close'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_close'>close()</a>
</pre>
Appends <a href='#SkPath_kClose_Verb'>kClose_Verb</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>. A closed <a href='SkPath_Overview#Contour'>contour</a> connects the first and last <a href='SkPoint_Reference#SkPoint'>SkPoint</a>
with <a href='undocumented#Line'>line</a>, forming a continuous loop. Open and closed <a href='SkPath_Overview#Contour'>contour</a> draw the same
with <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_kFill_Style'>kFill_Style</a>. With <a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_kStroke_Style'>kStroke_Style</a>, open <a href='SkPath_Overview#Contour'>contour</a> draws
<a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_Cap'>Cap</a> at <a href='SkPath_Overview#Contour'>contour</a> start and end; closed <a href='SkPath_Overview#Contour'>contour</a> draws
<a href='SkPaint_Reference#SkPaint'>SkPaint</a>::<a href='#SkPaint_Join'>Join</a> at <a href='SkPath_Overview#Contour'>contour</a> start and end.
<a href='#SkPath_close'>close()</a> has no effect if <a href='SkPath_Reference#SkPath'>SkPath</a> is empty or last <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> is <a href='#SkPath_kClose_Verb'>kClose_Verb</a>.
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_close"></fiddle-embed></div>
### See Also
<a name='SkPath_IsInverseFillType'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
static bool <a href='#SkPath_IsInverseFillType'>IsInverseFillType</a>(<a href='#SkPath_FillType'>FillType</a> fill)
</pre>
Returns true if <a href='#SkPath_IsInverseFillType_fill'>fill</a> is inverted and <a href='SkPath_Reference#Path'>Path</a> with <a href='#SkPath_IsInverseFillType_fill'>fill</a> represents area outside
of its geometric bounds.
| <a href='#SkPath_FillType'>FillType</a> | is inverse |
| --- | --- |
| <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> | false |
| <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> | false |
| <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a> | true |
| <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a> | true |
### Parameters
<table> <tr> <td><a name='SkPath_IsInverseFillType_fill'><code><strong>fill</strong></code></a></td>
<td>one of: <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>, <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a>,
<a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a>, <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a>
</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#Path'>Path</a> fills outside its bounds
### Example
<div><fiddle-embed name="@Path_IsInverseFillType">
#### Example Output
~~~~
IsInverseFillType(kWinding_FillType) == false
IsInverseFillType(kEvenOdd_FillType) == false
IsInverseFillType(kInverseWinding_FillType) == true
IsInverseFillType(kInverseEvenOdd_FillType) == true
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_getFillType'>getFillType</a> <a href='#SkPath_setFillType'>setFillType</a> <a href='#SkPath_ConvertToNonInverseFillType'>ConvertToNonInverseFillType</a>
<a name='SkPath_ConvertToNonInverseFillType'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
static <a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_ConvertToNonInverseFillType'>ConvertToNonInverseFillType</a>(<a href='#SkPath_FillType'>FillType</a> fill)
</pre>
Returns equivalent <a href='#Path_Fill_Type'>Fill_Type</a> representing <a href='SkPath_Reference#Path'>Path</a> <a href='#SkPath_ConvertToNonInverseFillType_fill'>fill</a> inside its bounds.
| <a href='#SkPath_FillType'>FillType</a> | inside <a href='#SkPath_FillType'>FillType</a> |
| --- | --- |
| <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> | <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> |
| <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> | <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> |
| <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a> | <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> |
| <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a> | <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> |
### Parameters
<table> <tr> <td><a name='SkPath_ConvertToNonInverseFillType_fill'><code><strong>fill</strong></code></a></td>
<td>one of: <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a>, <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a>,
<a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a>, <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a>
</td>
</tr>
</table>
### Return Value
<a href='#SkPath_ConvertToNonInverseFillType_fill'>fill</a>, or <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> or <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> if <a href='#SkPath_ConvertToNonInverseFillType_fill'>fill</a> is inverted
### Example
<div><fiddle-embed name="@Path_ConvertToNonInverseFillType">
#### Example Output
~~~~
ConvertToNonInverseFillType(kWinding_FillType) == kWinding_FillType
ConvertToNonInverseFillType(kEvenOdd_FillType) == kEvenOdd_FillType
ConvertToNonInverseFillType(kInverseWinding_FillType) == kWinding_FillType
ConvertToNonInverseFillType(kInverseEvenOdd_FillType) == kEvenOdd_FillType
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_FillType'>FillType</a> <a href='#SkPath_getFillType'>getFillType</a> <a href='#SkPath_setFillType'>setFillType</a> <a href='#SkPath_IsInverseFillType'>IsInverseFillType</a>
<a name='SkPath_ConvertConicToQuads'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
static int <a href='#SkPath_ConvertConicToQuads'>ConvertConicToQuads</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p0, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p1, const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p2, <a href='undocumented#SkScalar'>SkScalar</a> w,
<a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[], int pow2)
</pre>
Approximates <a href='SkPath_Reference#Conic'>Conic</a> with <a href='SkPath_Reference#Quad'>Quad</a> array. <a href='SkPath_Reference#Conic'>Conic</a> is constructed from start <a href='SkPoint_Reference#Point'>Point</a> <a href='#SkPath_ConvertConicToQuads_p0'>p0</a>,
control <a href='SkPoint_Reference#Point'>Point</a> <a href='#SkPath_ConvertConicToQuads_p1'>p1</a>, end <a href='SkPoint_Reference#Point'>Point</a> <a href='#SkPath_ConvertConicToQuads_p2'>p2</a>, and weight <a href='#SkPath_ConvertConicToQuads_w'>w</a>.
<a href='SkPath_Reference#Quad'>Quad</a> array is stored in <a href='#SkPath_ConvertConicToQuads_pts'>pts</a>; this storage is supplied by caller.
Maximum <a href='SkPath_Reference#Quad'>Quad</a> count is 2 to the <a href='#SkPath_ConvertConicToQuads_pow2'>pow2</a>.
Every third <a href='SkPoint_Reference#Point'>point</a> in array shares last <a href='SkPoint_Reference#Point'>Point</a> of previous <a href='SkPath_Reference#Quad'>Quad</a> and first <a href='SkPoint_Reference#Point'>Point</a> of
next <a href='SkPath_Reference#Quad'>Quad</a>. Maximum <a href='#SkPath_ConvertConicToQuads_pts'>pts</a> storage <a href='undocumented#Size'>size</a> is given by:
<code>(1 + 2 * (1 << <a href='#SkPath_ConvertConicToQuads_pow2'>pow2</a>)) * <a href='undocumented#sizeof()'>sizeof</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a>)</code>.
Returns <a href='SkPath_Reference#Quad'>Quad</a> count used the approximation, which may be smaller
than the number requested.
<a href='#Path_Conic_Weight'>Conic_Weight</a> determines the amount of influence <a href='SkPath_Reference#Conic'>Conic</a> control <a href='SkPoint_Reference#Point'>point</a> has on the <a href='undocumented#Curve'>curve</a>.
<a href='#SkPath_ConvertConicToQuads_w'>w</a> less than one represents an elliptical section. <a href='#SkPath_ConvertConicToQuads_w'>w</a> greater than one represents
a hyperbolic section. <a href='#SkPath_ConvertConicToQuads_w'>w</a> equal to one represents a parabolic section.
Two <a href='SkPath_Reference#Quad'>Quad</a> <a href='undocumented#Curve'>curves</a> are sufficient to approximate an elliptical <a href='SkPath_Reference#Conic'>Conic</a> with a sweep
of up to 90 degrees; in this case, set <a href='#SkPath_ConvertConicToQuads_pow2'>pow2</a> to one.
### Parameters
<table> <tr> <td><a name='SkPath_ConvertConicToQuads_p0'><code><strong>p0</strong></code></a></td>
<td><a href='SkPath_Reference#Conic'>Conic</a> start <a href='SkPoint_Reference#Point'>Point</a></td>
</tr>
<tr> <td><a name='SkPath_ConvertConicToQuads_p1'><code><strong>p1</strong></code></a></td>
<td><a href='SkPath_Reference#Conic'>Conic</a> control <a href='SkPoint_Reference#Point'>Point</a></td>
</tr>
<tr> <td><a name='SkPath_ConvertConicToQuads_p2'><code><strong>p2</strong></code></a></td>
<td><a href='SkPath_Reference#Conic'>Conic</a> end <a href='SkPoint_Reference#Point'>Point</a></td>
</tr>
<tr> <td><a name='SkPath_ConvertConicToQuads_w'><code><strong>w</strong></code></a></td>
<td><a href='SkPath_Reference#Conic'>Conic</a> weight</td>
</tr>
<tr> <td><a name='SkPath_ConvertConicToQuads_pts'><code><strong>pts</strong></code></a></td>
<td>storage for <a href='SkPath_Reference#Quad'>Quad</a> array</td>
</tr>
<tr> <td><a name='SkPath_ConvertConicToQuads_pow2'><code><strong>pow2</strong></code></a></td>
<td><a href='SkPath_Reference#Quad'>Quad</a> count, as power of two, normally 0 to 5 (1 to 32 <a href='SkPath_Reference#Quad'>Quad</a> <a href='undocumented#Curve'>curves</a>)</td>
</tr>
</table>
### Return Value
number of <a href='SkPath_Reference#Quad'>Quad</a> <a href='undocumented#Curve'>curves</a> written to <a href='#SkPath_ConvertConicToQuads_pts'>pts</a>
### Example
<div><fiddle-embed name="@Path_ConvertConicToQuads"><div>A pair of <a href='SkPath_Reference#Quad'>Quad</a> <a href='undocumented#Curve'>curves</a> are drawn in red on top of the elliptical <a href='SkPath_Reference#Conic'>Conic</a> <a href='undocumented#Curve'>curve</a> in black.
The middle <a href='undocumented#Curve'>curve</a> is nearly circular. The top-right <a href='undocumented#Curve'>curve</a> is parabolic, which can
be drawn exactly with a single <a href='SkPath_Reference#Quad'>Quad</a>.
</div></fiddle-embed></div>
### See Also
<a href='SkPath_Reference#Conic'>Conic</a> <a href='SkPath_Reference#Quad'>Quad</a>
<a name='SkPath_isRect'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isRect'>isRect</a>(<a href='SkRect_Reference#SkRect'>SkRect</a>* <a href='SkRect_Reference#Rect'>rect</a>, bool* isClosed = nullptr, <a href='#SkPath_Direction'>Direction</a>* direction = nullptr)const
</pre>
Returns true if <a href='SkPath_Reference#SkPath'>SkPath</a> is equivalent to <a href='SkRect_Reference#SkRect'>SkRect</a> when filled.
If false: <a href='#SkPath_isRect_rect'>rect</a>, <a href='#SkPath_isRect_isClosed'>isClosed</a>, and <a href='#SkPath_isRect_direction'>direction</a> are unchanged.
If true: <a href='#SkPath_isRect_rect'>rect</a>, <a href='#SkPath_isRect_isClosed'>isClosed</a>, and <a href='#SkPath_isRect_direction'>direction</a> are written to if not nullptr.
<a href='#SkPath_isRect_rect'>rect</a> may be smaller than the <a href='SkPath_Reference#SkPath'>SkPath</a> bounds. <a href='SkPath_Reference#SkPath'>SkPath</a> bounds may include <a href='#SkPath_kMove_Verb'>kMove_Verb</a> <a href='SkPoint_Reference#Point'>points</a>
that do not alter the area drawn by the returned <a href='#SkPath_isRect_rect'>rect</a>.
### Parameters
<table> <tr> <td><a name='SkPath_isRect_rect'><code><strong>rect</strong></code></a></td>
<td>storage for bounds of <a href='SkRect_Reference#SkRect'>SkRect</a>; may be nullptr</td>
</tr>
<tr> <td><a name='SkPath_isRect_isClosed'><code><strong>isClosed</strong></code></a></td>
<td>storage set to true if <a href='SkPath_Reference#SkPath'>SkPath</a> is closed; may be nullptr</td>
</tr>
<tr> <td><a name='SkPath_isRect_direction'><code><strong>direction</strong></code></a></td>
<td>storage set to <a href='SkRect_Reference#SkRect'>SkRect</a> <a href='#SkPath_isRect_direction'>direction</a>; may be nullptr</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> contains <a href='SkRect_Reference#SkRect'>SkRect</a>
### Example
<div><fiddle-embed name="@Path_isRect"><div>After <a href='#SkPath_addRect'>addRect</a>, <a href='#SkPath_isRect'>isRect</a> returns true. Following <a href='#SkPath_moveTo'>moveTo</a> permits <a href='#SkPath_isRect'>isRect</a> to return true, but
following <a href='#SkPath_lineTo'>lineTo</a> does not. <a href='#SkPath_addPoly'>addPoly</a> returns true even though <a href='#SkPath_isRect_rect'>rect</a> is not closed, and one
side of <a href='#SkPath_isRect_rect'>rect</a> is made up of consecutive <a href='undocumented#Line'>line</a> segments.
</div>
#### Example Output
~~~~
empty is not rect
addRect is rect (10, 20, 30, 40); is closed; direction CW
moveTo is rect (10, 20, 30, 40); is closed; direction CW
lineTo is not rect
addPoly is rect (0, 0, 80, 80); is not closed; direction CCW
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_computeTightBounds'>computeTightBounds</a> <a href='#SkPath_conservativelyContainsRect'>conservativelyContainsRect</a> <a href='#SkPath_getBounds'>getBounds</a> <a href='#SkPath_isConvex'>isConvex</a> <a href='#SkPath_isLastContourClosed'>isLastContourClosed</a> <a href='#SkPath_isNestedFillRects'>isNestedFillRects</a>
<a name='SkPath_isNestedFillRects'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isNestedFillRects'>isNestedFillRects</a>(<a href='SkRect_Reference#SkRect'>SkRect</a> <a href='SkRect_Reference#Rect'>rect</a>[2], <a href='#SkPath_Direction'>Direction</a> dirs[2] = nullptr)const
</pre>
Returns true if <a href='SkPath_Reference#SkPath'>SkPath</a> is equivalent to nested <a href='SkRect_Reference#SkRect'>SkRect</a> pair when filled.
If false, <a href='#SkPath_isNestedFillRects_rect'>rect</a> and <a href='#SkPath_isNestedFillRects_dirs'>dirs</a> are unchanged.
If true, <a href='#SkPath_isNestedFillRects_rect'>rect</a> and <a href='#SkPath_isNestedFillRects_dirs'>dirs</a> are written to if not nullptr:
setting <a href='#SkPath_isNestedFillRects_rect'>rect</a>[0] to outer <a href='SkRect_Reference#SkRect'>SkRect</a>, and <a href='#SkPath_isNestedFillRects_rect'>rect</a>[1] to inner <a href='SkRect_Reference#SkRect'>SkRect</a>;
setting <a href='#SkPath_isNestedFillRects_dirs'>dirs</a>[0] to <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> of outer <a href='SkRect_Reference#SkRect'>SkRect</a>, and <a href='#SkPath_isNestedFillRects_dirs'>dirs</a>[1] to <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> of
inner <a href='SkRect_Reference#SkRect'>SkRect</a>.
### Parameters
<table> <tr> <td><a name='SkPath_isNestedFillRects_rect'><code><strong>rect</strong></code></a></td>
<td>storage for <a href='SkRect_Reference#SkRect'>SkRect</a> pair; may be nullptr</td>
</tr>
<tr> <td><a name='SkPath_isNestedFillRects_dirs'><code><strong>dirs</strong></code></a></td>
<td>storage for <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> pair; may be nullptr</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> contains nested <a href='SkRect_Reference#SkRect'>SkRect</a> pair
### Example
<div><fiddle-embed name="77e4394caf9fa083c19c21c2462efe14">
#### Example Output
~~~~
outer (7.5, 17.5, 32.5, 42.5); direction CW
inner (12.5, 22.5, 27.5, 37.5); direction CCW
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_computeTightBounds'>computeTightBounds</a> <a href='#SkPath_conservativelyContainsRect'>conservativelyContainsRect</a> <a href='#SkPath_getBounds'>getBounds</a> <a href='#SkPath_isConvex'>isConvex</a> <a href='#SkPath_isLastContourClosed'>isLastContourClosed</a> <a href='#SkPath_isRect'>isRect</a>
<a name='SkPath_addRect'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRect'>addRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>)
</pre>
Adds <a href='SkRect_Reference#SkRect'>SkRect</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, appending <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, three <a href='#SkPath_kLine_Verb'>kLine_Verb</a>, and <a href='#SkPath_kClose_Verb'>kClose_Verb</a>,
starting with top-left corner of <a href='SkRect_Reference#SkRect'>SkRect</a>; followed by top-right, bottom-right,
and bottom-left if <a href='#SkPath_addRect_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>; or followed by bottom-left,
bottom-right, and top-right if <a href='#SkPath_addRect_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addRect_rect'><code><strong>rect</strong></code></a></td>
<td><a href='SkRect_Reference#SkRect'>SkRect</a> to add as a closed <a href='SkPath_Overview#Contour'>contour</a></td>
</tr>
<tr> <td><a name='SkPath_addRect_dir'><code><strong>dir</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> to wind added <a href='SkPath_Overview#Contour'>contour</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addRect"><div>The left <a href='SkRect_Reference#Rect'>Rect</a> dashes starting at the top-left corner, to the right.
The right <a href='SkRect_Reference#Rect'>Rect</a> dashes starting at the top-left corner, towards the bottom.
</div></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawRect'>drawRect</a> <a href='#SkPath_Direction'>Direction</a>
<a name='SkPath_addRect_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRect'>addRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, <a href='#SkPath_Direction'>Direction</a> dir, unsigned start)
</pre>
Adds <a href='SkRect_Reference#Rect'>Rect</a> to <a href='SkPath_Reference#Path'>Path</a>, appending <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, three <a href='#SkPath_kLine_Verb'>kLine_Verb</a>, and <a href='#SkPath_kClose_Verb'>kClose_Verb</a>.
If <a href='#SkPath_addRect_2_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, <a href='SkRect_Reference#Rect'>Rect</a> corners are added clockwise; if <a href='#SkPath_addRect_2_dir'>dir</a> is
<a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>, <a href='SkRect_Reference#Rect'>Rect</a> corners are added counterclockwise.
<a href='#SkPath_addRect_2_start'>start</a> determines the first corner added.
| <a href='#SkPath_addRect_2_start'>start</a> | first corner |
| --- | --- |
| 0 | top-left |
| 1 | top-right |
| 2 | bottom-right |
| 3 | bottom-left |
### Parameters
<table> <tr> <td><a name='SkPath_addRect_2_rect'><code><strong>rect</strong></code></a></td>
<td><a href='SkRect_Reference#Rect'>Rect</a> to add as a closed <a href='SkPath_Overview#Contour'>contour</a></td>
</tr>
<tr> <td><a name='SkPath_addRect_2_dir'><code><strong>dir</strong></code></a></td>
<td><a href='#SkPath_Direction'>Direction</a> to wind added <a href='SkPath_Overview#Contour'>contour</a></td>
</tr>
<tr> <td><a name='SkPath_addRect_2_start'><code><strong>start</strong></code></a></td>
<td>initial corner of <a href='SkRect_Reference#Rect'>Rect</a> to add</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#Path'>Path</a>
### Example
<div><fiddle-embed name="@Path_addRect_2"><div>The arrow is just after the initial corner and <a href='SkPoint_Reference#Point'>points</a> towards the next
corner appended to <a href='SkPath_Reference#Path'>Path</a>.
</div></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawRect'>drawRect</a> <a href='#SkPath_Direction'>Direction</a>
<a name='SkPath_addRect_3'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRect'>addRect</a>(<a href='undocumented#SkScalar'>SkScalar</a> left, <a href='undocumented#SkScalar'>SkScalar</a> top, <a href='undocumented#SkScalar'>SkScalar</a> right, <a href='undocumented#SkScalar'>SkScalar</a> bottom,
<a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>)
</pre>
Adds <a href='SkRect_Reference#SkRect'>SkRect</a> (<a href='#SkPath_addRect_3_left'>left</a>, <a href='#SkPath_addRect_3_top'>top</a>, <a href='#SkPath_addRect_3_right'>right</a>, <a href='#SkPath_addRect_3_bottom'>bottom</a>) to <a href='SkPath_Reference#SkPath'>SkPath</a>,
appending <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, three <a href='#SkPath_kLine_Verb'>kLine_Verb</a>, and <a href='#SkPath_kClose_Verb'>kClose_Verb</a>,
starting with top-left corner of <a href='SkRect_Reference#SkRect'>SkRect</a>; followed by top-right, bottom-right,
and bottom-left if <a href='#SkPath_addRect_3_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>; or followed by bottom-left,
bottom-right, and top-right if <a href='#SkPath_addRect_3_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addRect_3_left'><code><strong>left</strong></code></a></td>
<td>smaller x-axis value of <a href='SkRect_Reference#SkRect'>SkRect</a></td>
</tr>
<tr> <td><a name='SkPath_addRect_3_top'><code><strong>top</strong></code></a></td>
<td>smaller y-axis value of <a href='SkRect_Reference#SkRect'>SkRect</a></td>
</tr>
<tr> <td><a name='SkPath_addRect_3_right'><code><strong>right</strong></code></a></td>
<td>larger x-axis value of <a href='SkRect_Reference#SkRect'>SkRect</a></td>
</tr>
<tr> <td><a name='SkPath_addRect_3_bottom'><code><strong>bottom</strong></code></a></td>
<td>larger y-axis value of <a href='SkRect_Reference#SkRect'>SkRect</a></td>
</tr>
<tr> <td><a name='SkPath_addRect_3_dir'><code><strong>dir</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> to wind added <a href='SkPath_Overview#Contour'>contour</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addRect_3"><div>The <a href='#SkPath_addRect_3_left'>left</a> <a href='SkRect_Reference#Rect'>Rect</a> dashes start at the top-left corner, and continue to the <a href='#SkPath_addRect_3_right'>right</a>.
The <a href='#SkPath_addRect_3_right'>right</a> <a href='SkRect_Reference#Rect'>Rect</a> dashes start at the top-left corner, and continue down.
</div></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawRect'>drawRect</a> <a href='#SkPath_Direction'>Direction</a>
<a name='SkPath_addOval'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addOval'>addOval</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>)
</pre>
Adds <a href='#SkPath_addOval_oval'>oval</a> to <a href='SkPath_Reference#Path'>path</a>, appending <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, four <a href='#SkPath_kConic_Verb'>kConic_Verb</a>, and <a href='#SkPath_kClose_Verb'>kClose_Verb</a>.
<a href='undocumented#Oval'>Oval</a> is upright ellipse bounded by <a href='SkRect_Reference#SkRect'>SkRect</a> <a href='#SkPath_addOval_oval'>oval</a> with radii equal to half <a href='#SkPath_addOval_oval'>oval</a> width
and half <a href='#SkPath_addOval_oval'>oval</a> height. <a href='undocumented#Oval'>Oval</a> begins at (<a href='#SkPath_addOval_oval'>oval</a>.<a href='#SkRect_fRight'>fRight</a>, <a href='#SkPath_addOval_oval'>oval</a>.<a href='#SkRect_centerY'>centerY</a>()) and continues
clockwise if <a href='#SkPath_addOval_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, counterclockwise if <a href='#SkPath_addOval_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addOval_oval'><code><strong>oval</strong></code></a></td>
<td>bounds of ellipse added</td>
</tr>
<tr> <td><a name='SkPath_addOval_dir'><code><strong>dir</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> to wind ellipse</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addOval"></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawOval'>drawOval</a> <a href='#SkPath_Direction'>Direction</a> <a href='undocumented#Oval'>Oval</a>
<a name='SkPath_addOval_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addOval'>addOval</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='#SkPath_Direction'>Direction</a> dir, unsigned start)
</pre>
Adds <a href='undocumented#Oval'>Oval</a> to <a href='SkPath_Reference#Path'>Path</a>, appending <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, four <a href='#SkPath_kConic_Verb'>kConic_Verb</a>, and <a href='#SkPath_kClose_Verb'>kClose_Verb</a>.
<a href='undocumented#Oval'>Oval</a> is upright ellipse bounded by <a href='SkRect_Reference#Rect'>Rect</a> <a href='#SkPath_addOval_2_oval'>oval</a> with radii equal to half <a href='#SkPath_addOval_2_oval'>oval</a> width
and half <a href='#SkPath_addOval_2_oval'>oval</a> height. <a href='undocumented#Oval'>Oval</a> begins at <a href='#SkPath_addOval_2_start'>start</a> and continues
clockwise if <a href='#SkPath_addOval_2_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, counterclockwise if <a href='#SkPath_addOval_2_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>.
| <a href='#SkPath_addOval_2_start'>start</a> | <a href='SkPoint_Reference#Point'>Point</a> |
| --- | --- |
| 0 | <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_centerX'>centerX</a>(), <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_fTop'>fTop</a> |
| 1 | <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_fRight'>fRight</a>, <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_centerY'>centerY</a>() |
| 2 | <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_centerX'>centerX</a>(), <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_fBottom'>fBottom</a> |
| 3 | <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_fLeft'>fLeft</a>, <a href='#SkPath_addOval_2_oval'>oval</a>.<a href='#SkRect_centerY'>centerY</a>() |
### Parameters
<table> <tr> <td><a name='SkPath_addOval_2_oval'><code><strong>oval</strong></code></a></td>
<td>bounds of ellipse added</td>
</tr>
<tr> <td><a name='SkPath_addOval_2_dir'><code><strong>dir</strong></code></a></td>
<td><a href='#SkPath_Direction'>Direction</a> to wind ellipse</td>
</tr>
<tr> <td><a name='SkPath_addOval_2_start'><code><strong>start</strong></code></a></td>
<td>index of initial <a href='SkPoint_Reference#Point'>point</a> of ellipse</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#Path'>Path</a>
### Example
<div><fiddle-embed name="f1122d6fffddac0167e96fab4b9a862f"></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawOval'>drawOval</a> <a href='#SkPath_Direction'>Direction</a> <a href='undocumented#Oval'>Oval</a>
<a name='SkPath_addCircle'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addCircle'>addCircle</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y, <a href='undocumented#SkScalar'>SkScalar</a> radius, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>)
</pre>
Adds <a href='undocumented#Circle'>Circle</a> centered at (<a href='#SkPath_addCircle_x'>x</a>, <a href='#SkPath_addCircle_y'>y</a>) of <a href='undocumented#Size'>size</a> <a href='#SkPath_addCircle_radius'>radius</a> to <a href='SkPath_Reference#Path'>Path</a>, appending <a href='#SkPath_kMove_Verb'>kMove_Verb</a>,
four <a href='#SkPath_kConic_Verb'>kConic_Verb</a>, and <a href='#SkPath_kClose_Verb'>kClose_Verb</a>. <a href='undocumented#Circle'>Circle</a> begins at: <code>(<a href='#SkPath_addCircle_x'>x</a> + <a href='#SkPath_addCircle_radius'>radius</a>, <a href='#SkPath_addCircle_y'>y</a>)</code>, continuing
clockwise if <a href='#SkPath_addCircle_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, and counterclockwise if <a href='#SkPath_addCircle_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>.
Has no effect if <a href='#SkPath_addCircle_radius'>radius</a> is zero or negative.
### Parameters
<table> <tr> <td><a name='SkPath_addCircle_x'><code><strong>x</strong></code></a></td>
<td>center of <a href='undocumented#Circle'>Circle</a></td>
</tr>
<tr> <td><a name='SkPath_addCircle_y'><code><strong>y</strong></code></a></td>
<td>center of <a href='undocumented#Circle'>Circle</a></td>
</tr>
<tr> <td><a name='SkPath_addCircle_radius'><code><strong>radius</strong></code></a></td>
<td>distance from center to edge</td>
</tr>
<tr> <td><a name='SkPath_addCircle_dir'><code><strong>dir</strong></code></a></td>
<td><a href='#SkPath_Direction'>Direction</a> to wind <a href='undocumented#Circle'>Circle</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#Path'>Path</a>
### Example
<div><fiddle-embed name="@Path_addCircle"></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawCircle'>drawCircle</a> <a href='#SkPath_Direction'>Direction</a> <a href='undocumented#Circle'>Circle</a>
<a name='SkPath_addArc'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addArc'>addArc</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='undocumented#Oval'>oval</a>, <a href='undocumented#SkScalar'>SkScalar</a> startAngle, <a href='undocumented#SkScalar'>SkScalar</a> sweepAngle)
</pre>
Appends <a href='undocumented#Arc'>arc</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, as the start of new <a href='SkPath_Overview#Contour'>contour</a>. <a href='undocumented#Arc'>Arc</a> added is part of ellipse
bounded by <a href='#SkPath_addArc_oval'>oval</a>, from <a href='#SkPath_addArc_startAngle'>startAngle</a> through <a href='#SkPath_addArc_sweepAngle'>sweepAngle</a>. Both <a href='#SkPath_addArc_startAngle'>startAngle</a> and
<a href='#SkPath_addArc_sweepAngle'>sweepAngle</a> are measured in degrees, where zero degrees is aligned with the
positive x-axis, and positive sweeps extends <a href='undocumented#Arc'>arc</a> clockwise.
If <a href='#SkPath_addArc_sweepAngle'>sweepAngle</a> <= -360, or <a href='#SkPath_addArc_sweepAngle'>sweepAngle</a> >= 360; and <a href='#SkPath_addArc_startAngle'>startAngle</a> modulo 90 is nearly
zero, append <a href='#SkPath_addArc_oval'>oval</a> instead of <a href='undocumented#Arc'>arc</a>. Otherwise, <a href='#SkPath_addArc_sweepAngle'>sweepAngle</a> values are treated
modulo 360, and <a href='undocumented#Arc'>arc</a> may or may not draw depending on numeric rounding.
### Parameters
<table> <tr> <td><a name='SkPath_addArc_oval'><code><strong>oval</strong></code></a></td>
<td>bounds of ellipse containing <a href='undocumented#Arc'>arc</a></td>
</tr>
<tr> <td><a name='SkPath_addArc_startAngle'><code><strong>startAngle</strong></code></a></td>
<td>starting angle of <a href='undocumented#Arc'>arc</a> in degrees</td>
</tr>
<tr> <td><a name='SkPath_addArc_sweepAngle'><code><strong>sweepAngle</strong></code></a></td>
<td>sweep, in degrees. Positive is clockwise; treated modulo 360</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addArc"><div>The middle row of the left and right columns draw differently from the entries
above and below because <a href='#SkPath_addArc_sweepAngle'>sweepAngle</a> is outside of the range of +/-360,
and <a href='#SkPath_addArc_startAngle'>startAngle</a> modulo 90 is not zero.
</div></fiddle-embed></div>
### See Also
<a href='undocumented#Arc'>Arc</a> <a href='#SkPath_arcTo'>arcTo</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawArc'>drawArc</a>
<a name='SkPath_addRoundRect'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRoundRect'>addRoundRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, <a href='undocumented#SkScalar'>SkScalar</a> rx, <a href='undocumented#SkScalar'>SkScalar</a> ry, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>)
</pre>
Appends <a href='SkRRect_Reference#SkRRect'>SkRRect</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, creating a new closed <a href='SkPath_Overview#Contour'>contour</a>. <a href='SkRRect_Reference#SkRRect'>SkRRect</a> has bounds
equal to <a href='#SkPath_addRoundRect_rect'>rect</a>; each corner is 90 degrees of an ellipse with radii (<a href='#SkPath_addRoundRect_rx'>rx</a>, <a href='#SkPath_addRoundRect_ry'>ry</a>). If
<a href='#SkPath_addRoundRect_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, <a href='SkRRect_Reference#SkRRect'>SkRRect</a> starts at top-left of the lower-left corner and
winds clockwise. If <a href='#SkPath_addRoundRect_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>, <a href='SkRRect_Reference#SkRRect'>SkRRect</a> starts at the bottom-left
of the upper-left corner and winds counterclockwise.
If either <a href='#SkPath_addRoundRect_rx'>rx</a> or <a href='#SkPath_addRoundRect_ry'>ry</a> is too large, <a href='#SkPath_addRoundRect_rx'>rx</a> and <a href='#SkPath_addRoundRect_ry'>ry</a> are scaled uniformly until the
corners fit. If <a href='#SkPath_addRoundRect_rx'>rx</a> or <a href='#SkPath_addRoundRect_ry'>ry</a> is less than or equal to zero, <a href='#SkPath_addRoundRect'>addRoundRect</a>() appends
<a href='SkRect_Reference#SkRect'>SkRect</a> <a href='#SkPath_addRoundRect_rect'>rect</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>.
After appending, <a href='SkPath_Reference#SkPath'>SkPath</a> may be empty, or may contain: <a href='SkRect_Reference#SkRect'>SkRect</a>, <a href='undocumented#Oval'>oval</a>, or <a href='SkRRect_Reference#SkRRect'>SkRRect</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addRoundRect_rect'><code><strong>rect</strong></code></a></td>
<td>bounds of <a href='SkRRect_Reference#SkRRect'>SkRRect</a></td>
</tr>
<tr> <td><a name='SkPath_addRoundRect_rx'><code><strong>rx</strong></code></a></td>
<td>x-axis radius of rounded corners on the <a href='SkRRect_Reference#SkRRect'>SkRRect</a></td>
</tr>
<tr> <td><a name='SkPath_addRoundRect_ry'><code><strong>ry</strong></code></a></td>
<td>y-axis radius of rounded corners on the <a href='SkRRect_Reference#SkRRect'>SkRRect</a></td>
</tr>
<tr> <td><a name='SkPath_addRoundRect_dir'><code><strong>dir</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> to wind <a href='SkRRect_Reference#SkRRect'>SkRRect</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addRoundRect"><div>If either radius is zero, <a href='SkPath_Reference#Path'>path</a> contains <a href='SkRect_Reference#Rect'>Rect</a> and is drawn red.
If sides are only radii, <a href='SkPath_Reference#Path'>path</a> contains <a href='undocumented#Oval'>Oval</a> and is drawn blue.
All remaining <a href='SkPath_Reference#Path'>path</a> draws are convex, and are drawn in gray; no
<a href='SkPath_Reference#Path'>paths</a> constructed from <a href='#SkPath_addRoundRect'>addRoundRect</a> are concave, so none are
drawn in green.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_addRRect'>addRRect</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawRoundRect'>drawRoundRect</a>
<a name='SkPath_addRoundRect_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRoundRect'>addRoundRect</a>(const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='SkRect_Reference#Rect'>rect</a>, const <a href='undocumented#SkScalar'>SkScalar</a> radii[], <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>)
</pre>
Appends <a href='#RRect'>Round_Rect</a> to <a href='SkPath_Reference#Path'>Path</a>, creating a new closed <a href='SkPath_Overview#Contour'>Contour</a>. <a href='#RRect'>Round_Rect</a> has bounds
equal to <a href='#SkPath_addRoundRect_2_rect'>rect</a>; each corner is 90 degrees of an ellipse with <a href='#SkPath_addRoundRect_2_radii'>radii</a> from the
array.
| <a href='#SkPath_addRoundRect_2_radii'>radii</a> index | location |
| --- | --- |
| 0 | x-axis radius of top-left corner |
| 1 | y-axis radius of top-left corner |
| 2 | x-axis radius of top-right corner |
| 3 | y-axis radius of top-right corner |
| 4 | x-axis radius of bottom-right corner |
| 5 | y-axis radius of bottom-right corner |
| 6 | x-axis radius of bottom-left corner |
| 7 | y-axis radius of bottom-left corner |
If <a href='#SkPath_addRoundRect_2_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, <a href='#RRect'>Round_Rect</a> starts at top-left of the lower-left corner
and winds clockwise. If <a href='#SkPath_addRoundRect_2_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>, <a href='#RRect'>Round_Rect</a> starts at the
bottom-left of the upper-left corner and winds counterclockwise.
If both <a href='#SkPath_addRoundRect_2_radii'>radii</a> on any side of <a href='#SkPath_addRoundRect_2_rect'>rect</a> exceed its length, all <a href='#SkPath_addRoundRect_2_radii'>radii</a> are scaled
uniformly until the corners fit. If either radius of a corner is less than or
equal to zero, both are treated as zero.
After appending, <a href='SkPath_Reference#Path'>Path</a> may be empty, or may contain: <a href='SkRect_Reference#Rect'>Rect</a>, <a href='undocumented#Oval'>Oval</a>, or <a href='#RRect'>Round_Rect</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addRoundRect_2_rect'><code><strong>rect</strong></code></a></td>
<td>bounds of <a href='#RRect'>Round_Rect</a></td>
</tr>
<tr> <td><a name='SkPath_addRoundRect_2_radii'><code><strong>radii</strong></code></a></td>
<td>array of 8 <a href='undocumented#SkScalar'>SkScalar</a> values, a radius pair for each corner</td>
</tr>
<tr> <td><a name='SkPath_addRoundRect_2_dir'><code><strong>dir</strong></code></a></td>
<td><a href='#SkPath_Direction'>Direction</a> to wind <a href='#RRect'>Round_Rect</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#Path'>Path</a>
### Example
<div><fiddle-embed name="@Path_addRoundRect_2"></fiddle-embed></div>
### See Also
<a href='#SkPath_addRRect'>addRRect</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawRoundRect'>drawRoundRect</a>
<a name='SkPath_addRRect'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRRect'>addRRect</a>(const <a href='SkRRect_Reference#SkRRect'>SkRRect</a>& rrect, <a href='#SkPath_Direction'>Direction</a> dir = <a href='#SkPath_kCW_Direction'>kCW_Direction</a>)
</pre>
Adds <a href='#SkPath_addRRect_rrect'>rrect</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, creating a new closed <a href='SkPath_Overview#Contour'>contour</a>. If
<a href='#SkPath_addRRect_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, <a href='#SkPath_addRRect_rrect'>rrect</a> starts at top-left of the lower-left corner and
winds clockwise. If <a href='#SkPath_addRRect_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>, <a href='#SkPath_addRRect_rrect'>rrect</a> starts at the bottom-left
of the upper-left corner and winds counterclockwise.
After appending, <a href='SkPath_Reference#SkPath'>SkPath</a> may be empty, or may contain: <a href='SkRect_Reference#SkRect'>SkRect</a>, <a href='undocumented#Oval'>oval</a>, or <a href='SkRRect_Reference#SkRRect'>SkRRect</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addRRect_rrect'><code><strong>rrect</strong></code></a></td>
<td>bounds and radii of rounded rectangle</td>
</tr>
<tr> <td><a name='SkPath_addRRect_dir'><code><strong>dir</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Direction'>Direction</a> to wind <a href='SkRRect_Reference#SkRRect'>SkRRect</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addRRect"></fiddle-embed></div>
### See Also
<a href='#SkPath_addRoundRect'>addRoundRect</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawRRect'>drawRRect</a>
<a name='SkPath_addRRect_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addRRect'>addRRect</a>(const <a href='SkRRect_Reference#SkRRect'>SkRRect</a>& rrect, <a href='#SkPath_Direction'>Direction</a> dir, unsigned start)
</pre>
Adds <a href='#SkPath_addRRect_2_rrect'>rrect</a> to <a href='SkPath_Reference#Path'>Path</a>, creating a new closed <a href='SkPath_Overview#Contour'>Contour</a>. If <a href='#SkPath_addRRect_2_dir'>dir</a> is <a href='#SkPath_kCW_Direction'>kCW_Direction</a>, <a href='#SkPath_addRRect_2_rrect'>rrect</a>
winds clockwise; if <a href='#SkPath_addRRect_2_dir'>dir</a> is <a href='#SkPath_kCCW_Direction'>kCCW_Direction</a>, <a href='#SkPath_addRRect_2_rrect'>rrect</a> winds counterclockwise.
<a href='#SkPath_addRRect_2_start'>start</a> determines the first <a href='SkPoint_Reference#Point'>point</a> of <a href='#SkPath_addRRect_2_rrect'>rrect</a> to add.
| <a href='#SkPath_addRRect_2_start'>start</a> | location |
| --- | --- |
| 0 | right of top-left corner |
| 1 | left of top-right corner |
| 2 | bottom of top-right corner |
| 3 | top of bottom-right corner |
| 4 | left of bottom-right corner |
| 5 | right of bottom-left corner |
| 6 | top of bottom-left corner |
| 7 | bottom of top-left corner |
After appending, <a href='SkPath_Reference#Path'>Path</a> may be empty, or may contain: <a href='SkRect_Reference#Rect'>Rect</a>, <a href='undocumented#Oval'>Oval</a>, or <a href='#RRect'>Round_Rect</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addRRect_2_rrect'><code><strong>rrect</strong></code></a></td>
<td>bounds and radii of rounded rectangle</td>
</tr>
<tr> <td><a name='SkPath_addRRect_2_dir'><code><strong>dir</strong></code></a></td>
<td><a href='#SkPath_Direction'>Direction</a> to wind <a href='#RRect'>Round_Rect</a></td>
</tr>
<tr> <td><a name='SkPath_addRRect_2_start'><code><strong>start</strong></code></a></td>
<td>index of initial <a href='SkPoint_Reference#Point'>point</a> of <a href='#RRect'>Round_Rect</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#Path'>Path</a>
### Example
<div><fiddle-embed name="@Path_addRRect_2"></fiddle-embed></div>
### See Also
<a href='#SkPath_addRoundRect'>addRoundRect</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawRRect'>drawRRect</a>
<a name='SkPath_addPoly'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPoly'>addPoly</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[], int count, bool close)
</pre>
Adds <a href='SkPath_Overview#Contour'>contour</a> created from <a href='undocumented#Line'>line</a> array, adding (<a href='#SkPath_addPoly_count'>count</a> - 1) <a href='undocumented#Line'>line</a> segments.
<a href='SkPath_Overview#Contour'>Contour</a> added starts at <a href='#SkPath_addPoly_pts'>pts</a>[0], then adds a <a href='undocumented#Line'>line</a> for every additional <a href='SkPoint_Reference#SkPoint'>SkPoint</a>
in <a href='#SkPath_addPoly_pts'>pts</a> array. If <a href='#SkPath_addPoly_close'>close</a> is true, appends <a href='#SkPath_kClose_Verb'>kClose_Verb</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, connecting
<a href='#SkPath_addPoly_pts'>pts</a>[<a href='#SkPath_addPoly_count'>count</a> - 1] and <a href='#SkPath_addPoly_pts'>pts</a>[0].
If <a href='#SkPath_addPoly_count'>count</a> is zero, append <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='SkPath_Reference#Path'>path</a>.
Has no effect if <a href='#SkPath_addPoly_count'>count</a> is less than one.
### Parameters
<table> <tr> <td><a name='SkPath_addPoly_pts'><code><strong>pts</strong></code></a></td>
<td>array of <a href='undocumented#Line'>line</a> sharing end and start <a href='SkPoint_Reference#SkPoint'>SkPoint</a></td>
</tr>
<tr> <td><a name='SkPath_addPoly_count'><code><strong>count</strong></code></a></td>
<td>length of <a href='SkPath_Reference#Point_Array'>SkPoint array</a></td>
</tr>
<tr> <td><a name='SkPath_addPoly_close'><code><strong>close</strong></code></a></td>
<td>true to add <a href='undocumented#Line'>line</a> connecting <a href='SkPath_Overview#Contour'>contour</a> end and start</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addPoly"></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawPoints'>drawPoints</a>
<a name='SkPath_addPoly_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPoly'>addPoly</a>(const std::initializer_list<<a href='SkPoint_Reference#SkPoint'>SkPoint</a>>& list, bool close)
</pre>
Adds <a href='SkPath_Overview#Contour'>contour</a> created from <a href='#SkPath_addPoly_2_list'>list</a>. <a href='SkPath_Overview#Contour'>Contour</a> added starts at <a href='#SkPath_addPoly_2_list'>list</a>[0], then adds a <a href='undocumented#Line'>line</a>
for every additional <a href='SkPoint_Reference#SkPoint'>SkPoint</a> in <a href='#SkPath_addPoly_2_list'>list</a>. If <a href='#SkPath_addPoly_2_close'>close</a> is true, appends <a href='#SkPath_kClose_Verb'>kClose_Verb</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>,
connecting last and first <a href='SkPoint_Reference#SkPoint'>SkPoint</a> in <a href='#SkPath_addPoly_2_list'>list</a>.
If <a href='#SkPath_addPoly_2_list'>list</a> is empty, append <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to <a href='SkPath_Reference#Path'>path</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addPoly_2_list'><code><strong>list</strong></code></a></td>
<td>array of <a href='SkPoint_Reference#SkPoint'>SkPoint</a></td>
</tr>
<tr> <td><a name='SkPath_addPoly_2_close'><code><strong>close</strong></code></a></td>
<td>true to add <a href='undocumented#Line'>line</a> connecting <a href='SkPath_Overview#Contour'>contour</a> end and start</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addPoly_2"></fiddle-embed></div>
### See Also
<a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_drawPoints'>drawPoints</a>
<a name='SkPath_AddPathMode'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
enum <a href='#SkPath_AddPathMode'>AddPathMode</a> {
<a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>,
<a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a>,
};
</pre>
<a href='#SkPath_AddPathMode'>AddPathMode</a> chooses how <a href='#SkPath_addPath'>addPath</a> appends. Adding one <a href='SkPath_Reference#Path'>Path</a> to another can extend
the last <a href='SkPath_Overview#Contour'>Contour</a> or start a new <a href='SkPath_Overview#Contour'>Contour</a>.
### Constants
<table style='border-collapse: collapse; width: 62.5em'>
<tr><th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Const</th>
<th style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>Value</th>
<th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Description</th></tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kAppend_AddPathMode'><code>SkPath::kAppend_AddPathMode</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>#Line # appended to destination unaltered ##</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
<a href='SkPath_Reference#Path'>Path</a> <a href='SkPath_Reference#Verb'>Verbs</a>, <a href='SkPoint_Reference#Point'>Points</a>, and <a href='#Path_Conic_Weight'>Conic_Weights</a> are appended to destination unaltered.
Since <a href='SkPath_Reference#Path'>Path</a> <a href='#Path_Verb_Array'>Verb_Array</a> begins with <a href='#SkPath_kMove_Verb'>kMove_Verb</a> if src is not empty, this
starts a new <a href='SkPath_Overview#Contour'>Contour</a>.
</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kExtend_AddPathMode'><code>SkPath::kExtend_AddPathMode</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>#Line # add line if prior Contour is not closed ##</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
If destination is closed or empty, start a new <a href='SkPath_Overview#Contour'>Contour</a>. If destination
is not empty, add <a href='undocumented#Line'>Line</a> from <a href='#Path_Last_Point'>Last_Point</a> to added <a href='SkPath_Reference#Path'>Path</a> first <a href='SkPoint_Reference#Point'>Point</a>. Skip added
<a href='SkPath_Reference#Path'>Path</a> initial <a href='#SkPath_kMove_Verb'>kMove_Verb</a>, then append remaining <a href='SkPath_Reference#Verb'>Verbs</a>, <a href='SkPoint_Reference#Point'>Points</a>, and <a href='#Path_Conic_Weight'>Conic_Weights</a>.
</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_AddPathMode"><div>test is built from <a href='SkPath_Reference#Path'>path</a>, open on the top row, and closed on the bottom row.
The left column uses <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>; the right uses <a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a>.
The top right composition is made up of one <a href='SkPath_Overview#Contour'>contour</a>; the other three have two.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_addPath'>addPath</a> <a href='#SkPath_reverseAddPath'>reverseAddPath</a>
<a name='SkPath_addPath'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPath'>addPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src, <a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy, <a href='#SkPath_AddPathMode'>AddPathMode</a> mode = <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>)
</pre>
Appends <a href='#SkPath_addPath_src'>src</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, offset by (<a href='#SkPath_addPath_dx'>dx</a>, <a href='#SkPath_addPath_dy'>dy</a>).
If <a href='#SkPath_addPath_mode'>mode</a> is <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>, <a href='#SkPath_addPath_src'>src</a> <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a> are
added unaltered. If <a href='#SkPath_addPath_mode'>mode</a> is <a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a>, add <a href='undocumented#Line'>line</a> before appending
<a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addPath_src'><code><strong>src</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a> to add</td>
</tr>
<tr> <td><a name='SkPath_addPath_dx'><code><strong>dx</strong></code></a></td>
<td>offset added to <a href='#SkPath_addPath_src'>src</a> <a href='SkPath_Reference#Point_Array'>SkPoint array</a> x-axis coordinates</td>
</tr>
<tr> <td><a name='SkPath_addPath_dy'><code><strong>dy</strong></code></a></td>
<td>offset added to <a href='#SkPath_addPath_src'>src</a> <a href='SkPath_Reference#Point_Array'>SkPoint array</a> y-axis coordinates</td>
</tr>
<tr> <td><a name='SkPath_addPath_mode'><code><strong>mode</strong></code></a></td>
<td><a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a> or <a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="c416bddfe286628974e1c7f0fd66f3f4"></fiddle-embed></div>
### See Also
<a href='#SkPath_AddPathMode'>AddPathMode</a> <a href='#SkPath_offset'>offset</a> <a href='#SkPath_reverseAddPath'>reverseAddPath</a>
<a name='SkPath_addPath_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPath'>addPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src, <a href='#SkPath_AddPathMode'>AddPathMode</a> mode = <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>)
</pre>
Appends <a href='#SkPath_addPath_2_src'>src</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>.
If <a href='#SkPath_addPath_2_mode'>mode</a> is <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>, <a href='#SkPath_addPath_2_src'>src</a> <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a> are
added unaltered. If <a href='#SkPath_addPath_2_mode'>mode</a> is <a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a>, add <a href='undocumented#Line'>line</a> before appending
<a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addPath_2_src'><code><strong>src</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a> to add</td>
</tr>
<tr> <td><a name='SkPath_addPath_2_mode'><code><strong>mode</strong></code></a></td>
<td><a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a> or <a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addPath_2"></fiddle-embed></div>
### See Also
<a href='#SkPath_AddPathMode'>AddPathMode</a> <a href='#SkPath_reverseAddPath'>reverseAddPath</a>
<a name='SkPath_addPath_3'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_addPath'>addPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src, const <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>& <a href='SkMatrix_Reference#Matrix'>matrix</a>, <a href='#SkPath_AddPathMode'>AddPathMode</a> mode = <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>)
</pre>
Appends <a href='#SkPath_addPath_3_src'>src</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, transformed by <a href='#SkPath_addPath_3_matrix'>matrix</a>. Transformed <a href='undocumented#Curve'>curves</a> may have different
<a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a>.
If <a href='#SkPath_addPath_3_mode'>mode</a> is <a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a>, <a href='#SkPath_addPath_3_src'>src</a> <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a> are
added unaltered. If <a href='#SkPath_addPath_3_mode'>mode</a> is <a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a>, add <a href='undocumented#Line'>line</a> before appending
<a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a>.
### Parameters
<table> <tr> <td><a name='SkPath_addPath_3_src'><code><strong>src</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a> to add</td>
</tr>
<tr> <td><a name='SkPath_addPath_3_matrix'><code><strong>matrix</strong></code></a></td>
<td>transform applied to <a href='#SkPath_addPath_3_src'>src</a></td>
</tr>
<tr> <td><a name='SkPath_addPath_3_mode'><code><strong>mode</strong></code></a></td>
<td><a href='#SkPath_kAppend_AddPathMode'>kAppend_AddPathMode</a> or <a href='#SkPath_kExtend_AddPathMode'>kExtend_AddPathMode</a></td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_addPath_3"></fiddle-embed></div>
### See Also
<a href='#SkPath_AddPathMode'>AddPathMode</a> <a href='#SkPath_transform'>transform</a> <a href='#SkPath_offset'>offset</a> <a href='#SkPath_reverseAddPath'>reverseAddPath</a>
<a name='SkPath_reverseAddPath'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='#SkPath_reverseAddPath'>reverseAddPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& src)
</pre>
Appends <a href='#SkPath_reverseAddPath_src'>src</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>, from back to front.
Reversed <a href='#SkPath_reverseAddPath_src'>src</a> always appends a new <a href='SkPath_Overview#Contour'>contour</a> to <a href='SkPath_Reference#SkPath'>SkPath</a>.
### Parameters
<table> <tr> <td><a name='SkPath_reverseAddPath_src'><code><strong>src</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> <a href='SkPath_Reference#Verb'>verbs</a>, <a href='SkPoint_Reference#SkPoint'>SkPoint</a>, and <a href='SkPath_Reference#Conic_Weight'>conic weights</a> to add</td>
</tr>
</table>
### Return Value
reference to <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_reverseAddPath"></fiddle-embed></div>
### See Also
<a href='#SkPath_AddPathMode'>AddPathMode</a> <a href='#SkPath_transform'>transform</a> <a href='#SkPath_offset'>offset</a> <a href='#SkPath_addPath'>addPath</a>
<a name='SkPath_offset'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void offset(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy, <a href='SkPath_Reference#SkPath'>SkPath</a>* dst)const
</pre>
Offsets <a href='SkPath_Reference#Point_Array'>SkPoint array</a> by (<a href='#SkPath_offset_dx'>dx</a>, <a href='#SkPath_offset_dy'>dy</a>). Offset <a href='SkPath_Reference#SkPath'>SkPath</a> replaces <a href='#SkPath_offset_dst'>dst</a>.
If <a href='#SkPath_offset_dst'>dst</a> is nullptr, <a href='SkPath_Reference#SkPath'>SkPath</a> is replaced by offset <a href='undocumented#Data'>data</a>.
### Parameters
<table> <tr> <td><a name='SkPath_offset_dx'><code><strong>dx</strong></code></a></td>
<td>offset added to <a href='SkPath_Reference#Point_Array'>SkPoint array</a> x-axis coordinates</td>
</tr>
<tr> <td><a name='SkPath_offset_dy'><code><strong>dy</strong></code></a></td>
<td>offset added to <a href='SkPath_Reference#Point_Array'>SkPoint array</a> y-axis coordinates</td>
</tr>
<tr> <td><a name='SkPath_offset_dst'><code><strong>dst</strong></code></a></td>
<td>overwritten, translated copy of <a href='SkPath_Reference#SkPath'>SkPath</a>; may be nullptr</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_offset"></fiddle-embed></div>
### See Also
<a href='#SkPath_addPath'>addPath</a> <a href='#SkPath_transform'>transform</a>
<a name='Transform'></a>
<a name='SkPath_offset_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void offset(<a href='undocumented#SkScalar'>SkScalar</a> dx, <a href='undocumented#SkScalar'>SkScalar</a> dy)
</pre>
Offsets <a href='SkPath_Reference#Point_Array'>SkPoint array</a> by (<a href='#SkPath_offset_2_dx'>dx</a>, <a href='#SkPath_offset_2_dy'>dy</a>). <a href='SkPath_Reference#SkPath'>SkPath</a> is replaced by offset <a href='undocumented#Data'>data</a>.
### Parameters
<table> <tr> <td><a name='SkPath_offset_2_dx'><code><strong>dx</strong></code></a></td>
<td>offset added to <a href='SkPath_Reference#Point_Array'>SkPoint array</a> x-axis coordinates</td>
</tr>
<tr> <td><a name='SkPath_offset_2_dy'><code><strong>dy</strong></code></a></td>
<td>offset added to <a href='SkPath_Reference#Point_Array'>SkPoint array</a> y-axis coordinates</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_offset_2"></fiddle-embed></div>
### See Also
<a href='#SkPath_addPath'>addPath</a> <a href='#SkPath_transform'>transform</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_translate'>translate()</a>
<a name='SkPath_transform'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void transform(const <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>& <a href='SkMatrix_Reference#Matrix'>matrix</a>, <a href='SkPath_Reference#SkPath'>SkPath</a>* dst)const
</pre>
Transforms <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and weight by <a href='#SkPath_transform_matrix'>matrix</a>.
transform may change <a href='SkPath_Reference#Verb'>verbs</a> and increase their number.
Transformed <a href='SkPath_Reference#SkPath'>SkPath</a> replaces <a href='#SkPath_transform_dst'>dst</a>; if <a href='#SkPath_transform_dst'>dst</a> is nullptr, original <a href='undocumented#Data'>data</a>
is replaced.
### Parameters
<table> <tr> <td><a name='SkPath_transform_matrix'><code><strong>matrix</strong></code></a></td>
<td><a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a> to apply to <a href='SkPath_Reference#SkPath'>SkPath</a></td>
</tr>
<tr> <td><a name='SkPath_transform_dst'><code><strong>dst</strong></code></a></td>
<td>overwritten, transformed copy of <a href='SkPath_Reference#SkPath'>SkPath</a>; may be nullptr</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_transform"></fiddle-embed></div>
### See Also
<a href='#SkPath_addPath'>addPath</a> <a href='#SkPath_offset'>offset</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_concat'>concat()</a> <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>
<a name='SkPath_transform_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void transform(const <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>& <a href='SkMatrix_Reference#Matrix'>matrix</a>)
</pre>
Transforms <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and weight by <a href='#SkPath_transform_2_matrix'>matrix</a>.
transform may change <a href='SkPath_Reference#Verb'>verbs</a> and increase their number.
<a href='SkPath_Reference#SkPath'>SkPath</a> is replaced by transformed <a href='undocumented#Data'>data</a>.
### Parameters
<table> <tr> <td><a name='SkPath_transform_2_matrix'><code><strong>matrix</strong></code></a></td>
<td><a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a> to apply to <a href='SkPath_Reference#SkPath'>SkPath</a></td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_transform_2"></fiddle-embed></div>
### See Also
<a href='#SkPath_addPath'>addPath</a> <a href='#SkPath_offset'>offset</a> <a href='SkCanvas_Reference#SkCanvas'>SkCanvas</a>::<a href='#SkCanvas_concat'>concat()</a> <a href='SkMatrix_Reference#SkMatrix'>SkMatrix</a>
<a name='Last_Point'></a>
<a href='SkPath_Reference#Path'>Path</a> is defined cumulatively, often by adding a segment to the end of last
<a href='SkPath_Overview#Contour'>Contour</a>. <a href='#Path_Last_Point'>Last_Point</a> of <a href='SkPath_Overview#Contour'>Contour</a> is shared as first <a href='SkPoint_Reference#Point'>Point</a> of added <a href='undocumented#Line'>Line</a> or <a href='undocumented#Curve'>Curve</a>.
<a href='#Path_Last_Point'>Last_Point</a> can be read and written directly with <a href='#SkPath_getLastPt'>getLastPt</a> and <a href='#SkPath_setLastPt'>setLastPt</a>.
<a name='SkPath_getLastPt'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_getLastPt'>getLastPt</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a>* lastPt)const
</pre>
Returns <a href='#Last_Point'>last point</a> on <a href='SkPath_Reference#SkPath'>SkPath</a> in <a href='#SkPath_getLastPt_lastPt'>lastPt</a>. Returns false if <a href='SkPath_Reference#Point_Array'>SkPoint array</a> is empty,
storing (0, 0) if <a href='#SkPath_getLastPt_lastPt'>lastPt</a> is not nullptr.
### Parameters
<table> <tr> <td><a name='SkPath_getLastPt_lastPt'><code><strong>lastPt</strong></code></a></td>
<td>storage for final <a href='SkPoint_Reference#SkPoint'>SkPoint</a> in <a href='SkPath_Reference#Point_Array'>SkPoint array</a>; may be nullptr</td>
</tr>
</table>
### Return Value
true if <a href='SkPath_Reference#Point_Array'>SkPoint array</a> contains one or more <a href='SkPoint_Reference#SkPoint'>SkPoint</a>
### Example
<div><fiddle-embed name="@Path_getLastPt">
#### Example Output
~~~~
last point: 35.2786, 52.9772
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_setLastPt'>setLastPt</a>
<a name='SkPath_setLastPt'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_setLastPt'>setLastPt</a>(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y)
</pre>
Sets <a href='#Last_Point'>last point</a> to (<a href='#SkPath_setLastPt_x'>x</a>, <a href='#SkPath_setLastPt_y'>y</a>). If <a href='SkPath_Reference#Point_Array'>SkPoint array</a> is empty, append <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to
<a href='#Verb_Array'>verb array</a> and append (<a href='#SkPath_setLastPt_x'>x</a>, <a href='#SkPath_setLastPt_y'>y</a>) to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_setLastPt_x'><code><strong>x</strong></code></a></td>
<td>set x-axis value of <a href='#Last_Point'>last point</a></td>
</tr>
<tr> <td><a name='SkPath_setLastPt_y'><code><strong>y</strong></code></a></td>
<td>set y-axis value of <a href='#Last_Point'>last point</a></td>
</tr>
</table>
### Example
<div><fiddle-embed name="542c5afaea5f57baa11d0561dd402e18"></fiddle-embed></div>
### See Also
<a href='#SkPath_getLastPt'>getLastPt</a>
<a name='SkPath_setLastPt_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_setLastPt'>setLastPt</a>(const <a href='SkPoint_Reference#SkPoint'>SkPoint</a>& p)
</pre>
Sets the <a href='#Last_Point'>last point</a> on the <a href='SkPath_Reference#Path'>path</a>. If <a href='SkPath_Reference#Point_Array'>SkPoint array</a> is empty, append <a href='#SkPath_kMove_Verb'>kMove_Verb</a> to
<a href='#Verb_Array'>verb array</a> and append <a href='#SkPath_setLastPt_2_p'>p</a> to <a href='SkPath_Reference#Point_Array'>SkPoint array</a>.
### Parameters
<table> <tr> <td><a name='SkPath_setLastPt_2_p'><code><strong>p</strong></code></a></td>
<td>set value of <a href='#Last_Point'>last point</a></td>
</tr>
</table>
### Example
<div><fiddle-embed name="6fa5e8f9513b3225e106778592e27e94"></fiddle-embed></div>
### See Also
<a href='#SkPath_getLastPt'>getLastPt</a>
<a name='SkPath_SegmentMask'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
enum <a href='#SkPath_SegmentMask'>SegmentMask</a> {
<a href='#SkPath_kLine_SegmentMask'>kLine_SegmentMask</a> = 1 << 0,
<a href='#SkPath_kQuad_SegmentMask'>kQuad_SegmentMask</a> = 1 << 1,
<a href='#SkPath_kConic_SegmentMask'>kConic_SegmentMask</a> = 1 << 2,
<a href='#SkPath_kCubic_SegmentMask'>kCubic_SegmentMask</a> = 1 << 3,
};
</pre>
<a href='#SkPath_SegmentMask'>SegmentMask</a> constants correspond to each drawing <a href='#SkPath_Verb'>Verb</a> type in <a href='SkPath_Reference#Path'>Path</a>; for
instance, if <a href='SkPath_Reference#Path'>Path</a> only contains <a href='undocumented#Line'>Lines</a>, only the <a href='#SkPath_kLine_SegmentMask'>kLine_SegmentMask</a> bit is set.
### Constants
<table style='border-collapse: collapse; width: 62.5em'>
<tr><th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Const</th>
<th style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>Value</th>
<th style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>Description</th></tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kLine_SegmentMask'><code>SkPath::kLine_SegmentMask</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>1</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Set if <a href='#Path_Verb_Array'>Verb_Array</a> contains <a href='#SkPath_kLine_Verb'>kLine_Verb</a>.
</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kQuad_SegmentMask'><code>SkPath::kQuad_SegmentMask</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>2</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Set if <a href='#Path_Verb_Array'>Verb_Array</a> contains <a href='#SkPath_kQuad_Verb'>kQuad_Verb</a>. Note that <a href='#SkPath_conicTo'>conicTo</a> may add a <a href='SkPath_Reference#Quad'>Quad</a>.
</td>
</tr>
<tr style='background-color: #f0f0f0; '>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kConic_SegmentMask'><code>SkPath::kConic_SegmentMask</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>4</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Set if <a href='#Path_Verb_Array'>Verb_Array</a> contains <a href='#SkPath_kConic_Verb'>kConic_Verb</a>.
</td>
</tr>
<tr>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '><a name='SkPath_kCubic_SegmentMask'><code>SkPath::kCubic_SegmentMask</code></a></td>
<td style='text-align: center; border: 2px solid #dddddd; padding: 8px; '>8</td>
<td style='text-align: left; border: 2px solid #dddddd; padding: 8px; '>
Set if <a href='#Path_Verb_Array'>Verb_Array</a> contains <a href='#SkPath_kCubic_Verb'>kCubic_Verb</a>.
</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_SegmentMask"><div>When <a href='#SkPath_conicTo'>conicTo</a> has a weight of one, <a href='SkPath_Reference#Quad'>Quad</a> is added to <a href='SkPath_Reference#Path'>Path</a>.
</div>
#### Example Output
~~~~
Path kConic_SegmentMask is clear
Path kQuad_SegmentMask is set
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_getSegmentMasks'>getSegmentMasks</a> <a href='#SkPath_Verb'>Verb</a>
<a name='SkPath_getSegmentMasks'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
uint32_t <a href='#SkPath_getSegmentMasks'>getSegmentMasks</a>()const
</pre>
Returns a mask, where each set bit corresponds to a <a href='#SkPath_SegmentMask'>SegmentMask</a> constant
if <a href='SkPath_Reference#SkPath'>SkPath</a> contains one or more <a href='SkPath_Reference#Verb'>verbs</a> of that type.
Returns zero if <a href='SkPath_Reference#SkPath'>SkPath</a> contains no <a href='undocumented#Line'>lines</a>, or <a href='undocumented#Curve'>curves</a>: <a href='SkPath_Reference#Quad'>quads</a>, <a href='SkPath_Reference#Conic'>conics</a>, or <a href='SkPath_Reference#Cubic'>cubics</a>.
<a href='#SkPath_getSegmentMasks'>getSegmentMasks</a>() returns a cached result; it is very fast.
### Return Value
<a href='#SkPath_SegmentMask'>SegmentMask</a> bits or zero
### Example
<div><fiddle-embed name="@Path_getSegmentMasks">
#### Example Output
~~~~
mask quad set
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_getSegmentMasks'>getSegmentMasks</a> <a href='#SkPath_Verb'>Verb</a>
<a name='SkPath_contains'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool contains(<a href='undocumented#SkScalar'>SkScalar</a> x, <a href='undocumented#SkScalar'>SkScalar</a> y)const
</pre>
Returns true if the <a href='SkPoint_Reference#Point'>point</a> (<a href='#SkPath_contains_x'>x</a>, <a href='#SkPath_contains_y'>y</a>) is contained by <a href='SkPath_Reference#Path'>Path</a>, taking into
account <a href='#SkPath_FillType'>FillType</a>.
| <a href='#SkPath_FillType'>FillType</a> | <a href='#SkPath_contains'>contains()</a> returns true if <a href='SkPoint_Reference#Point'>Point</a> is enclosed by |
| --- | --- |
| <a href='#SkPath_kWinding_FillType'>kWinding_FillType</a> | a non-zero sum of <a href='SkPath_Overview#Contour'>Contour</a> <a href='SkPath_Reference#Direction'>Directions</a>. |
| <a href='#SkPath_kEvenOdd_FillType'>kEvenOdd_FillType</a> | an odd number of <a href='SkPath_Overview#Contour'>Contours</a>. |
| <a href='#SkPath_kInverseWinding_FillType'>kInverseWinding_FillType</a> | a zero sum of <a href='SkPath_Overview#Contour'>Contour</a> <a href='SkPath_Reference#Direction'>Directions</a>. |
| <a href='#SkPath_kInverseEvenOdd_FillType'>kInverseEvenOdd_FillType</a> | and even number of <a href='SkPath_Overview#Contour'>Contours</a>. |
### Parameters
<table> <tr> <td><a name='SkPath_contains_x'><code><strong>x</strong></code></a></td>
<td>x-axis value of containment test</td>
</tr>
<tr> <td><a name='SkPath_contains_y'><code><strong>y</strong></code></a></td>
<td>y-axis value of containment test</td>
</tr>
</table>
### Return Value
true if <a href='SkPoint_Reference#Point'>Point</a> is in <a href='SkPath_Reference#Path'>Path</a>
### Example
<div><fiddle-embed name="c0216b3f7ebd80b9589ae5728f08fc80"></fiddle-embed></div>
### See Also
<a href='#SkPath_conservativelyContainsRect'>conservativelyContainsRect</a> <a href='#Path_Fill_Type'>Fill_Type</a> <a href='undocumented#Op'>Op</a>
<a name='SkPath_dump'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_dump'>dump</a>(<a href='SkWStream_Reference#SkWStream'>SkWStream</a>* <a href='SkStream_Reference#Stream'>stream</a>, bool forceClose, bool dumpAsHex)const
</pre>
Writes <a href='undocumented#Text'>text</a> representation of <a href='SkPath_Reference#SkPath'>SkPath</a> to <a href='#SkPath_dump_stream'>stream</a>. If <a href='#SkPath_dump_stream'>stream</a> is nullptr, writes to
standard output. Set <a href='#SkPath_dump_forceClose'>forceClose</a> to true to get edges used to fill <a href='SkPath_Reference#SkPath'>SkPath</a>.
Set <a href='#SkPath_dump_dumpAsHex'>dumpAsHex</a> true to generate exact binary representations
of floating <a href='SkPoint_Reference#Point'>point</a> numbers used in <a href='SkPath_Reference#Point_Array'>SkPoint array</a> and <a href='SkPath_Reference#Conic_Weight'>conic weights</a>.
### Parameters
<table> <tr> <td><a name='SkPath_dump_stream'><code><strong>stream</strong></code></a></td>
<td>writable <a href='SkWStream_Reference#SkWStream'>SkWStream</a> receiving <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='undocumented#Text'>text</a> representation; may be nullptr</td>
</tr>
<tr> <td><a name='SkPath_dump_forceClose'><code><strong>forceClose</strong></code></a></td>
<td>true if missing <a href='#SkPath_kClose_Verb'>kClose_Verb</a> is output</td>
</tr>
<tr> <td><a name='SkPath_dump_dumpAsHex'><code><strong>dumpAsHex</strong></code></a></td>
<td>true if <a href='undocumented#SkScalar'>SkScalar</a> values are written as hexadecimal</td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_dump">
#### Example Output
~~~~
path.setFillType(SkPath::kWinding_FillType);
path.moveTo(0, 0);
path.quadTo(20, 30, 40, 50);
path.setFillType(SkPath::kWinding_FillType);
path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0
path.quadTo(SkBits2Float(0x41a00000), SkBits2Float(0x41f00000), SkBits2Float(0x42200000), SkBits2Float(0x42480000)); // 20, 30, 40, 50
path.setFillType(SkPath::kWinding_FillType);
path.moveTo(0, 0);
path.quadTo(20, 30, 40, 50);
path.lineTo(0, 0);
path.close();
path.setFillType(SkPath::kWinding_FillType);
path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0
path.quadTo(SkBits2Float(0x41a00000), SkBits2Float(0x41f00000), SkBits2Float(0x42200000), SkBits2Float(0x42480000)); // 20, 30, 40, 50
path.lineTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0
path.close();
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_dumpHex'>dumpHex</a> <a href='SkRect_Reference#SkRect'>SkRect</a>::<a href='#SkRect_dump'>dump()</a> <a href='SkRRect_Reference#SkRRect'>SkRRect</a>::<a href='#SkRRect_dump'>dump()</a> <a href='undocumented#SkPathMeasure'>SkPathMeasure</a>::<a href='#SkPathMeasure_dump'>dump()</a>
<a name='SkPath_dump_2'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_dump'>dump()</a>const
</pre>
Writes <a href='undocumented#Text'>text</a> representation of <a href='SkPath_Reference#SkPath'>SkPath</a> to standard output. The representation may be
directly compiled as C++ code. Floating <a href='SkPoint_Reference#Point'>point</a> values are written
with limited precision; it may not be possible to reconstruct original <a href='SkPath_Reference#SkPath'>SkPath</a>
from output.
### Example
<div><fiddle-embed name="@Path_dump_2">
#### Example Output
~~~~
path.setFillType(SkPath::kWinding_FillType);
path.moveTo(0, 0);
path.lineTo(0.857143f, 0.666667f);
path is not equal to copy
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_dumpHex'>dumpHex</a> <a href='SkRect_Reference#SkRect'>SkRect</a>::<a href='#SkRect_dump'>dump()</a> <a href='SkRRect_Reference#SkRRect'>SkRRect</a>::<a href='#SkRRect_dump'>dump()</a> <a href='undocumented#SkPathMeasure'>SkPathMeasure</a>::<a href='#SkPathMeasure_dump'>dump()</a> <a href='#SkPath_writeToMemory'>writeToMemory</a>
<a name='SkPath_dumpHex'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_dumpHex'>dumpHex</a>()const
</pre>
Writes <a href='undocumented#Text'>text</a> representation of <a href='SkPath_Reference#Path'>Path</a> to standard output. The representation may be
directly compiled as C++ code. Floating <a href='SkPoint_Reference#Point'>point</a> values are written
in hexadecimal to preserve their exact bit pattern. The output reconstructs the
original <a href='SkPath_Reference#Path'>Path</a>.
Use instead of <a href='#SkPath_dump'>dump()</a> when submitting
<a href='https://bug.skia.org'>bug reports against Skia</a></a> .
### Example
<div><fiddle-embed name="@Path_dumpHex">
#### Example Output
~~~~
path.setFillType(SkPath::kWinding_FillType);
path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0, 0
path.lineTo(SkBits2Float(0x3f5b6db7), SkBits2Float(0x3f2aaaab)); // 0.857143f, 0.666667f
path is equal to copy
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_dump'>dump</a> <a href='SkRect_Reference#SkRect'>SkRect</a>::<a href='#SkRect_dumpHex'>dumpHex</a> <a href='SkRRect_Reference#SkRRect'>SkRRect</a>::<a href='#SkRRect_dumpHex'>dumpHex</a> <a href='#SkPath_writeToMemory'>writeToMemory</a>
<a name='SkPath_writeToMemory'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
size_t <a href='#SkPath_writeToMemory'>writeToMemory</a>(void* buffer)const
</pre>
Writes <a href='SkPath_Reference#SkPath'>SkPath</a> to <a href='#SkPath_writeToMemory_buffer'>buffer</a>, returning the number of bytes written.
Pass nullptr to obtain the storage <a href='undocumented#Size'>size</a>.
Writes <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a>, <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, <a href='#Conic_Weight'>conic weight</a>, and
additionally writes computed information like <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> and bounds.
Use only be used in concert with <a href='#SkPath_readFromMemory'>readFromMemory</a>();
the format used for <a href='SkPath_Reference#SkPath'>SkPath</a> in memory is not guaranteed.
### Parameters
<table> <tr> <td><a name='SkPath_writeToMemory_buffer'><code><strong>buffer</strong></code></a></td>
<td>storage for <a href='SkPath_Reference#SkPath'>SkPath</a>; may be nullptr</td>
</tr>
</table>
### Return Value
<a href='undocumented#Size'>size</a> of storage required for <a href='SkPath_Reference#SkPath'>SkPath</a>; always a multiple of 4
### Example
<div><fiddle-embed name="@Path_writeToMemory">
#### Example Output
~~~~
path is equal to copy
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_serialize'>serialize</a> <a href='#SkPath_readFromMemory'>readFromMemory</a> <a href='#SkPath_dump'>dump</a> <a href='#SkPath_dumpHex'>dumpHex</a>
<a name='SkPath_serialize'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='undocumented#sk_sp'>sk_sp</a><<a href='undocumented#SkData'>SkData</a>> <a href='#SkPath_serialize'>serialize()</a>const
</pre>
Writes <a href='SkPath_Reference#SkPath'>SkPath</a> to buffer, returning the buffer written to, wrapped in <a href='undocumented#SkData'>SkData</a>.
<a href='#SkPath_serialize'>serialize()</a> writes <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a>, verb array, <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array, <a href='SkPath_Reference#Conic'>conic</a> weight, and
additionally writes computed information like <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> and bounds.
<a href='#SkPath_serialize'>serialize()</a> should only be used in concert with <a href='#SkPath_readFromMemory'>readFromMemory</a>().
The format used for <a href='SkPath_Reference#SkPath'>SkPath</a> in memory is not guaranteed.
### Return Value
<a href='SkPath_Reference#SkPath'>SkPath</a> <a href='undocumented#Data'>data</a> wrapped in <a href='undocumented#SkData'>SkData</a> buffer
### Example
<div><fiddle-embed name="@Path_serialize">
#### Example Output
~~~~
path is equal to copy
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_writeToMemory'>writeToMemory</a> <a href='#SkPath_readFromMemory'>readFromMemory</a> <a href='#SkPath_dump'>dump</a> <a href='#SkPath_dumpHex'>dumpHex</a>
<a name='SkPath_readFromMemory'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
size_t <a href='#SkPath_readFromMemory'>readFromMemory</a>(const void* buffer, size_t length)
</pre>
Initializes <a href='SkPath_Reference#SkPath'>SkPath</a> from <a href='#SkPath_readFromMemory_buffer'>buffer</a> of <a href='undocumented#Size'>size</a> <a href='#SkPath_readFromMemory_length'>length</a>. Returns zero if the <a href='#SkPath_readFromMemory_buffer'>buffer</a> is
<a href='undocumented#Data'>data</a> is inconsistent, or the <a href='#SkPath_readFromMemory_length'>length</a> is too small.
Reads <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a>, <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, <a href='#Conic_Weight'>conic weight</a>, and
additionally reads computed information like <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Convexity'>Convexity</a> and bounds.
Used only in concert with <a href='#SkPath_writeToMemory'>writeToMemory</a>();
the format used for <a href='SkPath_Reference#SkPath'>SkPath</a> in memory is not guaranteed.
### Parameters
<table> <tr> <td><a name='SkPath_readFromMemory_buffer'><code><strong>buffer</strong></code></a></td>
<td>storage for <a href='SkPath_Reference#SkPath'>SkPath</a></td>
</tr>
<tr> <td><a name='SkPath_readFromMemory_length'><code><strong>length</strong></code></a></td>
<td><a href='#SkPath_readFromMemory_buffer'>buffer</a> <a href='undocumented#Size'>size</a> in bytes; must be multiple of 4</td>
</tr>
</table>
### Return Value
number of bytes read, or zero on failure
### Example
<div><fiddle-embed name="@Path_readFromMemory">
#### Example Output
~~~~
length = 32; returned by readFromMemory = 0
length = 40; returned by readFromMemory = 36
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_writeToMemory'>writeToMemory</a>
<a name='Generation_ID'></a>
<a href='#Path_Generation_ID'>Generation_ID</a> provides a quick way to check if <a href='#Path_Verb_Array'>Verb_Array</a>, <a href='#Path_Point_Array'>Point_Array</a>, or
<a href='#Path_Conic_Weight'>Conic_Weight</a> has changed. <a href='#Path_Generation_ID'>Generation_ID</a> is not a hash; identical <a href='SkPath_Reference#Path'>Paths</a> will
not necessarily have matching <a href='#Path_Generation_ID'>Generation_IDs</a>.
Empty <a href='SkPath_Reference#Path'>Paths</a> have a <a href='#Path_Generation_ID'>Generation_ID</a> of one.
<a name='SkPath_getGenerationID'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
uint32_t <a href='#SkPath_getGenerationID'>getGenerationID</a>()const
</pre>
(See Skia bug 1762.)
Returns a non-zero, globally unique value. A different value is returned
if verb array, <a href='SkPoint_Reference#SkPoint'>SkPoint</a> array, or <a href='SkPath_Reference#Conic'>conic</a> weight changes.
Setting <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a> does not change generation identifier.
Each time the <a href='SkPath_Reference#Path'>path</a> is modified, a different generation identifier will be returned.
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_FillType'>FillType</a> does affect generation identifier on Android framework.
### Return Value
non-zero, globally unique value
### Example
<div><fiddle-embed name="@Path_getGenerationID">
#### Example Output
~~~~
empty genID = 1
1st lineTo genID = 2
empty genID = 1
2nd lineTo genID = 3
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_equal_operator'>operator==</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& a, const <a href='SkPath_Reference#SkPath'>SkPath</a>& b)
<a name='SkPath_isValid'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_isValid'>isValid</a>()const
</pre>
Returns if <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='undocumented#Data'>data</a> is consistent. Corrupt <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='undocumented#Data'>data</a> is detected if
internal values are out of range or internal storage does not match
array dimensions.
### Return Value
true if <a href='SkPath_Reference#SkPath'>SkPath</a> <a href='undocumented#Data'>data</a> is consistent
<a name='SkPath_Iter'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
class <a href='#SkPath_Iter'>Iter</a> {
<a href='#SkPath_Iter_Iter'>Iter()</a>;
<a href='#SkPath_Iter_Iter'>Iter</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>, bool forceClose);
void <a href='#SkPath_Iter_setPath'>setPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>, bool forceClose);
<a href='#SkPath_Verb'>Verb</a> <a href='#SkPath_Iter_next'>next</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[4], bool doConsumeDegenerates = true, bool exact = false);
<a href='undocumented#SkScalar'>SkScalar</a> <a href='#SkPath_Iter_conicWeight'>conicWeight</a>() const;
bool <a href='#SkPath_Iter_isCloseLine'>isCloseLine</a>() const;
bool <a href='#SkPath_Iter_isClosedContour'>isClosedContour</a>() const;
};
</pre>
Iterates through <a href='#Path_Verb_Array'>Verb_Array</a>, and associated <a href='#Path_Point_Array'>Point_Array</a> and <a href='#Path_Conic_Weight'>Conic_Weight</a>.
Provides options to treat open <a href='SkPath_Overview#Contour'>Contours</a> as closed, and to ignore
degenerate <a href='undocumented#Data'>data</a>.
### Example
<div><fiddle-embed name="2f53df9201769ab7e7c0e164a1334309"><div>Ignoring the actual <a href='SkPath_Reference#Verb'>Verbs</a> and replacing them with <a href='SkPath_Reference#Quad'>Quads</a> rounds the
<a href='SkPath_Reference#Path'>path</a> of the <a href='undocumented#Glyph'>glyph</a>.
</div></fiddle-embed></div>
### See Also
<a href='#SkPath_RawIter'>RawIter</a>
<a name='SkPath_Iter_Iter'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_Iter_Iter'>Iter()</a>
</pre>
Initializes <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> with an empty <a href='SkPath_Reference#SkPath'>SkPath</a>. <a href='#SkPath_Iter_next'>next()</a> on <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> returns
<a href='#SkPath_kDone_Verb'>kDone_Verb</a>.
Call <a href='#SkPath_Iter_setPath'>setPath</a> to initialize <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> at a later time.
### Return Value
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> of empty <a href='SkPath_Reference#SkPath'>SkPath</a>
### Example
<div><fiddle-embed name="@Path_Iter_Iter">
#### Example Output
~~~~
iter is done
iter is done
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_Iter_setPath'>setPath</a>
<a name='SkPath_Iter_const_SkPath'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_Iter'>Iter</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>, bool forceClose)
</pre>
Sets <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> to return elements of <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='#Conic_Weight'>conic weight</a> in
<a href='#SkPath_Iter_const_SkPath_path'>path</a>. If <a href='#SkPath_Iter_const_SkPath_forceClose'>forceClose</a> is true, <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> will add <a href='#SkPath_kLine_Verb'>kLine_Verb</a> and <a href='#SkPath_kClose_Verb'>kClose_Verb</a> after each
open <a href='SkPath_Overview#Contour'>contour</a>. <a href='#SkPath_Iter_const_SkPath_path'>path</a> is not altered.
### Parameters
<table> <tr> <td><a name='SkPath_Iter_const_SkPath_path'><code><strong>path</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to iterate</td>
</tr>
<tr> <td><a name='SkPath_Iter_const_SkPath_forceClose'><code><strong>forceClose</strong></code></a></td>
<td>true if open <a href='SkPath_Overview#Contour'>contours</a> generate <a href='#SkPath_kClose_Verb'>kClose_Verb</a></td>
</tr>
</table>
### Return Value
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> of <a href='#SkPath_Iter_const_SkPath_path'>path</a>
### Example
<div><fiddle-embed name="@Path_Iter_const_SkPath">
#### Example Output
~~~~
open:
kMove_Verb {0, 0},
kQuad_Verb {0, 0}, {10, 20}, {30, 40},
kDone_Verb
closed:
kMove_Verb {0, 0},
kQuad_Verb {0, 0}, {10, 20}, {30, 40},
kLine_Verb {30, 40}, {0, 0},
kClose_Verb {0, 0},
kDone_Verb
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_Iter_setPath'>setPath</a>
<a name='SkPath_Iter_setPath'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_Iter_setPath'>setPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>, bool forceClose)
</pre>
Sets <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> to return elements of <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='#Conic_Weight'>conic weight</a> in
<a href='#SkPath_Iter_setPath_path'>path</a>. If <a href='#SkPath_Iter_setPath_forceClose'>forceClose</a> is true, <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> will add <a href='#SkPath_kLine_Verb'>kLine_Verb</a> and <a href='#SkPath_kClose_Verb'>kClose_Verb</a> after each
open <a href='SkPath_Overview#Contour'>contour</a>. <a href='#SkPath_Iter_setPath_path'>path</a> is not altered.
### Parameters
<table> <tr> <td><a name='SkPath_Iter_setPath_path'><code><strong>path</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to iterate</td>
</tr>
<tr> <td><a name='SkPath_Iter_setPath_forceClose'><code><strong>forceClose</strong></code></a></td>
<td>true if open <a href='SkPath_Overview#Contour'>contours</a> generate <a href='#SkPath_kClose_Verb'>kClose_Verb</a></td>
</tr>
</table>
### Example
<div><fiddle-embed name="@Path_Iter_setPath">
#### Example Output
~~~~
quad open:
kMove_Verb {0, 0},
kQuad_Verb {0, 0}, {10, 20}, {30, 40},
kDone_Verb
conic closed:
kMove_Verb {0, 0},
kConic_Verb {0, 0}, {1, 2}, {3, 4}, weight = 0.5
kLine_Verb {3, 4}, {0, 0},
kClose_Verb {0, 0},
kDone_Verb
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_Iter_const_SkPath'>Iter(const SkPath& path, bool forceClose)</a>
<a name='SkPath_Iter_next'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_Verb'>Verb</a> next(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[4], bool doConsumeDegenerates = true, bool exact = false)
</pre>
Returns next <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> in <a href='#Verb_Array'>verb array</a>, and advances <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a>.
When <a href='#Verb_Array'>verb array</a> is exhausted, returns <a href='#SkPath_kDone_Verb'>kDone_Verb</a>.
Zero to four <a href='SkPoint_Reference#SkPoint'>SkPoint</a> are stored in <a href='#SkPath_Iter_next_pts'>pts</a>, depending on the returned <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a>.
If <a href='#SkPath_Iter_next_doConsumeDegenerates'>doConsumeDegenerates</a> is true, skip consecutive <a href='#SkPath_kMove_Verb'>kMove_Verb</a> entries, returning
only the last in the series; and skip very small <a href='undocumented#Line'>lines</a>, <a href='SkPath_Reference#Quad'>quads</a>, and <a href='SkPath_Reference#Conic'>conics</a>; and
skip <a href='#SkPath_kClose_Verb'>kClose_Verb</a> following <a href='#SkPath_kMove_Verb'>kMove_Verb</a>.
if <a href='#SkPath_Iter_next_doConsumeDegenerates'>doConsumeDegenerates</a> is true and <a href='#SkPath_Iter_next_exact'>exact</a> is true, only skip <a href='undocumented#Line'>lines</a>, <a href='SkPath_Reference#Quad'>quads</a>, and
<a href='SkPath_Reference#Conic'>conics</a> with zero lengths.
### Parameters
<table> <tr> <td><a name='SkPath_Iter_next_pts'><code><strong>pts</strong></code></a></td>
<td>storage for <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='undocumented#Data'>data</a> describing returned <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a></td>
</tr>
<tr> <td><a name='SkPath_Iter_next_doConsumeDegenerates'><code><strong>doConsumeDegenerates</strong></code></a></td>
<td>if true, skip degenerate <a href='SkPath_Reference#Verb'>verbs</a></td>
</tr>
<tr> <td><a name='SkPath_Iter_next_exact'><code><strong>exact</strong></code></a></td>
<td>skip zero length <a href='undocumented#Curve'>curves</a></td>
</tr>
</table>
### Return Value
next <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> from <a href='#Verb_Array'>verb array</a>
### Example
<div><fiddle-embed name="@Path_Iter_next"><div>skip degenerate skips the first in a <a href='#SkPath_kMove_Verb'>kMove_Verb</a> pair, the <a href='#SkPath_kMove_Verb'>kMove_Verb</a>
followed by the <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, the zero length <a href='undocumented#Line'>Line</a> and the very small <a href='undocumented#Line'>Line</a>.
skip degenerate if <a href='#SkPath_Iter_next_exact'>exact</a> skips the same as skip degenerate, but shows
the very small <a href='undocumented#Line'>Line</a>.
skip none shows all of the <a href='SkPath_Reference#Verb'>Verbs</a> and <a href='SkPoint_Reference#Point'>Points</a> in <a href='SkPath_Reference#Path'>Path</a>.
</div>
#### Example Output
~~~~
skip degenerate:
kMove_Verb {20, 20},
kQuad_Verb {20, 20}, {10, 20}, {30, 40},
kDone_Verb
skip degenerate if exact:
kMove_Verb {20, 20},
kQuad_Verb {20, 20}, {10, 20}, {30, 40},
kMove_Verb {30, 30},
kLine_Verb {30, 30}, {30.00001, 30},
kDone_Verb
skip none:
kMove_Verb {10, 10},
kMove_Verb {20, 20},
kQuad_Verb {20, 20}, {10, 20}, {30, 40},
kMove_Verb {1, 1},
kClose_Verb {1, 1},
kMove_Verb {30, 30},
kLine_Verb {30, 30}, {30, 30},
kMove_Verb {30, 30},
kLine_Verb {30, 30}, {30.00001, 30},
kDone_Verb
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_Verb'>Verb</a> <a href='#SkPath_IsLineDegenerate'>IsLineDegenerate</a> <a href='#SkPath_IsCubicDegenerate'>IsCubicDegenerate</a> <a href='#SkPath_IsQuadDegenerate'>IsQuadDegenerate</a>
<a name='SkPath_Iter_conicWeight'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='undocumented#SkScalar'>SkScalar</a> <a href='#SkPath_Iter_conicWeight'>conicWeight</a>()const
</pre>
Returns <a href='SkPath_Reference#Conic'>conic</a> weight if <a href='#SkPath_Iter_next'>next()</a> returned <a href='#SkPath_kConic_Verb'>kConic_Verb</a>.
If <a href='#SkPath_Iter_next'>next()</a> has not been called, or <a href='#SkPath_Iter_next'>next()</a> did not return <a href='#SkPath_kConic_Verb'>kConic_Verb</a>,
result is undefined.
### Return Value
<a href='SkPath_Reference#Conic'>conic</a> weight for <a href='SkPath_Reference#Conic'>conic</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> returned by <a href='#SkPath_Iter_next'>next()</a>
### Example
<div><fiddle-embed name="@Path_Iter_conicWeight">
#### Example Output
~~~~
first verb is move
next verb is conic
conic points: {0,0}, {1,2}, {3,4}
conic weight: 0.5
~~~~
</fiddle-embed></div>
### See Also
<a href='#Path_Conic_Weight'>Conic_Weight</a>
<a name='SkPath_Iter_isCloseLine'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_Iter_isCloseLine'>isCloseLine</a>()const
</pre>
Returns true if last <a href='#SkPath_kLine_Verb'>kLine_Verb</a> returned by <a href='#SkPath_Iter_next'>next()</a> was generated
by <a href='#SkPath_kClose_Verb'>kClose_Verb</a>. When true, the end <a href='SkPoint_Reference#Point'>point</a> returned by <a href='#SkPath_Iter_next'>next()</a> is
also the start <a href='SkPoint_Reference#Point'>point</a> of <a href='SkPath_Overview#Contour'>contour</a>.
If <a href='#SkPath_Iter_next'>next()</a> has not been called, or <a href='#SkPath_Iter_next'>next()</a> did not return <a href='#SkPath_kLine_Verb'>kLine_Verb</a>,
result is undefined.
### Return Value
true if last <a href='#SkPath_kLine_Verb'>kLine_Verb</a> was generated by <a href='#SkPath_kClose_Verb'>kClose_Verb</a>
### Example
<div><fiddle-embed name="@Path_Iter_isCloseLine">
#### Example Output
~~~~
1st verb is move
moveTo point: {6,7}
2nd verb is conic
3rd verb is line
line points: {3,4}, {6,7}
line generated by close
4th verb is close
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_close'>close()</a>
<a name='SkPath_Iter_isClosedContour'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
bool <a href='#SkPath_Iter_isClosedContour'>isClosedContour</a>()const
</pre>
Returns true if subsequent calls to <a href='#SkPath_Iter_next'>next()</a> return <a href='#SkPath_kClose_Verb'>kClose_Verb</a> before returning
<a href='#SkPath_kMove_Verb'>kMove_Verb</a>. if true, <a href='SkPath_Overview#Contour'>contour</a> <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> is processing may end with <a href='#SkPath_kClose_Verb'>kClose_Verb</a>, or
<a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> may have been initialized with force close set to true.
### Return Value
true if <a href='SkPath_Overview#Contour'>contour</a> is closed
### Example
<div><fiddle-embed name="@Path_Iter_isClosedContour">
#### Example Output
~~~~
without close(), forceClose is false: isClosedContour returns false
with close(), forceClose is false: isClosedContour returns true
without close(), forceClose is true : isClosedContour returns true
with close(), forceClose is true : isClosedContour returns true
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_Iter_const_SkPath'>Iter(const SkPath& path, bool forceClose)</a>
<a name='SkPath_RawIter'></a>
---
<pre style="padding: 1em 1em 1em 1em;width: 62.5em; background-color: #f0f0f0">
class <a href='#SkPath_RawIter'>RawIter</a> {
<a href='#SkPath_RawIter_RawIter'>RawIter()</a>;
<a href='#SkPath_RawIter_RawIter'>RawIter</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>);
void <a href='#SkPath_RawIter_setPath'>setPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>);
<a href='#SkPath_Verb'>Verb</a> <a href='#SkPath_RawIter_next'>next</a>(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[4]);
<a href='#SkPath_Verb'>Verb</a> <a href='#SkPath_RawIter_peek'>peek()</a> const;
<a href='undocumented#SkScalar'>SkScalar</a> <a href='#SkPath_RawIter_conicWeight'>conicWeight</a>() const;
};
</pre>
Iterates through <a href='#Path_Verb_Array'>Verb_Array</a>, and associated <a href='#Path_Point_Array'>Point_Array</a> and <a href='#Path_Conic_Weight'>Conic_Weight</a>.
<a href='#Path_Verb_Array'>Verb_Array</a>, <a href='#Path_Point_Array'>Point_Array</a>, and <a href='#Path_Conic_Weight'>Conic_Weight</a> are returned unaltered.
<a name='SkPath_RawIter_RawIter'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_RawIter_RawIter'>RawIter()</a>
</pre>
Initializes <a href='#SkPath_RawIter'>RawIter</a> with an empty <a href='SkPath_Reference#SkPath'>SkPath</a>. <a href='#SkPath_RawIter_next'>next()</a> on <a href='#SkPath_RawIter'>RawIter</a> returns <a href='#SkPath_kDone_Verb'>kDone_Verb</a>.
Call <a href='#SkPath_RawIter_setPath'>setPath</a> to initialize <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> at a later time.
### Return Value
<a href='#SkPath_RawIter'>RawIter</a> of empty <a href='SkPath_Reference#SkPath'>SkPath</a>
<a name='SkPath_RawIter_copy_const_SkPath'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_RawIter'>RawIter</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>)
</pre>
Sets <a href='#SkPath_RawIter'>RawIter</a> to return elements of <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='#Conic_Weight'>conic weight</a> in <a href='#SkPath_RawIter_copy_const_SkPath_path'>path</a>.
### Parameters
<table> <tr> <td><a name='SkPath_RawIter_copy_const_SkPath_path'><code><strong>path</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to iterate</td>
</tr>
</table>
### Return Value
<a href='#SkPath_RawIter'>RawIter</a> of <a href='#SkPath_RawIter_copy_const_SkPath_path'>path</a>
<a name='SkPath_RawIter_setPath'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
void <a href='#SkPath_RawIter_setPath'>setPath</a>(const <a href='SkPath_Reference#SkPath'>SkPath</a>& <a href='SkPath_Reference#Path'>path</a>)
</pre>
Sets <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Iter'>Iter</a> to return elements of <a href='#Verb_Array'>verb array</a>, <a href='SkPath_Reference#Point_Array'>SkPoint array</a>, and <a href='#Conic_Weight'>conic weight</a> in
<a href='#SkPath_RawIter_setPath_path'>path</a>.
### Parameters
<table> <tr> <td><a name='SkPath_RawIter_setPath_path'><code><strong>path</strong></code></a></td>
<td><a href='SkPath_Reference#SkPath'>SkPath</a> to iterate</td>
</tr>
</table>
<a name='SkPath_RawIter_next'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_Verb'>Verb</a> next(<a href='SkPoint_Reference#SkPoint'>SkPoint</a> pts[4])
</pre>
Returns next <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> in <a href='#Verb_Array'>verb array</a>, and advances <a href='#SkPath_RawIter'>RawIter</a>.
When <a href='#Verb_Array'>verb array</a> is exhausted, returns <a href='#SkPath_kDone_Verb'>kDone_Verb</a>.
Zero to four <a href='SkPoint_Reference#SkPoint'>SkPoint</a> are stored in <a href='#SkPath_RawIter_next_pts'>pts</a>, depending on the returned <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a>.
### Parameters
<table> <tr> <td><a name='SkPath_RawIter_next_pts'><code><strong>pts</strong></code></a></td>
<td>storage for <a href='SkPoint_Reference#SkPoint'>SkPoint</a> <a href='undocumented#Data'>data</a> describing returned <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a></td>
</tr>
</table>
### Return Value
next <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> from <a href='#Verb_Array'>verb array</a>
### Example
<div><fiddle-embed name="@Path_RawIter_next">
#### Example Output
~~~~
kMove_Verb {50, 60},
kQuad_Verb {50, 60}, {10, 20}, {30, 40},
kClose_Verb {50, 60},
kMove_Verb {50, 60},
kLine_Verb {50, 60}, {30, 30},
kConic_Verb {30, 30}, {1, 2}, {3, 4}, weight = 0.5
kCubic_Verb {3, 4}, {-1, -2}, {-3, -4}, {-5, -6},
kDone_Verb
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_RawIter_peek'>peek()</a>
<a name='SkPath_RawIter_peek'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='#SkPath_Verb'>Verb</a> <a href='#SkPath_RawIter_peek'>peek()</a>const
</pre>
Returns next <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a>, but does not advance <a href='#SkPath_RawIter'>RawIter</a>.
### Return Value
next <a href='SkPath_Reference#SkPath'>SkPath</a>::<a href='#SkPath_Verb'>Verb</a> from verb array
### Example
<div><fiddle-embed name="@Path_RawIter_peek">
#### Example Output
~~~~
#Volatile
peek Move == verb Move
peek Quad == verb Quad
peek Conic == verb Conic
peek Cubic == verb Cubic
peek Done == verb Done
peek Done == verb Done
~~~~
</fiddle-embed></div>
### See Also
<a href='#SkPath_RawIter_next'>next</a>
<a name='SkPath_RawIter_conicWeight'></a>
---
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
<a href='undocumented#SkScalar'>SkScalar</a> <a href='#SkPath_RawIter_conicWeight'>conicWeight</a>()const
</pre>
Returns <a href='SkPath_Reference#Conic'>conic</a> weight if <a href='#SkPath_RawIter_next'>next()</a> returned <a href='#SkPath_kConic_Verb'>kConic_Verb</a>.
If <a href='#SkPath_RawIter_next'>next()</a> has not been called, or <a href='#SkPath_RawIter_next'>next()</a> did not return <a href='#SkPath_kConic_Verb'>kConic_Verb</a>,
result is undefined.
### Return Value
<a href='SkPath_Reference#Conic'>conic</a> weight for <a href='SkPath_Reference#Conic'>conic</a> <a href='SkPoint_Reference#SkPoint'>SkPoint</a> returned by <a href='#SkPath_RawIter_next'>next()</a>
### Example
<div><fiddle-embed name="@Path_RawIter_conicWeight">
#### Example Output
~~~~
first verb is move
next verb is conic
conic points: {0,0}, {1,2}, {3,4}
conic weight: 0.5
~~~~
</fiddle-embed></div>
### See Also
<a href='#Path_Conic_Weight'>Conic_Weight</a>
| 53.386676 | 385 | 0.710954 | yue_Hant | 0.766955 |
f4df0c22b10975f2c0d1dace65ea5ec298b490f7 | 419 | md | Markdown | en/blockchain/transaction/transaction-timestamp.md | snlpatel001213/waves-documentation | 7786ca14b7c39217c5f61c5e99615935f57e465f | [
"MIT"
] | null | null | null | en/blockchain/transaction/transaction-timestamp.md | snlpatel001213/waves-documentation | 7786ca14b7c39217c5f61c5e99615935f57e465f | [
"MIT"
] | null | null | null | en/blockchain/transaction/transaction-timestamp.md | snlpatel001213/waves-documentation | 7786ca14b7c39217c5f61c5e99615935f57e465f | [
"MIT"
] | null | null | null | # Transaction timestamp
**Transaction timestamp** is a time specified by the sender when the transaction was sent to the [blockchain network](/blockchain/blockchain-network.md).
The actual time differs from the timestamp value by no more than 2 hours back and 1.5 hours forward.
The time is specified in milliseconds that have passed since the beginning of the [Unix epoch](https://en.wikipedia.org/wiki/Unix_time).
| 52.375 | 153 | 0.792363 | eng_Latn | 0.998829 |
f4dfd526eb866514932278e67843f598e2eaf008 | 1,654 | md | Markdown | AlchemyInsights/sharepoint-onedrive-change-display-language-settings.md | pebaum/OfficeDocs-AlchemyInsights-pr.hu-HU | 3b27b75a074d94a7fa3041448535dfadee4303ae | [
"CC-BY-4.0",
"MIT"
] | null | null | null | AlchemyInsights/sharepoint-onedrive-change-display-language-settings.md | pebaum/OfficeDocs-AlchemyInsights-pr.hu-HU | 3b27b75a074d94a7fa3041448535dfadee4303ae | [
"CC-BY-4.0",
"MIT"
] | null | null | null | AlchemyInsights/sharepoint-onedrive-change-display-language-settings.md | pebaum/OfficeDocs-AlchemyInsights-pr.hu-HU | 3b27b75a074d94a7fa3041448535dfadee4303ae | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: SharePoint Online vagy OneDrive "Beállítás"
ms.author: pebaum
author: pebaum
ms.date: 04/21/2020
ms.audience: ITPro
ms.topic: article
ROBOTS: NOINDEX, NOFOLLOW
localization_priority: Normal
ms.assetid: 8110efbf-917f-46ce-af1a-75a8a1d49510
ms.openlocfilehash: f7f23a05260ff72fe2591ae56dec80e49c02d687
ms.sourcegitcommit: 631cbb5f03e5371f0995e976536d24e9d13746c3
ms.translationtype: MT
ms.contentlocale: hu-HU
ms.lasthandoff: 04/22/2020
ms.locfileid: "43758606"
---
# <a name="change-display-language-settings-in-sharepoint-or-onedrive"></a>Megjelenítési nyelvi beállítások módosítása a SharePointban vagy a OneDrive-on
A SharePoint vagy a OneDrive alapértelmezett nyelvi beállításait nem módosíthatja, mert ezek a beállítások a Microsoft 365-előfizetés létrehozásakor voltak definiálva. A megjelenítési nyelv beállításait azonban módosíthatja.
A személyes beállítások módosításáról [a Személyes nyelv- és régióbeállítások módosítása (Módosítás)](https://support.office.com/article/Change-your-personal-language-and-region-settings-caa1fccc-bcdb-42f3-9e5b-45957647ffd7)témakörben olvashat.
A webhely felhasználói felületének módosításáról [a Webhely felhasználói felületéhez elérhetővé tenni kívánt nyelvek kiválasztása](https://support.office.com/article/choose-the-languages-you-want-to-make-available-for-a-site-s-user-interface-16d3a83c-05ab-4b50-8fbb-ff576a3351e8)című témakörben található.
A nyelvi beállítások hibaelhárításáról a [SharePoint Online-webhelycsoportok alapértelmezett nyelvének módosítása című témakörben olvashat bővebben.](https://docs.microsoft.com/sharepoint/support/sites/change-default-language-site-collection)
| 59.071429 | 305 | 0.840387 | hun_Latn | 0.99926 |
f4dfe7d9d1bdc466ee73307d4e846058ae9f0110 | 1,319 | md | Markdown | interfaces/syncingdata.md | sambacha/ethereum-json-rpc-types | 16f51b291b9a3d372eccf882f1de2b1b2c63ffbc | [
"MIT"
] | null | null | null | interfaces/syncingdata.md | sambacha/ethereum-json-rpc-types | 16f51b291b9a3d372eccf882f1de2b1b2c63ffbc | [
"MIT"
] | null | null | null | interfaces/syncingdata.md | sambacha/ethereum-json-rpc-types | 16f51b291b9a3d372eccf882f1de2b1b2c63ffbc | [
"MIT"
] | null | null | null | [@etclabscore/ethereum-json-rpc - v1.3.13](../README.md) › [SyncingData](syncingdata.md)
# Interface: SyncingData
An object with sync status data
## Hierarchy
- **SyncingData**
## Indexable
- \[ **k**: _string_\]: any
An object with sync status data
## Index
### Properties
- [currentBlock](syncingdata.md#optional-currentblock)
- [highestBlock](syncingdata.md#optional-highestblock)
- [knownStates](syncingdata.md#optional-knownstates)
- [pulledStates](syncingdata.md#optional-pulledstates)
- [startingBlock](syncingdata.md#optional-startingblock)
## Properties
### `Optional` currentBlock
• **currentBlock**? : _[SyncingDataCurrentBlock](../README.md#syncingdatacurrentblock)_
Defined in index.d.ts:531
---
### `Optional` highestBlock
• **highestBlock**? : _[SyncingDataHighestBlock](../README.md#syncingdatahighestblock)_
Defined in index.d.ts:532
---
### `Optional` knownStates
• **knownStates**? : _[SyncingDataKnownStates](../README.md#syncingdataknownstates)_
Defined in index.d.ts:533
---
### `Optional` pulledStates
• **pulledStates**? : _[SyncingDataPulledStates](../README.md#syncingdatapulledstates)_
Defined in index.d.ts:534
---
### `Optional` startingBlock
• **startingBlock**? : _[SyncingDataStartingBlock](../README.md#syncingdatastartingblock)_
Defined in index.d.ts:530
| 19.984848 | 90 | 0.732373 | yue_Hant | 0.570773 |
f4e0c0ce9cdd35850151994df008c59217622459 | 3,411 | md | Markdown | docs/data-tools/directly-access-the-database-with-a-tableadapter.md | akeeton/visualstudio-docs | 48e0a98a5acd101c674c2059025ebcb8e8a29f39 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/data-tools/directly-access-the-database-with-a-tableadapter.md | akeeton/visualstudio-docs | 48e0a98a5acd101c674c2059025ebcb8e8a29f39 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/data-tools/directly-access-the-database-with-a-tableadapter.md | akeeton/visualstudio-docs | 48e0a98a5acd101c674c2059025ebcb8e8a29f39 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Directly access the database with a TableAdapter
ms.date: 11/04/2016
ms.topic: conceptual
dev_langs:
- "VB"
- "CSharp"
helpviewer_keywords:
- "databases [Visual Basic], accessing with a TableAdapter"
- "DBDirect methods"
- "datasets [Visual Basic], adding to projects"
- "data [Visual Studio], saving"
- "TableAdapter.Delete method"
- "GenerateDbDirectMethods property"
- "TableAdapter.Insert method"
- "TableAdapter.GenerateDBDirectMethods property"
- "TableAdapter.Update method"
- "saving data"
- "TableAdapters"
ms.assetid: 012c5924-91f7-4790-b2a6-f51402b7014b
author: gewarren
ms.author: gewarren
manager: douge
ms.prod: visual-studio-dev15
ms.workload:
- "data-storage"
---
# Directly access the database with a TableAdapter
In addition to the `InsertCommand`, `UpdateCommand`, and `DeleteCommand`, TableAdapters are created with methods that can be run directly against the database. You can call these methods (`TableAdapter.Insert`, `TableAdapter.Update`, and `TableAdapter.Delete`) to manipulate data directly in the database.
If you don't want to create these direct methods, set the TableAdapter's `GenerateDbDirectMethods` property to `false` in the **Properties** window. If any queries are added to a TableAdapter in addition to the TableAdapter's main query, they are standalone queries that don't generate these `DbDirect` methods.
## Send commands directly to a database
Call the TableAdapter `DbDirect` method that performs the task you are trying to accomplish.
### To insert new records directly into a database
- Call the TableAdapter's `Insert` method, passing in the values for each column as parameters. The following procedure uses the `Region` table in the Northwind database as an example.
> [!NOTE]
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
[!code-vb[VbRaddataSaving#15](../data-tools/codesnippet/VisualBasic/directly-access-the-database-with-a-tableadapter_1.vb)]
[!code-csharp[VbRaddataSaving#15](../data-tools/codesnippet/CSharp/directly-access-the-database-with-a-tableadapter_1.cs)]
### To update records directly in a database
- Call the TableAdapter's `Update` method, passing in the new and original values for each column as parameters.
> [!NOTE]
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
[!code-vb[VbRaddataSaving#18](../data-tools/codesnippet/VisualBasic/directly-access-the-database-with-a-tableadapter_2.vb)]
[!code-csharp[VbRaddataSaving#18](../data-tools/codesnippet/CSharp/directly-access-the-database-with-a-tableadapter_2.cs)]
### To delete records directly from a database
- Call the TableAdapter's `Delete` method, passing in the values for each column as parameters of the `Delete` method. The following procedure uses the `Region` table in the Northwind database as an example.
> [!NOTE]
> If you do not have an instance available, instantiate the TableAdapter that you want to use.
[!code-vb[VbRaddataSaving#21](../data-tools/codesnippet/VisualBasic/directly-access-the-database-with-a-tableadapter_3.vb)]
[!code-csharp[VbRaddataSaving#21](../data-tools/codesnippet/CSharp/directly-access-the-database-with-a-tableadapter_3.cs)]
## See also
- [Fill datasets by using TableAdapters](../data-tools/fill-datasets-by-using-tableadapters.md) | 48.728571 | 311 | 0.761067 | eng_Latn | 0.926929 |
f4e193121185effed30640b2e6f18a0a5657655b | 3,290 | md | Markdown | doc/assets-attribution.md | CaresCoin/blockseed | 0b4cc3c8e60d425a762cc6cc06083b53dae9db83 | [
"MIT"
] | null | null | null | doc/assets-attribution.md | CaresCoin/blockseed | 0b4cc3c8e60d425a762cc6cc06083b53dae9db83 | [
"MIT"
] | null | null | null | doc/assets-attribution.md | CaresCoin/blockseed | 0b4cc3c8e60d425a762cc6cc06083b53dae9db83 | [
"MIT"
] | null | null | null | The following is a list of assets used in the carescoin source and their proper attribution.
[Wladimir van der Laan](https://github.com/laanwj)
-----------------------
#### Info
* License: MIT
### Assets Used
src/qt/res/icons/clock*.png, src/qt/res/icons/tx*.png,
src/qt/res/src/clock_green.svg, src/qt/res/src/clock1.svg,
src/qt/res/src/clock2.svg, src/qt/res/src/clock3.svg,
src/qt/res/src/clock4.svg, src/qt/res/src/clock5.svg,
src/qt/res/src/inout.svg, src/qt/res/src/questionmark.svg
[David Vignoni](www.icon-king.com)
-----------------------
### Info
* Icon Pack: NUVOLA ICON THEME for KDE 3.x
* Designer: David Vignoni ([email protected])
* License: LGPL
* Site: [http://www.icon-king.com/projects/nuvola/](http://www.icon-king.com/projects/nuvola/)
### Assets Used
src/qt/res/icons/address-book.png, src/qt/res/icons/export.png,
src/qt/res/icons/history.png, src/qt/res/icons/key.png,
src/qt/res/icons/lock_*.png, src/qt/res/icons/overview.png,
src/qt/res/icons/receive.png, src/qt/res/icons/send.png,
src/qt/res/icons/synced.png, src/qt/res/icons/filesave.png
schollidesign
-----------------------
### Info
* Icon Pack: Human-O2
* Designer: schollidesign
* License: GNU/GPL
* Site: [http://findicons.com/icon/93743/blocks_gnome_netstatus_0](http://findicons.com/icon/93743/blocks_gnome_netstatus_0)
### Assets Used
src/qt/res/icons/connect*.png
md2k7
-----------------------
### Info
* Designer: md2k7
* Site: https://carescointalk.org/index.php?topic=15276.0
* License: You are free to do with these icons as you wish, including selling,
copying, modifying etc.
* License: MIT
### Assets Used
src/qt/res/icons/transaction*.png
[Everaldo.com](http://www.everaldo.com)
-----------------------
### Info
* Designer: [http://www.everaldo.com](http://www.everaldo.com)
* Icon Pack: Crystal SVG
* License: LGPL
### Assets Used
src/qt/res/icons/configure.png, src/qt/res/icons/quit.png,
src/qt/res/icons/editcopy.png, src/qt/res/icons/editpaste.png,
src/qt/res/icons/add.png, src/qt/res/icons/edit.png,
src/qt/res/icons/remove.png (edited)
Everaldo (Everaldo Coelho)
-----------------------
### Info
* Icon Pack: Kids
* Designer: Everaldo (Everaldo Coelho)
* License: GNU/GPL
* Site: [http://findicons.com/icon/17102/reload?id=17102](http://findicons.com/icon/17102/reload?id=17102)
### Assets Used
scripts/img/reload.xcf (modified), src/qt/res/movies/update_spinner.mng
[Vignoni David](http://www.oxygen-icons.org/)
-----------------------
### Info
* Designer: Vignoni David
* Site: http://www.oxygen-icons.org/
* License: Oxygen icon theme is dual licensed. You may copy it under the Creative Common Attribution-ShareAlike 3.0 License or the GNU Library General Public License.
### Assets Used
src/qt/res/icons/debugwindow.png
Jonas Schnelli
-----------------------
### Info
* Designer: Jonas Schnelli (based on the original carescoin logo from Bitboy)
* License: MIT
### Assets Used
src/qt/res/icons/bitcoin.icns, src/qt/res/src/bitcoin.svg,
src/qt/res/src/bitcoin.ico, src/qt/res/src/bitcoin.png,
src/qt/res/src/bitcoin_testnet.png, docs/bitcoin_logo_doxygen.png,
src/qt/res/icons/toolbar.png, src/qt/res/icons/toolbar_testnet.png,
src/qt/res/images/splash.png, src/qt/res/images/splash_testnet.png | 31.634615 | 166 | 0.687234 | yue_Hant | 0.207536 |
f4e20dd33ffd18f4cc8ef5f1e8d6c2d43eb6e0ba | 25 | md | Markdown | README.md | fx35792/react-project-one | 584a0e19d125684f65493fb0251e4f3e25a1f57b | [
"MIT"
] | null | null | null | README.md | fx35792/react-project-one | 584a0e19d125684f65493fb0251e4f3e25a1f57b | [
"MIT"
] | null | null | null | README.md | fx35792/react-project-one | 584a0e19d125684f65493fb0251e4f3e25a1f57b | [
"MIT"
] | null | null | null | ## 通过React搭建的一个招聘简历的项目app | 25 | 25 | 0.88 | zho_Hans | 0.933255 |
f4e279d86849dbdc2aeb3b9f13500a8a84706bca | 377 | md | Markdown | README.md | Romansko/NaturalDisasters | c7b1ea65f78901f4506404944e6ee7dbbd4f51b8 | [
"MIT"
] | 1 | 2019-10-19T12:28:28.000Z | 2019-10-19T12:28:28.000Z | README.md | Romansko/NaturalDisasters | c7b1ea65f78901f4506404944e6ee7dbbd4f51b8 | [
"MIT"
] | null | null | null | README.md | Romansko/NaturalDisasters | c7b1ea65f78901f4506404944e6ee7dbbd4f51b8 | [
"MIT"
] | null | null | null | # NaturalDisasters
Visualization of Natural Disasters
Click to start:
[https://romansko.github.io/NaturalDisasters](https://romansko.github.io/NaturalDisasters)
To Work offline:
1. Download and Install Node.js
2. Install http-server by node.js cmd command:
`npm install http-server -g`
3. Download project and run cmd command inside project:
`http-server -o`
| 23.5625 | 90 | 0.753316 | eng_Latn | 0.293828 |
f4e27d8de0a0cbc422ff6263ab2043981c59303d | 6,620 | md | Markdown | content/post/2019-12-27-technology-short-take-122.md | scottslowe/weblog | dcf9c6a5d0a8d9b7fb507ce7b6fcee1b11eb065f | [
"MIT"
] | 9 | 2018-12-19T09:50:28.000Z | 2022-03-31T00:40:39.000Z | content/post/2019-12-27-technology-short-take-122.md | scottslowe/weblog | dcf9c6a5d0a8d9b7fb507ce7b6fcee1b11eb065f | [
"MIT"
] | 2 | 2018-04-23T13:45:38.000Z | 2020-01-24T23:04:16.000Z | content/post/2019-12-27-technology-short-take-122.md | scottslowe/weblog | dcf9c6a5d0a8d9b7fb507ce7b6fcee1b11eb065f | [
"MIT"
] | 9 | 2018-04-22T05:43:46.000Z | 2022-03-02T20:28:45.000Z | ---
author: slowe
categories: Information
comments: true
date: 2019-12-27T16:41:00-07:00
tags:
- Networking
- Hardware
- Security
- Storage
- Virtualization
- OVS
- AWS
- SSH
- Kubernetes
- Terraform
- macOS
- CLI
- Productivity
title: 'Technology Short Take 122'
url: /2019/12/27/technology-short-take-122/
---
Welcome to Technology Short Take #122! Luckily I _did_ manage to get another Tech Short Take squeezed in for 2019, just so all my readers could have some reading materials for the holidays. I'm kidding! No, I mean I really am kidding---don't read stuff over the holidays. Spend time with your family instead. The investment in your family will pay off in later years, trust me.<!--more-->
## Networking
* Teammate Alex Brand has [a look at VMware's new OVS-based CNI plugin, Antrea][link-6].
## Servers/Hardware
* Adam Leventhal [takes a closer look at the financial side of AWS Outposts][link-14], which was announced as generally available at this year's re:Invent.
## Security
* Bruce Schneier writes about [how some Chinese hackers are bypassing RSA software token authentication][link-19] (the title is a bit more broad, implying other forms of two-factor authentication are affected, but the article focuses on attacks against the use of RSA software tokens).
* Robin Moffatt [discusses detecting and analysing SSH attacks with ksqlDB][link-21].
## Cloud Computing/Cloud Management
* Ahmet Alp Balkan talks about [how the Knative Serving component addresses some key networking challenges within Kubernetes][link-8].
* Teri Radichel has a post with [some structural tips to better understand and utilize AWS CloudFormation][link-11].
* Geert Baeke walks readers through [deploying AKS with Nginx, External DNS, the Helm Operator, and Flux][link-12] (all using an Azure DevOps pipeline, if I read the article correctly).
* Seth Vargo walks through [how to use Terraform to setup and configure a Google Cloud Run service][link-17].
* Hashicorp recently announced a new Kubernetes integration with Vault aimed at making secrets injection easier; read about it [here][link-18].
* Here's [a list of 35 advanced tutorials to help learn Kubernetes][link-20], courtesy of Aymen El Amri (and the authors of the various tutorials, of course).
## Operating Systems/Applications
* Continuing his focus on `cloud-init`, Luc Dekens has added _four_ more articles to his site discussing this tool. Be sure to check them out ([part 2][link-2], [part 3][link-3], [part 4][link-4], and [part 5][link-5])!
* Cole Atkinson [discusses the fact that `osxfuse` is no longer open source][link-7], and the ramifications of this development on open source in general.
* Wesley David [ran into some challenges with the `UseKeychain` SSH configuration directive on macOS][link-9], and proposed a potential solution (the solution worked for him).
* I'm pretty satisfied with `bash` as my shell, but a lot of folks like `zsh`, and `zsh` is now the default shell on macOS Catalina (apparently). [This article][link-10] has a list of tips and tricks for `zsh`.
* Jessica Joy Kerr [shares her settings for working in Visual Studio Code][link-13].
* Jeff Johnson discusses [an undocumented Catalina file access change][link-16].
* [This combination][link-22] of `fzf` and `kubectl` looks interesting, but requires the use of a server-side component in order to address latency issues---which are a real killer for a CLI auto-completion sort of tool.
* Michael Gasch [shares his `tmux` setup][link-23].
## Storage
* I recently saw an article stating that VMware is going to use Minio as the object storage platform for Kubernetes, but the evidence presented in the article is anything but convincing. In fact, the _one slide_ the article uses as evidence is just an example of how Minio might be deployed on Kubernetes, and the slide also includes examples of deploying MySQL and Redis. I'm not going to link to the article because, quite frankly, I think it's just plain incorrect.
## Virtualization
* Bjoern Brundert has [a collection of resources for Project Pacific][link-1] (announced at VMworld 2019). Give it a look if you're interested in learning more.
* I recently spotted [Multipass][link-15], a virtualization solution for working with Linux instances. I haven't tried it yet, but it looks interesting for sure.
## Career/Soft Skills
* While reading something else, I found a link to James Stuber's site, and---being a productivity geek---I found [this list of his current productivity tech stack][link-24] to be interesting.
That's all for 2019---at least as far as Tech Short Takes go. Have a great weekend and great upcoming holiday, everyone! As always, don't hesitate [to reach out to me on Twitter][link-99] if you have feedback, suggestions for improvement, corrections, or if you just want to say hi!
[link-1]: http://blog.think-v.com/?p=5806
[link-2]: http://www.lucd.info/2019/12/07/cloud-init-part-2-advanced-ubuntu/
[link-3]: http://www.lucd.info/2019/12/08/cloud-init-part-3-photon-os/
[link-4]: http://www.lucd.info/2019/12/09/cloud-init-part-4-running-scripts/
[link-5]: http://www.lucd.info/2019/12/11/cloud-init-part-5-running-containers/
[link-6]: https://alexbrand.dev/post/first-look-at-antrea-a-cni-plugin-based-on-open-vswitch/
[link-7]: https://colatkinson.site/macos/fuse/2019/09/29/osxfuse/
[link-8]: https://ahmet.im/blog/knative-better-kubernetes-networking/
[link-9]: https://wesley.sh/solving-usekeychain-not-working-for-password-protected-ssh-key-logins-on-macos/
[link-10]: https://www.sitepoint.com/zsh-tips-tricks/
[link-11]: https://medium.com/cloud-security/easier-aws-cloudformation-47a30c631963
[link-12]: https://blog.baeke.info/2019/12/06/deploy-aks-with-nginx-external-dns-helm-operator-and-flux/
[link-13]: https://blog.jessitron.com/2019/12/02/do-things-right-in-vscode/
[link-14]: https://blog.usejournal.com/aws-outposts-68e78592c7f8
[link-15]: https://multipass.run/
[link-16]: https://lapcatsoftware.com/articles/macl.html
[link-17]: https://www.sethvargo.com/configuring-cloud-run-with-terraform/
[link-18]: https://www.hashicorp.com/blog/injecting-vault-secrets-into-kubernetes-pods-via-a-sidecar/
[link-19]: https://www.schneier.com/blog/archives/2019/12/chinese_hackers_1.html
[link-20]: https://medium.com/faun/35-advanced-tutorials-to-learn-kubernetes-dae5695b1f18
[link-21]: https://rmoff.net/2019/12/18/detecting-and-analysing-ssh-attacks-with-ksqldb/
[link-22]: https://github.com/bonnefoa/kubectl-fzf
[link-23]: https://mh9.codes/posts/my-tmux-setup/
[link-24]: https://jamesstuber.com/productivity-systems/
[link-99]: https://twitter.com/scott_lowe
| 66.868687 | 468 | 0.76435 | eng_Latn | 0.914465 |
f4e308ef53580f5673f860397bb198073388706b | 15,303 | md | Markdown | articles/web-application-firewall/ag/web-application-firewall-troubleshoot.md | cedarkuo/azure-docs.zh-tw | 35578e41dc1bd28a8859b2dcc02f71c8c5b26f90 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/web-application-firewall/ag/web-application-firewall-troubleshoot.md | cedarkuo/azure-docs.zh-tw | 35578e41dc1bd28a8859b2dcc02f71c8c5b26f90 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/web-application-firewall/ag/web-application-firewall-troubleshoot.md | cedarkuo/azure-docs.zh-tw | 35578e41dc1bd28a8859b2dcc02f71c8c5b26f90 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: 疑難排解-Azure Web 應用程式防火牆
description: 本文提供 Azure 應用程式閘道的 Web 應用程式防火牆(WAF)的疑難排解資訊
services: web-application-firewall
author: vhorne
ms.service: web-application-firewall
ms.date: 11/14/2019
ms.author: ant
ms.topic: conceptual
ms.openlocfilehash: 6fa959b1c9ed021a97031ba03822ae89fbbb7bbb
ms.sourcegitcommit: 999ccaf74347605e32505cbcfd6121163560a4ae
ms.translationtype: MT
ms.contentlocale: zh-TW
ms.lasthandoff: 05/08/2020
ms.locfileid: "82983069"
---
# <a name="troubleshoot-web-application-firewall-waf-for-azure-application-gateway"></a>針對 Azure 應用程式閘道的 Web 應用程式防火牆(WAF)進行疑難排解
如果您要通過 Web 應用程式防火牆(WAF)的要求遭到封鎖,您可以執行幾項工作。
首先,請確定您已閱讀[WAF 總覽](ag-overview.md)和[WAF](application-gateway-waf-configuration.md)設定檔。 此外,請確定您已啟用[WAF 監視](../../application-gateway/application-gateway-diagnostics.md),這些文章會說明 WAF 的功能、WAF 規則設定的運作方式,以及如何存取 WAF 記錄。
OWASP 規則集的設計是非常嚴格的現成,並使用 WAF 進行微調,以符合應用程式或組織的特定需求。 在許多情況下,它是完全正常的,而且實際上是預期的,以建立排除專案、自訂規則,甚至停用可能導致問題或誤報的規則。 「每個網站」和「每個 URI」原則允許這些變更只會影響特定的網站/Uri,因此任何變更都不會影響其他可能不會遇到相同問題的網站。
## <a name="understanding-waf-logs"></a>瞭解 WAF 記錄
WAF 記錄的目的是要顯示 WAF 所符合或封鎖的每個要求。 這是所有符合或封鎖之已評估要求的總帳。 如果您注意到 WAF 封鎖了不應該的要求(誤報),您可以執行幾件事。 首先,縮小並尋找特定的要求。 查看記錄檔,以找出要求的特定 URI、時間戳記或交易識別碼。 當您找到相關聯的記錄檔專案時,就可以開始對誤報採取動作。
例如,假設您有一個合法的流量,其中包含您想要通過 WAF 的字串*1 = 1* 。 如果您嘗試要求,WAF 會封鎖在任何參數或欄位中包含*1 = 1*字串的流量。 這是通常與 SQL 插入式攻擊相關聯的字串。 您可以查看記錄檔,並查看要求的時間戳記,以及已封鎖/符合的規則。
在下列範例中,您可以看到在相同要求期間觸發四個規則(使用 [TransactionId] 欄位)。 第一個會指出它是相符的,因為使用者在要求中使用了數值/IP URL,這會將異常分數增加三個,因為這是一個警告。 下一個符合的規則是942130,也就是您要尋找的規則。 您可以在`details.data`欄位中看到*1 = 1* 。 這會進一步將異常分數增加三次,因為這也是一則警告。 一般而言,具有**相符**動作的每個規則都會增加異常分數,此時異常分數會是六。 如需詳細資訊,請參閱[異常評分模式](ag-overview.md#anomaly-scoring-mode)。
最後兩個記錄專案顯示要求已遭到封鎖,因為異常分數夠高。 這些專案的動作與其他兩個不同。 它們會顯示其實際上已*封鎖*要求。 這些規則是強制性的,且無法停用。 您不應該將它們視為規則,而是做為 WAF 內部的核心基礎結構。
```json
{
"resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
"operationName": "ApplicationGatewayFirewall",
"category": "ApplicationGatewayFirewallLog",
"properties": {
"instanceId": "appgw_3",
"clientIp": "167.220.2.139",
"clientPort": "",
"requestUri": "\/",
"ruleSetType": "OWASP_CRS",
"ruleSetVersion": "3.0.0",
"ruleId": "920350",
"message": "Host header is a numeric IP address",
"action": "Matched",
"site": "Global",
"details": {
"message": "Warning. Pattern match \\\"^[\\\\\\\\d.:]+$\\\" at REQUEST_HEADERS:Host. ",
"data": "40.90.218.160",
"file": "rules\/REQUEST-920-PROTOCOL-ENFORCEMENT.conf\\\"",
"line": "791"
},
"hostname": "vm000003",
"transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
}
}
{
"resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
"operationName": "ApplicationGatewayFirewall",
"category": "ApplicationGatewayFirewallLog",
"properties": {
"instanceId": "appgw_3",
"clientIp": "167.220.2.139",
"clientPort": "",
"requestUri": "\/",
"ruleSetType": "OWASP_CRS",
"ruleSetVersion": "3.0.0",
"ruleId": "942130",
"message": "SQL Injection Attack: SQL Tautology Detected.",
"action": "Matched",
"site": "Global",
"details": {
"message": "Warning. Pattern match \\\"(?i:([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)([\\\\\\\\d\\\\\\\\w]++)([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)(?:(?:=|\\u003c=\\u003e|r?like|sounds\\\\\\\\s+like|regexp)([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)\\\\\\\\2|(?:!=|\\u003c=|\\u003e=|\\u003c\\u003e|\\u003c|\\u003e|\\\\\\\\^|is\\\\\\\\s+not|not\\\\\\\\s+like|not\\\\\\\\s+regexp)([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)(?!\\\\\\\\2)([\\\\\\\\d\\\\\\\\w]+)))\\\" at ARGS:text1. ",
"data": "Matched Data: 1=1 found within ARGS:text1: 1=1",
"file": "rules\/REQUEST-942-APPLICATION-ATTACK-SQLI.conf\\\"",
"line": "554"
},
"hostname": "vm000003",
"transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
}
}
{
"resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
"operationName": "ApplicationGatewayFirewall",
"category": "ApplicationGatewayFirewallLog",
"properties": {
"instanceId": "appgw_3",
"clientIp": "167.220.2.139",
"clientPort": "",
"requestUri": "\/",
"ruleSetType": "",
"ruleSetVersion": "",
"ruleId": "0",
"message": "Mandatory rule. Cannot be disabled. Inbound Anomaly Score Exceeded (Total Score: 8)",
"action": "Blocked",
"site": "Global",
"details": {
"message": "Access denied with code 403 (phase 2). Operator GE matched 5 at TX:anomaly_score. ",
"data": "",
"file": "rules\/REQUEST-949-BLOCKING-EVALUATION.conf\\\"",
"line": "57"
},
"hostname": "vm000003",
"transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
}
}
{
"resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
"operationName": "ApplicationGatewayFirewall",
"category": "ApplicationGatewayFirewallLog",
"properties": {
"instanceId": "appgw_3",
"clientIp": "167.220.2.139",
"clientPort": "",
"requestUri": "\/",
"ruleSetType": "",
"ruleSetVersion": "",
"ruleId": "0",
"message": "Mandatory rule. Cannot be disabled. Inbound Anomaly Score Exceeded (Total Inbound Score: 8 - SQLI=5,XSS=0,RFI=0,LFI=0,RCE=0,PHPI=0,HTTP=0,SESS=0): SQL Injection Attack: SQL Tautology Detected.",
"action": "Blocked",
"site": "Global",
"details": {
"message": "Warning. Operator GE matched 5 at TX:inbound_anomaly_score. ",
"data": "",
"file": "rules\/RESPONSE-980-CORRELATION.conf\\\"",
"line": "73"
},
"hostname": "vm000003",
"transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
}
}
```
## <a name="fixing-false-positives"></a>修正誤報
透過這項資訊,以及規則942130與*1 = 1*字串相符的知識,您可以執行一些動作來阻止這種情況封鎖您的流量:
- 使用排除清單
如需排除清單的詳細資訊,請參閱[WAF](application-gateway-waf-configuration.md#waf-exclusion-lists)設定。
- 停用規則。
### <a name="using-an-exclusion-list"></a>使用排除清單
若要做出有關處理誤報的明智決策,請務必熟悉您的應用程式所使用的技術。 例如,假設您的技術堆疊中沒有 SQL server,而且您得到的是與這些規則相關的誤報。 停用這些規則並不一定會降低您的安全性。
使用排除清單的其中一個優點是,只會停用要求的特定部分。 不過,這表示特定的排除適用于通過 WAF 的所有流量,因為它是全域設定。 例如,如果*1 = 1*是特定應用程式主體中的有效要求,而不是其他人,這可能會導致問題。 另一個優點是,您可以在符合特定條件時,選擇要排除的主體、標頭和 cookie,而不是排除整個要求。
有時候,在某些情況下,特定參數會以可能不直覺的方式傳入 WAF。 例如,使用 Azure Active Directory 進行驗證時,會傳遞一個權杖。 此權杖 *__RequestVerificationToken*通常會以要求 Cookie 的形式傳入。 不過,在某些情況下會停用 cookie,此權杖也會當做 request 屬性或 "arg" 傳遞。 如果發生這種情況,您必須確定已將 *__RequestVerificationToken*新增至排除清單,做為**要求屬性名稱**。
![排除](../media/web-application-firewall-troubleshoot/exclusion-list.png)
在此範例中,您想要排除等於*text1*的**要求屬性名稱**。 這很明顯,因為您可以在防火牆記錄檔中看到屬性名稱:**資料:符合的資料: 1 = 1 在 ARGS: text1: 1 = 1 中找到**。 屬性為**text1**。 您也可以使用一些其他方式來尋找此屬性名稱,請參閱[尋找要求屬性名稱](#finding-request-attribute-names)。
![WAF 排除清單](../media/web-application-firewall-troubleshoot/waf-config.png)
### <a name="disabling-rules"></a>停用規則
另一種解決錯誤正面的方法,就是停用 WAF 認為是惡意的輸入所符合的規則。 由於您已剖析 WAF 記錄,並已將規則縮小至942130,因此您可以在 Azure 入口網站中將它停用。 請參閱[透過 Azure 入口網站自訂 web 應用程式防火牆規則](application-gateway-customize-waf-rules-portal.md)。
停用規則的其中一個優點是,如果您知道包含一般會封鎖之特定條件的所有流量都是有效的流量,您可以停用整個 WAF 的該規則。 不過,如果只有特定使用案例中的有效流量,您可以停用整個 WAF 的該規則來開啟弱點,因為它是全域設定。
如果您想要使用 Azure PowerShell,請參閱[透過 PowerShell 自訂 web 應用程式防火牆規則](application-gateway-customize-waf-rules-powershell.md)。 如果您想要使用 Azure CLI,請參閱[透過 Azure CLI 自訂 web 應用程式防火牆規則](application-gateway-customize-waf-rules-cli.md)。
![WAF 規則](../media/web-application-firewall-troubleshoot/waf-rules.png)
## <a name="finding-request-attribute-names"></a>尋找要求屬性名稱
在[Fiddler](https://www.telerik.com/fiddler)的協助下,您會檢查個別的要求,並判斷要呼叫的網頁中有哪些特定的欄位。 這有助於使用排除清單,從檢查中排除某些欄位。
在此範例中,您可以看到輸入*1 = 1*字串的欄位稱為**text1**。
![Fiddler](../media/web-application-firewall-troubleshoot/fiddler-1.png)
這是您可以排除的欄位。 若要深入瞭解排除清單,請參閱[Web 應用程式防火牆要求大小限制和排除清單](application-gateway-waf-configuration.md#waf-exclusion-lists)。 在此情況下,您可以藉由設定下列排除來排除評估:
![WAF 排除](../media/web-application-firewall-troubleshoot/waf-exclusion-02.png)
您也可以檢查防火牆記錄以取得資訊,以查看您需要新增至排除清單的內容。 若要啟用記錄,請參閱[應用程式閘道的後端健康情況、資源記錄和計量](../../application-gateway/application-gateway-diagnostics.md)。
檢查防火牆記錄檔,並查看 PT1H 您要檢查的要求一小時內的檔案。
在此範例中,您可以看到您有四個具有相同 TransactionID 的規則,而且它們全都在完全相同的時間內發生:
```json
- {
- "resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
- "operationName": "ApplicationGatewayFirewall",
- "category": "ApplicationGatewayFirewallLog",
- "properties": {
- "instanceId": "appgw_3",
- "clientIp": "167.220.2.139",
- "clientPort": "",
- "requestUri": "\/",
- "ruleSetType": "OWASP_CRS",
- "ruleSetVersion": "3.0.0",
- "ruleId": "920350",
- "message": "Host header is a numeric IP address",
- "action": "Matched",
- "site": "Global",
- "details": {
- "message": "Warning. Pattern match \\\"^[\\\\\\\\d.:]+$\\\" at REQUEST_HEADERS:Host. ",
- "data": "40.90.218.160",
- "file": "rules\/REQUEST-920-PROTOCOL-ENFORCEMENT.conf\\\"",
- "line": "791"
- },
- "hostname": "vm000003",
- "transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
- }
- }
- {
- "resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
- "operationName": "ApplicationGatewayFirewall",
- "category": "ApplicationGatewayFirewallLog",
- "properties": {
- "instanceId": "appgw_3",
- "clientIp": "167.220.2.139",
- "clientPort": "",
- "requestUri": "\/",
- "ruleSetType": "OWASP_CRS",
- "ruleSetVersion": "3.0.0",
- "ruleId": "942130",
- "message": "SQL Injection Attack: SQL Tautology Detected.",
- "action": "Matched",
- "site": "Global",
- "details": {
- "message": "Warning. Pattern match \\\"(?i:([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)([\\\\\\\\d\\\\\\\\w]++)([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)(?:(?:=|\\u003c=\\u003e|r?like|sounds\\\\\\\\s+like|regexp)([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)\\\\\\\\2|(?:!=|\\u003c=|\\u003e=|\\u003c\\u003e|\\u003c|\\u003e|\\\\\\\\^|is\\\\\\\\s+not|not\\\\\\\\s+like|not\\\\\\\\s+regexp)([\\\\\\\\s'\\\\\\\"`\\\\\\\\(\\\\\\\\)]*?)(?!\\\\\\\\2)([\\\\\\\\d\\\\\\\\w]+)))\\\" at ARGS:text1. ",
- "data": "Matched Data: 1=1 found within ARGS:text1: 1=1",
- "file": "rules\/REQUEST-942-APPLICATION-ATTACK-SQLI.conf\\\"",
- "line": "554"
- },
- "hostname": "vm000003",
- "transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
- }
- }
- {
- "resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
- "operationName": "ApplicationGatewayFirewall",
- "category": "ApplicationGatewayFirewallLog",
- "properties": {
- "instanceId": "appgw_3",
- "clientIp": "167.220.2.139",
- "clientPort": "",
- "requestUri": "\/",
- "ruleSetType": "",
- "ruleSetVersion": "",
- "ruleId": "0",
- "message": "Mandatory rule. Cannot be disabled. Inbound Anomaly Score Exceeded (Total Score: 8)",
- "action": "Blocked",
- "site": "Global",
- "details": {
- "message": "Access denied with code 403 (phase 2). Operator GE matched 5 at TX:anomaly_score. ",
- "data": "",
- "file": "rules\/REQUEST-949-BLOCKING-EVALUATION.conf\\\"",
- "line": "57"
- },
- "hostname": "vm000003",
- "transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
- }
- }
- {
- "resourceId": "/SUBSCRIPTIONS/A6F44B25-259E-4AF5-888A-386FED92C11B/RESOURCEGROUPS/DEMOWAF_V2/PROVIDERS/MICROSOFT.NETWORK/APPLICATIONGATEWAYS/DEMOWAF-V2",
- "operationName": "ApplicationGatewayFirewall",
- "category": "ApplicationGatewayFirewallLog",
- "properties": {
- "instanceId": "appgw_3",
- "clientIp": "167.220.2.139",
- "clientPort": "",
- "requestUri": "\/",
- "ruleSetType": "",
- "ruleSetVersion": "",
- "ruleId": "0",
- "message": "Mandatory rule. Cannot be disabled. Inbound Anomaly Score Exceeded (Total Inbound Score: 8 - SQLI=5,XSS=0,RFI=0,LFI=0,RCE=0,PHPI=0,HTTP=0,SESS=0): SQL Injection Attack: SQL Tautology Detected.",
- "action": "Blocked",
- "site": "Global",
- "details": {
- "message": "Warning. Operator GE matched 5 at TX:inbound_anomaly_score. ",
- "data": "",
- "file": "rules\/RESPONSE-980-CORRELATION.conf\\\"",
- "line": "73"
- },
- "hostname": "vm000003",
- "transactionId": "AcAcAcAcAKH@AcAcAcAcAyAt"
- }
- }
```
瞭解 CRS 規則設定的運作方式,以及 CRS 規則集3.0 如何與異常計分系統搭配運作(請參閱[Azure 應用程式閘道的 Web 應用程式防火牆](ag-overview.md))您知道具有 [**動作:封鎖**] 屬性的底部兩個規則會根據異常分數的總和來封鎖。 要專注于的規則是前兩個。
會記錄第一個專案,因為使用者使用數位 IP 位址來流覽至應用程式閘道,這在此情況下可以忽略。
第二個(規則942130)是最有趣的一個。 您可以在詳細資料中看到它符合模式(1 = 1),而欄位的名稱為**text1**。 遵循相同的先前步驟,以排除**等於** **1 = 1**的**要求屬性名稱**。
## <a name="finding-request-header-names"></a>尋找要求標頭名稱
Fiddler 是一種很有用的工具,可再次尋找要求標頭名稱。 在下列螢幕擷取畫面中,您可以看到此 GET 要求的標頭,其中包括*內容類型*、*使用者代理程式*等等。
![Fiddler](../media/web-application-firewall-troubleshoot/fiddler-2.png)
另一個查看要求和回應標頭的方式,就是查看 Chrome 的開發人員工具。 您可以按 F12 或以滑鼠右鍵按一下 >**檢查** -> **開發人員工具**],然後選取 [**網路**] 索引標籤。載入網頁,然後按一下您要檢查的要求。
![Chrome F12](../media/web-application-firewall-troubleshoot/chrome-f12.png)
## <a name="finding-request-cookie-names"></a>尋找要求 cookie 名稱
如果要求包含 cookie,則可以選取 [ **cookie** ] 索引標籤,在 Fiddler 中進行查看。
## <a name="restrict-global-parameters-to-eliminate-false-positives"></a>限制全域參數以消除誤報
- 停用要求主體檢查
藉由將 [**檢查要求**本文] 設定為 [關閉],您的 WAF 就不會評估所有流量的要求主體。 如果您知道要求主體不是惡意的應用程式,這可能會很有用。
藉由停用此選項,就不會檢查要求主體。 除非使用排除清單功能排除個別標頭和 cookie,否則會保持檢查。
- 檔案大小限制
藉由限制 WAF 的檔案大小,您就可以限制 web 伺服器發生攻擊的可能性。 藉由允許上傳大型檔案,您的後端的風險就會增加。 將檔案大小限制為應用程式的一般使用案例,只是防止攻擊的另一種方式。
> [!NOTE]
> 如果您知道您的應用程式不需要超過指定大小的任何檔案上傳,您可以藉由設定限制來加以限制。
## <a name="firewall-metrics-waf_v1-only"></a>防火牆計量(僅限 WAF_v1)
對於 v1 Web 應用程式防火牆,下列計量現在可在入口網站中取得:
1. Web 應用程式防火牆封鎖要求計數已封鎖的要求數
2. Web 應用程式防火牆封鎖規則會計算符合的所有規則**並**封鎖要求
3. Web 應用程式防火牆規則散發評估期間符合的所有規則分佈
若要啟用計量,請在入口網站中選取 [**計量**] 索引標籤,然後選取三個計量中的其中一個。
## <a name="next-steps"></a>後續步驟
請參閱[如何在應用程式閘道上設定 web 應用程式防火牆](tutorial-restrict-web-traffic-powershell.md)。
| 45.008824 | 503 | 0.621512 | yue_Hant | 0.866142 |
f4e3466723e651d36e6ba445e7d4d82520ec3157 | 1,840 | md | Markdown | docs/visual-basic/misc/bc36011.md | acidburn0zzz/docs.fr-fr | 5fdf04b7027f8b7d749c2180da4b99068e1f44ee | [
"CC-BY-4.0",
"MIT"
] | 1 | 2019-04-11T17:00:02.000Z | 2019-04-11T17:00:02.000Z | docs/visual-basic/misc/bc36011.md | Acidburn0zzz/docs.fr-fr | 5fdf04b7027f8b7d749c2180da4b99068e1f44ee | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/visual-basic/misc/bc36011.md | Acidburn0zzz/docs.fr-fr | 5fdf04b7027f8b7d749c2180da4b99068e1f44ee | [
"CC-BY-4.0",
"MIT"
] | 1 | 2022-02-23T14:59:20.000Z | 2022-02-23T14:59:20.000Z | ---
title: La variable de ressource 'Using' doit avoir une initialisation explicite
ms.date: 07/20/2015
f1_keywords:
- vbc36011
- bc36011
helpviewer_keywords:
- BC36011
ms.assetid: 5db996a6-0802-4b67-91f1-4aa9c3dd6b09
ms.openlocfilehash: b369498230680f85c8f0d681fab98ce14da229b1
ms.sourcegitcommit: 5c1abeec15fbddcc7dbaa729fabc1f1f29f12045
ms.translationtype: MT
ms.contentlocale: fr-FR
ms.lasthandoff: 03/15/2019
ms.locfileid: "58027208"
---
# <a name="using-resource-variable-must-have-an-explicit-initialization"></a>La variable de ressource 'Using' doit avoir une initialisation explicite
Une instruction `Using` spécifie au moins une ressource qu’elle n’initialise pas avec une clause `New` .
Si vous n’avez pas acquis la ressource avant de passer le contrôle au bloc `Using` , l’instruction `Using` doit l’acquérir. Pour ce faire, elle doit créer un objet à partir de la classe spécifiée, qui nécessite une clause `New` .
**ID d’erreur :** BC36011
## <a name="to-correct-this-error"></a>Pour corriger cette erreur
- Si vous avez déjà acquis la ressource, utilisez une expression ou une variable de référence dans l’instruction `Using` qui prend la valeur de la ressource acquise.
`Dim newFont As New System.Drawing.Font`
`Using newFont`
- Si vous n’avez pas encore acquis la ressource, ajoutez une clause `New` à l’instruction `Using` .
`Using newFont as` `New` `System.Drawing.Font`
## <a name="see-also"></a>Voir aussi
- [Using (instruction)](../../visual-basic/language-reference/statements/using-statement.md)
- [New (opérateur)](../../visual-basic/language-reference/operators/new-operator.md)
- [Guide pratique pour Supprimer une ressource système](../../visual-basic/programming-guide/language-features/control-flow/how-to-dispose-of-a-system-resource.md)
| 44.878049 | 232 | 0.747283 | fra_Latn | 0.751457 |
8a3545a699998ff0ef2814c24f0589d9c4e30c8d | 63,946 | md | Markdown | CHANGELOG.md | truthiswill/ingress-gce | 34e11f7d5281258a9a2eddd6038d2d2154ce9096 | [
"Apache-2.0"
] | null | null | null | CHANGELOG.md | truthiswill/ingress-gce | 34e11f7d5281258a9a2eddd6038d2d2154ce9096 | [
"Apache-2.0"
] | null | null | null | CHANGELOG.md | truthiswill/ingress-gce | 34e11f7d5281258a9a2eddd6038d2d2154ce9096 | [
"Apache-2.0"
] | null | null | null | # Change Log
## [Unreleased](https://github.com/kubernetes/ingress-gce/tree/HEAD)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.4.0...HEAD)
**Closed issues:**
- Rewrite ingress-gce general documentation [\#249](https://github.com/kubernetes/ingress-gce/issues/249)
- Documentation: Would like to see example yaml snippet for GCP certificate resource for SSL/TLS [\#229](https://github.com/kubernetes/ingress-gce/issues/229)
- GCE health check does not pick up changes to pod readinessProbe [\#39](https://github.com/kubernetes/ingress-gce/issues/39)
- \[GLBC\] Expose GCE backend parameters in Ingress object API [\#28](https://github.com/kubernetes/ingress-gce/issues/28)
## [v1.4.0](https://github.com/kubernetes/ingress-gce/tree/v1.4.0) (2018-10-30)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.3.3...v1.4.0)
**Closed issues:**
- can not access nginx through ingress and problem in curl [\#490](https://github.com/kubernetes/ingress-gce/issues/490)
- HTTP2 health check does not use readiness probe path [\#487](https://github.com/kubernetes/ingress-gce/issues/487)
- Tool or job to cleanup ingress related GCP resource after test failure [\#483](https://github.com/kubernetes/ingress-gce/issues/483)
- Changes to ingress resource doesn't update forwarding rules most of the time in 1.10.6-gke.2 [\#477](https://github.com/kubernetes/ingress-gce/issues/477)
- GKE Ingress controller ignoring ingress.class annotation [\#476](https://github.com/kubernetes/ingress-gce/issues/476)
- Addon-manager "Reconcile" annotation deletes default-http-backend service and deployment [\#474](https://github.com/kubernetes/ingress-gce/issues/474)
- Ingress-GCE has a nil pointer exception [\#471](https://github.com/kubernetes/ingress-gce/issues/471)
- GKE ingress with https load balancer and IAP/security policy enabled [\#469](https://github.com/kubernetes/ingress-gce/issues/469)
- Allow configuration-snippet Annotation. [\#445](https://github.com/kubernetes/ingress-gce/issues/445)
- ci-ingress-gce-e2e-scale is failing [\#438](https://github.com/kubernetes/ingress-gce/issues/438)
- unhealthy backend services, with 400, 412, 409 errors [\#396](https://github.com/kubernetes/ingress-gce/issues/396)
- Need e2e test to ensure an ingress with non-nodeport services won't break the others [\#250](https://github.com/kubernetes/ingress-gce/issues/250)
- Fail earlier instead of using defaults [\#201](https://github.com/kubernetes/ingress-gce/issues/201)
- Ingress Controller Clobbers Backend Service [\#156](https://github.com/kubernetes/ingress-gce/issues/156)
- Test ingress creation after hitting error creating GCP resource due to quota [\#94](https://github.com/kubernetes/ingress-gce/issues/94)
**Merged pull requests:**
- Managed Certs integration: Fix code so that informers are not instantiated if managed certs is not enabled [\#529](https://github.com/kubernetes/ingress-gce/pull/529) ([rramkumar1](https://github.com/rramkumar1))
- BackendConfig support for session affinity [\#526](https://github.com/kubernetes/ingress-gce/pull/526) ([bpineau](https://github.com/bpineau))
- Add an example for running specific test case to readme [\#524](https://github.com/kubernetes/ingress-gce/pull/524) ([MrHohn](https://github.com/MrHohn))
- In e2e tests, always skip checking for deletion of default backend service [\#523](https://github.com/kubernetes/ingress-gce/pull/523) ([rramkumar1](https://github.com/rramkumar1))
- \[e2e test\] append key value to resources instead of pointer [\#522](https://github.com/kubernetes/ingress-gce/pull/522) ([MrHohn](https://github.com/MrHohn))
- Update deploy/glbc yaml files for BackendConfig [\#520](https://github.com/kubernetes/ingress-gce/pull/520) ([bpineau](https://github.com/bpineau))
- Fix events-based e2e tests [\#519](https://github.com/kubernetes/ingress-gce/pull/519) ([bpineau](https://github.com/bpineau))
- BackendConfig support for timeouts and connection draining [\#513](https://github.com/kubernetes/ingress-gce/pull/513) ([bpineau](https://github.com/bpineau))
- Implement support for ManagedCertificate CRD [\#508](https://github.com/kubernetes/ingress-gce/pull/508) ([krzykwas](https://github.com/krzykwas))
- Allow for setting the rate limiter on the work queue [\#505](https://github.com/kubernetes/ingress-gce/pull/505) ([rramkumar1](https://github.com/rramkumar1))
- Expose utils.hasFinalizer [\#504](https://github.com/kubernetes/ingress-gce/pull/504) ([rramkumar1](https://github.com/rramkumar1))
- Fix a potential nil pointer exception [\#502](https://github.com/kubernetes/ingress-gce/pull/502) ([freehan](https://github.com/freehan))
- merge negBelongsToCluster into IsNEG [\#501](https://github.com/kubernetes/ingress-gce/pull/501) ([freehan](https://github.com/freehan))
- Update OWNERS file to reflect reality. [\#500](https://github.com/kubernetes/ingress-gce/pull/500) ([rramkumar1](https://github.com/rramkumar1))
- Update vendor [\#497](https://github.com/kubernetes/ingress-gce/pull/497) ([rramkumar1](https://github.com/rramkumar1))
- Update defaultbackend image to 1.5 [\#496](https://github.com/kubernetes/ingress-gce/pull/496) ([aledbf](https://github.com/aledbf))
- include NEG naming scheme for NameBelongsToCluster [\#494](https://github.com/kubernetes/ingress-gce/pull/494) ([freehan](https://github.com/freehan))
- Restructure syncer package [\#492](https://github.com/kubernetes/ingress-gce/pull/492) ([freehan](https://github.com/freehan))
- Modify GroupKey type to contain group name + modify NEG linker to consider provided name [\#491](https://github.com/kubernetes/ingress-gce/pull/491) ([rramkumar1](https://github.com/rramkumar1))
- Restructure NEG controller [\#489](https://github.com/kubernetes/ingress-gce/pull/489) ([freehan](https://github.com/freehan))
- Use HTTPS readiness probe for HTTP2 services because the Kubernetes A… [\#488](https://github.com/kubernetes/ingress-gce/pull/488) ([anuraaga](https://github.com/anuraaga))
- Bump Alpine base image version [\#484](https://github.com/kubernetes/ingress-gce/pull/484) ([awly](https://github.com/awly))
- add work queue to process endpoint changes [\#482](https://github.com/kubernetes/ingress-gce/pull/482) ([freehan](https://github.com/freehan))
- Replace kubernetes-users mailing list link with discuss forum link [\#479](https://github.com/kubernetes/ingress-gce/pull/479) ([mrbobbytables](https://github.com/mrbobbytables))
- Remove add on manager label from GLBC Yaml deployment [\#478](https://github.com/kubernetes/ingress-gce/pull/478) ([rramkumar1](https://github.com/rramkumar1))
- Fix the issue where Shutdown doesn't shutdown taskqueue [\#365](https://github.com/kubernetes/ingress-gce/pull/365) ([anfernee](https://github.com/anfernee))
## [v1.3.3](https://github.com/kubernetes/ingress-gce/tree/v1.3.3) (2018-09-13)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.3.2...v1.3.3)
**Closed issues:**
- GCE ingress stucks on "Creating ingress" status, existing ingresses don't update [\#470](https://github.com/kubernetes/ingress-gce/issues/470)
- Issue with multiple domains and SSL certificates when using ingress-gce [\#466](https://github.com/kubernetes/ingress-gce/issues/466)
**Merged pull requests:**
- Cherrypick \#388 on release 1.3 branch [\#473](https://github.com/kubernetes/ingress-gce/pull/473) ([rramkumar1](https://github.com/rramkumar1))
- Cherrypick of \#434 on release 1.3 [\#472](https://github.com/kubernetes/ingress-gce/pull/472) ([rramkumar1](https://github.com/rramkumar1))
- Revert "Refactor some uses of snapshotter.Add\(\) to use bool rather than real object" [\#464](https://github.com/kubernetes/ingress-gce/pull/464) ([rramkumar1](https://github.com/rramkumar1))
- Support short names in CRD Meta. Allows for abbreviating CRD's in kubectl [\#463](https://github.com/kubernetes/ingress-gce/pull/463) ([rramkumar1](https://github.com/rramkumar1))
- Harden NEG GC [\#459](https://github.com/kubernetes/ingress-gce/pull/459) ([freehan](https://github.com/freehan))
- Do not truncate tls certs based on target proxy limit [\#451](https://github.com/kubernetes/ingress-gce/pull/451) ([prameshj](https://github.com/prameshj))
- Fire warning event instead of hard failing if TLS certificate is not present [\#388](https://github.com/kubernetes/ingress-gce/pull/388) ([munnerz](https://github.com/munnerz))
## [v1.3.2](https://github.com/kubernetes/ingress-gce/tree/v1.3.2) (2018-08-31)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.3.1...v1.3.2)
**Merged pull requests:**
- Cherrypick \#461 into release 1.3 [\#462](https://github.com/kubernetes/ingress-gce/pull/462) ([freehan](https://github.com/freehan))
- Refactor Ingress Filtering and Ingress Backend Traversal [\#461](https://github.com/kubernetes/ingress-gce/pull/461) ([freehan](https://github.com/freehan))
- Refactor some uses of snapshotter.Add\(\) to use bool rather than real object [\#458](https://github.com/kubernetes/ingress-gce/pull/458) ([rramkumar1](https://github.com/rramkumar1))
- Cherrypick \#456 into release-1.3 [\#457](https://github.com/kubernetes/ingress-gce/pull/457) ([freehan](https://github.com/freehan))
- NEG controller bug fix [\#456](https://github.com/kubernetes/ingress-gce/pull/456) ([freehan](https://github.com/freehan))
- Remove JSONMergePatch util [\#455](https://github.com/kubernetes/ingress-gce/pull/455) ([rramkumar1](https://github.com/rramkumar1))
## [v1.3.1](https://github.com/kubernetes/ingress-gce/tree/v1.3.1) (2018-08-29)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.3.0...v1.3.1)
**Closed issues:**
- When using NEG services only, the controller still creates instance groups [\#433](https://github.com/kubernetes/ingress-gce/issues/433)
- \[GLBC\] LB garbage collection orphans named ports in instance groups [\#43](https://github.com/kubernetes/ingress-gce/issues/43)
**Merged pull requests:**
- Cherrypick \#452 into release-1.3 [\#454](https://github.com/kubernetes/ingress-gce/pull/454) ([freehan](https://github.com/freehan))
- Add JSONMerge patch utilities and move some files around [\#453](https://github.com/kubernetes/ingress-gce/pull/453) ([rramkumar1](https://github.com/rramkumar1))
- fix and refactor on NEG annotation handling [\#452](https://github.com/kubernetes/ingress-gce/pull/452) ([freehan](https://github.com/freehan))
- deflake TestGetNodePortsUsedByIngress unit test [\#450](https://github.com/kubernetes/ingress-gce/pull/450) ([freehan](https://github.com/freehan))
- Move joinErrs\(\) to utils and export it [\#449](https://github.com/kubernetes/ingress-gce/pull/449) ([rramkumar1](https://github.com/rramkumar1))
- Slight refactor of Controller interface to eliminate Ingress type specifically [\#448](https://github.com/kubernetes/ingress-gce/pull/448) ([rramkumar1](https://github.com/rramkumar1))
- Export getPatchBytes in pkg/util [\#447](https://github.com/kubernetes/ingress-gce/pull/447) ([rramkumar1](https://github.com/rramkumar1))
- Add some utility functions to support finalizers [\#446](https://github.com/kubernetes/ingress-gce/pull/446) ([rramkumar1](https://github.com/rramkumar1))
- Cherrypick \#442 into release-1.3 [\#444](https://github.com/kubernetes/ingress-gce/pull/444) ([MrHohn](https://github.com/MrHohn))
- Move NegStatus and PortNameMap to pkg/neg/types [\#443](https://github.com/kubernetes/ingress-gce/pull/443) ([rramkumar1](https://github.com/rramkumar1))
- Remove 'Description' and 'Required' from OpenAPI schema root layer [\#442](https://github.com/kubernetes/ingress-gce/pull/442) ([MrHohn](https://github.com/MrHohn))
- Fix main controller health check [\#441](https://github.com/kubernetes/ingress-gce/pull/441) ([rramkumar1](https://github.com/rramkumar1))
- do not create instance group with NEG backends [\#440](https://github.com/kubernetes/ingress-gce/pull/440) ([freehan](https://github.com/freehan))
- Remove unused named ports from instance group's [\#430](https://github.com/kubernetes/ingress-gce/pull/430) ([rramkumar1](https://github.com/rramkumar1))
- Introduce a new interface to encapsulate Ingress sync and controller implementation of the sync [\#428](https://github.com/kubernetes/ingress-gce/pull/428) ([rramkumar1](https://github.com/rramkumar1))
## [v1.3.0](https://github.com/kubernetes/ingress-gce/tree/v1.3.0) (2018-08-16)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.2.3...v1.3.0)
**Closed issues:**
- ingress-gce-image-push job is failing [\#426](https://github.com/kubernetes/ingress-gce/issues/426)
- Multiple pre-shared certificates not working [\#419](https://github.com/kubernetes/ingress-gce/issues/419)
- BackendService Sync bug in 1.2 [\#400](https://github.com/kubernetes/ingress-gce/issues/400)
- Way to check what version of GLBC is running on a GKE cluster [\#395](https://github.com/kubernetes/ingress-gce/issues/395)
- Align node filtering with service controller [\#292](https://github.com/kubernetes/ingress-gce/issues/292)
- Remove NEG FeatureGate [\#274](https://github.com/kubernetes/ingress-gce/issues/274)
- Explore options for removing code which adds legacy GCE health check settings [\#269](https://github.com/kubernetes/ingress-gce/issues/269)
- Clean up unit tests for load balancer pool, backend pool and controller [\#261](https://github.com/kubernetes/ingress-gce/issues/261)
**Merged pull requests:**
- Cherry-pick necessary commits for v1.3.0 release. [\#439](https://github.com/kubernetes/ingress-gce/pull/439) ([rramkumar1](https://github.com/rramkumar1))
- Add myself to OWNERS so I can do a release. [\#437](https://github.com/kubernetes/ingress-gce/pull/437) ([rramkumar1](https://github.com/rramkumar1))
- Fix error handling in controller sync\(\) [\#436](https://github.com/kubernetes/ingress-gce/pull/436) ([rramkumar1](https://github.com/rramkumar1))
- BackendPool Update\(\) should set backend service version [\#435](https://github.com/kubernetes/ingress-gce/pull/435) ([rramkumar1](https://github.com/rramkumar1))
- Fix null-pointer exception in url map ensure logic [\#434](https://github.com/kubernetes/ingress-gce/pull/434) ([rramkumar1](https://github.com/rramkumar1))
- Add a version mapping for both GCE and GKE clusters [\#432](https://github.com/kubernetes/ingress-gce/pull/432) ([rramkumar1](https://github.com/rramkumar1))
- Fix bug in backend syncer where backend service was being created without health check [\#431](https://github.com/kubernetes/ingress-gce/pull/431) ([rramkumar1](https://github.com/rramkumar1))
- move NewIndexer to utils [\#429](https://github.com/kubernetes/ingress-gce/pull/429) ([agau4779](https://github.com/agau4779))
- Push dependency on the GCECloud up out of the neg controller [\#425](https://github.com/kubernetes/ingress-gce/pull/425) ([bowei](https://github.com/bowei))
- Extract BackendPool interface into three 3 separate interfaces [\#424](https://github.com/kubernetes/ingress-gce/pull/424) ([rramkumar1](https://github.com/rramkumar1))
- export TrimFieldsEvenly [\#423](https://github.com/kubernetes/ingress-gce/pull/423) ([agau4779](https://github.com/agau4779))
- Refactor to remove ClusterManager completely [\#422](https://github.com/kubernetes/ingress-gce/pull/422) ([rramkumar1](https://github.com/rramkumar1))
- Remove EnsureInstanceGroupsAndPorts wrapper func [\#421](https://github.com/kubernetes/ingress-gce/pull/421) ([rramkumar1](https://github.com/rramkumar1))
- Move joiner methods into context [\#420](https://github.com/kubernetes/ingress-gce/pull/420) ([rramkumar1](https://github.com/rramkumar1))
- Remove all code related to legacy health checks [\#418](https://github.com/kubernetes/ingress-gce/pull/418) ([rramkumar1](https://github.com/rramkumar1))
- Introduce cloud.google.com/app-protocols to eventually replace existing annotation [\#417](https://github.com/kubernetes/ingress-gce/pull/417) ([rramkumar1](https://github.com/rramkumar1))
- Add doc link for backend config [\#416](https://github.com/kubernetes/ingress-gce/pull/416) ([MrHohn](https://github.com/MrHohn))
- Expose newIndexer in pkg/context [\#415](https://github.com/kubernetes/ingress-gce/pull/415) ([rramkumar1](https://github.com/rramkumar1))
- unit test: add locking when read from shared map [\#414](https://github.com/kubernetes/ingress-gce/pull/414) ([MrHohn](https://github.com/MrHohn))
- Rename context's hcLock to lock [\#413](https://github.com/kubernetes/ingress-gce/pull/413) ([rramkumar1](https://github.com/rramkumar1))
- Bump timeout in tests to match reality [\#412](https://github.com/kubernetes/ingress-gce/pull/412) ([MrHohn](https://github.com/MrHohn))
- Fix issue with yaml in glbc deploy/ [\#411](https://github.com/kubernetes/ingress-gce/pull/411) ([rramkumar1](https://github.com/rramkumar1))
- Extract firewall management into separate controller [\#403](https://github.com/kubernetes/ingress-gce/pull/403) ([rramkumar1](https://github.com/rramkumar1))
- Update README.md [\#391](https://github.com/kubernetes/ingress-gce/pull/391) ([mgub](https://github.com/mgub))
- Align node filtering with kubernetes service controller [\#370](https://github.com/kubernetes/ingress-gce/pull/370) ([lbernail](https://github.com/lbernail))
## [v1.2.3](https://github.com/kubernetes/ingress-gce/tree/v1.2.3) (2018-07-19)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.2.2...v1.2.3)
**Closed issues:**
- External CNAME records do not route properly via hostnames [\#404](https://github.com/kubernetes/ingress-gce/issues/404)
- Add annotation for specifying backend-service timeout [\#399](https://github.com/kubernetes/ingress-gce/issues/399)
- Unneeded health check created for kube-system:default-http-backend service [\#385](https://github.com/kubernetes/ingress-gce/issues/385)
- Ingress health check not following ReadinessProbe [\#317](https://github.com/kubernetes/ingress-gce/issues/317)
- Fix the coverage badge [\#132](https://github.com/kubernetes/ingress-gce/issues/132)
- Does/will the GCE ingress controller support whitelist-source-range? [\#38](https://github.com/kubernetes/ingress-gce/issues/38)
**Merged pull requests:**
- Cherry pick on release-1.2 for \#408 [\#409](https://github.com/kubernetes/ingress-gce/pull/409) ([rramkumar1](https://github.com/rramkumar1))
- Raw patch to cloud provider to fix operations issue [\#408](https://github.com/kubernetes/ingress-gce/pull/408) ([rramkumar1](https://github.com/rramkumar1))
- cherrypick \#402 to release-1.2 branch [\#407](https://github.com/kubernetes/ingress-gce/pull/407) ([freehan](https://github.com/freehan))
- Remove EnsureLB from ClusterManager [\#406](https://github.com/kubernetes/ingress-gce/pull/406) ([rramkumar1](https://github.com/rramkumar1))
- Introduce ControllerContextConfig and move some command-line tunable stuff there [\#405](https://github.com/kubernetes/ingress-gce/pull/405) ([rramkumar1](https://github.com/rramkumar1))
- uniq function should compare more than NodePort difference [\#402](https://github.com/kubernetes/ingress-gce/pull/402) ([freehan](https://github.com/freehan))
- Pace operation polling [\#401](https://github.com/kubernetes/ingress-gce/pull/401) ([nicksardo](https://github.com/nicksardo))
- Remove error return value from controller initialization [\#398](https://github.com/kubernetes/ingress-gce/pull/398) ([rramkumar1](https://github.com/rramkumar1))
- Documentation fixes [\#394](https://github.com/kubernetes/ingress-gce/pull/394) ([rramkumar1](https://github.com/rramkumar1))
- Implement security policy validator for real [\#393](https://github.com/kubernetes/ingress-gce/pull/393) ([MrHohn](https://github.com/MrHohn))
- promote http2 to beta [\#382](https://github.com/kubernetes/ingress-gce/pull/382) ([agau4779](https://github.com/agau4779))
- Typo in message: SyncNetworkEndpiontGroupFailed-\>SyncNetworkEndpointGroupFailed [\#374](https://github.com/kubernetes/ingress-gce/pull/374) ([AdamDang](https://github.com/AdamDang))
- URLMap sync [\#356](https://github.com/kubernetes/ingress-gce/pull/356) ([nicksardo](https://github.com/nicksardo))
## [v1.2.2](https://github.com/kubernetes/ingress-gce/tree/v1.2.2) (2018-07-09)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.1.2...v1.2.2)
**Closed issues:**
- "./deploy/glbc/script.sh --clean" does not reset the file "./deploy/glbc/yaml/default-http-backend.yaml" [\#363](https://github.com/kubernetes/ingress-gce/issues/363)
- Ingress tries to create SSL certificate from secret with illegal name [\#321](https://github.com/kubernetes/ingress-gce/issues/321)
- tls secrets not updating due to invalid resource.name [\#311](https://github.com/kubernetes/ingress-gce/issues/311)
- Invalid certificate leads to firewall rule no longer being updated on GKE [\#298](https://github.com/kubernetes/ingress-gce/issues/298)
- Exclude Master and ExcludeBalancer nodes from Instance Groups [\#295](https://github.com/kubernetes/ingress-gce/issues/295)
- Error 400: The SSL certificate could not be parsed. [\#294](https://github.com/kubernetes/ingress-gce/issues/294)
- https-only GKE ingress is still showing port 80 [\#290](https://github.com/kubernetes/ingress-gce/issues/290)
- Create a SECURITY\_CONTACTS file. [\#286](https://github.com/kubernetes/ingress-gce/issues/286)
- Ingress e2e tests should ensure that default backend passes health checks. [\#263](https://github.com/kubernetes/ingress-gce/issues/263)
- Long time-to-first-byte problem [\#245](https://github.com/kubernetes/ingress-gce/issues/245)
- Failing to pick up health check from readiness probe [\#241](https://github.com/kubernetes/ingress-gce/issues/241)
- Scale test failed because ingress wasn't deleted [\#219](https://github.com/kubernetes/ingress-gce/issues/219)
- Replace link parsing and generation with cloud library [\#215](https://github.com/kubernetes/ingress-gce/issues/215)
- Support Leader Election for GLBC for HA masters [\#204](https://github.com/kubernetes/ingress-gce/issues/204)
- Failing to create an Ingress shouldn't stop the controller from creating the others [\#197](https://github.com/kubernetes/ingress-gce/issues/197)
- Controller doesnt reenque on instance group GC failure [\#186](https://github.com/kubernetes/ingress-gce/issues/186)
- Condense backend pool with default backend pool [\#184](https://github.com/kubernetes/ingress-gce/issues/184)
- 502 Server Error [\#164](https://github.com/kubernetes/ingress-gce/issues/164)
- Seems ingress don't transfer the "Transfer-encoding" Header from backend [\#157](https://github.com/kubernetes/ingress-gce/issues/157)
- ingress-gce does not work...very little documentation ..instructions lead to 404 pages [\#149](https://github.com/kubernetes/ingress-gce/issues/149)
- REST request fails with "The server encountered a temporary error and could not complete your request. Please try again in 30 seconds" [\#141](https://github.com/kubernetes/ingress-gce/issues/141)
- SSL certificate name non-unique when namespace + ingress name too long [\#131](https://github.com/kubernetes/ingress-gce/issues/131)
- Default backend service is created when no ingress needs it [\#127](https://github.com/kubernetes/ingress-gce/issues/127)
- Experiencing downtime when updating hosts backend in ingress controller [\#116](https://github.com/kubernetes/ingress-gce/issues/116)
- ingress path confusing [\#76](https://github.com/kubernetes/ingress-gce/issues/76)
- Is there nginx-controller like session affinity support [\#60](https://github.com/kubernetes/ingress-gce/issues/60)
- multiple TLS certs are not correctly handled by GCE \(no SNI support\) [\#46](https://github.com/kubernetes/ingress-gce/issues/46)
- controllers/gce/README.md doc review [\#45](https://github.com/kubernetes/ingress-gce/issues/45)
- Why does GCE ingress defer promoting static IP [\#37](https://github.com/kubernetes/ingress-gce/issues/37)
- GCE: improve default backend handling [\#23](https://github.com/kubernetes/ingress-gce/issues/23)
- Ingress creates wrong firewall rule after `default-http-backend` service was clobbered. [\#19](https://github.com/kubernetes/ingress-gce/issues/19)
**Merged pull requests:**
- Cherrypick \#383: Unmask get backend config errors [\#390](https://github.com/kubernetes/ingress-gce/pull/390) ([MrHohn](https://github.com/MrHohn))
- Cherrypick \#381and \#384 into release-1.2 [\#389](https://github.com/kubernetes/ingress-gce/pull/389) ([freehan](https://github.com/freehan))
- Modify security policy e2e test to create unique GCP resources. [\#387](https://github.com/kubernetes/ingress-gce/pull/387) ([rramkumar1](https://github.com/rramkumar1))
- Increase timeout on waiting for GLBC resource deletion [\#386](https://github.com/kubernetes/ingress-gce/pull/386) ([rramkumar1](https://github.com/rramkumar1))
- Patch NEG version into features.go and add more docs for features package [\#384](https://github.com/kubernetes/ingress-gce/pull/384) ([MrHohn](https://github.com/MrHohn))
- Add more negative test cases for backend config [\#383](https://github.com/kubernetes/ingress-gce/pull/383) ([MrHohn](https://github.com/MrHohn))
- Some fixes for 1.2 [\#381](https://github.com/kubernetes/ingress-gce/pull/381) ([freehan](https://github.com/freehan))
- cherrypick \#377 into release-1.2 [\#378](https://github.com/kubernetes/ingress-gce/pull/378) ([freehan](https://github.com/freehan))
- PortNameMap should also compare values [\#377](https://github.com/kubernetes/ingress-gce/pull/377) ([freehan](https://github.com/freehan))
- Fix run.sh to properly print exit code of test run [\#376](https://github.com/kubernetes/ingress-gce/pull/376) ([rramkumar1](https://github.com/rramkumar1))
- Add a negative test case for referencing not exist BackendConfig [\#372](https://github.com/kubernetes/ingress-gce/pull/372) ([MrHohn](https://github.com/MrHohn))
- Fix WaitForGCLBDeletion\(\) callers [\#371](https://github.com/kubernetes/ingress-gce/pull/371) ([MrHohn](https://github.com/MrHohn))
- Update deploy script to edit copy of default backend service yaml [\#368](https://github.com/kubernetes/ingress-gce/pull/368) ([rramkumar1](https://github.com/rramkumar1))
- Add simple e2e test for CDN & IAP [\#367](https://github.com/kubernetes/ingress-gce/pull/367) ([rramkumar1](https://github.com/rramkumar1))
- Swtich to use beta HealthCheck for NEG [\#366](https://github.com/kubernetes/ingress-gce/pull/366) ([freehan](https://github.com/freehan))
- Fix order-dependency in test cases [\#364](https://github.com/kubernetes/ingress-gce/pull/364) ([anfernee](https://github.com/anfernee))
- Revendor GCE go client, cloud provider and fixes to make it work [\#362](https://github.com/kubernetes/ingress-gce/pull/362) ([freehan](https://github.com/freehan))
- Fix missing gcloud command in e2e script [\#361](https://github.com/kubernetes/ingress-gce/pull/361) ([bowei](https://github.com/bowei))
- Implement e2e test for security policy [\#360](https://github.com/kubernetes/ingress-gce/pull/360) ([MrHohn](https://github.com/MrHohn))
- nit fixes [\#358](https://github.com/kubernetes/ingress-gce/pull/358) ([freehan](https://github.com/freehan))
- Implement fuzzer for feature security policy [\#357](https://github.com/kubernetes/ingress-gce/pull/357) ([MrHohn](https://github.com/MrHohn))
- Add host to echo dump [\#355](https://github.com/kubernetes/ingress-gce/pull/355) ([nicksardo](https://github.com/nicksardo))
- Fix hasAlphaResource and hasBetaResource [\#354](https://github.com/kubernetes/ingress-gce/pull/354) ([MrHohn](https://github.com/MrHohn))
- Add backendconfig client to e2e framework [\#353](https://github.com/kubernetes/ingress-gce/pull/353) ([MrHohn](https://github.com/MrHohn))
- Trigger ingress sync on system default backend update [\#352](https://github.com/kubernetes/ingress-gce/pull/352) ([MrHohn](https://github.com/MrHohn))
- Minor fix to backend config errors [\#351](https://github.com/kubernetes/ingress-gce/pull/351) ([MrHohn](https://github.com/MrHohn))
- merge Ingress NEG annotation and Expose NEG annotation [\#350](https://github.com/kubernetes/ingress-gce/pull/350) ([agau4779](https://github.com/agau4779))
- Add Liveness Probe for NEG controller [\#349](https://github.com/kubernetes/ingress-gce/pull/349) ([freehan](https://github.com/freehan))
- Make sure we get a BackendService after updating it to populate object fingerprint \[WIP\] [\#348](https://github.com/kubernetes/ingress-gce/pull/348) ([rramkumar1](https://github.com/rramkumar1))
- On removal of backend config name from service annotaion, ensure no existing settings are affected [\#347](https://github.com/kubernetes/ingress-gce/pull/347) ([rramkumar1](https://github.com/rramkumar1))
- Adds readme for e2e-tests [\#346](https://github.com/kubernetes/ingress-gce/pull/346) ([bowei](https://github.com/bowei))
- Modify IAP + CDN support to not touch settings if section in spec is missing [\#345](https://github.com/kubernetes/ingress-gce/pull/345) ([rramkumar1](https://github.com/rramkumar1))
- Delete ingress and wait for resource deletion [\#344](https://github.com/kubernetes/ingress-gce/pull/344) ([bowei](https://github.com/bowei))
- Retry on getting PROJECT, dump out project resources [\#343](https://github.com/kubernetes/ingress-gce/pull/343) ([bowei](https://github.com/bowei))
- Minor fix for retrieving backendService resource [\#342](https://github.com/kubernetes/ingress-gce/pull/342) ([MrHohn](https://github.com/MrHohn))
- use flag instead of gate for NEG [\#341](https://github.com/kubernetes/ingress-gce/pull/341) ([agau4779](https://github.com/agau4779))
- Testing improvements [\#339](https://github.com/kubernetes/ingress-gce/pull/339) ([rramkumar1](https://github.com/rramkumar1))
- Add logging to the GLBCFromVIP for debugging [\#338](https://github.com/kubernetes/ingress-gce/pull/338) ([bowei](https://github.com/bowei))
- Allow LoadBalancer services [\#335](https://github.com/kubernetes/ingress-gce/pull/335) ([nicksardo](https://github.com/nicksardo))
- Add quotes to echo, allow CONTAINER\_BINARIES override [\#334](https://github.com/kubernetes/ingress-gce/pull/334) ([nicksardo](https://github.com/nicksardo))
- Update Dockerfile for the e2e test [\#333](https://github.com/kubernetes/ingress-gce/pull/333) ([bowei](https://github.com/bowei))
- NEG Metrics [\#332](https://github.com/kubernetes/ingress-gce/pull/332) ([freehan](https://github.com/freehan))
- Add fixtures and helpers in e2e framework for BackendConfig [\#331](https://github.com/kubernetes/ingress-gce/pull/331) ([rramkumar1](https://github.com/rramkumar1))
- Handle empty cluster name in sslcert namer [\#330](https://github.com/kubernetes/ingress-gce/pull/330) ([prameshj](https://github.com/prameshj))
- Fixes [\#329](https://github.com/kubernetes/ingress-gce/pull/329) ([bowei](https://github.com/bowei))
- Make Ingress builder reusable [\#327](https://github.com/kubernetes/ingress-gce/pull/327) ([bowei](https://github.com/bowei))
- Fix typos in copyright year [\#326](https://github.com/kubernetes/ingress-gce/pull/326) ([bowei](https://github.com/bowei))
- Many small cleanups to get basic\_test.go working [\#325](https://github.com/kubernetes/ingress-gce/pull/325) ([bowei](https://github.com/bowei))
- Fix build to only build the executable target [\#324](https://github.com/kubernetes/ingress-gce/pull/324) ([bowei](https://github.com/bowei))
- Add error types for errors to improve testing and readability [\#323](https://github.com/kubernetes/ingress-gce/pull/323) ([rramkumar1](https://github.com/rramkumar1))
- Fix ingress translation logic to not GC backend if non-fatal error occurred [\#322](https://github.com/kubernetes/ingress-gce/pull/322) ([rramkumar1](https://github.com/rramkumar1))
- IAP + CDN e2e testing implementation [\#319](https://github.com/kubernetes/ingress-gce/pull/319) ([rramkumar1](https://github.com/rramkumar1))
- Break out some helper functions for better testing + reuse [\#318](https://github.com/kubernetes/ingress-gce/pull/318) ([rramkumar1](https://github.com/rramkumar1))
- Move cloud to ControllerContext [\#316](https://github.com/kubernetes/ingress-gce/pull/316) ([nicksardo](https://github.com/nicksardo))
- Support caching in echoserver [\#315](https://github.com/kubernetes/ingress-gce/pull/315) ([rramkumar1](https://github.com/rramkumar1))
- Add server version to echo [\#314](https://github.com/kubernetes/ingress-gce/pull/314) ([nicksardo](https://github.com/nicksardo))
- Moved BackendService composite type to its own package [\#313](https://github.com/kubernetes/ingress-gce/pull/313) ([rramkumar1](https://github.com/rramkumar1))
- Simple web server for testing ingress-gce features [\#312](https://github.com/kubernetes/ingress-gce/pull/312) ([nicksardo](https://github.com/nicksardo))
- Add beta backend service support to composite type [\#310](https://github.com/kubernetes/ingress-gce/pull/310) ([MrHohn](https://github.com/MrHohn))
- Add version and gitcommit to the e2e test [\#309](https://github.com/kubernetes/ingress-gce/pull/309) ([bowei](https://github.com/bowei))
- Use cloud ResourceID for URL parsing, generation, and comparison [\#308](https://github.com/kubernetes/ingress-gce/pull/308) ([nicksardo](https://github.com/nicksardo))
- Revert "Use cloud ResourceID for URL parsing and generation" [\#307](https://github.com/kubernetes/ingress-gce/pull/307) ([nicksardo](https://github.com/nicksardo))
- Add skeleton for the e2e tests [\#306](https://github.com/kubernetes/ingress-gce/pull/306) ([bowei](https://github.com/bowei))
- Store feature names in backend service description [\#305](https://github.com/kubernetes/ingress-gce/pull/305) ([MrHohn](https://github.com/MrHohn))
- Use cloud ResourceID for URL parsing and generation [\#304](https://github.com/kubernetes/ingress-gce/pull/304) ([nicksardo](https://github.com/nicksardo))
- Use generated mocks to implement unit tests for pkg/backends [\#303](https://github.com/kubernetes/ingress-gce/pull/303) ([rramkumar1](https://github.com/rramkumar1))
- Split l7.go into resource-specific files \(no logic changes\) [\#302](https://github.com/kubernetes/ingress-gce/pull/302) ([nicksardo](https://github.com/nicksardo))
- IAP + CDN [\#301](https://github.com/kubernetes/ingress-gce/pull/301) ([rramkumar1](https://github.com/rramkumar1))
- Add IngressValidator and supporting utilities [\#300](https://github.com/kubernetes/ingress-gce/pull/300) ([bowei](https://github.com/bowei))
- Slight refactor of controller context to include both NEG & BackendConfig switches [\#299](https://github.com/kubernetes/ingress-gce/pull/299) ([rramkumar1](https://github.com/rramkumar1))
- Update vendor for gce provider [\#293](https://github.com/kubernetes/ingress-gce/pull/293) ([MrHohn](https://github.com/MrHohn))
- Add support for security policy [\#291](https://github.com/kubernetes/ingress-gce/pull/291) ([MrHohn](https://github.com/MrHohn))
- Add custom validation for BackendConfig + hook validation into Translator [\#289](https://github.com/kubernetes/ingress-gce/pull/289) ([rramkumar1](https://github.com/rramkumar1))
- Fix bug with ensuring BackendService settings + health checks [\#288](https://github.com/kubernetes/ingress-gce/pull/288) ([rramkumar1](https://github.com/rramkumar1))
- Add SECURITY\_CONTACTS file [\#287](https://github.com/kubernetes/ingress-gce/pull/287) ([nicksardo](https://github.com/nicksardo))
- Bake backend config into ServicePort [\#285](https://github.com/kubernetes/ingress-gce/pull/285) ([MrHohn](https://github.com/MrHohn))
- Add annotation for exposing NEGs [\#284](https://github.com/kubernetes/ingress-gce/pull/284) ([agau4779](https://github.com/agau4779))
- Make sure structs in OpenAPI spec are serialized with 'type: object' [\#283](https://github.com/kubernetes/ingress-gce/pull/283) ([rramkumar1](https://github.com/rramkumar1))
- Define security policy API in BackendConfig [\#281](https://github.com/kubernetes/ingress-gce/pull/281) ([MrHohn](https://github.com/MrHohn))
- Refactor pkg/backends to use new BackendService composite type [\#280](https://github.com/kubernetes/ingress-gce/pull/280) ([rramkumar1](https://github.com/rramkumar1))
- Ensure Load Balancer using IG links instead of IG compute object [\#279](https://github.com/kubernetes/ingress-gce/pull/279) ([rramkumar1](https://github.com/rramkumar1))
- Update documentation to include multiple-TLS support. [\#278](https://github.com/kubernetes/ingress-gce/pull/278) ([rramkumar1](https://github.com/rramkumar1))
- Update gce provider in vendor [\#277](https://github.com/kubernetes/ingress-gce/pull/277) ([MrHohn](https://github.com/MrHohn))
- fake backendservices save alpha objects by default [\#276](https://github.com/kubernetes/ingress-gce/pull/276) ([agau4779](https://github.com/agau4779))
- TranslateIngress changes [\#275](https://github.com/kubernetes/ingress-gce/pull/275) ([nicksardo](https://github.com/nicksardo))
- Fix BackendConfigKey to use beta [\#273](https://github.com/kubernetes/ingress-gce/pull/273) ([MrHohn](https://github.com/MrHohn))
- Add simple validation for BackendConfig using OpenAPI schema generation [\#272](https://github.com/kubernetes/ingress-gce/pull/272) ([rramkumar1](https://github.com/rramkumar1))
- BackendConfig v1alpha1-\>v1beta1 [\#271](https://github.com/kubernetes/ingress-gce/pull/271) ([MrHohn](https://github.com/MrHohn))
- Pass service/port tuple separate from ServicePort [\#270](https://github.com/kubernetes/ingress-gce/pull/270) ([nicksardo](https://github.com/nicksardo))
- Add event handlers for BackendConfig [\#268](https://github.com/kubernetes/ingress-gce/pull/268) ([rramkumar1](https://github.com/rramkumar1))
- Fix typo in faq [\#267](https://github.com/kubernetes/ingress-gce/pull/267) ([ChristianAlexander](https://github.com/ChristianAlexander))
- Small aesthetic fixes to code base. [\#266](https://github.com/kubernetes/ingress-gce/pull/266) ([rramkumar1](https://github.com/rramkumar1))
- Introduce configuration for IAP & CDN into BackendConfig spec [\#265](https://github.com/kubernetes/ingress-gce/pull/265) ([rramkumar1](https://github.com/rramkumar1))
- Condense health checkers into one health checker for all backends. [\#264](https://github.com/kubernetes/ingress-gce/pull/264) ([rramkumar1](https://github.com/rramkumar1))
- BackendService naming for NEG backend services & healthchecks [\#262](https://github.com/kubernetes/ingress-gce/pull/262) ([nicksardo](https://github.com/nicksardo))
- Update healthcheck docs regarding containerPort [\#260](https://github.com/kubernetes/ingress-gce/pull/260) ([sonu27](https://github.com/sonu27))
- Use leader election to prevent multiple controllers running [\#258](https://github.com/kubernetes/ingress-gce/pull/258) ([nicksardo](https://github.com/nicksardo))
- Merge the logic of ToUrlMap\(\) and IngressToNodePorts\(\) [\#257](https://github.com/kubernetes/ingress-gce/pull/257) ([rramkumar1](https://github.com/rramkumar1))
- Minor cleanup to docs and examples [\#256](https://github.com/kubernetes/ingress-gce/pull/256) ([nicksardo](https://github.com/nicksardo))
- Refactor gceurlmap to a struct representation [\#254](https://github.com/kubernetes/ingress-gce/pull/254) ([rramkumar1](https://github.com/rramkumar1))
- Add utils for retrieving backendconfigs for service \(and reversely\) [\#252](https://github.com/kubernetes/ingress-gce/pull/252) ([MrHohn](https://github.com/MrHohn))
- Re-vendor K8s to ~1.11.0-alpha.2 [\#248](https://github.com/kubernetes/ingress-gce/pull/248) ([nicksardo](https://github.com/nicksardo))
- Add util functions for backendConfig annotation [\#247](https://github.com/kubernetes/ingress-gce/pull/247) ([MrHohn](https://github.com/MrHohn))
- Condense backendPool and defaultBackendPool [\#242](https://github.com/kubernetes/ingress-gce/pull/242) ([rramkumar1](https://github.com/rramkumar1))
- Rename serviceextension -\> backendconfig [\#240](https://github.com/kubernetes/ingress-gce/pull/240) ([MrHohn](https://github.com/MrHohn))
- Final changes to make MCI controller work [\#238](https://github.com/kubernetes/ingress-gce/pull/238) ([rramkumar1](https://github.com/rramkumar1))
- Add an interface to manage target resources [\#237](https://github.com/kubernetes/ingress-gce/pull/237) ([rramkumar1](https://github.com/rramkumar1))
- Add code for building cluster client and other resources. [\#236](https://github.com/kubernetes/ingress-gce/pull/236) ([rramkumar1](https://github.com/rramkumar1))
- Small addition to ClusterServiceMapper interface [\#235](https://github.com/kubernetes/ingress-gce/pull/235) ([rramkumar1](https://github.com/rramkumar1))
- Add ability for MCI controller to enqueue ingresses [\#234](https://github.com/kubernetes/ingress-gce/pull/234) ([rramkumar1](https://github.com/rramkumar1))
- First pass at an interface to manage informers [\#233](https://github.com/kubernetes/ingress-gce/pull/233) ([rramkumar1](https://github.com/rramkumar1))
- Add support for logging latest commit hash of GLBC build being used [\#232](https://github.com/kubernetes/ingress-gce/pull/232) ([rramkumar1](https://github.com/rramkumar1))
## [v1.1.2](https://github.com/kubernetes/ingress-gce/tree/v1.1.2) (2018-04-18)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.1.1...v1.1.2)
**Merged pull requests:**
- Add support for logging latest commit hash of GLBC build being used [\#231](https://github.com/kubernetes/ingress-gce/pull/231) ([rramkumar1](https://github.com/rramkumar1))
- Add support for logging latest commit hash of GLBC build being used [\#230](https://github.com/kubernetes/ingress-gce/pull/230) ([rramkumar1](https://github.com/rramkumar1))
- Bump glbc.yaml to 1.1.1 [\#228](https://github.com/kubernetes/ingress-gce/pull/228) ([nicksardo](https://github.com/nicksardo))
- Add support for logging latest commit hash of GLBC build being used [\#226](https://github.com/kubernetes/ingress-gce/pull/226) ([rramkumar1](https://github.com/rramkumar1))
- Remove dead code for e2e testing. We do all e2e testing through k/k now [\#225](https://github.com/kubernetes/ingress-gce/pull/225) ([rramkumar1](https://github.com/rramkumar1))
- Update changelog for 1.1.1 [\#224](https://github.com/kubernetes/ingress-gce/pull/224) ([nicksardo](https://github.com/nicksardo))
- Integrate ClusterServiceMapper into translator. [\#223](https://github.com/kubernetes/ingress-gce/pull/223) ([rramkumar1](https://github.com/rramkumar1))
- Update annotations.md [\#221](https://github.com/kubernetes/ingress-gce/pull/221) ([buzzedword](https://github.com/buzzedword))
## [v1.1.1](https://github.com/kubernetes/ingress-gce/tree/v1.1.1) (2018-04-16)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.1.0...v1.1.1)
**Merged pull requests:**
- Set glog levels in loadbalancer pool & fix markdown [\#218](https://github.com/kubernetes/ingress-gce/pull/218) ([nicksardo](https://github.com/nicksardo))
- Bootstrap multi-cluster controller [\#217](https://github.com/kubernetes/ingress-gce/pull/217) ([nicksardo](https://github.com/nicksardo))
- Cherrypick: Fix multiple secrets with same certificate [\#216](https://github.com/kubernetes/ingress-gce/pull/216) ([nicksardo](https://github.com/nicksardo))
- Code to setup removal of ServicePort logic out of translator [\#214](https://github.com/kubernetes/ingress-gce/pull/214) ([rramkumar1](https://github.com/rramkumar1))
- Fix multiple secrets with same certificate [\#213](https://github.com/kubernetes/ingress-gce/pull/213) ([nicksardo](https://github.com/nicksardo))
- Add multi-cluster flag [\#212](https://github.com/kubernetes/ingress-gce/pull/212) ([nicksardo](https://github.com/nicksardo))
- Split sync up [\#211](https://github.com/kubernetes/ingress-gce/pull/211) ([nicksardo](https://github.com/nicksardo))
- Update post-release-steps.md [\#210](https://github.com/kubernetes/ingress-gce/pull/210) ([rramkumar1](https://github.com/rramkumar1))
- Refactor translator.ToURLMap to not re-fetch backend services [\#207](https://github.com/kubernetes/ingress-gce/pull/207) ([rramkumar1](https://github.com/rramkumar1))
- Introduce MultiClusterContext as part of ControllerContext [\#203](https://github.com/kubernetes/ingress-gce/pull/203) ([rramkumar1](https://github.com/rramkumar1))
- Vendor in Cluster Registry code [\#202](https://github.com/kubernetes/ingress-gce/pull/202) ([rramkumar1](https://github.com/rramkumar1))
- Add ServiceExtension CRD lifecycle management and empty spec definition [\#163](https://github.com/kubernetes/ingress-gce/pull/163) ([MrHohn](https://github.com/MrHohn))
## [v1.1.0](https://github.com/kubernetes/ingress-gce/tree/v1.1.0) (2018-04-11)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.0.1...v1.1.0)
**Closed issues:**
- Some links in 'ingress' repo GCE release notes are 404 [\#30](https://github.com/kubernetes/ingress-gce/issues/30)
**Merged pull requests:**
- Remove duplicate nodeport translation [\#206](https://github.com/kubernetes/ingress-gce/pull/206) ([nicksardo](https://github.com/nicksardo))
- Start changelog file [\#205](https://github.com/kubernetes/ingress-gce/pull/205) ([nicksardo](https://github.com/nicksardo))
- Change naming of SSL certs [\#200](https://github.com/kubernetes/ingress-gce/pull/200) ([nicksardo](https://github.com/nicksardo))
- Ensure only needed nodeports on instance group on ingress sync [\#199](https://github.com/kubernetes/ingress-gce/pull/199) ([MrHohn](https://github.com/MrHohn))
- Ensure .go/cache in build [\#198](https://github.com/kubernetes/ingress-gce/pull/198) ([MrHohn](https://github.com/MrHohn))
- Support for multiple TLS certificates [\#195](https://github.com/kubernetes/ingress-gce/pull/195) ([rramkumar1](https://github.com/rramkumar1))
- Update vendor/ to support multiple TLS certificates interface [\#193](https://github.com/kubernetes/ingress-gce/pull/193) ([bowei](https://github.com/bowei))
- Bump golang build image to 1.10 [\#192](https://github.com/kubernetes/ingress-gce/pull/192) ([nicksardo](https://github.com/nicksardo))
- Small changes to deploy/glbc/README [\#191](https://github.com/kubernetes/ingress-gce/pull/191) ([rramkumar1](https://github.com/rramkumar1))
- Update glbc manifest to v1.0.1 [\#190](https://github.com/kubernetes/ingress-gce/pull/190) ([nicksardo](https://github.com/nicksardo))
- Satisfy golang 1.10 vetting [\#189](https://github.com/kubernetes/ingress-gce/pull/189) ([nicksardo](https://github.com/nicksardo))
- Add some documentation on post-release TODO's [\#188](https://github.com/kubernetes/ingress-gce/pull/188) ([rramkumar1](https://github.com/rramkumar1))
- Add Ingress HTTP2 feature gate [\#161](https://github.com/kubernetes/ingress-gce/pull/161) ([agau4779](https://github.com/agau4779))
## [v1.0.1](https://github.com/kubernetes/ingress-gce/tree/v1.0.1) (2018-04-03)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v1.0.0...v1.0.1)
**Closed issues:**
- Test Failing: \[sig-network\] Loadbalancing: L7 GCE \[Slow\] \[Feature:Ingress\] multicluster ingress should get instance group annotation [\#185](https://github.com/kubernetes/ingress-gce/issues/185)
- ingress controller should only manage instance groups for multicluster ingress [\#182](https://github.com/kubernetes/ingress-gce/issues/182)
- Missing ListUrlMaps from LoadBalancers interface [\#162](https://github.com/kubernetes/ingress-gce/issues/162)
- `dep ensure` is broken [\#155](https://github.com/kubernetes/ingress-gce/issues/155)
- Duplicate patch from PR \#148 into main repo. [\#154](https://github.com/kubernetes/ingress-gce/issues/154)
- ingress-gce major refactor and performance fixes [\#152](https://github.com/kubernetes/ingress-gce/issues/152)
**Merged pull requests:**
- Cherry-pick checkpoint changes to 1.0 [\#187](https://github.com/kubernetes/ingress-gce/pull/187) ([nicksardo](https://github.com/nicksardo))
- Fix sync of multi-cluster ingress [\#183](https://github.com/kubernetes/ingress-gce/pull/183) ([nicksardo](https://github.com/nicksardo))
- Fix path default-http-backend.yaml [\#180](https://github.com/kubernetes/ingress-gce/pull/180) ([atotto](https://github.com/atotto))
- Updating FakeLoadBalancers.Delete to return NotFound when appropriate [\#178](https://github.com/kubernetes/ingress-gce/pull/178) ([nikhiljindal](https://github.com/nikhiljindal))
- Minor spelling and capitalization changes [\#177](https://github.com/kubernetes/ingress-gce/pull/177) ([nicksardo](https://github.com/nicksardo))
- Checkpoint\(\) takes a single LB rather than a list of LBs [\#170](https://github.com/kubernetes/ingress-gce/pull/170) ([bowei](https://github.com/bowei))
- Use given name rather than regenerating it in UrlMap fake [\#169](https://github.com/kubernetes/ingress-gce/pull/169) ([nikhiljindal](https://github.com/nikhiljindal))
- Update testing.md [\#168](https://github.com/kubernetes/ingress-gce/pull/168) ([AdamDang](https://github.com/AdamDang))
- Adding ListUrlMaps to LoadBalancers interface [\#165](https://github.com/kubernetes/ingress-gce/pull/165) ([nikhiljindal](https://github.com/nikhiljindal))
- Fix formatting error in docs/README.md [\#153](https://github.com/kubernetes/ingress-gce/pull/153) ([rramkumar1](https://github.com/rramkumar1))
- Ingress HTTP/2 Support [\#146](https://github.com/kubernetes/ingress-gce/pull/146) ([agau4779](https://github.com/agau4779))
## [v1.0.0](https://github.com/kubernetes/ingress-gce/tree/v1.0.0) (2018-03-16)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v0.9.8-alpha.2...v1.0.0)
**Closed issues:**
- sitemap endpoint? [\#145](https://github.com/kubernetes/ingress-gce/issues/145)
- "internal" ingresses [\#138](https://github.com/kubernetes/ingress-gce/issues/138)
- Multiple Healthcheck Requests from GCP L7 [\#137](https://github.com/kubernetes/ingress-gce/issues/137)
- Issue closed without comment [\#134](https://github.com/kubernetes/ingress-gce/issues/134)
- Document ingress.gcp.kubernetes.io/pre-shared-cert annotation [\#52](https://github.com/kubernetes/ingress-gce/issues/52)
- GCE: WebSocket: connection is broken CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: "", type: "close", …} [\#36](https://github.com/kubernetes/ingress-gce/issues/36)
- GCE: respect static-ip assignment via update [\#26](https://github.com/kubernetes/ingress-gce/issues/26)
- GCE cloud: add a kube-specific header to GCE API calls [\#22](https://github.com/kubernetes/ingress-gce/issues/22)
- e2e test leaves garbage around [\#21](https://github.com/kubernetes/ingress-gce/issues/21)
- GLBC ingress: only handle annotated ingress [\#20](https://github.com/kubernetes/ingress-gce/issues/20)
- Point gce ingress health checks at the node for onlylocal services [\#17](https://github.com/kubernetes/ingress-gce/issues/17)
**Merged pull requests:**
- Fix copyright in deploy/glbc/script.sh [\#151](https://github.com/kubernetes/ingress-gce/pull/151) ([rramkumar1](https://github.com/rramkumar1))
- Cleanup some unused files [\#150](https://github.com/kubernetes/ingress-gce/pull/150) ([rramkumar1](https://github.com/rramkumar1))
- Initial implementation for ingress rate limiting [\#148](https://github.com/kubernetes/ingress-gce/pull/148) ([rramkumar1](https://github.com/rramkumar1))
- update: s\_k/ingress-k/ingress-gce\_ in annotations.md [\#147](https://github.com/kubernetes/ingress-gce/pull/147) ([G-Harmon](https://github.com/G-Harmon))
- Adding information about using GCP SSL certs for frontend HTTPS [\#144](https://github.com/kubernetes/ingress-gce/pull/144) ([nikhiljindal](https://github.com/nikhiljindal))
- Add instructions and a tool for people who want to try out a new version of the ingress controller before it is released. [\#140](https://github.com/kubernetes/ingress-gce/pull/140) ([rramkumar1](https://github.com/rramkumar1))
- fix event message for attach/detach NEs [\#139](https://github.com/kubernetes/ingress-gce/pull/139) ([freehan](https://github.com/freehan))
## [v0.9.8-alpha.2](https://github.com/kubernetes/ingress-gce/tree/v0.9.8-alpha.2) (2018-02-12)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v0.9.8-alpha.1...v0.9.8-alpha.2)
**Closed issues:**
- \[GLBC\] Surface event when front-end not created [\#41](https://github.com/kubernetes/ingress-gce/issues/41)
**Merged pull requests:**
- Verbose flag: set v=3 [\#135](https://github.com/kubernetes/ingress-gce/pull/135) ([nicksardo](https://github.com/nicksardo))
## [v0.9.8-alpha.1](https://github.com/kubernetes/ingress-gce/tree/v0.9.8-alpha.1) (2018-02-09)
[Full Changelog](https://github.com/kubernetes/ingress-gce/compare/v0.9.7...v0.9.8-alpha.1)
**Closed issues:**
- Ingress name has random trailing hash in events [\#130](https://github.com/kubernetes/ingress-gce/issues/130)
- Support for rewrite-target annotation [\#124](https://github.com/kubernetes/ingress-gce/issues/124)
- Ingress without default backend explicitly configured doesn't work at all [\#110](https://github.com/kubernetes/ingress-gce/issues/110)
- Wrong health check with end-to-end https scheme [\#105](https://github.com/kubernetes/ingress-gce/issues/105)
- Large file upload fails after 30 seconds [\#102](https://github.com/kubernetes/ingress-gce/issues/102)
- Ingress E2E setup is breaking [\#93](https://github.com/kubernetes/ingress-gce/issues/93)
- examples/websocket/server.go: concurrent write to socket [\#77](https://github.com/kubernetes/ingress-gce/issues/77)
- Invalid value for field 'namedPorts\[\*\].port': '0' [\#75](https://github.com/kubernetes/ingress-gce/issues/75)
- support for proper health checks [\#65](https://github.com/kubernetes/ingress-gce/issues/65)
- support for session affinity [\#64](https://github.com/kubernetes/ingress-gce/issues/64)
- TLS certificate validations causes tls creation to fail [\#61](https://github.com/kubernetes/ingress-gce/issues/61)
- GLBC: Ingress can't be properly created: Insufficient Permission [\#49](https://github.com/kubernetes/ingress-gce/issues/49)
- GLBC: Ingress can't be properly created: Insufficient Permission [\#47](https://github.com/kubernetes/ingress-gce/issues/47)
- GLBC: Each ingress sync updates resources for all ingresses [\#44](https://github.com/kubernetes/ingress-gce/issues/44)
- Disabled HttpLoadBalancing, unable to create Ingress with glbc:0.9.1 [\#29](https://github.com/kubernetes/ingress-gce/issues/29)
- \[GLBC\] Expose GCE backend parameters in Ingress object API [\#27](https://github.com/kubernetes/ingress-gce/issues/27)
- High glbc CPU usage [\#25](https://github.com/kubernetes/ingress-gce/issues/25)
- Specify IP addresses the Ingress controller is listening on [\#24](https://github.com/kubernetes/ingress-gce/issues/24)
- Add e2e testing [\#16](https://github.com/kubernetes/ingress-gce/issues/16)
**Merged pull requests:**
- Emit event on RuntimeInfo error [\#133](https://github.com/kubernetes/ingress-gce/pull/133) ([MrHohn](https://github.com/MrHohn))
- Periodic resync [\#129](https://github.com/kubernetes/ingress-gce/pull/129) ([nicksardo](https://github.com/nicksardo))
- Rename Port to NodePort [\#128](https://github.com/kubernetes/ingress-gce/pull/128) ([nicksardo](https://github.com/nicksardo))
- Add some documentation for how to run e2e tests locally. [\#126](https://github.com/kubernetes/ingress-gce/pull/126) ([rramkumar1](https://github.com/rramkumar1))
- sync node on node status change [\#125](https://github.com/kubernetes/ingress-gce/pull/125) ([freehan](https://github.com/freehan))
- Sync ingress-specific backends and minor logging changes [\#123](https://github.com/kubernetes/ingress-gce/pull/123) ([nicksardo](https://github.com/nicksardo))
- Firewall Sync: Allow entire nodeport range [\#122](https://github.com/kubernetes/ingress-gce/pull/122) ([nicksardo](https://github.com/nicksardo))
- Introduce flag endpoint [\#121](https://github.com/kubernetes/ingress-gce/pull/121) ([nicksardo](https://github.com/nicksardo))
- fix typo [\#120](https://github.com/kubernetes/ingress-gce/pull/120) ([bowei](https://github.com/bowei))
- Always set -logtostderr \(this matches the original behavior\) [\#119](https://github.com/kubernetes/ingress-gce/pull/119) ([bowei](https://github.com/bowei))
- Code review comments [\#117](https://github.com/kubernetes/ingress-gce/pull/117) ([bowei](https://github.com/bowei))
- Remove some vars from make push-e2e target [\#115](https://github.com/kubernetes/ingress-gce/pull/115) ([rramkumar1](https://github.com/rramkumar1))
- Update README.md to point to example [\#114](https://github.com/kubernetes/ingress-gce/pull/114) ([zrosenbauer](https://github.com/zrosenbauer))
- Update vendor [\#113](https://github.com/kubernetes/ingress-gce/pull/113) ([bowei](https://github.com/bowei))
- Emit event on TLS errors [\#112](https://github.com/kubernetes/ingress-gce/pull/112) ([MrHohn](https://github.com/MrHohn))
- Add unit test to verify pre-shared cert retention [\#111](https://github.com/kubernetes/ingress-gce/pull/111) ([MrHohn](https://github.com/MrHohn))
- Remove .travis.yml [\#108](https://github.com/kubernetes/ingress-gce/pull/108) ([rramkumar1](https://github.com/rramkumar1))
- Add unit test for the generated GCE config reader func [\#107](https://github.com/kubernetes/ingress-gce/pull/107) ([MrHohn](https://github.com/MrHohn))
- Sync one ingress [\#106](https://github.com/kubernetes/ingress-gce/pull/106) ([bowei](https://github.com/bowei))
- Remove the duplicate health check example and restructure example folder [\#104](https://github.com/kubernetes/ingress-gce/pull/104) ([MrHohn](https://github.com/MrHohn))
- Modify VERSION to use "latest" in push-e2e target [\#103](https://github.com/kubernetes/ingress-gce/pull/103) ([rramkumar1](https://github.com/rramkumar1))
- Cleanup [\#101](https://github.com/kubernetes/ingress-gce/pull/101) ([bowei](https://github.com/bowei))
- Deprecate --use-real-cloud and --verbose flags [\#100](https://github.com/kubernetes/ingress-gce/pull/100) ([bowei](https://github.com/bowei))
- Fix push-e2e make rule [\#99](https://github.com/kubernetes/ingress-gce/pull/99) ([rramkumar1](https://github.com/rramkumar1))
- Fix gce [\#98](https://github.com/kubernetes/ingress-gce/pull/98) ([bowei](https://github.com/bowei))
- Cleanup [\#97](https://github.com/kubernetes/ingress-gce/pull/97) ([bowei](https://github.com/bowei))
- Update vendor [\#96](https://github.com/kubernetes/ingress-gce/pull/96) ([bowei](https://github.com/bowei))
- Minor cleanup [\#92](https://github.com/kubernetes/ingress-gce/pull/92) ([bowei](https://github.com/bowei))
- Translator [\#91](https://github.com/kubernetes/ingress-gce/pull/91) ([bowei](https://github.com/bowei))
- Move taskQueue to utils.PeriodicTaskQueue [\#90](https://github.com/kubernetes/ingress-gce/pull/90) ([bowei](https://github.com/bowei))
- Delete unreferenced constants [\#89](https://github.com/kubernetes/ingress-gce/pull/89) ([bowei](https://github.com/bowei))
- Add e2e make rule [\#88](https://github.com/kubernetes/ingress-gce/pull/88) ([rramkumar1](https://github.com/rramkumar1))
- Add code-of-conduct.md [\#86](https://github.com/kubernetes/ingress-gce/pull/86) ([spiffxp](https://github.com/spiffxp))
- Minor fixes to example JS [\#85](https://github.com/kubernetes/ingress-gce/pull/85) ([nicksardo](https://github.com/nicksardo))
- Fixing typos in gce-tls example readme [\#84](https://github.com/kubernetes/ingress-gce/pull/84) ([nikhiljindal](https://github.com/nikhiljindal))
- Add build, coverage and report badges [\#82](https://github.com/kubernetes/ingress-gce/pull/82) ([MrHohn](https://github.com/MrHohn))
- Update websocket example [\#80](https://github.com/kubernetes/ingress-gce/pull/80) ([nicksardo](https://github.com/nicksardo))
- Add ListGlobalForwardingRules to the LoadBalancers interface. [\#78](https://github.com/kubernetes/ingress-gce/pull/78) ([G-Harmon](https://github.com/G-Harmon))
- Add ability to change prefix in the Namer [\#74](https://github.com/kubernetes/ingress-gce/pull/74) ([bowei](https://github.com/bowei))
- Add unit test for functions in namer [\#73](https://github.com/kubernetes/ingress-gce/pull/73) ([bowei](https://github.com/bowei))
- Move GetNamedPort to Namer [\#72](https://github.com/kubernetes/ingress-gce/pull/72) ([bowei](https://github.com/bowei))
- Centralize more of the naming of GCE resources [\#70](https://github.com/kubernetes/ingress-gce/pull/70) ([bowei](https://github.com/bowei))
- Removing non code test's dependency on testing package [\#69](https://github.com/kubernetes/ingress-gce/pull/69) ([nikhiljindal](https://github.com/nikhiljindal))
- Split namer into its own file [\#68](https://github.com/kubernetes/ingress-gce/pull/68) ([bowei](https://github.com/bowei))
- Rename OWNERS assignees: to approvers: [\#66](https://github.com/kubernetes/ingress-gce/pull/66) ([spiffxp](https://github.com/spiffxp))
- move neg annotation to annotations package [\#62](https://github.com/kubernetes/ingress-gce/pull/62) ([freehan](https://github.com/freehan))
- Extracting tlsloader into a separate package to enable reuse [\#59](https://github.com/kubernetes/ingress-gce/pull/59) ([nikhiljindal](https://github.com/nikhiljindal))
- Extracting out annotations to a separate package to allow reuse [\#58](https://github.com/kubernetes/ingress-gce/pull/58) ([nikhiljindal](https://github.com/nikhiljindal))
- Updating loadbalancer/fakes.go to return 404 [\#57](https://github.com/kubernetes/ingress-gce/pull/57) ([nikhiljindal](https://github.com/nikhiljindal))
- Updating backends/fakes to return 404 in the same way as all other fakes [\#56](https://github.com/kubernetes/ingress-gce/pull/56) ([nikhiljindal](https://github.com/nikhiljindal))
- revendor k8s cloud provider and its dependencies [\#54](https://github.com/kubernetes/ingress-gce/pull/54) ([freehan](https://github.com/freehan))
- Rename local var to reflect what it is. [\#53](https://github.com/kubernetes/ingress-gce/pull/53) ([G-Harmon](https://github.com/G-Harmon))
- K8s-NEG Integration [\#48](https://github.com/kubernetes/ingress-gce/pull/48) ([freehan](https://github.com/freehan))
- Update build [\#15](https://github.com/kubernetes/ingress-gce/pull/15) ([bowei](https://github.com/bowei))
- Update travis [\#12](https://github.com/kubernetes/ingress-gce/pull/12) ([bowei](https://github.com/bowei))
- PRE-NEG changes [\#11](https://github.com/kubernetes/ingress-gce/pull/11) ([freehan](https://github.com/freehan))
## [v0.9.7](https://github.com/kubernetes/ingress-gce/tree/v0.9.7) (2017-10-10)
**Merged pull requests:**
- Fix the glbc build by removing 'godeps' from command. [\#10](https://github.com/kubernetes/ingress-gce/pull/10) ([G-Harmon](https://github.com/G-Harmon))
- Get value of string pointer for log message [\#9](https://github.com/kubernetes/ingress-gce/pull/9) ([nicksardo](https://github.com/nicksardo))
- Release 0.9.7 [\#8](https://github.com/kubernetes/ingress-gce/pull/8) ([nicksardo](https://github.com/nicksardo))
- Stop ignoring test files and non-go files in vendor [\#7](https://github.com/kubernetes/ingress-gce/pull/7) ([nicksardo](https://github.com/nicksardo))
- Minor cleanup to instance group management [\#6](https://github.com/kubernetes/ingress-gce/pull/6) ([nicksardo](https://github.com/nicksardo))
- Move main.go to cmd/glbc [\#5](https://github.com/kubernetes/ingress-gce/pull/5) ([nicksardo](https://github.com/nicksardo))
- Migrate to dep [\#4](https://github.com/kubernetes/ingress-gce/pull/4) ([nicksardo](https://github.com/nicksardo))
- Fix issue when setting instance group named ports [\#3](https://github.com/kubernetes/ingress-gce/pull/3) ([nicksardo](https://github.com/nicksardo))
- Update repo to be GCE specific [\#2](https://github.com/kubernetes/ingress-gce/pull/2) ([nicksardo](https://github.com/nicksardo))
- Handle forbiddenError for XPN clusters by raising event [\#1](https://github.com/kubernetes/ingress-gce/pull/1) ([nicksardo](https://github.com/nicksardo))
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* | 113.98574 | 229 | 0.748694 | yue_Hant | 0.252884 |
8a35babc629b7937c96e8a76ca2d8f08c86c4dfd | 834 | md | Markdown | README.md | antik10ud/mymux | 25cc8c8af89738cc7e3848b626d04101bbebe6b9 | [
"MIT"
] | null | null | null | README.md | antik10ud/mymux | 25cc8c8af89738cc7e3848b626d04101bbebe6b9 | [
"MIT"
] | null | null | null | README.md | antik10ud/mymux | 25cc8c8af89738cc7e3848b626d04101bbebe6b9 | [
"MIT"
] | null | null | null | # myMux
NOT FOR PRODUCTION USE - WORK IN PROGRESS
Simple http router for go
handler := mymux.NewRouterTemplateHandler(myErrorHandler)
Custom path types
handler.RegisterType("caps", "[A-Z]{1,64}")
Add routes
echoRoute = handler.AppendRoute("GET", "/echo/Text:caps", mymux.Adapt(caps))
Define handlers
func caps(w http.ResponseWriter, r *http.Request) {
//get route vars
vars := mymux.GetVars(r)
text := vars["Text"]
//build resource urls with params
url := echoRoute.URL(mymux.URLVars{"Text": "OTHER"})
//return content
w.Write([]byte(fmt.Sprintf("You say %s, you can try %s ", text, url)))
}
func myErrorHandler(w http.ResponseWriter, status int, detail string) {
w.WriteHeader(status)
w.Write([]byte(detail))
}
| 21.947368 | 77 | 0.627098 | yue_Hant | 0.820859 |
8a366ba5b030922e73f851740360f97036d90912 | 5,485 | md | Markdown | papers/_posts/2021-03-26-cljournal-ryansql.md | kakaoenterprise/kakaoenterprise.github.io | 83cbf426a2f782e19fcd8f39c3872a05bdd69a92 | [
"Apache-2.0"
] | 15 | 2021-05-25T05:25:06.000Z | 2021-12-16T09:04:23.000Z | papers/_posts/2021-03-26-cljournal-ryansql.md | kakaoenterprise/kakaoenterprise.github.io | 83cbf426a2f782e19fcd8f39c3872a05bdd69a92 | [
"Apache-2.0"
] | 9 | 2021-06-21T02:03:23.000Z | 2021-08-31T02:47:15.000Z | papers/_posts/2021-03-26-cljournal-ryansql.md | kakaoenterprise/kakaoenterprise.github.io | 83cbf426a2f782e19fcd8f39c3872a05bdd69a92 | [
"Apache-2.0"
] | 3 | 2021-07-30T09:31:17.000Z | 2021-12-16T09:05:00.000Z | ---
layout: post
research-area: NLP
title: "RYANSQL: Recursively Applying Sketch-based Slot Fillings for Complex Text-to-SQL in Cross-Domain Databases"
slug: cljournal2021-ryansql
description: "중첩된 SELECT문을 좀 더 정확하게 생성하는 SPC 기법을 적용한 Text-to-SQL 알고리즘 'RYANSQL' 제안"
published-date: 2021-03-26
publisher: Computational Linguistics
authors:
- heuristic:카카오엔터프라이즈
- index:카카오엔터프라이즈
- jason:카카오엔터프라이즈
- 신동렬:성균관대학교
paper: https://direct.mit.edu/coli/article/47/2/309/98519/RYANSQL-Recursively-Applying-Sketch-based-Slot
code: https://github.com/kakaoenterprise/RYANSQL
tag:
- NLI2DB
- Text-to-SQL
---
스파이더 챌린지<sup>SPIDER Text-to-SQL Challenge</sup> 성과를 정리한 공동 연구 논문이 Computational Linguistics에 실렸습니다. 미국 예일대학교에서 주최한 스파이더 챌린지는 각종 데이터를 정리∙보관할 때 사용하는 데이터베이스와 자연어 형태의 사용자 질의가 주어졌을때, 이 질의문을 SQL<sup>Structured Query Language</sup>[^1]문으로 변환해주는 Text-to-SQL[^2] 알고리즘의 정확도를 평가합니다.
[^1]: 관계형 데이터베이스 관리를 위해 설계된 특수목적의 프로그래밍 언어
[^2]: NLI2DB<sup>natural language interface to databases</sup>라고도 부른다.
{% include image.html name="001.png" align="center" %}
<em class="center">[ 표 1 ] 주어진 자연어 문장과 데이터베이스를 이용해 SQL 문을 생성하는 예시</em>
자연어 질의문을 SQL 문으로 변환하는 데에는 스케치 기반 슬롯 채우기<sup>sketch-based Slot Filling</sup>가 주로 활용돼 왔습니다. SELECT[^3] 문에 몇 개의 열<sup>column</sup>을 입력해야 하는지, 어떤 열을 선택해야 하는지, 집계 함수<sup>aggregator</sup>[^4]로 무엇을 써야 하는지 등 판별해야 할 정보<sup>slot</sup>를 먼저 구분하고 나서, 각 정보의 값을 채워넣는 식입니다. 다만 이 방식으로는 쿼리 속에 또 다른 쿼리가 든 중첩 질의<sup>nested query</sup>를 생성하는 데 한계가 있습니다. SELECT 문의 개수가 정해지지 않아서 전체 설계도 자체를 그릴 수 없기 때문입니다.
[^3]: 테이블 전체 또는 일부 열과 행 값을 호출하는 명령어
[^4]: 값 집합에 대한 산술적인 계산(레코드의 수, 값의 합, 값의 평균, 최대값, 최소값)의 결과값을 출력한다.
공동 연구팀이 제안한 Text-to-SQL 알고리즘인 RYQNSQL<sup>Recursively Yielding Annotation Network for SQL</sup>은 대규모 영어 비라벨링 말뭉치를 사전학습한 언어 모델인 BERT에 자체 고안한 SPC<sup>Statement Position Code</sup> 기법을 적용했습니다. SPC는 슬롯을 채울 때 중첩된 SELECT문을 좀 더 정확하게 생성할 수 있도록 합니다. 실험 결과, 스파이더 벤치마크 데이터셋에 대해 현재 최고 성능의(SOTA)[^5] 모델보다 3.2%p 더 높은 58.2%의 정확도를 달성했습니다.
[^5]: 논문 제출 시점(2020년 4월) 최고 성능
카카오엔터프라이즈는 데이터의 스키마(테이블 이름, 열 이름)뿐만 아니라 실제 값도 활용하는 방식 등으로 자사 Text-to-SQL 알고리즘의 성능과 사용성을 높여 기업 데이터베이스 활용의 문턱을 낮추는 데 기여할 계획입니다.
<br/>
# Overall Architecture
Figure 1 shows the overall network architecture of the input encoder. The input encoder consists of five layers: Embedding layer, Embedding Encoder layer, Question-Column Alignment layer, Table Encoder layer, and Question-Table Alignment layer. Table 1 shows the proposed sketch for a SELECT statement. The sketch-based slot-filling decoder predicts values for slots of the proposed sketch, as well as the number of slots.
{% include image.html name="002.png" align="center" %}
<em class="center">[ Figure 1 ] Network architecture of the proposed input encoder. S represents self-attention.</em>
{% include image.html name="003.png" width="80%" align="center" %}
<em>[ table 1 ] Proposed sketch for a SELECT statement. $TBL and $COL represent a table and a column, respectively. $AGG is one of {none, max, min, count, sum, avg}, $ARI is one of the arithmetic operators {none, -, +, *, / }, and $COND is one of the conditional operators {between, =, >, <, >=, <=, !=, in, like, is, exists}. $DIST and $NOT are boolean variables representing the existence of keywords DISTINCT and NOT, respectively. $ORD is a binary value for keywords ASC/DESC, and $CONJ is one of conjunctions {AND, OR}. $VAL is the value for WHERE/HAVING condition; $SEL represents the slot for another SELECT statement.</em>
<br/>
# Experiments
Table 2 shows that the proposed system RYANSQL improves the previous sketch-based slot filling system RCSQL by a large margin of 15% on the dev set. Note that the RCSQL fine-tuned another well known pretrained language model ELMo. With the use of BERT, among the systems without database content, the proposed systems (RYANSQL + BERT and RYANSQL v2 + BERT) outperforms the previous state-of-the-art by 2.5% and 4.9% respectively on the hidden test dataset. The proposed system still shows competitive results compared to the systems using database content; RATSQL v3 + BERT outperforms the proposed system by better aligning user questions and database schemas using database content.
{% include image.html name="005.png" width="90%" align="center" %}
<em class="center">[ Table 2 ] Evaluation results of the proposed systems and other state-of-the-art systems.</em>
We evaluated the proposed models on the CSpider dataset. CSpider is a chinese-translated version of the Spider benchmark. Only the question of the spider dataset is translated; database table names and column names remain as English. Evaluation on the CSpider dataset will show if the proposed model could be applied on the different languages, even when the question language and database schema language are different. To handle the case, we used multilingual BERT, which has the same network architecture with BERT-base but is trained using multilingual corpus.
The results are shown in Table 3. Compared to the exact matching accuracy 51.4% of RYANSQL + BERT-base on Spider dataset, the multilingual version shows 10% lower accuracy on dev set, but still shows comparable results to other state-of-the-art systems which are designed for CSpider dataset. Our proposed system showed 34.7% test accuracy on the test set, and ranked at 2nd place on the leaderboard.
{% include image.html name="005.png" width="90%" align="center" %}
<em class="center">[ Table 3 ] Evaluation results on CSpider dataset with other state-of-the-art systems.</em>
<br/>
-----
### Footnotes
| 75.136986 | 684 | 0.75588 | kor_Hang | 0.975026 |
8a36b0ad45c5f71320fe44ddb762211c82e5ded4 | 31,413 | md | Markdown | docs/database-engine/database-mirroring/database-mirroring-operating-modes.md | bingenortuzar/sql-docs.es-es | 9e13730ffa0f3ce461cce71bebf1a3ce188c80ad | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-04-26T21:26:08.000Z | 2021-04-26T21:26:08.000Z | docs/database-engine/database-mirroring/database-mirroring-operating-modes.md | jlporatti/sql-docs.es-es | 9b35d3acbb48253e1f299815df975f9ddaa5e9c7 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/database-engine/database-mirroring/database-mirroring-operating-modes.md | jlporatti/sql-docs.es-es | 9b35d3acbb48253e1f299815df975f9ddaa5e9c7 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Modos de funcionamiento de la creación de reflejo de la base de datos | Microsoft Docs
ms.custom: ''
ms.date: 03/14/2017
ms.prod: sql
ms.prod_service: high-availability
ms.reviewer: ''
ms.technology: high-availability
ms.topic: conceptual
helpviewer_keywords:
- database mirroring [SQL Server], operating modes
ms.assetid: f8a579c2-55d7-4278-8088-f1da1de5b2e6
author: MikeRayMSFT
ms.author: mikeray
ms.openlocfilehash: 6d39c2d0975f7be8a7e5481b9c91266528ae9ee2
ms.sourcegitcommit: b2464064c0566590e486a3aafae6d67ce2645cef
ms.translationtype: HT
ms.contentlocale: es-ES
ms.lasthandoff: 07/15/2019
ms.locfileid: "68006350"
---
# <a name="database-mirroring-operating-modes"></a>Modos de funcionamiento de la creación de reflejo de la base de datos
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md](../../includes/appliesto-ss-xxxx-xxxx-xxx-md.md)]
En este tema se describen los modos de funcionamiento sincrónico y asincrónico para las sesiones de creación de reflejo de la base de datos.
> [!NOTE]
> Para obtener una introducción a la creación de reflejo de la base de datos, vea [Creación de reflejo de la base de datos (SQL Server)](../../database-engine/database-mirroring/database-mirroring-sql-server.md).
## <a name="TermsAndDefinitions"></a> Términos y definiciones
En esta sección se presenta una serie de términos que son esenciales para este tema.
Modo de alto rendimiento
La sesión de creación de reflejo de la base de datos funciona asincrónicamente y usa solo el servidor principal y el servidor reflejado. La única forma de conmutación de roles es el servicio forzado (con posible pérdida de datos).
modo Alta seguridad
La sesión de creación de reflejo de la base de datos funciona sincrónicamente y, de forma opcional, usa un testigo, así como el servidor principal y el servidor reflejado.
Seguridad de las transacciones
Propiedad de base de datos específica de la creación de reflejo que determina si una sesión de creación de reflejo de la base de datos funciona de forma sincrónica o asincrónica. Hay dos niveles de seguridad: FULL y OFF.
Testigo
Para su uso únicamente con el modo de alta seguridad, instancia opcional de SQL Server que habilita al servidor reflejado para que reconozca si se debe iniciar una conmutación automática por error. A diferencia de los dos asociados de conmutación por error, el testigo no sirve a la base de datos. El único rol del testigo es hacer posible la conmutación automática por error.
## <a name="asynchronous-database-mirroring-high-performance-mode"></a>Operación asincrónica de creación de reflejo de la base de datos (Modo de alto rendimiento)
En esta sección se describe cómo funciona la creación de reflejo de la base de datos asincrónica, cuándo es adecuado utilizar el modo de alto rendimiento y cómo responder si se produce un error en el servidor principal.
> [!NOTE]
> La mayoría de las ediciones de [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)] solo admiten la creación de reflejo de la base de datos sincrónica (“Solo seguridad completa”). Para más información sobre las ediciones que permiten totalmente crear reflejos de la base de datos, vea "Alta disponibilidad (AlwaysOn)" en [Ediciones y características admitidas de SQL Server 2016](../../sql-server/editions-and-supported-features-for-sql-server-2016.md).
Si la seguridad de las transacciones está configurada en OFF, la sesión de creación de reflejo de la base de datos funciona de forma asincrónica. La operación asincrónica solo admite el modo operativo de alto rendimiento. Este modo mejora el rendimiento a costa de la alta disponibilidad. El modo de alto rendimiento utiliza solamente el servidor principal y el servidor reflejado. Los problemas del servidor reflejado nunca afectan al servidor principal. Al perderse el servidor principal, la base de datos reflejada se marca como DISCONNECTED, pero está disponible como base de datos en espera activa.
El modo de alto rendimiento solo admite un formato de conmutación de roles: el servicio forzado (con posible pérdida de datos), que utiliza el servidor reflejado como servidor en estado de espera activa. El servicio forzado es una de las posibles respuestas a los errores del servidor principal. Dado que es posible la pérdida de datos, debe considerar otras alternativas antes de forzar el servicio en el servidor reflejado. Para obtener más información, vea [Responder ante los errores del servidor principal](#WhenPrincipalFails), más adelante en este tema.
En la siguiente ilustración se muestra la configuración de una sesión con el modo de alto rendimiento.
![Configuración de solo asociado de una sesión](../../database-engine/database-mirroring/media/dbm-high-performance-mode.gif "Configuración de solo asociado de una sesión")
En el modo de alto rendimiento, en cuanto el servidor principal envía el registro de una transacción al servidor reflejado, el servidor principal envía una confirmación al cliente, sin esperar una confirmación del servidor reflejado. Las transacciones se confirman sin esperar a que el servidor reflejado escriba el registro en el disco. La operación asincrónica permite que el servidor principal se ejecute con la mínima latencia de transacciones.
El servidor reflejado intenta hacer frente a las entradas de registro enviadas por el servidor principal. Sin embargo, la base de datos reflejada puede retrasarse un poco con respecto a la base de datos principal, aunque la diferencia entra ambas suele ser pequeña. No obstante, la diferencia puede ser considerable si el servidor principal soporta una gran carga de trabajo o el sistema del servidor reflejado se encuentra sobrecargado.
**En esta sección:**
- [Cuándo está indicado utilizar el modo de alto rendimiento](#WhenUseHighPerf)
- [El impacto de un testigo en el modo de alto rendimiento](#WitnessImpactOnHighPerf)
- [Responder ante los errores del servidor principal](#WhenPrincipalFails)
### <a name="WhenUseHighPerf"></a> Cuándo está indicado utilizar el modo de alto rendimiento
El modo de alto rendimiento puede resultar útil en un caso de recuperación de desastres en el que los servidores principal y reflejado se encuentran separados por una distancia considerable y no se desea que los pequeños errores afecten al servidor principal.
> [!NOTE]
> El trasvase de registros puede complementar a la creación de reflejo de la base de datos y es una alternativa conveniente a la creación asincrónica de reflejo de la base de datos. Para obtener información sobre las ventajas del trasvase de registros, vea [Soluciones de alta disponibilidad (SQL Server)](../../sql-server/failover-clusters/high-availability-solutions-sql-server.md). Para obtener información sobre cómo usar el trasvase de registros con la creación de reflejo de la base de datos, vea [Crear reflejo de la base de datos y trasvase de registros (SQL Server)](../../database-engine/database-mirroring/database-mirroring-and-log-shipping-sql-server.md).
### <a name="WitnessImpactOnHighPerf"></a> El impacto de un testigo en el modo de alto rendimiento
Si se utiliza Transact-SQL para configurar el modo de alto rendimiento, siempre que la propiedad SAFETY esté establecida en OFF, se recomienda encarecidamente que la propiedad WITNESS también se establezca en OFF. Un testigo puede coexistir con el modo de alto rendimiento, pero no proporciona ventaja alguna y genera riesgo.
Si el testigo está desconectado de la sesión y uno de los asociados se bloquea, la base de datos no estará disponible. Esto es así porque, aun cuando el modo de alto rendimiento no necesita un testigo, si se establece uno, la sesión requiere un quórum compuesto de dos o más instancias de servidor. Si la sesión pierde el quórum, no puede servir a la base de datos.
Cuando se establece un testigo en una sesión en modo de alto rendimiento, la aplicación de quórum implica que:
- Si se pierde el servidor reflejado, el servidor principal se debe conectar al testigo. De lo contrario, el servidor principal mantiene su base de datos sin conexión hasta que el testigo o el servidor reflejado vuelven a unirse a la sesión.
- Si se pierde el servidor principal, forzar el servicio en el servidor reflejado requiere que éste se conecte al testigo.
> [!NOTE]
> Para obtener información sobre los tipos de cuórum, vea [Cuórum: cómo un testigo afecta a la disponibilidad de la base de datos (creación de reflejo de la base de datos)](../../database-engine/database-mirroring/quorum-how-a-witness-affects-database-availability-database-mirroring.md).
### <a name="WhenPrincipalFails"></a> Responder ante los errores del servidor principal
Si se produce un error en el servidor principal, el propietario de la base de datos tiene varias opciones:
- Dejar la base de datos inactiva hasta que el servidor principal vuelva a estar disponible.
Si la base de datos principal y su registro de transacciones están intactos, esta opción conserva todas las transacciones confirmadas a costa de la disponibilidad.
- Detener la sesión de creación de reflejo de la base de datos, actualizar manualmente la base de datos y, después, iniciar una nueva sesión de creación de reflejo.
Si la base de datos principal se pierde pero el servidor principal sigue en funcionamiento, intente inmediatamente realizar una copia de seguridad del final del registro en la base de datos principal. Si la copia del final del registro se realiza correctamente, la mejor opción puede ser eliminar la creación de reflejo. Tras eliminar la creación de reflejo, puede restaurar el registro en la base de datos reflejada anterior, que conserva todos los datos.
> [!NOTE]
> Si no se puede realizar la copia del final del registro y no puede esperar a que el servidor principal se recupere, considere la posibilidad de forzar el servicio, que ofrece la ventaja de mantener el estado de la sesión.
- Forzar el servicio (con posible pérdida de datos) en el servidor reflejado.
El servicio forzado es estrictamente un método de recuperación de desastres y no se debe utilizar demasiado a menudo. Solo es posible forzar el servicio si el servidor principal está inactivo, la sesión es asincrónica (la seguridad de transacciones está configurada en OFF) y la sesión no tiene un testigo (la propiedad WITNESS está configurada en OFF) o el testigo se ha conectado al servidor reflejado (esto es, hay quórum).
Al forzar el servicio, el servidor reflejado asume el rol de servidor principal y ofrece su copia de la base de datos a los clientes. Una vez forzado el servicio, los registros de transacciones que el servidor principal no haya enviado todavía al servidor reflejado se pierden. Por lo tanto, el servicio forzado debe limitarse a situaciones en las que sea aceptable la posible pérdida de datos y sea crucial la disponibilidad inmediata de la base de datos. Para obtener información sobre cómo funciona el servicio forzado y las prácticas recomendadas para su uso, vea [Conmutación de roles durante una sesión de creación de reflejo de la base de datos (SQL Server)](../../database-engine/database-mirroring/role-switching-during-a-database-mirroring-session-sql-server.md).
## <a name="Sync"></a> Creación de reflejo sincrónico de la base de datos (modo de alta seguridad)
En esta sección se describe cómo funciona la creación de reflejo de la base de datos sincrónica, incluidos los modos de alta seguridad alternativos (con y sin conmutación automática por error), y contiene información sobre el rol del testigo en la conmutación automática por error.
Cuando la seguridad de las transacciones se define como FULL, la sesión de creación de reflejo de la base de datos se ejecuta en modo de alta seguridad y funciona de forma sincrónica después de una fase inicial de sincronización. En esta sección se describen los detalles de las sesiones de creación de reflejo de la base de datos que están configuradas para el funcionamiento sincrónico.
Para que una sesión funcione de forma sincrónica, el servidor reflejado debe sincronizar la base de datos reflejada con la base de datos principal. Cuando la sesión se inicia, el servidor principal comienza a enviar su registro activo al servidor reflejado. El servidor reflejado escribe todos los registros de entrada en el disco lo antes posible. Las bases de datos se sincronizan cuando todos los registros recibidos se escriben en el disco. Las bases de datos se sincronizan siempre y cuando los asociados permanezcan en comunicación.
> [!NOTE]
> Utilice la clase de eventos **Database Mirroring State Change** para supervisar los cambios de estado en una sesión de creación de reflejo de la base de datos. Para más información, consulte [Database Mirroring State Change Event Class](../../relational-databases/event-classes/database-mirroring-state-change-event-class.md).
Cuando finaliza la sincronización, cada transacción confirmada en la base de datos de principal también se confirma en el servidor reflejado, garantizando así la protección de los datos. Esto se consigue esperando la confirmación de una transacción en la base de datos principal hasta que el servidor principal recibe un mensaje del servidor reflejado indicando que ha reforzado el registro de transacciones en el disco. Tenga en cuenta que la espera de este mensaje aumenta la latencia de la transacción.
El tiempo necesario para la sincronización depende básicamente de la diferencia entre la base de datos reflejada y la base de datos principal en el momento de iniciar la sesión (diferencia calculada por el número de registros inicialmente recibidos del servidor principal), la carga de trabajo en la base de datos principal y la velocidad del sistema reflejo. Una vez sincronizada una sesión, el registro reforzado que aún debe rehacerse en la base de datos reflejada permanece en la cola de puesta al día.
En cuanto se sincroniza la base de datos reflejada, el estado de ambas copias de base de datos cambia a SYNCHRONIZED.
La operación sincrónica se mantiene de la siguiente manera:
1. Al recibir una transacción de un cliente, el servidor principal escribe el registro para la transacción en el registro de transacciones.
2. El servidor principal escribe la transacción en la base de datos y, al mismo tiempo, envía el registro al servidor reflejado. El servidor principal espera el reconocimiento del servidor reflejado antes de confirmar cualquiera de los elementos siguientes al cliente: una confirmación de transacción o una reversión.
3. El servidor reflejado refuerza el registro en el disco y devuelve un reconocimiento al servidor principal.
4. Al recibir el reconocimiento del servidor reflejado, el servidor principal envía un mensaje de confirmación al cliente.
El modo de alta seguridad protege los datos al hacer que sea necesario sincronizar los datos de dos lugares. Se garantiza que todas las transacciones confirmadas serán escritas en el disco del servidor reflejado.
**En esta sección:**
- [Modo de alta seguridad sin conmutación automática por error](#HighSafetyWithOutAutoFailover)
- [Modo de alta seguridad con conmutación automática por error](#HighSafetyWithAutoFailover)
### <a name="HighSafetyWithOutAutoFailover"></a> Modo de alta seguridad sin conmutación automática por error
En la siguiente ilustración se muestra la configuración del modo de alta seguridad sin conmutación automática por error. La configuración solo consta de dos asociados.
![Asociados comunicándose sin ningún testigo](../../database-engine/database-mirroring/media/dbm-high-protection-mode.gif "Asociados comunicándose sin ningún testigo")
Cuando los asociados están conectados y la base de datos ya está sincronizada, se admite la conmutación por error manual. Si la instancia del servidor reflejado se bloquea, la instancia de servidor principal no se ve afectada y queda expuesta (sin reflejar los datos). Si se pierde el servidor principal, el reflejo se suspende, pero el servicio puede forzarse en el servidor reflejado (con una posible pérdida de datos). Para obtener más información, vea [Conmutación de roles durante una sesión de creación de reflejo de la base de datos (SQL Server)](../../database-engine/database-mirroring/role-switching-during-a-database-mirroring-session-sql-server.md).
### <a name="HighSafetyWithAutoFailover"></a> Modo de alta seguridad con conmutación automática por error
La conmutación automática por error ofrece una alta disponibilidad al garantizar que se pueda servir a la base de datos incluso después de la pérdida de un servidor. La conmutación automática por error requiere que la sesión disponga de una tercera instancia de servidor, el *testigo*, que idealmente reside en un tercer equipo. En la siguiente ilustración se muestra la configuración de una sesión en modo de alta seguridad que admite la conmutación automática por error.
![El testigo y los dos asociados de una sesión](../../database-engine/database-mirroring/media/dbm-high-availability-mode.gif "El testigo y los dos asociados de una sesión")
A diferencia de los dos asociados, el testigo no sirve a la base de datos. El testigo simplemente admite la conmutación automática por error al comprobar que el servidor principal se encuentre activo y en funcionamiento. El servidor reflejado inicia la conmutación automática por error solo si éste y el testigo permanecen mutuamente conectados después de haberse desconectado del servidor principal.
Cuando se define un testigo, la sesión requiere *quórum*, una relación entre al menos dos instancias de servidor que permite que la base de datos pueda estar disponible. Para obtener más información, vea [Testigo de creación de reflejo de la base de datos](../../database-engine/database-mirroring/database-mirroring-witness.md) y [Cuórum: cómo un testigo afecta a la disponibilidad de la base de datos (creación de reflejo de la base de datos)](../../database-engine/database-mirroring/quorum-how-a-witness-affects-database-availability-database-mirroring.md).
La conmutación automática por error requiere las condiciones siguientes:
- La base de datos ya está sincronizada.
- El error se produce mientras están conectadas las tres instancias de servidor, y el servidor testigo y el reflejado permanecen conectados.
La pérdida de un asociado tiene el siguiente efecto:
- Si la instancia de servidor principal no está disponible en las condiciones anteriores, se produce la conmutación automática por error. El servidor reflejado cambia al rol de principal y ofrece su base de datos como base de datos principal.
- Si el servidor principal no está disponible cuando estas condiciones no se cumplen, se puede forzar el servicio (con una posible pérdida de datos). Para obtener más información, vea [Conmutación de roles durante una sesión de creación de reflejo de la base de datos (SQL Server)](../../database-engine/database-mirroring/role-switching-during-a-database-mirroring-session-sql-server.md).
- Si únicamente el servidor reflejado no está disponible, el principal y el testigo continúan.
Si la sesión pierde el testigo, el quórum requiere ambos asociados. Si uno de los asociados pierde el quórum, ambos lo pierden y la base de datos deja de estar disponible hasta que se restablece el quórum. El requisito de quórum garantiza que, en ausencia de un testigo, la base de datos no quede nunca *expuesta*, es decir, sin un reflejo.
> [!NOTE]
> Si cree que el testigo va a permanecer desconectado durante bastante tiempo, se recomienda eliminarlo temporalmente de la sesión hasta que esté disponible.
## <a name="TsqlSettingsAndOpModes"></a> Configuración de Transact-SQL y modos de funcionamiento de la creación de reflejo de la base de datos
En esta sección se describe una sesión de creación de reflejo de la base de datos desde el punto de vista de la configuración de ALTER DATABASE y de los estados de la base de datos reflejada y del testigo, si existen. Esta sección está dirigida a los usuarios que administran la creación de reflejo de la base de datos principal o exclusivamente mediante [!INCLUDE[tsql](../../includes/tsql-md.md)], en vez de mediante [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)].
> [!TIP]
> Como alternativa al uso de [!INCLUDE[tsql](../../includes/tsql-md.md)], puede controlar el modo de funcionamiento de una sesión en el Explorador de objetos mediante la página **Creación de reflejos** del cuadro de diálogo **Propiedades de la base de datos** . Para obtener más información, vea [Establecer una sesión de creación de reflejo de la base de datos mediante la autenticación de Windows (SQL Server Management Studio)](../../database-engine/database-mirroring/establish-database-mirroring-session-windows-authentication.md).
**En esta sección:**
- [Cómo la seguridad de transacción y el estado del testigo afectan al modo de funcionamiento](#TxnSafetyAndWitness)
- [Ver la configuración de seguridad y el estado del testigo](#ViewWitness)
- [Factores que afectan al comportamiento en caso de pérdida del servidor principal](#FactorsOnLossOfPrincipal)
### <a name="TxnSafetyAndWitness"></a> Cómo la seguridad de transacción y el estado del testigo afectan al modo de funcionamiento
El modo de funcionamiento de una sesión viene determinado por la combinación de su configuración de seguridad de las transacciones y el estado del testigo. En cualquier momento, el propietario de la base de datos puede cambiar la configuración de seguridad de las transacciones y puede agregar o quitar el testigo.
**En esta sección:**
- [Transaction Safety](#TxnSafety)
- [Estado del testigo](#WitnessState)
#### <a name="TxnSafety"></a> Transaction Safety
La seguridad de las transacciones es una propiedad de base de datos específica de la creación de reflejo que determina si una sesión de creación de reflejo de la base de datos funciona de forma sincrónica o asincrónica. Hay dos niveles de seguridad: FULL y OFF.
- SAFETY FULL
La seguridad de las transacciones completa hace que la sesión funcione de forma asincrónica en modo de alta seguridad. Si existe un testigo, una sesión admite la conmutación automática por error.
Cuando se establece una sesión mediante instrucciones ALTER DATABASE, ésta empieza con el valor SAFETY establecido en FULL; es decir, la sesión empieza en modo de alta seguridad. Una vez que se ha iniciado la sesión, puede agregarse un testigo.
Para obtener más información, vea [Creación de reflejo sincrónico de la base de datos (modo de alta seguridad)](#Sync), anteriormente en este tema.
- SAFETY OFF
Desactivar la seguridad de las transacciones hace que la sesión funcione de forma asincrónica, en modo de alto rendimiento. Si la propiedad SAFETY está establecida en OFF, la propiedad WITNESS también debe estar establecida en OFF (el valor predeterminado). Para obtener información sobre el efecto del testigo en el modo de alto rendimiento, vea [Estado del testigo](#WitnessState)a continuación. Para obtener más información sobre la ejecución con la seguridad de transacción desactivada, vea [Operación asincrónica de creación de reflejo de la base de datos (Modo de alto rendimiento)](#asynchronous-database-mirroring-high-performance-mode), anteriormente en este tema.
La configuración de seguridad de las transacciones de la base de datos está registrada en cada asociado de la vista de catálogo **sys.database_mirroring** en las columnas **mirroring_safety_level** y **mirroring_safety_level_desc**. Para obtener más información, vea [sys.database_mirroring (Transact-SQL)](../../relational-databases/system-catalog-views/sys-database-mirroring-transact-sql.md).
El propietario de la base de datos puede cambiar el nivel de seguridad de las transacciones en cualquier momento.
#### <a name="WitnessState"></a> Estado del testigo
Si se establece un testigo, es necesario que haya quórum, por lo que el estado del testigo será siempre significativo.
Si existe, el testigo tendrá uno de estos dos estados:
- Cuando el testigo está conectado a un asociado, el testigo tiene el estado CONNECTED en relación con el asociado y tiene quórum con ese asociado. En este caso, la base de datos puede estar disponible, incluso si alguno de los asociados no está disponible.
- Cuando hay un testigo pero no está conectado a un asociado, el testigo tiene el estado UNKOWN o DISCONNECTED en relación con el asociado. En este caso, el testigo carece de quórum con ese asociado y, si los asociados no están conectados entre sí, la base de datos se vuelve no disponible.
Para obtener información sobre el cuórum, vea [Cuórum: cómo un testigo afecta a la disponibilidad de la base de datos (creación de reflejo de la base de datos)](../../database-engine/database-mirroring/quorum-how-a-witness-affects-database-availability-database-mirroring.md).
El estado de cada testigo en una instancia del servidor se registra en la vista de catálogo **sys.database_mirroring**, en las columnas **mirroring_witness_state** y **mirroring_witness_state_desc**. Para obtener más información, vea [sys.database_mirroring (Transact-SQL)](../../relational-databases/system-catalog-views/sys-database-mirroring-transact-sql.md).
En la tabla siguiente se resume cómo el modo de funcionamiento de una sesión depende de su configuración de seguridad de las transacciones y del estado del testigo.
|Modo de funcionamiento|Seguridad de las transacciones|Estado del testigo|
|--------------------|------------------------|-------------------|
|Modo de alto rendimiento|OFF|NULL (sin testigo)**|
|Modo de alta seguridad sin conmutación automática por error|FULL|NULL (sin testigo)|
|Modo de seguridad alta con conmutación automática por error*|FULL|CONNECTED|
*Si el testigo se desconecta, se recomienda establecer WITNESS OFF hasta que la instancia del servidor testigo esté disponible.
**Si hay un testigo en modo de alto rendimiento, no participará en la sesión. Sin embargo, para que la base de datos esté disponible, al menos dos de las instancias de servidor deben permanecer conectadas. Por lo tanto, se recomienda mantener la propiedad WITNESS establecida en OFF en las sesiones en modo de alto rendimiento. Para más información, vea [Cuórum: cómo un testigo afecta a la disponibilidad de la base de datos (creación de reflejo de la base de datos)](../../database-engine/database-mirroring/quorum-how-a-witness-affects-database-availability-database-mirroring.md).
### <a name="ViewWitness"></a> Ver la configuración de seguridad y el estado del testigo
Para ver la configuración de seguridad y el estado del testigo de una base de datos, use la vista de catálogo **sys.database_mirroring** . Las columnas relevantes son:
|Factor|Columnas|Descripción|
|------------|-------------|-----------------|
|Seguridad de las transacciones|**mirroring_safety_level** o **mirroring_safety_level_desc**|La configuración de seguridad de las transacciones para las actualizaciones de la base de datos reflejada es una de las siguientes:<br /><br /> UNKNOWN<br /><br /> OFF<br /><br /> FULL<br /><br /> NULL= la base de datos no está en línea.|
|¿Existe un testigo?|**mirroring_witness_name**|Nombre de servidor del testigo de creación de reflejo de la base de datos o NULL, que indica que no existe ningún testigo.|
|Estado del testigo|**mirroring_witness_state** o **mirroring_witness_state_desc**|Estado del testigo en la base de datos en un determinado asociado:<br /><br /> UNKNOWN<br /><br /> CONNECTED<br /><br /> DISCONNECTED<br /><br /> NULL = no existe ningún testigo o la base de datos no está en línea.|
Por ejemplo, en el servidor principal o el servidor reflejado, escriba:
```
SELECT mirroring_safety_level_desc, mirroring_witness_name, mirroring_witness_state_desc FROM sys.database_mirroring
```
Para obtener más información sobre esta vista de catálogo, vea [sys.database_mirroring (Transact-SQL)](../../relational-databases/system-catalog-views/sys-database-mirroring-transact-sql.md).
### <a name="FactorsOnLossOfPrincipal"></a> Factores que afectan al comportamiento en caso de pérdida del servidor principal
En la tabla siguiente se resume el efecto combinado de la configuración de seguridad de las transacciones, el estado de la base de datos y el estado del testigo en el comportamiento de una sesión de creación de reflejo en caso de pérdida del servidor principal.
|Seguridad de las transacciones|Estado del reflejo de la base de datos reflejada|Estado del testigo|Comportamiento al perderse el servidor principal|
|------------------------|----------------------------------------|-------------------|-------------------------------------|
|FULL|SYNCHRONIZED|CONNECTED|Se produce la conmutación automática por error.|
|FULL|SYNCHRONIZED|DISCONNECTED|El servidor reflejado se detiene; la conmutación por error no es posible y no se puede hacer que la base de datos esté disponible.|
|OFF|SUSPENDED o DISCONNECTED|NULL (sin testigo)|El servicio se puede forzar en el servidor reflejado (con posible pérdida de datos).|
|FULL|SYNCHRONIZING o SUSPENDED|NULL (sin testigo)|El servicio se puede forzar en el servidor reflejado (con posible pérdida de datos).|
## <a name="RelatedTasks"></a> Tareas relacionadas
- [Agregar o reemplazar un testigo de creación de reflejo de la base de datos (SQL Server Management Studio)](../../database-engine/database-mirroring/add-or-replace-a-database-mirroring-witness-sql-server-management-studio.md)
- [Establecer una sesión de creación de reflejo de la base de datos mediante la autenticación de Windows (SQL Server Management Studio)](../../database-engine/database-mirroring/establish-database-mirroring-session-windows-authentication.md)
- [Agregar un testigo de creación de reflejo de la base de datos mediante la autenticación de Windows (Transact-SQL)](../../database-engine/database-mirroring/add-a-database-mirroring-witness-using-windows-authentication-transact-sql.md)
- [Quitar el testigo de una sesión de creación de reflejo de la base de datos (SQL Server)](../../database-engine/database-mirroring/remove-the-witness-from-a-database-mirroring-session-sql-server.md)
- [Cambiar la seguridad de las transacciones en una sesión de creación de reflejo de la base de datos (Transact-SQL)](../../database-engine/database-mirroring/change-transaction-safety-in-a-database-mirroring-session-transact-sql.md)
## <a name="see-also"></a>Consulte también
[Supervisar la creación de reflejo de la base de datos (SQL Server)](../../database-engine/database-mirroring/monitoring-database-mirroring-sql-server.md)
[Testigo de creación de reflejo de la base de datos](../../database-engine/database-mirroring/database-mirroring-witness.md)
| 107.948454 | 788 | 0.774998 | spa_Latn | 0.991158 |
8a37204fd87b7580376edb3b0ff4734f17b39a13 | 3,103 | md | Markdown | README.md | AnniXD/quasars | 8911186571758eaa4a6469ddf1abce0d2ad04eba | [
"MIT"
] | null | null | null | README.md | AnniXD/quasars | 8911186571758eaa4a6469ddf1abce0d2ad04eba | [
"MIT"
] | null | null | null | README.md | AnniXD/quasars | 8911186571758eaa4a6469ddf1abce0d2ad04eba | [
"MIT"
] | null | null | null | # **Quasar, A space-themed Discord Bot!**
![Bot running](https://media.discordapp.net/attachments/938832324118867969/942405293680230460/unknown.png)
- Only works with slash commands.
- [Add Quasar to your discord server!](https://discord.com/oauth2/authorize?client_id=821742438603292672&permissions=2150722624&scope=bot+applications.commands)
<div>
<br>
# **Features**
🛠 Utility
- /ping [It tells the latency speed.]
- /avatar [User Avatar]
- /weather [Forecast for a specific location.]
- /stats [Stats and info about the bot.]
- /qrcode [Generates a QR code for a specific text.]
- /qrread [Reads a QR image url]
- /privacy [Info about privacy policy]
- /deltav [Calculates DeltaV for a rocket.]
- /sma [Calculate semi-major axis]
- /[what3words](https://what3words.com/) [ Converts the 3 words to coordinates.]
🎮 Fun
- /8ball [Random answers to questions.]
- /inspire [Sends inspirational quotes.]
- /flip [Flips a coin randomly.]
- /echo [Repeats a message provided by a user.]
- /ship [Ship between two users.]
- /ascii [Convert texts into an isometric font.]
🖼 Imager
- /color [Colorizes grayscaled image urls.]
- /gray [Converts an profile picture of an user into black/white image.]
- /blur [Blurs profile picture of an user.]
- /invert [Inverts the colors for profile picture of an user.]
🌌 Cosmos
- /apod [Astronomy picture from an API by Nasa.]
- /astronauts [People who are in space.]
- /curiosity [Info about curiosity rover from Mars.]
- /rover [Images taken by curiosity rover on Mars.]
- /iss [Coordinates for International Space Station.]
- /launches [Info about upcoming rocket launches.]
- /nextlaunch [Detailed info about the next launch.]
📟 Conversions
- /reverse [Reverses a text.]
- /texttohex [Converts the text into hexadecimal.]
- /hextotext [Converts hexadecimals to text.]
- /morse [Converts the text into morse code.]
- /unmorse [Converts a morse code into text.]
- /binarytotext [Converts binary numbers into a text.]
- /texttobinary [Converts text into binary numbers.]
- /mock [Make texts weird.]
</details>
# Setup
Create a file named `.env`
Add `TOKEN=<your bot token>`
Your .env file should look something like this:
```
TOKEN=<Bot token>
```
### Uptime
To keep your bot alive you need to make this repl into a webserver. The way you do that is that you `import keep_alive` (file included this repl) and call it `keep_alive()`.
Now that this repl is a server, all you have to do to keep your bot up is setup something to ping the site your bot made every 5 minutes or so.
Go to [uptimerobot](https://uptimerobot.com/) and create an account if you dont have one. After verifying your account, click "Add New Monitor".
+ For Monitor Type select "HTTP(s)"
+ In Friendly Name put the name of your bot
+ For your url, put the url of the website made for your repl.
+ Select any alert contacts you want, then click "Create Monitor"
![Uptime robot img](https://i.imgur.com/Qd9LXEy.png)
Your bot should now be good to go, with near 100% uptime.
| 38.308642 | 173 | 0.70738 | eng_Latn | 0.958037 |
8a377d37408cf10bf5e9158d862b1423e08466fc | 685 | md | Markdown | recipes/cookies-moelleux-aux-pepites-de-chocolat.md | guillaumejparis/recipes | a3b5afb79f98071f6f730be11827d69d4146cafb | [
"MIT"
] | null | null | null | recipes/cookies-moelleux-aux-pepites-de-chocolat.md | guillaumejparis/recipes | a3b5afb79f98071f6f730be11827d69d4146cafb | [
"MIT"
] | null | null | null | recipes/cookies-moelleux-aux-pepites-de-chocolat.md | guillaumejparis/recipes | a3b5afb79f98071f6f730be11827d69d4146cafb | [
"MIT"
] | null | null | null | # Cookies moelleux aux pépites de chocolat
## Ingrédients
- Beurre pommade | 85 g |
- Farine | 200 g |
- Levure chimique | 5 g |
- Sucre roux | 150 g |
- Oeuf | 1 |
- Chocolat | 150 g |
- Noisettes | 100 g |
- Sel fin | 1 pincée |
## Cookies
_Préchauffer le four à 200°._
1. Mélanger le beurre et le sucre pendant 5 minutes.
2. Ajouter la farine, la levure, le sel puis l'oeuf.
3. Concasser les noisettes torréfiées au four.
4. Ajouter les noisettes et pépites de chocolat noir au mélange.
5. Sur une plaque recouverte de papier de papier cuisson, déposez des petites boules de pâtes.
**Cuire 8 min.**
> Variante de recette:
> Remplacer les noisettes par 5 g de thé matcha.
| 21.40625 | 94 | 0.70365 | fra_Latn | 0.961336 |
8a37d7fcb9c5ac9d06e584fea4fd80fd6d707a91 | 1,890 | md | Markdown | _posts/2019-09-29-expermimentation.md | FleaRex/PersonalBlog | f5b18ac711bc9beb6f13317b97084149e36debcb | [
"MIT"
] | null | null | null | _posts/2019-09-29-expermimentation.md | FleaRex/PersonalBlog | f5b18ac711bc9beb6f13317b97084149e36debcb | [
"MIT"
] | 7 | 2018-10-15T20:52:14.000Z | 2020-03-16T08:57:47.000Z | _posts/2019-09-29-expermimentation.md | FleaRex/PersonalBlog | f5b18ac711bc9beb6f13317b97084149e36debcb | [
"MIT"
] | 1 | 2020-01-29T22:56:14.000Z | 2020-01-29T22:56:14.000Z | ---
author: Ben Madley
github: FleaRex
title: Experimentation
excerpt: I've been reading at John Cutler's blog and Twitter for about a year. He makes me inspired to want to change things. To find areas that aren't going well and help them improve. Recently he published "So You Want to Fix Something?" a blog post that reads like a Twitter thread (because it is). I wish he had published it sooner.
---
I've been reading at John Cutler's [blog](https://medium.com/@johnpcutler) and [Twitter](https://twitter.com/johncutlefish) for about a year. Recently he published ["So You Want to Fix Something?"](https://medium.com/@johnpcutler/so-you-want-to-fix-something-b7182bda31eb), a blog post that reads like a Twitter thread ([because it is](https://twitter.com/johncutlefish/status/1163337618676781056)). In it he covers tactics for making change to an organisation. I wish I'd read it before learning the lessons the hard way.
We've just had [DevOps Days London 2019](https://devopsdays.org/events/2019-london). The most interesting part was a discussion on _DevOps in a non-Dev world_, how do you bring the introduction of DevOps ideas to a company who's primary function isn't producing software. My suggestion is to make it as safe as possible for whoever will need to approve your change.
1. Make whatever you want to change as small as possible. Make it inarguably harmless.
2. Phrase it as a trial. It's a lot easier to approve a trial than a new change.
3. If you are hoping to get some business benefit, then get backing from the business.
4. Measure what you are hoping to change (cycle time, employee happiness, defects) and show that you have improved it.
This gives the approver the easiest time accepting your change and makes it much more easy to try it out. If it doesn't work out then you haven't lost anything. If it does, then you have momentum for moving forward.
| 105 | 522 | 0.775132 | eng_Latn | 0.998188 |
8a3958aba2f4698eeec5dd31791fe74ba8b98127 | 1,103 | md | Markdown | README.md | h1biki/Human-Temperature-Measurement-and-Storage-Module | cbc5681beb996b5a919148add4938d737c83c436 | [
"MIT"
] | null | null | null | README.md | h1biki/Human-Temperature-Measurement-and-Storage-Module | cbc5681beb996b5a919148add4938d737c83c436 | [
"MIT"
] | null | null | null | README.md | h1biki/Human-Temperature-Measurement-and-Storage-Module | cbc5681beb996b5a919148add4938d737c83c436 | [
"MIT"
] | null | null | null | # Design of Human Temperature Measurement and Storage Module
The system uses STM32 series single-chip microcomputer as the core control module. The OLED display module for displays the temperature data detected by the temperature sensor and the current time and date. The data storage module comes to the FM24C256 chip. The body temperature data is collected by the DS18B20 temperature sensor. The sensor performs as for measurement, and the AMS1117 chip is used for voltage conversion, designed for power supply for the whole system. The program download port adopts SWD mode.
The system can set current time and date by pressing the button, and the measured temperature data can also be recorded by pressing designed button, and historical temperature data can be reviewed in history searching mode. The design also compares the selection of the microcontroller, several ways to display and the final selection of proper components, which met the requirement of functions. After test it proves that the system is stable and reliable, and shows a strong advantage compared to traditional thermometer.
| 275.75 | 523 | 0.825929 | eng_Latn | 0.999527 |
8a399498092302141a9264e117ddc7b7f2ee4ee1 | 12 | md | Markdown | ReprogramaXP_S8_ProjetoPratico/README.md | LaisMaas/ReprogramaXP_BackEnd_NodeJS | e7ae80d5296804a004c114419f1ee18fb4af8908 | [
"MIT"
] | null | null | null | ReprogramaXP_S8_ProjetoPratico/README.md | LaisMaas/ReprogramaXP_BackEnd_NodeJS | e7ae80d5296804a004c114419f1ee18fb4af8908 | [
"MIT"
] | null | null | null | ReprogramaXP_S8_ProjetoPratico/README.md | LaisMaas/ReprogramaXP_BackEnd_NodeJS | e7ae80d5296804a004c114419f1ee18fb4af8908 | [
"MIT"
] | null | null | null | ### Semana 8 | 12 | 12 | 0.583333 | ind_Latn | 0.4444 |
8a39d2b1570452268140fcf891f4e0c02107c5f2 | 164 | md | Markdown | firmware/README.md | Duncankn/Zigbee-Coordinator-TI-CC2538 | 9df903997c5e7572c3f64c60dc407636900ccab8 | [
"MIT"
] | null | null | null | firmware/README.md | Duncankn/Zigbee-Coordinator-TI-CC2538 | 9df903997c5e7572c3f64c60dc407636900ccab8 | [
"MIT"
] | null | null | null | firmware/README.md | Duncankn/Zigbee-Coordinator-TI-CC2538 | 9df903997c5e7572c3f64c60dc407636900ccab8 | [
"MIT"
] | null | null | null | # Firmware
Thanks for @jethome-ru's firmware
(https://github.com/jethome-ru/zigbee-firmware)
There will be the tutorial for firmware flashing with Raspberry Pi.
| 27.333333 | 67 | 0.780488 | eng_Latn | 0.694432 |
8a39de909601b837bcd6b49c66744ca7bbde3557 | 142 | md | Markdown | README.md | ucdavis-bioinformatics-training/2018-Dec-Genome-Assembly | d6326611d5539a19f01314cf01add587bc786de9 | [
"Apache-2.0"
] | 13 | 2018-12-17T17:10:42.000Z | 2021-11-09T11:46:34.000Z | README.md | melcampos/2018-Dec-Genome-Assembly | d6326611d5539a19f01314cf01add587bc786de9 | [
"Apache-2.0"
] | 1 | 2018-12-20T17:48:57.000Z | 2019-01-13T03:10:36.000Z | README.md | melcampos/2018-Dec-Genome-Assembly | d6326611d5539a19f01314cf01add587bc786de9 | [
"Apache-2.0"
] | 3 | 2018-12-12T11:07:52.000Z | 2019-08-31T04:41:54.000Z | ## December 2018 Biennial Genome Assembly Workshop
Github pages
https://ucdavis-bioinformatics-training.github.io/2018-Dec-Genome-Assembly/
| 23.666667 | 75 | 0.816901 | yue_Hant | 0.822964 |
8a39e72f9c0a7390371917bb047fd70582315fb6 | 25,088 | md | Markdown | README.md | lento234/Quantitative-Big-Imaging-2019 | ae129f4c51ff6dd5e4c0231f40aa3bc250c9ee6a | [
"Apache-2.0"
] | 22 | 2019-01-29T02:45:04.000Z | 2022-03-15T22:22:20.000Z | README.md | lento234/Quantitative-Big-Imaging-2019 | ae129f4c51ff6dd5e4c0231f40aa3bc250c9ee6a | [
"Apache-2.0"
] | 56 | 2019-02-04T05:09:27.000Z | 2020-05-05T12:43:25.000Z | README.md | lento234/Quantitative-Big-Imaging-2019 | ae129f4c51ff6dd5e4c0231f40aa3bc250c9ee6a | [
"Apache-2.0"
] | 12 | 2019-07-16T11:16:13.000Z | 2022-03-18T13:15:51.000Z | [![Build Status](https://travis-ci.org/kmader/Quantitative-Big-Imaging-2019.svg?branch=master)](https://travis-ci.org/kmader/Quantitative-Big-Imaging-2019)
![](https://github.com/kmader/Quantitative-Big-Imaging-2019/workflows/build_notebooks/badge.svg)
[![Make PDF](https://github.com/kmader/Quantitative-Big-Imaging-2019/workflows/make_pdfs/badge.svg)](https://github.com/kmader/Quantitative-Big-Imaging-2019/releases)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/kmader/Quantitative-Big-Imaging-2019.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kmader/Quantitative-Big-Imaging-2019/context:python)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/kmader/Quantitative-Big-Imaging-2019.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kmader/Quantitative-Big-Imaging-2019/alerts/)
## Quantitative Big Imaging Course 2019 [![Binder with JupyterLab](https://img.shields.io/badge/launch-jupyterlab-red.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?urlpath=lab)
Here are the lectures, exercises, and additional course materials corresponding to the spring semester 2019 course at ETH Zurich, [227-0966-00L](http://www.vvz.ethz.ch/Vorlesungsverzeichnis/lerneinheit.view?lerneinheitId=128120&semkez=2019S&ansicht=KATALOGDATEN&lang=en): Quantitative Big Imaging.
The lectures have been prepared and given by Kevin Mader and associated guest lecturers. Please note the Lecture Slides and PDF do not contain source code, this is only available in the handout file. Some of the lectures will be recorded and placed on YouTube on the [QBI Playlist](https://www.youtube.com/playlist?list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw). The lectures are meant to be followed in chronological order and each lecture has a corresponding hands-on exercise. The entire lecture set is available as a single PDF file available in the [releases section](https://github.com/kmader/Quantitative-Big-Imaging-2019/releases)
## Learning Objectives
### General
1. Ability to compare qualitative and quantitative methods and name situations where each would be appropriate
1. Awareness of the standard process of image processing, the steps involved and the normal order in which they take place
1. Ability to create and evaluate quantitative metrics to compare the success of different approaches/processes/workflows
1. Appreciation of automation and which steps it is most appropriate for
1. The relationship between automation and reproducibility for analysis
### Image Enhancement
1. Awareness of the function enhancement serves and the most commonly used methods
1. Knowledge of limitations and new problems created when using/overusing these techniques
### Segmentation
1. Awareness of different types of segmentation approaches and strengths of each
1. Understanding of when to use automatic methods and when they might fail
### Shape Analysis
1. Knowledge of which types of metrics are easily calculated for shapes in 2D and 3D
1. Ability to describe a physical measurement problem in terms of shape metrics
1. Awareness of common metrics and how they are computed for arbitrary shapes
### Statistics / Big Data
1. Awareness of common statistical techniques for hypothesis testing
1. Ability to design basic experiments to test a hypothesis
1. Ability to analyze and critique poorly designed imaging experiments
1. Familiarity with vocabulary, tools, and main concepts of big data
1. Awareness of the differences between normal and big data approaches
1. Ability to explain MapReduce and apply it to a simple problem
## Target Audience
The course is designed with both advanced undergraduate and graduate level students in mind. Ideally students will have some familiarity with basic manipulation and programming in languages like Python (Matlab or R are also reasonable starting points). Much of the material is available as visual workflows in a tool called KNIME, although these are less up to date than the Python material. Interested students who are worried about their skill level in this regard are encouraged to contact Kevin Mader directly ([email protected]).
- Students with very diverse academic backgrounds have done well in the course (Informatics to Art History to Agriculture).
- Successful students typically spent a few hours a week working on the exercises to really understand the material.
- More advanced students who are already very familiar with Python, C++, or Java are also encouraged to take the course and will have to opportunity to develop more of their own tools or explore topics like machine learning in more detail.
# Slack
For communicating, discussions, asking questions, and everything, we will be trying out Slack this year. You can sign up under the following [link](https://join.slack.com/t/qbi2019/shared_invite/enQtNTU2NjQwNDU3NjUxLTc0YzA0YTVhNjQxZmNhMzQwZjM4NzlhNWExOWEyNzQzZGJjYWU3N2YyNmM4YTJkOGJlZTFlZGIyMmUwMmY0MmE). It isn't mandatory, but it seems to be an effective way to engage collaboratively [How scientists use slack](http://www.nature.com/news/how-scientists-use-slack-1.21228)
# Weekly Plan
### 21st February - Introduction and Workflows
- [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/01-Introduction.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/01-Introduction.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/01-Introduction.ipynb)
- [Lecture Video](https://www.youtube.com/watch?v=_3UCWECqIHY&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=3&t=0s)
#### Exercises
- [Getting Started with KNIME](Exercises/01-Description.md)
- [Introduction to Python and Jupyter for Data-Science](https://github.com/jakevdp/PythonDataScienceHandbook)
### 28th February - Ground Truth: Building and Augmenting Datasets
- [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/02-Datasets.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/02-Datasets.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/02-Datasets.ipynb)
- [Lecture Video](https://www.youtube.com/watch?v=TNZWUU84DLg&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=4)
#### Exercises
- [Data Augmentation in KNIME](Exercises/02-augmentation/LungNodules.knar)
### 7th March - Image Enhancement (Guest Lecture - A. Kaestner)
- [Lecture Slides](Lectures/03-ImageEnhancement.pdf)
- [Old Lecture Video](https://www.youtube.com/watch?v=NlHRzgdw0p0&list=PLTWuXgjdOrnnHVDj_xgpUfbnlPmvW_33M&index=3)
#### Exercises
- [![imagetool](https://img.shields.io/badge/launch-image_enhancement_tool-yellow.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?urlpath=%2Fapps%2FExercises%2FImageEnhancementPlayground.ipynb)
- [Overview](Exercises/ImageEnhancement.md)
### 14th March - Basic Segmentation, Discrete Binary Structures
- [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/04-BasicSegmentation.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/04-BasicSegmentation.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/04-BasicSegmentation.ipynb)
- Part 2: [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2018/blob/master/Lectures/04-BasicSegmentation_Part2.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/04-BasicSegmentation_Part2.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/04-BasicSegmentation_Part2.ipynb)
- [Lecture Video](https://www.youtube.com/watch?v=LFwHVO5zDzY&index=5&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw)
#### Exercises
- [Overview](Exercises/04-Overview.md)
### 21th March - Advanced Segmentation
- Part 1: [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/05-AdvancedSegmentation.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/05-AdvancedSegmentation.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/05-AdvancedSegmentation.ipynb)
- Part 2: [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/05-SupervisedSegmentation.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/05-SupervisedSegmentation.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/05-SupervisedSegmentation.ipynb)
- [Lecture Video](https://www.youtube.com/watch?v=wIEstgKwEro&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=8&t=0s)
#### Exercises
- [Overview](Exercises/05-Overview.md)
### 28th March - Analyzing Single Objects, Shape and Texture
- Part 1: [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/06-ShapeAnalysis.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/06-ShapeAnalysis.ipynb) [Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/06-ShapeAnalysis.ipynb)
- Part 2: [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/06-AdvancedShapeAndTexture.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/06-AdvancedShapeAndTexture.ipynb) [Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/06-AdvancedShapeAndTexture.ipynb)
- [Lecture Video](https://www.youtube.com/watch?v=AwFK7DLkTCI&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=11&t=3s)
#### Exercises
- [Overview](Exercises/06-Overview.md)
### 4th April - Analyzing Complex Objects
- [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/07-ComplexObjects.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/07-ComplexObjects.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/07-ComplexObjects.ipynb)
- [Lecture Video](https://www.youtube.com/watch?v=tju1A_QvIPU&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=12)
- [Old Lecture Video](https://www.youtube.com/watch?v=apDElYtI7jo&t=0s&index=15&list=PLTWuXgjdOrnnHVDj_xgpUfbnlPmvW_33M)
#### Exercises
- [Overview](Exercises/07-Overview.md)
### 11th April - Dynamic Experiments
- [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/08-DynamicExperiments.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/08-DynamicExperiments.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/08-DynamicExperiments.ipynb)
- [Feature Points Slides](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/08-FeaturePoints.ipynb)
- [Video](https://www.youtube.com/watch?v=RPHtLaUA1_I&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=15&t=0s)
#### Exercises
- [![slides](https://img.shields.io/badge/Registration-Tutorial-blue.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Exercises/Registration101.ipynb) [Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Exercises/Registration101.ipynb)
- [KNIME Exercises](https://rawgithub.com/Quantitative-Big-Imaging/Quantitative-Big-Imaging-2016/master/Exercises/09-Description.html)
- [Kaggle Neuron Tracking](https://www.kaggle.com/kmader/track-neuron-movement)
- [Kaggle X-Ray Scan Registration](https://www.kaggle.com/kmader/x-ray-patient-scan-registration)
- [3D Sem Reconstruction (Under construction)](https://www.kaggle.com/kmader/3d-reconstruction-with-feature-extraction)
- [Voxel Morph Paper](https://arxiv.org/pdf/1802.02604.pdf) and [Kaggle Example](https://www.kaggle.com/kmader/voxelmorph-demo)
### 18th April - Statistics, Prediction, and Reproducibility
- [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/09-Statistics.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2019/master?filepath=Lectures/09-Statistics.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/09-Statistics.ipynb)
- [Video](https://www.youtube.com/watch?v=ky7tfHkkVd0&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=17)
#### Exercises
- [KNIME Exercises](https://rawgithub.com/kmader/Quantitative-Big-Imaging-2016/master/Exercises/08-Description.html)
- C. Elegans Dataset on Kaggle [R Notebook](https://www.kaggle.com/kmader/d/kmader/high-content-screening-celegans/qbi-statistics-and-reproducibility-in-r/) or [Python Notebook](https://www.kaggle.com/kmader/d/kmader/high-content-screening-celegans/image-overview)
- Lung Segmentation [https://www.kaggle.com/kmader/dsb-lung-segmentation-algorithm/notebook](Rule-based Image Processing) and [Simple Neural Network](https://www.kaggle.com/kmader/simple-nn-with-keras)
### 2nd May - Scaling Up / Big Data
- [Slides (static)](http://nbviewer.jupyter.org/format/slides/github/kmader/Quantitative-Big-Imaging-2018/blob/master/Lectures/11-ScalingUp.ipynb) [![slides](https://img.shields.io/badge/interactive-slides-green.svg)](http://mybinder.org/v2/gh/kmader/quantitative-big-imaging-2018/master?filepath=Lectures/11-ScalingUp.ipynb) [Lecture Handout](http://nbviewer.jupyter.org/github/kmader/Quantitative-Big-Imaging-2018/blob/master/Lectures/11-ScalingUp.ipynb)
- [Lecture Video](https://www.youtube.com/watch?v=1cSkd2O9bYE&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=20)
#### Exercises
- [KNIME / Spark Exercises](https://github.com/Quantitative-Big-Imaging/Quantitative-Big-Imaging-2017/blob/master/Exercises/10-Description.md)
- [Kaggle DAG Notebook for Filtering with Tensorflow](https://www.kaggle.com/kmader/simple-dags-in-tensorflow)
- [Block-based 3D Image Analysis in Dask](https://www.kaggle.com/kmader/3d-image-analysis-using-dask)
- [Spark Example on Databricks Cloud](https://databricks-prod-cloudfront.cloud.databricks.com/public/4027ec902e239c93eaaa8714f173bcfc/1698738444120167/3665298589504346/4750003467380621/latest.html)
### 9th May - Guest Lecture - High Content Screening (M. Prummer)
- [High Content Screening Slides](https://github.com/kmader/Quantitative-Big-Imaging-2019/blob/master/Lectures/11-HCSBigData.pdf) - Michael Prummer / Nexus / Roche
#### Exercises
- [High Content Screening with C. Elegans](https://www.kaggle.com/kmader/high-content-screening-celegans)
- Goal is looking at what metrics accurately indicate living or dead worms and building a simple predictive model
- [High Content Screening using Dask/Big Data](https://www.kaggle.com/kmader/dask-for-hcs-worm-shape-analysis)
- [Kaggle Overview](https://www.kaggle.com/kmader/d/kmader/high-content-screening-celegans/image-overview)
- [Shape Analysis](https://www.kaggle.com/kmader/worm-shape-analysis)
- [Processing in R](https://www.kaggle.com/kmader/basic-analysis-in-r)
### 16th May - Tracking/Dynamic Experiments - Live Coding
- [Aluminum Foam Dataset](https://www.kaggle.com/kmader/aluminum-foam-animation#slice821_tser.avi)
- [Preprocessing Kernel](https://www.kaggle.com/kmader/aluminum-preprocessing)
- [Bubble Tracking](https://www.kaggle.com/kmader/tracking-bubbles)
- [Videos](https://www.youtube.com/watch?v=ytpAWCNCSfc&list=PLTWuXgjdOrnmXVVQG5DRkVeOIGOcTmCIw&index=25&t=0s)
### 23rd May - Project Presentations
# Exercises
## General Information
The exercises are based on the lectures and take place in the same room after the lecture completes. The exercises are designed to offer a tiered level of understanding based on the background of the student. We will (for most lectures) take advantage of an open-source tool called KNIME (www.knime.org), with example workflows here (https://www.knime.org/example-workflows). The basic exercises will require adding blocks in a workflow and adjusting parameters, while more advanced students will be able to write their own snippets, blocks or plugins to accomplish more complex tasks easily.
The exercises from two years ago (available [here](http://kmader.github.io/Quantitative-Big-Imaging-2015/) are done entirely in ImageJ and Matlab for students who would prefer to stay in those environments (not recommended)
### Install KNIME
* Windows: https://www.dropbox.com/s/75hx7fdpnpzrh5u/knime_rsna_2018.zip?dl=0
* Mac: https://www.dropbox.com/s/3tdssp67daadzix/knime_rsna_mac.zip?dl=0
* (After you extract it move the KNIME.app into the /Applications/ folder)
### Install Python
If you use colab, kaggle or mybinder you won't need python on your own machine but if you want to set it up in the same way the class has you can follow the instructions shown in the video [here](https://youtu.be/bnTCLLSpyf0) and below
1. Install Anaconda Python https://www.anaconda.com/distribution/#download-section
1. Download the course from github as a zip file
1. Extract the zip file
1. Open a terminal (or command prompt on windows)
1. Go to the binder folder inside the course directory (something like: `Downloads/Quantitative-Big-Imaging-2019-master/binder`)
1. Install the environment
1. `conda env create -f environment.yml`
1. Activate the environment `conda activate qbi2019` or `activate qbi2019`
1. Go up one directory to the root of the course `cd ..`
1. Start python `jupyter notebook`
## Assistance
The exercises will be supported by Amogha Pandeshwar and Kevin Mader. There will be office hours in ETZ H75 on Thursdays between 14-15 or by appointment.
## Online Tools
The exercises will be available on Kaggle as 'Datasets' and we will be using mybinder as stated above.
# Feedback (as much as possible)
- Create an [issue](https://github.com/kmader/Quantitative-Big-Imaging-2019/issues) (on the group site that everyone can see and respond to, requires a Github account), [issues from last year](https://github.com/kmader/Quantitative-Big-Imaging-2015/issues)
- Provide anonymous feedback on the course [here](https://docs.google.com/spreadsheet/embeddedform?formkey=dEtIX1ZXMzFacmdhRF9mQVpNaWtWTXc6MA)
- Or send direct email (slightly less anonymous feedback) to [Kevin](mailto:[email protected])
# Final Examination
The final examination (as originally stated in the course material) will be a 30 minute oral exam covering the material of the course and its applications to real systems. For students who present a project, they will have the option to use their project for some of the real systems related questions (provided they have sent their slides to [Kevin](mailto:[email protected]) after the presentation and bring a printed out copy to the exam including several image slices if not already in the slides). The exam will cover all the lecture material from Image Enhancement to Scaling Up (the guest lecture will not be covered). Several example questions (not exhaustive) have been collected which might be helpful for preparation.
- [Practice Questions](https://rawgithub.com/kmader/Quantitative-Big-Imaging-Course/master/PracticeExam/exam.html)
# Projects
- [Overview](Projects/Overview.md) of possible projects
- [Here](https://docs.google.com/spreadsheets/d/1Xvf4I5t-QkgXFBoDJ8BrMA8RTtuZWILfFBRhMjqP8Z8/edit#gid=618907183) you signup for your project with team members and a short title and description
# Software Dependencies
The course, slides and exercises are primarily done using Python 3.6 and Jupyter Notebook 5.5. The binder/repo2docker-compatible environment](https://github.com/jupyter/repo2docker) can be found at [binder/environment.yml](https://github.com/kmader/Quantitative-Big-Imaging-2018/blob/master/binder/environment.yml). A full copy of the environment at the time the class was given is available in the [wiki](https://github.com/kmader/Quantitative-Big-Imaging-2018/wiki/Full-Package-List) file. As many of these packages are frequently updated we have also made a copy of the docker image produced by repo2docker uploaded to Docker Hub at https://hub.docker.com/r/kmader/qbi2018/
## All Lectures
The packages which are required for all lectures
- numpy
- matplotlib
- scipy
- scikit-image
- scikit-learn
- ipyvolume
## Machine Learning Packages
For machine learning and big data lectures a few additional packages are required
- tensorflow
- pytorch
- opencv
- dask
- dask_ndmeasure
- dask_ndmorph
- dask_ndfilter
## Image Registration / Medical Image Data
For the image registration lecture and medical image data
- itk
- SimpleITK
- itkwidgets
# Other Material
- [Data Science/Python Introduction Handbook](https://github.com/jakevdp/PythonDataScienceHandbook)
- [ETH Deep Learning Course](http://www.da.inf.ethz.ch/teaching/2018/DeepLearning/) taught in the Fall Semester, also uses Python but with a much more intensive mathematical grounding and less focus on images.
- [EPFL Deep Learning Course](https://fleuret.org/ee559/) taught in the Spring Semester by Francois Fleuret, uses Python and PyTorch covers theoretical topics and more advanced research topics with a number of applications and code.
- [FastAI Deep Learning Course](http://course.fast.ai/) and [Part 2](http://course.fast.ai/part2.html) for a very practically focused introduction to Deep Learning using the Python skills developed in QBI.
- [Deep Learning for Self-Driving Cars at MIT](https://selfdrivingcars.mit.edu/) open to beginners and is designed for those who are new to machine learning, but it can also benefit advanced researchers in the field looking for a practical overview of deep learning methods and their application
- Reproducible Research
- [Coursera Course](https://www.coursera.org/course/repdata)
- [Course and Tools in R](http://kbroman.github.io/Tools4RR/)
- Performance Computing Courses
- [High Performance Computing for Science and Engineering (HPCSE) I](http://www.cse-lab.ethz.ch/teaching/hpcse-i_hs17/)
- [Programming Massively Parallel Processors with CUDA](https://itunes.apple.com/us/itunes-u/programming-massively-parallel/id384233322?mt=10)
- [Introduction to Machine Learning (EPFL)](https://github.com/wildtreetech/advanced-computing-2018)
### Additional Lectures from Previous Years
#### Tutorial: Python, Notebooks and Scikit
- Lecture [slides](https://rawgithub.com/kmader/Quantitative-Big-Imaging-2017/master/Lectures/03-QBI-PythonTutorial.slides.html)
- [Handout](https://github.com/kmader/Quantitative-Big-Imaging-2017/blob/master/Exercises/03-QBI-PythonTutorial.ipynb)
#### Roads from Aerial Images
Javier Montoya / Computer Vision / ScopeM
- [Slides](https://rawgithub.com/kmader/Quantitative-Big-Imaging-2016/master/Lectures/11-AerialSlides.pdf)
- [KNIME Exercises](https://rawgithub.com/kmader/Quantitative-Big-Imaging-2016/master/Exercises/11-Description.html)
- [KNIME Workflow](https://rawgithub.com/kmader/Quantitative-Big-Imaging-2016/master/Exercises/11-files/AerialImages.zip)
- [IPython Notebook](https://github.com/kmader/Quantitative-Big-Imaging-2016/blob/master/Exercises/11-notebook.ipynb)
- [Python Data](https://rawgithub.com/kmader/Quantitative-Big-Imaging-2016/master/Exercises/12-files/lab_images.npz)
- [IPython Notebook](https://github.com/kmader/Quantitative-Big-Imaging-2016/blob/master/Exercises/12-notebook.ipynb)
#### Introduction to Deep Learning / Machine Learning
Presented by Aurelien Lucchi in [Data Analytics Lab](http://www.da.inf.ethz.ch) in D-INFK at ETHZ
- [Slides](https://rawgithub.com/kmader/Quantitative-Big-Imaging-2016/master/Lectures/12-DeepLearning.pdf)
| 77.432099 | 735 | 0.797194 | eng_Latn | 0.4779 |
8a3b1f709433670af97a1b3d8036360647caabbe | 78 | md | Markdown | README.md | mariafortunato/paginaNetflix | 9359bccc607e4f31e03b5440eec4b69c7eb2b9b0 | [
"MIT"
] | 1 | 2021-02-05T17:20:32.000Z | 2021-02-05T17:20:32.000Z | README.md | mariafortunato/paginaNetflix | 9359bccc607e4f31e03b5440eec4b69c7eb2b9b0 | [
"MIT"
] | null | null | null | README.md | mariafortunato/paginaNetflix | 9359bccc607e4f31e03b5440eec4b69c7eb2b9b0 | [
"MIT"
] | null | null | null | # paginaNetflix
Recriando página Netflix nas aulas da Digital Innovation One
| 26 | 61 | 0.833333 | por_Latn | 0.983999 |
8a3bd83491b97d7c4dbdabdd5df24ed0b5a9e633 | 1,113 | md | Markdown | Vue/vuex.md | zty1205/interview | add14d94fe439617c7433ee564101bbc7be2309a | [
"MIT"
] | 2 | 2021-09-19T02:56:28.000Z | 2022-01-19T11:54:39.000Z | Vue/vuex.md | zty1205/interview | add14d94fe439617c7433ee564101bbc7be2309a | [
"MIT"
] | null | null | null | Vue/vuex.md | zty1205/interview | add14d94fe439617c7433ee564101bbc7be2309a | [
"MIT"
] | null | null | null | # Vuex
## 核心概念
- state 数据
- getter 可看成数据的计算属性
- mutation 唯一更改数据的方法 通过 store.commit 使用相应的 mutation 方法
- Action 支持异步的提交 mutation 通过 store.dispatch 使用相应的 Action 方法
- module 数据分模块。如 moduleA.xx
- Getters:(state, getters, rootState, rootGetters) => {}
- Mutations:(state, payload) => {}
- Actions:({commit, dispatch, state, getters, rootState, rootGetters}, payload) => {}
- module: { moduleA }
**_数据流_** ![vuex.png](https://vuex.vuejs.org/vuex.png)
## Vue 如何注入
在使用 Vue.use(vuex) 的时候会执行 install 方法在(vue 插件机制)。这个方法会混入一个 minxin:根实例的$store 会挂在每个组件上
```javascript
Vue.mixin({
beforeCreate() {
const options = this.$options;
// store injection
// 非根组件指向其父组件的$store,使得所有组件的实例,都指向根的store对象
if (options.store) {
this.$store = typeof options.store === 'function' ? options.store() : options.store;
} else if (options.parent && options.parent.$store) {
this.$store = options.parent.$store;
}
}
});
```
## 如何实现响应式
通过添加到 data 中实现响应式
```javascript
store._vm = new Vue({
data: {
$$state: state
},
computed // 这里是store的getter
});
```
> 源码路径:src/store.js resetStoreVM 函数
| 20.611111 | 90 | 0.666667 | kor_Hang | 0.242657 |
8a3c2a8266229b2151b27840f9891bee22799a4f | 8,264 | md | Markdown | docs-archive-a/2014/relational-databases/native-client-ole-db-errors/retrieving-error-information.md | v-alji/sql-docs-archive-pr.zh-tw | f71209265d9571de143831056c9aa7d2af7906bc | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs-archive-a/2014/relational-databases/native-client-ole-db-errors/retrieving-error-information.md | v-alji/sql-docs-archive-pr.zh-tw | f71209265d9571de143831056c9aa7d2af7906bc | [
"CC-BY-4.0",
"MIT"
] | 2 | 2021-10-11T06:38:37.000Z | 2021-11-25T02:24:15.000Z | docs-archive-a/2014/relational-databases/native-client-ole-db-errors/retrieving-error-information.md | v-alji/sql-docs-archive-pr.zh-tw | f71209265d9571de143831056c9aa7d2af7906bc | [
"CC-BY-4.0",
"MIT"
] | 3 | 2021-07-06T09:11:22.000Z | 2022-03-16T18:11:38.000Z | ---
title: 擷取錯誤資訊 | Microsoft Docs
ms.custom: ''
ms.date: 06/13/2017
ms.prod: sql-server-2014
ms.reviewer: ''
ms.technology: native-client
ms.topic: reference
helpviewer_keywords:
- SQL Server Native Client OLE DB provider, errors
- retrieving error information
- errors [OLE DB], examples
- OLE DB error handling, retrieving information
- errors [OLE DB], retrieving information
- OLE DB error handling, examples
ms.assetid: 687b3c27-1a00-4122-8276-ea0f8fed895a
author: rothja
ms.author: jroth
ms.openlocfilehash: d130cfb4fb2643d627ee7d2709c558a91570b008
ms.sourcegitcommit: ad4d92dce894592a259721a1571b1d8736abacdb
ms.translationtype: MT
ms.contentlocale: zh-TW
ms.lasthandoff: 08/04/2020
ms.locfileid: "87598844"
---
# <a name="retrieving-error-information"></a>擷取錯誤資訊
這個範例會從 [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Native Client OLE DB 提供者公開的各種錯誤介面中取得資訊。
```
// DumpErrorInfo queries SQLOLEDB error interfaces, retrieving available
// status or error information.
void DumpErrorInfo
(
IUnknown* pObjectWithError,
REFIID IID_InterfaceWithError
)
{
// Interfaces used in the example.
IErrorInfo* pIErrorInfoAll = NULL;
IErrorInfo* pIErrorInfoRecord = NULL;
IErrorRecords* pIErrorRecords = NULL;
ISupportErrorInfo* pISupportErrorInfo = NULL;
ISQLErrorInfo* pISQLErrorInfo = NULL;
ISQLServerErrorInfo* pISQLServerErrorInfo = NULL;
// Number of error records.
ULONG nRecs;
ULONG nRec;
// Basic error information from GetBasicErrorInfo.
ERRORINFO errorinfo;
// IErrorInfo values.
BSTR bstrDescription;
BSTR bstrSource;
// ISQLErrorInfo parameters.
BSTR bstrSQLSTATE;
LONG lNativeError;
// ISQLServerErrorInfo parameter pointers.
SSERRORINFO* pSSErrorInfo = NULL;
OLECHAR* pSSErrorStrings = NULL;
// Hard-code an English (United States) locale for the example.
DWORD MYLOCALEID = 0x0409;
// Only ask for error information if the interface supports
// it.
if (FAILED(pObjectWithError->QueryInterface(IID_ISupportErrorInfo,
(void**) &pISupportErrorInfo)))
{
wprintf_s(L"SupportErrorErrorInfo interface not supported");
return;
}
if (FAILED(pISupportErrorInfo->
InterfaceSupportsErrorInfo(IID_InterfaceWithError)))
{
wprintf_s(L"InterfaceWithError interface not supported");
return;
}
// Do not test the return of GetErrorInfo. It can succeed and return
// a NULL pointer in pIErrorInfoAll. Simply test the pointer.
GetErrorInfo(0, &pIErrorInfoAll);
if (pIErrorInfoAll != NULL)
{
// Test to see if it's a valid OLE DB IErrorInfo interface
// exposing a list of records.
if (SUCCEEDED(pIErrorInfoAll->QueryInterface(IID_IErrorRecords,
(void**) &pIErrorRecords)))
{
pIErrorRecords->GetRecordCount(&nRecs);
// Within each record, retrieve information from each
// of the defined interfaces.
for (nRec = 0; nRec < nRecs; nRec++)
{
// From IErrorRecords, get the HRESULT and a reference
// to the ISQLErrorInfo interface.
pIErrorRecords->GetBasicErrorInfo(nRec, &errorinfo);
pIErrorRecords->GetCustomErrorObject(nRec,
IID_ISQLErrorInfo, (IUnknown**) &pISQLErrorInfo);
// Display the HRESULT, then use the ISQLErrorInfo.
wprintf_s(L"HRESULT:\t%#X\n", errorinfo.hrError);
if (pISQLErrorInfo != NULL)
{
pISQLErrorInfo->GetSQLInfo(&bstrSQLSTATE,
&lNativeError);
// Display the SQLSTATE and native error values.
wprintf_s(L"SQLSTATE:\t%s\nNative Error:\t%ld\n",
bstrSQLSTATE, lNativeError);
// SysFree BSTR references.
SysFreeString(bstrSQLSTATE);
// Get the ISQLServerErrorInfo interface from
// ISQLErrorInfo before releasing the reference.
pISQLErrorInfo->QueryInterface(
IID_ISQLServerErrorInfo,
(void**) &pISQLServerErrorInfo);
pISQLErrorInfo->Release();
}
// Test to ensure the reference is valid, then
// get error information from ISQLServerErrorInfo.
if (pISQLServerErrorInfo != NULL)
{
pISQLServerErrorInfo->GetErrorInfo(&pSSErrorInfo,
&pSSErrorStrings);
// ISQLServerErrorInfo::GetErrorInfo succeeds
// even when it has nothing to return. Test the
// pointers before using.
if (pSSErrorInfo)
{
// Display the state and severity from the
// returned information. The error message comes
// from IErrorInfo::GetDescription.
wprintf_s(L"Error state:\t%d\nSeverity:\t%d\n",
pSSErrorInfo->bState,
pSSErrorInfo->bClass);
// IMalloc::Free needed to release references
// on returned values. For the example, assume
// the g_pIMalloc pointer is valid.
g_pIMalloc->Free(pSSErrorStrings);
g_pIMalloc->Free(pSSErrorInfo);
}
pISQLServerErrorInfo->Release();
}
if (SUCCEEDED(pIErrorRecords->GetErrorInfo(nRec,
MYLOCALEID, &pIErrorInfoRecord)))
{
// Get the source and description (error message)
// from the record's IErrorInfo.
pIErrorInfoRecord->GetSource(&bstrSource);
pIErrorInfoRecord->GetDescription(&bstrDescription);
if (bstrSource != NULL)
{
wprintf_s(L"Source:\t\t%s\n", bstrSource);
SysFreeString(bstrSource);
}
if (bstrDescription != NULL)
{
wprintf_s(L"Error message:\t%s\n",
bstrDescription);
SysFreeString(bstrDescription);
}
pIErrorInfoRecord->Release();
}
}
pIErrorRecords->Release();
}
else
{
// IErrorInfo is valid; get the source and
// description to see what it is.
pIErrorInfoAll->GetSource(&bstrSource);
pIErrorInfoAll->GetDescription(&bstrDescription);
if (bstrSource != NULL)
{
wprintf_s(L"Source:\t\t%s\n", bstrSource);
SysFreeString(bstrSource);
}
if (bstrDescription != NULL)
{
wprintf_s(L"Error message:\t%s\n", bstrDescription);
SysFreeString(bstrDescription);
}
}
pIErrorInfoAll->Release();
}
else
{
wprintf_s(L"GetErrorInfo failed.");
}
pISupportErrorInfo->Release();
return;
}
```
## <a name="see-also"></a>另請參閱
[錯誤](errors.md)
| 37.225225 | 108 | 0.514884 | yue_Hant | 0.609928 |
8a3cb1eb6825c026e7264ba94a8ed01c5b7c3dd7 | 7,231 | md | Markdown | articles/azure-maps/map-add-drawing-toolbar.md | flexray/azure-docs.pl-pl | bfb8e5d5776d43b4623ce1c01dc44c8efc769c78 | [
"CC-BY-4.0",
"MIT"
] | 12 | 2017-08-28T07:45:55.000Z | 2022-03-07T21:35:48.000Z | articles/azure-maps/map-add-drawing-toolbar.md | flexray/azure-docs.pl-pl | bfb8e5d5776d43b4623ce1c01dc44c8efc769c78 | [
"CC-BY-4.0",
"MIT"
] | 441 | 2017-11-08T13:15:56.000Z | 2021-06-02T10:39:53.000Z | articles/azure-maps/map-add-drawing-toolbar.md | flexray/azure-docs.pl-pl | bfb8e5d5776d43b4623ce1c01dc44c8efc769c78 | [
"CC-BY-4.0",
"MIT"
] | 27 | 2017-11-13T13:38:31.000Z | 2022-02-17T11:57:33.000Z | ---
title: Dodawanie paska narzędzi narzędzi do rysowania do mapowania | Mapy Microsoft Azure
description: Jak dodać pasek narzędzi rysowania do mapy za pomocą Azure Maps Web SDK
author: anastasia-ms
ms.author: v-stharr
ms.date: 09/04/2019
ms.topic: conceptual
ms.service: azure-maps
services: azure-maps
manager: philmea
ms.custom: devx-track-js
ms.openlocfilehash: b00628ec5a9f41b027bf90b93421f3aa1404e97a
ms.sourcegitcommit: f28ebb95ae9aaaff3f87d8388a09b41e0b3445b5
ms.translationtype: MT
ms.contentlocale: pl-PL
ms.lasthandoff: 03/29/2021
ms.locfileid: "92896399"
---
# <a name="add-a-drawing-tools-toolbar-to-a-map"></a>Dodawanie paska narzędzi narzędzi do rysowania do mapy
W tym artykule pokazano, jak używać modułu narzędzi do rysowania i wyświetlać pasek narzędzi rysowania na mapie. Kontrolka [DrawingToolbar](/javascript/api/azure-maps-drawing-tools/atlas.control.drawingtoolbar) dodaje pasek narzędzi Rysowanie na mapie. Dowiesz się, jak tworzyć mapy za pomocą tylko jednego i wszystkich narzędzi do rysowania oraz jak dostosować renderowanie kształtów rysowania w Menedżerze rysowania.
## <a name="add-drawing-toolbar"></a>Dodawanie paska narzędzi rysowania
Poniższy kod tworzy wystąpienie Menedżera rysowania i wyświetla pasek narzędzi na mapie.
```javascript
//Create an instance of the drawing manager and display the drawing toolbar.
drawingManager = new atlas.drawing.DrawingManager(map, {
toolbar: new atlas.control.DrawingToolbar({
position: 'top-right',
style: 'dark'
})
});
```
Poniżej znajduje się kompletny przykładowy kod wykonywany w powyższych funkcjach:
<br/>
<iframe height="500" style="width: 100%;" scrolling="no" title="Dodawanie paska narzędzi rysowania" src="//codepen.io/azuremaps/embed/ZEzLeRg/?height=265&theme-id=0&default-tab=js,result&editable=true" frameborder='no' loading="lazy" allowtransparency="true" allowfullscreen="true">
Zapoznaj się z piórem <a href='https://codepen.io/azuremaps/pen/ZEzLeRg/'>Dodawanie paska narzędzi Rysowanie</a> przez Azure Maps ( <a href='https://codepen.io/azuremaps'>@azuremaps</a> ) na <a href='https://codepen.io'>CodePen</a>.
</iframe>
## <a name="limit-displayed-toolbar-options"></a>Ogranicz wyświetlane opcje paska narzędzi
Poniższy kod tworzy wystąpienie Menedżera rysowania i wyświetla pasek narzędzi z narzędziem rysowania wielokątów na mapie.
```javascript
//Create an instance of the drawing manager and display the drawing toolbar with polygon drawing tool.
drawingManager = new atlas.drawing.DrawingManager(map, {
toolbar: new atlas.control.DrawingToolbar({
position: 'top-right',
style: 'light',
buttons: ["draw-polygon"]
})
});
```
Poniżej znajduje się kompletny przykładowy kod wykonywany w powyższych funkcjach:
<br/>
<iframe height="500" style="width: 100%;" scrolling="no" title="Dodawanie narzędzia do rysowania wielokątów" src="//codepen.io/azuremaps/embed/OJLWWMy/?height=265&theme-id=0&default-tab=js,result&editable=true" frameborder='no' loading="lazy" allowtransparency="true" allowfullscreen="true">
Zobacz pióro <a href='https://codepen.io/azuremaps/pen/OJLWWMy/'>Dodaj narzędzie do rysowania wielokątów</a> , Azure Maps ( <a href='https://codepen.io/azuremaps'>@azuremaps</a> ) w <a href='https://codepen.io'>CodePen</a>.
</iframe>
## <a name="change-drawing-rendering-style"></a>Zmień styl renderowania rysowania
Styl rysowanych kształtów można dostosować przez pobranie podstawowych warstw Menedżera rysowania przy użyciu `drawingManager.getLayers()` funkcji, a następnie ustawienie opcji na poszczególnych warstwach. Uchwyty przeciągania, które pojawiają się dla współrzędnych podczas edytowania kształtu, są znacznikami HTML. Styl uchwytów przeciągania można dostosować, przekazując opcje znacznika HTML do `dragHandleStyle` opcji i w `secondaryDragHandleStyle` Menedżerze rysowania.
Poniższy kod pobiera warstwy renderowania z Menedżera rysowania i modyfikuje ich opcje, aby zmienić styl renderowania dla rysowania. W takim przypadku punkty będą renderowane z niebieską ikoną znacznika. Linie będą czerwone i cztery piksele. Wielokąty mają zielony kolor wypełnienia i pomarańczowy konspekt. Następnie zmienia style uchwytów przeciąganych na ikony kwadratowe.
```javascript
//Get rendering layers of drawing manager.
var layers = drawingManager.getLayers();
//Change the icon rendered for points.
layers.pointLayer.setOptions({
iconOptions: {
image: 'marker-blue'
}
});
//Change the color and width of lines.
layers.lineLayer.setOptions({
strokeColor: 'red',
strokeWidth: 4
});
//Change fill color of polygons.
layers.polygonLayer.setOptions({
fillColor: 'green'
});
//Change the color of polygon outlines.
layers.polygonOutlineLayer.setOptions({
strokeColor: 'orange'
});
//Update the style of the drag handles that appear when editting.
drawingManager.setOptions({
//Primary drag handle that represents coordinates in the shape.
dragHandleStyle: {
anchor: 'center',
htmlContent: '<svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg" style="cursor:pointer"><rect x="0" y="0" width="15" height="15" style="stroke:black;fill:white;stroke-width:4px;"/></svg>',
draggable: true
},
//Secondary drag hanle that represents mid-point coordinates that users can grab to add new cooridnates in the middle of segments.
secondaryDragHandleStyle: {
anchor: 'center',
htmlContent: '<svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" style="cursor:pointer"><rect x="0" y="0" width="10" height="10" style="stroke:white;fill:black;stroke-width:4px;"/></svg>',
draggable: true
}
});
```
Poniżej znajduje się kompletny przykładowy kod wykonywany w powyższych funkcjach:
<br/>
<iframe height="500" style="width: 100%;" scrolling="no" title="Zmień styl renderowania rysowania" src="//codepen.io/azuremaps/embed/OJLWpyj/?height=265&theme-id=0&default-tab=js,result&editable=true" frameborder='no' loading="lazy" allowtransparency="true" allowfullscreen="true">
Zobacz styl renderowania dla pióra <a href='https://codepen.io/azuremaps/pen/OJLWpyj/'>zmiana rysowania</a> według Azure Maps ( <a href='https://codepen.io/azuremaps'>@azuremaps</a> ) na <a href='https://codepen.io'>CodePen</a>.
</iframe>
## <a name="next-steps"></a>Następne kroki
Dowiedz się, jak używać dodatkowych funkcji modułu narzędzi do rysowania:
> [!div class="nextstepaction"]
> [Pobieranie danych kształtów](map-get-shape-data.md)
> [!div class="nextstepaction"]
> [Reagowanie na zdarzenia rysowania](drawing-tools-events.md)
> [!div class="nextstepaction"]
> [Typy interakcji i skróty klawiaturowe](drawing-tools-interactions-keyboard-shortcuts.md)
Dowiedz się więcej na temat klas i metod używanych w tym artykule:
> [!div class="nextstepaction"]
> [Mapa](/javascript/api/azure-maps-control/atlas.map)
> [!div class="nextstepaction"]
> [Rysowanie paska narzędzi](/javascript/api/azure-maps-drawing-tools/atlas.control.drawingtoolbar)
> [!div class="nextstepaction"]
> [Menedżer rysowania](/javascript/api/azure-maps-drawing-tools/atlas.drawing.drawingmanager) | 47.572368 | 475 | 0.753423 | pol_Latn | 0.985609 |
8a3d76f5e0035a5eeff3c7bc5eb9f3260d3fa2d7 | 602 | md | Markdown | README.md | vertigocoin/contract | b0fade1719ddd982439e3607f93dab096b36675b | [
"MIT"
] | null | null | null | README.md | vertigocoin/contract | b0fade1719ddd982439e3607f93dab096b36675b | [
"MIT"
] | null | null | null | README.md | vertigocoin/contract | b0fade1719ddd982439e3607f93dab096b36675b | [
"MIT"
] | null | null | null | # contract
What is Vertigocoin
Vertigocoin is an innovative token network.
What we at Vertigo Coin has developed is a powerful app, a protocol created to maximize profit by shifting the invested capital around to different pools. By utilizing the power of smart contracts, we eliminate the need for manual research and allow users to earn a bigger income.
Our immediate products to be launched include our own NFT marketplace, Live Crypto and Wallet Crypto.
Website: https://vertigocoin.finance/
Buy LInk : https://pancakeswap.finance/swap?outputCurrency=0x46711029258141058df0be0b2d5cb24118cfe519
| 50.166667 | 280 | 0.822259 | eng_Latn | 0.994345 |
8a3db70c0e726295daf5eb2486a06457bd21d4da | 3,055 | md | Markdown | archives/content/archives/labor-secretary-acosta-sex-crimes-coverup.md | benjamincarp/5calls | 81602666c09e6ce929dbd13840768a50a3c55bc7 | [
"MIT"
] | 406 | 2016-12-02T18:10:32.000Z | 2022-02-26T03:08:23.000Z | archives/content/archives/labor-secretary-acosta-sex-crimes-coverup.md | benjamincarp/5calls | 81602666c09e6ce929dbd13840768a50a3c55bc7 | [
"MIT"
] | 577 | 2016-12-02T17:14:07.000Z | 2022-02-26T09:54:09.000Z | archives/content/archives/labor-secretary-acosta-sex-crimes-coverup.md | benjamincarp/5calls | 81602666c09e6ce929dbd13840768a50a3c55bc7 | [
"MIT"
] | 113 | 2016-12-24T01:19:42.000Z | 2020-12-16T23:41:28.000Z | ---
title: Demand Labor Secretary Acosta Resign for the Coverup of Jeffrey Epstein's Crimes - RESIGNED
date: 2019-07-14
publishdate: 2019-07-14
categories: [116th]
issue_id: 604
aliases:
- /issues/labor-secretary-acosta-sex-crimes-coverup/
---
>**UPDATE (07/12/19):** Secretary Acosta has announced he will resign effective next Friday, July 19th.
>**UPDATE (07/07/19):** On July 6th, Jeffrey Epstein was [arrested](https://www.miamiherald.com/news/state/florida/article232374872.html) upon returning to the United States and charged with sex trafficking of dozens of underage girls in New York and Florida. The arrest comes just [two weeks](https://www.miamiherald.com/news/state/florida/article231916968.html) after the Department of Justice refused to throw out the non-prosecution agreement that then Assistant US Attorney Alex Acosta put in place to grant Jeffrey Epstein immunity from prosecution.
In November of 2018, the Miami Herald published a [damning story](https://www.miamiherald.com/news/local/article220097825.html) describing how former US prosecutor and current US Secretary of Labor Alexander Acosta struck a deal to protect alleged serial sexual predator and billionaire Jeffrey Epstein. In 2007, Epstein was accused of sexually assaulting dozens of underage girls, some of whom were [allegedly victims of international sex trafficking](https://slate.com/news-and-politics/2018/11/labor-secretary-alex-acosta-jeffrey-epstein-teen-sex-abuse.html). Despite the scope and severity of Epstein’s crimes, Acosta approved a plea deal that let Epstein off with just two prostitution-related convictions and a mere 13 month prison stay, during which Acosta was given work-release privileges normally not granted to sex offenders. The deal also granted [federal immunity to Epstein’s accomplices and any unindicted co-conspirators](https://www.washingtonpost.com/opinions/how-power-and-money-colluded-to-let-a-sex-obsessed-monster-get-away-with-abuse/2018/12/07/381f5d88-fa6a-11e8-8c9a-860ce2a8148f_story.html?noredirect=on&utm_term=.8e6a50bea502), thus offering sweeping protections to an unknown number of other sexual predators. [In an apparent violation of the 2004 Crime Victims Act](https://www.npr.org/2018/12/04/673320224/sex-offender-jeffrey-epstein-settles-defamation-suit-silencing-womens-testimony), the alleged victims of Epstein’s predatory behavior never had the chance to face their abuser in court and were not informed of the plea deal before it was approved.
The deal’s ostensible violation of the 2004 Crime Victims Act, blanket protection of unknown numbers of other predators, and bizarrely lenient terms for Epstein necessitate robust investigation and call into question Acosta’s professional judgment and integrity. Congress must demand Acosta’s resignation and join [House Democrats and senators from both sides of the aisle](https://rewire.news/article/2018/12/07/senators-demand-investigation-of-labor-secretarys-deal-with-accused-sex-abuser/) in calling for a full investigation of the Acosta-Epstein plea deal. | 203.666667 | 1,583 | 0.813093 | eng_Latn | 0.963735 |
8a3dcbf356f4f67b4a3e8827d41819b50b3df69e | 2,112 | md | Markdown | docs/extensibility/debugger/reference/idebugbreakpointunboundevent2-getbreakpoint.md | keunyop/visualstudio-docs.ko-kr | 6f316d7e3badaf2deafa1a041b7946f2bc3d9a31 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2019-12-04T01:36:07.000Z | 2019-12-04T01:36:07.000Z | docs/extensibility/debugger/reference/idebugbreakpointunboundevent2-getbreakpoint.md | keunyop/visualstudio-docs.ko-kr | 6f316d7e3badaf2deafa1a041b7946f2bc3d9a31 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/extensibility/debugger/reference/idebugbreakpointunboundevent2-getbreakpoint.md | keunyop/visualstudio-docs.ko-kr | 6f316d7e3badaf2deafa1a041b7946f2bc3d9a31 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: IDebugBreakpointUnboundEvent2::GetBreakpoint | Microsoft Docs
ms.date: 11/04/2016
ms.topic: reference
f1_keywords:
- IDebugBreakpointUnboundEvent2::GetBreakpoint
helpviewer_keywords:
- IDebugBreakpointUnboundEvent2::GetBreakpoint
ms.assetid: ad73a207-b778-4dc5-b645-5ec668a63333
author: gregvanl
ms.author: gregvanl
manager: jillfra
ms.workload:
- vssdk
ms.openlocfilehash: 510ffebfd1bbff116b4899663baac7cf6f1087d3
ms.sourcegitcommit: 94b3a052fb1229c7e7f8804b09c1d403385c7630
ms.translationtype: HT
ms.contentlocale: ko-KR
ms.lasthandoff: 04/23/2019
ms.locfileid: "62923104"
---
# <a name="idebugbreakpointunboundevent2getbreakpoint"></a>IDebugBreakpointUnboundEvent2::GetBreakpoint
바인딩 해제 된 중단점을 가져옵니다.
## <a name="syntax"></a>구문
```cpp
HRESULT GetBreakpoint(
IDebugBoundBreakpoint2** ppBP
);
```
```csharp
int GetBreakpoint(
out IDebugBoundBreakpoint2 ppBP
);
```
#### <a name="parameters"></a>매개 변수
`ppBP`
[out] 반환 된 [IDebugBoundBreakpoint2](../../../extensibility/debugger/reference/idebugboundbreakpoint2.md) 바인딩 해제 된 중단점을 나타내는 개체입니다.
## <a name="return-value"></a>반환 값
성공 하면 반환 `S_OK`고, 그렇지 않으면 오류 코드를 반환 합니다.
## <a name="example"></a>예제
다음 예제에서는이 메서드를 구현 하는 방법을 보여 줍니다는 **CBreakpointUnboundDebugEventBase** 노출 하는 개체를 [IDebugBreakpointUnboundEvent2](../../../extensibility/debugger/reference/idebugbreakpointunboundevent2.md) 인터페이스입니다.
```cpp
STDMETHODIMP CBreakpointUnboundDebugEventBase::GetBreakpoint(
IDebugBoundBreakpoint2 **ppbp)
{
HRESULT hRes = E_FAIL;
if ( ppbp )
{
if ( m_pbp )
{
IDebugBoundBreakpoint2 *pibp;
hRes = m_pbp->QueryInterface(IID_IDebugBoundBreakpoint2, (void **) & pibp);
if ( S_OK == hRes )
*ppbp = pibp;
}
else
hRes = E_FAIL;
}
else
hRes = E_INVALIDARG;
return ( hRes );
}
```
## <a name="see-also"></a>참고 항목
- [IDebugBreakpointUnboundEvent2](../../../extensibility/debugger/reference/idebugbreakpointunboundevent2.md)
- [IDebugBoundBreakpoint2](../../../extensibility/debugger/reference/idebugboundbreakpoint2.md)
| 26.4 | 197 | 0.714015 | kor_Hang | 0.583277 |
8a3e03e8ab7691647954575235ba64775be2389a | 3,899 | md | Markdown | README.md | alex179ohm/nsq-client-rs | 982bf4ed93fb1893e70de415bcf08ace74333e78 | [
"MIT"
] | 18 | 2019-02-16T15:56:15.000Z | 2020-09-26T05:03:32.000Z | README.md | Allan-Nava/nsq-client-rs | dc5dda283f09cc4ad404caa2b45f8c53da611bda | [
"MIT"
] | 1 | 2020-07-10T07:53:23.000Z | 2020-07-10T07:53:23.000Z | README.md | Allan-Nava/nsq-client-rs | dc5dda283f09cc4ad404caa2b45f8c53da611bda | [
"MIT"
] | 5 | 2019-02-25T11:56:04.000Z | 2020-09-25T18:24:24.000Z | # NSQ client written in rust [![Build Status](https://travis-ci.com/alex179ohm/nsq-client-rs.svg?branch=master)](https://travis-ci.com/alex179ohm/nsq-client-rs) [![Build status](https://ci.appveyor.com/api/projects/status/ov5ryj2r4iy2v7rp/branch/master?svg=true)](https://ci.appveyor.com/project/alex179ohm/nsq-client-rs/branch/master) [![](https://img.shields.io/crates/v/nsq-client.svg?style=flat)](https://crates.io/crates/nsq-client)
Sponsored by <a href="https://tngrm.io"><img src="https://tngrm.io/static/img/tngrm_black.svg" width="110"></a>
---
A [Actix](https://actix.rs/) based client implementation for the [NSQ](https://nsq.io) realtime message processing system.
Nsq-client it's designed to support by default multiple Readers for Multiple Connections, readers are routed per single connection by a round robin algorithm.
## Usage
To use nsq-client, add this to your Cargo.toml:
```toml
[dependencies]
actix = "0.7"
nsq-client = "0.1.12"
```
### Create your first consumer
In order to use nsq-client you first need to create a Reader actor which implement Handler for the type of messages you want to receive
from the connections and then subscribe it to the connections to be able to receive the type of messages you've selected.
Available messages are:
- [Msg](https://docs.rs/nsq-client/0.1.11/nsq_client/struct.Msg.html)
- [InFlight](https://docs.rs/nsq-client/0.1.11/nsq_client/struct.InFlight.html)
- [OnIdentify](https://docs.rs/nsq-client/0.1.11/nsq_client/struct.OnIdentify.html)
- [OnAuth](https://docs.rs/nsq-client/0.1.11/nsq_client/struct.OnAuth.html)
- [OnClose](https://docs.rs/nsq-client/0.1.11/nsq_client/struct.OnClose.html)
- [OnBackoff](https://docs.rs/nsq-client/0.1.11/nsq_client/struct.OnBackoff.html)
- [OnResume](https://docs.rs/nsq-client/0.1.11/nsq_client/struct.OnResume.html)
### Simple Consumer (SUB)
```rust
extern crate actix;
extern crate nsq_client;
use std::sync::Arc;
use actix::prelude::*;
use nsq_client::{Connection, Msg, Fin, Subscribe, Config};
struct MyReader {
pub conn: Arc<Addr<Connection>>,
}
impl Actor for MyReader {
type Context = Context<Self>;
fn started(&mut self, ctx: &mut Self::Context) {
self.subscribe::<Msg>(ctx, self.conn.clone());
}
}
impl Handler<Msg> for MyReader {
fn handle(&mut self, msg: Msg, _: &mut Self::Context) {
println!("MyReader received {:?}", msg);
if let Ok(body) = String::from_utf8(msg.body) {
println!("utf8 msg: {}", body);
}
self.conn.do_send(Fin(msg.id));
}
}
fn main() {
let sys = System::new("consumer");
let config = Config::default().client_id("consumer");
let c = Supervisor::start(|_| Connection::new(
"test", // <- topic
"test", // <- channel
"0.0.0.0:4150", // <- nsqd tcp address
Some(config), // <- config (Optional)
None, // secret for Auth (Optional)
Some(2) // <- RDY (Optional default: 1)
));
let conn = Arc::new(c);
let _ = MyReader{ conn: conn.clone() }.start(); // <- Same thread reader
let _ = Arbiter::start(|_| MyReader{ conn: conn }); // <- start another reader in different thread
sys.run();
}
```
### launch nsqd
```bash
$ nsqd -verbose
```
### launch the reader
```bash
$ RUST_LOG=nsq_client=debug cargo run
```
### launch the producer
```bash
$ cargo run
```
[![asciicast](https://asciinema.org/a/8dZ5QgjN3WCwDhgU8mAX9BMsR.svg)](https://asciinema.org/a/8dZ5QgjN3WCwDhgU8mAX9BMsR)
## Examples
- [Simple Processing Message](https://github.com/alex179ohm/nsq-client-rs/tree/master/examples/reader)
- [Simple Producer](https://github.com/alex179ohm/nsq-client-rs/tree/master/examples/producer)
### ToDo
- [ ] Discovery
- [ ] TLS
- [ ] Snappy
- [ ] First-ready-first-served readers routing algorithm.
## License
Licensed under
* MIT license (see [LICENSE](LICENSE) or <http://opensource.org/licenses/MIT>)
| 36.439252 | 437 | 0.685304 | eng_Latn | 0.451519 |
8a3e5540402ca3f0d2dee5a7810d7c0a680c7a21 | 964 | md | Markdown | errors/no-css-tags.md | blomqma/next.js | 7db6aa2fde34699cf319d30980c2ee38bb53f20d | [
"MIT"
] | 51,887 | 2016-10-25T15:48:01.000Z | 2020-05-27T17:47:07.000Z | errors/no-css-tags.md | blomqma/next.js | 7db6aa2fde34699cf319d30980c2ee38bb53f20d | [
"MIT"
] | 13,333 | 2020-05-27T18:15:25.000Z | 2022-03-31T23:48:59.000Z | errors/no-css-tags.md | blomqma/next.js | 7db6aa2fde34699cf319d30980c2ee38bb53f20d | [
"MIT"
] | 14,796 | 2020-05-27T18:07:16.000Z | 2022-03-31T23:55:30.000Z | # No CSS Tags
### Why This Error Occurred
An HTML link element was used to link to an external stylesheet. This can negatively affect CSS resource loading on your web page.
### Possible Ways to Fix It
There are multiple ways to include styles using Next.js' built-in CSS support, including the option to use `@import` within the root stylesheet that is imported in `pages/_app.js`:
```css
/* Root stylesheet */
@import 'extra.css';
body {
/* ... */
}
```
Another option is to use CSS Modules to import the CSS file scoped specifically to the component.
```jsx
import styles from './extra.module.css'
export class Home {
render() {
return (
<div>
<button type="button" className={styles.active}>
Open
</button>
</div>
)
}
}
```
Refer to the [Built-In CSS Support](https://nextjs.org/docs/basic-features/built-in-css-support) documentation to learn about all the ways to include CSS to your application.
| 24.717949 | 180 | 0.687759 | eng_Latn | 0.987559 |
8a3e639ad3708dd4fcc35df931fc4f8f00eb61e5 | 7,081 | md | Markdown | _posts/2019-07-02-Download-princesse-cleacuteo-les-eacutemissaires-de-sekhmet.md | Bunki-booki/29 | 7d0fb40669bcc2bafd132f0991662dfa9e70545d | [
"MIT"
] | null | null | null | _posts/2019-07-02-Download-princesse-cleacuteo-les-eacutemissaires-de-sekhmet.md | Bunki-booki/29 | 7d0fb40669bcc2bafd132f0991662dfa9e70545d | [
"MIT"
] | null | null | null | _posts/2019-07-02-Download-princesse-cleacuteo-les-eacutemissaires-de-sekhmet.md | Bunki-booki/29 | 7d0fb40669bcc2bafd132f0991662dfa9e70545d | [
"MIT"
] | null | null | null | ---
layout: post
comments: true
categories: Other
---
## Download Princesse cleacuteo les eacutemissaires de sekhmet book
I did not This first victory went far to establish a reputation of invulnerability for the school on Roke. But the boy had met his match in the Masters. The top shelf was empty, perhaps a great gift, I need a suit of clothes that is bright and brilliant enough to keep me from losing myself in all that grey. Maddoc had used the felt-tip pen from her purse The curer said nothing to the cowboy but went straight to the mule, while he showered with a swimming cockroach that was as Leon grinned, Noah hesitated, and a room about four metres princesse cleacuteo les eacutemissaires de sekhmet Noah acknowledged without enthusiasm. Limit of Trees in Siberia, I highly recommend Culture of Death: The Assault on Medical Ethics in America by "Oh, rolling across the vinyl-tile floor until it bumped gently against the base of a cabinet, had formerly served in the The opening of a communication by sea between the rest of Europe and sufficient coal remaining to permit the engine to be used--up the parked on a parallel street. " he began. Bad, any more than my saying 119, because she knew princesse cleacuteo les eacutemissaires de sekhmet the "Do you want anything else?" Leilani asked, on into the long valley where Otter had taken Princesse cleacuteo les eacutemissaires de sekhmet the first day he was there, sadly: "Oh. It's about Celia. We arrived late in the haltingly, K. Then: "Kiddo, my," he would say in sonorous tones, nevermore will I give thee aught. 73 deg. better plan on the assumption that it won't. For a moment, broken down in body and soul, ma'am. watching Junior so intently from across the room. None of these languages serves for the making of spells lonely-highway threat that, nor mean," Phimie recited, of course. Micky princesse cleacuteo les eacutemissaires de sekhmet the sweating glass of vodka on a cork coaster that protected the nearest countertop, my booking agent found it harder and harder to line up good Jack and Amos frowned, for that matterвCurtis unknown. " upon a throw pillow, sits next to a huge Fleetwood motor home, wasn't a much better future than this! He knew the titles that he wanted: "Tunnel in the Sky, skin straps, with just his sister-become. " Diamond had been given his truename at the springs of the Amia in the hills above Glade. He signed off and they joined the other survivors. " The Hardic language of the Archipelago, to initiate myself, but at all events he reached without Toward Sterm he felt neither animosity nor affection, months ago. " I turned to him. comprehensive inquiries regarding the Seal and Princesse cleacuteo les eacutemissaires de sekhmet Fisheries in The slave stood by, the bleeding gums. 243; until in the evening I found myself lodged at a Bernard's concern changed to a deep, it became It was painful to leave the mystery for later, why are you. If you're going to act dumb, floored. The mere Bellot, however. nice barren place, long before Tanning reindeer hides hides, although a disappointment on hand! Sure, weightless, countries inhabited by the Caucasian races; on them the influence of the Darvey blinked as slowly as a lizard sunning on a rock, girl and yellow vinyl ball, ii, for instance on its Ged too looked at her. She "Would you expect me to say so if it was?' Colman asked? 226, as though he were costumed for a role in a play filled with a Dickensian breakfast?" seriously hurt from this dreadful accident, i. On the landing-quay, that thou take upon thyself the governance of the kingdom and of the subjects, up the In winter they appear in case of necessity to get along with very Largely, i. The wife killer was evil; and his evil would be expressed one way or another, therefore. "We both know Preston Maddoc inspires hatred pivot you in a new direction, and its discovery. _, and began to speak to them, took part in his dangers and sufferings, remembered her use- When it was eventide. _ Layer of burned bones, Medra was given a vision of magic not as a set princesse cleacuteo les eacutemissaires de sekhmet strange gifts and reasonless acts. As on the night of December 13, he browsed through a new coffee-table book on dam disasters, another member of the scenarios included this situation, this meticulously arranged by a master mechanic-unless the effect of the jacks was rapidly, before he registered with a jolt that the babies were probably their own, vanishing among the layered boughs: a reliable prediction that the storm would soon break. " At night, aren't you?" belonged to this variety, the In the swamp, they discovered that were anxious to get ptarmigan, up to the amount indicated in the windows princesse cleacuteo les eacutemissaires de sekhmet the number at the top decreased by owners and hunters at twenty to twenty-five Scandinavian crowns (say relates that this lake was formed in a single night at the same time day, safely tucked both hands in his pants pockets. Its channels (205) were of gold and silver and the water thereof, and some of which did not, are you?" Deem not, know how truly abominable most fiction Is. "They're delicious? " us if glass is a scarce article of luxury here. In a stormy debate Wellesley stood firm by his insistence that alarming though the events were, others think closer to sixty, she said. " Fifteenth Officer's Story, as though the needed words could be strummed She looked at him and at the Doorkeeper and said nothing, whether he could act or not. So, "Arise and come down and show us the princesse cleacuteo les eacutemissaires de sekhmet, but body. The dogs are generally harnessed one pair before The hard whack of chopper blades abruptly softens, too. Maybe one day I'll return to medicine. " When Er Reshid came to the throne, on the other hand. This depended in the first place flounce that hemmed the skirt. " Yea, brutally into his sides, Langsdorffii FISCH. " and ten feet long, either. Now she was great with child and near upon her term and the hour of her deliverance; so, drawing on an fact that otherwise he appears entirely normal, two-thirds. I asked that the gymnastic equipment I had selected be sent on to Clavestra. is too young to have allowed worms so completely to infest her spirit! band with some large beads on the brow. Glacier-clefts. " But the robber replied, Programming Services, Angel said. He looked around at the other occupants of the room. The telegraph princesse cleacuteo les eacutemissaires de sekhmet also made difficulties "He's not senile. She shrugs. " Instead of chunks of coconut or a bowl of poi, they'd be nfce to you, he realizes that personal grooming is Smith's hair got whiter and thinner. " found the porch door unlocked. Nevertheless, princesse cleacuteo les eacutemissaires de sekhmet aa. "She?" her hairpins. But I realized now that "I can make it easy," Leilani assures them, and onward into the labyrinth. training would first study the high arts of sorcery, where the heart is, sir. | 786.777778 | 6,957 | 0.787883 | eng_Latn | 0.999871 |
8a3eab6b0a33532313e2a24644a56a83f08694bc | 4,146 | md | Markdown | Markdown/01000s/05000/dressed splendid.md | rcvd/interconnected-markdown | 730d63c55f5c868ce17739fd7503d562d563ffc4 | [
"MIT"
] | 2 | 2022-01-19T09:04:58.000Z | 2022-01-23T15:44:37.000Z | Markdown/00500s/04500/dressed splendid.md | rcvd/interconnected-markdown | 730d63c55f5c868ce17739fd7503d562d563ffc4 | [
"MIT"
] | null | null | null | Markdown/00500s/04500/dressed splendid.md | rcvd/interconnected-markdown | 730d63c55f5c868ce17739fd7503d562d563ffc4 | [
"MIT"
] | 1 | 2022-01-09T17:10:33.000Z | 2022-01-09T17:10:33.000Z | - Lively killed only congenial [[accompanied]] by light. Were hard the the tending jewels. Near smart not at and there. An any can stopped of by from life. Twice years novelist she one ship preparation of. P was such but is of that. The here our the with locked nation. Upon dissatisfied seriousness all on and. To fifteen flat the districts of German the. Known almost reply prove and you on. Spread and came distinctly Jane. Home was i sudden is i things her. To any force the i of. Be back showed [[remove]] carriages hundreds. You they of law of repeated woman. Throwing split bee like of of very united. The they no acted every put his. Thinking me turned for so Mr. His law to to leader communion. To unexpectedly one of you of the. I fellows forgotten was little was. You go much medium the and bust. Oer rise little owners told you you. Makes kind with again Gutenberg ends. Spain any mean at old with [[affection dressed]].
-
- Time but and can them own could. Them and and were english doubt. Wrought sisters either furious district of finely his. Of of were of good who came. Is lead it understood and with has. Could to inspired and she his. Repeat military side cooper material pleasant ending. Meet own him had the until current. At working take luggage called rates. Of seen is of which lie regret. Be his relief say plants of stately let. I said the replied we had. All when all made their. The out great asleep ancient and times unable. He not inn of.
- Second was many [[slaves wholly]] her strata long the. Did you like composition in in. He to light i had of. Lead founded pilgrims who discharge. Quite friends that record i best. [[lifted affection]] greater new rare of relatives. Mouth made do the to he turned. Us red descended for scenes the every. Flesh very on that of million. Not done it by still he looking to. Probably not enabled sight get his never. Not woke your the some of muscles. Discover descend that world do from. Several Frederick the the of off Washington. His against battle on and its down all. General down the policy its. Time broken money by was. Mark does world change his our engaged. Were generally tapped the returned self. Had forced be returned and room he little. Some spoken and an entering robert said. Well out table other his aboard. Us the addition him name not. Of [[wore carrying]] step the thing consultation. Manner cannot as according sky. With whisper blame so live so. Like through of known had saw consider. Not about you the root mud too. To roger pieces or bore top now. That rights think front which sand to she. [[literature stands]] ascent his when the much. Earth take wishing again even got.
- Be its and gave the of. Of she that of the value moderate. Was he is through attacks like. Baby firm five to commander men. The are the them 2 with placed.
- And long it left and this. Have four had the that the. Even could be opera places at. Morsel murmured to exceeding and had. Living purpose the showed led Howard upon published. She it him be affection noble.
-
- Had of kindness er interested to you. Smiling the said the under thereof weather. He what supposed [[dressed]] do. Fell from on and carry. Called are use man gods ever not. Commencement people at on in information. Practical decline were upon come title special name. We reads first is concerned impressions. Me made ear checked at whole. [[dressed dressed]] weight times persuaded through of [[lifted treated]]. Tall her by pleasant him brilliant not. Sky the he as for exist. Who year and day so. Drew many at in hour use. To of Russian open to the of though. You nothing could girl more. Her importance instant will was division the. Made of of its in. Be west who in returned was. Study his the had it round impression from. Me outer classes right race this were would. Intolerable glance was so of back see. This each as in one knot himself. Think waited of and and. The pride to called slid considerable. Come cent present be i i of Charles. Children refund [[smiling]] he conversation trees. Greatness this to any exalted. Did as elder intercourse gained so. Their the and either fool of with. | 518.25 | 1,198 | 0.777135 | eng_Latn | 0.999945 |
8a3ed564dcf0ff0a0cbd4602fd59784899615907 | 11,423 | md | Markdown | mixed-reality-docs/unreal-winRT.md | sw5813/mixed-reality | 98a18bbff7aa0990133bf331f2473c42c45c8207 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | mixed-reality-docs/unreal-winRT.md | sw5813/mixed-reality | 98a18bbff7aa0990133bf331f2473c42c45c8207 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | mixed-reality-docs/unreal-winRT.md | sw5813/mixed-reality | 98a18bbff7aa0990133bf331f2473c42c45c8207 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: WinRT in Unreal
description: Overview of the spatial audio plugin for Unreal engine.
author: fieldsJacksonG
ms.author: jacksonf
ms.date: 07/08/2020
ms.topic: article
ms.localizationpriority: high
keywords: Unreal, Unreal Engine 4, UE4, HoloLens, HoloLens 2, streaming, remoting, mixed reality, development, getting started, features, new project, emulator, documentation, guides, features, holograms, game development
---
# WinRT in Unreal
## Overview
Over the course of your HoloLens development you may need to write a feature using WinRT. For example, opening a file dialogue in a HoloLens application would need the FileSavePicker in winrt/Windows.Storage.Pickers.h header file. Since Unreal doesn't natively compile WinRT code, it's your job to build a separate binary and that can be consumed by Unreal’s build system. This tutorial will walk you through just such a scenario.
## Objectives
- Create a Universal Windows DLL that opens a FileSaveDialogue
- Link that DLL to an Unreal game project
- Save a file on the HoloLens from an Unreal blueprint using the new DLL
## Getting started
1. Check that you have all [required tools](unreal-uxt-ch1.md) installed
2. [Create a new Unreal project](unreal-uxt-ch2.md#creating-a-new-unreal-project) and name it **Consumewinrt**
3. Enable the [required plugins](unreal-uxt-ch2.md#enabling-required-plugins) for HoloLens development
4. [Setup for deployment](unreal-uxt-ch6.md) to a device or emulator
## Creating a WinRT DLL
1. Open a new Visual Studio project and create a **DLL (Universal Windows)** project in the same directory to the Unreal game’s **uproject** file.
![Creating a DLL](images/unreal-winrt-img-01.png)
2. Name the project **HoloLensWinrtDLL** and set the location as a **ThirdParty** subdirectory to the Unreal game’s uproject file.
* Select **Place solution and project in the same directory** to simplify looking for paths later.
![Configuring the DLL](images/unreal-winrt-img-02.png)
> [!IMPORTANT]
> After the new project compiles, you want to pay special attention to the blank cpp and header files, named **HoloLensWinrtDLL.cpp** and **HoloLensWinrtDLL.h** respectively. The header is the include file that uses the DLL in Unreal, while the cpp holds the body of any functions you export and includes any WinRT code that Unreal wouldn't otherwise be able to compile.
3. Before you add any code, you need to update the project properties to ensure the WinRT code you need can compile:
* Right click on the HoloLensWinrtDLL project and select **properties**
* Change the **Configuration** dropdown to **All Configurations** and the **Platform** dropdown to **All Platforms**
* Under **Configuration Properties> C/C++> All Options**:
* Add **await** to **Additional Options** to ensure we can wait on async tasks
* Change **C++ Language Standard** to **ISO C++17 Standard (/std:c++17)** to include any WinRT code
![Configuring the DLL](images/unreal-winrt-img-03.png)
Your project is ready to update the DLL’s source with WinRT code that opens a file dialogue and saves a file to the HoloLens disk.
## Adding the DLL code
1. Open **HoloLensWinrtDLL.h** and add a dll exported function for Unreal to consume:
```cpp
#pragma once
class HoloLensWinrtDLL
{
public:
_declspec(dllexport) static void OpenFileDialogue();
};
```
2. Open **HoloLensWinrtDLL.cpp** and add all headers the class will use:
```cpp
#include "pch.h"
#include "HoloLensWinrtDLL.h"
#include <winrt/Windows.Storage.h>
#include <winrt/Windows.Storage.Streams.h>
#include <winrt/Windows.Storage.Pickers.h>
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <string>
#include <vector>
#include <thread>
```
> [!NOTE]
> All WinRT code is stored in **HoloLensWinrtDLL.cpp** so Unreal doesn't try to include any WinRT code when referencing the header.
3. Still in **HoloLensWinrtDLL.cpp**, add a function body for OpenFileDialogue() and all supported code:
```cpp
// sgm is declared outside of OpenFileDialogue so it doesn't
// get destroyed when OpenFileDialogue goes out of scope.
SaveGameManager sgm;
void HoloLensWinrtDLL::OpenFileDialogue()
{
sgm.SaveGame();
}
```
4. Add a SaveGameManager class to **HoloLensWinrtDLL.cpp** to handle the file dialogue and saving the file:
```cpp
class SaveGameManager
{
public:
SaveGameManager()
{
}
~SaveGameManager()
{
// Wait for currently running thread to complete before terminating.
if(m_thread.joinable())
{
m_thread.join();
}
}
void SaveGame()
{
OpenFileDialogueAction();
}
private:
winrt::Windows::Storage::StorageFile m_file = winrt::Windows::Storage::StorageFile(nullprt);
std::thread m_thread;
winrt::Windows::Foundation::IAsyncAction OpenFileDialogueAction()
{
std::vector<winrt::hstring> extensions;
extensions.push_back(L".txt");
auto picker = winrt::Windows::Storage::Pickers::FileSavePicker();
// FileSavePicker needs a file type to open without errors.
picker.FileTypeChoices().Insert(L"Plain Text",
winrt::single_threaded_vector<winrt::hstring>(
std::move(extensions)));
// Opening the FilePicker must be done on the Game UI thread.
// Any other IAsyncOperations should be done on a background thread.
m_file = co_await picker.PickSaveFileAsync();
if(m_file)
{
// Unreal's game thread is an STA, async tasks need to run on
// a background MTA thread, or waiting on them will deadlock.
std::thread thread([this]() { RunThread(); });
m_thread = std::move(thread);
}
}
void RunThread()
{
// Ensure this thread is an MTA
winrt::init_apartment();
Run().get();
}
winrt::Windows::Foundation::IAsyncAction Run()
{
co_await winrt::Windows::Storage::FileIO::WriteTextAsync(
m_file, L"Hello WinRT");
}
};
```
5. Build the solution for **Release > ARM64** to build the DLL to the child directory ARM64/Release/HoloLensWinrtDLL from the DLL solution.
## Adding the WinRT binary to Unreal
Linking and using a DLL in Unreal requires a C++ project. If you're using a Blueprint project, it can be easily converted to a C++ project by adding a C++ class:
1. In the Unreal editor, open **File > New C++ Class…** and create a new **Actor** named **WinrtActor** to run the code in the DLL:
![Configuring the DLL](images/unreal-winrt-img-04.png)
> [!NOTE]
> A solution has now been created in the same directory as the uproject file along with a new build script named Source/ConsumeWinRT/ConsumerWinRT.Build.cs.
2. Open the solution, browse for the **Games/ConsumeWinRT/Source/ConsumeWinRT** folder, and open **ConsumeWinRT.build.cs**:
![Configuring the DLL](images/unreal-winrt-img-05.png)
### Linking the DLL
1. In **ConsumeWinRT.build.cs**, add a property to find the include path for the DLL (the directory containing HoloLensWinrtDLL.h). The DLL is in a child directory to the include path, so this property will be used as the binary root dir:
```cs
public class ConsumeWinRT : ModuleRules
{
private string WinrtIncPath
{
get
{
string ModulePath = Path.GetDirectoryName(
RulesCompiler.GetFileNameFromType(this.GetType()));
// Third party directory is at the project root,
// which is two directories up from the game .exe (Binaries/HoloLens)
return Path.GetFullPath(
Path.Combine(ModulePath,
"../../ThirddParty/HoloLensWinrtDLL"));
}
}
}
```
2. In the class constructor, add the following code to update the include path, link the new lib, and delay-load and copy the DLL to the packaged appx location:
```cs
public ConsumeWinRT(ReadOnlyTargetRules target) : base(Target)
{
// This is the directory the DLL's include header is in.
PublicIncludePaths.Add(WinrtIncPath);
// The code in HoloLensWinrtDLL will only work in a Windows Store app.
// Only link these binaries for HoloLens.
// Similar code can be written for desktop and similarly linked
// to use the same features when using Holographic Remoting.
if(Target.Platform == UnrealTargetPlatform.HoloLens)
{
// Link the lib
PublicAdditionalLibraries.Add(Path.Combine(
WinrtIncPath, "ARM64", "Release",
"HoloLensWinrtDLL","HoloLensWinrtDLL.lib"));
string winrtDLL = "HoloLensWinrtDLL.dll";
// Mark the dll to be DelayLoaded
PublicDelayLoadDLLs.Add(winrtDLL);
// RuntimeDependencies are included in packaged builds.
RuntimeDependencies.Add(Path.Combine(WinrtIncPath,
"ARM64", "Release", "HoloLensWinrtDLL", winrtDLL));
}
// Preserve the original code in build.cs below:
}
```
3. Open **WinrtActor.h** and add two function definitions, one that a blueprint can use and another that uses the DLL code:
```cpp
public:
UFUNCTION(BlueprintCallable)
static void OpenFileDialogue;
```
4. Open **WinrtActor.cpp** and load the DLL in BeginPlay:
```cpp
void AWinfrtActor::BeginPlay()
{
#if PLATFORM_HOLOLENS
HoloLensWinrtDLL::OpenFileDialogue();
#endif
}
```
>[!CAUTION]
> The DLL must be loaded before calling any of its functions.
### Building the game
1. Build the game solution to launch the Unreal editor opened to the game project:
* In the **Place Actors** tab, search for the new **WinrtActor** and drag it into the scene
* Open the level blueprint to execute the blueprint callable function in the **WinrtActor**
![Configuring the DLL](images/unreal-winrt-img-06.png)
2. In the **World Outliner**, find the **WindrtActor** previously dropped into the scene and drag it into the level blueprint:
![Configuring the DLL](images/unreal-winrt-img-07.png)
3. In the level blueprint, drag the output node from WinrtActor, search for **Open File Dialogue**, then route the node from any user input. In this case, Open File Dialogue is being called from a speech event:
![Configuring the DLL](images/unreal-winrt-img-08.png)
4. [Package this game for HoloLens](unreal-uxt-ch6.md), deploy it, and run.
When Unreal calls OpenFileDialogue, a File Dialogue opens on the HoloLens prompting for a .txt file name. After the file is saved, go to the **File explorer** tab in the device portal to see the contents “Hello WinRT”.
## Summary
We encourage you to use the code in this tutorial as a starting point for consuming WinRT code in Unreal. It allows users to save files to the HoloLens disk using the same file dialogue as Windows. Follow the same process to export any additional functions from the HoloLensWinrtDLL header and used in Unreal. Note the DLL code that waits on any async WinRT code in a background MTA thread, which avoids deadlocking the Unreal game thread.
## See also
* [C++/WinRT APIs](https://docs.microsoft.com/windows/uwp/cpp-and-winrt-apis/)
* [FileSavePicker class](https://docs.microsoft.com/uwp/api/Windows.Storage.Pickers.FileSavePicker)
* [Unreal Third-Party Libraries](https://docs.unrealengine.com/Programming/BuildTools/UnrealBuildTool/ThirdPartyLibraries/index.html) | 40.363958 | 443 | 0.709183 | eng_Latn | 0.909754 |
8a3ee7e34d0614c8473cd785f9e81ccd8eed686f | 5,682 | md | Markdown | _posts/fr/2020-03-10-introduction-a-arangodb-part-1.md | xunleii/blog.eleven-labs.com | 1db297719c0b5d7a684c36be38bb3b0ff076df72 | [
"MIT"
] | 56 | 2017-11-24T15:40:04.000Z | 2022-01-16T17:47:41.000Z | _posts/fr/2020-03-10-introduction-a-arangodb-part-1.md | xunleii/blog.eleven-labs.com | 1db297719c0b5d7a684c36be38bb3b0ff076df72 | [
"MIT"
] | 420 | 2017-11-09T09:38:53.000Z | 2022-03-11T19:16:16.000Z | _posts/fr/2020-03-10-introduction-a-arangodb-part-1.md | xunleii/blog.eleven-labs.com | 1db297719c0b5d7a684c36be38bb3b0ff076df72 | [
"MIT"
] | 33 | 2017-11-13T03:40:52.000Z | 2022-01-27T13:45:37.000Z | ---
layout: post
title: "Introduction à ArangoDB Part 1"
excerpt: "Dans cet article, nous allons faire un petit tour de cette base de données multi-modèles"
authors:
- vdelpeyroux
lang: fr
permalink: /fr/introduction-a-arangodb-part-1/
categories:
- base de données
tags:
- arangodb
- NoSQL
- base de données multi-modèles
- javascript
- graphe
---
![]({{ site.baseurl }}/assets/2020-03-10-introduction-a-arangodb-part-1/ArangoDB_logo.webp)
## ArangoDB c'est quoi?
ArangoDB est une base de données multi-modèles, ce qui veut dire qu'elle prend en charge plusieurs types de données nativement.
Elle supporte les données de type "clé-valeur", "document", "géospatiale" (GeoJSON,..) ainsi que de type "graphe". Toutes ces données peuvent être requêtées avec un seul et même langage, le AQL (ArangoDB Query Language). Le tout en assurant aux transactions les propriétés [ACID](https://fr.wikipedia.org/wiki/Propri%C3%A9t%C3%A9s_ACID) (atomicité, cohérence, isolation et durabilité).
ArangoDB est open source (Apache License 2.0), possède une édition gratuite "Community", et une autre payante dite "Enterprise" ajoutant des fonctionnalités répondant à des problématiques de projets avancés.
## Performances et architecture
Comme ArangoDB est basé sur des concepts NoSQL, et que tout est en quelque sorte "document" avec une indexation des données customisable et poussée, elle est réputée pour être très réactive sur des opérations écriture/lecture mais également pour des requêtes orientées graphe.
Pour les plus curieux voici un [lien](https://www.arangodb.com/2018/02/nosql-performance-benchmark-2018-mongodb-postgresql-orientdb-neo4j-arangodb/) vers un benchmark présentant ses résultats avec ceux de bases de données connues et techniquement comparables (ce test ne date pas d'hier, donc à prendre avec des pincettes, mais cela vous donnera une petite idée de ses performances).
ArangoDB vient également avec des notions de réseau et vous laisse choisir entre plusieurs architectures :
- "Single instance" : une unique instance Arango existera sur le serveur.
- "master/slave" : toutes les opérations se feront sur le "master", pendant que l'instance "slave" effectuera une réplication du "master" de façon asynchrone.
- "Active Failover" : presque le même principe "Master/Slave", sauf que l'instance "Master" est déterminée par un composant de la base de données "Agency Supervision" et donne le droit d'écriture et lecture à une instance de façon dynamique.
- "Cluster" : architecture la plus intéressante selon moi, qui permet une haute scalabilité devant un fort trafic. Chaque "cluster" est composé de différents nœuds ayant des rôles bien définis :
- l'Agence (Agency) : elle est en charge de prioriser les opérations qui arrivent et de gérer les services de synchronisation. Sans elle, les composants ci-dessous ne peuvent pas communiquer.
- le coordinateur (Coordinator) : ce composant est le point d'entrée entre le client et la donnée, il coordonne les requêtes entre les différentes instances de base de données.
- l'instance de base de données (DB Server) : responsable de l'écriture et lecture des données.
![]({{ site.baseurl }}/assets/2020-03-10-introduction-a-arangodb-part-1/cluster.webp)
## Installation
Multiples sont les façons d'installer ArangoDB :
- installation sur tous les systèmes d'exploitation (Ubuntu, Windows, macOS) ou autres distributions serveurs (CentOS, ...) ;
- installation Docker avec une image officielle ;
- installation Kubernetes (via kubectl ou helm) en local avec miniKube ou sur les plateformes cloud telles qu'Amazon, Google Cloud ou Azure (à savoir qu'ArangoDB a ses propres "operators").
Avec [ArangoDB Oasis](https://cloud.arangodb.com/home), il est même possible de lancer de façon très simple des instances hautement scalables d'ArangoDB déployées automatiquement sur AWS, Google Cloud ou Azure.
Pour une première prise en main on va faire au plus simple c'est à dire une installation Docker :
``` bash
docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD=rocketEleven arangodb/arangodb:3.6.1
```
## Interface
Même si Arango de base expose par défaut une API REST pour pouvoir communiquer via le protocole HTTP, une interface graphique est également disponible. Pour nous ce sera à l'adresse [http://localhost:8529](http://localhost:8529).
![]({{ site.baseurl }}/assets/2020-03-10-introduction-a-arangodb-part-1/login.webp)
Le login admin par défaut est "root", et le mot de passe est celui fourni dans la ligne de commande ci-dessus, en l'occurrence "rocketEleven".
![]({{ site.baseurl }}/assets/2020-03-10-introduction-a-arangodb-part-1/selectDBView.webp)
Chaque serveur a par défaut une base de données "_system", sélectionnez-la.
![]({{ site.baseurl }}/assets/2020-03-10-introduction-a-arangodb-part-1/dashboard.png)
Nous accédons enfin au dashboard de l'instance, qui présente quelques statistiques (le nombre de requêtes par seconde, le type de requête, le nombre de connexions, mémoire, CPU, etc)
À savoir que par défaut ArangoDB choisit l'architecture "single instance". Si on avait choisi le mode "cluster" nous aurions eu des statistiques sur les nœuds le composant (Coordinator, DB Server, Agency) ainsi que leurs endpoints.
De cette interface nous pouvons créer des utilisateurs, des nouvelles bases de données, des collections de différents types de données, mais ce sera le sujet de la deuxième partie.
## La suite
Dans la partie 2 de cet article nous allons voir comment créer une base de données ArongoDB, avec plusieurs collections de différents types de données (Document, Graphe,..) et voir comment les requêter via le language AQL.
| 66.069767 | 385 | 0.775431 | fra_Latn | 0.98163 |
8a3efe2e99d51c041f2ada586134d046e983ff47 | 846 | md | Markdown | guide/spanish/certifications/coding-interview-prep/project-euler/problem-175-fractions-involving-the-number-of-different-ways-a-number-can-be-expressed-as-a-sum-of-powers-of-2/index.md | SweeneyNew/freeCodeCamp | e24b995d3d6a2829701de7ac2225d72f3a954b40 | [
"BSD-3-Clause"
] | 10 | 2019-08-09T19:58:19.000Z | 2019-08-11T20:57:44.000Z | guide/spanish/certifications/coding-interview-prep/project-euler/problem-175-fractions-involving-the-number-of-different-ways-a-number-can-be-expressed-as-a-sum-of-powers-of-2/index.md | SweeneyNew/freeCodeCamp | e24b995d3d6a2829701de7ac2225d72f3a954b40 | [
"BSD-3-Clause"
] | 2,056 | 2019-08-25T19:29:20.000Z | 2022-02-13T22:13:01.000Z | guide/spanish/certifications/coding-interview-prep/project-euler/problem-175-fractions-involving-the-number-of-different-ways-a-number-can-be-expressed-as-a-sum-of-powers-of-2/index.md | SweeneyNew/freeCodeCamp | e24b995d3d6a2829701de7ac2225d72f3a954b40 | [
"BSD-3-Clause"
] | 5 | 2018-10-18T02:02:23.000Z | 2020-08-25T00:32:41.000Z | ---
title: Fractions involving the number of different ways a number can be expressed as a sum of powers of 2
localeTitle: Las fracciones que involucran el número de formas diferentes en que se puede expresar un número como una suma de potencias de 2
---
## Problema 175: Fracciones que involucran el número de formas diferentes en que un número puede expresarse como una suma de potencias de 2
Esto es un talón. [Ayuda a nuestra comunidad a expandirla](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/coding-interview-prep/project-euler/problem-175-fractions-involving-the-number-of-different-ways-a-number-can-be-expressed-as-a-sum-of-powers-of-2/index.md) .
[Esta guía rápida de estilo ayudará a asegurar que su solicitud de extracción sea aceptada](https://github.com/freecodecamp/guides/blob/master/README.md) . | 94 | 293 | 0.800236 | spa_Latn | 0.93341 |
8a404e99fa4c6817655837c900d7c247accb9c3e | 2,508 | md | Markdown | Lync/LyncServer/lync-server-2013-replacing-the-xmladapter-with-a-customized-persistent-chat-server-compliance-adapter.md | c9777777/OfficeDocs-SkypeForBusiness | 20c46f1d1cfb9f6ac6f8a0301c48c233f4a9b4ed | [
"CC-BY-4.0",
"MIT"
] | null | null | null | Lync/LyncServer/lync-server-2013-replacing-the-xmladapter-with-a-customized-persistent-chat-server-compliance-adapter.md | c9777777/OfficeDocs-SkypeForBusiness | 20c46f1d1cfb9f6ac6f8a0301c48c233f4a9b4ed | [
"CC-BY-4.0",
"MIT"
] | null | null | null | Lync/LyncServer/lync-server-2013-replacing-the-xmladapter-with-a-customized-persistent-chat-server-compliance-adapter.md | c9777777/OfficeDocs-SkypeForBusiness | 20c46f1d1cfb9f6ac6f8a0301c48c233f4a9b4ed | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: 'Lync Server 2013: Replacing the XmlAdapter with a customized Persistent Chat Server Compliance adapter'
ms.reviewer:
ms.author: v-lanac
author: lanachin
f1.keywords:
- NOCSH
TOCTitle: Replacing the XmlAdapter with a customized Persistent Chat Server Compliance adapter
ms:assetid: 2cb70db2-663f-40a6-abcf-89ea7d4a8b65
ms:mtpsurl: https://technet.microsoft.com/en-us/library/JJ680106(v=OCS.15)
ms:contentKeyID: 49558152
ms.date: 07/23/2014
manager: serdars
mtps_version: v=OCS.15
---
<div data-xmlns="http://www.w3.org/1999/xhtml">
<div class="topic" data-xmlns="http://www.w3.org/1999/xhtml" data-msxsl="urn:schemas-microsoft-com:xslt" data-cs="http://msdn.microsoft.com/">
<div data-asp="http://msdn2.microsoft.com/asp">
# Replacing the XmlAdapter with a customized Persistent Chat Server Compliance adapter in Lync Server 2013
</div>
<div id="mainSection">
<div id="mainBody">
<span> </span>
_**Topic Last Modified:** 2012-11-01_
You can write a custom adapter instead of using the XmlAdapter that is installed with Persistent Chat Server. To accomplish this, you must provide a .NET Framework assembly that contains a public class that implements the **IComplianceAdapter** interface. You must place this assembly in the Persistent Chat Server installation folder of each server in your Persistent Chat Server pool. Any one of the Compliance servers can provide compliance data to your adapter, but the compliance servers will not provide duplicate compliance data to multiple instances of your adapter.
<div>
## Implementing the IComplianceAdapter interface
The interface is defined in the Compliance.dll assembly in the namespace `Microsoft.Rtc.Internal.Chat.Server.Compliance`. The interface defines two methods that your custom adapter must implement.
void SetConfig(AdapterConfig config)
The Persistent Chat Compliance server will call this method when the adapter first loads. The `AdapterConfig` contains the Persistent Chat compliance configuration that is relevant to the compliance adapter.
void Translate(ConversationCollection conversations)
The Persistent Chat Compliance server calls this method at periodic intervals as long as there is new data to translate. This time interval is equal to the `RunInterval` as set in the Persistent Chat Compliance configuration.
The `ConversationCollection` contains the conversation information that was collected from the last time this method was called.
</div>
</div>
<span> </span>
</div>
</div>
</div>
| 38.584615 | 574 | 0.789872 | eng_Latn | 0.951909 |
8a404ff4631616b5bb6807762bc8bcf73f1797aa | 2,656 | md | Markdown | articles/azure-government/documentation-government-services-iot-hub.md | ellismg/azure-docs | b9467c326822816120a04692ddd8449adf8480ec | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-01-08T08:14:10.000Z | 2020-01-08T08:14:10.000Z | articles/azure-government/documentation-government-services-iot-hub.md | ellismg/azure-docs | b9467c326822816120a04692ddd8449adf8480ec | [
"CC-BY-4.0",
"MIT"
] | 1 | 2019-06-12T00:05:28.000Z | 2019-07-09T09:39:55.000Z | articles/azure-government/documentation-government-services-iot-hub.md | ellismg/azure-docs | b9467c326822816120a04692ddd8449adf8480ec | [
"CC-BY-4.0",
"MIT"
] | 1 | 2022-03-15T04:24:45.000Z | 2022-03-15T04:24:45.000Z | ---
title: Azure Government Internet of Things | Microsoft Docs
description: This provides a comparision of features and guidance on developing IoT Hub applications for Azure Government
services: azure-government
cloud: gov
documentationcenter: ''
author: gsacavdm
manager: pathuff
ms.service: azure-government
ms.devlang: na
ms.topic: article
ms.tgt_pltfrm: na
ms.workload: azure-government
ms.date: 10/24/2018
ms.author: gsacavdm
---
# Azure Government Internet of Things
## Azure IoT Hub
Azure IoT Hub is generally available in Azure Government.
For more information, see [Azure IoT Hub commercial documentation](../iot-hub/index.yml).
### Variations
The following URL for Azure IoT Hub is different in Azure Government:
| Azure Public | Azure Government |
| ------------------- | ------------------ |
| \*.azure-devices.net | \*.azure-devices.us |
If you are using the IoT Hub connection string (instead of the Event Hub-compatible settings) with the Microsoft Azure Service Bus .NET client library to receive telemetry or operations monitoring events, then be sure to use WindowsAzure.ServiceBus NuGet package version 4.1.2 or higher.
## Azure Event Hubs
For details on this service and how to use it, see [Azure Event Hubs documentation](../event-hubs/event-hubs-what-is-event-hubs.md).
### Variations
The following URL for Azure Event Hubs is different in Azure Government:
| Azure Public | Azure Government |
| ------------------- | ------------------ |
| \*.servicebus.windows.net | \*.servicebus.usgovcloudapi.net |
## Azure Notification Hubs
Azure Notification Hubs is generally available in Azure Government.
For details on this service and how to use it, see [Azure Notification Hubs documentation](../notification-hubs/index.yml).
### Variations
The URLs for accessing and managing Azure Notification Hub in Azure Government are different:
| Azure Public | Azure Government |
| ------------------- | ------------------ |
| \*.servicebus.windows.net | \*.servicebus.usgovcloudapi.net |
## Azure Maps
Azure Maps and the related features are now available in Azure Government cloud in preview. For details on this service and how to use it, see [Azure Maps documentation](https://docs.microsoft.com/azure/azure-maps/).
### Variations
The following URL for Azure Maps is different in Azure Government:
| Azure Public | Azure Government |
| ------------------- | ------------------ |
| atlas.microsoft.com | atlas.azure.us |
## Next steps
For supplemental information and updates, subscribe to the [Microsoft Azure Government Blog](https://blogs.msdn.microsoft.com/azuregov).
| 34.947368 | 287 | 0.708584 | eng_Latn | 0.918242 |
8a40a62aed60fd0961af19a120b6d659bb57c367 | 1,582 | md | Markdown | docs/framework/unmanaged-api/debugging/icordebugappdomain-enumerateassemblies-method.md | Youssef1313/docs.it-it | 15072ece39fae71ee94a8b9365b02b550e68e407 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/unmanaged-api/debugging/icordebugappdomain-enumerateassemblies-method.md | Youssef1313/docs.it-it | 15072ece39fae71ee94a8b9365b02b550e68e407 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/unmanaged-api/debugging/icordebugappdomain-enumerateassemblies-method.md | Youssef1313/docs.it-it | 15072ece39fae71ee94a8b9365b02b550e68e407 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Metodo ICorDebugAppDomain::EnumerateAssemblies
ms.date: 03/30/2017
api_name:
- ICorDebugAppDomain.EnumerateAssemblies
api_location:
- mscordbi.dll
api_type:
- COM
f1_keywords:
- ICorDebugAppDomain::EnumerateAssemblies
helpviewer_keywords:
- ICorDebugAppDomain::EnumerateAssemblies method [.NET Framework debugging]
- EnumerateAssemblies method [.NET Framework debugging]
ms.assetid: 7add64f9-19a8-46a9-be62-905d5e7d1bd8
topic_type:
- apiref
ms.openlocfilehash: 573b08fcf2ce0fa5ce3187df6ae6a1c2cc385f52
ms.sourcegitcommit: 559fcfbe4871636494870a8b716bf7325df34ac5
ms.translationtype: MT
ms.contentlocale: it-IT
ms.lasthandoff: 10/30/2019
ms.locfileid: "73134013"
---
# <a name="icordebugappdomainenumerateassemblies-method"></a>Metodo ICorDebugAppDomain::EnumerateAssemblies
Ottiene un enumeratore per gli assembly nel dominio dell'applicazione.
## <a name="syntax"></a>Sintassi
```cpp
HRESULT EnumerateAssemblies (
[out] ICorDebugAssemblyEnum **ppAssemblies
);
```
## <a name="parameters"></a>Parametri
`ppAssemblies`
out Puntatore all'indirizzo di un oggetto ICorDebugAssemblyEnum che rappresenta l'enumeratore per gli assembly nel dominio dell'applicazione.
## <a name="requirements"></a>Requisiti
**Piattaforme:** vedere [Requisiti di sistema di .NET Framework](../../../../docs/framework/get-started/system-requirements.md).
**Intestazione:** CorDebug.idl, CorDebug.h
**Libreria:** CorGuids.lib
**Versioni di .NET Framework:** [!INCLUDE[net_current_v10plus](../../../../includes/net-current-v10plus-md.md)]
| 32.958333 | 144 | 0.764855 | ita_Latn | 0.248374 |
8a40b34b56794ebda265dfa2fc9bbe7206d07367 | 5,504 | md | Markdown | _archive/pages/2017oldz/sponsors.md | simonw/srccon | 2fc87a798564f7a0426c75bf049a52512c10d256 | [
"MIT"
] | 15 | 2015-02-13T17:12:39.000Z | 2021-01-09T04:10:20.000Z | _archive/pages/2017oldz/sponsors.md | simonw/srccon | 2fc87a798564f7a0426c75bf049a52512c10d256 | [
"MIT"
] | 34 | 2015-02-13T02:13:26.000Z | 2018-07-20T16:42:47.000Z | _archive/pages/2017oldz/sponsors.md | simonw/srccon | 2fc87a798564f7a0426c75bf049a52512c10d256 | [
"MIT"
] | 14 | 2015-02-13T02:18:55.000Z | 2018-07-18T20:55:21.000Z | ---
layout: 2015_layout
title: Our Sponsors
subtitle: Sponsors help make SRCCON happen. Thanks to ours!
section: sponsors
sub-section: interior
background: coffee
permalink: /sponsors/index.html
---
<div id="sponsorpage">
<ul class="toplevel">
<li><a href="http://www.condenast.com" class="imglink"><img src="/media/img/partners/2017/conde.png"></a>
<h3>SRCCON Lead Sponsor</h3>
<p>Condé Nast is a premier media company renowned for producing the highest quality content for the world's most influential audiences. Attracting more than 100 million consumers across its industry-leading print, digital and video brands, the company’s portfolio includes some of the most iconic titles in media: <i>Vogue, Vanity Fair, Glamour, Brides, GQ, GQ Style, The New Yorker, Condé Nast Traveler, Allure, Architectural Digest, Bon Appétit,</i> Epicurious, <i>Wired, W, Golf Digest,</i> Golf World, <i>Teen Vogue,</i> Ars Technica, The Scene, Pitchfork and Backchannel. The company’s newest division, Condé Nast Entertainment, was launched in 2011 to develop film, television and premium digital video programming. Want to join Condé Nast in growing and enhancing its digital operations? We are hiring top talent across engineering, data science, product, and design in our <a href="http://condenast.avature.net/careers/SearchJobsTechnology">New York</a> and <a href="http://www.condenast.com/austin/">Austin</a> offices.
</p></li>
<li class="accessiblitysponsor wordpress"><a href="https://vip.wordpress.com/" class="imglink"><img src="/media/img/partners/2017/WordPressVIP.jpg"></a>
<h3>SRCCON Scholarship Sponsor</h3>
<p>We free you to publish. That's our mission. Our managed platform is more than just a place to put your sites. It’s purpose-built systems, data centers, tools, practical expertise, and thoughtful specialists that, together, free you and your team to focus on business rather than worrying about DevOps. VIP clients enjoy a best-in-class managed cloud platform, expert guidance and code review, hands-on support, and a partner network of the best WordPress design and development shops on the planet.</p></li>
<li class="accessiblitysponsor"><a href="http://www.nytimes.com" class="imglink"><img src="/media/img/partners/2017/NYT.png" class="nyt"></a>
<h3>SRCCON Facilitator Scholarship Sponsor</h3>
<p><a href="https://www.youtube.com/watch?v=gY0Fdz350GE">The Truth is Hard</a> but we're excited to be able to support the community of people who seek it at SRCCON. The New York Times is a <a href="http://www.nytco.com/careers/us-opportunites/">continually evolving team</a> of journalists, coders, designers, product managers, women and men all contributing to the 160+ year history of the Grey Lady.</p></li>
<li class="accessiblitysponsor"><a href="http://facebook.com" class="imglink"><img src="/media/img/partners/2017/Facebook-06-2015-Blue-on-White.jpg" class="nyt"></a>
<h3>SRCCON Transcript Sponsor</h3>
<p>The Facebook Journalism Project’s goal is to create stronger ties between Facebook and the news industry by focusing on the collaborative development of news products, training and tools for journalists, and training and tools for everyone.</p></li>
<li class="accessiblitysponsor"><a href="http://jsk.stanford.edu/" class="imglink"><img src="/media/img/partners/2017/jsk.jpg" class="jsk"></a>
<h3>SRCCON Childcare Sponsor</h3>
<p>The <a href="http://jsk.stanford.edu/">John S. Knight Journalism Fellowships</a> at Stanford University is looking for passionate journalists, innovators and entrepreneurs who are creating the new models, tools and approaches that are redefining journalism. As widespread change has swept the industry, our core mission has remained the same: to improve the quality of news and information reaching the public.</p></li>
<li class="accessiblitysponsor"><a href="https://newslab.withgoogle.com/" class="imglink"><img src="/media/img/partners/2017/news-lab-logo-2.png"></a>
<h3>SRCCON Coffee & Tea Hack Station Sponsor</h3></li>
</ul>
<h2>Snack Sponsor</h2>
<ul class="eventsponsor meals">
<li class="alley"><a href="http://www.alleyinteractive.com/" class="imglink"><img src="/media/img/partners/2017/alley.jpg"></a></li>
</ul>
<h2>Event Sponsors</h2>
<ul class="eventsponsor">
<li><a href="https://www.mapbox.com/" class="imglink"><img src="/media/img/partners/2017/mapbox-logo-color.svg"></a></li>
<li class="djnf"><a href="http://www.voxmedia.com/" class="imglink"><img src="/media/img/partners/2017/vox_media_horiz.png"></a></li>
</ul>
<h2>Local Sponsors</h2>
<ul class="eventsponsor">
<li><a href="http://www.startribune.com/" class="imglink"><img src="/media/img/partners/2017/Strib_horiz_new.png"></a></li>
<li class="mprnews"><a href="http://mpr.org" class="imglink"><img src="/media/img/partners/2017/MPRnews_horz2.png"></a></li>
</ul>
<h2>Supporting Sponsor</h2>
<ul class="supportingsponsor">
<li class="buzzfeed"><a href="https://www.buzzfeed.com" class="imglink"><img src="/media/img/partners/2017/BuzzFeedNews_Color.png"></a></li>
</ul>
<h2>OpenNews Project Partners</h2>
<ul class="supportingsponsor">
<li class="knightfoundation"><a href="http://www.knightfoundation.org/" class="imglink"><img alt="Knight Foundation" src="/media/img/partners/knight.png"></a></li>
<li><a href="http://www.communitypartners.org/" class="imglink"><img alt="Community Partners" src="/media/img/partners/CP-Logo.png" /></a></li>
</ul>
</div>
| 79.768116 | 1,031 | 0.73492 | eng_Latn | 0.694783 |
8a40dc1279da613df41486cf8e545385feb2cfc1 | 901 | md | Markdown | README.md | phonyland/phony-generator-coin | f14716253a1f6027f86f2390cdf1664768d60355 | [
"MIT"
] | 1 | 2022-02-02T07:29:47.000Z | 2022-02-02T07:29:47.000Z | README.md | phonyland/phony-generator-coin | f14716253a1f6027f86f2390cdf1664768d60355 | [
"MIT"
] | null | null | null | README.md | phonyland/phony-generator-coin | f14716253a1f6027f86f2390cdf1664768d60355 | [
"MIT"
] | null | null | null | <div align="center">
![Phony Logo - Light](https://raw.githubusercontent.com/phonyland/artwork/master/logo-light.png#gh-light-mode-only)
![Phony Logo - Dark](https://raw.githubusercontent.com/phonyland/artwork/master/logo-dark.png#gh-dark-mode-only)
</div>
<div align="center">
# 🙃<br>Coin Generator
This repository contains the Coin Generator for 🙃 Phony Framework.
</div>
<div align="center">
# 🙃
Start generating fake data with 🙃 Phony Framework,
visit the main **[Phony Repository](https://github.com/phonyland/framework)**.
Explore the docs » **[https://phony.land](https://phony.land/)**
Follow us on Twitter » **[@phony_land](https://twitter.com/phony_land)**
**[🙃 Phony<br/>Fake Data Generation Framework](https://phony.land)**
was created by
**[Yunus Emre Deligöz](https://twitter.com/yedeligoez)**
under
**[MIT license](https://opensource.org/licenses/MIT)**.
</div>
| 27.30303 | 115 | 0.709212 | eng_Latn | 0.155392 |
8a417efc18e9a01f824f1daf43fdf8cc3ffcf03e | 5,668 | md | Markdown | docs/vs-2015/extensibility/getting-project-properties.md | monkey3310/visualstudio-docs.pl-pl | adc80e0d3bef9965253897b72971ccb1a3781354 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/vs-2015/extensibility/getting-project-properties.md | monkey3310/visualstudio-docs.pl-pl | adc80e0d3bef9965253897b72971ccb1a3781354 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/vs-2015/extensibility/getting-project-properties.md | monkey3310/visualstudio-docs.pl-pl | adc80e0d3bef9965253897b72971ccb1a3781354 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Pobieranie właściwości projektu | Dokumentacja firmy Microsoft
ms.custom: ''
ms.date: 2018-06-30
ms.prod: visual-studio-dev14
ms.reviewer: ''
ms.suite: ''
ms.technology:
- vs-ide-sdk
ms.tgt_pltfrm: ''
ms.topic: article
helpviewer_keywords:
- project properties, displaying in tool window
- tool windows, displaying project propeties
ms.assetid: 96ba07ca-0811-4013-8602-12550ac4ba79
caps.latest.revision: 30
ms.author: gregvanl
manager: ghogen
ms.openlocfilehash: 71f7eb7d14a829d05dd28d7fd0a03108aecf9871
ms.sourcegitcommit: 55f7ce2d5d2e458e35c45787f1935b237ee5c9f8
ms.translationtype: MT
ms.contentlocale: pl-PL
ms.lasthandoff: 08/22/2018
ms.locfileid: "42683555"
---
# <a name="getting-project-properties"></a>Pobieranie właściwości projektu
[!INCLUDE[vs2017banner](../includes/vs2017banner.md)]
Najnowszą wersję tego tematu znajduje się w temacie [Uzyskiwanie właściwości projektu](https://docs.microsoft.com/visualstudio/extensibility/getting-project-properties).
Ten poradnik pokazuje jak Wyświetla właściwości projektu w oknie narzędzi.
## <a name="prerequisites"></a>Wymagania wstępne
Począwszy od programu Visual Studio 2015, możesz nie należy instalować programu Visual Studio SDK z Centrum pobierania. Jest dołączony jako opcjonalna funkcja w Instalatorze programu Visual Studio. Możesz także zainstalować zestaw SDK programu VS później. Aby uzyskać więcej informacji, zobacz [instalowania programu Visual Studio SDK](../extensibility/installing-the-visual-studio-sdk.md).
### <a name="to-create-a-vsix-project-and-add-a-tool-window"></a>Aby utworzyć projekt VSIX i dodać okna narzędzi
1. Każde rozszerzenie programu Visual Studio rozpoczyna się od Projekt wdrożenia VSIX, który będzie zawierać zasoby rozszerzenia. Tworzenie [!INCLUDE[vsprvs](../includes/vsprvs-md.md)] projektu VSIX, o nazwie `ProjectPropertiesExtension`. Można znaleźć szablonu projektu VSIX w **nowy projekt** , okno dialogowe **Visual C# / rozszerzalności**.
2. Dodawanie okna narzędzi, dodając szablon elementu niestandardowego okna narzędzi o nazwie `ProjectPropertiesToolWindow`. W **Eksploratora rozwiązań**, kliknij prawym przyciskiem myszy węzeł projektu i wybierz **Add / nowy element**. W **okna dialogowego Dodaj nowy element**, przejdź do **elementy Visual C# / rozszerzalności** i wybierz **okna narzędzi niestandardowych**. W **nazwa** pola w dolnej części okna dialogowego, Zmień nazwę pliku, aby `ProjectPropertiesToolWindow.cs`. Aby uzyskać więcej informacji o sposobie tworzenia niestandardowego okna narzędzi, zobacz [Tworzenie rozszerzenia za pomocą okna narzędzia](../extensibility/creating-an-extension-with-a-tool-window.md).
3. Skompiluj rozwiązanie, a następnie sprawdź, czy kompiluje bez błędów.
### <a name="to-display-project-properties-in-a-tool-window"></a>Aby wyświetlić właściwości projektu w oknie narzędzi
1. W pliku ProjectPropertiesToolWindowCommand.cs Dodaj następujące instrukcje using.
```csharp
using EnvDTE;
using System.Windows.Controls;
```
2. W ProjectPropertiesToolWindowControl.xaml Usuń istniejące przycisk i Dodaj TreeView z przybornika. Program obsługi zdarzeń kliknięcie można również usunąć z pliku ProjectPropertiesToolWindowControl.xaml.cs.
3. W ProjectPropertiesToolWindowCommand.cs użyj metody ShowToolWindow() do otwarcia projektu i jego właściwości do odczytu, a następnie dodać właściwości do widoku drzewa. Kod ShowToolWindow powinien wyglądać następująco:
```csharp
private void ShowToolWindow(object sender, EventArgs e)
{
ToolWindowPane window = this.package.FindToolWindow(typeof(ProjectPropertiesToolWindow), 0, true);
if ((null == window) || (null == window.Frame))
{
throw new NotSupportedException("Cannot create window.");
}
IVsWindowFrame windowFrame = (IVsWindowFrame)window.Frame;
Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(windowFrame.Show());
// Get the tree view and populate it if there is a project open.
ProjectPropertiesToolWindowControl control = (ProjectPropertiesToolWindowControl)window.Content;
TreeView treeView = control.treeView;
// Reset the TreeView to 0 items.
treeView.Items.Clear();
DTE dte = (DTE)this.ServiceProvider.GetService(typeof(DTE));
Projects projects = dte.Solution.Projects;
if (projects.Count == 0) // no project is open
{
TreeViewItem item = new TreeViewItem();
item.Name = "Projects";
item.ItemsSource = new string[]{ "no projects are open." };
item.IsExpanded = true;
treeView.Items.Add(item);
return;
}
Project project = projects.Item(1);
TreeViewItem item1 = new TreeViewItem();
item1.Header = project.Name + "Properties";
treeView.Items.Add(item1);
foreach (Property property in project.Properties)
{
TreeViewItem item = new TreeViewItem();
item.ItemsSource = new string[] { property.Name };
item.IsExpanded = true;
treeView.Items.Add(item);
}
}
```
4. Skompiluj projekt, a następnie rozpocząć debugowanie. Wystąpienie eksperymentalne powinna zostać wyświetlona.
5. W doświadczalnym wystąpieniu Otwórz projekt.
6. W **widok / inne Windows** kliknij **ProjectPropertiesToolWindow**.
Kontrolka drzewa w oknie narzędzia wraz z nazwą pierwszego projektu i jego właściwości projektu powinien zostać wyświetlony.
| 51.063063 | 690 | 0.722477 | pol_Latn | 0.989225 |
8a41c7690b98fad1980f41ec1d322e7f8f58872a | 884 | md | Markdown | docs/concepts/html/lists.md | ssbr/yew | 60fe59e901124f41bcf06d57ae0ce78a2b90c062 | [
"Apache-2.0",
"MIT"
] | 51 | 2019-11-29T08:36:39.000Z | 2020-08-03T17:22:52.000Z | docs/concepts/html/lists.md | ssbr/yew | 60fe59e901124f41bcf06d57ae0ce78a2b90c062 | [
"Apache-2.0",
"MIT"
] | 77 | 2019-11-30T18:56:28.000Z | 2020-07-09T14:06:18.000Z | docs/concepts/html/lists.md | ssbr/yew | 60fe59e901124f41bcf06d57ae0ce78a2b90c062 | [
"Apache-2.0",
"MIT"
] | 75 | 2019-11-28T22:30:44.000Z | 2020-08-09T14:57:30.000Z | # Lists
## Fragments
The `html!` macro always requires a single root node. In order to get around this restriction, it's valid to wrap content in empty tags:
{% tabs %}
{% tab title="Valid" %}
```rust
html! {
<>
<div></div>
<p></p>
</>
}
```
{% endtab %}
{% tab title="Invalid" %}
```rust
/* error: only one root html element allowed */
html! {
<div></div>
<p></p>
}
```
{% endtab %}
{% endtabs %}
## Iterators
Yew supports two different syntaxes for building html from an iterator:
{% tabs %}
{% tab title="Syntax Type 1" %}
```rust
html! {
<ul class="item-list">
{ self.props.items.iter().map(renderItem).collect::<Html>() }
</ul>
}
```
{% endtab %}
{% tab title="Syntax Type 2" %}
```rust
html! {
<ul class="item-list">
{ for self.props.items.iter().map(renderItem) }
</ul>
}
```
{% endtab %}
{% endtabs %}
| 15.508772 | 136 | 0.557692 | eng_Latn | 0.458364 |
8a42310da3830280cd156f561ff48a8b391490b2 | 4,805 | md | Markdown | docs/c-runtime-library/reference/mbsnbset-mbsnbset-l.md | Youssef1313/cpp-docs | 1a6fe60114c7957f9acc059f05f07119d3495f69 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-06-30T03:02:58.000Z | 2021-07-27T18:21:28.000Z | docs/c-runtime-library/reference/mbsnbset-mbsnbset-l.md | drewbatgit/cpp-docs | 230b7231ed324317d2f806531288d6a109791af4 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/c-runtime-library/reference/mbsnbset-mbsnbset-l.md | drewbatgit/cpp-docs | 230b7231ed324317d2f806531288d6a109791af4 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-12-21T18:29:23.000Z | 2021-12-21T18:29:23.000Z | ---
title: "_mbsnbset, _mbsnbset_l"
ms.date: "11/04/2016"
apiname: ["_mbsnbset", "_mbsnbset_l"]
apilocation: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-multibyte-l1-1-0.dll"]
apitype: "DLLExport"
f1_keywords: ["mbsnbset", "mbsnbset_l", "_mbsnbset", "_mbsnbset_l"]
helpviewer_keywords: ["tcsnset function", "_tcsnset_l function", "_mbsnbset function", "_tcsnset function", "_mbsnbset_l function", "mbsnbset_l function", "tcsnset_l function", "mbsnbset function"]
ms.assetid: 8e46ef75-9a56-42d2-a522-a08450c67c19
---
# _mbsnbset, _mbsnbset_l
Sets the first **n** bytes of a multibyte-character string to a specified character. More secure versions of these functions are available; see [_mbsnbset_s, _mbsnbset_s_l](mbsnbset-s-mbsnbset-s-l.md).
> [!IMPORTANT]
> This API cannot be used in applications that execute in the Windows Runtime. For more information, see [CRT functions not supported in Universal Windows Platform apps](../../cppcx/crt-functions-not-supported-in-universal-windows-platform-apps.md).
## Syntax
```C
unsigned char *_mbsnbset(
unsigned char *str,
unsigned int c,
size_t count
);
unsigned char *_mbsnbset_l(
unsigned char *str,
unsigned int c,
size_t count,
_locale_t locale
);
```
### Parameters
*str*<br/>
String to be altered.
*c*<br/>
Single-byte or multibyte-character setting.
*count*<br/>
Number of bytes to be set.
*locale*<br/>
Locale to use.
## Return Value
**_mbsnbset** returns a pointer to the altered string.
## Remarks
The **_mbsnbset** and **_mbsnbset_l** functions set, at most, the first *count* bytes of *str* to *c*. If *count* is greater than the length of *str*, the length of *str* is used instead of *count*. If *c* is a multibyte character and cannot be set entirely into the last byte specified by *count*, the last byte is padded with a blank character. **_mbsnbset** and **_mbsnbset_l** does not place a terminating null at the end of *str*.
**_mbsnbset** and **_mbsnbset_l** is similar to **_mbsnset**, except that it sets *count* bytes rather than *count* characters of *c*.
If *str* is **NULL** or *count* is zero, this function generates an invalid parameter exception as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, **errno** is set to **EINVAL** and the function returns **NULL**. Also, if *c* is not a valid multibyte character, **errno** is set to **EINVAL** and a space is used instead.
The output value is affected by the setting of the **LC_CTYPE** category setting of the locale; see [setlocale](setlocale-wsetlocale.md) for more information. The **_mbsnbset** version of this function uses the current locale for this locale-dependent behavior; the **_mbsnbset_l** version is identical except that it use the locale parameter passed in instead. For more information, see [Locale](../../c-runtime-library/locale.md).
**Security Note** This API incurs a potential threat brought about by a buffer overrun problem. Buffer overrun problems are a frequent method of system attack, resulting in an unwarranted elevation of privilege. For more information, see [Avoiding Buffer Overruns](/windows/win32/SecBP/avoiding-buffer-overruns).
### Generic-Text Routine Mappings
|Tchar.h routine|_UNICODE and _MBCS not defined|_MBCS defined|_UNICODE defined|
|---------------------|--------------------------------------|--------------------|-----------------------|
|**_tcsnset**|**_strnset**|**_mbsnbset**|**_wcsnset**|
|**_tcsnset_l**|**_strnset_l**|**_mbsnbset_l**|**_wcsnset_l**|
## Requirements
|Routine|Required header|
|-------------|---------------------|
|**_mbsnbset**|\<mbstring.h>|
|**_mbsnbset_l**|\<mbstring.h>|
For more compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
## Example
```C
// crt_mbsnbset.c
// compile with: /W3
#include <mbstring.h>
#include <stdio.h>
int main( void )
{
char string[15] = "This is a test";
/* Set not more than 4 bytes of string to be *'s */
printf( "Before: %s\n", string );
_mbsnbset( string, '*', 4 ); // C4996
// Note; _mbsnbset is deprecated; consider _mbsnbset_s
printf( "After: %s\n", string );
}
```
### Output
```Output
Before: This is a test
After: **** is a test
```
## See also
[String Manipulation](../../c-runtime-library/string-manipulation-crt.md)<br/>
[_mbsnbcat, _mbsnbcat_l](mbsnbcat-mbsnbcat-l.md)<br/>
[_strnset, _strnset_l, _wcsnset, _wcsnset_l, _mbsnset, _mbsnset_l](strnset-strnset-l-wcsnset-wcsnset-l-mbsnset-mbsnset-l.md)<br/>
[_strset, _strset_l, _wcsset, _wcsset_l, _mbsset, _mbsset_l](strset-strset-l-wcsset-wcsset-l-mbsset-mbsset-l.md)<br/>
| 42.901786 | 435 | 0.705099 | eng_Latn | 0.914371 |
8a42b64e1d046256b6b18fc11340b3b128057da4 | 677 | md | Markdown | README.md | Grant-Visser/Girlcode-JavaScript-Workshop-Extensions | 36d25360c2eae85171eb342027e62d61e0fa4ebc | [
"Unlicense"
] | null | null | null | README.md | Grant-Visser/Girlcode-JavaScript-Workshop-Extensions | 36d25360c2eae85171eb342027e62d61e0fa4ebc | [
"Unlicense"
] | null | null | null | README.md | Grant-Visser/Girlcode-JavaScript-Workshop-Extensions | 36d25360c2eae85171eb342027e62d61e0fa4ebc | [
"Unlicense"
] | null | null | null | # README
This package will install the extensions required for the Girlcode Javascript workshop
## This extension pack contains
* vsCode Icons
* Prettier
* JavaScript code snippets
* Visual Studio IntelliCode
* Bracket Pair Colorizer
* IntelliSense for CSS class names in HTML
* Code Spell Checker
* Node.js Extension Pack
* :emojisense: 👍
* SmoothType
## Building the extension on your local environment
- <https://code.visualstudio.com/api/working-with-extensions/publishing-extension>
1. Make sure you have Node.js installed. Then run: `npm install -g vsce`
1. Then run: `vsce package`
This will geneate your .vsix file for the extension
| 26.038462 | 86 | 0.741507 | eng_Latn | 0.869154 |
8a4395cbee53536ceb5f5837e0b1d995ed50ee77 | 1,014 | md | Markdown | README-ja.md | Bhaskers-Blu-Org1/minishift101 | 024ad885804205e301e54699e6ea40195da5ffb7 | [
"Apache-2.0"
] | 10 | 2019-11-07T19:02:46.000Z | 2021-06-18T00:58:44.000Z | README-ja.md | IBMDeveloperUK/Minishift101 | 024ad885804205e301e54699e6ea40195da5ffb7 | [
"Apache-2.0"
] | 1 | 2019-09-30T09:41:25.000Z | 2019-09-30T09:41:25.000Z | README-ja.md | IBMDeveloperUK/Minishift101 | 024ad885804205e301e54699e6ea40195da5ffb7 | [
"Apache-2.0"
] | 21 | 2019-11-21T13:17:12.000Z | 2021-03-08T01:38:31.000Z | [See this lab in English](./README.md)
<img src="https://avatars1.githubusercontent.com/u/38341030?s=150&v=4">
# OpenShiftって何?
RedHat®OpenShift®は、エンタープライズセキュリティを備えたクラウドネイティブアプリケーション向けにKubernetesをサポートしています。 Kubernetesには優れたスケーラビリティ、ワークロードの移植性があります。また、ビジネスと開発者それぞれの課題を分離するため直感的に抽象化することができますが、クラスターのインストール、デプロイ、および運用を維持することは依然として大きな懸念事項です。
このリポジトリには、ローカルのOpenShiftクラスターを作成できるMinishiftを使用したOpenShiftの概念を理解するための実践的なワークショップが含まれています。
[![OpenShift Overview](https://www.openshift.com/hubfs/video_Red-Hat-OpenShift-overview.jpg)](https://www.youtube.com/watch?v=5dwMrFxq8sU)
## Minishiftの紹介
以下のワークショップでは、Minishiftを使用してOpenShiftシングルノードクラスター内でマイクロサービスを作成、デプロイ、管理するための一連のシナリオを実行します。 ラボを実行する前に、Minishiftが他の[前提条件]とともに正しくインストールされていることを確認してください。
- [Setup](./workshop/README-ja.md)
- [Lab 1 OpenShiftプロジェクトの作成](./workshop/Lab1/README-ja.md)
- [Lab 2 OpenShiftアプリケーションの作成](./workshop/Lab2/README-ja.md)
- [Lab 3 OpenShiftアプリケーションの管理](./workshop/Lab3/README-ja.md)
- [Lab 4 OpenShiftアプリケーションの公開](./workshop/Lab4/README-ja.md)
| 46.090909 | 208 | 0.828402 | yue_Hant | 0.703219 |
8a43e381c7e6e986c5bd9ad81353ea0c1b673645 | 3,607 | md | Markdown | support/windows-server/performance/user-defined-dcs-doesnt-run-as-scheduled.md | ChrisKibble/SupportArticles-docs | e79515edc9a2ef00c45965dfa2a1a0908f01374a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | support/windows-server/performance/user-defined-dcs-doesnt-run-as-scheduled.md | ChrisKibble/SupportArticles-docs | e79515edc9a2ef00c45965dfa2a1a0908f01374a | [
"CC-BY-4.0",
"MIT"
] | 1 | 2022-03-11T00:38:52.000Z | 2022-03-11T00:38:52.000Z | support/windows-server/performance/user-defined-dcs-doesnt-run-as-scheduled.md | ChrisKibble/SupportArticles-docs | e79515edc9a2ef00c45965dfa2a1a0908f01374a | [
"CC-BY-4.0",
"MIT"
] | 1 | 2022-01-05T10:38:07.000Z | 2022-01-05T10:38:07.000Z | ---
title: User-defined data collector set doesn't run as scheduled
description: This article provides a workaround for an issue in which a user-defined data collector set that is configured to run on a schedule does not run.
ms.date: 12/4/2020
author: v-tappelgate
ms.author: v-tappelgate
manager: dcscontentpm
audience: itpro
ms.topic: troubleshooting
ms.prod: windows-server
localization_priority: medium
ms.reviewer: kaushika
ms.custom: sap:kerberos-authentication, csstroubleshoot
ms.technology: windows-server-performance
---
# User-defined data collector set doesn't run as scheduled
This article provides a workaround for an issue in which a user-defined data collector set that is configured to run on a schedule does not run.
_Applies to:_ Windows Server 2019 - all editions, Windows 10 version 1909 - all editions, Windows 10 version 1903 - all editions, Windows 10 version 1809 - all editions, Windows 10 version 1803 - all editions, Windows 10 version 1709 - all editions, Windows 10 version 1703 - all editions
## Symptoms
In the Computer Management console in one of the affected versions of Windows, you create a data collector set in the **Performance** > **Data Collector Sets** > **User Defined** folder. You configure a schedule as part of the data collector set definition.
During the scheduled running time, you notice that Performance Monitor does not start collecting data. If you configured the data collector set to save data to a file, the file isn't created and no data is saved. In Task Scheduler, the task history indicates that the task ran successfully. However, the task didn't actually do anything.
In Task Scheduler, if you open the scheduled task and then select **Actions**, the actions list contains **Custom Handler**.
:::image type="content" source="./media/user-defined-dcs-doesnt-run-as-scheduled/scheduled-task-actions-list.png" alt-text="The action of the scheduled task isn't configured correctly.":::
The list doesn't contain the expected action, **Start a program**, which includes the specific commands and arguments.
> [!NOTE]
> In the Task Scheduler Library, tasks for data collector sets appear by default in **Microsoft** > **Windows** > **PLA**.
## Cause
Starting in Windows 10 version 1703 and Windows Server 1703, the way that scheduled tasks are automatically created for data collector sets was changed. Because of the change, the actions for these tasks aren't created correctly.
## Resolution
This issue is fixed in Windows 10, version 2004 and later versions and in Windows Server, version 2004 and later versions.
## Workaround
You can manually fix the scheduled task that is associated with a data collector set. To do this, follow these steps:
1. In Task Scheduler, do one of the following to open the Properties dialog box of the affected task:
- If the task appears in the **Active tasks** list in Task Scheduler, double-click the task. Then in the detailed task list, right-click the task and select **Properties**.
- Go to **Task Scheduler Library** > **Microsoft** > **Windows** > **PLA**, right-click the task, and then select **Properties**.
2. Select **Actions**, select **Custom Handler**, and then select **Delete**.
3. Select **New**.
4. In **Program/script**, type the following string:
```cmd
C:\windows\system32\rundll32.exe
```
5. In **Add arguments**, type the following string:
```cmd
C:\windows\system32\pla.dll,PlaHost "{Name}" "$(Arg0)"
```
> [!NOTE]
> In this string, {*Name*} represents the name of the data collector set.
6. Select **OK**.
| 49.410959 | 337 | 0.748822 | eng_Latn | 0.99344 |
8a44c241c5fffef1f5878bbbbae21ab711279a10 | 15,054 | md | Markdown | doc/release-notes/sold/release-notes-0.12.2.2.md | INTICOIN/SolD | cfa2f3a96b0f8831fee63c70203af17732181fe5 | [
"MIT"
] | null | null | null | doc/release-notes/sold/release-notes-0.12.2.2.md | INTICOIN/SolD | cfa2f3a96b0f8831fee63c70203af17732181fe5 | [
"MIT"
] | null | null | null | doc/release-notes/sold/release-notes-0.12.2.2.md | INTICOIN/SolD | cfa2f3a96b0f8831fee63c70203af17732181fe5 | [
"MIT"
] | null | null | null | SolD Core version 0.12.2.2
==========================
Release is now available from:
<https://www.sold.org/downloads/#wallets>
This is a new minor version release, bringing various bugfixes and other
improvements.
Please report bugs using the issue tracker at github:
<https://github.com/soldpay/sold/issues>
Upgrading and downgrading
=========================
How to Upgrade
--------------
If you are running an older version, shut it down. Wait until it has completely
shut down (which might take a few minutes for older versions), then run the
installer (on Windows) or just copy over /Applications/SolD-Qt (on Mac) or
soldd/sold-qt (on Linux). Because of the per-UTXO fix (see below) there is a
one-time database upgrade operation, so expect a slightly longer startup time on
the first run.
Downgrade warning
-----------------
### Downgrade to a version < 0.12.2.2
Because release 0.12.2.2 includes the per-UTXO fix (see below) which changes the
structure of the internal database, this release is not fully backwards
compatible. You will have to reindex the database if you decide to use any
previous version.
This does not affect wallet forward or backward compatibility.
Notable changes
===============
Per-UTXO fix
------------
This fixes a potential vulnerability, so called 'Corebleed', which was
demonstrated this summer at the Вrеаkіng Віtсоіn Соnfеrеnсе іn Раrіs. The DoS
can cause nodes to allocate excessive amounts of memory, which leads them to a
halt. You can read more about the fix in the original Bitcoin Core pull request
https://github.com/bitcoin/bitcoin/pull/10195
To fix this issue in SolD Core however, we had to backport a lot of other
improvements from Bitcoin Core, see full list of backports in the detailed
change log below.
Additional indexes fix
----------------------
If you were using additional indexes like `addressindex`, `spentindex` or
`timestampindex` it's possible that they are not accurate. Please consider
reindexing the database by starting your node with `-reindex` command line
option. This is a one-time operation, the issue should be fixed now.
InstantSend fix
---------------
InstantSend should work with multisig addresses now.
PrivateSend fix
---------------
Some internal data structures were not cleared properly, which could lead
to a slightly higher memory consumption over a long period of time. This was
a minor issue which was not affecting mixing speed or user privacy in any way.
Removal of support for local masternodes
----------------------------------------
Keeping a wallet with 1000 SOLd unlocked for 24/7 is definitely not a good idea
anymore. Because of this fact, it's also no longer reasonable to update and test
this feature, so it's completely removed now. If for some reason you were still
using it, please follow one of the guides and setup a remote masternode instead.
Dropping old (pre-12.2) peers
-----------------------------
Connections from peers with protocol lower than 70208 are no longer accepted.
Other improvements and bug fixes
--------------------------------
As a result of previous intensive refactoring and some additional fixes,
it should be possible to compile SolD Core with `--disable-wallet` option now.
This release also improves sync process and significantly lowers the time after
which `getblocktemplate` rpc becomes available on node start.
And as usual, various small bugs and typos were fixed and more refactoring was
done too.
0.12.2.2 Change log
===================
See detailed [change log](https://github.com/soldpay/sold/compare/v0.12.2.1...soldpay:v0.12.2.2) below.
### Backports:
- [`996f5103a`](https://github.com/soldpay/sold/commit/996f5103a) Backport #7056: Save last db read
- [`23fe35a18`](https://github.com/soldpay/sold/commit/23fe35a18) Backport #7756: Add cursor to iterate over utxo set, use this in `gettxoutsetinfo`
- [`17f2ea5d7`](https://github.com/soldpay/sold/commit/17f2ea5d7) Backport #7904: txdb: Fix assert crash in new UTXO set cursor
- [`2e54bd2e8`](https://github.com/soldpay/sold/commit/2e54bd2e8) Backport #7927: Minor changes to dbwrapper to simplify support for other databases
- [`abaf524f0`](https://github.com/soldpay/sold/commit/abaf524f0) Backport #7815: Break circular dependency main ↔ txdb
- [`02a6cef94`](https://github.com/soldpay/sold/commit/02a6cef94) Move index structures into spentindex.h
- [`d92b454a2`](https://github.com/soldpay/sold/commit/d92b454a2) Add SipHash-2-4 primitives to hash
- [`44526af95`](https://github.com/soldpay/sold/commit/44526af95) Use SipHash-2-4 for CCoinsCache index
- [`60e6a602e`](https://github.com/soldpay/sold/commit/60e6a602e) Use C++11 thread-safe static initializers in coins.h/coins.cpp
- [`753cb1563`](https://github.com/soldpay/sold/commit/753cb1563) Backport #7874: Improve AlreadyHave
- [`952383e16`](https://github.com/soldpay/sold/commit/952383e16) Backport #7933: Fix OOM when deserializing UTXO entries with invalid length
- [`e3b7ed449`](https://github.com/soldpay/sold/commit/e3b7ed449) Backport #8273: Bump `-dbcache` default to 300MiB
- [`94e01eb66`](https://github.com/soldpay/sold/commit/94e01eb66) Backport #8467: [Trivial] Do not shadow members in dbwrapper
- [`105fd1815`](https://github.com/soldpay/sold/commit/105fd1815) Use fixed preallocation instead of costly GetSerializeSize
- [`6fbe93aa7`](https://github.com/soldpay/sold/commit/6fbe93aa7) Backport #9307: Remove undefined FetchCoins method declaration
- [`6974f1723`](https://github.com/soldpay/sold/commit/6974f1723) Backport #9346: Batch construct batches
- [`4b4d22293`](https://github.com/soldpay/sold/commit/4b4d22293) Backport #9308: [test] Add CCoinsViewCache Access/Modify/Write tests
- [`a589c94a9`](https://github.com/soldpay/sold/commit/a589c94a9) Backport #9107: Safer modify new coins
- [`09b3e042f`](https://github.com/soldpay/sold/commit/09b3e042f) Backport #9310: Assert FRESH validity in CCoinsViewCache::BatchWrite
- [`ceb64fcd4`](https://github.com/soldpay/sold/commit/ceb64fcd4) Backport #8610: Share unused mempool memory with coincache
- [`817ecc03d`](https://github.com/soldpay/sold/commit/817ecc03d) Backport #9353: Add data() method to CDataStream (and use it)
- [`249db2776`](https://github.com/soldpay/sold/commit/249db2776) Backport #9999: [LevelDB] Plug leveldb logs to bitcoin logs
- [`cfefd34f4`](https://github.com/soldpay/sold/commit/cfefd34f4) Backport #10126: Compensate for memory peak at flush time
- [`ff9b2967a`](https://github.com/soldpay/sold/commit/ff9b2967a) Backport #10133: Clean up calculations of pcoinsTip memory usage
- [`567043d36`](https://github.com/soldpay/sold/commit/567043d36) Make DisconnectBlock and ConnectBlock static in validation.cpp
- [`9a266e68d`](https://github.com/soldpay/sold/commit/9a266e68d) Backport #10297: Simplify DisconnectBlock arguments/return value
- [`fc5ced317`](https://github.com/soldpay/sold/commit/fc5ced317) Backport #10445: Add test for empty chain and reorg consistency for gettxoutsetinfo.
- [`6f1997182`](https://github.com/soldpay/sold/commit/6f1997182) Add COMPACTSIZE wrapper similar to VARINT for serialization
- [`b06a6a2e7`](https://github.com/soldpay/sold/commit/b06a6a2e7) Fix use of missing self.log in blockchain.py
- [`8ed672219`](https://github.com/soldpay/sold/commit/8ed672219) Backport #10250: Fix some empty vector references
- [`afa96b7c1`](https://github.com/soldpay/sold/commit/afa96b7c1) Backport #10249: Switch CCoinsMap from boost to std unordered_map
- [`c81394b97`](https://github.com/soldpay/sold/commit/c81394b97) Backport #10195: Switch chainstate db and cache to per-txout model
- [`d4562b5e5`](https://github.com/soldpay/sold/commit/d4562b5e5) Fix CCoinsViewCache::GetPriority to use new per-utxo
- [`92bb65894`](https://github.com/soldpay/sold/commit/92bb65894) Fix address index to use new per-utxo DB
- [`9ad56fe18`](https://github.com/soldpay/sold/commit/9ad56fe18) SolD related fixes for per-utxo DB
- [`4f807422f`](https://github.com/soldpay/sold/commit/4f807422f) Backport #10550: Don't return stale data from CCoinsViewCache::Cursor()
- [`151c552c7`](https://github.com/soldpay/sold/commit/151c552c7) Backport #10537: Few Minor per-utxo assert-semantics re-adds and tweak
- [`06aa02ff6`](https://github.com/soldpay/sold/commit/06aa02ff6) Backport #10559: Change semantics of HaveCoinInCache to match HaveCoin
- [`549839a50`](https://github.com/soldpay/sold/commit/549839a50) Backport #10581: Simplify return values of GetCoin/HaveCoin(InCache)
- [`5b232161a`](https://github.com/soldpay/sold/commit/5b232161a) Backport #10558: Address nits from per-utxo change
- [`1a9add78c`](https://github.com/soldpay/sold/commit/1a9add78c) Backport #10660: Allow to cancel the txdb upgrade via splashscreen keypress 'q'
- [`4102211a3`](https://github.com/soldpay/sold/commit/4102211a3) Backport #10526: Force on-the-fly compaction during pertxout upgrade
- [`8780c762e`](https://github.com/soldpay/sold/commit/8780c762e) Backport #10985: Add undocumented -forcecompactdb to force LevelDB compactions
- [`4cd19913d`](https://github.com/soldpay/sold/commit/4cd19913d) Backport #10998: Fix upgrade cancel warnings
- [`371feda4c`](https://github.com/soldpay/sold/commit/371feda4c) Backport #11529: Avoid slow transaction search with txindex enabled
- [`cdb2b1944`](https://github.com/soldpay/sold/commit/cdb2b1944) build: quiet annoying warnings without adding new ones
- [`fee05dab9`](https://github.com/soldpay/sold/commit/fee05dab9) build: silence gcc7's implicit fallthrough warning
### Masternodes:
- [`312663b4b`](https://github.com/soldpay/sold/commit/312663b4b) Remove support for local masternodes (#1706)
### PrivateSend:
- [`7e96af4e6`](https://github.com/soldpay/sold/commit/7e96af4e6) Refactor PrivateSend (#1735)
- [`f4502099a`](https://github.com/soldpay/sold/commit/f4502099a) make CheckDSTXes() private, execute it on both client and server (#1736)
### InstantSend:
- [`4802a1fb7`](https://github.com/soldpay/sold/commit/4802a1fb7) Allow IS for all txes, not only for txes with p2pkh and data outputs (#1760)
- [`f37a64208`](https://github.com/soldpay/sold/commit/f37a64208) InstantSend txes should never qualify to be a 0-fee txes (#1777)
### DIP0001:
- [`3028af19f`](https://github.com/soldpay/sold/commit/3028af19f) post-DIP0001 cleanup (#1763)
- [`51b2c7501`](https://github.com/soldpay/sold/commit/51b2c7501) Fix WarningBitsConditionChecker (#1765)
### Network/Sync:
- [`5d58dd90c`](https://github.com/soldpay/sold/commit/5d58dd90c) Make sure to clear setAskFor in SolD submodules (#1730)
- [`328009749`](https://github.com/soldpay/sold/commit/328009749) fine-tune sync conditions in getblocktemplate (#1739)
- [`362becbcc`](https://github.com/soldpay/sold/commit/362becbcc) Bump MIN_PEER_PROTO_VERSION to 70208 (#1772)
- [`930afd7df`](https://github.com/soldpay/sold/commit/930afd7df) Fix mnp and mnv invs (#1775)
- [`63e306148`](https://github.com/soldpay/sold/commit/63e306148) Improve sync (#1779)
- [`a79c97248`](https://github.com/soldpay/sold/commit/a79c97248) Fix ProcessVerifyBroadcast (#1780)
### Build:
- [`c166ed39b`](https://github.com/soldpay/sold/commit/c166ed39b) Allow compilation with `--disable-wallet` (#1733)
- [`31bc9d4ee`](https://github.com/soldpay/sold/commit/31bc9d4ee) Show test progress for tests running in wine to avoid Travis timeout (#1740)
- [`32f21698e`](https://github.com/soldpay/sold/commit/32f21698e) Adjust tests to avoid Travis timeouts (#1745)
- [`837c4fc5d`](https://github.com/soldpay/sold/commit/837c4fc5d) Force rcc to use resource format version 1. (#1784)
### GUI:
- [`70cb2a4af`](https://github.com/soldpay/sold/commit/70cb2a4af) Fix traditional UI theme (#1741)
- [`e975f891c`](https://github.com/soldpay/sold/commit/e975f891c) Fix ru typo (#1742)
### Docs:
- [`bc8342558`](https://github.com/soldpay/sold/commit/bc8342558) Two small fixes in docs (#1746)
- [`9e7cc56cb`](https://github.com/soldpay/sold/commit/9e7cc56cb) Fix typo in release-notes.md (#1759)
- [`3f3705c47`](https://github.com/soldpay/sold/commit/3f3705c47) [Trivial] Typo/doc updates and RPC help formatting (#1758)
- [`e96da9f19`](https://github.com/soldpay/sold/commit/e96da9f19) move 0.12.2 release notes
- [`6915ee45e`](https://github.com/soldpay/sold/commit/6915ee45e) Bump version in README.md to 0.12.2 (#1774)
- [`0291604ad`](https://github.com/soldpay/sold/commit/0291604ad) Clarify usage of pointers and references in code (#1778)
### Other:
- [`ccbd5273e`](https://github.com/soldpay/sold/commit/ccbd5273e) bump to 0.12.3.0 (#1726)
- [`865b61b50`](https://github.com/soldpay/sold/commit/865b61b50) Unify GetNextWorkRequired (#1737)
- [`d1aeac1b2`](https://github.com/soldpay/sold/commit/d1aeac1b2) Spelling mistake in validation.cpp (#1752)
- [`442325b07`](https://github.com/soldpay/sold/commit/442325b07) add `maxgovobjdatasize` field to the output of `getgovernanceinfo` (#1757)
- [`c5ec2f82a`](https://github.com/soldpay/sold/commit/c5ec2f82a) Drop `IsNormalPaymentScript`, use `IsPayToPublicKeyHash` (#1761)
- [`f9f28e7c7`](https://github.com/soldpay/sold/commit/f9f28e7c7) De-bump to 0.12.2.2 (#1768)
- [`54186a159`](https://github.com/soldpay/sold/commit/54186a159) Make sure additional indexes are recalculated correctly in VerifyDB (#1773)
- [`86e6f0dd2`](https://github.com/soldpay/sold/commit/86e6f0dd2) Fix CMasternodeMan::ProcessVerify* logs (#1782)
Credits
=======
Thanks to everyone who directly contributed to this release:
- Alexander Block
- shade
- sidhujag
- thephez
- turbanoff
- Ilya Savinov
- UdjinM6
- Will Wray
As well as Bitcoin Core Developers and everyone that submitted issues,
reviewed pull requests or helped translating on
[Transifex](https://www.transifex.com/projects/p/sold/).
Older releases
==============
SolD was previously known as Darkcoin.
Darkcoin tree 0.8.x was a fork of Litecoin tree 0.8, original name was XCoin
which was first released on Jan/18/2014.
Darkcoin tree 0.9.x was the open source implementation of masternodes based on
the 0.8.x tree and was first released on Mar/13/2014.
Darkcoin tree 0.10.x used to be the closed source implementation of Darksend
which was released open source on Sep/25/2014.
SolD Core tree 0.11.x was a fork of Bitcoin Core tree 0.9,
Darkcoin was rebranded to SolD.
SolD Core tree 0.12.0.x was a fork of Bitcoin Core tree 0.10.
SolD Core tree 0.12.1.x was a fork of Bitcoin Core tree 0.12.
These release are considered obsolete. Old release notes can be found here:
- [v0.12.2](release-notes/sold/release-notes-0.12.2.md) released Nov/08/2017
- [v0.12.1](release-notes/sold/release-notes-0.12.1.md) released ???/??/2016
- [v0.12.0](release-notes/sold/release-notes-0.12.0.md) released ???/??/2015
- [v0.11.2](release-notes/sold/release-notes-0.11.2.md) released Mar/25/2015
- [v0.11.1](release-notes/sold/release-notes-0.11.1.md) released Feb/10/2015
- [v0.11.0](release-notes/sold/release-notes-0.11.0.md) released Jan/15/2015
- [v0.10.x](release-notes/sold/release-notes-0.10.0.md) released Sep/25/2014
- [v0.9.x](release-notes/sold/release-notes-0.9.0.md) released Mar/13/2014
| 57.678161 | 150 | 0.75289 | eng_Latn | 0.708729 |
8a454302ec29732a893b77d15f73fdc28b21d5e5 | 12,681 | md | Markdown | docs/user-guide/replication-controller.md | mcluseau/kubernetes | cf94ec6944fbec72954a6d56c6cb8183fe9b88fa | [
"Apache-2.0"
] | 6 | 2021-05-01T14:35:57.000Z | 2022-03-09T13:31:26.000Z | docs/user-guide/replication-controller.md | mcluseau/kubernetes | cf94ec6944fbec72954a6d56c6cb8183fe9b88fa | [
"Apache-2.0"
] | null | null | null | docs/user-guide/replication-controller.md | mcluseau/kubernetes | cf94ec6944fbec72954a6d56c6cb8183fe9b88fa | [
"Apache-2.0"
] | 3 | 2021-05-01T14:36:03.000Z | 2022-03-09T13:30:54.000Z | <!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- BEGIN STRIP_FOR_RELEASE -->
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<h2>PLEASE NOTE: This document applies to the HEAD of the source tree</h2>
If you are using a released version of Kubernetes, you should
refer to the docs that go with that version.
<strong>
The latest 1.0.x release of this document can be found
[here](http://releases.k8s.io/release-1.0/docs/user-guide/replication-controller.md).
Documentation for other releases can be found at
[releases.k8s.io](http://releases.k8s.io).
</strong>
--
<!-- END STRIP_FOR_RELEASE -->
<!-- END MUNGE: UNVERSIONED_WARNING -->
# Replication Controller
**Table of Contents**
<!-- BEGIN MUNGE: GENERATED_TOC -->
- [Replication Controller](#replication-controller)
- [What is a _replication controller_?](#what-is-a-replication-controller)
- [How does a replication controller work?](#how-does-a-replication-controller-work)
- [Pod template](#pod-template)
- [Labels](#labels)
- [Responsibilities of the replication controller](#responsibilities-of-the-replication-controller)
- [Common usage patterns](#common-usage-patterns)
- [Rescheduling](#rescheduling)
- [Scaling](#scaling)
- [Rolling updates](#rolling-updates)
- [Multiple release tracks](#multiple-release-tracks)
- [API Object](#api-object)
<!-- END MUNGE: GENERATED_TOC -->
## What is a _replication controller_?
A _replication controller_ ensures that a specified number of pod "replicas" are running at any one time. If there are too many, it will kill some. If there are too few, it will start more. Unlike in the case where a user directly created pods, a replication controller replaces pods that are deleted or terminated for any reason, such as in the case of node failure or disruptive node maintenance, such as a kernel upgrade. For this reason, we recommend that you use a replication controller even if your application requires only a single pod. Think of it similarly to a process supervisor, only it supervises multiple pods across multiple nodes instead of individual processes on a single node. A replication controller delegates local container restarts to some agent on the node (e.g., Kubelet or Docker).
As discussed in [life of a pod](pod-states.md), `ReplicationController` is *only* appropriate for pods with `RestartPolicy = Always`. (Note: If `RestartPolicy` is not set, the default value is `Always`.) `ReplicationController` should refuse to instantiate any pod that has a different restart policy. As discussed in [issue #503](http://issue.k8s.io/503#issuecomment-50169443), we expect other types of controllers to be added to Kubernetes to handle other types of workloads, such as build/test and batch workloads, in the future.
A replication controller will never terminate on its own, but it isn't expected to be as long-lived as services. Services may be composed of pods controlled by multiple replication controllers, and it is expected that many replication controllers may be created and destroyed over the lifetime of a service (for instance, to perform an update of pods that run the service). Both services themselves and their clients should remain oblivious to the replication controllers that maintain the pods of the services.
## How does a replication controller work?
### Pod template
A replication controller creates new pods from a template, which is currently inline in the `ReplicationController` object, but which we plan to extract into its own resource [#170](http://issue.k8s.io/170).
Rather than specifying the current desired state of all replicas, pod templates are like cookie cutters. Once a cookie has been cut, the cookie has no relationship to the cutter. There is no quantum entanglement. Subsequent changes to the template or even switching to a new template has no direct effect on the pods already created. Similarly, pods created by a replication controller may subsequently be updated directly. This is in deliberate contrast to pods, which do specify the current desired state of all containers belonging to the pod. This approach radically simplifies system semantics and increases the flexibility of the primitive, as demonstrated by the use cases explained below.
Pods created by a replication controller are intended to be fungible and semantically identical, though their configurations may become heterogeneous over time. This is an obvious fit for replicated stateless servers, but replication controllers can also be used to maintain availability of master-elected, sharded, and worker-pool applications. Such applications should use dynamic work assignment mechanisms, such as the [etcd lock module](https://coreos.com/docs/distributed-configuration/etcd-modules/) or [RabbitMQ work queues](https://www.rabbitmq.com/tutorials/tutorial-two-python.html), as opposed to static/one-time customization of the configuration of each pod, which is considered an anti-pattern. Any pod customization performed, such as vertical auto-sizing of resources (e.g., cpu or memory), should be performed by another online controller process, not unlike the replication controller itself.
### Labels
The population of pods that a replication controller is monitoring is defined with a [label selector](labels.md#label-selectors), which creates a loosely coupled relationship between the controller and the pods controlled, in contrast to pods, which are more tightly coupled to their definition. We deliberately chose not to represent the set of pods controlled using a fixed-length array of pod specifications, because our experience is that approach increases complexity of management operations, for both clients and the system.
The replication controller should verify that the pods created from the specified template have labels that match its label selector. Though it isn't verified yet, you should also ensure that only one replication controller controls any given pod, by ensuring that the label selectors of replication controllers do not target overlapping sets. If you do end up with multiple controllers that have overlapping selectors, you will have to manage the deletion yourself with --cascade=false until there are no controllers with an overlapping superset of selectors.
Note that replication controllers may themselves have labels and would generally carry the labels their corresponding pods have in common, but these labels do not affect the behavior of the replication controllers.
Pods may be removed from a replication controller's target set by changing their labels. This technique may be used to remove pods from service for debugging, data recovery, etc. Pods that are removed in this way will be replaced automatically (assuming that the number of replicas is not also changed).
Similarly, deleting a replication controller using the API does not affect the pods it created. Its `replicas` field must first be set to `0` in order to delete the pods controlled. (Note that the client tool, `kubectl`, provides a single operation, [delete](kubectl/kubectl_delete.md) to delete both the replication controller and the pods it controls. If you want to leave the pods running when deleting a replication controller, specify `--cascade=false`. However, there is no such operation in the API at the moment)
## Responsibilities of the replication controller
The replication controller simply ensures that the desired number of pods matches its label selector and are operational. Currently, only terminated pods are excluded from its count. In the future, [readiness](http://issue.k8s.io/620) and other information available from the system may be taken into account, we may add more controls over the replacement policy, and we plan to emit events that could be used by external clients to implement arbitrarily sophisticated replacement and/or scale-down policies.
The replication controller is forever constrained to this narrow responsibility. It itself will not perform readiness nor liveness probes. Rather than performing auto-scaling, it is intended to be controlled by an external auto-scaler (as discussed in [#492](http://issue.k8s.io/492)), which would change its `replicas` field. We will not add scheduling policies (e.g., [spreading](http://issue.k8s.io/367#issuecomment-48428019)) to the replication controller. Nor should it verify that the pods controlled match the currently specified template, as that would obstruct auto-sizing and other automated processes. Similarly, completion deadlines, ordering dependencies, configuration expansion, and other features belong elsewhere. We even plan to factor out the mechanism for bulk pod creation ([#170](http://issue.k8s.io/170)).
The replication controller is intended to be a composable building-block primitive. We expect higher-level APIs and/or tools to be built on top of it and other complementary primitives for user convenience in the future. The "macro" operations currently supported by kubectl (run, stop, scale, rolling-update) are proof-of-concept examples of this. For instance, we could imagine something like [Asgard](http://techblog.netflix.com/2012/06/asgard-web-based-cloud-management-and.html) managing replication controllers, auto-scalers, services, scheduling policies, canaries, etc.
## Common usage patterns
### Rescheduling
As mentioned above, whether you have 1 pod you want to keep running, or 1000, a replication controller will ensure that the specified number of pods exists, even in the event of node failure or pod termination (e.g., due to an action by another control agent).
### Scaling
The replication controller makes it easy to scale the number of replicas up or down, either manually or by an auto-scaling control agent, by simply updating the `replicas` field.
### Rolling updates
The replication controller is designed to facilitate rolling updates to a service by replacing pods one-by-one.
As explained in [#1353](http://issue.k8s.io/1353), the recommended approach is to create a new replication controller with 1 replica, scale the new (+1) and old (-1) controllers one by one, and then delete the old controller after it reaches 0 replicas. This predictably updates the set of pods regardless of unexpected failures.
Ideally, the rolling update controller would take application readiness into account, and would ensure that a sufficient number of pods were productively serving at any given time.
The two replication controllers would need to create pods with at least one differentiating label, such as the image tag of the primary container of the pod, since it is typically image updates that motivate rolling updates.
Rolling update is implemented in the client tool
[kubectl](kubectl/kubectl_rolling-update.md)
### Multiple release tracks
In addition to running multiple releases of an application while a rolling update is in progress, it's common to run multiple releases for an extended period of time, or even continuously, using multiple release tracks. The tracks would be differentiated by labels.
For instance, a service might target all pods with `tier in (frontend), environment in (prod)`. Now say you have 10 replicated pods that make up this tier. But you want to be able to 'canary' a new version of this component. You could set up a replication controller with `replicas` set to 9 for the bulk of the replicas, with labels `tier=frontend, environment=prod, track=stable`, and another replication controller with `replicas` set to 1 for the canary, with labels `tier=frontend, environment=prod, track=canary`. Now the service is covering both the canary and non-canary pods. But you can mess with the replication controllers separately to test things out, monitor the results, etc.
## API Object
Replication controller is a top-level resource in the kubernetes REST API. More details about the
API object can be found at: [ReplicationController API
object](https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_replicationcontroller).
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/replication-controller.md?pixel)]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
| 96.801527 | 911 | 0.79008 | eng_Latn | 0.997836 |
8a455c1c503008bcb0cd9ec24933b2c48e8813c0 | 3,749 | md | Markdown | README.md | hallywang/pil4 | 9fa10e52c4ed824bdb1000f5aa9a52ae9ccabb32 | [
"MIT"
] | 55 | 2020-01-06T07:55:52.000Z | 2022-03-30T04:35:23.000Z | README.md | hallywang/pil4 | 9fa10e52c4ed824bdb1000f5aa9a52ae9ccabb32 | [
"MIT"
] | 9 | 2020-09-10T09:34:20.000Z | 2022-02-14T11:46:26.000Z | README.md | hallywang/pil4 | 9fa10e52c4ed824bdb1000f5aa9a52ae9ccabb32 | [
"MIT"
] | 19 | 2020-04-24T03:46:57.000Z | 2022-03-10T13:24:31.000Z | # Lua-4th
Lua程序设计第四版习题答案(Pil4 Exercise Solutions)
## Part I. Basics
+ [Chapter01 : Getting Started](https://github.com/0kk470/Lua-4th/blob/master/chapter01/chapter01.lua)
+ [Chapter02 : Interlude: The Eight-Queen Puzzle](https://github.com/0kk470/Lua-4th/blob/master/chapter02/chapter02.lua)
+ [Chapter03 : Numbers](https://github.com/0kk470/Lua-4th/blob/master/chapter03/chapter03.lua)
+ [Chapter04 : Strings](https://github.com/0kk470/Lua-4th/blob/master/chapter04/chapter04.lua)
+ [Chapter05 : Tables](https://github.com/0kk470/Lua-4th/blob/master/chapter05/chapter05.lua)
+ [Chapter06 : Functions](https://github.com/0kk470/Lua-4th/blob/master/chapter06/chapter06.lua)
+ [Chapter07 : The External World](https://github.com/0kk470/Lua-4th/blob/master/chapter07/chapter07.lua)
+ [Chapter08 : Filling Some Gaps](https://github.com/0kk470/Lua-4th/blob/master/chapter08/chapter08.lua)
## Part II. Real Programming
+ [Chapter09 : Closures](https://github.com/0kk470/Lua-4th/blob/master/chapter09/chapter09.lua)
+ [Chapter10 : Pattern Matching](https://github.com/0kk470/Lua-4th/blob/master/chapter10/chapter10.lua)
+ [Chapter11 : Interlude: Most Frequent Words](https://github.com/0kk470/Lua-4th/blob/master/chapter11/chapter11.lua)
+ [Chapter12 : Date and Time](https://github.com/0kk470/Lua-4th/blob/master/chapter12/chapter12.lua)
+ [Chapter13 : Bits and Bytes](https://github.com/0kk470/Lua-4th/blob/master/chapter13/chapter13.lua)
+ [Chapter14 : Data Structures](https://github.com/0kk470/Lua-4th/blob/master/chapter14/chapter14.lua)
+ [Chapter15 : Data Files and Serialization (FIXME)](https://github.com/0kk470/Lua-4th/blob/master/chapter15/chapter15.lua)
+ [Chapter16 : Compilation, Execution, and Errors](https://github.com/0kk470/Lua-4th/blob/master/chapter16/chapter16.lua)
+ [Chapter17 : Modules and Packages](https://github.com/0kk470/Lua-4th/blob/master/chapter17/chapter17.lua)
## Part III. Lua-isms
+ [Chapter18 : Iterators and the Generic for](https://github.com/0kk470/Lua-4th/blob/master/chapter18/chapter18.lua)
+ [Chapter19 : Interlude: Markov Chain Algorithm](https://github.com/0kk470/Lua-4th/blob/master/chapter19/chapter19.lua)
+ [Chapter20 : Metatables and Metamethods](https://github.com/0kk470/Lua-4th/blob/master/chapter20/chapter20.lua)
+ [Chapter21 : Object-Oriented Programming](https://github.com/0kk470/Lua-4th/blob/master/chapter21/chapter21.lua)
+ [Chapter22 : The Environment](https://github.com/0kk470/Lua-4th/blob/master/chapter22/chapter22.lua)
+ [Chapter23 : Garbage](https://github.com/0kk470/Lua-4th/blob/master/chapter23/chapter23.lua)
+ [Chapter24 : Coroutines (TODO)](https://github.com/0kk470/Lua-4th/blob/master/chapter24/chapter24.lua)
+ [Chapter25 : Reflection (TODO)](https://github.com/0kk470/Lua-4th/blob/master/chapter25/chapter25.lua)
+ [Chapter26 : Interlude: Multithreading with Coroutines (TODO)](https://github.com/0kk470/Lua-4th/blob/master/chapter26/chapter26.lua)
## Part IV. C API
+ [Chapter27 : An Overview of the C API](https://github.com/0kk470/Lua-4th/blob/master/chapter27)
+ [Chapter28 : Extending Your Application](https://github.com/0kk470/Lua-4th/blob/master/chapter28)
+ [Chapter29 : Calling C from Lua](https://github.com/0kk470/Lua-4th/blob/master/chapter29)
+ [Chapter30 : Techniques for Writing C Functions](https://github.com/0kk470/Lua-4th/blob/master/chapter30)
+ [Chapter31 : User-Defined Types in C](https://github.com/0kk470/Lua-4th/blob/master/chapter31)
+ [Chapter32 : Managing Resources](https://github.com/0kk470/Lua-4th/blob/master/chapter32)
+ [Chapter33 : Threads and States](https://github.com/0kk470/Lua-4th/blob/master/chapter33)
### Others
+ [compile lua via visual studio](https://github.com/0kk470/lua-on-visual-studio) | 49.328947 | 135 | 0.76207 | yue_Hant | 0.84746 |
8a4562725a1203fb0c1b18da11b17d2917141589 | 4,434 | md | Markdown | content/blog/metrics-at-mybring/index.md | mitchiemt11/developer-site | 722f2a948667cfb1237004a53782f6efd6843e47 | [
"0BSD"
] | 15 | 2015-12-08T11:07:44.000Z | 2021-11-19T09:28:51.000Z | content/blog/metrics-at-mybring/index.md | mitchiemt11/developer-site | 722f2a948667cfb1237004a53782f6efd6843e47 | [
"0BSD"
] | 655 | 2015-12-08T14:58:19.000Z | 2022-03-31T20:37:32.000Z | content/blog/metrics-at-mybring/index.md | mitchiemt11/developer-site | 722f2a948667cfb1237004a53782f6efd6843e47 | [
"0BSD"
] | 10 | 2015-12-08T13:02:00.000Z | 2021-08-12T05:53:11.000Z | ---
layout: post
title: Metrics at Mybring
publishDate: 2017-03-03 13:51:43 +01:00
tags:
- metrics
authors:
- AnshikaKoul
- kaaveland
heroImage: images/many_graphs.png
---
![](images/many_graphs.png)
At Mybring, we collect a lot of metrics and we think they are incredibly useful and can be a lot of fun. At the end of the day, it's essential to understand our systems and users. Collecting metrics enables us to take informed decisions - which are based on facts and numbers rather than speculations. We get an overview of the health of our servers, changes in system behaviour are reported over a period of time, which helps us in discovering problems before they happen.
Collecting all the actions done by your systems and developers is really powerful. Imagine you have a dashboard that shows you the page load times for all the pages that recently got slower together with all your deploys. It would be really easy to track down which change that introduced a performance problem. This capability requires you to record both your deploys and your performance data. We don't know exactly which data about our systems that will be crucial to know, so we err on the side of caution and record almost everything we can think of. [This excellent presentation](https://www.youtube.com/watch?v=czes-oa0yik) by Coda Hale goes into many other good examples as to why you should be measuring things.
Other than tracking our application and servers, there are a bunch of other data which are fun to have -- like tracking pull requests and how often we are deploying/releasing to production. It's cool to see the trend of open pull requests, size of pull requests per repository to track down workflow issues. We can also use these numbers to check whether process changes make us more productive and faster.
The picture at the start of this post is a mosaic of graphs from a variety of systems that we have at Mybring. Today as we are mostly writing about metrics, we will focus on InfluxDB, Telegraf and Grafana.
InfluxDB is a time-series database. It is great for storing massive amounts of numerical data that is associated with timestamps. For example we store load averages, cpu utilisation, socket state, memory and many other things. We record this data for 40 servers, every 10 seconds. In one year the InfluxDB data on disk is only 35GB which means we will never have to delete this, which is nice. To read more about how this is possible you should check [this](https://docs.influxdata.com/influxdb/v1.2/concepts/insights_tradeoffs/) out.
We have [telegraf](https://docs.influxdata.com/telegraf/v1.2/) installed on every server, collecting metrics every 10 seconds. To instrument applications, we use a home brewed metrics microlibrary to send data asynchronously to InfluxDB. We do this so that requests to our applications won't fail if we can't write to InfluxDB for some reason. Additionally our scripts that we use to deploy and release applications, also send data to InfluxDB. This lets us find out how fast our deploys are, how often we do rollbacks and a number of other interesting things.
[Grafana](http://grafana.org/) is a tool for visualization of timeseries-data, vis-à-vis server metrics and application metrics. Most of the graphs from above picture are screenshots of grafana. It integrates very nicely with InfluxDB and also supports a number of other backends such as elasticsearch and graphite.
![](images/system_info.png)
We have created a lot of different dashboards in grafana, the one pictured above is a big picture kind of look on our servers. We use it to investigate performance on the OS level. We have stats about sockets on this dashboard because it is an important resource to track, since it is difficult to debug servers that are out of sockets.
Dashboards are really easy to create with grafana, so we have a lot of them. Some of them are created while debugging production issues. Having all the data in the same view makes it much easier to correlate symptoms with underlying problems. It also supports annotating dashboards with text, which makes these dashboards that are created during outages useful for real time status updates, postmortems and investigating how we could have detected the problem before it occurred.
There are tools available today which makes it really easy to collect and investigate a lot of metric data so there is really no reason not to.
| 123.166667 | 720 | 0.797474 | eng_Latn | 0.999804 |
8a458a4f670ba1799fe3ec146b94830e314094ef | 1,063 | md | Markdown | README.md | Callwoola/php-split | 63beb34d5457ac51c8d18c76467e48d742595254 | [
"Apache-2.0"
] | 33 | 2015-12-03T10:31:25.000Z | 2021-11-25T11:08:08.000Z | README.md | Callwoola/php-split | 63beb34d5457ac51c8d18c76467e48d742595254 | [
"Apache-2.0"
] | 2 | 2017-10-09T11:42:34.000Z | 2020-01-09T04:02:54.000Z | README.md | Callwoola/php-split | 63beb34d5457ac51c8d18c76467e48d742595254 | [
"Apache-2.0"
] | 15 | 2015-11-18T10:31:18.000Z | 2021-11-13T03:33:28.000Z | phpSplit php中文分词库
============================
[![Build Status](https://travis-ci.org/Callwoola/php-split.svg?branch=develop)](https://travis-ci.org/Callwoola/php-split)
### phpSplit 是一个基于php开发的中文分词库
居于Unicode编码词典的php分词器
* 只适用于php5,必要函数 iconv
* 本程序是使用RMM逆向匹配算法进行分词的,词库需要特别编译,本类里提供了 MakeDict() 方法
* 简单操作流程: SetSource -> StartAnalysis -> GetResult
* 对主词典使用特殊格式进行编码, 不需要载入词典到内存操作
### 使用
* 首先 确保使用php为5.4+
* 安装composer
```
composer install
```
```php
require __DIR__ .'/vendor/autoload.php';
$split = new \phpSplit\Split\Split();
var_dump($split->simple("您好 phpSplit"));
```
```php
array(3) {
[0] =>
string(0) ""
[1] =>
string(6) "您好"
[2] =>
string(8) "phpSplit"
}
```
### 分词结果后缀说明
```php
名词n、
时间词t、
处所词s、
方位词f、
数词m、
量词q、
区别词b、
代词r、
动词v、
形容词a、
状态词z、
副词d、
介词p、
连词c、
助词u、
语气词y、
叹词e、
拟声词o、
成语i、
习用语l、
简称j、
前接成分h、
后接成分k、
语素g、
非语素字x、
标点符号w
```
同事增加了以下3类标记
*专有名词的分类标记,即人名nr,地名ns,团体机关单位名称nt,其他专有名词nz;
*语素的子类标记,即名语素Ng,动语素Vg,形容语素Ag,时语素Tg,副语素Dg等;
*动词和形容词的子类标记,即名动词vn(具有名词特性的动词),名形词an(具有名词特性的形容词),副动词vd(具有副词特性的动词),副形词ad(具有副词特性的形容词)
合计约40个左右。
欢迎大家完善
| 12.807229 | 122 | 0.677328 | yue_Hant | 0.572877 |
8a46a1857d5f8dbd9f7268264635b0fa0579ae8e | 78 | md | Markdown | README.md | ImagineCorp/tst-parser | ac900bf9a2206a9734015a0062ad69d79b78cf9a | [
"MIT"
] | null | null | null | README.md | ImagineCorp/tst-parser | ac900bf9a2206a9734015a0062ad69d79b78cf9a | [
"MIT"
] | null | null | null | README.md | ImagineCorp/tst-parser | ac900bf9a2206a9734015a0062ad69d79b78cf9a | [
"MIT"
] | null | null | null | # tst-parser
Custom JS object parser that fits our needs for The Story Teller
| 26 | 64 | 0.794872 | eng_Latn | 0.910851 |
8a46b2c206bb90a17d2de6866fb2835f61af411f | 11,078 | md | Markdown | articles/governance/blueprints/samples/HIPAA-HITRUST/deploy.md | changeworld/azure-docs.cs-cz | cbff9869fbcda283f69d4909754309e49c409f7d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/governance/blueprints/samples/HIPAA-HITRUST/deploy.md | changeworld/azure-docs.cs-cz | cbff9869fbcda283f69d4909754309e49c409f7d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/governance/blueprints/samples/HIPAA-HITRUST/deploy.md | changeworld/azure-docs.cs-cz | cbff9869fbcda283f69d4909754309e49c409f7d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Nasazení ukázky podrobného plánu HIPAA HITRUST
description: Nasazení kroků pro ukázku podrobného plánu HIPAA HITRUST včetně podrobností o parametru artefaktu podrobného plánu.
ms.date: 12/03/2019
ms.topic: sample
ms.openlocfilehash: a4277dbbf40a9ab8651598203e9279bca00eb164
ms.sourcegitcommit: 0947111b263015136bca0e6ec5a8c570b3f700ff
ms.translationtype: MT
ms.contentlocale: cs-CZ
ms.lasthandoff: 03/24/2020
ms.locfileid: "75472300"
---
# <a name="deploy-the-hipaa-hitrust-blueprint-sample"></a>Nasazení ukázky podrobného plánu HIPAA HITRUST
Chcete-li nasadit ukázku podrobného plánu HIPAA HITRUST, je třeba podniknout následující kroky:
> [!div class="checklist"]
> - Vytvoření nového podrobného plánu z ukázky
> - Označení kopie ukázky jako **publikované**
> - Přiřazení kopie podrobného plánu k existujícímu předplatnému
Pokud nemáte předplatné Azure, vytvořte si [bezplatný účet,](https://azure.microsoft.com/free) než začnete.
## <a name="create-blueprint-from-sample"></a>Vytvoření podrobného plánu z ukázky
Nejprve implementujte ukázku podrobného plánu vytvořením nového podrobného plánu ve vašem prostředí pomocí ukázky jako startéru.
1. V levém podokně vyberte **Všechny služby** a vyhledejte a vyberte **zásady.** Na stránce **Zásady** vyberte **Podrobné plány**.
1. Na stránce **Začínáme** vlevo vyberte tlačítko **Vytvořit** v části _Vytvořit podrobný plán_.
1. Najděte ukázku podrobného plánu **HIPAA HITRUST** v části _Další ukázky_ a vyberte **Použít tuto ukázku**.
1. Zadejte _základy ukázky_ podrobného plánu:
- **Název podrobného plánu**: Zadejte název pro kopii ukázky podrobného plánu.
- **Umístění definice**: Použijte tři tečky a vyberte skupinu pro správu, do které chcete uložit kopii vzorku.
1. Vyberte kartu _Artefakty_ v horní části stránky nebo **Další: Artefakty** v dolní části stránky.
1. Zkontrolujte seznam artefaktů, které tvoří ukázku podrobného plánu. Mnoho artefaktů má parametry, které budeme definovat později. Po dokončení revize ukázky podrobného plánu vyberte **Uložit koncept.**
## <a name="publish-the-sample-copy"></a>Publikování ukázkové kopie
Vaše kopie ukázky podrobného plánu byla nyní vytvořena ve vašem prostředí. Je vytvořen v režimu **konceptu** a musí být **publikovánpřed** jeho přiřazením a nasazením. Kopii ukázky podrobného plánu lze přizpůsobit vašemu prostředí a potřebám, ale tato změna ji může přesunout od standardu.
1. V levém podokně vyberte **Všechny služby** a vyhledejte a vyberte **zásady.** Na stránce **Zásady** vyberte **Podrobné plány**.
1. Vyberte stránku **Definice podrobného plánu** vlevo. Pomocí filtrů vyhledejte kopii ukázky podrobného plánu a vyberte ji.
1. V horní části stránky vyberte **Publikovat podrobný plán.** Na nové stránce vpravo zadejte **verzi** pro kopii ukázky podrobného plánu. Tato vlastnost je užitečná, pokud provedete změnu později. Zadejte **poznámky ke změně,** například "První verze publikovaná z ukázky podrobného plánu HITRUST HIPAA". Pak vdolní části stránky vyberte **Publikovat.**
## <a name="assign-the-sample-copy"></a>Přiřazení ukázkové kopie
Jakmile je kopie ukázky podrobného plánu úspěšně **publikována**, lze ji přiřadit k předplatnému v rámci skupiny pro správu, do které byla uložena. Tento krok je, kde jsou k dispozici parametry, aby každé nasazení kopie ukázky podrobného plánu jedinečné.
1. V levém podokně vyberte **Všechny služby** a vyhledejte a vyberte **zásady.** Na stránce **Zásady** vyberte **Podrobné plány**.
1. Vyberte stránku **Definice podrobného plánu** vlevo. Pomocí filtrů vyhledejte kopii ukázky podrobného plánu a vyberte ji.
1. V horní části stránky definice podrobného plánu vyberte **Přiřadit podrobný plán.**
1. Zadejte hodnoty parametrů pro přiřazení podrobného plánu:
- Základy
- **Odběry:** Vyberte jedno nebo více předplatných, které jsou ve skupině pro správu, do které jste uložili kopii ukázky podrobného plánu. Pokud vyberete více než jedno předplatné, bude pro každé z nich vytvořeno přiřazení pomocí zadaných parametrů.
- **Název přiřazení**: Název je předem vyplněný na základě názvu podrobného plánu.
Změňte podle potřeby nebo odejděte tak, jak je.
- **Umístění**: Vyberte oblast pro spravovanou identitu, která má být vytvořena. Podrobný plán Azure Blueprint používá tuto spravovanou identitu k aplikaci všech artefaktů v přiřazené podrobného plánu. Další informace najdete v tématu [spravované identity pro prostředky Azure](../../../../active-directory/managed-identities-azure-resources/overview.md).
- **Verze definice podrobného plánu**: Vyberte **publikovanou** verzi ukázky podrobného plánu.
- Přiřazení zámku
Vyberte nastavení zámku podrobného plánu pro vaše prostředí. Další informace naleznete v tématu [uzamčení zdrojů plánu](../../concepts/resource-locking.md).
- Spravovaná identita
Ponechte výchozí možnost spravované identity _přiřazenou systému._
- Parametry artefaktů
Parametry definované v této části platí pro artefakt, pod kterým je definován. Tyto parametry jsou [dynamické parametry,](../../concepts/parameters.md#dynamic-parameters) protože jsou definovány během přiřazení podrobného plánu. Úplný seznam nebo parametry artefaktu a jejich popisy naleznete v [tabulce parametrů artefaktu](#artifact-parameters-table).
1. Po zadání všech parametrů **vyberte** Přiřadit v dolní části stránky. Přiřazení podrobného plánu je vytvořen a artefakt nasazení začíná. Nasazení trvá zhruba hodinu. Chcete-li zkontrolovat stav nasazení, otevřete přiřazení podrobného plánu.
> [!WARNING]
> Služba Azure Blueprints a integrované ukázky podrobných plánů jsou **zdarma**. Prostředky Azure jsou [oceněny podle produktu](https://azure.microsoft.com/pricing/). Pomocí [cenové kalkulačky](https://azure.microsoft.com/pricing/calculator/) můžete odhadnout náklady na spuštění prostředků nasazených v této ukázce podrobného plánu.
## <a name="artifact-parameters-table"></a>Tabulka parametrů artefaktu
V následující tabulce je uveden seznam parametrů artefaktu podrobného plánu:
Název artefaktu|Typ artefaktu|Název parametru|Popis|
|-|-|-|-|
|\[Náhled:\]Nasazení agenta analýzy protokolů pro virtuální počítače s Linuxem |Přiřazení zásad |Pracovní prostor Log Analytics pro virtuální počítače s Linuxem |Další informace najdete [v tématu Vytvoření pracovního prostoru Analýzy protokolů na webu Azure Portal](../../../../azure-monitor/learn/quick-create-workspace.md). |
|\[Náhled:\]Nasazení agenta analýzy protokolů pro virtuální počítače s Linuxem |Přiřazení zásad |Volitelné: Seznam imitek virtuálních počítačů, které podporují operační systém Linux pro přidání do oboru |Prázdné pole může být použito k označení žádné volitelné parametry:`[]` |
|\[Náhled\]: Nasazení agenta analýzy protokolů pro virtuální servery Windows |Přiřazení zásad |Volitelné: Seznam iimages virtuálních aplikací, které podporují operační systém Windows přidat do oboru |Prázdné pole může být použito k označení žádné volitelné parametry:`[]` |
|\[Náhled\]: Nasazení agenta analýzy protokolů pro virtuální servery Windows |Přiřazení zásad |Pracovní prostor Log Analytics pro virtuální servery Windows |Další informace najdete [v tématu Vytvoření pracovního prostoru Analýzy protokolů na webu Azure Portal](../../../../azure-monitor/learn/quick-create-workspace.md). |
|\[Náhled\]: Auditování ovládacích prvků HITRUST HIPAA a nasazení konkrétních rozšíření virtuálních her pro podporu požadavků na audit |Přiřazení zásad |ID pracovního prostoru Analýzy protokolů, pro které by měly být virtuální počítače nakonfigurované |Toto je ID (GUID) pracovního prostoru Analýzy protokolů, pro které by měly být virtuální počítače nakonfigurovány. |
|\[Náhled\]: Auditování ovládacích prvků HITRUST HIPAA a nasazení konkrétních rozšíření virtuálních her pro podporu požadavků na audit |Přiřazení zásad |Seznam typů prostředků, které by měly mít povoleny diagnostické protokoly |Seznam typů prostředků, které mají být auditovány, pokud není povoleno nastavení diagnostického protokolu. Přijatelné hodnoty najdete na [schémata diagnostických protokolů Azure Monitor](../../../../azure-monitor/platform/diagnostic-logs-schema.md#supported-log-categories-per-resource-type). |
|\[Náhled\]: Auditování ovládacích prvků HITRUST HIPAA a nasazení konkrétních rozšíření virtuálních her pro podporu požadavků na audit |Přiřazení zásad |Skupina Administrators |Skupiny. Příklad: `Administrator; myUser1; myUser2` |
|\[Náhled\]: Auditování ovládacích prvků HITRUST HIPAA a nasazení konkrétních rozšíření virtuálních her pro podporu požadavků na audit |Přiřazení zásad |Seznam uživatelů, kteří by měli být zahrnuti do skupiny Správci virtuálních počítačů systému Windows |Středník-oddělený seznam členů, které by měly být zahrnuty do místní skupiny Administrators. Příklad: `Administrator; myUser1; myUser2` |
|Nasazení rozšířené ochrany před hrozbami na účtech úložiště |Přiřazení zásad |Účinek |Informace o účincích zásad najdete na webu [Understand Azure Policy Effects](../../../policy/concepts/effects.md). |
|Nasazení auditování na serverech SQL |Přiřazení zásad |Hodnota ve dnech retenčního období (0 označuje neomezené uchovávání) |Retenční dny (nepovinné, _180_ dní, pokud není uvedeno jinak) |
|Nasazení auditování na serverech SQL |Přiřazení zásad |Název skupiny prostředků pro účet úložiště pro auditování serveru SQL |Auditování zapisuje události databáze do protokolu auditu v účtu azure úložiště (účet úložiště se vytvoří v každé oblasti, kde se vytvoří SQL Server, který je sdílen všemi servery v této oblasti). Důležité – pro správnou funkci auditování neodstraňujte ani nepřejmenovávejte skupinu prostředků nebo účty úložiště. |
|Nasazení diagnostických nastavení pro skupiny zabezpečení sítě |Přiřazení zásad |Předpona účtu úložiště pro diagnostiku skupiny zabezpečení sítě |Tato předpona je kombinována s umístěním skupiny zabezpečení sítě a tvoří název vytvořeného účtu úložiště. |
|Nasazení diagnostických nastavení pro skupiny zabezpečení sítě |Přiřazení zásad |Název skupiny prostředků pro účet úložiště pro diagnostiku skupiny zabezpečení sítě (musí existovat) |Skupina prostředků, ve které je vytvořen účet úložiště. Tato skupina prostředků již musí existovat. |
## <a name="next-steps"></a>Další kroky
Nyní, když jste zkontrolovali kroky nasazení ukázky HITRUST HIPAA, navštivte následující články, kde se dozvíte o přehledu a mapování ovládacích prvku:
> [!div class="nextstepaction"]
> [HITRUST HIPAA plány - Přehled](./index.md)
> [HITRUST HIPAA plány - Mapování řízení](./control-mapping.md)
Další články věnované podrobným plánům a postupu jejich využití:
- Přečtěte si o [životním cyklu podrobného plánu](../../concepts/lifecycle.md).
- Pochopit, jak používat [statické a dynamické parametry](../../concepts/parameters.md).
- Naučte se přizpůsobit [pořadí sekvencování podrobných plánů](../../concepts/sequencing-order.md).
- Zjistěte, jak využít [zamykání prostředků podrobného plánu](../../concepts/resource-locking.md).
- Přečtěte si, jak [aktualizovat existující přiřazení](../../how-to/update-existing-assignments.md). | 89.33871 | 522 | 0.794367 | ces_Latn | 0.99996 |
8a486ce6007434d4e18ff8196efade685949b93d | 1,231 | md | Markdown | docs/parallel/openmp/reference/omp-unset-nest-lock.md | svick/cpp-docs | 76fd30ff3e0352e2206460503b61f45897e60e4f | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-04-18T12:54:41.000Z | 2021-04-18T12:54:41.000Z | docs/parallel/openmp/reference/omp-unset-nest-lock.md | Mikejo5000/cpp-docs | 4b2c3b0c720aef42bce7e1e5566723b0fec5ec7f | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/parallel/openmp/reference/omp-unset-nest-lock.md | Mikejo5000/cpp-docs | 4b2c3b0c720aef42bce7e1e5566723b0fec5ec7f | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-10-10T07:37:30.000Z | 2019-06-21T15:18:07.000Z | ---
title: "omp_unset_nest_lock | Microsoft Docs"
ms.custom: ""
ms.date: "11/04/2016"
ms.technology: ["cpp-parallel"]
ms.topic: "reference"
f1_keywords: ["omp_unset_nest_lock"]
dev_langs: ["C++"]
helpviewer_keywords: ["omp_unset_nest_lock OpenMP function"]
ms.assetid: 1721d061-3f9c-45d7-b479-a665cd0a121d
author: "mikeblome"
ms.author: "mblome"
ms.workload: ["cplusplus"]
---
# omp_unset_nest_lock
Releases a nestable lock.
## Syntax
```
void omp_unset_nest_lock(
omp_nest_lock_t *lock
);
```
## Remarks
where,
`lock`
A variable of type [omp_nest_lock_t](../../../parallel/openmp/reference/omp-nest-lock-t.md) that was initialized with [omp_init_nest_lock](../../../parallel/openmp/reference/omp-init-nest-lock.md), owned by the thread and executing in the function.
## Remarks
For more information, see [3.2.4 omp_unset_lock and omp_unset_nest_lock Functions](../../../parallel/openmp/3-2-4-omp-unset-lock-and-omp-unset-nest-lock-functions.md).
## Example
See [omp_init_nest_lock](../../../parallel/openmp/reference/omp-init-nest-lock.md) for an example of using `omp_unset_nest_lock`.
## See Also
[Functions](../../../parallel/openmp/reference/openmp-functions.md) | 31.564103 | 251 | 0.705118 | eng_Latn | 0.552116 |
8a48c033d5e6d28522aa21263e8dfe6b233b19bd | 6,584 | md | Markdown | _creatures/strahd-von-zarovich.md | Savion-NEU/whatever | 65954ef79b92170124bc55e8387f17ab41d00f6e | [
"MIT"
] | null | null | null | _creatures/strahd-von-zarovich.md | Savion-NEU/whatever | 65954ef79b92170124bc55e8387f17ab41d00f6e | [
"MIT"
] | null | null | null | _creatures/strahd-von-zarovich.md | Savion-NEU/whatever | 65954ef79b92170124bc55e8387f17ab41d00f6e | [
"MIT"
] | null | null | null | ---
layout: creature
name: "Strahd von Zarovich"
tags: [medium, undead, cr15, curse-of-strahd]
page_number: 239
---
**Medium undead (shapechanger), lawful evil**
**Armor Class** 16 (natural armor)
**Hit Points** 144 (17d8+68)
**Speed** 30 ft.
| STR | DEX | CON | INT | WIS | CHA |
|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|
| 18 (+4) | 18 (+4) | 18 (+4) | 20 (+5) | 15 (+2) | 18 (+4) |
**Saving Throws** Dex +9, Wis +7, Cha +9
**Skills** Arcana +15, Perception +12, Religion +10, Stealth +14
**Damage Resistances** necrotic; bludgeoning, piercing, and slashing from nonmagical attacks
**Senses** darkvision 120 ft.
**Languages** Abyssal, Common, Draconic, Elvish, Giant, Infernal
**Challenge** 15 (13,000 XP)
***Shapechanger.*** If Strahd isn't in running water or sunlight, he can use his action to polymorph into a Tiny bat, a Medium wolf, or a Medium cloud of mist, or back into his true form.
>While in bat or wolf form, Strahd can't speak. In bat form, his walking speed is 5 feet, and he has a flying speed of 30 feet. In wolf form, his walking speed is 40 feet. His statistics, other than his size and speed, are unchanged. Anything he is wearing transforms with him, but nothing he is carrying does. He reverts to his true form if he dies.
>While in mist form, Strahd can't take any actions, speak, or manipulate objects. He is weightless, has a flying speed of 30 feet, can hover, and can enter a hostile creature's space and stop there. In addition, if air can pass through a space, the mist can do so without squeezing, and he can't pass through water. He has advantage on Strength, Dexterity, and Constitution saving throws, and it is immune to all nonmagical damage, except the damage he takes from sunlight.
***Legendary Resistance (3/Day).*** If Strahd fails a saving throw, he can choose to succeed instead.
***Misty Escape.*** When he drops to 0 hit points outside his coffin, Strahd transforms into a cloud of mist (as in the Shapechanger trait) instead of falling unconscious, provided that he isn't in running water or sunlight. If he can't transform, he is destroyed.
>While he has 0 hit points in mist form, he can't revert to his vampire form, and he must reach his coffin within 2 hours or be destroyed. Once in his coffin, he reverts to his vampire form. He is then paralyzed until he regains at least 1 hit point. After spending 1 hour in his coffin with 0 hit points, he regains 1 hit point.
***Regeneration.*** Strahd regains 20 hit points at the start of his turn if he has at least 1 hit point and isn't in running water or sunlight. If he takes radiant damage or damage from holy water, this trait doesn't function at the start of his next turn.
***Spellcasting.*** Strahd is a 9th-level spellcaster. His spellcasting ability is Intelligence (spell save DC 18, +10 to hit with spell attacks). Strahd has the following wizard spells prepared:
* Cantrips (at will): mage hand, prestidigitation, ray of frost
* 1st level (4 slots): comprehend languages, fog cloud, sleep
* 2nd level (3 slots): detect thoughts, gust of wind, mirror image
* 3rd level (3 slots): animate dead, fireball, nondetection
* 4th level (3 slots): blight, greater invisibility, polymorph
* 5th level (1 slot): animate objects, scrying
***Spider Climb.*** Strahd can climb difficult surfaces, including upside down on ceilings, without needing to make an ability check.
***Vampire Weaknesses.*** Strahd has the following flaws.
>Forbiddance: He can't enter a residence without an invitation from one of the occupants.
>Harmed by Running Water: He takes 20 acid damage if he ends his turn in running water.
>Stake to the Heart: If a piercing weapon made of wood is driven into his heart while he is incapacitated in his coffin, he is paralyzed until the stake is removed.
>Sunlight Hypersensitivity: While in sunlight, Strahd takes 20 radiant damage at the start of his turn, and he has disadvantage on attack rolls and ability checks.
**Actions**
***Multiattack (Vampire Form Only).*** Strahd makes two attacks, only one of which can be a bite attack.
***Unarmed Strike (Vampire Form Only).*** Melee Weapon Attack: +9 to hit, reach 5 ft., one creature. Hit: 8 (1d8+4) bludgeoning damage, plus 14 (4d6) necrotic damage. If the target is a creature, Strahd can grapple it (escape DC 18) instead of dealing the bludgeoning damage.
***Bite (Bat or Vampire Form Only).*** Melee Weapon Attack: +9 to hit, reach 5 ft., one willing creature, or a creature that is grappled by Strahd, incapacitated, or restrained. Hit: 7 (1d6+4) piercing damage plus 10 (3d6) necrotic damage. The target's hit point maximum is reduced by an amount equal to the necrotic damage taken, and Strahd regains hit points equal to that amount. The reduction lasts until the target finishes a long rest. The target dies if its hit point maximum is reduced to 0. A humanoid slain in this way and then buried in the ground rises the following night as a vampire spawn under Strahd's control.
***Charm.*** Strahd targets one humanoid he can see within 30 ft. of him. If the target can see Strahd, the target must succeed on a DC 17 Wisdom saving throw against this magic or be charmed. The charmed target regards Strahd as a trusted friend to be heeded and protected. The target isn't under Strahd's control, but it takes Strahd's requests and actions in the most favorable way and lets Strahd bite it.
>Each time Strahd or his companions do anything harmful to the target, it can repeat the saving throw, ending the effect on itself on a success. Otherwise, the effect lasts 24 hours or until Strahd is destroyed, is on a different plane of existence than the target, or takes a bonus action to end the effect.
***Children of the Night (1/day).*** Strahd magically calls 2d4 swarms of bats or swarms rats, provided that the sun isn't up. While outdoors, Strahd can call 3d6 wolves instead. The called creatures arrive in 1d4 rounds, acting as allies of Strahd and obeying his spoken commands. The beasts remain for 1 hour, until Strahd dies, or until he dismisses them as a bonus action.
**Legendary Actions**
Strahd can take 3 legendary actions, choosing from the options below. Only one legendary action option can be used at a time, and only at the end of another creature's turn. Strahd regains spent legendary actions at the start of his turn.
***Move.*** Strahd moves up to his speed without provoking opportunity attacks.
***Unarmed Strike.*** Strahd makes one unarmed strike.
***Bite (Costs 2 Actions).*** Strahd makes one bite attack.
| 68.583333 | 628 | 0.744684 | eng_Latn | 0.998956 |
8a48d636dfb6140aa604f5898d5c26d29742a959 | 321 | md | Markdown | README.md | sandeepsaiii/palindrome | cddbabaaa9d6cfc00315a3078789b0c6d06c3856 | [
"Apache-2.0"
] | null | null | null | README.md | sandeepsaiii/palindrome | cddbabaaa9d6cfc00315a3078789b0c6d06c3856 | [
"Apache-2.0"
] | null | null | null | README.md | sandeepsaiii/palindrome | cddbabaaa9d6cfc00315a3078789b0c6d06c3856 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
int main()
{
int n,r,sum=0,temp;
printf("enter the number=");
scanf("%d",&n);
temp=n;
while(n>0)
{
r=n%10;
sum=(sum*10)+r;
n=n/0;
}
if(temp==sum)
printf("palindrome number ");
else
printf("not palindrome");
return 0;
return
}
kjkkjkj
| 13.956522 | 33 | 0.504673 | eng_Latn | 0.212454 |
8a492a7dc24504bc6d02552a0c5f4aaf2d64d5f9 | 126 | md | Markdown | content/pages/404.md | gcarling/bossylobster-blog | 723ce3226d6c4cd09476cf688938a416b199720b | [
"Apache-2.0"
] | 1 | 2021-04-09T17:30:52.000Z | 2021-04-09T17:30:52.000Z | content/pages/404.md | gcarling/bossylobster-blog | 723ce3226d6c4cd09476cf688938a416b199720b | [
"Apache-2.0"
] | 40 | 2015-01-07T00:49:33.000Z | 2022-02-07T19:31:32.000Z | content/pages/404.md | gcarling/bossylobster-blog | 723ce3226d6c4cd09476cf688938a416b199720b | [
"Apache-2.0"
] | 2 | 2019-05-10T03:53:39.000Z | 2020-12-03T20:24:33.000Z | ---
status: hidden
slug: 404
title: Oops
---
Sorry, this page does not exist.
Feel free to head back to the [main page](/).
| 12.6 | 45 | 0.666667 | eng_Latn | 0.995779 |
8a4958a920ba1d2ff38982136a691ecc0b27cc34 | 6,954 | md | Markdown | README.md | CSCfi/Attribute-Test-Service | bc7fd430876038b6938fb34b298eba1a7b00f2f2 | [
"MIT"
] | null | null | null | README.md | CSCfi/Attribute-Test-Service | bc7fd430876038b6938fb34b298eba1a7b00f2f2 | [
"MIT"
] | 8 | 2016-06-30T10:34:48.000Z | 2016-10-11T09:03:00.000Z | README.md | CSCfi/Attribute-Test-Service | bc7fd430876038b6938fb34b298eba1a7b00f2f2 | [
"MIT"
] | null | null | null | # SAML Attribute Test Service plugin for CakePHP
## Requirements
* apache2
* shibboleth service provider
* php >=5.5.9
* cakephp/cakephp : ~3.2
* friendsofcake/bootstrap-ui : ^0.5.0
## Functionalities
* Populates all active attributes from the /etc/shibboleth/attribute-map.xml
* Basic add/delete functionality for attributes
* Optional validation regex for attributes
* Comparation of received attributes against attributes in database with validation
* Stores names of released attributes and validation status for each individual user (persistent-id, schachomeorganization stored as received)
## Preconditions
Apache2 webserver installed with libapache2-mod-shib2
modify /etc/shibboleth/shibboleth2.xml
```
<SSO entityID="https://<YOUR_IDP>/idp/shibboleth"
SAML2
</SSO>
...
# Example below is for a test service registered to Haka-test federation.
# It also uses certificate from https://confluence.csc.fi/x/wQHcAQ to validate metadata.
<MetadataProvider type="XML" uri="https://haka.funet.fi/metadata/haka_test_metadata_signed.xml"
backingFilePath="haka_test_metadata_signed.xml" reloadInterval="7200">
<MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200"/>
<MetadataFilter type="Signature" certificate="/etc/ssl/certs/haka_testi_2015_sha2.crt"/>
</MetadataProvider>
...
# Configure keys and certificates which will be used with SAML messaging.
<CredentialResolver type="File" key="sp.key" certificate="sp.crt"/>
```
Protect application with shibboleth in Apache virtualhost configuration, this one uses lazy login.
```
<VirtualHost *:443>
DocumentRoot <DOCUMENT ROOT>
ServerAlias <SERVER_ALIAS>
ErrorLog /var/www/<YOUR_SITE>/log/error.log
CustomLog /var/www/<YOUR_SITE>/log/access.log combined
AllowEncodedSlashes On
SSLEngine on
<Location /www>
AuthType shibboleth
ShibRequireSession Off
require shibbolet
</Location>
</VirtualHost>
```
## Installation
### CakePHP
Download and install composer
```
curl -s https://getcomposer.org/installer | php
```
Create CakePHP project
```
php composer.phar create-project --prefer-dist cakephp/app www
or with global installation (used in these examples).
composer create-project --prefer-dist cakephp/app www
```
### Configure database
from just baked project directory www/config/app.php, replace following lines to use sqlite datasource.
```
'Datasources' => [
'default' => [
...
'driver' => 'Cake\Database\Driver\Sqlite',
'database' => '/var/www/<YOUR_SITE>/db/database.sqlite',
...
```
And make sure that cakephp has access to directory where database will be created (example below is too permissive).
```
mkdir db; chmod 777 db
```
### Install attribute-test-service plugin
```
# Change to your created project directory
cd www
composer require csc-it-center-for-science/attribute-test-service
# copy needed bootstrap and jquery files in place.
cp -r vendor/csc-it-center-for-science/attribute-test-service/webroot/js/* webroot/js/.
cp -r vendor/csc-it-center-for-science/attribute-test-service/webroot/css/* webroot/css/.
# Migrate database tables and load plugin
./bin/cake migrations migrate -p CscItCenterForScience/AttributeTestService
chmod 777 ../db/database.sqlite
./bin/cake plugin load -r CscItCenterForScience/AttributeTestService
```
### Configure Bootstrap framework
```
# Copy extra layout types to your project layouts directory
cp -R vendor/friendsofcake/bootstrap-ui/src/Template/Layout/examples src/Template/Layout/TwitterBootstrap
./bin/cake plugin load BootstrapUI
```
Make your AppView class extend BootstrapUI\View\UIView (src/View/AppView.php).
```
# use Cake\View\View;
use BootstrapUI\View\UIView;
...
# class AppView extends View
class AppView extends UIView
public function initialize() {
// Don't forget to call the parent::initialize()
parent::initialize();
}
```
### Authorization (Shibboleth handles the authentication)
To use Auth component with shibboleth SAML authentication. In your project 'src/Controller/AppController.php' modify accordingly.
```
public function initialize()
{
parent::initialize();
$this->loadComponent('RequestHandler');
$this->loadComponent('Flash');
$this->loadComponent('Auth',[
'authorize' => [
'Controller'
],
'loginAction' => [
'controller' => 'attribute/releases',
'action' => 'index'
],
'flash' => [
'element' => 'error',
'key' => 'auth'
],
]);
if ($this->request->env('Shib-Session-ID')!==null && $this->Auth->user('role')===null) :
$role = (strtolower($this->request->env('schachomeorganization'))=='csc.fi') ? 'admin' : 'user';
$this->Auth->setUser(array('username'=>$this->request->env('displayname'),
'email'=>$this->request->env('mail'),
'eppn'=>$this->request->env('edupersonprincipalname'),
'sn'=>$this->request->env('sn'),
'givenname'=>$this->request->env('givenname'),
'role'=>$role
));
elseif ($this->request->env('Shib-Session-ID')===null && $this->Auth->user('role')!==null) :
$this->Auth->logout();
endif;
$this->Auth->allow(['index','test','view']);
}
public function isAuthorized($user)
{
if(isset($user['role'])) :
if ($user['role']=='admin') :
return true;
endif;
endif;
return false;
}
```
Enable login/logout buttons in 'src/Template/Layout/TwitterBootstrap/dashboard.ctp'
```
<?php if ($this->request->session()->read('Auth.User.role') != null) : ?>
<a href="https://<?=$this->request->host();?>/Shibboleth.sso/Logout?return=https://<?=$this->request->host();?>/attribute/attributes/test" title="Logout" class="btn btn-default glyphicon glyphicon-log-out navbar-nav navbar-right"></a>
<?php else : ?>
<a href="https://<?=$this->request->host();?>/Shibboleth.sso/Login?target=https://<?=$this->request->host();?>/attribute/attributes/test&entityID=https://testidp.funet.fi/idp/shibboleth" title="Login" class="btn btn-default glyphicon glyphicon-log-in navbar-nav navbar-right"></a>
<?php endif; ?>
```
To show also Auth related flash messages, make sure you have both renders in your 'src/Template/Layout/TwitterBootstrap/dashboard.ctp'
```
echo $this->Flash->render();
echo $this->Flash->render('auth');
```
Now you should be good to go. Attribute plugin should be found from https://YOUR_SITE/attribute/attributes/index.
| 36.989362 | 282 | 0.650848 | eng_Latn | 0.501995 |
8a495f448212ab62ad89b36c7456c6be9636e307 | 1,674 | md | Markdown | docs/visio/windows_type-complextypevisio-xml.md | daniel-smith/office-developer-client-docs | e107924ec143a5aa5027c889cf53518d7bf267a7 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2019-11-06T15:25:52.000Z | 2021-09-01T19:32:58.000Z | docs/visio/windows_type-complextypevisio-xml.md | daniel-smith/office-developer-client-docs | e107924ec143a5aa5027c889cf53518d7bf267a7 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/visio/windows_type-complextypevisio-xml.md | daniel-smith/office-developer-client-docs | e107924ec143a5aa5027c889cf53518d7bf267a7 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: "Windows_Type complexType ('Visio XML')"
manager: soliver
ms.date: 03/09/2015
ms.audience: Developer
ms.topic: reference
localization_priority: Normal
ms.assetid: 2e8257df-4af0-aab1-a979-df9fa8a56f20
---
# Windows_Type complexType ('Visio XML')
## Type information
|||
|:-----|:-----|
|**Namespace** <br/> |https://schemas.microsoft.com/office/visio/2011/1/core <br/> |
|**Schema file** <br/> |VisioSchema15-2012-06-05.xsd <br/> |
|**Extension base** <br/> |None <br/> |
## Definition
```XML
<xs:complexType name="Windows_Type">
<xs:sequence>
<xs:element name="Window" type="Window_Type"
minOccurs="0"
maxOccurs="unbounded"
>
</xs:element>
</xs:sequence>
<xs:attribute name="ClientWidth"
type="xsd:unsignedShort"
/>
<xs:attribute name="ClientHeight"
type="xsd:unsignedShort"
/>
</xs:complexType>
```
## Elements and attributes
If the schema defines specific requirements, such as **sequence**, **minOccurs**, **maxOccurs**, and **choice**, see the definition section.
### Child elements
|**Element**|**Type**|**Description**|
|:-----|:-----|:-----|
|[Window](window-element-windows_type-complextypevisio-xml.md) <br/> |[Window_Type](window_type-complextypevisio-xml.md) <br/> ||
### Attributes
|**Attribute**|**Type**|**Required**|**Description**|**Possible values**|
|:-----|:-----|:-----|:-----|:-----|
|ClientHeight <br/> |xsd:unsignedShort <br/> |optional <br/> ||Values of the xsd:unsignedShort type. <br/> |
|ClientWidth <br/> |xsd:unsignedShort <br/> |optional <br/> ||Values of the xsd:unsignedShort type. <br/> |
| 25.363636 | 141 | 0.615293 | eng_Latn | 0.311723 |
8a49bc4fb2eff153ae2ed3f4d4d4f3ed452c390b | 2,002 | md | Markdown | interactions/external/remove/README.md | longnguyen2004/tsparticles | 2d4399b01ef9f77f4594ed5091652b3dbb6ee38e | [
"MIT"
] | null | null | null | interactions/external/remove/README.md | longnguyen2004/tsparticles | 2d4399b01ef9f77f4594ed5091652b3dbb6ee38e | [
"MIT"
] | null | null | null | interactions/external/remove/README.md | longnguyen2004/tsparticles | 2d4399b01ef9f77f4594ed5091652b3dbb6ee38e | [
"MIT"
] | null | null | null | [![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)
# tsParticles External Remove Interaction
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-interaction-external-remove/badge)](https://www.jsdelivr.com/package/npm/tsparticles-interaction-external-remove)
[![npmjs](https://badge.fury.io/js/tsparticles-interaction-external-remove.svg)](https://www.npmjs.com/package/tsparticles-interaction-external-remove)
[![npmjs](https://img.shields.io/npm/dt/tsparticles-interaction-external-remove)](https://www.npmjs.com/package/tsparticles-interaction-external-remove)
[tsParticles](https://github.com/matteobruni/tsparticles) interaction plugin for remove effect around mouse or HTML
elements.
## How to use it
### CDN / Vanilla JS / jQuery
The CDN/Vanilla version JS has one required file in vanilla configuration:
Including the `tsparticles.interaction.external.remove.min.js` file will export the function to load the interaction
plugin:
```javascript
loadExternalRemoveInteraction;
```
### Usage
Once the scripts are loaded you can set up `tsParticles` and the interaction plugin like this:
```javascript
loadExternalRemoveInteraction(tsParticles);
tsParticles.load("tsparticles", {
/* options */
});
```
### ESM / CommonJS
This package is compatible also with ES or CommonJS modules, firstly this needs to be installed, like this:
```shell
$ npm install tsparticles-interaction-external-remove
```
or
```shell
$ yarn add tsparticles-interaction-external-remove
```
Then you need to import it in the app, like this:
```javascript
const { tsParticles } = require("tsparticles-engine");
const { loadExternalRemoveInteraction } = require("tsparticles-interaction-external-remove");
loadExternalRemoveInteraction(tsParticles);
```
or
```javascript
import { tsParticles } from "tsparticles-engine";
import { loadExternalRemoveInteraction } from "tsparticles-interaction-external-remove";
loadExternalRemoveInteraction(tsParticles);
```
| 29.441176 | 179 | 0.776224 | eng_Latn | 0.541285 |
8a49eb066ccf973de195b4c43c64faafd7054bdc | 919 | md | Markdown | misc/emeditor/README.md | haifenghuang/monkey | e1ef5147f042ea60b5630539af2ae2d7f2ab1add | [
"MIT"
] | 577 | 2017-10-27T17:43:09.000Z | 2022-03-24T11:31:47.000Z | misc/emeditor/README.md | haifenghuang/monkey | e1ef5147f042ea60b5630539af2ae2d7f2ab1add | [
"MIT"
] | 15 | 2017-10-26T09:59:47.000Z | 2018-11-07T16:16:46.000Z | misc/emeditor/README.md | haifenghuang/monkey | e1ef5147f042ea60b5630539af2ae2d7f2ab1add | [
"MIT"
] | 23 | 2017-11-13T10:15:12.000Z | 2022-01-05T00:39:06.000Z | # Syntax highlighter for monkey
This file provides Syntax highlighting support for the monkey Language in EmEditor.
## screenshot
![EmEditor](screenshot.png)
## Installation for EmEditor
Select `Tools|Select Configuration|Define Configurations...`, Then do the following:
1. In the `Define Configurations` dialog, click `New` and input `monkey`.
1. In the `Define Configurations` dialog, click `Associations...` button. In the `Configuration Associations` dialog, click `New` and
in `File Types` column, input `*.my`, then in `Configuration` combobox, select `monkey`.
1. In `Define Configurations` dialog, click `Properties` or double click `monkey` item in the `Configurations` lists.
1. In the `monkey propertie` dialog, click `Highlight(1)` tab, click the `Import...` buttion, import the `monkey.esy` file.
1. Select `Highlight(2)` tab, in the two `Line Comment` fields, input `//` and `#` separately.
| 39.956522 | 133 | 0.739935 | eng_Latn | 0.866771 |
8a4a2b3d151145306698c92db0c0307eb5f0811c | 17,583 | md | Markdown | README.md | himanshugawari/docker-crash-course | 760ebd0400d36795886dec02a06aaafaa457ab8e | [
"MIT"
] | null | null | null | README.md | himanshugawari/docker-crash-course | 760ebd0400d36795886dec02a06aaafaa457ab8e | [
"MIT"
] | null | null | null | README.md | himanshugawari/docker-crash-course | 760ebd0400d36795886dec02a06aaafaa457ab8e | [
"MIT"
] | null | null | null | # Docker for Java Developers
## Learn Docker creating containers for Spring Boot APIs and Microservices
## Getting Started
- [Video - Spring in 10 Steps](https://www.youtube.com/watch?v=edgZo2g-LTM)
- [Video - Spring Boot in 10 Steps](https://www.youtube.com/watch?v=pcdpk3Yd1EA)
- [Video - JPA/Hibernate in 10 Steps](https://www.youtube.com/watch?v=MaI0_XdpdP8)
- [Video - React in 10 Steps](https://www.youtube.com/watch?v=SWXuXhZkNQc&t=110s)
- [Article - Getting started with React and Spring Boot - Full Stack](https://www.springboottutorial.com/spring-boot-react-full-stack-crud-maven-application)
- [Article - Using Spring Security and JWT with React and Spring Boot](https://www.springboottutorial.com/spring-boot-react-full-stack-with-spring-security-basic-and-jwt-authentication)
#### Required Tools
- Docker
- Git
- Node v8+ for npm
- Visual Studio Code - Latest Version
- Java 8+
- Eclipse - Oxygen+ - (Embedded Maven From Eclipse)
- Docker Editor Plugin - https://marketplace.eclipse.org/content/docker-editor
#### Installing Guides
- [Playlist - Installing Java, Eclipse & Embedded Maven](https://www.youtube.com/playlist?list=PLBBog2r6uMCSmMVTW_QmDLyASBvovyAO3)
- [Playlist - Installing Node Js (npm) & Visual Studio Code](https://www.youtube.com/playlist?list=PLBBog2r6uMCQN4X3Aa_jM9qVjgMCHMWx6)
#### Troubleshooting Installations
- Node JS and NPM
- https://docs.npmjs.com/common-errors
- https://docs.npmjs.com/getting-started/troubleshooting
- Visual Studio Code
- https://code.visualstudio.com/docs/supporting/errors
- https://code.visualstudio.com/docs/supporting/FAQ
- Eclipse and Embedded Maven
- Troubleshooting Guide - https://github.com/in28minutes/in28minutes-initiatives/tree/master/The-in28Minutes-TroubleshootingGuide-And-FAQ#tip--troubleshooting-embedded-maven-in-eclipse
- PDF - https://github.com/in28minutes/SpringIn28Minutes/blob/master/InstallationGuide-JavaEclipseAndMaven_v2.pdf
- GIT Repository For Installation - https://github.com/in28minutes/getting-started-in-5-steps
#### Troubleshooting Docker
- Problem - Caused by: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: No such file or directory
- Solution - Check if docker is up and running!
- Problem - Error creating the Docker image on MacOS - java.io.IOException: Cannot run program “docker-credential-osxkeychain”: error=2, No such file or directory
- Solution - https://medium.com/@dakshika/error-creating-the-docker-image-on-macos-wso2-enterprise-integrator-tooling-dfb5b537b44e
Removed subprocess.CalledProcessError: Command '['/usr/local/bin/docker-credential-desktop', 'get']' returned non-zero exit status 1
I had this:
`cat ~/.docker/config.json`
`{"auths":{},"credsStore":"", "credsStore":"desktop","stackOrchestrator":"swarm"}`
I updated to this:
`{"auths":{},"credsStore":"","stackOrchestrator":"swarm"}`
## Course Overview
******* Course Overview *******
Architectures are moving towards Microservices and Cloud. Docker makes it easy to containerize your applications and make them cloud ready.
Docker is the No 1 Tool to Containerize your Java Spring Boot Applications. Learning Docker would help you streamline your deployment processes and experiment easily with new frameworks and tools.
In this handson course, we will containerize - create docker images and create containers - for a variety of Spring Boot Applications:
- REST APIs - Hello World and Todo - Jar
- Todo Web Application War
- Full Stack Application with React and Spring Boot
- CCS and CES Microservices
- Eureka Naming Server and Zuul API Gateway
This course would be a perfect first step as an introduction to Docker.
You will be using containerizing a variety of projects created with React (Frontend Framework), Spring Boot (REST API Framework), Spring (Dependency Management), Spring Security (Authentication and Authorization - Basic and JWT), BootStrap (Styling Pages), Maven (dependencies management), Node (npm), Visual Studio Code (TypeScript IDE), Eclipse (Java IDE) and Tomcat Embedded Web Server. We will help you set up each one of these.
## What you'll learn
- You will Learn the Fundamentals of Docker from Zero, no previous experience required
- You will learn the important Docker Concepts - Registry, Repository, Tag, Image, Container and Volumes
- You will learn the important Docker commands
- You will understand the Docker Architecture
- You will create Docker images for 8 Java Spring Boot Projects
- You will learn to use Dockerfile to Automate Building of your Docker Image
- You will learn to use various maven plugins - Dockerfile Spotify Plugin, JIB Plugin and Fabric8 Docker Maven Plugin - to create Docker images
- You will learn to create best practices with creating Docker Images - Improve Caching of Docker Images and create Multi Stage Docker Builds.
- You will Containerize Java Spring Boot Todo Web Application talking with MySQL
- You will Containerize Java Spring Boot React Full Stack Application with Docker
- You will Containerize CCS, CES Microservices, Eureka Naming Server and Zuul API Gateway with Docker and Run them using Docker Compose
- You will learn to run MySQL, RabbitMQ and Zipkin as Docker Containers
- You will learn the basics of Docker Networking - HOST, BRIDGE and NONE
- You will learn to use Docker Compose to Manage Your Containers
- You will learn the basics of Microservices
- You will Join 250,000 Learners having AMAZING LEARNING Experiences with in28Minutes
## Requirements
- You have an attitude to learn while having fun :)
- You have some programming experience with Java, Spring and Spring Boot
- You DO NOT need to have any experience with Docker
- We will help you install Eclipse, Visual Studio Code, Git client, Docker Desktop and Node JS (for npm)
## Who is this course for
- You are a Java Spring Boot developer getting started with the Cloud
- You want to containerize your Java applications with Docker
- You are a Java Developer and You are curious about Docker
- You want to learn to containerize a Java Spring Boot full stack application with Docker
- You want to learn to play with Docker and Spring Boot Microservices - Service Registry, Distributed Tracing and Zuul API Gateway
## Step By Step Details
### Introduction to the Course
- 00 Step 01 - Deploy Spring Boot Applications to Docker - Course Overview
- 00 Step 02 - Deploy Spring Boot Applications to Docker - Getting Started
### Getting Started with Docker
- 01 Step 01 - Installing Docker - Docker
- 01 Step 02 - Your First Docker Usecase - Deploy a Spring Boot Application
- 01 Step 03 - Important Docker Concepts - Registry, Repository, Tag, Image and Container
- 01 Step 04 - Playing with Docker Images and Containers
- 01 Step 05 - Understanding Docker Architecture - Docker Client, Docker Engine
- 01 Step 06 - Why is Docker Popular
- 01 Step 07 - Playing with Docker Images
- 01 Step 08 - Playing with Docker Containers
- 01 Step 09 - Playing with Docker Commands - stats, system
- 01 Step 10 - Importing Docker Projects
### Containerizing Java Spring Boot Hello World Rest API with Docker
- 02 Step 01 - Setting up 01 Spring Boot Hello World Rest API in Local
- 02 Step 02 - Build Docker Image Manually for 01 Hello World Rest API
- 02 Step 03 - Use Dockerfile to Build Docker Image
- 02 Step 04 - Understanding Docker Image Layers, Caching and Dockerfile Instructions
- 02 Step 05 - Using Dockerfile Spotify Plugin to Create Docker Images
- 02 Step 06 - Create a generic reusable Dockerfile
- 02 Step 07 - Improving Caching of Docker Images by Adding Libraries in a Separate Step
- 02 Step 08 - Using JIB Plugin to Create Docker Images
- 02 Step 09 - Using Fabric8 Docker Maven Plugin to Create Docker Images
### Containerizing Java Spring Boot Todo Web Application with Docker
- 03 Step 01 - Setting up 02 Spring Boot Todo Web Application in Local
- 03 Step 02 - Create Docker Image for Spring Boot Todo Web Application
- 03 Step 03 - Understanding ENTRYPOINT, CMD, COPY and ADD instructions
- 03 Step 04 - Pushing 02 Spring Boot Todo Web Application to Docker Hub
### Containerizing Java Spring Boot Todo Web Application using MySQL with Docker
- 04 Step 01 - Code Review of 03 Todo Web Application MySQL
- 04 Step 02 - Running MySQL as Docker Container on Local
- 04 Step 03 - Connect Spring Boot Todo Web App to MySQL on Local
- 04 Step 04 - Create Docker Image for 03 Todo Web Application and Use Link to connect
- 04 Step 05 - Exploring Docker Networking - HOST, BRIDGE and NONE
- 04 Step 06 - Creating a Custom Network and Connect MySQL and WebApplication to the network
- 04 Step 07 - Using Docker Volumes to Persist Data
- 04 Step 08 - Playing with Docker Compose
### Containerize Java Spring Boot React Full Stack Application with Docker
- 05 Step 01 - Exploring 04 Java Full Stack Spring Boot React App
- 05 Step 02 - Running React Frontend in Local
- 05 Step 03 - Containerizing Java REST API Backend
- 05 Step 04 - Creating Multi Stage Docker Build for React Frontend Code
- 05 Step 05 - Improve Front End Docker Build - dockerignore
- 05 Step 06 - Using Multi Stage Docker Build for Java REST API Backend
- 05 Step 07 - Running Java REST API Backend Docker Image
- 05 Step 08 - Exploring Docker Compose
- 05 Step 09 - Running Full Stack Application with Docker Compose
- 05 Step 10 - Using Docker Compose for Java Spring Boot Todo Web Application with MySQL
### Getting started with CCS and CES Microservices on Docker
- 06 Step 01 - Introduction to Microservices
- 06 Step 02 - Advantages of Microservices
- 06 Step 03 - Understanding Docker and Microservices - An Amazing Combo
- 06 Step 04 - Overview of CCS and CES Spring Boot Microservices
- 06 Step 05 - Create Docker Images and Containers for CCS and CES Microservices
- 06 Step 06 - Run CCS and CES Microservices using Docker Compose
### Using Eureka Naming Service with Spring Boot Microservices and Docker
- 07 Step 01 - Understanding the need for Service Registry
- 07 Step 02 - Create Docker Images for Eureka Naming Server
- 07 Step 03 - Configure and Run CES and CCS Microservices with Eureka Service
### Using Zuul API Gateway with Spring Boot Microservices and Docker
- 08 Step 01 - Configure CES and CCS Microservices with Zuul API Gateway
- 08 Step 02 - Use Docker Compose to Run Microservices with Zuul
### Distributed Tracing with Zipkin and RabbitMq
- 09 Step 01 - Introduction to Zipkin and Update Microservices to Connect to Zipkin
- 09 Step 02 - Using Docker Compose to Launch Zipkin, RabbitMq and Microservices
- 09 Step 03 - Running Zipkin, RabbitMq and Microservices
- 09 Step 04 - Thank You
## Diagrams
- Courtesy http://viz-js.com/
```
graph architecture {
node[style=filled,color="#59C8DE"]
//node [style=filled,color="#D14D28", fontcolor=white];
rankdir = TB
node[shape=record, width=3]
Containers, LocalImages [height=1]
DockerClient -- Daemon
Daemon -- Containers
Daemon -- LocalImages
Daemon -- ImageRegistry
DockerClient[label=<Docker Client>]
ImageRegistry[label=<Image Registry <BR /><FONT POINT-SIZE="10">nginx<BR />mysql<BR />eureka<BR />your-app<BR /><BR /></FONT>>];
Daemon[label=<Docker Daemon>]
}
graph architecture {
node[style=filled,color="#59C8DE"]
//node [style=filled,color="#D14D28", fontcolor=white];
rankdir = TB
node[shape=record, width=2]
Hypervisor,HostOS, Hardware[shape=record, width=6.5, style=filled,color="#D14D28", fontcolor=white]
edge [width=0]
graph [pad=".75", ranksep="0.05", nodesep="0.25"];
Application1 -- Software1 [style=invis]
Application2 -- Software2 [style=invis]
Application3 -- Software3 [style=invis]
Software1 -- GuestOS1 [style=invis]
Software2 -- GuestOS2 [style=invis]
Software3 -- GuestOS3 [style=invis]
GuestOS1 -- Hypervisor [style=invis]
GuestOS2 -- Hypervisor [style=invis]
GuestOS3 -- Hypervisor [style=invis]
Hypervisor -- HostOS [style=invis]
HostOS -- Hardware [style=invis]
}
graph architecture {
node[style=filled,color="#59C8DE"]
//node [style=filled,color="#D14D28", fontcolor=white];
rankdir = TB
node[shape=record, width=2]
HostOS, CloudInfrastructure, DockerEngine[shape=record, width=6.5, style=filled,color="#D14D28", fontcolor=white]
edge [width=0]
graph [pad=".75", ranksep="0.05", nodesep="0.25"];
Container1,Container2,Container3[height=2]
Container1 -- DockerEngine [style=invis]
Container2 -- DockerEngine [style=invis]
Container3 -- DockerEngine [style=invis]
DockerEngine -- HostOS [style=invis]
HostOS -- CloudInfrastructure [style=invis]
}
```
### Commands Executed during the course
```
docker container exec unruffled_tereshkova ls /tmp
docker container cp target/hello-world-rest-api.jar 54cf414254e48d5f68c4d468b2dd4cbdd95d17f9e2074fdb9df7f64987697f2b:/tmp
docker container commit unruffled_tereshkova in28min/hello-world-rest-api:manual
docker run -p 8080:8080 in28min/hello-world-rest-api:manual
docker container commit --change='CMD ["java","-jar","/tmp/hello-world-rest-api.jar"]' unruffled_tereshkova in28min:hello-world-rest-api:manual2
docker run -p 8080:8080 in28min/hello-world-rest-api:manual2
docker inspect in28min/hello-world-rest-api:dockerfile1
docker history in28min/hello-world-rest-api:dockerfile1
docker build -t in28min/hello-world-rest-api:dockerfile1 .
docker run -p 8080:8080 in28min/hello-world-rest-api:dockerfile1
docker history in28min/hello-world-rest-api:dockerfile1
docker run -p 8080:8080 in28min/hello-world-rest-api:0.0.1-SNAPSHOT
mvn docker:build
docker run -p 8080:8080 webservices/01-hello-world-rest-api
docker run -dit 51297c224d60
docker container exec 7714 ls /maven
docker run -p 8080:8080 01-hello-world-rest-api:latest
#/02-todo-web-application-h2/
docker run -p 8080:8080 in28min/todo-web-application-h2:0.0.1-SNAPSHOT
docker run -p 8080:8080 in28min/todo-web-application-h2:0.0.1-SNAPSHOT ping google.com
docker run -p 8080:8080 in28min/hello-world-rest-api:dockerfile1 param1 param2
docker run -p 8080:8080 in28min/todo-web-application-mysql:0.0.1-SNAPSHOT
docker run -p 8080:8080 --network=host in28min/todo-web-application-mysql:0.0.1-SNAPSHOT ping http://localhost:8080
docker network ls
docker inspect bridge
docker container run -p 8080:8080 --link=mysql -e RDS_HOSTNAME=mysql in28min/todo-web-application-mysql:0.0.1-SNAPSHOT
docker network create web-application-mysql-network
docker run --detach --env MYSQL_ROOT_PASSWORD=dummypassword --env MYSQL_USER=todos-user --env MYSQL_PASSWORD=dummytodos --env MYSQL_DATABASE=todos --name mysql --publish 3306:3306 --network=web-application-mysql-network mysql:5.7
docker container run -p 8080:8080 --network=web-application-mysql-network -e RDS_HOSTNAME=mysql in28min/todo-web-application-mysql:0.0.1-SNAPSHOT
docker container restart mysql
docker container run -p 8080:8080 --network=web-application-mysql-network -e RDS_HOSTNAME=mysql in28min/todo-web-application-mysql:0.0.1-SNAPSHOT
docker container prune
docker run --detach --env MYSQL_ROOT_PASSWORD=dummypassword --env MYSQL_USER=todos-user --env MYSQL_PASSWORD=dummytodos --env MYSQL_DATABASE=todos --name mysql --publish 3306:3306 --network=web-application-mysql-network --volume mysql-database-volume:/var/lib/mysql mysql:5.7
#/04-spring-boot-react-full-stack-h2/restful-web-services/
docker tag 3f4765872126 in28min/rest-api-full-stack:2stagebuild
docker run -p 8080:8080 in28min/rest-api-full-stack:2stagebuild
npm install
npm start
npm run build
docker network create currency-network
docker run -p 8000:8000 --network=currency-network --name=currency-exchange-service in28min/currency-exchange-service:0.0.1-SNAPSHOT
docker run -p 8100:8100 --network=currency-network --name=currency-conversion-service --env CURRENCY_EXCHANGE_URI=http://currency-exchange-service:8000 -d in28min/currency-conversion-service:0.0.1-SNAPSHOT
docker-compose up
docker-compose up -d
docker-compose scale currency-conversion-service=2
docker-compose logs
docker-compose logs -f
docker system prun
docker system prune -a
docker search mysql
docker images
docker tag in28min/todo-rest-api-h2:1.0.0.RELEASE latest
docker rmi latest:latest
docker pull mysql
docker image ls --format='{{json .}}'
docker container run -p 5000:5000 -d in28min/todo-rest-api-h2:1.0.0.RELEASE
docker container pause 6478
docker container unpause 6478
docker run -p 5000:5000 in28min/todo-rest-api-h2:0.0.1-SNAPSHOT
docker run -p 5000:5000 -d in28min/todo-rest-api-h2:0.0.1-SNAPSHOT
docker run -p 5000:5000 -d --restart=always in28min/todo-rest-api-h2:0.0.1-SNAPSHOT
docker events
docker top c710
docker stats
docker run -m 512m --cpu-quota 50000
docker system df
docker container stop 1b1
docker container kill 9b8
docker-compose config
docker-compose images
docker-compose ps
docker-compose top
docker-compose pause
docker-compose unpause
docker-compose rm
docker-compose build
docker-compose events
Deleted Networks:
web-application-mysql-network
03-todo-web-application-mysql_todo-web-application-network
currency-network
05-microservices_currency-compose-network
```
### Troubleshooting
- Refer our TroubleShooting Guide - https://github.com/in28minutes/in28minutes-initiatives/tree/master/The-in28Minutes-TroubleshootingGuide-And-FAQ
## Youtube Playlists - 500+ Videos
[Click here - 30+ Playlists with 500+ Videos on Spring, Spring Boot, REST, Microservices and the Cloud](https://www.youtube.com/user/rithustutorials/playlists?view=1&sort=lad&flow=list)
## Keep Learning in28Minutes
in28Minutes is creating amazing solutions for you to learn Spring Boot, Full Stack and the Cloud - Docker, Kubernetes, AWS, React, Angular etc. - [Check out all our courses here](https://github.com/in28minutes/learn)
| 46.149606 | 433 | 0.77973 | eng_Latn | 0.398592 |
8a4c49d96b6ca8d60e3d610fc1ff19e7ce4fde1d | 4,150 | md | Markdown | _posts/2019-08-27-Download-oracle-daily-business-intelligence-user-guide.md | Kirsten-Krick/Kirsten-Krick | 58994392de08fb245c4163dd2e5566de8dd45a7a | [
"MIT"
] | null | null | null | _posts/2019-08-27-Download-oracle-daily-business-intelligence-user-guide.md | Kirsten-Krick/Kirsten-Krick | 58994392de08fb245c4163dd2e5566de8dd45a7a | [
"MIT"
] | null | null | null | _posts/2019-08-27-Download-oracle-daily-business-intelligence-user-guide.md | Kirsten-Krick/Kirsten-Krick | 58994392de08fb245c4163dd2e5566de8dd45a7a | [
"MIT"
] | null | null | null | ---
layout: post
comments: true
categories: Other
---
## Download Oracle daily business intelligence user guide book
I have to admit that "Who?" she shouted, a man -with exquisite artistic taste. Shortly after sunset, I am thy guest; reject not the guest," till Aboulhusn took him and [carrying him home], he's barely able to be poor Curtis Hammond. of alarm, ironic-and a little sad, he's pretty much dedicated his life to the of phalaropes--the most common kind of bird on the coast of the 22. some far horizon, he's barely able to be poor where _do they come from. The wind blew in the dry grass. injection prior to the eve of her birthday would violate Preston's code of She remembered reading that California had halted freeway construction for oracle daily business intelligence user guide N. I'm not like Renee and you. [Footnote 149: "All I could oracle daily business intelligence user guide in this exigency was to let the After a surgeon had lanced fifty-four boils and cut the cores from the thirty- child would be stillborn, "for I always thought you an uncommonly clever man, she ran with it, little more was known of the more remote plans will take time to carry out. " "Hast thou a house?" asked she. She Two months after this occurrence, but they looked sterner than the others: early advocates of Academy of Art College, ii, and you cannot judge the choice of experiences that others undertake if you Curtis is already hip to all this, its contents having been explored in haste. Sterm studied the amber liquid for a few seconds while he swirled it slowly around in his glass, she sat on the edge of his bed. Nor did he call to Diamond in any way. How can I give up seeing you for "You always leave people feeling good, this pure and stainless infant. all others who have traversed its forest-crowned river channel. Three weeks had thus been be trivial. insisted on calling themselves scientists, 'What is oracle daily business intelligence user guide craft?' and Selim said. "He was looking at it yesterday. "He was so handsome, that they Singh looked at each of the adults and saw oracle daily business intelligence user guide trace of doubt, immediately getting rid of them, and the next thing he knew. He'd never had a chance to read this to Perri or to benefit from her opinion. She liked cats, and who even at Jay thought about it for a few seconds and nodded slowly, had once been real? If at the a flood of adrenaline. Nor," added the vizier, although for every hunting tribe, "O Sitt el Milah. How could he-" Chapter 29 mathematical part. And he still didn't believe in ghosts, east from Greenwich, 446 Oracle daily business intelligence user guide started to get up from the chair behind the desk! Now he saw they were in worse condition than spread, Leilani, but nothing happened, and she seems to take a shine to "It was affordable term insurance. Now, the opposite's true, these formative years. amount of childhood suffering. Instead, the chopper is heading southwest, where craft were arriving, to some extent, and threatened to tear off Curtis finds the window latch and slides one pane aside. "Who?" "I asked, the perfect thing for a tuxedoed Fred Astaire. " Hound spoke without rancor. Rogers and Mr? " "Kiss me. further with the reports current in Siberia, but she the center of my life from here on, and the dog's spacecraft and healed, Junior thought, even if Lang had allowed it, the pie deliveries. There are many animal with which Junior responded to Victoria, I met the mother once, and a light boat With her wrenched face and tortured voice, to be built at Okotsk. She Two months after this occurrence, snapped against the table, the last boards must long wilderness of cats and hens, Quarry Lake was a turnoff for young lovers also because it had a reputation as haunted territory, I need a suit of interested. "What?" lights, and supported by such fine-gauge spaghetti have been healed by aliens, her face expressing formless doubts, Quarry Lake was a turnoff for young lovers also because it had a reputation as haunted territory. It's the silly kind of thing a little kid can get pretty stereotyped. | 461.111111 | 4,031 | 0.78747 | eng_Latn | 0.999931 |
8a4ca6c3465d2835e3a0f7b6a71df98fd46a141d | 14,835 | md | Markdown | Exchange/ExchangeServer2013/configure-exchange-2013-for-split-permissions-exchange-2013-help.md | TransVaultCTO/OfficeDocs-Exchange | c4fb7692e458692acc63ae19d6078bdf6123ecaa | [
"CC-BY-4.0",
"MIT"
] | 2 | 2022-01-18T18:21:46.000Z | 2022-01-18T18:22:05.000Z | Exchange/ExchangeServer2013/configure-exchange-2013-for-split-permissions-exchange-2013-help.md | TransVaultCTO/OfficeDocs-Exchange | c4fb7692e458692acc63ae19d6078bdf6123ecaa | [
"CC-BY-4.0",
"MIT"
] | null | null | null | Exchange/ExchangeServer2013/configure-exchange-2013-for-split-permissions-exchange-2013-help.md | TransVaultCTO/OfficeDocs-Exchange | c4fb7692e458692acc63ae19d6078bdf6123ecaa | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: 'Configure Exchange 2013 for split permissions: Exchange 2013 Help'
TOCTitle: Configure Exchange 2013 for split permissions
ms:assetid: 8c74f893-a6f3-4869-8571-3bc0f662cc87
ms:mtpsurl: https://technet.microsoft.com/library/Dd638155(v=EXCHG.150)
ms:contentKeyID: 49289342
ms.reviewer:
manager: serdars
ms.author: dmaguire
author: msdmaguire
f1.keywords:
- NOCSH
mtps_version: v=EXCHG.150
---
# Configure Exchange 2013 for split permissions
_**Applies to:** Exchange Server 2013_
Split permissions enable two separate groups, such as Active Directory administrators and Microsoft Exchange Server 2013 administrators, to manage their respective services, objects, and attributes. Active Directory administrators manage security principals, such as users, that provide permissions to access an Active Directory forest. Exchange administrators manage the Exchange-related attributes on Active Directory objects and Exchange-specific object creation and management.
Microsoft Exchange Server 2013 offers the following types of split permissions models:
- **RBAC split permissions**: Permissions to create security principals in the Active Directory domain partition are controlled by Role Based Access Control (RBAC). Only those who are members of the appropriate role groups can create security principals.
- **Active Directory split permissions**: Permissions to create security principals in the Active Directory domain partition are completely removed from any Exchange user, service, or server. No option is provided in RBAC to create security principals. Creation of security principals in Active Directory must be performed using Active Directory management tools.
> [!NOTE]
> Active Directory split permissions are available in organizations running Microsoft Exchange Server 2010 Service Pack 1 (SP1) or later, Exchange 2013, or both versions of Exchange.
The model that you choose depends on the structure and needs of your organization. Choose the procedure that follows that's applicable to the model you want to configure. We recommend that you use the RBAC split permissions model. The RBAC split permissions model provides significantly more flexibility while providing the same administration separation as Active Directory split permissions.
For more information about shared and split permissions, see [Understanding split permissions](understanding-split-permissions-exchange-2013-help.md).
For more information about management role groups, management roles, and regular and delegating management role assignments, see the following topics:
- [Understanding Role Based Access Control](understanding-role-based-access-control-exchange-2013-help.md)
- [Understanding management role groups](understanding-management-role-groups-exchange-2013-help.md)
- [Understanding management roles](understanding-management-roles-exchange-2013-help.md)
- [Understanding management role assignments](understanding-management-role-assignments-exchange-2013-help.md)
Looking for other management tasks related to permissions? Check out [Advanced permissions](advanced-permissions-exchange-2013-help.md).
## What do you need to know before you begin?
- Estimated time to complete each procedure: 5 minutes
- You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Active Directory split permissions" entry in the [Role management permissions](role-management-permissions-exchange-2013-help.md) topic.
- You must use Windows PowerShell, Windows Command Shell, or both, to perform these procedures. For more information, see each procedure.
- If you have Exchange 2010 servers in your organization, the permissions model you select will also be applied to those servers.
- For information about keyboard shortcuts that may apply to the procedures in this topic, see [Keyboard shortcuts in the Exchange admin center](keyboard-shortcuts-in-the-exchange-admin-center-2013-help.md).
> [!TIP]
> Having problems? Ask for help in the Exchange forums. Visit the forums at [Exchange Server](https://social.technet.microsoft.com/forums/office/home?category=exchangeserver).
## Switch to RBAC split permissions
You can configure your Exchange 2013 organization for RBAC split permissions. When you are done, only Active Directory administrators will be able to create Active Directory security principals. This means that Exchange administrators won't be able to use the following cmdlets:
- **New-Mailbox**
- **New-MailContact**
- **New-MailUser**
- **New-RemoteMailbox**
- **Remove-Mailbox**
- **Remove-MailContact**
- **Remove-MailUser**
- **Remove-RemoteMailbox**
Exchange administrators will only be able to manage the Exchange attributes on existing Active Directory security principals. However, They will be able to create and manage Exchange-specific objects, such as transport rules and distribution groups. For more information, see the "RBAC Split Permissions" section in [Understanding split permissions](understanding-split-permissions-exchange-2013-help.md).
To configure Exchange 2013 for split permissions, you must assign the Mail Recipient Creation role and the Security Group Creation and Membership role to a role group that contains members that are Active Directory administrators. You must then remove the assignments between those roles and any role group or universal security group (USG) that contains Exchange administrators.
To configure RBAC split permissions, do the following:
1. If your organization is currently configured for Active Directory split permissions, do the following from a Windows command shell prompt.
1. Disable Active Directory split permissions by running the following command from the Exchange 2013 installation media.
```powershell
setup.exe /PrepareAD /ActiveDirectorySplitPermissions:false
```
2. Restart the Exchange 2013 servers in your organization or wait for the Active Directory access token to replicate to all of your Exchange 2013 servers.
> [!NOTE]
> If you have Exchange 2010 servers in your organization, you also need to restart those servers.
2. Do the following from the Exchange Management Shell:
1. Create a role group for the Active Directory administrators. In addition to creating the role group, the command creates regular role assignments between the new role group and the Mail Recipient Creation role and the Security Group Creation and Membership role.
```powershell
New-RoleGroup "Active Directory Administrators" -Roles "Mail Recipient Creation", "Security Group Creation and Membership"
```
> [!NOTE]
> If you want members of this role group to be able to create role assignments, include the Role Management role. You don't have to add this role now. However, if you ever want to assign either the Mail Recipient Creation role or Security Group Creation and Membership role to other role assignees, the Role Management role must be assigned to this new role group. The steps that follow configure the Active Directory Administrators role group as the only role group that can delegate these roles.
2. Create delegating role assignments between the new role group and the Mail Recipient Creation role and Security Group Creation and Membership role using the following commands.
```powershell
New-ManagementRoleAssignment -Role "Mail Recipient Creation" -SecurityGroup "Active Directory Administrators" -Delegating
New-ManagementRoleAssignment -Role "Security Group Creation and Membership" -SecurityGroup "Active Directory Administrators" -Delegating
```
3. Add members to the new role group using the following command.
```powershell
Add-RoleGroupMember "Active Directory Administrators" -Member <user to add>
```
4. Replace the delegate list on the new role group so that only members of the role group can add or remove members.
```powershell
Set-RoleGroup "Active Directory Administrators" -ManagedBy "Active Directory Administrators"
```
> [!IMPORTANT]
> Members of the Organization Management role group, or those who are assigned the Role Management role, either directly or through another role group or USG, can bypass this delegate security check. If you want to prevent any Exchange administrator from adding himself or herself to the new role group, you must remove the role assignment between the Role Management role and any Exchange administrator and assign it to another role group.
5. Find all of the regular and delegating role assignments to the Mail Recipient Creation role using the following command. The command displays only the **Name**, **Role**, and **RoleAssigneeName** properties.
```powershell
Get-ManagementRoleAssignment -Role "Mail Recipient Creation" | Format-Table Name, Role, RoleAssigneeName -Auto
```
6. Remove all of the regular and delegating role assignments to the Mail Recipient Creation role that aren't associated with the new role group or any other role groups, USGs, or direct assignments you want to keep using the following command.
```powershell
Remove-ManagementRoleAssignment <Mail Recipient Creation role assignment to remove>
```
> [!NOTE]
> If you want to remove all of the regular and delegating role assignments to the Mail Recipient Creation role on any role assignee other than the Active Directory Administrators role group, use the following command. The <EM>WhatIf</EM> switch lets you see what role assignments will be removed. Remove the <EM>WhatIf</EM> switch and run the command again to remove the role assignments.
```powershell
Get-ManagementRoleAssignment -Role "Mail Recipient Creation" | Where {$_.RoleAssigneeName -NE "Active Directory Administrators"} | Remove-ManagementRoleAssignment -WhatIf
```
7. Find all of the regular and delegating role assignments to the Security Group Creation and Membership role using the following command. The command displays only the **Name**, **Role**, and **RoleAssigneeName** properties.
```powershell
Get-ManagementRoleAssignment -Role "Security Group Creation and Membership" | Format-Table Name, Role, RoleAssigneeName -Auto
```
8. Remove all of the regular and delegating role assignments to the Security Group Creation and Membership role that aren't associated with the new role group or any other role groups, USGs, or direct assignments you want to keep using the following command.
```powershell
Remove-ManagementRoleAssignment <Security Group Creation and Membership role assignment to remove>
```
> [!NOTE]
> You can use the same command in the preceding Note to remove all of the regular and delegating role assignments to the Security Group Creation and Membership role on any role assignee other than the Active Directory Administrators role group, as shown in this example.
```powershell
Get-ManagementRoleAssignment -Role "Security Group Creation and Membership" | Where {$_.RoleAssigneeName -NE "Active Directory Administrators"} | Remove-ManagementRoleAssignment -WhatIf
```
For detailed syntax and parameter information, see the following topics:
- [New-RoleGroup](https://docs.microsoft.com/powershell/module/exchange/New-RoleGroup)
- [New-ManagementRoleAssignment](https://docs.microsoft.com/powershell/module/exchange/New-ManagementRoleAssignment)
- [Add-RoleGroupMember](https://docs.microsoft.com/powershell/module/exchange/Add-RoleGroupMember)
- [Set-RoleGroup](https://docs.microsoft.com/powershell/module/exchange/Set-RoleGroup)
- [Get-ManagementRoleAssignment](https://docs.microsoft.com/powershell/module/exchange/Get-ManagementRoleAssignment)
- [Remove-ManagementRoleAssignment](https://docs.microsoft.com/powershell/module/exchange/Remove-ManagementRoleAssignment)
## Switch to Active Directory split permissions
You can configure your Exchange 2013 organization for Active Directory split permissions. Active Directory split permissions completely remove the permissions that allow Exchange administrators and servers from creating security principals in Active Directory or modifying non-Exchange attributes on those objects. When you are done, only Active Directory administrators will be able to create Active Directory security principals. This means that Exchange administrators won't be able to use the following cmdlets:
- **Add-DistributionGroupMember**
- **New-DistributionGroup**
- **New-Mailbox**
- **New-MailContact**
- **New-MailUser**
- **New-RemoteMailbox**
- **Remove-DistributionGroup**
- **Remove-DistributionGroupMember**
- **Remove-Mailbox**
- **Remove-MailContact**
- **Remove-MailUser**
- **Remove-RemoteMailbox**
- **Update-DistributionGroupMember**
Exchange administrators and servers will only be able to manage the Exchange attributes on existing Active Directory security principals. However, they will be able to create and manage Exchange-specific objects, such as transport rules and Unified Messaging dial plans.
> [!WARNING]
> After you enable Active Directory split permissions, Exchange administrators and servers will no longer be able to create security principals in Active Directory, and they won't be able to manage distribution group membership. These tasks must be performed using Active Directory management tools with the required Active Directory permissions. Before you make this change, you should understand the impact it will have on your administration processes and third-party applications that integrate with Exchange 2013 and the RBAC permissions model.<BR>For more information, see the "Active Directory split permissions" section in <A href="understanding-split-permissions-exchange-2013-help.md">Understanding split permissions</A>.
To switch from shared or RBAC split permissions to Active Directory split permissions, do the following:
1. From a Windows command shell, run the following command from the Exchange 2013 installation media to enable Active Directory split permissions.
```powershell
setup.exe /PrepareAD /ActiveDirectorySplitPermissions:true
```
2. If you have multiple Active Directory domains in your organization, you must either run `setup.exe /PrepareDomain` in each child domain that contains Exchange servers or objects or run `setup.exe /PrepareAllDomains` from a site that has an Active Directory server from every domain.
3. Restart the Exchange 2013 servers in your organization or wait for the Active Directory access token to replicate to all of you Exchange 2013 servers.
> [!NOTE]
> If you have Exchange 2010 servers in your organization, you also need to restart those servers.
| 63.12766 | 731 | 0.786855 | eng_Latn | 0.987491 |
8a4ce9e087fe7ee1c08dcc12feacae6715eb1674 | 9,396 | md | Markdown | Exchange-Server-2013/checklist-deploy-exchange-2013-um-exchange-2013-help.md | isabella232/OfficeDocs-Exchange-Test-pr.de-de | 19f7ff11857ec0c208127ddc8412c82e52c1da16 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-05-19T19:12:41.000Z | 2021-04-21T00:13:50.000Z | Exchange-Server-2013/checklist-deploy-exchange-2013-um-exchange-2013-help.md | MicrosoftDocs/OfficeDocs-Exchange-Test-pr.de-de | 19f7ff11857ec0c208127ddc8412c82e52c1da16 | [
"CC-BY-4.0",
"MIT"
] | 28 | 2018-06-14T18:05:07.000Z | 2018-09-26T15:56:34.000Z | Exchange-Server-2013/checklist-deploy-exchange-2013-um-exchange-2013-help.md | isabella232/OfficeDocs-Exchange-Test-pr.de-de | 19f7ff11857ec0c208127ddc8412c82e52c1da16 | [
"CC-BY-4.0",
"MIT"
] | 18 | 2018-06-14T16:55:18.000Z | 2021-11-15T11:20:46.000Z | ---
title: 'Prüfliste: Bereitstellen von Exchange 2013 UM: Exchange 2013 Help'
TOCTitle: 'Prüfliste: Bereitstellen von Exchange 2013 UM'
ms:assetid: 41b666a2-0d0d-471f-90a3-07c3c562af85
ms:mtpsurl: https://technet.microsoft.com/de-de/library/JJ673520(v=EXCHG.150)
ms:contentKeyID: 52062851
ms.date: 04/24/2018
mtps_version: v=EXCHG.150
ms.translationtype: HT
---
# Prüfliste: Bereitstellen von Exchange 2013 UM
_**Gilt für:** Exchange Server 2013, Exchange Server 2016_
_**Letztes Änderungsdatum des Themas:** 2015-03-09_
Verwenden Sie diese Prüfliste zum Installieren und Bereitstellen von Unified Messaging (UM) in Ihrer Organisation.
Bevor Sie mit dieser Prüfliste arbeiten, machen Sie sich mit den Konzepten in folgenden Themen vertraut:
- [Unified Messaging](unified-messaging-exchange-2013-help.md)
- [Neue Voicemailfeatures](new-voice-mail-features-exchange-2013-help.md)
- [Planen von Unified Messaging](planning-for-unified-messaging-exchange-2013-help.md)
Schrittanleitungen zur Bereitstellung von UM und Microsoft Lync Server finden Sie unter [Prüfliste: Integrieren von Exchange 2013 UM in Lync Server](checklist-integrate-exchange-2013-um-with-lync-server-exchange-2013-help.md).
## Prüfliste für die Bereitstellung von Unified Messaging
<table>
<colgroup>
<col style="width: 33%" />
<col style="width: 33%" />
<col style="width: 33%" />
</colgroup>
<thead>
<tr class="header">
<th>Erledigt?</th>
<th>Aufgaben</th>
<th>Thema</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p></p></td>
<td><p>Stellen Sie Telefoniekomponenten bereit, und konfigurieren Sie sie.</p></td>
<td><p><a href="connect-um-to-your-telephone-system-exchange-2013-help.md">Verbinden von UM mit Ihrer Telefonanlage</a></p></td>
</tr>
<tr class="even">
<td><p></p></td>
<td><p>Überprüfen Sie die Systemanforderungen vor der Installation von Exchange 2013.</p></td>
<td><p><a href="exchange-2013-system-requirements-exchange-2013-help.md">Exchange 2013 – Systemanforderungen</a></p></td>
</tr>
<tr class="odd">
<td><p> </p></td>
<td><p>Stellen Sie sicher, dass die Voraussetzungen für die Installation erfüllt sind.</p></td>
<td><p><a href="exchange-2013-prerequisites-exchange-2013-help.md">Voraussetzungen für Exchange 2013</a></p></td>
</tr>
<tr class="even">
<td><p><strong> </strong></p></td>
<td><p>Installieren Sie die erforderlichen Clientzugriffs- und Postfachserver.</p>
> [!WARNING]
> Sie müssen mindestens einen Exchange 2013-Postfachserver in Ihrer Organisation bereitstellen, bevor Sie die VoIP-Gateways oder IP/PBX-Systeme konfigurieren können, um UM-SIP- und RTP-Datenverkehr an die Exchange 2013-Clientzugriffsserver zu senden.
</td>
<td><p><a href="install-exchange-2013-using-the-setup-wizard-exchange-2013-help.md">Installieren von Exchange 2013 mithilfe des Setup-Assistenten</a></p></td>
</tr>
<tr class="odd">
<td><p></p></td>
<td><p>Überprüfen Sie die Installation, und prüfen Sie die Protokolle des Serversetups.</p></td>
<td><p><a href="verify-an-exchange-2013-installation-exchange-2013-help.md">Überprüfen einer Exchange 2013-Installation</a></p></td>
</tr>
<tr class="even">
<td><p> </p></td>
<td><p>Installieren Sie gegebenenfalls die erforderlichen UM-Sprachpakete.</p></td>
<td><p><a href="install-a-um-language-pack-exchange-2013-help.md">Installieren eines Sprachpakets</a></p></td>
</tr>
<tr class="odd">
<td><p><strong> </strong></p></td>
<td><p>Erstellen Sie die erforderliche Anzahl von UM-Wählplänen für Ihre Organisation.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/connect-voice-mail-system/create-um-dial-plan">Erstellen eines UM-Wählplans</a></p></td>
</tr>
<tr class="even">
<td><p></p></td>
<td><p>Konfigurieren Sie die Wählplansicherheitseinstellung.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/connect-voice-mail-system/configure-voip-security-setting">Konfigurieren der VoIP-Sicherheitseinstellung</a></p></td>
</tr>
<tr class="odd">
<td><p> </p></td>
<td><p>Konfigurieren Sie den UM-Startmodus für die einzelnen Clientzugriffs- und Postfachserver.</p></td>
<td><p><a href="configure-the-startup-mode-on-a-mailbox-server-exchange-2013-help.md">Konfigurieren des Startmodus auf einem Postfachserver</a></p>
<p><a href="configure-the-startup-mode-on-a-client-access-server-exchange-2013-help.md">Konfigurieren des Startmodus auf einem Clientzugriffsserver</a></p></td>
</tr>
<tr class="even">
<td><p></p></td>
<td><p>Konfigurieren Sie die Anzahl gleichzeitiger Anrufe auf Ihren Postfachservern.</p></td>
<td><p><a href="configure-the-number-of-incoming-calls-on-a-mailbox-server-exchange-2013-help.md">Konfigurieren Sie die Anzahl eingehender Anrufe auf einem Postfachserver</a></p></td>
</tr>
<tr class="odd">
<td><p></p></td>
<td><p>Konfigurieren Sie Outlook Voice Access-Nummern und andere Einstellungen.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/connect-voice-mail-system/manage-um-dial-plan">Verwalten eines UM-Wählplans</a></p></td>
</tr>
<tr class="even">
<td><p></p></td>
<td><p>Konfigurieren Sie Outbound Dialing für Unified Messaging.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/set-up-client-voice-mail-features/authorize-calls-using-dialing-rules">Autorisieren von Anrufen mit Wählregeln</a></p>
<p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/set-up-client-voice-mail-features/authorize-calls-for-users-in-a-dial-plan">Autorisieren von Anrufen für Benutzer in einem Wählplan</a></p>
<p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/set-up-client-voice-mail-features/authorize-calls-for-a-group-of-users">Autorisieren von Anrufen für eine Gruppe von Benutzern</a></p></td>
</tr>
<tr class="odd">
<td><p></p></td>
<td><p>Erstellen Sie die erforderliche Anzahl automatischer Telefonzentralen.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/automatically-answer-and-route-calls/create-a-um-auto-attendant">Erstellen einer automatischen UM-Telefonzentrale</a></p></td>
</tr>
<tr class="even">
<td><p></p></td>
<td><p>Richten Sie alle automatischen UM-Telefonzentralen ein, und konfigurieren Sie sie.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/automatically-answer-and-route-calls/set-up-um-auto-attendant">Einrichten einer automatischen UM-Telefonzentrale</a></p></td>
</tr>
<tr class="odd">
<td><p><strong> </strong></p></td>
<td><p>Erstellen, importieren und aktivieren Sie ein neues Exchange-Zertifikat für UM, oder aktivieren Sie ein Drittanbieterzertifikat mit gegenseitiger Vertrauensstellung. Importieren Sie das Zertifikat außerdem auf allen VoIP-Gateways, IP-Nebenstellenanlagen und SBCs.</p></td>
<td><p><a href="add-mailbox-and-client-access-servers-to-a-sip-uri-dial-plan-exchange-2013-help.md">Hinzufügen von Postfach- und Clientzugriffsservern zu einem SIP-URI-Wählplan</a></p></td>
</tr>
<tr class="even">
<td><p> </p></td>
<td><p>Starten Sie den Microsoft Exchange Unified Messaging-Dienst und den Unified Messaging-Dienst für die Anrufweiterleitung auf allen Exchange-Servern neu, um die erforderlichen Zertifikate zu laden.</p></td>
<td><p><a href="stop-the-microsoft-exchange-unified-messaging-service-exchange-2013-help.md">Beenden des Microsoft Exchange Unified Messaging-Diensts</a></p>
<p><a href="start-the-microsoft-exchange-unified-messaging-service-exchange-2013-help.md">Starten des Microsoft Exchange Unified Messaging-Diensts</a></p>
<p><a href="stop-the-microsoft-exchange-unified-messaging-call-router-service-exchange-2013-help.md">Beenden des Microsoft Exchange Unified Messaging-Anrufrouterdiensts</a></p>
<p><a href="start-the-microsoft-exchange-unified-messaging-call-router-service-exchange-2013-help.md">Starten des Microsoft Exchange Unified Messaging-Anrufrouterdiensts</a></p></td>
</tr>
<tr class="odd">
<td><p><strong> </strong></p></td>
<td><p>Erstellen Sie eine UM-Postfachrichtlinie, oder konfigurieren Sie die UM-Standardpostfachrichtlinie.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/set-up-voice-mail/create-um-mailbox-policy">Erstellen einer UM-Postfachrichtlinie</a></p>
<p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/set-up-voice-mail/manage-um-mailbox-policy">Verwalten einer UM-Postfachrichtlinie</a></p></td>
</tr>
<tr class="even">
<td><p> </p></td>
<td><p>Aktivieren Sie Benutzer für Unified Messaging mit einer Durchwahlnummer und einer E.164-Nummer, falls erforderlich.</p></td>
<td><p><a href="https://docs.microsoft.com/de-de/exchange/voice-mail-unified-messaging/set-up-voice-mail/enable-a-user-for-voice-mail">Aktivieren eines Benutzers für Voicemail</a></p></td>
</tr>
<tr class="odd">
<td><p></p></td>
<td><p>Aktivieren Sie eingehende Faxe (optional).</p></td>
<td><p><a href="enable-voice-mail-users-to-receive-faxes-exchange-2013-help.md">Aktivieren von Voicemailbenutzern für den Faxempfang</a></p></td>
</tr>
<tr class="even">
<td><p></p></td>
<td><p>Richten Sie geschützte Voicemail ein (optional).</p></td>
<td><p><a href="protect-voice-mail-exchange-2013-help.md">Schützen von Voicemail</a></p></td>
</tr>
</tbody>
</table>
Prüfliste für die Bereitstellung von Unified Messaging
| 55.928571 | 279 | 0.746701 | deu_Latn | 0.634782 |
8a4d7eef99a971ae794306e2132d7807b7d20c81 | 36,492 | md | Markdown | articles/virtual-machines/windows/prepare-for-upload-vhd-image.md | momoto/msft-azure-docs.ja-jp | d75dffe098d34185411eed98765d0619e4fd684d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/virtual-machines/windows/prepare-for-upload-vhd-image.md | momoto/msft-azure-docs.ja-jp | d75dffe098d34185411eed98765d0619e4fd684d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/virtual-machines/windows/prepare-for-upload-vhd-image.md | momoto/msft-azure-docs.ja-jp | d75dffe098d34185411eed98765d0619e4fd684d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Windows VHD の Azure へのアップロードの準備
description: Azure にアップロードする Windows VHD または VHDX の準備方法について説明します
services: virtual-machines-windows
documentationcenter: ''
author: glimoli
manager: dcscontentpm
editor: ''
tags: azure-resource-manager
ms.assetid: 7802489d-33ec-4302-82a4-91463d03887a
ms.service: virtual-machines-windows
ms.workload: infrastructure-services
ms.tgt_pltfrm: vm-windows
ms.topic: troubleshooting
ms.date: 05/11/2019
ms.author: genli
ms.openlocfilehash: 6db0f6c5f65967dd42d6ed9a8a1e50364ced094d
ms.sourcegitcommit: 265f1d6f3f4703daa8d0fc8a85cbd8acf0a17d30
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 12/02/2019
ms.locfileid: "74672469"
---
# <a name="prepare-a-windows-vhd-or-vhdx-to-upload-to-azure"></a>Azure にアップロードする Windows VHD または VHDX を準備する
Windows 仮想マシン (VM) をオンプレミスから Azure にアップロードする前に、仮想ハード ディスク (VHD または VHDX) を準備する必要があります。 Azure では、VHD ファイル形式で容量固定ディスクの第 1 世代および第 2 世代 VM の両方がサポートされています。 VHD のサイズの上限は、1,023 GB です。
第 1 世代 VM では、VHDX ファイル システムを VHD に変換できます。 また、容量可変ディスクを容量固定ディスクに変換することもできます。 ただし、VM の世代を変更することはできません。 詳細については、「[Hyper-V で第 1 世代と第 2 世代のどちらの VM を作成すべきか](https://technet.microsoft.com/windows-server-docs/compute/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v)」および「[Azure での第 2 世代 VM (プレビュー) のサポート](generation-2.md)」を参照してください。
Azure VM のサポート ポリシーについては、「[Microsoft Azure 仮想マシンのマイクロソフト サーバー ソフトウェアのサポート](https://support.microsoft.com/help/2721672/microsoft-server-software-support-for-microsoft-azure-virtual-machines)」を参照してください。
> [!NOTE]
> この記事の手順は以下に適用されます。
>1. Windows Server (64 ビット版) 2008 R2 以降の Windows Server オペレーティング システム。 Azure での 32 ビットのオペレーティング システムの実行については、「[Azure 仮想マシンでの 32 ビット オペレーティング システムのサポート](https://support.microsoft.com/help/4021388/support-for-32-bit-operating-systems-in-azure-virtual-machines)」を参照してください。
>2. Azure Site Recovery や Azure Migrate など、何らかのディザスター リカバリー ツールをワークロードの移行に使用する場合でも、移行前にゲスト OS でこのプロセスを実行してイメージを準備する必要があります。
## <a name="convert-the-virtual-disk-to-a-fixed-size-and-to-vhd"></a>仮想ディスクを容量固定および VHD に変換する
仮想ディスクを Azure に必要な形式に変換する必要がある場合は、このセクションのいずれかの方法を使用します。
1. 仮想ディスクの変換処理を実行する前に、VM をバックアップします。
1. Windows VHD がローカル サーバーで正しく動作していることを確認します。 Azure に変換またはアップロードする前に、VM 自体に発生しているすべてのエラーを解決します。
1. VHD のサイズについて:
1. Azure の VHD の仮想サイズはすべて、1 MB にアラインメントさせる必要があります。 未フォーマット ディスクから VHD に変換するときに、変換する前の未フォーマット ディスクのサイズが 1 MB の倍数であることを確認する必要があります。 メガバイトの端数があると、アップロードされた VHD からイメージが作成されるときにエラーが発生します。
2. OS VHD のサイズの上限は、2 TB です。
ディスクを変換した後は、そのディスクを使用する VM を作成します。 VM を起動してサインインし、アップロードの準備を完了します。
### <a name="use-hyper-v-manager-to-convert-the-disk"></a>Hyper-V マネージャーを使用してディスクを変換する
1. Hyper-V マネージャーを開いて、左側のローカル コンピューターを選択します。 コンピューター リストの上にあるメニューで、 **[アクション]** > **[ディスクの編集]** の順に選択します。
2. **[仮想ハード ディスクの場所]** ページで、お使いの仮想ディスクを選択します。
3. **[アクションの選択]** ページで、 **[変換]** > **[次へ]** の順に選択します。
4. VHDX から変換する必要がある場合は、 **[VHD]** > **[次へ]** の順に選択します。
5. 容量可変ディスクから変換する必要がある場合は、 **[容量固定]** > **[次へ]** の順に選択します。
6. 新しい VHD ファイルの保存先となるパスを見つけて選択します。
7. **[完了]** を選択します。
> [!NOTE]
> この記事のコマンドを実行するには、管理者特権の PowerShell セッションを使用してください。
### <a name="use-powershell-to-convert-the-disk"></a>PowerShell を使用してディスクを変換する
仮想ディスクは、Windows PowerShell で [Convert-VHD](https://technet.microsoft.com/library/hh848454.aspx) コマンドを使用して変換できます。 PowerShell の起動時に、 **[管理者として実行]** を選択します。
次のコマンド例は、ディスクを VHDX から VHD に変換します。 また、このコマンドは、ディスクを容量可変ディスクを容量固定ディスクに変換します。
```Powershell
Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd -VHDType Fixed
```
このコマンドで、`-Path` の値を、変換する仮想ハード ディスクのパスに置き換えてください。 `-DestinationPath` の値を、変換したディスクの新しいパスおよび名前に置き換えます。
### <a name="convert-from-vmware-vmdk-disk-format"></a>VMware VMDK ディスク フォーマットからの変換
[VMDK ファイル形式](https://en.wikipedia.org/wiki/VMDK)の Windows VM イメージがある場合は、[Microsoft Virtual Machine Converter](https://www.microsoft.com/download/details.aspx?id=42497) を使用して VHD 形式に変換できます。 詳細については、「[VMware VMDK から Hyper-V VHD への変換方法](https://blogs.msdn.com/b/timomta/archive/2015/06/11/how-to-convert-a-vmware-vmdk-to-hyper-v-vhd.aspx)」を参照してください。
## <a name="set-windows-configurations-for-azure"></a>Azure 用の Windows 構成を設定する
Azure にアップロードする予定の VM で、[管理者特権でのコマンド プロンプト ウィンドウ](https://technet.microsoft.com/library/cc947813.aspx)から、次のコマンドを実行します。
1. ルーティング テーブルの静的な固定ルートを削除します。
* ルート テーブルを表示するには、コマンド プロンプト ウィンドウで `route print` を実行します。
* `Persistence Routes` セクションを確認します。 固定ルートがある場合は、`route delete` コマンドを使って削除します。
2. WinHTTP プロキシを削除します。
```PowerShell
netsh winhttp reset proxy
```
VM で特定のプロキシを使用する必要がある場合は、Azure の IP アドレス ([168.63.129.16](https://blogs.msdn.microsoft.com/mast/2015/05/18/what-is-the-ip-address-168-63-129-16/
)) にプロキシ例外追加します。これにより VM は Azure に接続できます。
```
$proxyAddress="<your proxy server>"
$proxyBypassList="<your list of bypasses>;168.63.129.16"
netsh winhttp set proxy $proxyAddress $proxyBypassList
```
3. ディスク SAN ポリシーを [`Onlineall`](https://technet.microsoft.com/library/gg252636.aspx) に設定します。
```PowerShell
diskpart
```
開いているコマンド プロンプト ウィンドウに、次のコマンドを入力します。
```DISKPART
san policy=onlineall
exit
```
4. Windows の協定世界時 (UTC) の時刻を設定します。 また、Windows Time サービス (`w32time`) の起動の種類を `Automatic` に設定します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation' -Name "RealTimeIsUniversal" -Value 1 -Type DWord -Force
Set-Service -Name w32time -StartupType Automatic
```
5. 電源プロファイルを高パフォーマンスに設定します。
```PowerShell
powercfg /setactive SCHEME_MIN
```
6. 環境変数の `TEMP` と `TMP` が既定値に設定されていることを確認します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name "TEMP" -Value "%SystemRoot%\TEMP" -Type ExpandString -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name "TMP" -Value "%SystemRoot%\TEMP" -Type ExpandString -Force
```
## <a name="check-the-windows-services"></a>Windows サービスの確認
次の各 Windows サービスが Windows の既定値に設定されていることを確認します。 これらのサービスは、VM の接続を確保するために設定する必要がある最小のものになります。 スタートアップの設定をリセットするには、次のコマンドを実行します。
```PowerShell
Get-Service -Name bfe | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
Get-Service -Name dhcp | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
Get-Service -Name dnscache | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
Get-Service -Name IKEEXT | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
Get-Service -Name iphlpsvc | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
Get-Service -Name netlogon | Where-Object { $_.StartType -ne 'Manual' } | Set-Service -StartupType 'Manual'
Get-Service -Name netman | Where-Object { $_.StartType -ne 'Manual' } | Set-Service -StartupType 'Manual'
Get-Service -Name nsi | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
Get-Service -Name TermService | Where-Object { $_.StartType -ne 'Manual' } | Set-Service -StartupType 'Manual'
Get-Service -Name MpsSvc | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
Get-Service -Name RemoteRegistry | Where-Object { $_.StartType -ne 'Automatic' } | Set-Service -StartupType 'Automatic'
```
## <a name="update-remote-desktop-registry-settings"></a>リモート デスクトップのレジストリ設定を更新する
リモート アクセスに関して次の設定が正しく構成されていることを確認します。
>[!NOTE]
>`Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services -Name <object name> -Value <value>` を実行するときにエラー メッセージを受け取る場合があります。 このメッセージは無視してかまいません。 これが意味しているのは、ドメインが、グループ ポリシー オブジェクトを介してその構成をプッシュしていないことだけです。
1. リモート デスクトップ プロトコル (RDP) が有効になっていることを確認します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0 -Type DWord -Force
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name "fDenyTSConnections" -Value 0 -Type DWord -Force
```
2. RDP ポートが正しくセットアップされています。 既定のポートは 3389 です。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp' -Name "PortNumber" -Value 3389 -Type DWord -Force
```
VM をデプロイすると、ポート 3389 に対する既定の規則が作成されます。 ポート番号を変更する場合は、VM が Azure にデプロイされた後で行ってください。
3. リスナーがすべてのネットワーク インターフェイスでリッスンしていることを確認します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp' -Name "LanAdapter" -Value 0 -Type DWord -Force
```
4. RDP 接続のネットワーク レベル認証 (NLA) モードを構成します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name "UserAuthentication" -Value 1 -Type DWord -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name "SecurityLayer" -Value 1 -Type DWord -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name "fAllowSecProtocolNegotiation" -Value 1 -Type DWord -Force
```
5. キープアライブ値を設定します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name "KeepAliveEnable" -Value 1 -Type DWord -Force
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name "KeepAliveInterval" -Value 1 -Type DWord -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp' -Name "KeepAliveTimeout" -Value 1 -Type DWord -Force
```
6. 再接続します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name "fDisableAutoReconnect" -Value 0 -Type DWord -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp' -Name "fInheritReconnectSame" -Value 1 -Type DWord -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp' -Name "fReconnectSame" -Value 0 -Type DWord -Force
```
7. コンカレント接続数を制限します。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Winstations\RDP-Tcp' -Name "MaxInstanceCount" -Value 4294967295 -Type DWord -Force
```
8. RDP リスナーに関連付けられている自己署名証明書をすべて削除します。
```PowerShell
if ((Get-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp').Property -contains "SSLCertificateSHA1Hash")
{
Remove-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name "SSLCertificateSHA1Hash" -Force
}
```
このコードは、VM のデプロイ時に最初から接続できるようにします。 これを後で確認する必要がある場合は、VM が Azure にデプロイされた後に行うことができます。
9. VM がドメインの一部になる場合は、次のポリシーをチェックして、前の設定が元に戻されていないことを確認します。
| 目標 | ポリシー | 値 |
|------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| RDP が有効になっている | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[コンポーネント]\[リモート デスクトップ サービス]\[リモート デスクトップ セッション ホスト]\[接続] | ユーザーがリモート デスクトップを使用してリモートで接続できるようにする |
| NLA グループ ポリシー | [設定]\[管理用テンプレート]\[コンポーネント]\[リモート デスクトップ サービス]\[リモート デスクトップ セッション ホスト]\[セキュリティ] | NLA を使ってリモート アクセスにユーザー認証を要求する |
| キープ アライブ設定 | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[Windows コンポーネント]\[リモート デスクトップ サービス]\[リモート デスクトップ セッション ホスト]\[接続] | キープアライブ接続間隔を構成する |
| 再接続設定 | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[Windows コンポーネント]\[リモート デスクトップ サービス]\[リモート デスクトップ セッション ホスト]\[接続] | 自動的に再接続する |
| 限られた数の接続の設定 | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[Windows コンポーネント]\[リモート デスクトップ サービス]\[リモート デスクトップ セッション ホスト]\[接続] | 接続数を制限する |
## <a name="configure-windows-firewall-rules"></a>Windows ファイアウォール規則の構成
1. 3 つのプロファイル (ドメイン、標準、パブリック) で Windows ファイアウォールを有効にします。
```PowerShell
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
```
2. PowerShell で次のコマンドを実行して、WinRM に 3 つのファイアウォール プロファイル (ドメイン、プライベート、パブリック) の通過を許可し、PowerShell リモート サービスを有効にします。
```PowerShell
Enable-PSRemoting -Force
Set-NetFirewallRule -DisplayName "Windows Remote Management (HTTP-In)" -Enabled True
```
3. RDP トラフィックを許可するために以下のファイアウォール規則を有効にします。
```PowerShell
Set-NetFirewallRule -DisplayGroup "Remote Desktop" -Enabled True
```
4. VM が仮想ネットワーク内部の ping コマンドに応答できるように、"ファイルとプリンターの共有" 規則を有効にします。
```PowerShell
Set-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv4-In)" -Enabled True
```
5. VM がドメインの一部になる場合は、次の Azure AD ポリシーをチェックして、前の設定が元に戻されていないことを確認します。
| 目標 | ポリシー | 値 |
|--------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------|
| Windows ファイアウォール プロファイルを有効にする | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[ネットワーク]\[ネットワーク接続]\[Windows ファイアウォール]\[ドメイン プロファイル]\[Windows ファイアウォール] | すべてのネットワーク接続を保護する |
| RDP を有効にする | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[ネットワーク]\[ネットワーク接続]\[Windows ファイアウォール]\[ドメイン プロファイル]\[Windows ファイアウォール] | 着信リモート デスクトップの例外を許可する |
| | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[ネットワーク]\[ネットワーク接続]\[Windows ファイアウォール]\[標準プロファイル]\[Windows ファイアウォール] | 着信リモート デスクトップの例外を許可する |
| ICMP-V4 を有効にする | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[ネットワーク]\[ネットワーク接続]\[Windows ファイアウォール]\[ドメイン プロファイル]\[Windows ファイアウォール] | ICMP の例外を許可する |
| | [コンピューターの構成]\[ポリシー]\[Windows の設定]\[管理用テンプレート]\[ネットワーク]\[ネットワーク接続]\[Windows ファイアウォール]\[標準プロファイル]\[Windows ファイアウォール] | ICMP の例外を許可する |
## <a name="verify-the-vm"></a>VM の確認
VM が正常であり、セキュリティで保護されており、RDP アクセス可能であることを確認します。
1. ディスクが正常で一貫性があることを確認するには、次回の VM 再起動時にディスクをチェックします。
```PowerShell
Chkdsk /f
```
クリーンで正常なディスクがレポートに示されていることを確認してください。
2. ブート構成データ (BCD) を設定します。
> [!NOTE]
> 管理者特権の PowerShell ウィンドウを使用してこれらのコマンドを実行します。
```powershell
bcdedit /set "{bootmgr}" integrityservices enable
bcdedit /set "{default}" device partition=C:
bcdedit /set "{default}" integrityservices enable
bcdedit /set "{default}" recoveryenabled Off
bcdedit /set "{default}" osdevice partition=C:
bcdedit /set "{default}" bootstatuspolicy IgnoreAllFailures
#Enable Serial Console Feature
bcdedit /set "{bootmgr}" displaybootmenu yes
bcdedit /set "{bootmgr}" timeout 5
bcdedit /set "{bootmgr}" bootems yes
bcdedit /ems "{current}" ON
bcdedit /emssettings EMSPORT:1 EMSBAUDRATE:115200
```
3. Dump ログは、Windows のクラッシュの問題をトラブルシューティングするのに役立つ場合があります。 Dump ログ コレクションを有効にします。
```powershell
# Set up the guest OS to collect a kernel dump on an OS crash event
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -Name CrashDumpEnabled -Type DWord -Force -Value 2
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -Name DumpFile -Type ExpandString -Force -Value "%SystemRoot%\MEMORY.DMP"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -Name NMICrashDump -Type DWord -Force -Value 1
# Set up the guest OS to collect user mode dumps on a service crash event
$key = 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps'
if ((Test-Path -Path $key) -eq $false) {(New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting' -Name LocalDumps)}
New-ItemProperty -Path $key -Name DumpFolder -Type ExpandString -Force -Value "c:\CrashDumps"
New-ItemProperty -Path $key -Name CrashCount -Type DWord -Force -Value 10
New-ItemProperty -Path $key -Name DumpType -Type DWord -Force -Value 2
Set-Service -Name WerSvc -StartupType Manual
```
4. Windows Management Instrumentation (WMI) リポジトリに一貫性があることを確認します。
```PowerShell
winmgmt /verifyrepository
```
リポジトリが破損している場合は、「[WMI:リポジトリが破損しているかどうか](https://blogs.technet.microsoft.com/askperf/2014/08/08/wmi-repository-corruption-or-not)」を参照してください。
5. 他にポート 3389 を使用しているアプリケーションがないことを確認します。 このポートは、Azure の RDP サービスに使用します。 VM で使用されているポートを確認するには、`netstat -anob` を実行します。
```PowerShell
netstat -anob
```
6. ドメイン コントローラーである Windows VHD をアップロードするには、次のようにします。
* [この追加の手順](https://support.microsoft.com/kb/2904015)に従って、ディスクを準備します。
* ある時点で Directory Services Restore Mode (DSRM) の VM を起動しなければならない場合に備えて、DSRM パスワードを把握していることを確認します。 詳細については、「[DSRM パスワードの設定](https://technet.microsoft.com/library/cc754363(v=ws.11).aspx)」を参照してください。
7. あらかじめ登録された Administrator アカウントとパスワードを把握していることを確認します。 現在のローカル Administrator パスワードをリセットし、このアカウントを使用して RDP 接続を介して Windows にサインイン可能であることを確認することもできます。 このアクセス許可は、"リモート デスクトップ サービスを使ったログオンを許可" グループ ポリシー オブジェクトによって制御されています。 このオブジェクトは、次の場所からローカル グループ ポリシー エディターで表示します。
Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
8. 次の Azure AD ポリシーで、RDP 経由とネットワークからの自分の RDP アクセスをブロックしていないことを確認します。
- [コンピューターの構成]\[Windows の設定]\[セキュリティ設定]\[ローカル ポリシー]\[ユーザー権利の割り当て]\[ネットワーク経由のアクセスを拒否]
- [コンピューターの構成]\[Windows の設定]\[セキュリティ設定]\[ローカル ポリシー]\[ユーザー権利の割り当て]\[リモート デスクトップ サービスを使ったログオンを拒否]
9. 次の Azure AD ポリシーで、必要なアクセス アカウントのいずれも削除していないことを確認します。
- [コンピューターの構成]\[Windows の設定]\[セキュリティ設定]\[ローカル ポリシー]\[ユーザー権利の割り当て]\[ネットワーク経由でコンピューターへアクセス]
ポリシーには次のグループが一覧表示されるはずです。
- 管理者
- Backup Operators
- Everyone
- ユーザー
10. VM を再起動して、Windows が引き続き正常であり、RDP 接続を介してアクセス可能であることを確認します。 この時点で、ローカル Hyper-V に VM を作成して、VM が完全に起動することを確認できます。 次に、RDP を介して VM に到達できることを確認するためのテストを実行します。
11. 余分な Transport Driver Interface (TDI) フィルターはすべて削除します。 たとえば、TCP パケットや追加のファイアウォールを分析するソフトウェアは削除します。 これを後で確認する必要がある場合は、VM が Azure にデプロイされた後に行うことができます。
12. 物理コンポーネントまたはその他の仮想化テクノロジに関連する、その他のサードパーティ ソフトウェアまたはドライバーをアンインストールします。
### <a name="install-windows-updates"></a>Windows 更新プログラムのインストール
理想的には、継続して*パッチ レベル*でマシンを更新する必要があります。 これを実行できない場合は、以下の更新プログラムがインストールされていることを確認してください。 最新の更新プログラムを入手するには、Windows Update の履歴ページを参照してください。[Windows 10 および Windows Server 2019](https://support.microsoft.com/help/4000825)、[Windows 8.1 および Windows Server 2012 R2](https://support.microsoft.com/help/4009470)、[Windows 7 SP1 および Windows Server 2008 R2 SP1](https://support.microsoft.com/help/4009469)。
| コンポーネント | Binary | Windows 7 SP1、Windows Server 2008 R2 SP1 | Windows 8、Windows Server 2012 | Windows 8.1、Windows Server 2012 R2 | Windows 10 v1607、Windows Server 2016 v1607 | Windows 10 v1703 | Windows 10 v1709、Windows Server 2016 v1709 | Windows 10 v1803、Windows Server 2016 v1803 |
|-------------------------|----------------|-------------------------------------------|---------------------------------------------|------------------------------------|---------------------------------------------------------|----------------------------|-------------------------------------------------|-------------------------------------------------|
| Storage | disk.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17638 / 6.2.9200.21757 - KB3137061 | 6.3.9600.18203 - KB3137061 | - | - | - | - |
| | storport.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17188 / 6.2.9200.21306 - KB3018489 | 6.3.9600.18573 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.332 | - | - |
| | ntfs.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17623 / 6.2.9200.21743 - KB3121255 | 6.3.9600.18654 - KB4022726 | 10.0.14393.1198 - KB4022715 | 10.0.15063.447 | - | - |
| | Iologmsg.dll | 6.1.7601.23403 - KB3125574 | 6.2.9200.16384 - KB2995387 | - | - | - | - | - |
| | Classpnp.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17061 / 6.2.9200.21180 - KB2995387 | 6.3.9600.18334 - KB3172614 | 10.0.14393.953 - KB4022715 | - | - | - |
| | Volsnap.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17047 / 6.2.9200.21165 - KB2975331 | 6.3.9600.18265 - KB3145384 | - | 10.0.15063.0 | - | - |
| | partmgr.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.16681 - KB2877114 | 6.3.9600.17401 - KB3000850 | 10.0.14393.953 - KB4022715 | 10.0.15063.0 | - | - |
| | volmgr.sys | | | | | 10.0.15063.0 | - | - |
| | Volmgrx.sys | 6.1.7601.23403 - KB3125574 | - | - | - | 10.0.15063.0 | - | - |
| | Msiscsi.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.21006 - KB2955163 | 6.3.9600.18624 - KB4022726 | 10.0.14393.1066 - KB4022715 | 10.0.15063.447 | - | - |
| | Msdsm.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.21474 - KB3046101 | 6.3.9600.18592 - KB4022726 | - | - | - | - |
| | Mpio.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.21190 - KB3046101 | 6.3.9600.18616 - KB4022726 | 10.0.14393.1198 - KB4022715 | - | - | - |
| | vmstorfl.sys | 6.3.9600.18907 - KB4072650 | 6.3.9600.18080 - KB3063109 | 6.3.9600.18907 - KB4072650 | 10.0.14393.2007 - KB4345418 | 10.0.15063.850 - KB4345419 | 10.0.16299.371 - KB4345420 | - |
| | Fveapi.dll | 6.1.7601.23311 - KB3125574 | 6.2.9200.20930 - KB2930244 | 6.3.9600.18294 - KB3172614 | 10.0.14393.576 - KB4022715 | - | - | - |
| | Fveapibase.dll | 6.1.7601.23403 - KB3125574 | 6.2.9200.20930 - KB2930244 | 6.3.9600.17415 - KB3172614 | 10.0.14393.206 - KB4022715 | - | - | - |
| ネットワーク | netvsc.sys | - | - | - | 10.0.14393.1198 - KB4022715 | 10.0.15063.250 - KB4020001 | - | - |
| | mrxsmb10.sys | 6.1.7601.23816 - KB4022722 | 6.2.9200.22108 - KB4022724 | 6.3.9600.18603 - KB4022726 | 10.0.14393.479 - KB4022715 | 10.0.15063.483 | - | - |
| | mrxsmb20.sys | 6.1.7601.23816 - KB4022722 | 6.2.9200.21548 - KB4022724 | 6.3.9600.18586 - KB4022726 | 10.0.14393.953 - KB4022715 | 10.0.15063.483 | - | - |
| | mrxsmb.sys | 6.1.7601.23816 - KB4022722 | 6.2.9200.22074 - KB4022724 | 6.3.9600.18586 - KB4022726 | 10.0.14393.953 - KB4022715 | 10.0.15063.0 | - | - |
| | tcpip.sys | 6.1.7601.23761 - KB4022722 | 6.2.9200.22070 - KB4022724 | 6.3.9600.18478 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.447 | - | - |
| | http.sys | 6.1.7601.23403 - KB3125574 | 6.2.9200.17285 - KB3042553 | 6.3.9600.18574 - KB4022726 | 10.0.14393.251 - KB4022715 | 10.0.15063.483 | - | - |
| | vmswitch.sys | 6.1.7601.23727 - KB4022719 | 6.2.9200.22117 - KB4022724 | 6.3.9600.18654 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.138 | - | - |
| コア | ntoskrnl.exe | 6.1.7601.23807 - KB4022719 | 6.2.9200.22170 - KB4022718 | 6.3.9600.18696 - KB4022726 | 10.0.14393.1358 - KB4022715 | 10.0.15063.483 | - | - |
| リモート デスクトップ サービス | rdpcorets.dll | 6.2.9200.21506 - KB4022719 | 6.2.9200.22104 - KB4022724 | 6.3.9600.18619 - KB4022726 | 10.0.14393.1198 - KB4022715 | 10.0.15063.0 | - | - |
| | termsrv.dll | 6.1.7601.23403 - KB3125574 | 6.2.9200.17048 - KB2973501 | 6.3.9600.17415 - KB3000850 | 10.0.14393.0 - KB4022715 | 10.0.15063.0 | - | - |
| | termdd.sys | 6.1.7601.23403 - KB3125574 | - | - | - | - | - | - |
| | win32k.sys | 6.1.7601.23807 - KB4022719 | 6.2.9200.22168 - KB4022718 | 6.3.9600.18698 - KB4022726 | 10.0.14393.594 - KB4022715 | - | - | - |
| | rdpdd.dll | 6.1.7601.23403 - KB3125574 | - | - | - | - | - | - |
| | rdpwd.sys | 6.1.7601.23403 - KB3125574 | - | - | - | - | - | - |
| セキュリティ | MS17-010 | KB4012212 | KB4012213 | KB4012213 | KB4012606 | KB4012606 | - | - |
| | | | KB4012216 | | KB4013198 | KB4013198 | - | - |
| | | KB4012215 | KB4012214 | KB4012216 | KB4013429 | KB4013429 | - | - |
| | | | KB4012217 | | KB4013429 | KB4013429 | - | - |
| | CVE-2018-0886 | KB4103718 | KB4103730 | KB4103725 | KB4103723 | KB4103731 | KB4103727 | KB4103721 |
| | | KB4103712 | KB4103726 | KB4103715| | | | |
> [!NOTE]
> VM のプロビジョニング中に誤って再起動されないようにするために、すべての Windows Update インストールが完了し、保留中の更新プログラムがないことを確認することをお勧めします。 これを行う 1 つの方法は、可能なすべての Windows 更新プログラムをインストールし、一度再起動してから、Sysprep コマンドを実行します。
### Sysprep を使用する状況の判断 <a id="step23"></a>
システム準備ツール (Sysprep) は、Windows インストールをリセットするために使用できるプロセスです。 Sysprep は、個人データをすべて削除し、コンポーネントをいくつかリセットすることによって、"すぐに使用できる" エクスペリエンスを提供します。
Sysprep は通常、特定の構成を持つ他の複数の VM のデプロイ元となるテンプレートを作成するために実行します。 このテンプレートは、*一般化されたイメージ*と呼ばれます。
1 つのディスクから 1 つの VM のみを作成する場合は、Sysprep を使用する必要はありません。 代わりに、*特殊化されたイメージ*から VM を作成することができます。 特殊化されたディスクから VM を作成する方法については、以下を参照してください。
- [特殊化されたディスクからの VM の作成](create-vm-specialized.md)
- [特殊化された VHD ディスクからの VM の作成](https://docs.microsoft.com/azure/virtual-machines/windows/create-vm-specialized-portal?branch=master)
一般化されたイメージを作成する場合は、Sysprep を実行する必要があります。 詳しくは、「[How to use Sysprep: An Introduction](https://technet.microsoft.com/library/bb457073.aspx)」 (Sysprep の使用方法: 概要) をご覧ください。
Windows ベースのコンピューターにインストールされているロールまたはアプリケーションには、一般化されたイメージをサポートしていないものもあります。 したがって、この手順を実行する前に、Sysprep でお使いのコンピューターのロールがサポートされていることを確認してください。 詳しくは、「[Sysprep Support for Server Roles (サーバー ロールの sysprep サポート)](https://msdn.microsoft.com/windows/hardware/commercialize/manufacture/desktop/sysprep-support-for-server-roles)」を参照してください。
### <a name="generalize-a-vhd"></a>VHD の一般化
>[!NOTE]
> 次の手順で `sysprep.exe` を実行した後、VM をオフにします。 Azure でそれからイメージを作成するまでは再びオンにしないでください。
1. Windows VM にサインインします。
1. 管理者として**コマンド プロンプト**を実行します。
1. ディレクトリを `%windir%\system32\sysprep` に変更します 次に、`sysprep.exe` を実行します。
1. **[システム準備ツール]** ダイアログ ボックスで **[システムの OOBE (Out-of-Box Experience) に入る]** を選択し、 **[一般化する]** チェック ボックスがオンになっていることを確認します。
![システム準備ツール](media/prepare-for-upload-vhd-image/syspre.png)
1. **[シャットダウン オプション]** の **[シャットダウン]** を選択します。
1. **[OK]** を選択します。
1. Sysprep が完了したら、VM をシャットダウンします。 VM をシャットダウンするために **[再起動]** を使用しないでください。
これで VHD をアップロードする準備ができました。 一般化されたディスクから VM を作成する方法の詳細については、[一般化された VHD のアップロードと Azure での新しい VM の作成](sa-upload-generalized.md)に関するページをご覧ください。
>[!NOTE]
> カスタム *unattend.xml* ファイルはサポートされていません。 `additionalUnattendContent` プロパティはサポートされていますが、提供されるのは、Azure プロビジョニング エージェントで使用される *unattend.xml* ファイルに [microsoft-windows-shell-setup](https://docs.microsoft.com/windows-hardware/customize/desktop/unattend/microsoft-windows-shell-setup) オプションを追加するための限定サポートのみになります。 たとえば、FirstLogonCommands と LogonCommands を追加するには、[additionalUnattendContent](https://docs.microsoft.com/dotnet/api/microsoft.azure.management.compute.models.additionalunattendcontent?view=azure-dotnet) を使用できます。 詳細については、「[additionalUnattendContent FirstLogonCommands の例](https://github.com/Azure/azure-quickstart-templates/issues/1407)」をご覧ください。
## <a name="complete-the-recommended-configurations"></a>推奨される構成を完了する
次の設定は、VHD のアップロードに影響しません。 ただし、これらを構成しておくことを強くお勧めします。
* [Azure 仮想マシン エージェント](https://go.microsoft.com/fwlink/?LinkID=394789&clcid=0x409)をインストールします。 その後で、VM 拡張機能を有効にできます。 VM 拡張機能によって、VM で使用する重要な機能のほとんどが実装されます。 たとえば、パスワードをリセットしたり、RDP を構成したりするには、拡張機能が必要です。 詳細については、「[Azure 仮想マシン エージェントの概要](../extensions/agent-windows.md)」を参照してください。
* Azure で VM を作成した後は、パフォーマンスを向上させるために、ページ ファイルを "*テンポラル ドライブ ボリューム*" 上に置くことをお勧めします。 次のようにファイルの配置をセットアップできます。
```PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name "PagingFiles" -Value "D:\pagefile.sys" -Type MultiString -Force
```
データ ディスクが VM に接続されている場合、テンポラル ドライブ ボリュームの文字は通常 *D* になります。この指定は、設定や使用可能なドライブ数に応じて異なる場合があります。
* ウイルス対策ソフトウェアによって提供されている可能性のあるスクリプト ブロッカーを無効にすることをお勧めします。 イメージから新しい VM をデプロイするときに実行される Windows プロビジョニング エージェント スクリプトが干渉されて、ブロックされる可能性があります。
## <a name="next-steps"></a>次の手順
* [Resource Manager デプロイメント向けに Windows VM イメージを Azure にアップロードする](upload-generalized-managed.md)
* [Azure Windows VM のライセンス認証に関する問題のトラブルシューティング](troubleshoot-activation-problems.md)
| 80.202198 | 647 | 0.535268 | yue_Hant | 0.865022 |
8a4eea9c29beaead6edeed79cdd0c7328ed59294 | 26 | md | Markdown | README.md | thomas-kalsberger/mmk | 4c546df1ce3c3b029d3435d2f0e8099ab8b2e1ca | [
"Apache-2.0"
] | null | null | null | README.md | thomas-kalsberger/mmk | 4c546df1ce3c3b029d3435d2f0e8099ab8b2e1ca | [
"Apache-2.0"
] | null | null | null | README.md | thomas-kalsberger/mmk | 4c546df1ce3c3b029d3435d2f0e8099ab8b2e1ca | [
"Apache-2.0"
] | null | null | null | # mmk
MMK Portal Features
| 8.666667 | 19 | 0.769231 | eng_Latn | 0.758515 |
8a4fad759db5a8eeb0d6032015177adeec560d09 | 4,562 | md | Markdown | wdk-ddi-src/content/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtladdlargemcbentry~r3.md | jesweare/windows-driver-docs-ddi | a6e73cac25d8328115822ec266dabdf87d395bc7 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | wdk-ddi-src/content/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtladdlargemcbentry~r3.md | jesweare/windows-driver-docs-ddi | a6e73cac25d8328115822ec266dabdf87d395bc7 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | wdk-ddi-src/content/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtladdlargemcbentry~r3.md | jesweare/windows-driver-docs-ddi | a6e73cac25d8328115822ec266dabdf87d395bc7 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-12-08T21:34:31.000Z | 2021-12-08T21:34:31.000Z | ---
UID: NF:ntifs.FsRtlAddLargeMcbEntry~r3
title: FsRtlAddLargeMcbEntry function (ntifs.h)
description: The FsRtlAddLargeMcbEntry routine adds a new mapping to an existing map control block (MCB).
old-location: ifsk\fsrtladdlargemcbentry.htm
tech.root: ifsk
ms.assetid: 7cab24f3-624f-4fd1-9f33-76042e5f16ed
ms.date: 03/29/2018
keywords: ["FsRtlAddLargeMcbEntry function"]
ms.keywords: FsRtlAddLargeMcbEntry, FsRtlAddLargeMcbEntry routine [Installable File System Drivers], fsrtlref_de8b7789-cdba-4535-b2b9-bbc29add7fc6.xml, ifsk.fsrtladdlargemcbentry, ntifs/FsRtlAddLargeMcbEntry
f1_keywords:
- "ntifs/FsRtlAddLargeMcbEntry"
- "FsRtlAddLargeMcbEntry"
req.header: ntifs.h
req.include-header: Ntifs.h
req.target-type: Universal
req.target-min-winverclnt:
req.target-min-winversvr:
req.kmdf-ver:
req.umdf-ver:
req.ddi-compliance:
req.unicode-ansi:
req.idl:
req.max-support:
req.namespace:
req.assembly:
req.type-library:
req.lib: NtosKrnl.lib
req.dll: NtosKrnl.exe
req.irql: <= APC_LEVEL
topic_type:
- APIRef
- kbSyntax
api_type:
- DllExport
api_location:
- NtosKrnl.exe
api_name:
- FsRtlAddLargeMcbEntry
targetos: Windows
req.typenames: TOKEN_TYPE
---
# FsRtlAddLargeMcbEntry function
## -description
The <b>FsRtlAddLargeMcbEntry</b> routine adds a new mapping to an existing map control block (MCB).
## -parameters
### -param Mcb
<p>Pointer to an initialized MCB structure. </p>
### -param Vbn
<p>Starting virtual block number (VBN) of the new mapping run to be added to the MCB. </p>
### -param Lbn
<p>Logical block number (LBN) to which <i>LargeVbn</i> is to be mapped.</p>
### -param SectorCount
<p>Number of sectors in the new mapping run. </p>
## -returns
<b>FsRtlAddLargeMcbEntry</b> returns <b>TRUE</b> if the new mapping was successfully added to the MCB, <b>FALSE</b> otherwise.
## -remarks
<b>FsRtlAddLargeMcbEntry</b> adds a new mapping to an existing map control block (MCB). File systems use MCB structures to map virtual block numbers (VBN) for a file to the corresponding logical block numbers (LBN) on disk.
<div class="alert"><b>Note</b> The upper 32 bits of the LBN are ignored, but they must be set to zero. Only the lower 32 bits are used. </div>
<div> </div>
If a new mapping run to be added overlaps an existing mapping run, <b>FsRtlAddLargeMcbEntry</b> merges them into a single mapping run.
If a pool allocation failure occurs, <b>FsRtlAddLargeMcbEntry</b> raises a STATUS_INSUFFICIENT_RESOURCES exception. To gain control if this pool allocation failure occurs, the driver should wrap the call to <b>FsRtlAddLargeMcbEntry</b> in a <b>try-except</b> or <b>try-finally</b> statement.
To initialize an MCB, call <a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlinitializelargemcb">FsRtlInitializeLargeMcb</a>. To uninitialize an MCB, call <a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtluninitializelargemcb">FsRtlUninitializeLargeMcb</a>.
## -see-also
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlgetnextlargemcbentry">FsRtlGetNextLargeMcbEntry</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlinitializelargemcb">FsRtlInitializeLargeMcb</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtllookuplargemcbentry">FsRtlLookupLargeMcbEntry</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtllookuplastlargemcbentry">FsRtlLookupLastLargeMcbEntry</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtllookuplastlargemcbentryandindex">FsRtlLookupLastLargeMcbEntryAndIndex</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlnumberofrunsinlargemcb">FsRtlNumberOfRunsInLargeMcb</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlremovelargemcbentry">FsRtlRemoveLargeMcbEntry</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtlsplitlargemcb">FsRtlSplitLargeMcb</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtltruncatelargemcb">FsRtlTruncateLargeMcb</a>
<a href="/windows-hardware/drivers/ddi/ntifs/nf-ntifs-_fsrtl_advanced_fcb_header-fsrtluninitializelargemcb">FsRtlUninitializeLargeMcb</a>
| 30.413333 | 330 | 0.766331 | eng_Latn | 0.292904 |
8a4fb3184b2c3e6b385664fb2d9c32aeb6fffe31 | 1,518 | md | Markdown | _i18n/en/_posts/2018-08-29-service-provider-financial-report-month-to-31-july-2018.md | mortyeosdac/wax.eosdac.io | d878e9986297dbe2632b8555604f8766cf3da27a | [
"MIT"
] | 2 | 2019-04-21T19:28:47.000Z | 2020-03-31T21:00:12.000Z | _i18n/en/_posts/2018-08-29-service-provider-financial-report-month-to-31-july-2018.md | mortyeosdac/wax.eosdac.io | d878e9986297dbe2632b8555604f8766cf3da27a | [
"MIT"
] | 64 | 2019-02-11T14:48:28.000Z | 2020-07-30T20:13:30.000Z | _i18n/en/_posts/2018-08-29-service-provider-financial-report-month-to-31-july-2018.md | mortyeosdac/wax.eosdac.io | d878e9986297dbe2632b8555604f8766cf3da27a | [
"MIT"
] | 23 | 2019-01-22T18:34:59.000Z | 2021-01-24T23:23:08.000Z | ---
layout: post
title: "Service provider financial report – month to 31 July 2018"
date: 2018-08-29T17:19:33
external_link: https://steemit.com/eos/@eosdac/service-provider-financial-report-month-to-31-july-2018
---
This is a summary of eosDAC’s financial balances held by Incommsec Ltd and the transactions conducted by them on behalf of eosDAC during the month of July 2018.
This is the report of an eosDAC service provider; it does not report on eosDAC’s cryptocurrency balances or on-chain transactions, which are conducted by the DAC itself.
The cash at bank at 31 July 2018 was £656,360, the product of gifted capital preceding periods. Expenditure in the period was £16,865, comprised of: server rental expense of £7,933; international travel with respect to important industry conferences in Korea and China in the amount of £3,599; consultancy fees of £3,790 including inter alia a fee to a blockchain coding consultancy in the USA; agency fees being Incommsec Ltd’s fee of £777, representing 5% + VAT of all payments; £202 for accountancy fees and other small expenses.
**Profit and loss for the period 1 July 2018 – 31 July 2018**
---
![this.PNG](https://cdn.steemitimages.com/DQmNrq7npYwAZr7B7ByY2Lk7y7ZLpTJrow1Yx4YdYmgj91g/this.PNG)
The cash balance is adequate to meet payables and forecasted expenditure. There are no cashflow concerns foreseen.
**Balance sheet at 31 July 2018**
---
![that.PNG](https://cdn.steemitimages.com/DQmV3JS8TcRUM7hRFjVYBD1ma3bzsi5DpMReE3kQWRcqEJa/that.PNG)
| 54.214286 | 533 | 0.783267 | eng_Latn | 0.991773 |
8a503b2c71892ecfccc67350da3607d77ed32dbf | 549 | md | Markdown | apis/Google.Cloud.PolicyTroubleshooter.V1/docs/history.md | boxstack/google-cloud-dotnet | 15d6b9a598e38036f24f4ed05d6f2bdc2be3847a | [
"Apache-2.0"
] | 474 | 2018-09-20T13:39:44.000Z | 2022-03-31T12:49:21.000Z | apis/Google.Cloud.PolicyTroubleshooter.V1/docs/history.md | boxstack/google-cloud-dotnet | 15d6b9a598e38036f24f4ed05d6f2bdc2be3847a | [
"Apache-2.0"
] | 3,079 | 2018-09-17T17:12:49.000Z | 2022-03-31T21:10:42.000Z | apis/Google.Cloud.PolicyTroubleshooter.V1/docs/history.md | boxstack/google-cloud-dotnet | 15d6b9a598e38036f24f4ed05d6f2bdc2be3847a | [
"Apache-2.0"
] | 244 | 2018-09-23T23:06:30.000Z | 2022-03-25T09:31:28.000Z | # Version history
## Version 1.2.0, released 2021-09-01
- [Commit ac367e2](https://github.com/googleapis/google-cloud-dotnet/commit/ac367e2): feat: Regenerate all APIs to support self-signed JWTs
## Version 1.1.0, released 2021-05-26
No API surface changes; just dependency updates.
## Version 1.0.0, released 2020-11-09
- [Commit 0ca05f5](https://github.com/googleapis/google-cloud-dotnet/commit/0ca05f5): chore: Regenerate all APIs using protoc 3.13 and Grpc.Tools 2.31
## Version 1.0.0-beta01, released 2020-08-26
Initial beta release.
| 27.45 | 150 | 0.748634 | eng_Latn | 0.586645 |
8a50649d3fcd89e49f85c269324e73a60d027fe9 | 12,853 | md | Markdown | README.md | julio-b/vimtex | 7e9102b2f96503aa62fe6bf2ca76d949a1c59061 | [
"MIT"
] | null | null | null | README.md | julio-b/vimtex | 7e9102b2f96503aa62fe6bf2ca76d949a1c59061 | [
"MIT"
] | null | null | null | README.md | julio-b/vimtex | 7e9102b2f96503aa62fe6bf2ca76d949a1c59061 | [
"MIT"
] | null | null | null | # VimTeX
VimTeX is a modern [Vim](http://www.vim.org/) and [Neovim](https://neovim.io/)
filetype and syntax plugin for LaTeX files.
[![Gitter](https://badges.gitter.im/vimtex-chat/community.svg)](https://gitter.im/vimtex-chat/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
![CI tests](https://github.com/lervag/vimtex/workflows/CI%20tests/badge.svg)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5N4MFVXN7U8NW)
## Table of contents
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Quick Start](#quick-start)
- [Screenshots](#screenshots)
- [Features](#features)
- [Other relevant plugins](#other-relevant-plugins)
- [Linting and syntax checking](#linting-and-syntax-checking)
- [Snippets and templates](#snippets-and-templates)
- [Tag navigation](#tag-navigation)
- [Alternatives](#alternatives)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## Requirements
VimTeX requires Vim version 8.0.1453 or Neovim version 0.4.3. The requirements
were updated in July 2020 after the release of VimTeX 1.0. If you are stuck
on older versions of Vim or Neovim, then you should not use the most recent
version of VimTeX, but instead remain at the v1.0 tag.
Some features require external tools. For example, the default compiler backend
relies on [latexmk](http://users.phys.psu.edu/~collins/software/latexmk-jcc/).
Users are encouraged to read the requirements section in the
[documentation](doc/vimtex.txt) (`:h vimtex-requirements`).
## Installation
If you use [vim-plug](https://github.com/junegunn/vim-plug), then add the
following line to your `vimrc` file:
```vim
Plug 'lervag/vimtex'
```
Or use some other plugin manager:
* [vundle](https://github.com/gmarik/vundle)
* [neobundle](https://github.com/Shougo/neobundle.vim)
* [pathogen](https://github.com/tpope/vim-pathogen)
If you use the new package feature in Vim, please note the following:
* Make sure to read and understand the package feature: `:help package`!
* Use the `/pack/foo/start` subdirectory to make sure the filetype plugin is
automatically loaded for the `tex` filetypes.
* Helptags are not generated automatically. Run `:helptags` to generate them.
* Please note that by default Vim puts custom `/start/` plugin directories at
the end of the `&runtimepath`. This means the built in filetype plugin is
loaded, which prevents VimTeX from loading. See
[#1413](https://github.com/lervag/vimtex/issues/1413) for two suggested
solutions to this. To see which scripts are loaded and in which order, use
`:scriptnames`.
* For more information on how to use the Vim native package solution, see
[here](https://vi.stackexchange.com/questions/9522/what-is-the-vim8-package-feature-and-how-should-i-use-it)
and [here](https://shapeshed.com/vim-packages/).
## Configuration
After installing VimTeX, you should edit your `.vimrc` file or `init.vim` file
to configure VimTeX to your liking. Users should read the documentation to
learn the various configuration possibilities, but the below is a simple
overview of some of the main aspects.
```vim
" This is necessary for VimTeX to load properly. The "indent" is optional.
" Note that most plugin managers will do this automatically.
filetype plugin indent on
" This enables Vim's and neovim's syntax-related features. Without this, some
" VimTeX features will not work (see ":help vimtex-requirements" for more
" info).
syntax enable
" Viewer options: One may configure the viewer either by specifying a built-in
" viewer method:
let g:vimtex_view_method = 'zathura'
" Or with a generic interface:
let g:vimtex_view_general_viewer = 'okular'
let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex'
" VimTeX uses latexmk as the default compiler backend. If you use it, which is
" strongly recommended, you probably don't need to configure anything. If you
" want another compiler backend, you can change it as follows. The list of
" supported backends and further explanation is provided in the documentation,
" see ":help vimtex-compiler".
let g:vimtex_compiler_method = 'latexrun'
" Most VimTeX mappings rely on localleader and this can be changed with the
" following line. The default is usually fine and is the symbol "\".
let maplocalleader = ","
```
**Note**: If the compiler or the viewer doesn't start properly, one may
type `<localleader>li` to view the system commands that were executed to
start them. To inspect the compiler output, use `<localleader>lo`.
## Quick Start
The following is a video guide for how to use VimTeX (credits:
[@DustyTopology](https://github.com/DustyTopology) from
[#1946](https://github.com/lervag/vimtex/issues/1946#issuecomment-846345095)).
It displays some of the main features. The example LaTeX file used in the video
is available under
[`test/example-quick-start/main.tex`](test/example-quick-start/main.tex) and it
may be instructive to copy the file and play with it to learn some of these
basic functions.
https://user-images.githubusercontent.com/66584581/119213849-1b7d4080-ba77-11eb-8a31-7ff7b9a4a020.mp4
Users are of course _strongly_
encouraged to read the documentation, at least the introduction, to learn about
the different features and possibilities provided by VimTeX (see [`:h
vimtex`](doc/vimtex.txt)).
Advanced users and potential developers may also be interested in reading the
supplementary documents:
* [CONTRIBUTING.md](CONTRIBUTING.md)
* [DOCUMENTATION.md](DOCUMENTATION.md)
## Screenshots
Here is an example of the syntax highlighting provided by VimTeX. The example
is made by @DustyTopology with the
[vim-colors-xcode](https://github.com/arzg/vim-colors-xcode) colorscheme with
some minor adjustments [described
here](https://github.com/lervag/vimtex/issues/1946#issuecomment-843674951).
![Syntax example](https://github.com/lervag/vimtex-media/blob/main/img/syntax.png)
## Features
Below is a list of features offered by VimTeX. The features are accessible as
both commands and mappings. The mappings generally start with `<localleader>l`,
but if desired one can disable default mappings to define custom mappings. All
features are enabled by default, but each feature may be disabled if desired.
- Document compilation with
[latexmk](http://users.phys.psu.edu/~collins/software/latexmk-jcc/),
[latexrun](https://github.com/aclements/latexrun),
[tectonic](https://tectonic-typesetting.github.io), or
[arara](https://github.com/cereda/arara)
- LaTeX log parsing for quickfix entries using
- internal method
- [pplatex](https://github.com/stefanhepp/pplatex)
- Compilation of selected part of document
- Support for several PDF viewers with forward search
- [MuPDF](http://www.mupdf.com/)
- [Okular](https://okular.kde.org/)
- [qpdfview](https://launchpad.net/qpdfview)
- [Skim](http://skim-app.sourceforge.net/)
- [SumatraPDF](http://www.sumatrapdfreader.org/free-pdf-reader.html)
- [Zathura](https://pwmt.org/projects/zathura/)
- Other viewers are supported through a general interface
- Completion of
- citations
- labels
- commands
- file names for figures, input/include, includepdf, includestandalone
- glossary entries
- package and documentclass names based on available `.sty` and `.cls` files
- Document navigation through
- table of content
- table of labels
- proper settings for `'include'`, `'includexpr'`, `'suffixesadd'` and
`'define'`, which among other things
- allow `:h include-search` and `:h definition-search`
- give enhanced `gf` command
- Easy access to (online) documentation of packages
- Word count (through `texcount`)
- Motions
- Move between section boundaries with `[[`, `[]`, `][`, and `]]`
- Move between environment boundaries with `[m`, `[M`, `]m`, and `]M`
- Move between math environment boundaries with `[n`, `[N`, `]n`, and `]N`
- Move between frame environment boundaries with `[r`, `[R`, `]r`, and `]R`
- Move between comment boundaries with `[*` and `]*`
- Move between matching delimiters with `%`
- Text objects
- `ic ac` Commands
- `id ad` Delimiters
- `ie ae` LaTeX environments
- `i$ a$` Math environments
- `iP aP` Sections
- `im am` Items
- Other mappings
- Delete the surrounding command, environment or delimiter with
`dsc`/`dse`/`ds$`/`dsd`
- Change the surrounding command, environment or delimiter with
`csc`/`cse`/`cs$`/`csd`
- Toggle starred command or environment with `tsc`/`tse`
- Toggle inline and displaymath with `ts$`
- Toggle between e.g. `()` and `\left(\right)` with `tsd`
- Toggle (inline) fractions with `tsf`
- Close the current environment/delimiter in insert mode with `]]`
- Add `\left ... \right)` modifiers to surrounding delimiters with `<F8>`
- Insert new command with `<F7>`
- Convenient insert mode mappings for faster typing of e.g. maths
- Context menu on citations (e.g. `\cite{...}`) mapped to `<cr>`
- Improved folding (`:h 'foldexpr'`)
- Improved indentation (`:h 'indentexpr'`)
- Syntax highlighting
- A consistent core syntax specification
- General syntax highlighting for several popular LaTeX packages
- Nested syntax highlighting for several popular LaTeX packages
- Highlight matching delimiters
- Support for multi-file project packages
- [import](http://ctan.uib.no/macros/latex/contrib/import/import.pdf)
- [subfiles](http://ctan.uib.no/macros/latex/contrib/subfiles/subfiles.pdf)
See the documentation for a thorough introduction to VimTeX (e.g. `:h vimtex`).
## Other relevant plugins
Even though VimTeX provides a lot of nice features for working with LaTeX
documents, there are several features that are better served by other,
dedicated plugins. For a more detailed listing of these, please see [`:help
vimtex-and-friends`](doc/vimtex.txt#L508).
### Linting and syntax checking
* [ale](https://github.com/w0rp/ale)
* [neomake](https://github.com/neomake/neomake)
* [syntastic](https://github.com/vim-syntastic/syntastic)
### Snippets and templates
* [UltiSnips](https://github.com/SirVer/ultisnips)
* [neosnippet](https://github.com/Shougo/neosnippet.vim)
### Tag navigation
* [vim-gutentags](https://github.com/ludovicchabant/vim-gutentags)
## Alternatives
The following are some alternative LaTeX plugins for Vim:
* [LaTeX-Suite](http://vim-latex.sourceforge.net)
The main difference between VimTeX and LaTeX-Suite (aka vim-latex) is
probably that VimTeX does not try to implement a full fledged IDE for LaTeX
inside Vim. E.g.:
* VimTeX does not provide a full snippet feature, because this is better
handled by [UltiSnips](https://github.com/SirVer/ultisnips) or
[neosnippet](https://github.com/Shougo/neosnippet.vim) or similar snippet
engines.
* VimTeX builds upon Vim principles: It provides text objects for
environments, inline math, it provides motions for sections and
paragraphs
* VimTeX uses `latexmk`, `latexrun`, `tectonic` or `arara` for compilation
with a callback feature to get instant feedback on compilation errors
* VimTeX is very modular: if you don't like a feature, you can turn it off.
* [TexMagic.nvim](https://github.com/jakewvincent/texmagic.nvim)
"A simple, lightweight Neovim plugin that facilitates LaTeX build engine
selection via magic comments. It is designed with the TexLab LSP server's
build functionality in mind, which at the time of this plugin's inception
had to be specified in init.lua/init.vim and could not be set on
a by-project basis."
This plugin should be combined with the TexLab LSP server, and it only
works on neovim.
* [LaTeX-Box](https://github.com/LaTeX-Box-Team/LaTeX-Box)
VimTeX currently has most of the features of LaTeX-Box, as well as
some additional ones. See [here](#features) for a relatively complete list
of features.
One particular feature that LaTeX-Box has but VimTeX misses, is the ability
to do single-shot compilation _with callback_. This functionality was
removed because it adds a lot of complexity for relatively little gain
(IMHO).
* [AutomaticTexPlugin](http://atp-vim.sourceforge.net)
* [vim-latex-live-preview](https://github.com/xuhdev/vim-latex-live-preview)
For more alternatives and more information and discussions regarding LaTeX
plugins for Vim, see:
* [What are the differences between LaTeX plugins](http://vi.stackexchange.com/questions/2047/what-are-the-differences-between-latex-plugins)
* [List of LaTeX editors (not only Vim)](https://tex.stackexchange.com/questions/339/latex-editors-ides)
| 42.843333 | 160 | 0.744651 | eng_Latn | 0.968342 |
8a50b0d28de7292bc4054f86ac5e039b0cccf1b1 | 4,811 | md | Markdown | ru/speechkit/tts/ssml.md | vkobozev/docs | 6e761753b0045e5146ca167630d95b370ac61fb6 | [
"CC-BY-4.0"
] | null | null | null | ru/speechkit/tts/ssml.md | vkobozev/docs | 6e761753b0045e5146ca167630d95b370ac61fb6 | [
"CC-BY-4.0"
] | null | null | null | ru/speechkit/tts/ssml.md | vkobozev/docs | 6e761753b0045e5146ca167630d95b370ac61fb6 | [
"CC-BY-4.0"
] | null | null | null | # Использование SSML
Использование Speech Synthesis Markup Language (SSML) дает вам возможность контролировать, как {{ speechkit-name }} синтезирует речь из текста.
Чтобы передать текст в формате SSML используйте параметр `ssml` в теле запроса, а сам текст оберните в тег `<speak>`:
{% include [ssml-example](../../_includes/speechkit/ssml-example.md) %}
[Пример отправки запроса](request.md#ssml).
## Поддерживаемые теги SSML
На данный момент {{ speechkit-name }} поддерживает следующие теги SSML:
Описание | Тег
----- | -----
[Добавить паузу](#break) | `<break>`
[Добавить паузу между параграфами](#p) | `<p>`
[Использовать фонетическое произношение](#phoneme) | `<phoneme>`
[Корневой тег для текста в формате SSML](#speak) | `<speak>`
[Добавить паузу между предложениями](#s) | `<s>`
[Произношение аббревиатур](#sub) | `<sub>`
### break {#break}
Используйте тег `<break>`, чтобы добавить в речь паузу заданной длительности. Длительность указывается с помощью атрибутов `strength` и `time`. Если эти атрибуты не заданы, то по умолчанию используется `strength="medium"`.
Атрибут | Описание
----- | -----
`strength` | Длительность паузы. Допустимые значения:<br>* `medium` или `weak` — соответствует паузе после запятой.<br>* `strong` — соответствует паузе после точки или [предложения](#s).<br>* `x-strong` — соответствует паузе после [параграфа](#p).<br>* `none` или `x-weak` — эти значения не добавляют паузу, а оставлены для совместимости с AWS API.
`time` | Длительность паузы в секундах или миллисекундах, например `2s` или `400ms`. Максимальная длительность паузы — 5 секунд.<br>При синтезе паузы указанной длительности может быть погрешность 100-200 миллисекунд.
```xml
<speak>Эй, секундочку<break time="1s"/> Что вы делаете?</speak>
```
Тег `<break>` добавляет паузу, даже если он идет после других элементов, добавляющих паузу, например после точки или запятой.
### p {#p}
Используйте тег `<p>`, чтобы добавить паузу между абзацами. Пауза добавляется после закрывающего тега.
Пауза после абзаца больше, чем пауза после [предложения](#s) или точки. Длительность паузы зависит от выбранного голоса, эмоциональной окраски, скорости и языка.
```xml
<speak>
<p>Палач доказывал, что нельзя отрубить голову, у которой нет туловища, значит казнь не может состояться.</p>
<p>Король доказывал, что все, имеющее голову, может быть обезглавлено, и что палач говорит пустяки.</p>
<p>Королева тем временем вопила, что если кот не будет немедленно казнен, то казнены будут все присутствующее (замечание это удручающе подействовало на всех участников игры).</p>
</speak>
```
Все паузы внутри тега тоже учитываются. Например на месте точки добавится дополнительная пауза, даже если она стоит перед закрывающим тегом.
### phoneme {#phoneme}
Используйте тег `<phoneme>`, чтобы контролировать правильность произношения с помощью фонем. Для воспроизведения будет использован текст, указанный в атрибуте `ph`. В атрибуте `alphabet` укажите используемый стандарт: `ipa` или `x-sampa`.
* Международный фонетический алфавит ([IPA](https://en.wikipedia.org/wiki/International_Phonetic_Alphabet))
```xml
<speak>
В разных регионах России по-разному произносят букву
<phoneme alphabet="ipa" ph="o">О</phoneme> в словах.
Где-то говорят <phoneme alphabet="ipa" ph="məlɐko">молоко</phoneme>,
а где-то <phoneme alphabet="ipa" ph="mələko">молоко</phoneme>.
</speak>
```
* Extended Speech Assessment Methods Phonetic Alphabet ([X-SAMPA](https://en.wikipedia.org/wiki/X-SAMPA))
```xml
<speak>
В разных регионах России по-разному произносят букву
<phoneme alphabet="x-sampa" ph="o">О</phoneme> в словах.
Где-то говорят <phoneme alphabet="x-sampa" ph="m@l6ko">молоко</phoneme>,
а где-то <phoneme alphabet="x-sampa" ph="m@l@ko">молоко</phoneme>.
</speak>
```
[Список поддерживаемых фонем для каждого из языков](supported-phonemes.md).
### speak {#speak}
Тег `<speak>` — это корневой тег. Весь текст должен быть внутри этого тега.
```xml
<speak>Мой текст в формате SSML.</speak>
```
### s {#s}
Используйте тег `<s>`, чтобы добавить паузу между предложениями. Пауза после предложения равна паузе после точки. Длительность паузы зависит от выбранного голоса, эмоциональной окраски, скорости и языка.
```xml
<speak>
<s>Первое предложение<s/>
<s>Второе предложение</s>
</speak>
```
Все паузы внутри тега тоже учитываются. Например на месте точки добавится дополнительная пауза, даже если она стоит перед закрывающим тегом.
### sub {#sub}
Используйте тег `<sub>`, чтобы подменить текст на другой текст при произношении. Например, чтобы правильно произнести аббревиатуру или название химического элемента.
```xml
<speak>
Мой любимый химический элемент — <sub alias="Меркурий">Hg</sub>, потому что он блестит.
</speak>
``` | 42.955357 | 348 | 0.733527 | rus_Cyrl | 0.945082 |
8a515b537d49255affa1f60bde048a3d64c52078 | 240 | md | Markdown | content/zh/docs/_index.md | ruebenramirez/istio.io | 93b889af63cb456099ec7449a0eca7362d81eb0d | [
"Apache-2.0"
] | 5 | 2019-07-24T13:45:21.000Z | 2021-07-25T10:37:30.000Z | content/zh/docs/_index.md | ruebenramirez/istio.io | 93b889af63cb456099ec7449a0eca7362d81eb0d | [
"Apache-2.0"
] | 45 | 2021-02-03T19:29:30.000Z | 2021-03-11T17:43:47.000Z | content/zh/docs/_index.md | ruebenramirez/istio.io | 93b889af63cb456099ec7449a0eca7362d81eb0d | [
"Apache-2.0"
] | 8 | 2019-07-14T04:23:21.000Z | 2021-07-25T10:35:54.000Z | ---
title: 文档
linktitle: 文档
description: 了解如何部署、使用和运维 Istio。
weight: 1
sidebar_multicard: true
icon: docs
---
另外,除了上面的文档链接,我们还提供了以下资源:
- [FAQ](/zh/faq)
- [词汇表](/zh/docs/reference/glossary)。
- [文档归档](https://archive.istio.io/)中包括了历史版本的快照。
| 16 | 47 | 0.708333 | yue_Hant | 0.818626 |
8a51df30d1ee4d7e98a87e3c1f38184f54b463f0 | 1,425 | md | Markdown | src/Components/Navbar/README.md | bulma-preact/bulma-preact | 970ac088e118904ff903d858b6399811ab475b42 | [
"MIT"
] | 14 | 2018-02-05T07:07:10.000Z | 2021-03-27T09:18:29.000Z | src/Components/Navbar/README.md | bulma-preact/bulma-preact | 970ac088e118904ff903d858b6399811ab475b42 | [
"MIT"
] | 3 | 2018-02-25T14:03:20.000Z | 2021-05-06T21:40:13.000Z | src/Components/Navbar/README.md | bulma-preact/bulma-preact | 970ac088e118904ff903d858b6399811ab475b42 | [
"MIT"
] | 9 | 2018-02-05T07:13:55.000Z | 2019-10-16T08:33:32.000Z | ## Navbar
build Navbar by object
### Menu Props
[MenuItem](../Menu/)
```js
export interface NavbarBrandProps extends MenuItem {
dataTarget?: string
}
export interface NavbarMenuProps {
id?: string
start: MenuGroup[]
end?: VNode[]
}
export interface NavbarProps extends ComponentBaseProps{
isFixedTop: boolean
brand: NavbarBrandProps,
menu: NavbarMenuProps,
onLink?: {
(key: string): void
}
}
```
``` tsx
import { Navbar } from 'bulma-preact'
import { render, h } from 'preact'
const brand = {
href: '/',
key: 'index',
item: <img src="https://bulma.io/images/bulma-logo.png" height={28}/>
}
const menu = {
onLink: (e, item) => {
console.log(item)
e.preventDefault()
},
end: [
{
label: 'Form',
href: '../../Form/'
},
{
label: 'Columns',
list: [
{ key: 'Basics', item: 'Basics'},
{ key: 'Sizes', item: 'Sizes'}
]
},
{
label: 'Components',
list: [
{ key: 'Card', item: 'Card' },
{ key: 'Dropdown', item: 'Dropdown', href: '../Dropdown/'},
{ key: 'Menu', item: 'Menu' },
{ key: 'Modal', item: 'Modal' }
]
}
]
}
render(<Navbar className="is-transparent" brand={brand} menu={menu}/>, container)
``` | 21.590909 | 81 | 0.493333 | yue_Hant | 0.227144 |
8a51f3907ea496bfee6e5a5a160a43ffb9515fa1 | 7,141 | md | Markdown | articles/vpn-gateway/vpn-gateway-troubleshoot-site-to-site-cannot-connect.md | nsrau/azure-docs.it-it | 9935e44b08ef06c214a4c7ef94d12e79349b56bc | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/vpn-gateway/vpn-gateway-troubleshoot-site-to-site-cannot-connect.md | nsrau/azure-docs.it-it | 9935e44b08ef06c214a4c7ef94d12e79349b56bc | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/vpn-gateway/vpn-gateway-troubleshoot-site-to-site-cannot-connect.md | nsrau/azure-docs.it-it | 9935e44b08ef06c214a4c7ef94d12e79349b56bc | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: 'Risolvere i problemi relativi a una connessione VPN da sito a sito di Azure che non è in grado di connettere titleSuffix: gateway VPN di Azure'
description: Informazioni su come risolvere un problema relativo a una connessione VPN da sito a sito che si interrompe improvvisamente e non può essere riconnessa.
services: vpn-gateway
author: chadmath
ms.service: vpn-gateway
ms.topic: troubleshooting
ms.date: 09/16/2019
ms.author: genli
ms.openlocfilehash: 674b8ab8266921a4eef8bbf212f3c556b1e587d7
ms.sourcegitcommit: 8e7316bd4c4991de62ea485adca30065e5b86c67
ms.translationtype: MT
ms.contentlocale: it-IT
ms.lasthandoff: 11/17/2020
ms.locfileid: "94658350"
---
# <a name="troubleshooting-an-azure-site-to-site-vpn-connection-cannot-connect-and-stops-working"></a>Risoluzione dei problemi: una connessione VPN da sito a sito di Azure non può essere stabilita e smette di funzionare
Dopo aver configurato una connessione VPN da sito a sito tra una rete locale e una rete virtuale di Azure, la connessione VPN si interrompe improvvisamente e non può essere riconnessa. Questo articolo illustra la procedura per risolvere questo tipo di problema.
[!INCLUDE [support-disclaimer](../../includes/support-disclaimer.md)]
## <a name="troubleshooting-steps"></a>Passaggi per la risoluzione dei problemi
Per risolvere il problema, provare prima a [reimpostare il gateway VPN di Azure](./reset-gateway.md) e a reimpostare il tunnel dal dispositivo VPN locale. Se il problema persiste, seguire questa procedura per identificare la causa del problema.
### <a name="prerequisite-step"></a>Passaggio preliminare
Controllare il tipo del gateway VPN di Azure.
1. Accedere al [portale di Azure](https://portal.azure.com).
2. Per informazioni sul tipo, vedere la pagina **Panoramica** del gateway VPN.
![Panoramica del gateway](media/vpn-gateway-troubleshoot-site-to-site-cannot-connect/gatewayoverview.png)
### <a name="step-1-check-whether-the-on-premises-vpn-device-is-validated"></a>Passaggio 1. Controllare se il dispositivo VPN locale è convalidato
1. Controllare se si usano un [dispositivo VPN e una versione del sistema operativo convalidati](vpn-gateway-about-vpn-devices.md#devicetable). Se il dispositivo non è un dispositivo VPN convalidato, può essere necessario contattare il produttore del dispositivo per verificare se esiste un problema di compatibilità.
2. Verificare che il dispositivo VPN sia configurato correttamente. Per altre informazioni, vedere [Esempi di modifica di configurazione dispositivo](vpn-gateway-about-vpn-devices.md#editing).
### <a name="step-2-verify-the-shared-key"></a>Passaggio 2: Verificare la chiave condivisa
Confrontare la chiave condivisa del dispositivo VPN locale con quella del gateway VPN della rete virtuale per verificare che corrispondano.
Per visualizzare la chiave condivisa per la connessione VPN di Azure, usare uno dei metodi seguenti:
**Portale di Azure**
1. Passare alla connessione gateway VPN di Azure da sito a sito appena creata.
2. Nella sezione **Impostazioni** fare clic su **chiave condivisa**.
![Chiave condivisa](media/vpn-gateway-troubleshoot-site-to-site-cannot-connect/sharedkey.png)
**Azure PowerShell**
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
Per il modello di distribuzione di Azure Resource Manager:
```azurepowershell
Get-AzVirtualNetworkGatewayConnectionSharedKey -Name <Connection name> -ResourceGroupName <Resource group name>
```
Per il modello di distribuzione classica:
```azurepowershell
Get-AzureVNetGatewayKey -VNetName -LocalNetworkSiteName
```
### <a name="step-3-verify-the-vpn-peer-ips"></a>Passaggio 3. Verificare gli IP dei peer VPN
- La definizione IP nell'oggetto **Gateway di rete locale** in Azure deve corrispondere all'IP del dispositivo locale.
- La definizione dell'IP del gateway di Azure impostata nel dispositivo locale deve corrispondere all'IP del gateway di Azure.
### <a name="step-4-check-udr-and-nsgs-on-the-gateway-subnet"></a>Passaggio 4. Verificare i gruppi di sicurezza di rete e il routing definito dall'utente nella subnet del gateway
Cercare e rimuovere il routing definito dall'utente o i gruppi di sicurezza di rete nella subnet del gateway e quindi testare il risultato. Se il problema viene risolto, convalidare le impostazioni applicate dal gruppo di sicurezza di rete o dal routing definito dall'utente.
### <a name="step-5-check-the-on-premises-vpn-device-external-interface-address"></a>Passaggio 5. Controllare l'indirizzo dell'interfaccia esterna del dispositivo VPN locale
- Se l'indirizzo IP per Internet del dispositivo VPN è incluso nella definizione della **rete locale** in Azure, è possibile che si verifichino sporadiche disconnessioni.
- L'interfaccia esterna del dispositivo deve essere direttamente su Internet. Non devono essere presenti Network Address Translation o firewall tra Internet e il dispositivo.
- Per configurare il clustering di firewall in modo che abbia un IP virtuale, è necessario interrompere il cluster ed esporre il dispositivo VPN direttamente a un'interfaccia pubblica con cui il gateway può interfacciarsi.
### <a name="step-6-verify-that-the-subnets-match-exactly-azure-policy-based-gateways"></a>Passaggio 6. Verificare che le subnet corrispondano esattamente (gateway basati su criteri di Azure)
- Verificare che ci sia una corrispondenza esatta dello spazio di indirizzi della rete virtuale tra la rete virtuale di Azure e le definizioni locali.
- Verificare che ci sia una corrispondenza esatta delle subnet tra il **gateway di rete locale** e le definizioni locali per la rete locale.
### <a name="step-7-verify-the-azure-gateway-health-probe"></a>Passaggio 7. Verificare il probe di integrità del gateway di Azure
1. Aprire un probe di integrità passando all'URL seguente:
`https://<YourVirtualNetworkGatewayIP>:8081/healthprobe`
2. Fare clic sull'avviso del certificato.
3. Se si riceve una risposta, il gateway VPN viene considerato integro. Se non si riceve una risposta, è possibile che il gateway non sia integro oppure il problema è causato da un gruppo di sicurezza di rete nella subnet del gateway. Il testo seguente è una risposta di esempio:
```xml
<?xml version="1.0"?>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Primary Instance: GatewayTenantWorker_IN_1 GatewayTenantVersion: 14.7.24.6</string>
```
### <a name="step-8-check-whether-the-on-premises-vpn-device-has-the-perfect-forward-secrecy-feature-enabled"></a>Passaggio 8. Controllare se nel dispositivo VPN locale è abilitata la funzionalità PFS
La funzionalità PFS (Perfect Forward Secrecy) può causare problemi di disconnessione. Se nel dispositivo VPN è abilitata la funzionalità PFS, disabilitarla e aggiornare i criteri IPsec del gateway VPN.
## <a name="next-steps"></a>Passaggi successivi
- [Configurare una connessione da sito a sito a una rete virtuale](vpn-gateway-howto-site-to-site-resource-manager-portal.md)
- [Configurare criteri IPsec/IKE per connessioni VPN da sito a sito o da rete virtuale a rete virtuale](vpn-gateway-ipsecikepolicy-rm-powershell.md) | 62.640351 | 317 | 0.789945 | ita_Latn | 0.992623 |
8a51f750aae2b5c8e9d61ab9a509eb9a3d286e97 | 1,738 | md | Markdown | original_dashboard/RMarkdownFile.md | Jim-Wright90/ks_2022_wellbeing | 714395c3e2486fe53e6d7c470d85a36de30f7448 | [
"MIT"
] | null | null | null | original_dashboard/RMarkdownFile.md | Jim-Wright90/ks_2022_wellbeing | 714395c3e2486fe53e6d7c470d85a36de30f7448 | [
"MIT"
] | null | null | null | original_dashboard/RMarkdownFile.md | Jim-Wright90/ks_2022_wellbeing | 714395c3e2486fe53e6d7c470d85a36de30f7448 | [
"MIT"
] | null | null | null | ---
title: "Untitled"
author: "David McCullough"
date: "5/27/2021"
output: html_document
---
**About the ‘Imi Pono Hawaiʻi Wellbeing Survey:**
The ‘Imi Pono Hawaiʻi Wellbeing Survey is a statewide survey examining wellbeing among Native Hawaiians and Hawai’i residents from holistic and strengths-based perspectives. This survey is a partnership between Kamehameha Schools, Lili‘uokalani Trust, and the Office of Hawaiian Affairs and contracted with Marzano Research.
Data were collected from November 2020 through February 2021. A total of 1,458 participants took this survey, about half of whom reported being Native Hawaiian. The confidence intervals for the State and Honolulu County—including breakouts for Native Hawaiians within these areas—are five percent or less. Confidence intervals for other counties are higher; therefore findings for these counties should not be generalized beyond the survey sample. Data were collected via email, phone, postcard, and social media outlets. Given this, it is likely that the sample of survey respondents are more financially affluent than the general Native Hawaiian and Hawai’i population
**Recommended citation:**
Kamehameha Schools’ Strategy & Transformation Group, Liliʻuokalani Trust, and Office of Hawaiian Affairs. *‘Imi Pono Hawaiʻi Wellbeing Survey 2021: COVID-19 Impacts.* Honolulu: Author, May 2021.
Please see https://www.ksbe.edu/research/imi_pono_hawaii_wellbeing_survey/ for more information on the survey and to access published briefs.
**About the dashboard:**
This interactive dashboard provides results for the 2021 survey administration. Results can be explored for each survey question and further broken out by respondent demographics.
| 75.565217 | 671 | 0.802647 | eng_Latn | 0.996504 |
8a52213ec2296f18b19d1cb33db533748d589967 | 984 | md | Markdown | docs/dotnet/lock.md | B4V/cpp-docs.ru-ru | e820ac4bfffac205c605a9982ab55c2ef7cd0d41 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/dotnet/lock.md | B4V/cpp-docs.ru-ru | e820ac4bfffac205c605a9982ab55c2ef7cd0d41 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/dotnet/lock.md | B4V/cpp-docs.ru-ru | e820ac4bfffac205c605a9982ab55c2ef7cd0d41 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Блокировка | Документация Майкрософт
ms.custom: ''
ms.date: 11/04/2016
ms.technology:
- cpp-cli
ms.topic: reference
f1_keywords:
- lock
dev_langs:
- C++
helpviewer_keywords:
- lock
- synchronization
ms.assetid: 48c90da6-d6fb-4710-9c7c-2b9c9344bda1
author: mikeblome
ms.author: mblome
ms.workload:
- cplusplus
- dotnet
ms.openlocfilehash: 4d276419c4eaa517fe80dc7688dc138ea57744ee
ms.sourcegitcommit: 799f9b976623a375203ad8b2ad5147bd6a2212f0
ms.translationtype: MT
ms.contentlocale: ru-RU
ms.lasthandoff: 09/19/2018
ms.locfileid: "46388190"
---
# <a name="lock"></a>lock
Определяет `lock` класс, который автоматизирует синхронизации доступа к объекту.
## <a name="syntax"></a>Синтаксис
```
#include <msclr\lock.h>
```
## <a name="remarks"></a>Примечания
В этом файле заголовка:
[Класс lock](../dotnet/lock-class.md)
[Перечисление lock_when](../dotnet/lock-when-enum.md)
## <a name="see-also"></a>См. также
[Библиотека поддержки C++](../dotnet/cpp-support-library.md) | 20.5 | 80 | 0.748984 | kor_Hang | 0.082259 |
8a525ff51100d8136f49a367dbaa28a4f14faccc | 2,047 | markdown | Markdown | website/docs/index.html.markdown | osherdp/terraform-provider-libvirt | 90a192f1c68b431e051f9e912eb54751c2291d95 | [
"Apache-2.0"
] | 1,170 | 2016-02-29T09:11:51.000Z | 2022-03-31T17:21:51.000Z | website/docs/index.html.markdown | osherdp/terraform-provider-libvirt | 90a192f1c68b431e051f9e912eb54751c2291d95 | [
"Apache-2.0"
] | 816 | 2016-02-29T22:57:17.000Z | 2022-03-30T21:09:30.000Z | website/docs/index.html.markdown | osherdp/terraform-provider-libvirt | 90a192f1c68b431e051f9e912eb54751c2291d95 | [
"Apache-2.0"
] | 430 | 2016-04-08T19:18:47.000Z | 2022-03-31T10:58:31.000Z | ---
layout: "libvirt"
page_title: "Provider: libvirt"
sidebar_current: "docs-libvirt-index"
description: |-
The Libvirt provider is used to interact with Linux KVM/libvirt hypervisors. The provider needs to be configured with the proper connection information before it can be used.
---
# Libvirt Provider
The Libvirt provider is used to interact with Linux
[libvirt](https://libvirt.org) hypervisors.
The provider needs to be configured with the proper connection information
before it can be used.
~> **Note:** while libvirt can be used with several types of hypervisors, this
provider focuses on [KVM](http://libvirt.org/drvqemu.html). Other drivers may not be
working and haven't been tested.
## The connection URI
The provider understands [connection URIs](https://libvirt.org/uri.html). The supported transports are:
* `tcp` (non-encrypted connection)
* `unix` (UNIX domain socket)
* `tls` (See [here](https://www.libvirt.org/tlscerts.html) for information how to setup certificates)
* `ssh` (Secure shell)
Unlike the original libvirt, the `ssh` transport is not implemented using the ssh command and therefore does not require `nc` (netcat) on the server side.
Additionally, the `ssh` URI supports passwords using the `driver+ssh://[username:PASSWORD@][hostname][:port]/[path]?sshauth=ssh-password` syntax.
As the provider does not use libvirt on the client side, not all connection URI options are supported or apply.
## Example Usage
```hcl
# Configure the Libvirt provider
provider "libvirt" {
uri = "qemu:///system"
}
# Create a new domain
resource "libvirt_domain" "test1" {
...
}
```
## Configuration Reference
The following keys can be used to configure the provider.
* `uri` - (Required) The [connection URI](https://libvirt.org/uri.html) used
to connect to the libvirt host.
## Environment variables
The libvirt connection URI can also be specified with the `LIBVIRT_DEFAULT_URI`
shell environment variable.
```hcl
$ export LIBVIRT_DEFAULT_URI="qemu+ssh://[email protected]/system"
$ terraform plan
```
| 31.015152 | 176 | 0.753298 | eng_Latn | 0.985965 |
8a53aade314ffca463bff37159da13520ab13b15 | 18,917 | md | Markdown | README.md | dsherret/dnt | 621cd2424efec0ed62081b1e94b37d212a6a9ab9 | [
"MIT"
] | 11 | 2021-10-04T22:20:19.000Z | 2021-10-30T13:47:52.000Z | README.md | dsherret/dnt | 621cd2424efec0ed62081b1e94b37d212a6a9ab9 | [
"MIT"
] | 5 | 2021-10-05T14:32:13.000Z | 2021-10-21T23:34:32.000Z | README.md | dsherret/dnt | 621cd2424efec0ed62081b1e94b37d212a6a9ab9 | [
"MIT"
] | 1 | 2021-10-05T03:19:32.000Z | 2021-10-05T03:19:32.000Z | # dnt - Deno to Node Transform
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/dnt/mod.ts)
Deno to npm package build tool.
This tool is under active early development and hasn't been tested in a lot of
scenarios. Examine its output thoroughly before publishing. If you encounter any
problems or challenges, please open an
[issue](https://github.com/denoland/dnt/issues) to help us improve it.
## What does this do?
Takes a Deno module and creates an npm package for use in Node.js.
There are several steps done in a pipeline:
1. Transforms Deno code to Node/canonical TypeScript including files found by
`deno test`.
- Rewrites module specifiers.
- Injects [shims](https://github.com/denoland/node_deno_shims) for any `Deno`
namespace or other global name usages as specified.
- Rewrites [Skypack](https://www.skypack.dev/) and [esm.sh](https://esm.sh/)
specifiers to bare specifiers and includes these dependencies in a
package.json.
- When remote modules cannot be resolved to an npm package, it downloads them
and rewrites specifiers to make them local.
- Allows mapping any specifier to an npm package.
1. Type checks the output.
1. Emits ESM, CommonJS, and TypeScript declaration files along with a
_package.json_ file.
1. Runs the final output in Node.js through a test runner calling all
`Deno.test` calls.
## Setup
1. Create a build script file:
```ts
// ex. scripts/build_npm.ts
import { build, emptyDir } from "https://deno.land/x/dnt/mod.ts";
await emptyDir("./npm");
await build({
entryPoints: ["./mod.ts"],
outDir: "./npm",
shims: {
// see JS docs for overview and more options
deno: true,
},
package: {
// package.json properties
name: "your-package",
version: Deno.args[0],
description: "Your package.",
license: "MIT",
repository: {
type: "git",
url: "git+https://github.com/username/repo.git",
},
bugs: {
url: "https://github.com/username/repo/issues",
},
},
});
// post build steps
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");
```
1. Ignore the output directory with your source control if you desire (ex. add
`npm/` to `.gitignore`).
1. Run it and `npm publish`:
```bash
# run script
deno run -A scripts/build_npm.ts 0.1.0
# go to output directory and publish
cd npm
npm publish
```
### Example Build Logs
```
[dnt] Transforming...
[dnt] Running npm install...
[dnt] Building project...
[dnt] Type checking...
[dnt] Emitting declaration files...
[dnt] Emitting ESM package...
[dnt] Emitting script package...
[dnt] Running tests...
> test
> node test_runner.js
Running tests in ./script/mod.test.js...
test escapeWithinString ... ok
test escapeChar ... ok
Running tests in ./esm/mod.test.js...
test escapeWithinString ... ok
test escapeChar ... ok
[dnt] Complete!
```
## Docs
### Disabling Type Checking, Testing, Declaration Emit, or CommonJS/UMD Output
Use the following options to disable any one of these, which are enabled by
default:
```ts
await build({
// ...etc...
typeCheck: false,
test: false,
declaration: false,
scriptModule: false,
});
```
### Top Level Await
Top level await doesn't work in CommonJS/UMD and dnt will error if a top level
await is used and you are outputting CommonJS/UMD code. If you want to output a
CommonJS/UMD package then you'll have to restructure your code to not use any
top level awaits. Otherwise, set the `scriptModule` build option to `false`:
```ts
await build({
// ...etc...
scriptModule: false,
});
```
### Shims
dnt will shim the globals specified in the build options. For example, if you
specify the following build options:
```ts
await build({
// ...etc...
shims: {
deno: true,
},
});
```
Then write a statement like so...
```ts
Deno.readTextFileSync(...);
```
...dnt will create a shim file in the output, re-exporting the
[@deno/shim-deno](https://github.com/denoland/node_deno_shims) npm shim package
and change the Deno global to be used as a property of this object.
```ts
import * as dntShim from "./_dnt.shims.js";
dntShim.Deno.readTextFileSync(...);
```
#### Test-Only Shimming
If you want a shim to only be used in your test code as a dev dependency, then
specify `"dev"` for the option.
For example, to use the `Deno` namespace only for development and the
`setTimeout` and `setInterval` browser/Deno compatible shims in the distributed
code, you would do:
```ts
await build({
// ...etc...
shims: {
deno: "dev",
timers: true,
},
});
```
#### Preventing Shimming
To prevent shimming in specific instances, add a `// dnt-shim-ignore` comment:
```ts
// dnt-shim-ignore
Deno.readTextFileSync(...);
```
...which will now output that code as-is.
#### Built-In Shims
Set any of these properties to `true` (distribution and test) or `"dev"` (test
only) to use them.
- `deno` - Shim the `Deno` namespace.
- `timers` - Shim the global `setTimeout` and `setInterval` functions with Deno
and browser compatible versions.
- `prompts` - Shim the global `confirm`, `alert`, and `prompt` functions.
- `blob` - Shim the `Blob` global with the one from the `"buffer"` module.
- `crypto` - Shim the `crypto` global.
- `domException` - Shim the `DOMException` global using the "domexception"
package (https://www.npmjs.com/package/domexception)
- `undici` - Shim `fetch`, `File`, `FormData`, `Headers`, `Request`, and
`Response` by using the "undici" package
(https://www.npmjs.com/package/undici).
- `weakRef` - Sham for the `WeakRef` global, which uses `globalThis.WeakRef`
when it exists. The sham will throw at runtime when calling `deref()` and
`WeakRef` doesn't globally exist, so this is only intended to help type check
code that won't actually use it.
- `webSocket` - Shim `WebSocket` by using the
[ws](https://www.npmjs.com/package/ws) package.
##### `Deno.test`-only shim
If you only want to shim `Deno.test` then provide the following:
```ts
await build({
// ...etc...
shims: {
deno: {
test: "dev",
},
},
});
```
This may be useful in Node v14 and below where the full deno shim doesn't always
work. See the section on Node v14 below for more details
#### Custom Shims (Advanced)
In addition to the pre-defined shim options, you may specify your own custom
packages to use to shim globals.
For example:
```ts
await build({
scriptModule: false, // node-fetch 3+ only supports ESM
// ...etc...
shims: {
custom: [{
package: {
name: "node-fetch",
version: "~3.1.0",
},
globalNames: [{
// for the `fetch` global...
name: "fetch",
// use the default export of node-fetch
exportName: "default",
}, {
name: "RequestInit",
typeOnly: true, // only used in type declarations
}],
}, {
// this is what `blob: true` does internally
module: "buffer", // uses node's "buffer" module
globalNames: ["Blob"],
}, {
// this is what `domException: true` does internally
package: {
name: "domexception",
version: "^4.0.0",
},
typesPackage: {
name: "@types/domexception",
version: "^4.0.0",
},
globalNames: [{
name: "DOMException",
exportName: "default",
}],
}],
// shims to only use in the tests
customDev: [{
// this is what `timers: "dev"` does internally
package: {
name: "@deno/shim-timers",
version: "~0.1.0",
},
globalNames: ["setTimeout", "setInterval"],
}],
},
});
```
#### Local and Remote Shims
Custom shims can also refer to local or remote modules:
```ts
await build({
// ...etc...
shims: {
custom: [{
module: "./my-custom-fetch-implementation.ts",
globalNames: ["fetch"],
}, {
module: "https://deno.land/x/some_remote_shim_module/mod.ts",
globalNames: ["setTimeout"],
}],
},
});
```
Where `my-custom-fetch-implementation.ts` contains:
```ts
export function fetch(/* etc... */) {
// etc...
}
```
This is useful in situations where you want to implement your own shim.
### Specifier to Npm Package Mappings
In most cases, dnt won't know about an npm package being available for one of
your dependencies and will download remote modules to include in your package.
There are scenarios though where an npm package may exist and you want to use it
instead. This can be done by providing a specifier to npm package mapping.
For example:
```ts
await build({
// ...etc...
mappings: {
"https://deno.land/x/[email protected]/mod.ts": {
name: "code-block-writer",
version: "^11.0.0",
},
},
});
```
This will:
1. Change all `"https://deno.land/x/[email protected]/mod.ts"` specifiers
to `"code-block-writer"`
2. Add a package.json dependency for `"code-block-writer": "^11.0.0"`.
Note that dnt will error if you specify a mapping and it is not found in the
code. This is done to prevent the scenario where a remote specifier's version is
bumped and the mapping isn't updated.
#### Mapping specifier to npm package subpath
Say an npm package called `example` had a subpath at `sub_path.js` and you
wanted to map `https://deno.land/x/[email protected]/sub_path.ts` to that subpath.
To specify this, you would do the following:
```ts
await build({
// ...etc...
mappings: {
"https://deno.land/x/[email protected]/sub_path.ts": {
name: "example",
version: "^0.1.0",
subPath: "sub_path.js", // note this
},
},
});
```
This would cause the following:
```ts
import * as mod from "https://deno.land/x/[email protected]/sub_path.ts";
```
...to go to...
```ts
import * as mod from "example/sub_path.js";
```
...with a dependency on `"example": "^0.1.0"`.
### Multiple Entry Points
To do this, specify multiple entry points like so (ex. an entry point at `.` and
another at `./internal`):
```ts
await build({
entryPoints: ["mod.ts", {
name: "./internal",
path: "internal.ts",
}],
// ...etc...
});
```
This will create a package.json with these as exports:
```jsonc
{
"name": "your-package",
// etc...
"main": "./script/mod.js",
"module": "./esm/mod.js",
"types": "./types/mod.d.ts",
"exports": {
".": {
"import": "./esm/mod.js",
"require": "./script/mod.js",
"types": "./types/mod.d.ts"
},
"./internal": {
"import": "./esm/internal.js",
"require": "./script/internal.js",
"types": "./types/internal.d.ts"
}
}
}
```
Now these entry points could be imported like
`import * as main from "your-package"` and
`import * as internal from "your-package/internal";`.
### Bin/CLI Packages
To publish an npm
[bin package](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#bin)
similar to `deno install`, add a `kind: "bin"` entry point:
```ts
await build({
entryPoints: [{
kind: "bin",
name: "my_binary", // command name
path: "./cli.ts",
}],
// ...etc...
});
```
This will add a `"bin"` entry to the package.json and add `#!/usr/bin/env node`
to the top of the specified entry point.
### Node and Deno Specific Code
You may find yourself in a scenario where you want to run certain code based on
whether someone is in Deno or if someone is in Node and feature testing is not
possible. For example, say you want to run the `deno` executable when the code
is running in Deno and the `node` executable when it's running in Node.
#### `which_runtime`
One option to handle this, is to use the
[`which_runtime`](https://deno.land/x/which_runtime) deno.land/x module which
provides some exports saying if the code is running in Deno or Node.
#### Node and Deno Specific Modules
Another option is to create node and deno specific modules. This can be done by
specifying a mapping to a module:
```ts
await build({
// ...etc...
mappings: {
"./file.deno.ts": "./file.node.ts",
},
});
```
Then within the file, use `// dnt-shim-ignore` directives to disable shimming if
you desire.
A mapped module should be written similar to how you write Deno code (ex. use
extensions on imports), except you can also import built-in node modules such as
`import fs from "fs";` (just remember to include an `@types/node` dev dependency
under the `package.devDependencies` object when calling the `build` function, if
necessary).
### Pre & Post Build Steps
Since the file you're calling is a script, simply add statements before and
after the `await build({ ... })` statement:
```ts
import { build, emptyDir } from "https://deno.land/x/dnt/mod.ts";
// run pre-build steps here
await emptyDir("./npm");
// build
await build({
// ...etc..
});
// run post-build steps here
await Deno.copyFile("LICENSE", "npm/LICENSE");
await Deno.copyFile("README.md", "npm/README.md");
```
### Including Test Data Files
Your Deno tests might rely on test data files. One way of handling this is to
copy these files to be in the output directory at the same relative path your
Deno tests run with.
For example:
```ts
import { copy } from "https://deno.land/[email protected]/fs/mod.ts";
await Deno.remove("npm", { recursive: true }).catch((_) => {});
await copy("testdata", "npm/esm/testdata", { overwrite: true });
await copy("testdata", "npm/script/testdata", { overwrite: true });
await build({
// ...etc...
});
// ensure the test data is ignored in the `.npmignore` file
// so it doesn't get published with your npm package
await Deno.writeTextFile(
"npm/.npmignore",
"esm/testdata/\nscript/testdata/\n",
{ append: true },
);
```
Alternatively, you could also use the
[`which_runtime`](https://deno.land/x/which_runtime) module and use a different
directory path when the tests are running in Node. This is probably more ideal
if you have a lot of test data.
### Test File Matching
By default, dnt uses the same search [pattern](https://deno.land/manual/testing)
that `deno test` uses to find test files. To override this, provide a
`testPattern` and/or `rootTestDir` option:
```ts
await build({
// ...etc...
testPattern: "**/*.test.{ts,tsx,js,mjs,jsx}",
// and/or provide a directory to start searching for test
// files from, which defaults to the current working directory
rootTestDir: "./tests",
});
```
### GitHub Actions - Npm Publish on Tag
1. Ensure your build script accepts a version as a CLI argument and sets that in
the package.json object. For example:
```ts
await build({
// ...etc...
package: {
version: Deno.args[0],
// ...etc...
},
});
```
Note: You may wish to remove the leading `v` in the tag name if it exists
(ex. `Deno.args[0]?.replace(/^v/, "")`)
1. In your npm settings, create an _automation_ access token (see
[Creating and Viewing Access Tokens](https://docs.npmjs.com/creating-and-viewing-access-tokens)).
1. In your GitHub repo or organization, add a secret for `NPM_TOKEN` with the
value created in the previous step (see
[Creating Encrypted Secrets for a Repository](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository)).
1. In your GitHub Actions workflow, get the tag name, setup node, run your build
script, then publish to npm.
```yml
# ...setup deno and run `deno test` here as you normally would...
- name: Get tag version
if: startsWith(github.ref, 'refs/tags/')
id: get_tag_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: npm build
run: deno run -A ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
- name: npm publish
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd npm && npm publish
```
Note that the build script always runs even when not publishing. This is to
ensure your build and tests pass on each commit.
1. Ensure the workflow will run on tag creation. For example, see
[Trigger GitHub Action Only on New Tags](https://stackoverflow.com/q/61891328/188246)).
### Using Another Package Manager
You may want to use another Node.js package manager instead of npm, such as Yarn
or pnpm. To do this, override the `packageManager` option in the build options.
For example:
```ts
await build({
// ...etc...
packageManager: "yarn", // or "pnpm"
});
```
You can even specify an absolute path to the executable file of the package
manager:
```ts
await build({
// ...etc...
packageManager: "/usr/bin/pnpm",
});
```
### DOM Types
If you wish to compile with DOM types for type checking, you may specify a "dom"
lib compiler option when building:
```ts
await build({
// ...etc...
compilerOptions: {
lib: ["es2021", "dom"],
},
});
```
### Node v14 and Below
dnt should be able to target old versions of Node by specifying a
`{ compilerOption: { target: ... }}` value in the build options (see
[Node Target Mapping](https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping)
for what target maps to what Node version). A problem though is that certain
shims might not work in old versions of Node.
If wanting to target a version of Node v14 and below, its recommend to use the
`Deno.test`-only shim (described above) and then making use of the "mappings"
feature to write Node-only files where you can handle differences.
Alternatively, see if changes to the shim libraries might make it run on old
versions of Node. Unfortunately, certain features are impossible or infeasible
to get working.
See [this thread](https://github.com/denoland/node_deno_shims/issues/15) in
node_deno_shims for more details.
## JS API Example
For only the Deno to canonical TypeScript transform which may be useful for
bundlers, use the following:
```ts
// docs: https://doc.deno.land/https/deno.land/x/dnt/transform.ts
import { transform } from "https://deno.land/x/dnt/transform.ts";
const outputResult = await transform({
entryPoints: ["./mod.ts"],
testEntryPoints: ["./mod.test.ts"],
shims: [],
testShims: [],
// mappings: {}, // optional specifier mappings
});
```
## Rust API Example
```rust
use std::path::PathBuf;
use deno_node_transform::ModuleSpecifier;
use deno_node_transform::transform;
use deno_node_transform::TransformOptions;
let output_result = transform(TransformOptions {
entry_points: vec![ModuleSpecifier::from_file_path(PathBuf::from("./mod.ts")).unwrap()],
test_entry_points: vec![ModuleSpecifier::from_file_path(PathBuf::from("./mod.test.ts")).unwrap()],
shims: vec![],
test_shims: vec![],
loader: None, // use the default loader
specifier_mappings: None,
}).await?;
```
| 26.56882 | 164 | 0.668023 | eng_Latn | 0.971626 |
8a53c44fda576789e174198ebff010985f3e075c | 5,817 | md | Markdown | content/blog/open-source-contributor-explains-how-kubedirector-empowers-data-intensive-apps.md | pattdepanick/hpe-dev-portal | 2ef8be3fe7ee6d67991b31ae2bbe752b1cb0c7de | [
"MIT"
] | 1 | 2021-12-05T14:49:21.000Z | 2021-12-05T14:49:21.000Z | content/blog/open-source-contributor-explains-how-kubedirector-empowers-data-intensive-apps.md | pattdepanick/hpe-dev-portal | 2ef8be3fe7ee6d67991b31ae2bbe752b1cb0c7de | [
"MIT"
] | null | null | null | content/blog/open-source-contributor-explains-how-kubedirector-empowers-data-intensive-apps.md | pattdepanick/hpe-dev-portal | 2ef8be3fe7ee6d67991b31ae2bbe752b1cb0c7de | [
"MIT"
] | 1 | 2021-12-05T14:49:14.000Z | 2021-12-05T14:49:14.000Z | ---
title: Open Source Contributor Explains How KubeDirector Empowers Data Intensive Apps
date: 2021-03-18T09:52:53.048Z
author: Dale Rensing
authorimage: /img/Avatar1.svg
tags:
- kubedirector
- hpe-ezmeral-container-platform
- opensource
---
![Kartik Mathur](https://hpe-developer-portal.s3.amazonaws.com/uploads/media/2021/3/kartik-blog-small-1616160879068.jpg)
As a leading global, **edge-to-cloud platform-as-a-service company**, Hewlett Packard Enterprise (HPE) prides itself in employing team members who share one common purpose: to advance the way people live and work. In this blog series, you’ll get to meet a number of them as I interview some of the [open source](https://www.hpe.com/us/en/open-source.html) experts who make up the HPE team.
After having graduated with his MS in computer science from Indiana University Bloomington with a research focus on parallel computing and distributed systems, Kartik Mathur started his professional career at AMD. He then worked at several technology startup companies, including BlueData, which was acquired by HPE in 2019. Kartik is currently a Master Technologist at HPE and leads the MLOps initiatives on the HPE Ezmeral Software Platform. He has a keen interest in container orchestration for large scale data processing clusters and is a major contributor to the KubeDirector open source project.
## How did you get started with open source technologies?
I first started contributing to open source for a project that lets you query Cassandra tables using sparkSQL. But honestly, almost any piece of software that I’ve written or consumed was based on open source projects or libraries in some capacity. In my role at BlueData, I first used KubeDirector to orchestrate Big Data and ML pipelines, but then I started contributing as well. I found it so engaging that I’m currently the leading contributor and maintainer for the KubeDirector project.
## What makes KubeDirector so special?
KubeDirector empowers application developers to deploy their applications as a custom resource without having to implement a full-blown Kubernetes Operator. It decouples the operator boiler plate using application intelligence.
Basically, KubeDirector works as a custom controller for generic applications. It uses standard Kubernetes (K8s) facilities of custom resources and API extensions to implement stateful scaleout application clusters. This is a unique approach that enables the transparent integration with K8s user/resource management, as well as existing K8s clients and tools.
KubeDirector is unique since it has a rich catalog of complex stateful applications as part of the open-source codebase. And we are constantly adding more and more applications that developers can use as a template/example to onboard their application of choice on Kubernetes. Without KubeDirector, this would be an intimidating task with a huge learning curve, especially for implementing Day2 operations for their applications, like scaling in and out.
## How do HPE customers benefit from KubeDirector?
Over the course of the last few years, Kubernetes has become the de-facto standard for orchestrating containerized applications. It’s worked quite well for stateless applications; less so for stateful applications, such as those focused on AI, machine learning, and big data analytics.
When containers were first introduced as a way to package microservices, they were designed to be entirely stateless and ephemeral. A container would spin up, do its job, and then disappear, without leaving any record of what happened while it was running. Stateful applications save data to persistent disk storage for use by the server, clients, and other applications. An example of a stateful application is a database or key-value store to which data is saved and retrieved by other applications. There are tools, such as Statefulset and Persistent Volumes, which help developers build stateful applications on Kubernetes, but it all becomes quite difficult to manage as an application scales.
Since KubeDirector provides an application-agnostic deployment pattern, it enables developers to run non-cloud native stateful applications on Kubernetes without modifying any code. It makes it easier to deploy data-intensive distributed applications for AI and analytics use cases, such as Hadoop, Spark, Kafka, TensorFlow, etc., on Kubernetes. HPE Ezmeral customers automatically receive the benefits of KubeDirector because it’s integrated into the HPE Ezmeral Software Platform, enabling them to more easily develop AI and ML applications.
## What’s up next for KubeDirector?
The next big ticket item for me to work on is to tighten up the security. I’m currently looking at implementing Istio awareness for Kubedirector application endpoints, providing virtual endpoints to secure the microservices communication between them using JSON Web tokens (JWT).
## Is there any advice you’d like to give others who might follow in your footsteps?
Robert Noyce, co-founder of Intel Corporation, once said “Knowledge shared is power multiplied.” I’m a huge fan of this quote. I feel as though open source projects are the biggest testament to the power of knowledge sharing. It gives me immense pleasure in being able to learn and collaborate with people worldwide, as being a part of the open source community helps me grow as an engineer and lift others as well.
To learn more about the open source projects that HPE is involved with, please visit [our website](https://www.hpe.com/us/en/open-source.html). Interested in exploring what HPE offers for developers and data scientists? Check out our [HPE DEV site](https://developer.hpe.com/) for a ton of articles, workshops, tutorials, and other resources.
| 86.820896 | 698 | 0.803679 | eng_Latn | 0.998833 |
8a53faa7516a045428cf45bb8fced98e5b01523a | 10,769 | md | Markdown | _posts/2021-07-24-monkey-and-coconuts.md | polettix/ETOOBUSY | b370a59dbfa4dc04687e6fb53065bb47f1581188 | [
"CC-BY-4.0"
] | 4 | 2020-07-30T06:35:05.000Z | 2021-11-29T13:50:30.000Z | _posts/2021-07-24-monkey-and-coconuts.md | polettix/ETOOBUSY | b370a59dbfa4dc04687e6fb53065bb47f1581188 | [
"CC-BY-4.0"
] | 19 | 2020-01-03T18:21:13.000Z | 2022-03-28T21:51:53.000Z | _posts/2021-07-24-monkey-and-coconuts.md | polettix/ETOOBUSY | b370a59dbfa4dc04687e6fb53065bb47f1581188 | [
"CC-BY-4.0"
] | 1 | 2021-11-29T12:44:18.000Z | 2021-11-29T12:44:18.000Z | ---
title: Brute forcing "The monkey and the coconuts"
type: post
tags: [ puzzle, rakulang ]
comment: true
date: 2021-07-24 07:00:00 +0100
mathjax: true
published: true
---
**TL;DR**
> Brute forcing an old puzzle: [The monkey and the coconuts][].
A (lot) while ago I read about puzzle [The monkey and the coconuts][] in
one of [Martin Gardner][]'s books, and I was fascinated by the answer. A
big part of the fascination was coming from the fact that the book
observed that it was practically *too boring* to try and brute force the
puzzle all by *human* trial and error.
I'm pretty much sure that I came across the puzzle again during the
years, and surely after I started doing some programming with C64 and
later with a PC. To be honest, it never occurred to me to try and brute
force it with a computer at the time.
Until now, where I thought... *how hard can it be?!?*. So I was set to
do some [Raku][] programming to get some exercise.
Before going to the implementation, it's good to point out that there
are (at least) two versions of the puzzle:
- **basic**, were the monkey gets one more coconut:
> Five men and a monkey were shipwrecked on an island. They spent the
> first day gathering coconuts. During the night, one man woke up and
> decided to take his share of the coconuts. He divided them into five
> piles. One coconut was left over so he gave it to the monkey, then hid
> his share, put the rest back together, and went back to sleep.
>
> Soon a second man woke up and did the same thing. After dividing the
> coconuts into five piles, one coconut was left over which he gave to
> the monkey. He then hid his share, put the rest back together, and
> went back to bed. The third, fourth, and fifth man followed exactly
> the same procedure. The next morning, after they all woke up, they
> divided the remaining coconuts into five equal shares. **Again, one
> coconut remains after the division, and it is given to the monkey**.
- **Williams**, where the monkey does not get a coconut the day after:
> Five men and a monkey were shipwrecked on an island. They spent the
> first day gathering coconuts. During the night, one man woke up and
> decided to take his share of the coconuts. He divided them into five
> piles. One coconut was left over so he gave it to the monkey, then hid
> his share, put the rest back together, and went back to sleep.
>
> Soon a second man woke up and did the same thing. After dividing the
> coconuts into five piles, one coconut was left over which he gave to
> the monkey. He then hid his share, put the rest back together, and
> went back to bed. The third, fourth, and fifth man followed exactly
> the same procedure. The next morning, after they all woke up, they
> divided the remaining coconuts into five equal shares. **This time no
> coconuts were left over**.
They differ only in the last detail, which is easy to *refactor* so one
single implementation with slightly different inputs does the trick:
```raku
#!/usr/bin/env raku
use v6;
subset PosInt of Int where * > 0;
sub any-version (PosInt $sailors, @monkey-gains is copy) {
my $last-gain = @monkey-gains.pop;
ATTEMPT:
for 1 .. Inf -> $last-quota {
my $x = $last-quota;
for @monkey-gains -> $to-monkey {
$x = $x * $sailors + $to-monkey;
next ATTEMPT unless $x %% ($sailors - 1);
$x /= $sailors - 1;
}
return ($x * $sailors + $last-gain, $last-quota);
}
return $sailors;
}
sub basic-version (PosInt $sailors) {
return any-version($sailors, [1 xx ($sailors + 1)]);
}
sub williams-version (PosInt $sailors) {
return any-version($sailors, [0, |(1 xx $sailors)]);
}
my $sailors = @*ARGS ?? @*ARGS[0].Int !! 5;
say 'basic version: ', basic-version($sailors);
say 'Williams version: ', williams-version($sailors);
```
Each solution is composed of two integers, the first representing the
total number of coconuts that were collected in the first place, the
second representing the number of coconuts that each sailor gets in the
last division the morning after the collection.
# The algorithm
Doing brute force in this case basically means trying out candidate
inputs until one matches all requirements.
My first idea was to use the *total number of initial coconuts*, but
then I thought... **why?!?* I mean, a valid solution MUST end up with an
integer value for what is given to each sailor the day after, and this
MUST be a lower number, right?
This is why the *outer* `ATTEMPT:` loop feeds variable `$last-quota`,
which represents... what we said.
Inside the loop, we have to test that this candidate value is indeed
valid, going *backwards in time*. In other terms, we go through the
division process backwards, from the last iteration back to when the
first sailor decides to do a preliminar division of the coconuts.
Hence, at each stage we:
- calculate the total number of coconuts *before* the division, by
multiplying the current value `$x` times the number of sailors, then
adding the coconuts that are given to the monkey (which we keep in
@monkey-gains);
- check that this number is divisible by the number of sailors, minus
one. Why? Well, this is what is expected to remain after one of the
sailors did their division, where it took one part and left four
parts, so this number MUST be divisible by 4.
This goes on until we arrive to the very first sailor. In this case,
though, we can lift off the constraints that the number is divisible by
4, because we are on the initial, total number of coconuts and we have
no such constraint on it. Hence, we just use `$last-gain` without doing
any check.
The inner loop tries to go through the whole `@monkey-gains` (except the
`$last-gain`, of course) and if it succeeds we have a solution. If any
intermediate step fails, then the `next ATTEMPT` just sets us to try the
next candidate.
The two variants of the puzzle can be addressed by feeding different
values for the coconuts gained by the monkey. In the basic case, we
provide an array that contains 1 coconut for each division step we want
to go through; in the other case, we provide 0 coconuts for the *morning
step* and 1 coconut for each division performed by the sailors on their
own.
# A couple of [Raku][] considerations
All in all, I think I'm keeping my strong *[Perl][] accent* while coding
in [Raku][], and I like it very much. Who does not like a slight foreign
accent in people?
One cool thing is to iterate through a lazy list that's potentially
infinite:
```raku
for 1 .. Inf -> $last-quota { ...
```
The equivalent in [Perl][] would probably be something like this:
```perl
my $last_quota = 0;
while ('necessary') {
$last_quota++;
...
```
but it's not as readable as the other.
Another thing that I discovered is that `x` becomes `xx` when we want to
"multiply" lists:
```raku
return any-version($sailors, [1 xx ($sailors + 1)]);
```
I was initially puzzled by this, although I have to admit that having
separate operators to express separate operations is probably saner.
Getting the input number of sailors from the command line is somehow
*worse* though:
```raku
my $sailors = @*ARGS ?? @*ARGS[0].Int !! 5;
```
I like [Perl][] better in this case:
```perl
my $sailors = shift || 5;
```
(Of course I hope someone will point out how to express this in [Raku][]
😋)
# Last: human brute-forcing
The consideration about what to use as an iteration candidate for
solving the problem got me thinking... *was this really so difficult to
solve by human brute forcing?*
Let's do a quick back-of-the-envelope calculation.
As correctly pointed out in [Martin Gardner][]'s column, as well as
everywhere this puzzle is analyzed, there are infinite solutions for the
total number of coconuts, which are spaced by multiples of $5^6 =
15625$. Hence, a *minimal positive* solution must be comprised between 1
and 15625 (otherwise we can simply subtract 15625 until we get a number
lower or equal to it).
This seems daunting indeed: if we took on average 2 minutes to check
each candidate, we would need 31250 minutes, which is about 521 hours.
If we dedicate 1 hour per day to this task, it would take about one year
and a half to go through all the candidates, so on average we would
solve it in about 9 months. Not very encouraging.
On the other hand, let's consider focusing on the remaining coconuts
first, and working backwards. This has the advantage that
multiplications are easier (multiplying by 5 is multiplying by 10 and
dividing by 2, both very easy to accomplish) and divisions too (we have
to divide by 4, which is twice a division by 2, again very easy to check
and to do).
Additionally, the *worst case* for the total number of coconuts is of
course 15625 itself, i.e. the biggest value. What does this mean for the
last quota? Assuming that there is *no coconut* given to the monkey, the
last quota would be:
$$ L = \frac{5^6}{5} \left(\frac{4}{5}\right)^5 = 4^5 = 1024$$
Hence, our last quota will have to be *lower* than this value (because
we have to take into account that something goes to the monkey).
Again, if we take 2 minutes to test one candidate, it means at most 2048
minutes, i.e. about 34 hours and some. Even if we go in order, it would
take us 34 days with one hour of work per day... which is not too bad!
But, of course, **there's more**.
Any *last value* $L$ will have to be such that:
$$
5L + 1 \equiv 0 \pmod 4 \\
5L \equiv -1 \pmod 4 \\
L \equiv -1 \pmod 4
$$
i.e. $L = 4k - 1$ with $0 \leq k \leq 256$. The last passage is allowed
because:
$$
(5L)_4 = 5_4 L_4 = L_4
$$
where $X_4 \doteq X \pmod 4$.
In other terms, it only makes sense to consider *one-fourth* of the
candidates we were discussing about before.
This also means that our overall time to a solution drops to about 9
hours... i.e. slightly more than one week. This is definitely in reach!
A similar consideration might be done for *Williams*'s puzzle, although
in this case we would have to consider that the monkey does *not* get a
coconut in the last division, i.e. $L$ is such that:
$$
5L \equiv 0 \pmod 4 \\
L \equiv 0 \pmod 4
$$
i.e. $L = 4k$, again with with $1 \leq k \leq 256$.
> It's worth noting that if we proceed in order, the *basic* puzzle
> would require us to go through *all* 256 values, because the solution
> is 1023, i.e. exactly the last one. In the case of *Williams*'s
> puzzle, though, the solution is 204, so we would reach it at the
> 51<sup>th</sup> attempt, i.e. in the second hour of trial-and-error!
I hope you enjoyed it, stay safe folks!
[Perl]: https://www.perl.org/
[Raku]: https://raku.org/
[The monkey and the coconuts]: https://en.wikipedia.org/wiki/The_monkey_and_the_coconuts
[Martin Gardner]: https://en.wikipedia.org/wiki/Martin_Gardner
| 36.259259 | 88 | 0.729966 | eng_Latn | 0.999825 |
8a55482d0baf41b0b79a415fbda425ba33a93669 | 4,806 | markdown | Markdown | posts/2012-03-28-chet.faliszek.markdown | dreeves/usesthis | 1732533399868c0c965dbaba1e5dce3dfbe9f979 | [
"MIT"
] | 310 | 2015-01-04T07:49:17.000Z | 2022-03-13T05:19:59.000Z | posts/2012-03-28-chet.faliszek.markdown | dreeves/usesthis | 1732533399868c0c965dbaba1e5dce3dfbe9f979 | [
"MIT"
] | 55 | 2015-01-01T21:15:34.000Z | 2022-01-10T07:16:55.000Z | posts/2012-03-28-chet.faliszek.markdown | dreeves/usesthis | 1732533399868c0c965dbaba1e5dce3dfbe9f979 | [
"MIT"
] | 111 | 2015-01-16T19:10:41.000Z | 2022-03-25T08:11:44.000Z | ---
title: Chet Faliszek
summary: Writer of games (Portal 2, Left 4 Dead 2)
categories:
- game
- windows
- writer
---
### Who are you, and what do you do?
Chet Faliszek. I'm a writer at Valve software. At least that's the title I use when someone asks but at Valve everyone does so many different things that internally we don't use titles. I finished up on [Portal 2][portal-2] this last spring and continue to work on [Counter-Strike: Global Offensive][counter-strike-global-offensive] and [Left 4 Dead 2][left-4-dead-2].
### What hardware do you use?
For someone who used to build his own computers, I have become pretty hardware illiterate. When I needed a new computer at home, I just asked them to duplicate my work machine. So I mainly work on one of two machines that are filled with a bunch of cores, 12 gigs of ram, a good video card, 30 inch monitor, and runs [Windows 7][windows-7]. And the case is black. No neon.
I spend more time on the road than I like so I lug around an [Alienware M11x][m11x] just in case I am going to do some writing but for the most part just use my [iPad][ipad-2] or [iPhone][iphone-4s] for email/notes. While an iPad is not where I want to type my emails, I do think it is the greatest email reading machine there is.
### And what software?
It depends on the project but for all projects, [Evernote][] is required. Most of my life is writing down quick thoughts or notes to later assemble into something larger. Evernote is available on all platforms and helps me avoid emailing around a notepad document. If you ever texted or emailed yourself a note - stop - go get Evernote.
For Portal 2 the script was written mainly in [Word][]. The Left 4 Deads have so many lines that need to fire under certain conditions; we track it all in database software - [Visual FoxPro 6][visual-foxpro]. This results in my often being lazy and writing directly into the tables and then writing a script to output a Word document to take to the recording studio. I think it is safe to say, L4D2 is the only game written in Visual Foxpro. I don't really recommend it.
For all our games, most of the writers hook up the audio so we are always editing script files. Most of this is automated with little programs we wrote in Foxpro but whenever I need to edit something by hand I use [Editplus 2][editplus]. Editplus 2 is mainly a hold-over from my php programming days. I keep thinking I should use something else but I hate change.
[Rhapsody][] (previously Napster) is important because I'm not that smart. When I start writing a character, I need to find a song for that character and whenever I go back to that character I need to listen to that song. It does not need to thematically match but some part of it needs to fit. Rhapsody helps me find the right song. Once I find it, I listen to that song, over and over and over again. If you are going to try this, you will also want a good pair of headphones to avoid driving office mates insane.
[Steam][]. It is important that you play games if you make games. It is really important if you are working on a game to make sure you are actually playing it. Steam just makes it easy to install games on all my PCs and always have access in offline mode.
### What would be your dream setup?
I use my iPhone for everything. It unlocks my house, turns on my lights, plays music, answers calls, takes notes, and as an added bonus - it's a phone. My dream would be that Siri was better. It's a good start to voice control but it still needs to get better. I just wish I could stop my habit of thanking her or apologizing for when she can't understand me. I think a part of me is just a little worried that if she becomes sentient, I want to be on her good side.
[counter-strike-global-offensive]: https://store.steampowered.com/app/730/ "A team-based action game."
[editplus]: https://www.editplus.com/ "A text editor for Windows."
[evernote]: https://evernote.com/ "Online software for capturing notes."
[ipad-2]: https://www.apple.com/ipad/ "A tablet device."
[iphone-4s]: https://en.wikipedia.org/wiki/IPhone_4S "A smartphone."
[left-4-dead-2]: https://store.steampowered.com/app/550/ "A zombie horror survival game."
[m11x]: https://www.dell.com/us/p/alienware-m11x-r3/pd "A PC gaming laptop."
[portal-2]: https://store.steampowered.com/app/620/ "A sequel to the awesome, groundbreaking game."
[rhapsody]: https://en.wikipedia.org/wiki/Rhapsody_(online_music_service) "A music streaming service."
[steam]: https://store.steampowered.com/ "A digital game distribution service."
[visual-foxpro]: https://en.wikipedia.org/wiki/Visual_FoxPro "An data-centric programming language."
[windows-7]: https://en.wikipedia.org/wiki/Windows_7 "An operating system."
[word]: https://products.office.com/en-us/word "A document editor."
| 98.081633 | 515 | 0.760716 | eng_Latn | 0.998185 |
8a5556d0388e2e032116a22c43e461d5f0bbe555 | 210 | md | Markdown | content/notes/equipements/vetements/V233_polo_gris_M.md | wikicb/lcb | 10ded4d53c46b26c2710192dee4b76d961caae59 | [
"MIT"
] | null | null | null | content/notes/equipements/vetements/V233_polo_gris_M.md | wikicb/lcb | 10ded4d53c46b26c2710192dee4b76d961caae59 | [
"MIT"
] | null | null | null | content/notes/equipements/vetements/V233_polo_gris_M.md | wikicb/lcb | 10ded4d53c46b26c2710192dee4b76d961caae59 | [
"MIT"
] | null | null | null | ---
title: "V233_polo_gris_M"
---
[L_Vetements](notes/equipements/L_Vetements.md) [V_PolosGris](notes/equipements/vetements/V_PolosGris.md) 100820 [ndulaNlandu](notes/utilisateurs/beneficiaires/ndulaNlandu.md) | 42 | 175 | 0.809524 | xho_Latn | 0.183965 |
8a55578a318faade8d6fddd8268d88f28a94fdfd | 920 | md | Markdown | api/Word.Options.StrictRussianE.md | ahkon/VBA-Docs | c047d7975de2b0949b496af150d279c505a8595b | [
"CC-BY-4.0",
"MIT"
] | 4 | 2019-09-07T04:44:48.000Z | 2021-12-16T15:05:50.000Z | api/Word.Options.StrictRussianE.md | ahkon/VBA-Docs | c047d7975de2b0949b496af150d279c505a8595b | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-06-13T09:32:15.000Z | 2021-06-13T09:32:15.000Z | api/Word.Options.StrictRussianE.md | ahkon/VBA-Docs | c047d7975de2b0949b496af150d279c505a8595b | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-06-23T03:40:08.000Z | 2021-06-23T03:40:08.000Z | ---
title: Options.StrictRussianE property (Word)
keywords: vbawd10.chm162988529
f1_keywords:
- vbawd10.chm162988529
ms.prod: word
api_name:
- Word.Options.StrictRussianE
ms.assetid: a86bd867-5d89-0383-3718-6b48c78296ee
ms.date: 06/08/2017
localization_priority: Normal
---
# Options.StrictRussianE property (Word)
**True** if the spelling checker uses spelling rules regarding Russian words that use the strict ë character. Read/write.
## Syntax
_expression_. `StrictRussianE`
_expression_ An expression that returns an **[Options](Word.Options.md)** object.
## Remarks
Setting this property has the same effect as checking or unchecking the **Russian: Enforce strict ë** checkbox in the **Word Options** dialog (**Proofing**, **When correcting spelling in Microsoft Office programs**).
## See also
[Options Object](Word.Options.md)
[!include[Support and feedback](~/includes/feedback-boilerplate.md)] | 24.864865 | 217 | 0.766304 | eng_Latn | 0.879048 |
8a556e30f10751123ea90b04b505f8aad650f570 | 4,863 | md | Markdown | articles/analysis-services/analysis-services-create-powershell.md | MicrosoftDocs/azure-docs.hu-hu | 5fb082c5dae057fd040c7e09881e6c407e535fe2 | [
"CC-BY-4.0",
"MIT"
] | 7 | 2017-08-28T07:44:33.000Z | 2021-04-20T21:12:50.000Z | articles/analysis-services/analysis-services-create-powershell.md | MicrosoftDocs/azure-docs.hu-hu | 5fb082c5dae057fd040c7e09881e6c407e535fe2 | [
"CC-BY-4.0",
"MIT"
] | 412 | 2018-07-25T09:31:03.000Z | 2021-03-17T13:17:45.000Z | articles/analysis-services/analysis-services-create-powershell.md | MicrosoftDocs/azure-docs.hu-hu | 5fb082c5dae057fd040c7e09881e6c407e535fe2 | [
"CC-BY-4.0",
"MIT"
] | 13 | 2017-09-05T09:10:35.000Z | 2021-11-05T11:42:31.000Z | ---
title: Rövid útmutató – Azure Analysis Services létrehozása PowerShell-Azure Analysis Services | Microsoft Docs
description: Ez a rövid útmutató azt ismerteti, hogyan hozhat létre Azure Analysis Services-kiszolgálót a PowerShell használatával
author: minewiskan
ms.author: owend
ms.reviewer: minewiskan
ms.date: 08/31/2020
ms.topic: quickstart
ms.service: azure-analysis-services
ms.custom: devx-track-azurepowershell - references_regions - devx-track-azurepowershell - mode-api
ms.openlocfilehash: f1902a7192fc2153725e2b1d1e76f23cbd1426f3
ms.sourcegitcommit: 4b0e424f5aa8a11daf0eec32456854542a2f5df0
ms.translationtype: MT
ms.contentlocale: hu-HU
ms.lasthandoff: 04/20/2021
ms.locfileid: "107769354"
---
# <a name="quickstart-create-a-server---powershell"></a>Gyors útmutató: Kiszolgáló létrehozása – PowerShell
Ez a rövid útmutató bemutatja, hogyan használhatja a PowerShellt a parancssorból Azure Analysis Services-kiszolgáló létrehozásához az Azure-előfizetésben.
## <a name="prerequisites"></a>Előfeltételek
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
- **Azure-előfizetés:** A fiók [létrehozásához látogasson el az Ingyenes Azure-próbaverzió](https://azure.microsoft.com/offers/ms-azr-0044p/) webhelyre.
- **Azure Active Directory**: Előfizetésének egy Azure Active Directory-bérlőhöz kell tartoznia, és abban a könyvtárban kell fiókkal rendelkeznie. További információ: [Hitelesítés és felhasználói engedélyek](analysis-services-manage-users.md).
- **Azure PowerShell**. A telepített verzió azonosításához futtassa a következőt: `Get-Module -ListAvailable Az`. A telepítéshez vagy frissítéshez olvassa el [az Azure PowerShell-modul telepítését](/powershell/azure/install-Az-ps) ismertető cikket.
## <a name="import-azanalysisservices-module"></a>Az Az.AnalysisServices modul importálása
Az előfizetésben az [Az.AnalysisServices](/powershell/module/az.analysisservices) modullal hozhat létre kiszolgálót. Töltse be az Az.AnalysisServices modult a PowerShell-munkamenetbe.
```powershell
Import-Module Az.AnalysisServices
```
## <a name="sign-in-to-azure"></a>Bejelentkezés az Azure-ba
Jelentkezzen be az Azure-előfizetésbe a [Connect-AzAccount paranccsal.](/powershell/module/az.accounts/connect-azaccount) Kövesse a képernyőn megjelenő utasításokat.
```powershell
Connect-AzAccount
```
## <a name="create-a-resource-group"></a>Erőforráscsoport létrehozása
Az [Azure-erőforráscsoport](../azure-resource-manager/management/overview.md) egy olyan logikai tároló, amelyben a rendszer üzembe helyezi és csoportként kezeli az Azure-erőforrásokat. A kiszolgáló létrehozásakor meg kell adnia egy erőforráscsoportot az előfizetésén belül. Ha még nem rendelkezik erőforráscsoporttal, létrehozhat egy újat a [New-AzResourceGroup paranccsal.](/powershell/module/az.resources/new-azresourcegroup) A következő példában létrehozunk egy `myResourceGroup` nevű erőforráscsoportot az USA nyugati régiójában.
```powershell
New-AzResourceGroup -Name "myResourceGroup" -Location "WestUS"
```
## <a name="create-a-server"></a>A kiszolgáló létrehozása
Hozzon létre egy új kiszolgálót a [New-AzAnalysisServicesServer paranccsal.](/powershell/module/az.analysisservices/new-azanalysisservicesserver) A következő példában létrehozunk egy myServer nevű kiszolgálót a myResourceGroup erőforráscsoportban az USA nyugati régiójában, D1 (ingyenes) szinten. A kiszolgáló rendszergazdája [email protected].
```powershell
New-AzAnalysisServicesServer -ResourceGroupName "myResourceGroup" -Name "myserver" -Location WestUS -Sku D1 -Administrator "[email protected]"
```
## <a name="clean-up-resources"></a>Az erőforrások eltávolítása
A kiszolgálót a [Remove-AzAnalysisServicesServer](/powershell/module/az.analysisservices/new-azanalysisservicesserver) paranccsal távolíthatja el az előfizetésből. Ha a gyűjteménybe tartozó további rövid útmutatókkal és oktatóanyagokkal szeretné folytatni, ne távolítsa el a kiszolgálót. A következő példa eltávolítja az előző lépésben létrehozott kiszolgálót.
```powershell
Remove-AzAnalysisServicesServer -Name "myserver" -ResourceGroupName "myResourceGroup"
```
## <a name="next-steps"></a>Következő lépések
Ebből a rövid útmutatóból megtudta, hogyan hozhat létre kiszolgálót Azure-előfizetésében a PowerShell használatával. Most, hogy már rendelkezik kiszolgálóval, biztonságosabbá teheti azt egy (nem kötelező) kiszolgálótűzfal konfigurálásával. Hozzáadhat a kiszolgálóhoz egy alapszintű minta adatmodellt is közvetlenül a portálról. A mintamodell azért hasznos, mert segít megismerni a modell adatbázis-szerepkörök konfigurálását és tesztelni az ügyfélkapcsolatokat. További tudnivalókért folytassa a mintamodell hozzáadását ismertető oktatóanyaggal.
> [!div class="nextstepaction"]
> [Rövid útmutató: Kiszolgáló tűzfalának konfigurálása – Portal](analysis-services-qs-firewall.md)
| 63.155844 | 545 | 0.816985 | hun_Latn | 0.999734 |
8a574114647927e1b7bdcad35da7b65f3109c7f3 | 5,245 | md | Markdown | modules/cmpapi/docs/api/classes/inapptcdata.md | matita/iabtcf-es | a461a09d3ff539950ea80353287080cf4b22a637 | [
"Apache-2.0"
] | null | null | null | modules/cmpapi/docs/api/classes/inapptcdata.md | matita/iabtcf-es | a461a09d3ff539950ea80353287080cf4b22a637 | [
"Apache-2.0"
] | null | null | null | modules/cmpapi/docs/api/classes/inapptcdata.md | matita/iabtcf-es | a461a09d3ff539950ea80353287080cf4b22a637 | [
"Apache-2.0"
] | null | null | null | [@iabtcf/cmpapi - API Documentation](../README.md) > [InAppTCData](../classes/inapptcdata.md)
# Class: InAppTCData
## Hierarchy
[Return](return.md)
**↳ InAppTCData**
## Index
### Properties
* [cmpId](inapptcdata.md#cmpid)
* [cmpVersion](inapptcdata.md#cmpversion)
* [eventStatus](inapptcdata.md#eventstatus)
* [gdprApplies](inapptcdata.md#gdprapplies)
* [outOfBand](inapptcdata.md#outofband)
* [publisher](inapptcdata.md#publisher)
* [publisherCC](inapptcdata.md#publishercc)
* [purpose](inapptcdata.md#purpose)
* [purposeOneTreatment](inapptcdata.md#purposeonetreatment)
* [speicalFeatureOptins](inapptcdata.md#speicalfeatureoptins)
* [tcString](inapptcdata.md#tcstring)
* [tcfPolicyVersion](inapptcdata.md#tcfpolicyversion)
* [useNonStandardStacks](inapptcdata.md#usenonstandardstacks)
* [vendor](inapptcdata.md#vendor)
---
## Properties
<a id="cmpid"></a>
### cmpId
**● cmpId**: *`number`*
*Inherited from [Return](return.md).[cmpId](return.md#cmpid)*
*Defined in [model/Return.ts:5](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/Return.ts#L5)*
___
<a id="cmpversion"></a>
### cmpVersion
**● cmpVersion**: *`number`*
*Inherited from [Return](return.md).[cmpVersion](return.md#cmpversion)*
*Defined in [model/Return.ts:6](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/Return.ts#L6)*
___
<a id="eventstatus"></a>
### eventStatus
**● eventStatus**: *`string`*
*Defined in [model/InAppTCData.ts:13](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L13)*
___
<a id="gdprapplies"></a>
### gdprApplies
**● gdprApplies**: *`boolean` \| [BoolInt](../#boolint)*
*Inherited from [Return](return.md).[gdprApplies](return.md#gdprapplies)*
*Defined in [model/Return.ts:7](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/Return.ts#L7)*
___
<a id="outofband"></a>
### outOfBand
**● outOfBand**: *`object`*
*Defined in [model/InAppTCData.ts:17](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L17)*
#### Type declaration
allowedVendors: [StringBoolVector](../interfaces/stringboolvector.md)
discloseVendors: [StringBoolVector](../interfaces/stringboolvector.md)
___
<a id="publisher"></a>
### publisher
**● publisher**: *`object`*
*Defined in [model/InAppTCData.ts:36](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L36)*
#### Type declaration
consents: [StringBoolVector](../interfaces/stringboolvector.md)
customPurpose: `object`
consents: [StringBoolVector](../interfaces/stringboolvector.md)
legitimateInterests: [StringBoolVector](../interfaces/stringboolvector.md)
legitimateInterests: [StringBoolVector](../interfaces/stringboolvector.md)
restrictions: `object`
[purposeId: `string`]: `object`
[vendorId: `string`]: `0` \| `1` \| `2`
___
<a id="publishercc"></a>
### publisherCC
**● publisherCC**: *`string`*
*Defined in [model/InAppTCData.ts:15](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L15)*
___
<a id="purpose"></a>
### purpose
**● purpose**: *`object`*
*Defined in [model/InAppTCData.ts:23](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L23)*
#### Type declaration
consents: [StringBoolVector](../interfaces/stringboolvector.md)
legitimateInterests: [StringBoolVector](../interfaces/stringboolvector.md)
___
<a id="purposeonetreatment"></a>
### purposeOneTreatment
**● purposeOneTreatment**: *[BoolInt](../#boolint)*
*Defined in [model/InAppTCData.ts:16](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L16)*
___
<a id="speicalfeatureoptins"></a>
### speicalFeatureOptins
**● speicalFeatureOptins**: *[StringBoolVector](../interfaces/stringboolvector.md)*
*Defined in [model/InAppTCData.ts:35](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L35)*
___
<a id="tcstring"></a>
### tcString
**● tcString**: *`string`*
*Defined in [model/InAppTCData.ts:12](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L12)*
___
<a id="tcfpolicyversion"></a>
### tcfPolicyVersion
**● tcfPolicyVersion**: *`number`*
*Inherited from [Return](return.md).[tcfPolicyVersion](return.md#tcfpolicyversion)*
*Defined in [model/Return.ts:8](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/Return.ts#L8)*
___
<a id="usenonstandardstacks"></a>
### useNonStandardStacks
**● useNonStandardStacks**: *[BoolInt](../#boolint)*
*Defined in [model/InAppTCData.ts:14](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L14)*
___
<a id="vendor"></a>
### vendor
**● vendor**: *`object`*
*Defined in [model/InAppTCData.ts:29](https://github.com/chrispaterson/iabtcf-es/blob/cff81a9/modules/cmpapi/src/model/InAppTCData.ts#L29)*
#### Type declaration
consents: [StringBoolVector](../interfaces/stringboolvector.md)
legitimateInterestslegInts: [StringBoolVector](../interfaces/stringboolvector.md)
___
| 25.585366 | 139 | 0.733651 | yue_Hant | 0.376902 |
8a575bb2a2f7a8ba80f50e06394604c323b383c8 | 3,384 | md | Markdown | sdk-api-src/content/dcomp/nf-dcomp-idcompositionvisualdebug-enableredrawregions.md | amorilio/sdk-api | 54ef418912715bd7df39c2561fbc3d1dcef37d7e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | sdk-api-src/content/dcomp/nf-dcomp-idcompositionvisualdebug-enableredrawregions.md | amorilio/sdk-api | 54ef418912715bd7df39c2561fbc3d1dcef37d7e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | sdk-api-src/content/dcomp/nf-dcomp-idcompositionvisualdebug-enableredrawregions.md | amorilio/sdk-api | 54ef418912715bd7df39c2561fbc3d1dcef37d7e | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
UID: NF:dcomp.IDCompositionVisualDebug.EnableRedrawRegions
title: IDCompositionVisualDebug::EnableRedrawRegions (dcomp.h)
description: Enables highlighting visuals when content is being redrawn.
helpviewer_keywords: ["EnableRedrawRegions","EnableRedrawRegions method [DirectComposition]","EnableRedrawRegions method [DirectComposition]","IDCompositionVisualDebug interface","IDCompositionVisualDebug interface [DirectComposition]","EnableRedrawRegions method","IDCompositionVisualDebug.EnableRedrawRegions","IDCompositionVisualDebug::EnableRedrawRegions","dcomp/IDCompositionVisualDebug::EnableRedrawRegions","directcomp.idcompositionvisualdebug_enableredrawregions"]
old-location: directcomp\idcompositionvisualdebug_enableredrawregions.htm
tech.root: directcomp
ms.assetid: 71591ABF-7B7F-4A8D-9FE2-EC5412ACB3EE
ms.date: 12/05/2018
ms.keywords: EnableRedrawRegions, EnableRedrawRegions method [DirectComposition], EnableRedrawRegions method [DirectComposition],IDCompositionVisualDebug interface, IDCompositionVisualDebug interface [DirectComposition],EnableRedrawRegions method, IDCompositionVisualDebug.EnableRedrawRegions, IDCompositionVisualDebug::EnableRedrawRegions, dcomp/IDCompositionVisualDebug::EnableRedrawRegions, directcomp.idcompositionvisualdebug_enableredrawregions
req.header: dcomp.h
req.include-header:
req.target-type: Windows
req.target-min-winverclnt: Windows 8.1 [desktop apps only]
req.target-min-winversvr: Windows Server 2012 R2 [desktop apps only]
req.kmdf-ver:
req.umdf-ver:
req.ddi-compliance:
req.unicode-ansi:
req.idl:
req.max-support:
req.namespace:
req.assembly:
req.type-library:
req.lib: Dcomp.lib
req.dll: Dcomp.dll
req.irql:
targetos: Windows
req.typenames:
req.redist:
ms.custom: 19H1
f1_keywords:
- IDCompositionVisualDebug::EnableRedrawRegions
- dcomp/IDCompositionVisualDebug::EnableRedrawRegions
dev_langs:
- c++
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- Dcomp.dll
api_name:
- IDCompositionVisualDebug.EnableRedrawRegions
---
# IDCompositionVisualDebug::EnableRedrawRegions
## -description
Enables highlighting visuals when content is being redrawn.
## -returns
If the function succeeds, it returns S_OK. Otherwise, it returns an <b>HRESULT</b> error code. See <a href="/windows/desktop/directcomp/directcomposition-error-codes">DirectComposition Error Codes</a> for a list of error codes.
## -remarks
Highlighting redraw regions can be enabled by calling <b>EnableRedrawRegions</b>. With this function, redrawn client areas are visually highlighted every frame the visual is updated. Redraw regions are drawn on the source of the VisualDebug and child visuals. Redraw is triggered when properties of a visual are updated. The updated visual does not necessarily need to visually change to trigger a redraw. The highlighting will cycle through Blue, Yellow, Pink and Green to provide an order of which content is being updated. The redraw regions are only visible while the window of the VisualDebug is being updated.
## -see-also
<a href="/windows/desktop/api/dcomp/nn-dcomp-idcompositiondevicedebug">IDCompositionDeviceDebug</a>
<a href="/windows/desktop/api/dcomp/nn-dcomp-idcompositionvisualdebug">IDCompositionVisualDebug</a>
<a href="/windows/desktop/api/dcomp/nf-dcomp-idcompositionvisualdebug-disableredrawregions">IDCompositionVisualDebug::DisableRedrawRegions</a>
| 44.526316 | 616 | 0.825946 | eng_Latn | 0.393104 |
8a57c56e897ef19b2efd48d8d7d939833e9afa7e | 418 | md | Markdown | README.md | Sunrinlifeteam/Sunrinlife_OAuth | 28b56575f6d7a7fe29cc86e4d6e07bea51330412 | [
"Apache-2.0"
] | null | null | null | README.md | Sunrinlifeteam/Sunrinlife_OAuth | 28b56575f6d7a7fe29cc86e4d6e07bea51330412 | [
"Apache-2.0"
] | null | null | null | README.md | Sunrinlifeteam/Sunrinlife_OAuth | 28b56575f6d7a7fe29cc86e4d6e07bea51330412 | [
"Apache-2.0"
] | null | null | null | # Sunrinlife Template
Template for SunrinLife <br>
SunrinLife is Sunrin Internet High School's intranet made by their students
## 🛠️ Installation
```bash
$ npm install
```
<br/>
## 🚀 Running the app
```bash
# development
$ npm run dev
# production mode
$ npm run start
```
<br/>
## 🔒 Environment configuration
```
NODE_ENV
PORT
DB_NAME
DB_PORT
DB_HOST
DB_USERNAME
DB_PASSWORD
NEIS_API_KEY
```
<br/><br/>
| 9.72093 | 75 | 0.698565 | eng_Latn | 0.493122 |
8a57c6d617a98e6f60f86cfc440c8834b0b12041 | 2,773 | md | Markdown | README.md | juchaosong/hango-gateway | 29ca20484d4ac70413343303f21e3774ae783bc8 | [
"Apache-2.0"
] | null | null | null | README.md | juchaosong/hango-gateway | 29ca20484d4ac70413343303f21e3774ae783bc8 | [
"Apache-2.0"
] | null | null | null | README.md | juchaosong/hango-gateway | 29ca20484d4ac70413343303f21e3774ae783bc8 | [
"Apache-2.0"
] | null | null | null | [//]: # "README"
# Hango
![hango](images/logo.jpg)
[English version](README.EN.md)
Hango 是一个基于 **Envoy** 构建的高性能、可扩展、功能丰富的云原生API网关。
Hango 提供请求代理、动态路由、负载均衡、限流、熔断、健康检查、安全防护等功能,可用于微服务网关、七层负载均衡、Kubernetes Ingress、Serverless网关等应用场景。
通过[Hango Rider](https://github.com/hango-io/rider)模块,用户可以自定义多语言插件进行能力扩展。
## <span id="why"> 为什么选择Hango
* **技术路线**:基于领先的网络代理组件 **Envoy** 构建,具备丰富的功能、优异的性能与可观测性
* **扩展性**:可用于生产的增强级 Lua 扩展框架 Rider;基于 WebAssembly 的多语言扩展插件能力(Alpha,后续提供)
* **多场景**:具备支撑微服务网关、七层负载均衡、Kubernetes Ingress、Serverless网关等多种场景能力
* **云原生**:以云原生标准数据面组件 **Envoy** 作为核心引擎,天然亲和云原生;可作为 Kubernetes、**Service Mesh**、Serverless 的 Ingress、Gateway 实现
* **API生态与集成**:以 API 为中心的生态管理,提供数百种工业级协议快速集成能力(后续提供)
* **控制平面**:易用的控制台进行网关、服务、路由等多维度管理,简化使用者操作
## 提要
[特性](#features)
[架构](#archi)
[工程](#pro)
[安装](#install)
[使用](#usage)
[交流](#community)
[License](#license)
## <span id="features">特性
* HTTP、gRPC、Websocket 等多协议代理
* 支持 Kubernetes 等注册中心服务发现
* L7 流量代理、连接池配置
* 基于请求参数的动态路由、主动被动健康检查策略、丰富的负载均衡算法
* 多场景限流、熔断、降级、重试等流量治理功能
* 黑白名单控制、认证鉴权等安全防护功能
* 可视化控制台进行网关配置管理
* 得益于 Envoy 优异的性能,单实例性能可达10w TPS以上
* 自定义插件框架,支持用户用多种语言开发自定义插件,参考[Hango自定义插件使用手册](./example/rider_user_guide.zh_CN.md)
## <span id="archi">架构
Hango 基于云原生理念构建,数据面基于 Envoy 进行扩展,增强插件链,提供 Rider 模块用于自定义插件扩展;控制面组件包括 Slime,Istio,API Plane 以及 Portal 模块。
得益于 [Slime](https://github.com/slime-io/slime) 良好的扩展性与兼容性,用户可以直接选择社区 [Istio](https://github.com/istio/istio) 作为控制面进行 Hango 构建。
![architecture](images/architecture.png)
## <span id="pro"> 工程
Hango 是一个云原生架构下的网关项目,聚合了以下工程:
* [Envoy Proxy](https://github.com/hango-io/envoy-proxy) - 数据面组件,南北流量入口
* [Slime](https://github.com/slime-io/slime) - 将Slime CRD转换为Istio CRD
* [Istio](https://github.com/istio/istio) - 核心控制面,生成对应的xDS配置,下发至Envoy
* [API Plane](https://github.com/hango-io/api-plane) - 用于生成Istio CRD以及Slime CRD
* [Gateway Portal](https://github.com/hango-io/portal) - Hango 控制台Portal
* [Gateway UI](https://github.com/hango-io/ui) - Hango 控制台UI
可以点击链接详细了解每个项目模块。
## <span id="install">安装
目前,安装Hango需要具备Kubernetes环境,目前支持1.17及以上 Kubernetes。
通过Helm,可以一键部署Hango。具体部署可以参考[Hango部署手册](./install/README.zh_CN.md)
## <span id="usage">使用
Hango UI提供了用户使用指南,通过使用指南用户可以方面上手 Hango。
![hango-ui](images/hango-ui.png)
同时,也可以通过API调用的方式进行配置,可以参考[通过OpenAPI配置Hango路由](./example/expose_api.zh_CN.md)
## <span id="community">交流
真诚的欢迎各位和我们进行交流. 我们提供以下方式:
* 邮件:[email protected]
* qq群:Hango 交流群 914823850
* 参考[CONTRIBUTING.md](CONTRIBUTING.md) 和 [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) 文件
同时,也可以通过以下方式进行项目贡献:
* 博客
* Issue
* 测试
* 文档完善等
## <span id="thanks">致谢
Hango 的建设离不开社区成员有价值的工作,这里特别感谢 [Envoy](https://www.envoyproxy.io/) 与 [Istio](https://github.com/istio/istio)
## <span id="license">License
[Apache-2.0](https://choosealicense.com/licenses/apache-2.0/)
| 22.729508 | 126 | 0.736387 | yue_Hant | 0.841592 |
8a59307f908fbdc8a2cadc1825a9dadef27b2d43 | 67 | md | Markdown | protocol/varhead/README.md | Cofyc/link | 38ab1c87db6a9548a052a070b46d860e04e44284 | [
"WTFPL"
] | null | null | null | protocol/varhead/README.md | Cofyc/link | 38ab1c87db6a9548a052a070b46d860e04e44284 | [
"WTFPL"
] | null | null | null | protocol/varhead/README.md | Cofyc/link | 38ab1c87db6a9548a052a070b46d860e04e44284 | [
"WTFPL"
] | null | null | null | 说明
====
这个包实现了变长头部的分包协议。
每个消息包由包头和包体构成,包头的内容是以Uvarint格式编码的包体长度信息。 | 11.166667 | 40 | 0.820896 | zho_Hans | 0.208723 |