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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9db15d323de0daf7c7649387bf6741765c8bb1d | 25 | md | Markdown | content/goal_tags/map-name-activities.md | LenaNguyen/personal-blog | 9cab34c0aac254fcda2e6cfc4cf819da986142fd | [
"MIT"
] | null | null | null | content/goal_tags/map-name-activities.md | LenaNguyen/personal-blog | 9cab34c0aac254fcda2e6cfc4cf819da986142fd | [
"MIT"
] | null | null | null | content/goal_tags/map-name-activities.md | LenaNguyen/personal-blog | 9cab34c0aac254fcda2e6cfc4cf819da986142fd | [
"MIT"
] | null | null | null | ---
name: Activities
---
| 6.25 | 16 | 0.56 | eng_Latn | 0.94019 |
b9db2a36434d7ba9cdbb9a7bfa9dc9356b117456 | 7,203 | md | Markdown | lib/provisioner/worker/plugins/automators/chef_solo_automator/resources/cookbooks/dnsimple/CHANGELOG.md | cdapio/coopr-provisioner | a3bbc58cf537ff9b8bc38fbce81d3d35afd0969b | [
"Apache-2.0"
] | 5 | 2015-03-11T21:15:29.000Z | 2016-06-16T21:41:28.000Z | lib/provisioner/worker/plugins/automators/chef_solo_automator/resources/cookbooks/dnsimple/CHANGELOG.md | cdapio/coopr-provisioner | a3bbc58cf537ff9b8bc38fbce81d3d35afd0969b | [
"Apache-2.0"
] | 193 | 2015-01-06T21:10:31.000Z | 2018-08-04T00:08:29.000Z | lib/provisioner/worker/plugins/automators/chef_solo_automator/resources/cookbooks/dnsimple/CHANGELOG.md | caskdata/coopr-provisioner | a3bbc58cf537ff9b8bc38fbce81d3d35afd0969b | [
"Apache-2.0"
] | 7 | 2015-02-01T21:30:13.000Z | 2017-12-20T01:10:26.000Z | # Change Log
## [v2.1.0](https://github.com/dnsimple/chef-dnsimple/tree/v2.1.0) (2017-06-26)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v2.0.1...v2.1.0)
**Merged pull requests:**
- Add Docs for dnsimple\_certificate [\#49](https://github.com/dnsimple/chef-dnsimple/pull/49) ([onlyhavecans](https://github.com/onlyhavecans))
- Feature/install certificate [\#48](https://github.com/dnsimple/chef-dnsimple/pull/48) ([aeden](https://github.com/aeden))
## [v2.0.1](https://github.com/dnsimple/chef-dnsimple/tree/v2.0.1) (2017-05-18)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v2.0.0...v2.0.1)
**Fixed bugs:**
- Re-release 2.0.0 with updated Stove [\#47](https://github.com/dnsimple/chef-dnsimple/issues/47)
## [v2.0.0](https://github.com/dnsimple/chef-dnsimple/tree/v2.0.0) (2017-04-24)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.4...v2.0.0)
**Fixed bugs:**
- Force apt in the run list for ubuntu platforms [\#41](https://github.com/dnsimple/chef-dnsimple/pull/41) ([martinisoft](https://github.com/martinisoft))
**Closed issues:**
- Chef 11 needs compat resources [\#45](https://github.com/dnsimple/chef-dnsimple/issues/45)
**Merged pull requests:**
- Replace fog with dnsimple and rewrite to Chef 12.5+ resource [\#46](https://github.com/dnsimple/chef-dnsimple/pull/46) ([martinisoft](https://github.com/martinisoft))
- It seems that Chef 11 and Compat resources no go [\#44](https://github.com/dnsimple/chef-dnsimple/pull/44) ([jjasghar](https://github.com/jjasghar))
- Update README.md [\#43](https://github.com/dnsimple/chef-dnsimple/pull/43) ([jjasghar](https://github.com/jjasghar))
## [v1.3.4](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.4) (2016-09-30)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.3...v1.3.4)
**Merged pull requests:**
- Swap fog gem for fog-dnsimple [\#42](https://github.com/dnsimple/chef-dnsimple/pull/42) ([martinisoft](https://github.com/martinisoft))
## [v1.3.3](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.3) (2016-06-27)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.2...v1.3.3)
**Fixed bugs:**
- getchef.com isn't our site anymore [\#37](https://github.com/dnsimple/chef-dnsimple/pull/37) ([jjasghar](https://github.com/jjasghar))
**Merged pull requests:**
- Update Travis-CI builds to use Integration [\#40](https://github.com/dnsimple/chef-dnsimple/pull/40) ([martinisoft](https://github.com/martinisoft))
- Fix test suite names for kitchen [\#39](https://github.com/dnsimple/chef-dnsimple/pull/39) ([onlyhavecans](https://github.com/onlyhavecans))
- Remove 16.04 due to bento issues. Update Documents [\#38](https://github.com/dnsimple/chef-dnsimple/pull/38) ([onlyhavecans](https://github.com/onlyhavecans))
## [v1.3.2](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.2) (2016-06-24)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.1...v1.3.2)
**Merged pull requests:**
- Move to cookstyle over chefstyle [\#36](https://github.com/dnsimple/chef-dnsimple/pull/36) ([onlyhavecans](https://github.com/onlyhavecans))
## [v1.3.1](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.1) (2016-06-10)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.0...v1.3.1)
**Merged pull requests:**
- Update documentation with a correction for the token usage [\#35](https://github.com/dnsimple/chef-dnsimple/pull/35) ([martinisoft](https://github.com/martinisoft))
## [v1.3.0](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.0) (2016-06-10)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.2.0...v1.3.0)
**Fixed bugs:**
- DNSimple API authentication [\#24](https://github.com/dnsimple/chef-dnsimple/issues/24)
**Merged pull requests:**
- Support api tokens [\#33](https://github.com/dnsimple/chef-dnsimple/pull/33) ([martinisoft](https://github.com/martinisoft))
## [v1.2.0](https://github.com/dnsimple/chef-dnsimple/tree/v1.2.0) (2016-06-10)
**Fixed bugs:**
- Fix ChefSpec Deprecation Warning [\#25](https://github.com/dnsimple/chef-dnsimple/issues/25)
- centos-65 requires patch utility due to nokogiri, only build-essential ~\> 2.0.4 installs patch [\#21](https://github.com/dnsimple/chef-dnsimple/issues/21)
- Fix converging in modern chef 11 and chef 12 [\#32](https://github.com/dnsimple/chef-dnsimple/pull/32) ([onlyhavecans](https://github.com/onlyhavecans))
- Cleanup testing [\#31](https://github.com/dnsimple/chef-dnsimple/pull/31) ([martinisoft](https://github.com/martinisoft))
**Closed issues:**
- Use Fog DNSimple API Auth [\#27](https://github.com/dnsimple/chef-dnsimple/issues/27)
- Ubuntu 14.04 package requirement [\#23](https://github.com/dnsimple/chef-dnsimple/issues/23)
- Should have option to gracefully handle existing A record for CNAME create [\#18](https://github.com/dnsimple/chef-dnsimple/issues/18)
- Release a new version to Chef Community site [\#11](https://github.com/dnsimple/chef-dnsimple/issues/11)
- Add Test Kitchen [\#10](https://github.com/dnsimple/chef-dnsimple/issues/10)
- Cookbook removes undesired records [\#9](https://github.com/dnsimple/chef-dnsimple/issues/9)
- Should depend on 'build-essential' [\#7](https://github.com/dnsimple/chef-dnsimple/issues/7)
- LWRP should use load\_current\_resource [\#2](https://github.com/dnsimple/chef-dnsimple/issues/2)
**Merged pull requests:**
- Update build status and metadata [\#30](https://github.com/dnsimple/chef-dnsimple/pull/30) ([martinisoft](https://github.com/martinisoft))
- Unpin build-essential, blocks many popular cookbooks from use [\#22](https://github.com/dnsimple/chef-dnsimple/pull/22) ([martinb3](https://github.com/martinb3))
- Support creating record with multiple content values [\#20](https://github.com/dnsimple/chef-dnsimple/pull/20) ([josacar](https://github.com/josacar))
- Use load\_current\_resource in lwrp [\#15](https://github.com/dnsimple/chef-dnsimple/pull/15) ([josacar](https://github.com/josacar))
- Integrate Test Kitchen [\#14](https://github.com/dnsimple/chef-dnsimple/pull/14) ([dje](https://github.com/dje))
- Configure attributes for ohai to workaround empty node.platform\_family [\#13](https://github.com/dnsimple/chef-dnsimple/pull/13) ([josacar](https://github.com/josacar))
- Avoid removing records with different type on create [\#12](https://github.com/dnsimple/chef-dnsimple/pull/12) ([josacar](https://github.com/josacar))
- Build Essential Dependancy [\#8](https://github.com/dnsimple/chef-dnsimple/pull/8) ([ichilton](https://github.com/ichilton))
- add platform support for rhel platforms and expand coverage for more debian platforms [\#6](https://github.com/dnsimple/chef-dnsimple/pull/6) ([mattkasa](https://github.com/mattkasa))
- Fix missing pkg dependencies, update to chef\_gem; add name to metadata. [\#5](https://github.com/dnsimple/chef-dnsimple/pull/5) ([mdxp](https://github.com/mdxp))
- Improvements to LWRP and Documentation [\#1](https://github.com/dnsimple/chef-dnsimple/pull/1) ([jtimberman](https://github.com/jtimberman))
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* | 62.634783 | 185 | 0.733722 | kor_Hang | 0.169051 |
b9dbc5be3d6d5da2f02b5b03c0bdbe858ce896b2 | 4,008 | md | Markdown | docs/standard/parallel-programming/index.md | Youssef1313/docs.it-it | 15072ece39fae71ee94a8b9365b02b550e68e407 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/standard/parallel-programming/index.md | Youssef1313/docs.it-it | 15072ece39fae71ee94a8b9365b02b550e68e407 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/standard/parallel-programming/index.md | Youssef1313/docs.it-it | 15072ece39fae71ee94a8b9365b02b550e68e407 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Programmazione parallela in .NET
ms.date: 09/12/2018
ms.technology: dotnet-standard
helpviewer_keywords:
- parallel programming
ms.assetid: 4d83c690-ad2d-489e-a2e0-b85b898a672d
ms.openlocfilehash: ae129ef0cb2b331c1eb0220282f21fec6f6fb77d
ms.sourcegitcommit: 559fcfbe4871636494870a8b716bf7325df34ac5
ms.translationtype: MT
ms.contentlocale: it-IT
ms.lasthandoff: 10/30/2019
ms.locfileid: "73134155"
---
# <a name="parallel-programming-in-net"></a>Programmazione parallela in .NET
Un numero elevato di personal computer e workstation è dotato di diversi core CPU che consentono l'esecuzione simultanea di più thread. Per sfruttare l'hardware, è possibile parallelizzare il codice per distribuire il lavoro su più processori.
In passato la parallelizzazione richiedeva la modifica di basso livello di thread e blocchi. Visual Studio e .NET Framework migliorano il supporto per la programmazione parallela fornendo un runtime, tipi di librerie di classi e strumenti diagnostici. Queste funzionalità che sono state introdotte con .NET Framework 4, semplificano lo sviluppo parallelo. È possibile scrivere codice parallelo efficiente, con granularità fine e scalabile in un linguaggio naturale senza dover usare direttamente i thread o il pool di thread.
Nell'illustrazione seguente viene fornita una panoramica dettagliata dell'architettura di programmazione parallela in .NET Framework:

## <a name="related-topics"></a>Argomenti correlati
|Tecnologia|Descrizione|
|----------------|-----------------|
|[Task Parallel Library (TPL)](../../../docs/standard/parallel-programming/task-parallel-library-tpl.md)|Viene fornita documentazione per la classe <xref:System.Threading.Tasks.Parallel?displayProperty=nameWithType> che include versioni parallele dei cicli `For` e `ForEach`, nonché per la classe <xref:System.Threading.Tasks.Task?displayProperty=nameWithType> che rappresenta la modalità preferita per l'espressione di operazioni asincrone.|
|[Parallel LINQ (PLINQ)](../../../docs/standard/parallel-programming/parallel-linq-plinq.md)|Un'implementazione parallela di LINQ to Objects che migliora significativamente le prestazioni in molti scenari.|
|[Strutture di dati per la programmazione in parallelo](../../../docs/standard/parallel-programming/data-structures-for-parallel-programming.md)|Vengono forniti collegamenti alla documentazione per classi di raccolte thread-safe, tipi di sincronizzazioni leggere e tipi per l'inizializzazione differita.|
|[Strumenti di diagnostica in parallelo](../../../docs/standard/parallel-programming/parallel-diagnostic-tools.md)|Vengono forniti collegamenti alla documentazione per le finestre del debugger di Visual Studio per le attività e gli stack in parallelo e per il [Visualizzatore di concorrenza](/visualstudio/profiling/concurrency-visualizer).|
|[Partitioner personalizzati per PLINQ e TPL](../../../docs/standard/parallel-programming/custom-partitioners-for-plinq-and-tpl.md)|Viene descritto come funzionano i partitioner e come configurare i partitioner predefiniti o creare un nuovo partitioner.|
|[Utilità di pianificazione delle attività](xref:System.Threading.Tasks.TaskScheduler)|Viene descritto come funziona l'utilità di pianificazione e come possono essere configurate le utilità di pianificazione predefinite.|
|[Espressioni lambda in PLINQ e TPL](../../../docs/standard/parallel-programming/lambda-expressions-in-plinq-and-tpl.md)|Viene fornita una breve panoramica delle espressioni lambda in C# e Visual Basic e ne viene mostrato l'utilizzo in PLINQ e Task Parallel Library.|
|[Ulteriori letture](../../../docs/standard/parallel-programming/for-further-reading-parallel-programming.md)|Vengono forniti collegamenti a informazioni aggiuntive e risorse di esempio per la programmazione parallela in .NET.|
## <a name="see-also"></a>Vedere anche
- [Panoramica della programmazione asincrona](../async.md)
- [Threading gestito](../threading/index.md)
| 95.428571 | 525 | 0.804391 | ita_Latn | 0.984142 |
b9dc55518094e71a8286c895f2462452d8629466 | 4,925 | md | Markdown | docs/concepts/usb/testing.md | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | docs/concepts/usb/testing.md | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | docs/concepts/usb/testing.md | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | <!--
(C) Copyright 2019 The Fuchsia Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
# Testing a USB Device
Note: This is for the non-component version of USB Virtual
Bus. The component version is located at
[/src/lib/isolated_devmgr/usb-virtual-bus.h](/src/lib/isolated_devmgr/usb-virtual-bus.h).
There is currently no documentation about the component version.
The [USB Virtual Bus](/zircon/system/dev/usb/usb-virtual-bus/) framework is a
helpful framework to connect a USB Function driver to a
USB device driver for testing.
The following files are involved in testing a USB Device driver. All three of
these files should be stored in the same directory:
* `{driver}.cc`: the USB device driver that will be tested.
* `{driver}-function.cc`: A USB function driver which fakes the underlying
USB device hardware.
* `{driver}-test.cc`: The test program which sets up the driver and runs tests.
The usb-virtual-bus connects the USB Peripheral bus to the USB bus, as seen
in the below graphic:
```
usb-peripheral-bus -> {Your usb-function driver}
^
|
usb-virtual-bus
|
v
usb-bus -> {Your usb-driver}
```
## Write a USB-function driver {#write-usb-function-driver}
A usb-function driver makes the current host appear like a peripheral
USB device. For example, the USB mass storage (ums) function device allows
the host to appear as a block device when it is plugged into another machine.
If it makes sense for your host to have a USB function driver for your class
of device, then a real usb-function driver should be created. Otherwise,
writing a usb-function that fakes the hardware of a usb device is the easiest
way to test your usb driver.
The usb-virtual-bus connects your usb-function driver to the actual USB device
driver you are trying to test. This allows the device driver to be run in a test
mode with no modifications to the device driver.
Examples of usb-function drivers:
* [usb-hid-function driver](/zircon/system/dev/input/usb-hid/usb-hid-function.cc)
* [ftdi-function driver](/zircon/system/dev/serial/ftdi/ftdi-function.cc)
The usb-function driver needs to implement the
[UsbFunctionInterface](/zircon/system/banjo/ddk.protocol.usb.function/usb-function.banjo#49)
banjo interface. These are the functions that are called from the
usb-virtual-bus library as it sets up the driver in the USB stack.
A usb-function driver binds on top of the
[UsbFunction](/zircon/system/banjo/ddk.protocol.usb.function/usb-function.banjo#12)
protocol. These are the calls that allow the function driver to allocate
endpoints, register interface callbacks, queue USB requests, and more.
### Bind rules
The usb-function driver needs to bind to the `ZX_PROTOCOL_USB_FUNCTION`
protocol. There can be additional bind rules for the USB class, USB subclass,
and USB protocol.
This example shows a bind rule where `{}` represents an area that should be
replaced with your information:
```c++
ZIRCON_DRIVER_BEGIN({driver_name}, {bind_function}, "zircon", "0.1", {number_of_rules})
BI_ABORT_IF(NE, BIND_PROTOCOL, ZX_PROTOCOL_USB_FUNCTION),
BI_ABORT_IF(NE, BIND_USB_CLASS, {usb_class}),
BI_ABORT_IF(NE, BIND_USB_SUBCLASS, {usb_sub_class}),
BI_MATCH_IF(EQ, BIND_USB_PROTOCOL, {usb_protocol}),
ZIRCON_DRIVER_END({driver_name})
```
## Writing the usb-virtual-bus test
The test should be written using the
[usb virtual bus launcher library](/zircon/system/ulib/usb-virtual-bus-launcher).
The first thing the test launches is the usb-function driver described in
[Write a USB-function driver](#write-usb-function-driver). You can launch this
test by adding the bind rules to a `usb_peripheral::FunctionDescriptor` and
using the `SetupPeripheralDevice()` function. For example:
```c++
// Set up your USB Device Descriptor.
usb_peripheral::DeviceDescriptor device_desc = {};
/ Set up your USB Function descriptors.
std::vector<usb_peripheral::FunctionDescriptor> function_descs;
usb_peripheral::FunctionDescriptor function_desc = {
.interface_class = {usb_class},
.interface_subclass = {usb_subclass},
.interface_protocol = {usb_protocl},
};
function_descs.push_back(function_desc);
ASSERT_NO_FATAL_FAILURES(SetupPeripheralDevice(device_desc, std::move(function_descs)));
```
Once the `SetupPeripheralDevice` function has succeeded, the usb-function driver
binds.
The USB virtual bus connects the function driver into the system, and then the
real device driver binds. Your test can then connect to the USB device driver
through `devfs`. Binding happens asynchronously, so you have to wait for the
driver to be detected by `devfs`. The east way to watch for a file is
the `fdio_watch_directory` function.
Now that you've connected to your device, FIDL calls can be made normally.
Your driver handles those FIDL calls and makes calls to your USB function driver
as if it were real hardware.
| 39.4 | 92 | 0.77665 | eng_Latn | 0.979882 |
b9dcc180e06c3217a5476598b88c679521e40821 | 279 | md | Markdown | library/server/wsf/README.md | picpaco/Eiffel-Web-Framework | e96603d58b4a798d8bb25a88247515fd0c1d13ae | [
"EFL-2.0"
] | 1 | 2015-11-05T03:44:15.000Z | 2015-11-05T03:44:15.000Z | library/server/wsf/README.md | picpaco/Eiffel-Web-Framework | e96603d58b4a798d8bb25a88247515fd0c1d13ae | [
"EFL-2.0"
] | null | null | null | library/server/wsf/README.md | picpaco/Eiffel-Web-Framework | e96603d58b4a798d8bb25a88247515fd0c1d13ae | [
"EFL-2.0"
] | null | null | null | # Web Server Framework
User friendly framework to build Eiffel Web server applications.
It is built on top of [EWSGI](../ewsgi/) to benefit from the various EWSGI connectors.
## Requirements
* [EWSGI](../ewsgi)
* [HTTP](../../protocol/http)
## Overview
## Usage
## Examples
| 18.6 | 86 | 0.702509 | eng_Latn | 0.920706 |
b9dcd8aa1b1b4ffd0ecc04bc7e1f2bd8ff701bc8 | 1,563 | md | Markdown | docfx/articles/ja/vrm1/vrm1_runtime_load.md | els003/UniVRM | 46488c6217a1d96b8ba9125857b6a01dc8823889 | [
"MIT"
] | null | null | null | docfx/articles/ja/vrm1/vrm1_runtime_load.md | els003/UniVRM | 46488c6217a1d96b8ba9125857b6a01dc8823889 | [
"MIT"
] | null | null | null | docfx/articles/ja/vrm1/vrm1_runtime_load.md | els003/UniVRM | 46488c6217a1d96b8ba9125857b6a01dc8823889 | [
"MIT"
] | null | null | null | # RuntimeLoad
`VRM-1.0` は、 `VRM-0.x` もロードできます。
その場合、あたらしい meta への変換が発生し互換性の無い部分はすべて `不許可` の値になります。
このため、変換前のライセンスにアクセスする API を提供します。
サンプルの `Assets\VRM10\Samples\VRM10Viewer\VRM10ViewerUI.cs` も参照してください。
```cs
static IMaterialDescriptorGenerator GetVrmMaterialDescriptorGenerator(bool useUrp)
{
if (useUrp)
{
return new Vrm10UrpMaterialDescriptorGenerator();
}
else
{
return new Vrm10MaterialDescriptorGenerator();
}
}
async Task<RuntimeGltfInstance> LoadAsync(string path)
{
GltfData data = new AutoGltfFileParser(path).Parse();
// doMigrate: true で旧バージョンの vrm をロードできます。
if (Vrm10Data.TryParseOrMigrate(data, doMigrate: true, out Vrm10Data vrm))
{
// vrm
using (var loader = new Vrm10Importer(vrm,
materialGenerator: GetVrmMaterialDescriptorGenerator(m_useUrpMaterial.isOn)))
{
// migrate しても thumbnail は同じ
var thumbnail = await loader.LoadVrmThumbnailAsync();
if (vrm.OriginalMetaBeforeMigration != null)
{
// migrated from vrm-0.x. use OriginalMetaBeforeMigration
UpdateMeta(vrm.OriginalMetaBeforeMigration, thumbnail);
}
else
{
// load vrm-1.0. use newMeta
UpdateMeta(vrm.VrmExtension.Meta, thumbnail);
}
// モデルをロード
RuntimeGltfInstance instance = await loader.LoadAsync();
return instance;
}
}
else{
throw new Exception("not vrm");
}
}
```
| 27.421053 | 85 | 0.62508 | yue_Hant | 0.550079 |
db7689a1d0dd0e3492fe603aceb2295a1c6dafae | 2,698 | md | Markdown | _posts/2017-02-04-2017-spring-festival-summary.md | jixiang718/jixiang718.github.io | cbbd38a3195375cd932633dab897d1f31ad28b99 | [
"MIT"
] | null | null | null | _posts/2017-02-04-2017-spring-festival-summary.md | jixiang718/jixiang718.github.io | cbbd38a3195375cd932633dab897d1f31ad28b99 | [
"MIT"
] | null | null | null | _posts/2017-02-04-2017-spring-festival-summary.md | jixiang718/jixiang718.github.io | cbbd38a3195375cd932633dab897d1f31ad28b99 | [
"MIT"
] | null | null | null | ---
layout: post
title: 春节假期总结
---
春节是每年的长假,作为中国人,走亲访友是必不可少,吃吃喝喝也是在所难免。除此之外,也做了不少事情。
这个假期原本是打算看某些领域的书的,但是我在放假的时候做了一个决定。既然是春节,如果我用来看平常就关注的领域的书,那么假期的意义就和平时的空闲时间没有什么两样。所以,我打算专注于一直关注但没有空仔细研究的、比较抽象的、然而又异常实用的、能够统领其他领域的知识——所谓“Metacognition”是也。
给Metacognition加了这么多定语,可不是过誉,因为它确实是如此。Metacognition,中文有叫做“元认知”的,其意思是“关于思考的思考”。也就是我们如何思考。
**Metacognition主题的一些阅读体会和思考结果,我会另写一篇文章。这里只简要概述大致看了哪些东西。**
其一是Wikipedia的“Metacognition”这个词条。这个词条比较学术,是一个大而全的介绍,但是对大量的理论只是一句带过,附上论文名,要想深挖可是个个都是不得了的领域。当然wiki最好的就是有一些顶层的分类,让你可以对整个领域有一个模糊的印象和大致的归类方法。——**归类**是一个很自然,然而很重要的思考方式,有时候会被我们遗忘。
其二是一本中文的书,《把时间当做朋友》。这本书前几章是讲时间管理,然而由于第二版新增了内容,所以后几章讲的是如何思考、交流。它不是专门谈Metacognition,但是Metacognition的影子处处可见,因此可以作为非学术谈论Metacognition的很好的材料。
其三是一篇Review。说来有趣,在读《把时间当做朋友》这本书的同时,我试图在Amazon.com上找一本写Metacognition的书,然而评论比较多的基本稍微做一做搜索就发现,要么过于学术,要么更加侧重的是“如何教育学生获得Metacognition”,跟我希望看的“讲授Metacognition的实操方法”还是略有不同。
直到我发现了一本在国内也大热的书*Thinking, Fast and Slow*,才知道这本中文译名为《思考快与慢》的书,其实是讲Metacognition的。在搜索这本书相关评价的过程中,我发现了一篇哈佛大学经济学家Andrei Shleifer在Journal of Economic Literature上发表的、关于*Thinking, Fast and Slow*这本书的[Review](http://scholar.harvard.edu/files/shleifer/files/kahneman_review_jel_final.pdf)。大师写评论,当然值得一看。事实上,这篇评论不仅概括了*Thinking, Fast and Slow*这本书的内容,还把原书主要在心理学领域的探讨放入了经济学、尤其是行为金融学中应用了一番,令人大开眼界。
第四是一本老书,是我在大学准备GRE考试时看过的一本书《太傻十日谈》。这本书是讲留学申请的,但是它所站在的层次却远在“留学”这个范畴之上。我在当时看时模模糊糊觉得很高深,很抽象,读过一遍也没有再读,但总有一种印象是,这本书是讲“思维方法”的,那么也就是属于Metacognition了。然而这一次把它翻出来再读,大概扫了前几个章节,原来全书讲的最重要概念是“营销”,即“留学的本质是营销”。知道了全书最重要的概念,就不会有模模糊糊的感觉,就不会只有“抽象”的感觉——毕竟这种“抽象”实际是“不明觉厉”,而“不明觉厉”其实还是“概念不清”的结果。这本书并不是写Metacognition的,因此不是我好奇的重点,然而我觉得,如果想了解营销,它是一个好的入门。
**除了阅读,我搭了一个独立博客。**起因很简单,我希望给Lofter上的博客绑定独立域名,发现“由于政策原因”,Lofter不提供这个服务了。所以别无他法,只能自己搭一个博客。
我的诉求很简单:以最少的时间代价,尽量不写代码,完成整个博客的搭建。因为我的重点是内容,而不是博客的形式——实际上,我觉得形式越简单越好。
我尝试了squarespace,这是一个美国的博客服务公司,好处是界面美观,缺点是
- 服务器在美国,因此国内访问很慢
- 每月12美元,算下来一年不算域名就要1000人民币
- 不支持中文字体——这点我最不能忍。我的绝大多数文章都是中文,难道都用宋体显示?
因此虽然我都做好了思想准备交钱了,这第三条打消了我的积极性。
另一个选择是Wordpress。我之前搭过wordpress的网站,但是
- 免费的模板非常难看,而好看的模板都需要付费——这个可以算作成本,不算缺点。
- 拿到模板之后,修改起来比较麻烦。我不是专业的php程序员,而php修改起来连蒙带猜的话,非常花时间。——回到我的初衷:以最少的时间代价,尽量不写代码。
- 需要购买一个主机空间。——这个也算作成本好了。
以上是两个选择。有一天我跟一个在互联网行业的朋友吃饭,跟他聊到这件事,他建议我研究一下在github上搭博客。我是知道github可以搭博客,但是之前一直有一个疑虑,就是github这一套技术能不能用在其他地方,假设以后我要转移到自己的主机空间,是不是github这一套就作废了?当然,这位老友跟我说并非如此(有时候内行给你的一颗定心丸也是很重要的),我才仔细研究了一下github的方法。
github实际上用的是jekyll这个博客程序,它是一个静态博客程序——简洁、响应速度快,符合我的要求。
于是乎,边学边改边尝试,在[http://jekyllthemes.org/](http://jekyllthemes.org/)上挑模板,多少改了一些代码,用到了我多年前自学的一点css知识,也做了一些trouble shooting的工作——话说回来,我是真的很不喜欢trouble shooting的工作,整个人的状态都非常不好,虽然我能控制自己的状态,但我很不喜欢自己在trouble shooting时的状态。
总之,把博客搭了起来,也绑定了独立域名。如果以后github被墙了,或者不允许在上面搭博客了,我准备在主机空间了还用jekyll来搭博客。
关于为什么这个时代还要写博客,我在上一篇文章里写了。至于Metacognition,我这个假期最大的感受就是——多用wikipedia。 | 49.054545 | 382 | 0.86212 | yue_Hant | 0.663218 |
db76d6ac6096da080c594e65cd02af99c9df3c72 | 6,114 | md | Markdown | articles/multi-step-logic-flow.md | superpelonpow/power-automate-docs.es-es | 47bdb13c7c04f5843fe59827b081760a5519ec13 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/multi-step-logic-flow.md | superpelonpow/power-automate-docs.es-es | 47bdb13c7c04f5843fe59827b081760a5519ec13 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/multi-step-logic-flow.md | superpelonpow/power-automate-docs.es-es | 47bdb13c7c04f5843fe59827b081760a5519ec13 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Adición de varias acciones y una opción avanzada | Microsoft Docs
description: Expanda un flujo para incluir una opción avanzada, como la configuración el correo electrónico para que tenga alta prioridad y agregar otra acción al mismo evento.
services: ''
suite: flow
documentationcenter: na
author: stepsic-microsoft-com
manager: anneta
editor: ''
tags: ''
ms.service: flow
ms.devlang: na
ms.topic: article
ms.tgt_pltfrm: na
ms.workload: na
ms.date: 04/20/2017
ms.author: stepsic
search.app:
- Flow
search.audienceType:
- flowmaker
- enduser
ms.openlocfilehash: e6a64f60802330857f8e17c9d4ea179426307633
ms.sourcegitcommit: d336e5ffb6cf07e5c8fefe19a87dd7668db9e074
ms.translationtype: HT
ms.contentlocale: es-ES
ms.lasthandoff: 03/26/2020
ms.locfileid: "3297525"
---
# <a name="add-multiple-actions-and-advanced-options-to-a-flow"></a>Agregar varias acciones y opciones avanzadas a un flujo
Para personalizar un flujo, agregue una o varias opciones avanzadas y varias acciones al mismo desencadenador. Por ejemplo, agregue una opción avanzada que envíe un mensaje de correo electrónico con prioridad alta. Además de enviar correo cuando se agrega un elemento a una lista de SharePoint, cree un archivo en Dropbox que contenga la misma información.
## <a name="prerequisites"></a>Requisitos previos
* [Crear un flujo](get-started-logic-flow.md)
## <a name="add-another-action"></a>Adición de otra acción
En este procedimiento, agregará una acción en el medio del flujo. Dicha acción guardará un archivo en Dropbox y archivar el elemento en la lista.
1. En [flow.microsoft.com](https://flow.microsoft.com), seleccione **Mis flujos** en la barra de navegación superior.
2. En la lista de flujos, seleccione el flujo que quiere editar.
3. Haga clic en **Nuevo paso** y después en **Agregar una acción**.

4. En la lista de acciones posibles, busque **Crear archivo** y seleccione **Dropbox - Crear archivo**.

5. Si se le solicita, especifique las credenciales de Dropbox.
6. Seleccione el icono de carpeta en el lado derecho del cuadro **Ruta de acceso a la carpeta**.
7. Busque y seleccione la carpeta en la que desea colocar el nuevo archivo.

8. Escriba el nombre del nuevo archivo en el cuadro **Nombre de archivo**. Asegúrese de anexar una extensión, por ejemplo, ".txt", al nombre del archivo. En este caso, vamos a usar **TweetId** en el nombre del archivo para garantizar la unicidad de los archivos. Es posible que tenga que seleccionar **Ver más** para encontrar el token **TweetId**.
9. Agregue el texto que desea que contenga el archivo escribiendo en el cuadro **Contenido del archivo**. También puede agregar tokens en el cuadro **Contenido del archivo**.

> [!IMPORTANT]
> Si asigna al archivo un nombre que coincida con el nombre de un archivo existente (de la carpeta seleccionada), se sobrescribirá el archivo existente.
>
>
10. Seleccione **Actualizar flujo**, que se encuentra en el menú situado en la parte superior de la pantalla.
11. Envíe un tweet que contenga la palabra clave que ha especificado.
Al cabo de un minuto, se crea un archivo en su cuenta de Dropbox.
## <a name="reorder-or-delete-an-action"></a>Reordenación o eliminación de acciones
* Para recibir correo electrónico después de que se haya creado el archivo en Dropbox, mueva la acción de Dropbox arrastrando su barra de título hasta que quede encima de la acción del correo electrónico. Suelte la acción de Dropbox sobre la flecha situada entre el desencadenador (**Cuando se publica un tweet nuevo**) y la acción de correo electrónico. (El cursor indica si la acción está correctamente situada).
> [!NOTE]
> No puede mover un paso delante de otro si usa los resultados de dicho paso.
>
>

* Para eliminar una acción, seleccione los puntos suspensivos (...) que están cerca del borde derecho de la barra de título de la acción que desea eliminar, seleccione **Eliminar** y, luego, seleccione **Aceptar**.

**Nota:** No se puede eliminar una acción si se usa cualquier salida de ella en el flujo. Una vez que quite los resultados de los campos, podrá eliminar la acción.
## <a name="copy-and-paste-actions"></a>Acciones de copiar y pegar
Si quiere duplicar acciones mientras diseña un flujo, puede copiarlas y pegarlas. Por ejemplo, si crea una condición y quiere acciones similares en la parte **If yes** y en la parte **If no**, en lugar de crear ambas acciones desde cero, puede crear la primera acción en un lado y copiarla en el otro.
### <a name="to-copy-an-action"></a>Para copiar una acción
1. Seleccione el menú de la acción (los tres puntos (…) en la parte superior derecha de la acción).
1. Seleccione **Copiar en el portapapeles**.
1. Seleccione **Nuevo paso** donde quiere que vaya la acción.
Observe la pestaña **Mi portapapeles** que le permite elegir entre todas las acciones que copió.
1. Seleccione el elemento que quiere pegar.
## <a name="add-advanced-options"></a>Agregar opciones avanzadas
Comience con un flujo que tenga una acción **Enviar un correo electrónico**.
1. Seleccione **Mostrar opciones avanzadas**, que se encuentra en la parte inferior de la tarjeta **Enviar un correo electrónico**.
Verá las opciones avanzadas para enviar un correo electrónico.

2. Seleccione **Alta** en la lista **Importancia** y, después, seleccione **Ocultar opciones avanzadas** para ocultarlas.
3. Seleccione **Actualizar flujo**, que se encuentra en el menú situado en la parte superior de la pantalla.
Este paso guarda los cambios.
| 56.091743 | 414 | 0.755479 | spa_Latn | 0.991241 |
db7748eb7e749d9792397c2a2663ef0645452233 | 7,816 | md | Markdown | README-ja.md | sghori36/watson-discovery-ui | e747aaa058bc59ffc875d872ef5851d272f500b3 | [
"Apache-2.0"
] | 3 | 2020-12-06T14:40:58.000Z | 2021-02-17T14:12:34.000Z | README-ja.md | sghori36/watson-discovery-ui | e747aaa058bc59ffc875d872ef5851d272f500b3 | [
"Apache-2.0"
] | 3 | 2021-03-09T21:55:34.000Z | 2021-05-10T18:28:25.000Z | README-ja.md | amreenkhann/insurance-underwriting-doc-search | 481e6b8fb5f08f7d9140613cfb73db697b5d4b36 | [
"Apache-2.0"
] | 7 | 2020-12-06T14:22:33.000Z | 2021-04-23T21:12:47.000Z | *他の言語で読む: [English](README.md).*
[](https://travis-ci.org/IBM/watson-discovery-ui)
# Watson Discovery Serviceで構築されたフル機能のWebアプリケーションを開発する
このコードパターンでは、Watson Discovery Serviceのデータを照会して操作するWebアプリケーションの実例を紹介します。 このWebアプリケーションには、独自のWatson Discovery Serviceアプリケーションを開発するための出発点として使用できる複数のUIコンポーネントが含まれています。
Watson Discovery Service を利用する最大の利点は、コグニティブ・エンリッチを適用してデータから洞察を引き出す、その強力なアナリティクス・エンジンにあります。このコード・パターンのアプリでは、Watson Discovery Service アナリティクス・エンジンのエンリッチ機能を、フィルター、リスト、グラフを使用して提示する例を説明します。データには主に以下のエンリッチが適用されます。
* エンティティー: 人、企業、組織、都市など
* カテゴリー: 深さ最大 5 レベルのカテゴリー階層にデータを分類
* 概念: 必ずしもデータ内で参照されていない一般概念を識別
* キーワード: データのインデックスや検索で通常使用される重要なトピック
* 感情: 各ドキュメントの全体的な感情 (肯定的または否定的)
このコードパターンでは、テキサス州オースティンにあるAirbnb宿泊施設のレビューを含むデータを使用します。
このコード・パターンをひと通り完了すると、以下の方法がわかるようになります。
* Watson Discovery Service にデータをロードしてエンリッチする
* Watson Discovery Service 内でデータのクエリーを実行し、データを処理する
* Watson Discovery Service によってエンリッチされたデータを示す UI コンポーネントを作成する
* よく使われている JavaScript テクノロジーを使用して、Watson Discovery Service のデータとエンリッチを備えた完全な Web アプリを構築する

## Flow
1. Airbnb レビューの JSON ファイルを Discovery コレクションに追加します。
2. アプリの UI を使用してバックエンド・サーバーとやり取りします。フロントエンドのアプリ UI が React を使用して検索結果をレンダリングします。この UI は、バックエンドで使用したすべてのビューを再利用してサーバー・サイドのレンダリングを行うことができます。フロントエンドは semantic-ui-react コンポーネントを使用していて、レスポンシブなものとなっています。
3. Discovery が入力を処理してバックエンド・サーバーにルーティングします。バックエンド・サーバーの役目は、ブラウザーに表示するビューをレンダリングすることです。バックエンド・サーバーは Express を使用して作成されており、React で作成されたビューを、express-react-views エンジンを使用してレンダリングします。
4. バックエンド・サーバーがユーザー・リクエストを Watson Discovery Service に送信します。バックエンド・サーバーはプロキシー・サーバーとして機能し、フロントエンドからのクエリーを Watson Discovery Service API に転送する一方で、機密性の高い API キーをユーザーから隠します。
## UI制御と関連するアクション
ここでは、メインのUI画面の概略を示し、その後に各UIコンポーネントとそれに関連するアクションを説明します。

1. 検索フィールドと検索パラメータ: 検索条件に基づいて結果を返します。 検索パラメータは、ユーザーが値を入力する方法、表示方法、一致数を制限するために使用されます。
2. リストフィルタ: 検索結果に適用されるフィルタの複数のドロップダウンリスト。 各ドロップダウンリストには、結果に関連するエンティティ、カテゴリ、概念、およびキーワードが含まれています。 ドロップダウンフィルター項目ごとに、一致数も表示されます。 ユーザーがフィルタ項目を選択すると、新しい検索が実行され、検索結果パネル(#3)が更新されます。 選択したフィルタ項目は、タグクラウド(#4)に表示される内容にも影響します。
3. 検索結果とページ区切りメニュー: 結果項目のページ(ページあたり5個など)と、結果項目のページをスクロールできるペー区切りメニューが表示されます。 ドロップダウンメニューもあり、ユーザーは日付、スコア、および感情値に基づいてエントリを並べ替えることができます。
4. タグクラウド・フィルタ:リストフィルタ (#2) に似ていますが、異なる形式です。一セットのフィルタ項目(エンティティ、カテゴリ、概念またはキーワードのいずれか)を一度に表示できます。 ユーザーは、クラウド内の項目を選択/選択解除してフィルターをオン/オフすることができます。 両方のフィルタ表示(#2と#4)で適用されたフィルタは常に同期します。
5. トレンドチャート: 特定のエンティティ、カテゴリ、コンセプト、またはキーワードに対する感情傾向を時間の経過とともに示すグラフ。データには現在の検索結果が反映されます。
6. 感情チャート: 選択したエンティティ、カテゴリ、コンセプトまたはキーワードの中立的、否定的なレビューの合計割合を示すドーナツチャート。データには現在の検索結果が反映されます。
> 注: プロジェクト構造については、 [DEVELOPING.md](DEVELOPING.md) を参照してください。
## 含まれるコンポーネント
* [Watson Discovery](https://www.ibm.com/watson/jp-ja/developercloud/discovery.html): 大量のデータを検索するとともに、データからパターンや傾向を読み取り、適切な意思決定を支援します。
## 利用した技術
* [Node.js](https://nodejs.org/ja/): サーバー側のJavaScriptコードを実行するためのオープンソースのJavaScriptランタイム環境。
* [React](https://facebook.github.io/react/): ユーザーインターフェイスを構築するためのJavaScriptライブラリ。
* [Express](https://expressjs.com): APIとWebサーバーを作成するための一般的で最小限のWebフレームワーク。
* [Semantic UI React](https://react.semantic-ui.com/introduction): セマンティックUIコンポーネントためのReact実装。
* [Chart.js](http://www.chartjs.org/): チャート用のJavaScriptパッケージ。
* [Jest](https://facebook.github.io/jest/): JavaScript用のテストフレームワーク。
# ビデオを観る
[](https://youtu.be/5EEmQwcjUa4)
# 手順
``Deploy to IBM Cloud`` ボタンを使用するか、サービスを作成してローカルで実行してください。
## IBM Cloudへのデプロイ
[](https://cloud.ibm.com/devops/setup/deploy?repository=https://github.com/IBM/watson-discovery-ui.git)
1. 上の `Deploy to IBM Cloud` ボタンを押し、`Deploy` をクリックします。
2. ツールチェーンでは、`配信パイプライン(Delivery Pipeline)` をクリックして、アプリケーションをデプロイします。 いったんデプロイされると、`アプリを表示(View App)` をクリックすることでアプリを表示できます。

3. 作成および設定されたアプリケーションとサービスを確認するには、IBM Cloudダッシュボードを使用します。アプリケーション名は、固有の接尾辞を持つ `watson-discovery-ui` です。以下のサービスが作成され、`wdui-` 接頭辞によって簡単に見つけることができます。
* wdui-discovery-service
## ローカルで実行する
> 注: これらの手順は `Deploy to IBM Cloud` ボタンを使用する代わりに、ローカルで実行する場合にのみ必要です
1. [リポジトリーを複製する](#1-clone-the-repo)
2. [IBM Cloudサービスを作成する](#2-create-ibm-cloud-services)
3. [Discoveryファイルをロードする](#3-load-the-discovery-files)
4. [資格情報を構成する](#4-configure-credentials)
5. [アプリケーションを実行する](#5-run-the-application)
<a name="1-clone-the-repo"></a>
### 1. リポジトリーを複製する
```
$ git clone https://github.com/IBM/watson-discovery-ui
```
<a name="2-create-ibm-cloud-services"></a>
### 2. IBM Cloudサービスを作成する
以下のサービスを作成する:
* [**Watson Discovery**](https://cloud.ibm.com/catalog/services/discovery)
<a name="3-load-the-discovery-files"></a>
### 3. Discoveryファイルをロードする
**Watson Discovery** ツールを起動します。 **新しい data collection** を作成し、ユニークな名前を付けます。
<p align="center">
<img width="600" src="doc/source/images/create-collection.png">
</p>
新しいコレクションのデータパネルの `Configuration` の下にある `Switch` ボタンをクリックして、データをエンリッチメントするためキーワードを抽出する新しい設定ファイルを作成します。この設定ファイルにユニークな名前を付けます。

> 注: これを行わないと、アプリに `keywords` が表示されなくなります。
新しいコレクションのデータパネルの `Add data to this collection` の下の `Drag and drop your documents here or browse from computer` を使用して、`data/airbnb/` から抽出したjsonファイルを読み込ませます。

> 次のステップで `.env` ファイルに **environment_id** と **collection_id** を保存します。
<a name="4-configure-credentials"></a>
### 4. 資格情報を構成する
```
cp env.sample .env
```
`.env`ファイルを編集して必要な設定をします。
#### `env.sample:`
```
# Replace the credentials here with your own.
# Rename this file to .env before starting the app.
# Watson Discovery
DISCOVERY_USERNAME=<add_discovery_username>
DISCOVERY_PASSWORD=<add_discovery_password>
DISCOVERY_ENVIRONMENT_ID=<add_discovery_environment>
DISCOVERY_COLLECTION_ID=<add_discovery_collection>
# Run locally on a non-default port (default is 3000)
# PORT=3000
```
<a name="5-run-the-application"></a>
### 5. アプリケーションを実行する
1. [Node.js](https://nodejs.org/ja/) ランタイムと NPM をインストールします。
2. アプリを起動するため `npm install` と `npm start` を実行します。
3. ブラウザに `localhost:3000` を指定してUIにアクセスしてください。
> 注: 必要に応じてサーバーホストはapp.js内で変更でき、`PORT` は `.env` ファイルで設定することができます。
# サンプル UI レイアウト

# トラブルシューティング
* Error: Environment {GUID} is still not active, retry once status is active
> これは、最初の実行時に起こりがちです。Discovery環境が完全に作成される前にアプリが開始しようとしました。1〜2分の時間をおいてください。その後で再起動時すれば動作します。`Deploy to IBM Cloud` を使用した場合、再起動は自動的に行われます。
* Error: Only one free environment is allowed per organization
> 無料トライアルで作業する場合、小さな無料のディスカバリー環境が作成されます。既にDiscovery環境を使用している場合、その実行は失敗するでしょう。 Discoveryを使用していない場合は、古いサービスをどれか削除してください。それ以外の場合は .envファイルの DISCOVERY_ENVIRONMENT_ID 値を使用して、使用する環境のIDをアプリに通知します。この環境では、デフォルト構成を使用してコレクションが作成されます。
* Error when loading files into Discovery
> 2000のドキュメントファイルをDiscoveryにすべて一度に読み込むと、「ビジー」エラーが発生することがあります。この場合には、何度かに分けてファイルを読み込んでください。
* No keywords appear in the app
> これは、データ収集に適切な構成ファイルが割り当てられていないことが原因です。 上記の [Step 3](#3-load-the-discovery-files) を参照してください。
# リンク
* [Demo on Youtube](https://www.youtube.com/watch?v=5EEmQwcjUa4): ビデオを観る。
* [Watson Node.js SDK](https://github.com/watson-developer-cloud/node-sdk): Watson Node SDKをダウンロードする。
# もっと学ぶ
* **Artificial Intelligence コードパターン**: このコードパターンを気に入りましたか? [AI Code コードパターン](https://developer.ibm.com/jp/technologies/artificial-intelligence/) から関連パターンを参照してください。
* **AI and Data コードパターン・プレイリスト**: コードパターンに関係するビデオ全ての [プレイリスト](https://www.youtube.com/playlist?list=PLzUbsvIyrNfknNewObx5N7uGZ5FKH0Fde) です。
* **With Watson**: [With Watson プログラム](https://www.ibm.com/watson/jp-ja/with-watson/) は、自社のアプリケーションに Watson テクノロジーを有効的に組み込んでいる開発者や企業に、ブランディング、マーケティング、テクニカルに関するリソースを提供するプログラムです。
# ライセンス
[Apache 2.0](LICENSE)
| 39.675127 | 224 | 0.801433 | yue_Hant | 0.625727 |
db77589a6d8964982890b6b1b280d3e52b435990 | 2,003 | md | Markdown | docs/community.md | harmanpatial/hollow | eeefe2454ed2efce60b8971e1a02d8f7375ea7fb | [
"Apache-2.0"
] | 1,103 | 2016-12-03T06:17:22.000Z | 2022-03-30T15:56:16.000Z | docs/community.md | harmanpatial/hollow | eeefe2454ed2efce60b8971e1a02d8f7375ea7fb | [
"Apache-2.0"
] | 268 | 2016-12-03T00:53:44.000Z | 2022-03-28T21:48:23.000Z | docs/community.md | harmanpatial/hollow | eeefe2454ed2efce60b8971e1a02d8f7375ea7fb | [
"Apache-2.0"
] | 221 | 2016-12-02T18:27:13.000Z | 2022-03-25T14:10:18.000Z | # Getting Support
For bug reports and feature requests, please file a [GitHub issue](https://github.com/Netflix/hollow/issues).
If you have a question that isn't covered in this documentation, please reach out for help either on Stack Overflow or [Gitter](https://gitter.im/Netflix/hollow)
## Stack Overflow
The Platform Data Technologies team at Netflix will monitor posts tagged with `hollow`.
## Gitter
The Platform Data Technologies team at Netflix is often available for chat via [Gitter](https://gitter.im/Netflix/hollow). We hope that you'll stick around and pay it forward by answering other users' questions when they arise.
# Contributing to Hollow
We'll gladly review and accept pull requests for Hollow. If you want to have a design discussion for your changes, please reach out to us on Gitter.
## Backwards Compatibility
New features in Hollow should always be added in a way that is backwards compatible, except in _extremely_ rare cases when a major version is released.
If you would like to make a contribution which breaks backwards compatibility, please contact us so we can evaluate alternate ways to achieve the desired result, and/or whether to schedule the change for an upcoming major version release.
## Dependencies
The core project _hollow_ should have zero `compile` dependencies, and should only depend on one library (jUnit) as a `test` dependency. We believe this provides long-term stability for users, reduces licensing concerns, and eliminates the possibility that _other_ project dependencies will be compiled against incompatible versions of dependent libraries.
If you would like to make a contribution which requires a third-party dependency, please contact us before proceeding so we can discuss the appropriate location for the addition.
## sun.misc.Unsafe
The core project *hollow* utilizes `sun.misc.Unsafe`. Your IDE may treat this as an error. See [Issue #5](https://github.com/Netflix/hollow/issues/5) for how to compile without errors.
| 58.911765 | 357 | 0.794309 | eng_Latn | 0.998383 |
db77a4a5a5587f012d3ca129bc5ad06b133a093b | 5,463 | md | Markdown | README.md | gmichalo/LexSubCon | 7c5b3fec90520add2b032cb1277cab8e7bf0f07e | [
"Apache-2.0"
] | null | null | null | README.md | gmichalo/LexSubCon | 7c5b3fec90520add2b032cb1277cab8e7bf0f07e | [
"Apache-2.0"
] | null | null | null | README.md | gmichalo/LexSubCon | 7c5b3fec90520add2b032cb1277cab8e7bf0f07e | [
"Apache-2.0"
] | null | null | null | # LexSubCon: Integrating Knowledge from Lexical Resources into Contextual Embeddings for Lexical Substitution
## General info
This is the code that was used for the paper : [LexSubCon: Integrating Knowledge from Lexical Resources into Contextual Embeddings for Lexical Substitution](https://arxiv.org/pdf/2107.05132.pdf) (ACL 2022).
In this work, we introduce LexSubCon, an end-to-end lexical substitution framework based on contextual embedding models that can identify highly-accurate substitute candidates. This is achieved by combining contextual information with knowledge from structured lexical resources Our approach involves:
- Proposing a novel mix-up embedding strategy to the target word's embedding through linearly interpolating the pair of the target input embedding and the average embedding of its probable synonym
- Considering the similarity of the sentence-definition embeddings of the target word and its proposed candidates
- Calculating the effect of each substitution on the semantics of the sentence through a fine-tuned sentence similarity model
<p align="center">
<img src="/images/LexSubCon.png" height="250" width="500">
</p>
## Technologies
This project was created with python 3.7 and PyTorch 1.7.1 and it is based on the transformer github repo of the huggingface [team](https://huggingface.co/)
and the github repo of the sentence-transformers [team](https://github.com/UKPLab/sentence-transformers)
## Setup
We recommend installing and running the code from within a virtual environment.
### Creating a Conda Virtual Environment
First, download Anaconda from this [link](https://www.anaconda.com/distribution/)
Second, create a conda environment with python 3.7.
```
$ conda create -n lexsubcon python=3.7
```
Upon restarting your terminal session, you can activate the conda environment:
```
$ conda activate lexsubcon
```
### Install the required python packages
In the project root directory, run the following to install the required packages.
```
pip3 install -r requirements.txt
```
- The LexSubCon model depends on data from NLTK so you'll have to download them. Run the Python interpreter (python3) and type the commands:
```python
>>> import nltk
>>> nltk.download('punkt')
```
#### Install from a VM
If you start a VM, please run the following command sequentially before install the required python packages.
The following code example is for a vast.ai Virtual Machine.
```
apt-get update
apt install git-all
apt install python3-pip
```
## Dowload pre-trained Gloss and Similarity checkpoint model
In order to use pre-trained Gloss and Similarity model, you need to dowload them using the scripts **checkpoint/gloss_bert/download.sh** and **checkpoint/similarity_new_bert/download_4.sh** respectively.
## Datasets
This repository contains preprocessed data files from the github [repo](https://github.com/orenmel/lexsub) of the paper:
**A Simple Word Embedding Model for Lexical Substitution**
Oren Melamud, Omer Levy, Ido Dagan. Workshop on Vector Space Modeling for NLP (VSM), 2015 [[pdf]](http://u.cs.biu.ac.il/~melamuo/publications/melamud_vsm15.pdf).
based on the datasets introduced by the following papers:
**Semeval-2007 task 10: English lexical substitution task**
Diana McCarthy, Roberto Navigli, SemEval 2007. (dataset/LS07)
**What substitutes tell us-analysis of an ”all-words” lexical substitution corpus.**
Gerhard Kremer,Katrin Erk, Sebastian Pado, Stefan Thater. EACL, 2014. (dataset/LS14)
## Running model
In order to run the model for the LS07 dataset:
```
python3 main_lexical.py
```
and in order to run the model for the LS14 dataset:
```
python3 main_lexical_coinco.py
```
in order to use the difference signals you will need to set the respective flag to True:
```
parser.add_argument("-val", "--validation_score", type=bool, help="whether we use validation score")
parser.add_argument("-pro", "--proposed_score", type=bool, help="whether we use proposed score")
parser.add_argument("-glossc", "--gloss_score", type=bool, help="whether we use gloss score")
parser.add_argument("-similn", "--similarity_sentence_new", type=bool,help="whether we use similarity sentence score new")
```
### Candidate Ranking Task
Finally for testing the model on the Candidate Ranking Task, you will need to set to True the following parameter:
```
parser.add_argument("-g", "--gap", type=bool, help="whether we use the gap ranking (candidate ranking)")
```
### Running Individual Features and Combining them
Finally, in the case that a computer cannot simultaneously run all the signals, you can run each signal individually (with weight 1) and run the **lexical_combined_results.py** script after updating the paths of the results
### Citation
If you find our work useful, can cite our paper using:
```
@inproceedings{michalopoulos-etal-2022-lexsubcon,
title = "{L}ex{S}ub{C}on: Integrating Knowledge from Lexical Resources into Contextual Embeddings for Lexical Substitution",
author = "Michalopoulos, George and
McKillop, Ian and
Wong, Alexander and
Chen, Helen",
booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
month = may,
year = "2022",
address = "Dublin, Ireland",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.acl-long.87",
pages = "1226--1236",
}
```
| 42.023077 | 301 | 0.760937 | eng_Latn | 0.976921 |
db77d324c06175f89dfee6fc904033272626572e | 2,352 | md | Markdown | pages/mydoc/scopolamineiridocyclitis.md | patrickrewers/DrugMechDB | 19790a128b9ced38d495d531564b9bc647e7924c | [
"MIT"
] | null | null | null | pages/mydoc/scopolamineiridocyclitis.md | patrickrewers/DrugMechDB | 19790a128b9ced38d495d531564b9bc647e7924c | [
"MIT"
] | null | null | null | pages/mydoc/scopolamineiridocyclitis.md | patrickrewers/DrugMechDB | 19790a128b9ced38d495d531564b9bc647e7924c | [
"MIT"
] | null | null | null | ---
title: "scopolamine - Iridocyclitis"
sidebar: mydoc_sidebar
permalink: scopolamineiridocyclitis.html
toc: false
---
{% include image.html file="scopolamineiridocyclitis.png" alt="scopolamineiridocyclitis" %}
## Concepts
|------------|------|---------|
| Identifier | Name | Type |
|------------|------|---------|
| MESH:D012601 | Scopolamine | Drug |
| UniProt:P11229 | Muscarinic acetylcholine receptor M1 | Protein |
| UniProt:P08172 | Muscarinic acetylcholine receptor M2 | Protein |
| UniProt:P20309 | Muscarinic acetylcholine receptor M3 | Protein |
| UniProt:P08173 | Muscarinic acetylcholine receptor M4 | Protein |
| UniProt:P08912 | Muscarinic acetylcholine receptor M5 | Protein |
| GO:1905144 | Response to acetylcholine | BiologicalProcess |
| GO:0006939 | Smooth muscle contraction | BiologicalProcess |
| GO:0006954 | Inflammation | BiologicalProcess |
| MESH:D010146 | Pain | Disease |
| MESH:D015863 | Iridocyclitis | Disease |
|------------|------|---------|
## Relationships
|---------|-----------|---------|
| Subject | Predicate | Object |
|---------|-----------|---------|
| Scopolamine | DECREASES ACTIVITY OF | Muscarinic Acetylcholine Receptor M1 |
| Scopolamine | DECREASES ACTIVITY OF | Muscarinic Acetylcholine Receptor M2 |
| Scopolamine | DECREASES ACTIVITY OF | Muscarinic Acetylcholine Receptor M3 |
| Scopolamine | DECREASES ACTIVITY OF | Muscarinic Acetylcholine Receptor M4 |
| Scopolamine | DECREASES ACTIVITY OF | Muscarinic Acetylcholine Receptor M5 |
| Muscarinic Acetylcholine Receptor M1 | PARTICIPATES IN | Response To Acetylcholine |
| Muscarinic Acetylcholine Receptor M2 | PARTICIPATES IN | Response To Acetylcholine |
| Muscarinic Acetylcholine Receptor M3 | PARTICIPATES IN | Response To Acetylcholine |
| Muscarinic Acetylcholine Receptor M4 | PARTICIPATES IN | Response To Acetylcholine |
| Muscarinic Acetylcholine Receptor M5 | PARTICIPATES IN | Response To Acetylcholine |
| Response To Acetylcholine | POSITIVELY REGULATES | Smooth Muscle Contraction |
| Smooth Muscle Contraction | POSITIVELY CORRELATED WITH | Inflammation |
| Inflammation | CAUSES | Pain |
| Pain | MANIFESTATION OF | Iridocyclitis |
|---------|-----------|---------|
Reference: [https://go.drugbank.com/drugs/DB00747#mechanism-of-action](https://go.drugbank.com/drugs/DB00747#mechanism-of-action){:target="_blank"} | 48 | 147 | 0.708759 | kor_Hang | 0.267436 |
db78b38d633390e36b3b58276c736c50ef8ae6b8 | 4,761 | md | Markdown | docs/use-bytebase/vcs-integration/add-git-provider.md | xiaoluoboding/bytebase.com | c9f2b2c499134c7a72679f401b4863fb3e6a1e42 | [
"MIT"
] | null | null | null | docs/use-bytebase/vcs-integration/add-git-provider.md | xiaoluoboding/bytebase.com | c9f2b2c499134c7a72679f401b4863fb3e6a1e42 | [
"MIT"
] | null | null | null | docs/use-bytebase/vcs-integration/add-git-provider.md | xiaoluoboding/bytebase.com | c9f2b2c499134c7a72679f401b4863fb3e6a1e42 | [
"MIT"
] | null | null | null | ---
title: Add Git Provider
order: 40201
---
# Add Git Provider
> Due to the complexity and details involved, this guide takes a bit patience to follow. If you have suggestions to improve the guide or/and the setup workflow, please tell us at [email protected]
Estimate setup time: 30 minutes. This is a [reference setup](https://demo.bytebase.com/setting/version-control/bytebasegitlabcom-16001) showing what it will look like after the setup.
<hint-block type="info">
For now, Bytebase only supports self-host GitLab EE/CE, we plan to support more Git providers roughly in the following order:
1. GitHub Enterprise
2. GitLab.com
3. GitHub.com
</hint-block>
<hint-block type="warning">
Only **Workspace Owner** can see the "Version Control" sidebar item and add Git Provider.
</hint-block>
<hint-block type="warning">
To add GitLab EE/CE as a Git Provider, you also need to register "Bytebase" as a [GitLab instance-wide OAuth application](https://docs.gitlab.com/ee/integration/oauth_provider.html#instance-wide-applications). This can only be done by a **GitLab instance admin.** If you are not, then you will need to ask the admin to register the application following [Step 2.1](#step-2-2-verify-setup).
</hint-block>
Go to "**Settings**" from the top nav bar, and then go to "**Version Control**" under "**Workspace**", and then click "**Add a Git provider**" button.

## Step 1 - Basic Info

1. Fills in the URL where the GitLab instance is running.
## Step 2 - OAuth application info
<hint-block type="warning">
In this step, you need to register "Bytebase" as a [GitLab instance-wide OAuth application](https://docs.gitlab.com/ee/integration/oauth_provider.html#instance-wide-applications). This can only be done by a **GitLab instance admin.** If you are not, then you will need to ask the admin to follow [**Step 2.1** ](#step-2-1-register-gitlab-instance-wide-oauth-application-performed-by-gitlab-admin)to register the application and provide its Application ID and Secret to you. Then you continue from [**Step 2.2**](#step-2-2-verify-setup)
</hint-block>
### Step 2.1 - Register GitLab instance-wide OAuth application (performed by GitLab Admin)
Login the GitLab instance specified in Step 1 as an Admin user. The admin user will see a wrench icon on the top nav bar like below:

Go to "**Applications**" from the sidebar and then click "**New application**" button.

Fill in the form with the provided info on the Bytebase setup wizard.

- Name usually is just "Bytebase". Other names are fine, as long as the GitLab admin can identify this application is for "Bytebase" later.
- Redirect URI begins with the **host:port** where the Bytebase console is running, and followed by **/oauth/callback**. This is the URI GitLab uses to callback Bytebase during the OAuth flow.
- Trusted: Yes
- Confidential: Yes
- Scopes: api
Click "**Submit**" button after filling the info on GitLab and you will see a created application like below:

### Step 2.2 - Verify setup
Fill the **Application ID** and **Secret** onto the corresponding fields on the Bytebase setup wizard like below:

After you click "**Next**", Bytebase will kick off an OAuth flow to verify the setup. If you are not currently logged into the GitLab instance used in the setup. You will be prompted to login to complete the OAuth.
<hint-block type="info">
If you get an error in the OAuth popup window. Please double-check the following info:
1. The Redirect URI of the registered GitLab application matches exactly to the Redirect URI shown on the Bytebase wizard.
2. The Application ID and Secret of the registered GitLab application matches exactly to
the filled Application ID and Secret on the Bytebase wizard.
</hint-block>
## Step 3 - Confirm
If everything is setup properly, you will be informed that the setup is correct. Then click "**Confirm and add**".

Now we have successfully added a Git provider, developers can now link their Bytebase projects with one of their owned repositories from this Git provider.
## References
1. [GitLab instance-wide applications](https://docs.gitlab.com/ee/integration/oauth_provider.html#instance-wide-applications). For GitLab, this is the OAuth application type Bytebase needs to register.
| 45.342857 | 535 | 0.759084 | eng_Latn | 0.985543 |
db78eedeee06b8298318f37d3057b853dedaa99a | 8,485 | md | Markdown | powerapps-docs/maker/canvas-apps/dev-appsource-test-drive.md | eltociear/powerapps-docs.de-de | 16d69a085b3a02ad10e4e606d7df3dc050e63967 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | powerapps-docs/maker/canvas-apps/dev-appsource-test-drive.md | eltociear/powerapps-docs.de-de | 16d69a085b3a02ad10e4e606d7df3dc050e63967 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | powerapps-docs/maker/canvas-apps/dev-appsource-test-drive.md | eltociear/powerapps-docs.de-de | 16d69a085b3a02ad10e4e606d7df3dc050e63967 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Testen Ihrer Canvas-App durch Kunden auf AppSource | Microsoft-Dokumentation
description: Verwenden Sie AppSource, um eine Canvas-App mit Kunden zu teilen und Leads für Ihr Unternehmen zu generieren.
author: tapanm-msft
manager: kvivek
ms.service: powerapps
ms.topic: conceptual
ms.custom: canvas
ms.reviewer: tapanm
ms.date: 05/08/2017
ms.author: litran
search.audienceType:
- maker
search.app:
- PowerApps
ms.openlocfilehash: 324c7880643a6e06bc147d1bbafb1b9638b8f2ec
ms.sourcegitcommit: 6b27eae6dd8a53f224a8dc7d0aa00e334d6fed15
ms.translationtype: MT
ms.contentlocale: de-DE
ms.lasthandoff: 12/03/2019
ms.locfileid: "74731600"
ms.PowerAppsDecimalTransform: true
---
# <a name="let-customers-test-drive-your-canvas-app-on-appsource"></a>Testen Ihrer Canvas-App durch Kunden auf AppSource
Sind Sie begeistert, Canvas-apps in powerapps zu entwickeln? Möchten Sie eine Canvas-App für Kunden freigeben? [AppSource.com](https://appsource.microsoft.com) unterstützt powerapps-Test Laufwerk Lösungen als Möglichkeit zum Freigeben von Apps für Kunden und Generieren von Leads für Ihr Unternehmen.
## <a name="what-is-a-test-drive-solution"></a>Was ist eine Test Drive-Projektmappe?
Eine Test Drive-Lösung ermöglicht es Ihren Kunden, eine echte App auszuprobieren, ohne sich für einen powerapps-Plan zu registrieren oder Anwendungen zu installieren. Kunden melden sich einfach mithilfe ihres AAD-Kontos (Azure Active Directory) bei AppSource.com an und führen die App in einem Webbrowser aus. Ohne Test Drive können Ihre Kunden nur von Ihrer App lesen oder ein Video anschauen, das sie beschreibt. Mit Test Drive erhalten Kunden eine bessere Vorstellung davon, was Ihre Lösung ist und über welche Funktionalität Ihre App verfügt. Und sie machen die Erfahrung, die App tatsächlich zu verwenden. Kunden können dabei nicht „unter die Haube sehen“, um herauszufinden, wir Ihre App erstellt wurde, daher ist Ihr geistiges Eigentum geschützt. Wir sammeln und teilen Leadinformationen für Benutzer, die Ihre Test Drive-App starten, um Sie beim Ausbau Ihres Geschäfts zu unterstützen.
Hier ist ein Beispiel für eine [App-Auflistung](https://go.microsoft.com/fwlink/?linkid=848867) auf AppSource.com:

Wenn Sie den Link " **Kostenlose Testversion** " aus der obigen App-Auflistung auswählen, wird die zugehörige powerapps-Test Laufwerk-App direkt im Browser des Benutzers

## <a name="how-do-i-build-a-test-drive-solution"></a>Wie wird eine Test Drive-Projektmappe erstellt?
Das Entwickeln einer APP für eine Test Drive-Lösung ist genauso wie das Entwickeln einer beliebigen app in Power apps, aber Sie verwenden eingebettete Daten anstelle externer Datenverbindungen. Durch die Verwendung eingebetteter Daten wird die Barriere der Bereitstellung der APP für Ihren Kunden reduziert, sodass es keine Reibung gibt, um sie auszuprobieren. Die vollständige Lösung, die Sie letztendlich an Kunden verteilen, umfasst normalerweise Datenverbindungen, aber eingebettete Daten funktionieren gut für eine Test Drive-Lösung.
Powerapps unterstützt das Entwickeln von apps mit eingebetteten Daten, sodass Sie nur Beispiel Daten benötigen, damit Ihre APP verwendet werden kann. Diese Daten sollten in einer Excel-Datei in Form einer oder mehrerer Tabellen vorliegen. In powerapps rufen Sie dann die Daten aus den Excel-Tabellen in die APP auf und arbeiten dort, anstatt über eine externe Verbindung. Der aus drei Schritten bestehende Prozess unten zeigt Ihnen, wie Daten in die App importiert und darin verwendet werden.
### <a name="step-1-import-data-into-the-app"></a>Schritt 1: Importieren von Daten in die App
Angenommen, Sie besitzen eine Excel-Datei mit zwei Tabellen: **SiteInspector** und **SitePhotos**.

Importieren Sie diese beiden Tabellen in powerapps, indem Sie die Option **statische Daten zu Ihrer APP hinzufügen**verwenden.

Die Tabellen sind jetzt als Datenquellen in Ihrer App verfügbar.

### <a name="step-2-handling-read-only-and-read-write-scenarios"></a>Schritt 2: Behandlung von Szenarien mit Schreibschutz und mit Lese-/Schreibzugriff
Die importierten Daten sind *statisch* und daher schreibgeschützt. Wenn Ihre App schreibgeschützt ist (sie dem Benutzer also Daten nur anzeigt), verweisen Sie direkt in der App auf die Tabellen. Wenn Sie beispielsweise auf das Feld **Title** in der Tabelle **SiteInspector** zugreifen möchten, verwenden Sie **SiteInspector.Title** in Ihrer Formel.
Wenn Ihre APP Lese-/Schreibzugriff hat, rufen Sie zuerst die Daten aus jeder Tabelle in eine Auflistung auf, bei der *es sich um*eine tabellarische Datenstruktur in Power apps handelt. Arbeiten Sie dann mit der Sammlung anstelle der Tabelle. So ziehen Sie Daten aus den Tabellen **SiteInspector** und **SitePhotos** in die Sammlungen **SiteInspectorCollect** und **SitePhotosCollect**:
```powerapps-comma
ClearCollect( SiteInspectorCollect; SiteInspector );;
ClearCollect( SitePhotosCollect; SitePhotos )
```
Die Formel leert beide Sammlungen und sammelt anschließend die Daten aus den einzelnen Tabellen in der entsprechenden Sammlung:
* Rufen Sie diese Formel an beliebiger Stelle in Ihrer App auf, um die Daten zu laden.
* Sie können alle Sammlungen in Ihrer App anzeigen, indem Sie zu **Datei** > **Sammlungen** navigieren.
* Weitere Informationen finden Sie unter [Erstellen und Aktualisieren einer Sammlung in Ihrer App](../canvas-apps/create-update-collection.md).
Wenn Sie jetzt auf das Feld **Title** zugreifen möchten, verwenden Sie in Ihrer Formel **SiteInspectorCollect.Title**.
### <a name="step-3-add-update-and-delete-data-in-your-app"></a>Schritt 3: Hinzufügen, Aktualisieren und Löschen von Daten in Ihrer App
Sie haben gesehen, wie Daten direkt und aus einer Sammlung gelesen werden; jetzt möchten wir Ihnen zeigen, wie Sie Daten in einer Sammlung hinzufügen, aktualisieren und löschen:
**Um einer Sammlung eine Zeile hinzuzufügen**, verwenden Sie [Collect( DataSource, Item, ... )](../canvas-apps/functions/function-clear-collect-clearcollect.md):
```powerapps-comma
Collect( SiteInspectorCollect;
{
ID: Value( Max( SiteInspectorCollect; ID ) + 1 );
Title: TitleText.Text;
SubTitle: SubTitleText.Text;
Description: DescriptionText.Text
}
)
```
**Um eine Zeile in einer Sammlung zu aktualisieren** , verwenden Sie [UpdateIf( DataSource, Condition1, ChangeRecord1 [, Condition2, ChangeRecord2, ...] )](../canvas-apps/functions/function-update-updateif.md):
```powerapps-comma
UpdateIf( SiteInspectorCollect;
ID = record.ID;
{
Title: TitleEditText.Text;
SubTitle: SubTitleEditText.Text;
Description: DescriptionEditText.Text
}
)
```
**Um eine Zeile aus einer Sammlung zu löschen**, verwenden Sie [RemoveIf( DataSource, Condition [, ...] )](../canvas-apps/functions/function-remove-removeif.md):
```powerapps-comma
RemoveIf( SiteInspectorCollect; ID = record.ID )
```
> [!NOTE]
> Sammlungen enthalten nur Daten, während die App ausgeführt wird; beim Schließen der App werden sämtliche Änderungen verworfen.
Zusammengefasst lässt sich sagen, dass Sie eine Version Ihrer App mit eingebetteten Daten erstellen können, die die Erfahrung der App bei bestehender Verbindung mit externen Daten simuliert. Nach dem Einbetten der Daten sind Sie bereit, diese App auf AppSource.com als Test Drive-Projektmappe zu veröffentlichen.
## <a name="how-do-i-list-my-test-drive-solution-on-appsourcecom"></a>Wie liste ich meine Test Drive-Projektmappe auf AppSource.com auf?
Jetzt, da Ihre App fertig ist, ist es an der Zeit, sie auf AppSource.com zu veröffentlichen. Um diesen Vorgang zu starten, vervollständigen Sie das [Anwendungs Formular](https://powerapps.microsoft.com/partners/get-listed/) in Power apps.com.
Nachdem Sie sich beworben haben, erhalten Sie eine E-Mail mit Anweisungen zum Einreichen Ihrer App für die Veröffentlichung auf AppSource.com. Die Dokumentation zum Onboarding, die den vollständigen Prozess lückenlos beschreibt, kann [hier](https://go.microsoft.com/fwlink/?linkid=851031) heruntergeladen werden.
| 70.123967 | 893 | 0.789982 | deu_Latn | 0.98987 |
db79380ebe2dafe732d180c3b6201179e834e57c | 1,541 | md | Markdown | content/doc/install/ios.md | gioui/giouiorg | 5d92e5b4777a5d0a9ad3f033f35a6ef5748b9aa1 | [
"Unlicense"
] | 6 | 2021-01-11T16:02:42.000Z | 2022-01-23T12:55:51.000Z | content/doc/install/ios.md | gioui/giouiorg | 5d92e5b4777a5d0a9ad3f033f35a6ef5748b9aa1 | [
"Unlicense"
] | 3 | 2021-01-17T00:26:01.000Z | 2022-03-24T15:05:15.000Z | content/doc/install/ios.md | gioui/giouiorg | 5d92e5b4777a5d0a9ad3f033f35a6ef5748b9aa1 | [
"Unlicense"
] | 4 | 2021-01-11T16:02:49.000Z | 2021-11-11T22:56:49.000Z | ---
title: iOS, tvOS
---
## Dependencies
Xcode is required for Apple platforms.
## Building
Install `gogio`, if you already haven't:
go install gioui.org/cmd/gogio@latest
The `-appid` flag specifies the iOS bundle id or Android package id. The flag is
required for creating signed .ipa files for iOS and tvOS devices, because the
bundle id must match an id previously provisioned in Xcode. For example,
$ gogio -target ios -appid <bundle-id> gioui.org/example/kitchen
Use the `Window->Devices and Simulators` option in Xcode to install the ipa file
to the device. If you have [ideviceinstaller](https://github.com/libimobiledevice/ideviceinstaller) installed, you can
install the app from the command line:
$ ideviceinstaller -i kitchen.ipa
If you just want to run a program on the iOS simulator, use the `-o` flag to
specify a .app directory:
$ gogio -o kitchen.app -target ios gioui.org/example/kitchen
Install the app to a running simulator with simctl:
$ xcrun simctl install booted kitchen.app
## Integrate
The `gogio` tool can also produce a framework ready to include in an iOS or tvOS
Xcode project. The command
$ gogio -target ios -buildmode archive gioui.org/example/kitchen
outputs Kitchen.framework with the demo program built for iOS.
To run the Gio program, use the GioAppDelegate class from your program:
@import UIKit;
@import Gio;
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([GioAppDelegate class]));
}
}
| 27.517857 | 118 | 0.752109 | eng_Latn | 0.973461 |
db79c79540fad18cba74e7a153cb1aff52c20866 | 2,969 | md | Markdown | _pages/about.md | patrickzan/peng_zan.github.io | 5a36f75c3b9dcccefa8854e576d512f70dd405e5 | [
"MIT"
] | null | null | null | _pages/about.md | patrickzan/peng_zan.github.io | 5a36f75c3b9dcccefa8854e576d512f70dd405e5 | [
"MIT"
] | null | null | null | _pages/about.md | patrickzan/peng_zan.github.io | 5a36f75c3b9dcccefa8854e576d512f70dd405e5 | [
"MIT"
] | null | null | null | ---
permalink: /
title: "About me"
excerpt: "About me"
author_profile: true
redirect_from:
- /about/
- /about.html
---
<h2>Bio</h2>
Hello! Welcome to my personal webpage! I am currently a Sr. Software Engineer - AI Framework at Black Sesame Technologies, an autonomous driving company located at San Jose. I'm currently working on neural network quantization. Before that, I was a Principal Scientist at <a href="https://www.originwirelessai.com" style="text-decoration: none">Origin Wireless AI</a>. I work with the Algorithm team at Origin, and my work includes wirelss sensing research, machine learning algorithm development and engineering implementations.
I obtained my Ph.D. and M.Sc. degrees in Electrical Engineering from University of Maryland, College Park both in 2019, and my B.Sc. degree in Electrical Engineering from Xi'an Jiaotong University, Xi'an, China in 2014. My Ph.D. research focuses on neural signal processing and auditory neuroscience supervised by <a href="https://ece.umd.edu/clark/faculty/481/Jonathan-Simon" style="text-decoration: none">Prof. Jonathan Z. Simon</a>. I am a signal processing engineer and an auditory neuroscientist by Ph.D. training, but I have sufficient expertise in computer science and data science to have fun both in work and at home.
<h2>Research interests</h2>
<ul>
<li>Signal Processing</li>
<li>Machine Learning</li>
<li>Auditory & Computational Neuroscience, Speech & Acoustics</li>
<li>Internet of Things</li>
</ul>
<h2>Projects</h2>
My research projects fall within signal processing field, but the research topics vary from wireless signals, neural signals to speech signals.
<h3>Wireless AI for IoT (Wireless Signal, Ongoing)</h3>
[Tracking without GPS](https://patrickzan.github.io/projects/2020-wireless) | [Indoor Motion Localization](https://patrickzan.github.io/projects/2020-wireless)
:-------------------------:|:-------------------------:
<img src="projects/p1-tracking.jpg" width="500"> | <img src="projects/p1-motion.png" width="500">
<h3>Auditory Neuroscience (Neural Signal)</h3>
[Information Theory in Auditory Neuroscience](https://patrickzan.github.io/projects/2017-2019-mi) | [Machine Learning in Auditory Neuroscience](https://patrickzan.github.io/projects/2016-2019-ml)
:-------------------------:|:-------------------------:
<img src="projects/p2-mi_cortex2.pdf" width="500"> | <img src="projects/p3-memory1.jpg" width="500">
<h3>Speech and Acoustics (Speech Signal)</h3>
[Smart Hearing Aids using Auditory Attention](https://patrickzan.github.io/projects/2019-speech) | [Speech Enhancement by Deep Learning](https://patrickzan.github.io/projects/2019-speech)
:-------------------------:|:-------------------------:
<img src="projects/p4-joint.png" width="500"> | <img src="projects/p4-se.png" width="500">
Checkout <a href="/research/" style="text-decoration: none">here</a> for more and detailed research projects. | 63.170213 | 626 | 0.71034 | eng_Latn | 0.814066 |
db7a312657ec8579262fe3ed8971cb94525fd967 | 3,842 | md | Markdown | README.md | jburer/mysimpleservice | b779cb24aeff539e7414d77f056c02d1211c7091 | [
"MIT"
] | null | null | null | README.md | jburer/mysimpleservice | b779cb24aeff539e7414d77f056c02d1211c7091 | [
"MIT"
] | null | null | null | README.md | jburer/mysimpleservice | b779cb24aeff539e7414d77f056c02d1211c7091 | [
"MIT"
] | null | null | null | # mySimpleService
The second part of my three part app: The API.
- _The corresponding **UI**: (https://github.com/jburer/mysimpleui)._
- _The corresponding **datastore**: (https://github.com/jburer/mysimpledb)._
## myPurpose
Its concept is to provide users a way to manage local events around town, or shindigs
as I call them. It provides CRUD capabilities to any user, and allows them to manage the data in the
datastore, through the API, from the UI.
Designed to give me a "clean" system for demonstrating Security and
Privacy principals, the only principals applied to the base is that which is inherent
in the frameworks, software, and services that I'm using to build the system.
As I work through the fundamentals of Security and Privacy, I'll apply
them to this app, and create different branches to give you that "before
and after" feel.
For more info on this effort check out my blog: (http://jburer.wordpress.com)
_**PLEASE NOTE:** This is solely_
_intended as a learning and education tool, and in no way represents the_
_full responsibilities needed for a production system. In fact it is_
_specifically designed to omit security and privacy controls (e.g._
_authentication, input validation, logging, etc. - **all those things security and privacy folks care about**)_
_so that their benefits can be demonstrated._
## myService
The `mysimpleService` is an Express app and makes the REST `GET`, `POST`, `PUT` and `DELETE` methods available.
| Path | HTTP Mehtod | Parameters | Response | Purpose |
| --------------- | ----------- | ------------------------------------ | ----------------------- | ------------------------------------- |
| /shindigs | GET | \_page=_[number]_,\_limit=_[number]_ | {_JSON Document_} | Returns data with optional pagination |
| /shindigs/id/ | GET | _[id]_ | {_JSON Document_} | Returns data matching a specific ID |
| /shindigs/count | GET | | { "count" : _[count]_ } | Returns count of records |
| /shindigs | POST | {_JSON Document_} | {"n":1,"ok":1} | Adds a new document |
| /shindigs/id | DELETE | _[id]_ | {"n":1,"ok":1} | Deletes a specified document |
| /shindigs | PUT | _[id]_, {_JSON Document_} | | Updates a specified document |
It is accompanied by a `config.js` file where the `port` is defined, the
`URI` to the DBMS is established, and the target `database` and `collection` are named.
_**PLEASE NOTE:** The `URI` is currently set to look for the Docker hostname defined in the datastore._
The API is exposed on port `:3100`.
## myArchitecture
This is pretty straightforward Service that sits independently from the UI and datastore.
It is designed to be run inside a Docker container.

## myDockerSetup
_**PLEASE NOTE:** All images in this app are pre-configured to use the `mysimplenetwork` network by design._
_Because `docker-compose.yml` expects this network, it is necessary to create it first before running docker compose._
_Creating the network first allows each image to be created independently, although you will want to start the database first_
_before running the API as the API immediately looks for the DB._
Create the `mysimplenetwork` network.
<pre>
docker network create mysimplenetwork
</pre>
Clone the repository and move to the `mysimpleapi` directory.
<pre>
docker compose up -d --build --remove-orphans
</pre>
This will make the API available at the following URI:
<pre>
http://localhost:3100
</pre>
| 46.289157 | 138 | 0.646538 | eng_Latn | 0.995068 |
db7a7443093ff15337e7105e68965cf7eeb9ea6f | 5,400 | md | Markdown | document/components/docs/en-US/dialog.md | xiaoxinghug/daily-ui | 8133142c907f6426db2a00274d91cef1ed7c0667 | [
"Apache-2.0"
] | 1 | 2018-05-02T16:14:58.000Z | 2018-05-02T16:14:58.000Z | document/components/docs/en-US/dialog.md | 132yse/cube-ui | fce24fba4826f1826bccf0efb540f3418bda11f6 | [
"Apache-2.0"
] | null | null | null | document/components/docs/en-US/dialog.md | 132yse/cube-ui | fce24fba4826f1826bccf0efb540f3418bda11f6 | [
"Apache-2.0"
] | null | null | null | ## Dialog
`Dialog` modal component,provides various styles and interactions.
### Example
- Dialog type
```html
<cube-button @click="showAlert">Dialog - type</cube-button>
```
```js
export default {
methods: {
showAlert() {
this.$createDialog({
type: 'alert',
title: 'i am title',
content: 'i am content',
icon: 'cubeic-alert'
}).show()
}
}
}
```
`type` will be one of the following: `alert`, `confirm`.
- Button configuration
```html
<cube-button @click="showBtn">Dialog - btn</cube-button>
```
```js
export default {
methods: {
showBtn() {
this.$createDialog({
type: 'confirm',
icon: 'cubeic-alert',
title: 'i am title',
content: 'i am content',
confirmBtn: {
text: 'confirm',
active: true,
href: 'javascript:;'
},
cancelBtn: {
text: 'cancel',
active: false,
href: 'javascript:;'
},
onConfirm: () => {
this.$createToast({
type: 'warn',
time: 1000,
txt: '点击确认按钮'
}).show()
},
onCancel: () => {
this.$createToast({
type: 'warn',
time: 1000,
txt: '点击取消按钮'
}).show()
}
}).show()
}
}
}
```
Button configuration(`confirmBtn`, `cancelBtn`) can be `String` or `Object` type. When given an Object, `text` can be used to set button content,`active` is used to set button highlight state,`href` is used to set the link that will be jumped to when the button is clicked.
- Show close button
```html
<cube-button @click="showClose">Dialog - show close</cube-button>
```
```js
export default {
methods: {
showClose() {
this.$createDialog({
type: 'alert',
icon: 'cubeic-alert',
showClose: true,
title: 'title',
onClose: () => {
this.$createToast({
type: 'warn',
time: 1000,
txt: 'the close button has been clicked'
}).show()
}
}).show()
}
}
}
```
You can change `showClose` to decide whether to show the close button. The `close` event will be dispatched when the close button is clicked and the `onClose` callback will be invoked if it is configured.
- Slot
```html
<cube-button @click="showSlot">Dialog - slot</cube-button>
```
```js
export default {
methods: {
showSlot() {
this.$createDialog({
type: 'alert',
confirmBtn: {
text: 'got it',
active: true
}
}, (createElement) => {
return [
createElement('div', {
'class': {
'my-title': true
},
slot: 'title'
}, [
createElement('div', {
'class': {
'my-title-img': true
}
}),
createElement('p', 'custom title')
]),
createElement('p', {
'class': {
'my-content': true
},
slot: 'content'
}, 'custom content')
]
}).show()
}
}
}
```
The second parameter of `$createDialog` is [render function](https://vuejs.org/v2/guide/render-function.html), generally it is used to handle slots. Dialog component provides 2 named slots `title` and `content` which are used to distribute title and content.
### Props configuration
| Attribute | Description | Type | Accepted Values | Default |
| - | - | - | - | - |
| type | dialog type | String | alert / confirm | alert |
| icon | icon class name | String | [refer to built-in icons in style module](#/style) | '' |
| title | title | String | - | '' |
| content | content | String | - | '' |
| showClose | whether to show close button | Boolean | true/false | false |
| confirmBtn | confirm button configuration | Object/String | - | { text: '确定', active: true, href: 'javascript:;' } |
| cancelBtn | cancel button configuration | Object/String | - | { text: '取消', active: false, href: 'javascript:;' } |
* `confirmBtn` sub configuration
| Attribute | Description | Type | Accepted Values | Default |
| - | - | - | - | - |
| text | button text | String | - | '确认' |
| active | whether to highlight | Boolean | true/false | true |
| href | the link that will be jumped to when the button is clicked | String | - | 'javascript:;' |
* `cancelBtn` sub configuration
| Attribute | Description | Type | Accepted Values | Default |
| - | - | - | - | - |
| text | button text | String | - | '取消' |
| active | whether highlight | Boolean | true/false | false |
| href | the link that will be jumped to when the button is clicked | String | - | 'javascript:;' |
### Slot
| Name | Description | Scope Parameters |
| - | - | - |
| title | title | - |
| content | content | - |
### Events
| Event Name | Description | Parameters |
| - | - | - | - |
| confirm | triggers when the confirm button is clicked | e - event target |
| cancel | triggers when the cancel button is clicked | e - event target |
| close | triggers when the close button is clicked | e - event target |
| 28.272251 | 275 | 0.523889 | eng_Latn | 0.915573 |
db7b208cd3df971c9a340b99b58637f824261a07 | 16,430 | md | Markdown | src/pages/oferta/strony-internetowe.md | ArtOpen/artopen | e3b85ef8bd58f04b6893acb147f0638fa943a3ef | [
"MIT"
] | 6 | 2021-03-10T17:48:53.000Z | 2021-11-07T18:52:50.000Z | src/pages/oferta/strony-internetowe.md | Ys-sudo/artopen | e3b85ef8bd58f04b6893acb147f0638fa943a3ef | [
"MIT"
] | null | null | null | src/pages/oferta/strony-internetowe.md | Ys-sudo/artopen | e3b85ef8bd58f04b6893acb147f0638fa943a3ef | [
"MIT"
] | null | null | null | ---
templateKey: offer-page
title: Strony internetowe
desc: >-
Tworzymy dedykowane strony, sklepy i aplikacje internetowe, wykorzystujemy nowoczesne technologie, dostosowujemy projekty pod każdą rozdzielczość, zadbamy również o pozycjonowanie (SEO), backupy, wsparcie techniczne oraz serwer.
slug: strony-internetowe
date: 2021-10-03T13:49:14.606Z
cover: /img/offer-headers/strony-internetowe.jpg
icon: /img/laptop-code.svg
subtitle: Strony internetowe, sklepy e-commerce, aplikacje web
tags:
- strony internetowe
- sklepy internetowe
- aplikacje web
- aplikacje android
- audyt strony
- 3D
- VR
- e-commerce
- CMS
- SEO
- responsive web design
- szkolenia cms
- API
meta_title: Strony i sklepy internetowe e-commerce 🌱 aplikacje - Art Open Sp. z o.o.
meta_description: >-
Strony internetowe, sklepy e-commerce, aplikacje mobilne i web. 🌳 Agencja reklamowa Art Open | Zaprogramowane do Twoich potrzeb. Wykorzystujemy nowoczesne frameworki i technologie realizując założone cele. Przeprowadzimy audyt Twojej obecnej strony gratis, zadbamy o serwer oraz regularny backup, zapewniamy opiekę techniczną nad projektem. Nie zwlekaj poznaj pełną ofertę!
keywords:
- strony internetowe
- sklepy internetowe
- aplikacje web
- VR
- android
- e-commerce
- web design
- web development
- cms
- seo
- Wordpress
- Joomla
- Prestashop
- node.js
- PHP
- HTML5
- CSS3
- JavaScript
- PWA
- analytics
- api
- pozycjonowanie
- backup
- wsparcie techniczne
- audyty stron internetowych
- responsive web design
- WCAG
---
<div style="margin-left:10%;margin-right:10%">
<p>Internet to nasz świat równoległy. Tworzy odbicie rzeczywistości. Istnienie w nim nie jest już kwestią wyboru, ale koniecznością. Jak odnaleźć się jednak pośród gąszcza informacji? Jak się wyróżnić i zaistnieć w zbiorowej świadomości Internetu? Odpowiedzią są dedykowane strony internetowe stworzone przez nas zgodnie z potrzebami Twojej organizacji. Sprawimy, że strona będzie wyróżniała się na tle innych swoją intuicyjnością, unikalnym projektem oraz trafnością zawartych na niej informacji, które to pozwolą na właściwie pozycjonowanie i dotarcie do dedykowanej grupy docelowej.</p>
</div>
<div style="background-color:green;margin-top:50px;min-height:200px;text-align:center;background-image: linear-gradient(141deg, rgb(0, 158, 108) 0%, rgb(0, 209, 178) 71%, rgb(0, 230, 235) 100%);padding:50px;color:white" >
<div class="columns">
<div class="column">
<img src="/img/offer-icons/unikalny-projekt.svg" width="50px" />
<br><br>
<p><b>Unikalny projekt graficzny</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/cms.svg" width="50px" />
<br><br>
<p><b>Łatwy system CMS</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/support.svg" width="50px" />
<br><br>
<p><b>Wsparcie techniczne</b></p>
</div>
</div>
<div class="columns">
<div class="column">
<img src="/img/offer-icons/backup.svg" width="50px" />
<br><br>
<p><b>Regularne backupy</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/seo.svg" alt="seo" width="50px" />
<br><br>
<p><b>Pozycjonowanie (SEO)</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/email.svg" width="50px" />
<br><br>
<p><b>Newsletter</b></p>
</div>
</div>
<div class="columns">
<div class="column">
<img src="/img/offer-icons/analytics.svg" width="50px" />
<br><br>
<p><b>Analiza statystyk</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/api.svg" width="50px" />
<br><br>
<p><b>Integracje API</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/responsive-design.svg" width="50px" />
<br><br>
<p><b>Pełna responsywność</b></p>
</div>
</div>
<div class="columns">
<div class="column">
<img src="/img/offer-icons/WCAG.svg" width="50px" />
<br><br>
<p><b>Standaryzacja WCAG 2.1</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/chat.svg" width="50px" />
<br><br>
<p><b>Live Chat</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/domain.svg" width="50px" />
<br><br>
<p><b>Domena i serwer</b></p>
</div>
</div>
<div class="columns">
<div class="column">
<img src="/img/offer-icons/audyt.svg" width="50px" />
<br><br>
<p><b>Audyty stron</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/aplikacje.svg" width="50px" />
<br><br>
<p><b>Aplikacje dedykowane</b></p>
</div>
<div class="column">
<img src="/img/offer-icons/sklepy-internetowe.svg" width="50px" />
<br><br>
<p><b>Sklepy internetowe</b></p>
</div>
</div>
</div>
<div class="columns" style="margin-left:10%;margin-right:10%;padding:5%">
<div class="column" style="padding:0px">
<img width="100%" src="https://artopen.netlify.app/img/strony.svg" />
</div>
<div class="column" style="margin-top:50px;padding-left:50px">
<p style="font-size:30px">Strony <b>internetowe</b></p>
<br>
<p>
Tworzymy dedykowane strony internetowe dopasowane do Państwa potrzeb. Wykorzystujemy nowoczesne frameworki oraz systemy CMS. Wykonywane przez nas strony cechuje pełna responsywność, przejrzysty interfejs użytkownika, łatwość w administracji oraz odpowiednie zabezpieczenia. Dodatkowo przeprowadzamy integracje z systemami zewnętrznymi będąc w stanie zaoferować Państwu takie usługi jak czat czy analizy danych z użytkowania strony. Zapewniamy również regularne backupy oraz opiekę techniczną, pomożemy wybrać odpowiednią domenę, zadbamy o serwer oraz przeprowadzimy optymalizacje SEO czyli pozycjonowania w wynikach wyszukiwania.
</p>
</div>
</div>
<div class="columns" style="margin-left:10%;margin-right:10%;padding:5%">
<div class="column" style="margin-top:50px;text-align:right;padding-right:50px">
<p style="font-size:30px">Sklepy <b>e-commerce</b></p>
<br>
<p>
Wykonamy dla Państwa projekty e-commerce oparte o łatwe w obsłudze systemy CMS, przygotujemy pełną szatę graficzną projektu, zadbamy o bezbłędną funkcjonalność serwisu, bezpieczeństwo przepływu danych oraz zgodność z wymogami prawa, w tym rozporządzenia RODO. Oferujemy wsparcie techniczne przez cały okres funkcjonowania projektu, dodatkowo przeszkolimy Państwa zespół z zakresu prowadzenia serwisu, przeprowadzamy aktualizacje oprogramowania, zadbamy o kopie bezpieczeństwa oraz zaangażowanie użytkowników.
</p>
</div>
<div class="column" style="padding:0px">
<img width="100%" alt="e-commerce" src="https://artopen.netlify.app/img/sklepy.svg" />
</div>
</div>
<div class="columns" style="margin-left:10%;margin-right:10%;padding:5%">
<div class="column" style="padding:0px">
<img width="100%" alt="aplikacje webowe" src="https://artopen.netlify.app/img/aplikacje.svg" />
</div>
<div class="column" style="margin-top:50px;padding-left:50px">
<p style="font-size:30px">Aplikacje <b>webowe</b></p>
<br>
<p>
Dedykowane aplikacje webowe oparte na nowoczesnych środowiskach programistycznych, stworzone pod określoną funkcjonalność, dające użytkownikom swobodę wyboru i konfiguracji obiektów. Platformy e-learningowe, konfiguratory produktowe, aplikacje 3D oraz VR, e-booki, e-commerce i inne projekty - dopasowane zgodnie z Państwa potrzebą. Dostępne z poziomu przeglądarki na każdym urządzeniu. Dbamy o najwyższą jakość kodu, używamy systemu kontroli wersji, tworzymy prototypy oprogramowania zgodnie z Państwa projektem.
</p>
</div>
</div>
<div class="" style="margin-left:10%;margin-right:10%;padding:5%">
<div class="" style="margin-top:50px;text-align:left;padding-right:50px">
<p style="font-size:30px">Projekty <b>VR</b></p>
<br>
<p>
Projekty wykonane z obiektów 3D w technologii WEB VR, docelowo na okulary VR ale również dostępne z poziomu przeglądarki w wersji 3D. Pozwalają zagłębić się użytkownikowi w wirtualny świat zarazem przeprowadzając interakcje z obiektami, mogą przybrać formę wirtualnego spaceru, gry czy interaktywnej prezentacji lub szkolenia. Ten nowatorski sposób przedstawiania usług pozwala zapaść w pamięć odbiorcy poprzez poruszające wyobraźnie interaktywne doświadczenie.<br><br>Przetestuj nasz projekt VR - kliknij w ramkę poniżej i użyj strzałek na klawiaturze by przemieścić się w przestrzeni 3D, kliknij w model logo lub kulę by przeprowadzić interakcję.
</p>
</div>
<br>
<div class="" style="padding:0px">
<iframe class="" style="border-radius:20px" width="100%" height="512" defer src="https://iris-mesquite-snowshoe.glitch.me" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div class="columns" style="margin-left:10%;margin-right:10%;padding:5%">
<div class="column" style="padding:0px">
<img width="100%" alt="audyty stron" src="https://artopen.netlify.app/img/audyt.svg" />
</div>
<div class="column" style="margin-top:50px;padding-left:50px">
<p style="font-size:30px"><b>Audyty</b> stron internetowych</p>
<br>
<p>
Wykonamy audyt Państwa obecnej strony pod kątem: wydajności funkcjonowania, błędów w oprogramowaniu, dostępności dla użytkowników, responsywności na urządzeniach mobilnych jak i tych o wysokich rozdzielczościach (monitory 4K) pozycji w wynikach wyszukiwania (SEO), kosztów serwera oraz domeny oraz poprawności interfejsów graficznych. Zapraszamy do kontaktu!
</p>
</div>
</div>
<div class="columns" style="margin-left:10%;margin-right:10%;padding:5%">
<div class="column" style="margin-top:50px;text-align:right;padding-right:50px">
<p style="font-size:30px">Szkolenia z obsługi <b>CMS</b></p>
<br>
<p>
Przeprowadzamy szkolenia oraz prace z zakresu modernizacji oraz rozbudowy najpopularniejszych systemów CMS w tym Wordpress, Joomla, PrestaShop jak i wiele innych. W prosty sposób wytłumaczymy Państwu krok po kroku jak korzystać z systemu oraz uaktualniać i rozbudowywać treści strony, analizować ruch na stronie, a także jak moderować treści wygenerowane przez użytkowników i w wygodny sposób nimi zarządzać.
</p>
</div>
<div class="column" style="padding:0px">
<img width="100%" alt="szkolenia cms" src="https://artopen.netlify.app/img/szkolenia1.svg" />
</div>
</div>
<div class="columns" style="margin-left:10%;margin-right:10%;padding:5%">
<div class="column" style="padding:0px">
<img width="100%" alt="seo" src="https://artopen.netlify.app/img/seo.svg" />
</div>
<div class="column" style="margin-top:50px;padding-left:50px">
<p style="font-size:30px">Pozycjonowanie <b>SEO</b></p>
<br>
<p>
Pozycjonowanie, znane też jako SEO to proces optymalizacji treści tekstowych, graficznych oraz kodu witryny w tym niewidocznych gołym okiem metadanych, który ma na celu uzyskanie wysokiej pozycji w wynikach wyszukiwania. Wykonamy działania SEO Państwa witryny przeprowadzając analizę rynku oraz konkurencji, audyt Państwa obecnej witryny, przygotowując słowa kluczowe, strategię prowadzenia witryny oraz optymalizacje treści i kodu witryny tak aby uzyskać określony target wyszukiwań dla Państwa strony.</p>
</div>
</div>
<p style="font-size:30px;text-align:center"> Wykorzystujemy nowoczesne technologie </p>
<p style="text-align:center">
Profesjonalne narzędzia do rozbudowanych projektów, systemy open-source, kontroli wersji oraz CMS.
</p>
<div style="margin-top:50px;min-height:200px;text-align:center;padding:50px;" class="columns">
<div class="column">
<img alt="node" src="/img/www-icons/node.svg" style="height:50px" />
<br><br>
<p><b>Node.js</b></p>
</div>
<div class="column">
<img alt="wordpress" src="/img/www-icons/wordpress.svg" style="height:50px" />
<br><br>
<p><b>Wordpress</b></p>
</div>
<div class="column">
<img alt="joomla" src="/img/www-icons/joomla.svg" style="height:50px" />
<br><br>
<p><b>Joomla</b></p>
</div>
<div class="column">
<img alt="javascript" src="/img/www-icons/js-square.svg" style="height:50px" />
<br><br>
<p><b>JavaScript</b></p>
</div>
<div class="column">
<img alt="php" src="/img/www-icons/php-alt.svg" style="height:50px" />
<br><br>
<p><b>PHP</b></p>
</div>
</div>
<div style="margin-top:50px;min-height:200px;text-align:center;padding:50px;padding-top:0px;" class="columns removespace">
<div class="column">
<img alt="sass" src="/img/www-icons/sass.svg" style="height:50px" />
<br><br>
<p><b>Sass</b></p>
</div>
<div class="column">
<img alt="git" src="/img/www-icons/git-alt.svg" style="height:50px" />
<br><br>
<p><b>Git</b></p>
</div>
<div class="column">
<img alt="css" src="/img/www-icons/css3-alt.svg" style="height:50px" />
<br><br>
<p><b>CSS3</b></p>
</div>
<div class="column">
<img alt="html" src="/img/www-icons/html5.svg" style="height:50px" />
<br><br>
<p><b>HTML5</b></p>
</div>
<div class="column">
<img alt="react" src="/img/www-icons/react.svg" style="height:50px" />
<br><br>
<p><b>React.js</b></p>
</div>
</div>
<p style="font-size:30px;text-align:center"> Projekt dostosowany na każde urządzenie i przeglądarkę </p>
<p style="text-align:center">
Pełna kompatybilność z każdym urządzeniem oraz systemem operacyjnym.
</p>
<div style="min-height:200px;text-align:center;padding:100px;" class="columns">
<div class="column">
<img alt="chrome" src="/img/www-icons/chrome.svg" width="50px" />
<br><br>
<p><b>Google Chrome</b></p>
</div>
<div class="column">
<img alt="safari" src="/img/www-icons/safari.svg" width="50px" />
<br><br>
<p><b>Safari</b></p>
</div>
<div class="column">
<img alt="firefox" src="/img/www-icons/firefox-browser.svg" width="50px" />
<br><br>
<p><b>Firefox</b></p>
</div>
<div class="column">
<img alt="opera" src="/img/www-icons/opera.svg" width="50px" />
<br><br>
<p><b>Opera</b></p>
</div>
<div class="column">
<img alt="edge" src="/img/www-icons/edge.svg" width="50px" />
<br><br>
<p><b>Microsoft Edge</b></p>
</div>
<div class="column">
<img alt="ie" src="/img/www-icons/internet-explorer.svg" width="50px" />
<br><br>
<p><b>Internet Explorer</b></p>
</div>
</div>
<p style="font-size:30px;text-align:center"> Aplikacja mobilna na androida </p>
<p style="text-align:center">
Wdrożymy dla Państwa wersję aplikacji webowej na Androida, z publikacją w sklepie Google Play.
</p>
<div style="margin-top:50px;min-height:200px;text-align:center;padding:50px;" class="columns">
<div class="column">
<img alt="android" src="/img/www-icons/android-aplikacja.svg" width="50px" />
<br><br>
<p><b>Android</b></p>
</div>
</div>
<div style="margin-left:10%;margin-right:10%;padding:5%">
<b>Strony internetowe, e-commerce, aplikacje</b>
<br>
<p>
Nasz równoległy, cyfrowy świat stał się nierozerwalną częścią naszej dotychczasowej, analogowej rzeczywistości. Istnienie w przestrzeni internetowej nie jest już kwestią wyboru, ale koniecznością. W sieci globalnego Internetu istniejemy pod postacią cyfrowych informacji. Najważniejsze jest jednak to, że mamy wpływ na to jakie informacje i w jaki sposób będą umieszczone w Internecie.
<br><br>
Najbardziej popularną formą autoprezentacji, nie wymagająca dużych nakładów finansowych, jest umieszczenie w sieci wizytówki. Jest to rodzaj skróconej strony internetowej bez rozbudowanych podstron, zawierająca najważniejsze informacje o przedsiębiorstwie, dane teleadresowe, kontakty, krótki opis tego czym zajmuje się przedsiębiorstwo.
Kolejną formą prezentacji jest rozbudowana strona internetowa zawierająca podstrony, na których w szczegółowy sposób przedstawiona jest działalność firmy, dane teleadresowe, formularze kontaktowe, oferta, galeria itp.
Dobrze jest do swojej aktywności w Internecie dołączyć obecność na portalach społecznościowych oraz portalach dedykowanych dla przedsiębiorców i biznesu.
<br><br>
Portale społecznościowe tj. Facebook, Instagram czy Twitter świetnie sprawdzają się przy autoprezentacji firmy oraz do przedstawienia aktualnych wydarzeń i działań. Ułatwiają interakcje z odbiorcami i nawiązanie z nimi relacji.
W dobie dzisiejszych zmian Internet stał się podstawową platformą spotkań nie tylko prywatnych. Także biznes i firmy dostrzegły niezwykły potencjał Internetu i jego nieograniczone możliwości.
Rok do roku wzrasta sprzedaż internetowa i na najbliższe 5 lat także przewidziany jest stały wzrost.
Wartości sprzedaży w Internecie. W czasach zmian i wyzwań jakie stawia przed nami nowa pandemiczna rzeczywistość, nawet najwięksi sceptycy Internetu musieli dostrzec jego niewątpliwe zalety. Komunikacja internetowa okazała się odporna na długotrwały lockdown i pomocna w realizowaniu bez większych przeszkód celów biznesowych.
Kolejnym krokiem może być stworzenie własnego sklepu internetowego, który wymaga jednak większych nakładów finansowych niż strona internetowa. Wykonamy dla Ciebie kompleksowe systemy e-commerce do sprzedaży produktów, usług oraz innych świadczeń.
</p>
</div>
| 41.594937 | 648 | 0.742727 | pol_Latn | 0.996782 |
db7b97b426a59e54124f39be2ec5ca99e711e8fc | 1,548 | md | Markdown | README.md | dtysky/egret-galgame | 11ac9f5e7c855e08417ae0618f03233b7ce2eaa2 | [
"MIT"
] | 22 | 2017-08-28T02:18:20.000Z | 2021-04-01T07:44:00.000Z | README.md | dtysky/egret-galgame | 11ac9f5e7c855e08417ae0618f03233b7ce2eaa2 | [
"MIT"
] | 1 | 2017-12-16T06:10:31.000Z | 2017-12-16T23:00:18.000Z | README.md | dtysky/egret-galgame | 11ac9f5e7c855e08417ae0618f03233b7ce2eaa2 | [
"MIT"
] | 2 | 2019-07-03T02:27:14.000Z | 2021-03-30T02:06:45.000Z | # egret-galgame
An extension for egret engine.
## Description
白鹭游戏引擎的一个GAL插件,使用可参见[B站七夕游戏《Double;7》技术剖析](http://dtysky.moe/article/Skill-2017_06_12_a)和用其实现的游戏[《Double;7》](https://www.bilibili.com/blackboard/double7.html),具体代码请自行F12然后将代码格式化后查看,使用基本如下:
```ts
export const interpreter = new GAL.Interpreter();
export const scene = new GAL.Scene(interpreter);
export const branch = new GAL.Branch();
export const bgm = new GAL.Audio(false, true);
export const text = new GAL.Text();
export const boy = new GAL.Character('npc.boy', '少年', 'boy', 0x0078a4, 0x0078a4, cps, false, false);
this.stage.addChild(scene);
boy.addToScene(scene);
branch.addToScene(scene);
text.addToScene(scene);
const intro = [
() => scene.with(600, 'fade').then(() => next()).toMode('NVL').at(370).create('home'),
() => boy.think('什么...我是主角?'),
() => boy.think('开什么玩笑,当主人公岂不是会很累...我可没那么多精力。'),
() => boy.think('蛤?还是让我当,我...'),
() => branch.open([
{
content: '搞什么玩意,我就是不想当怎么着了?',
callback: () => {
scene.with().toMode('ADV');
interpreter.next();
}
},
{
content: '没办法,看来还是逃不过命运啊~',
callback: () => {
scene.with().toMode('ADV');
interpreter.next();
}
}
]),
() => boy.say('...不对,我是和谁在说话?');
]
scene.bindTouchEvent();
interpreter.load(intro);
interpreter.next();
```
## License
Copyright © 2017, 戴天宇, Tianyu Dai (dtysky < [email protected] >). All Rights Reserved. This project is free software and released under the MIT License.
| 28.666667 | 190 | 0.623385 | yue_Hant | 0.211739 |
db7c4ad9d7a85d1712d741916cc683d70b57bb3c | 204 | md | Markdown | README.md | abulvenz/fakutishori | b5fff65376aa2ecc8c7e91d3cfa330479f122b7d | [
"MIT"
] | 1 | 2020-07-19T15:01:58.000Z | 2020-07-19T15:01:58.000Z | README.md | abulvenz/fakutishori | b5fff65376aa2ecc8c7e91d3cfa330479f122b7d | [
"MIT"
] | null | null | null | README.md | abulvenz/fakutishori | b5fff65376aa2ecc8c7e91d3cfa330479f122b7d | [
"MIT"
] | null | null | null | # fakutishori
Mittlerweile hat sich das Spiel zum Spiel "Black Out" gemausert. Endlich eine eigene Idee und ein eigenes Design.
Die Demo lässt sich [hier](https://abulvenz.github.io/fakutishori) spielen
| 40.8 | 113 | 0.794118 | deu_Latn | 0.99265 |
db7c877751c3db9b45627210a30ec4249a606dad | 335 | md | Markdown | src/posts/post-2.md | clirette/portfolio-site-redesign | 279af67a884fae46ef59973a33ea16ca850411c7 | [
"MIT"
] | null | null | null | src/posts/post-2.md | clirette/portfolio-site-redesign | 279af67a884fae46ef59973a33ea16ca850411c7 | [
"MIT"
] | null | null | null | src/posts/post-2.md | clirette/portfolio-site-redesign | 279af67a884fae46ef59973a33ea16ca850411c7 | [
"MIT"
] | null | null | null | ---
path: "/blog/going-meta-blogging-about-the-challenges-making-this-site"
date: "2019-08-20"
title: "Going Meta - Blogging About The Challenges Making This Site"
---
## React and Gatsby is fun, but challenging!
I am thouroughly enjoying developing this site using React and Gatsby, but I have had quite a few times where I was stuck. | 47.857143 | 122 | 0.758209 | eng_Latn | 0.993522 |
db7c91dd4f88070c62535b7e3e0160d58e7fc07c | 998 | md | Markdown | content/en/Acknowledgement/acknowledgement.md | apark064/hpcc_new_site | e3ead06386fa3e9ded4d3df45bdfdea1ddd5f056 | [
"Apache-2.0"
] | 1 | 2021-05-26T23:55:51.000Z | 2021-05-26T23:55:51.000Z | content/en/Acknowledgement/acknowledgement.md | apark064/hpcc_new_site | e3ead06386fa3e9ded4d3df45bdfdea1ddd5f056 | [
"Apache-2.0"
] | null | null | null | content/en/Acknowledgement/acknowledgement.md | apark064/hpcc_new_site | e3ead06386fa3e9ded4d3df45bdfdea1ddd5f056 | [
"Apache-2.0"
] | 2 | 2021-06-15T17:48:54.000Z | 2021-06-25T18:18:39.000Z | ---
title: Search Results
layout: search
---
## Acknowledgement in Publications
We appreciate that you have chosen our facility to support your research and
would like to remind you to add the following statement to acknowledge the
High-Performance Computing Center in your publications and presentations.
Computations were performed using the computer clusters and data storage
resources of the HPCC, which were funded by grants from NSF (MRI-1429826) and
NIH (1S10OD016290-01A1).
Your success is important to us and we would appreciate the URLs to any
publications or presentations for which the data was acquired using our
facilty.
## Grants
* [NSF MRI-1429826](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1429826)
* [NIH 1S10OD016290-01A1](https://federalreporter.nih.gov/Projects/Details/?projectId=624283&ItemNum=881394&totalItems=892504&searchId=b850241613a74a58962c0bd1a1edd5d4&searchMode=Smart&page=8814&pageSize=100&sortField=Ic&sortOrder=asc&filters=&navigation=True)
| 39.92 | 263 | 0.807615 | eng_Latn | 0.983699 |
db7cc93e8cda73013c5aa9fd16ed3ccee7e0830b | 3,717 | md | Markdown | 2020/10/2020-10-20-Softlab24.md | CrosseyeJack/dmca | 8e99e61d8a5aee2d21b6e9a5e0299a3524a1ef07 | [
"CC-BY-3.0"
] | 4,432 | 2015-01-05T19:30:36.000Z | 2022-03-30T18:15:29.000Z | 2020/10/2020-10-20-Softlab24.md | evido3s/dmca | 1ba09591aaa995f19e84088074924d7120536d41 | [
"CC-BY-3.0"
] | 189 | 2015-03-04T20:55:32.000Z | 2022-03-20T13:11:53.000Z | 2020/10/2020-10-20-Softlab24.md | evido3s/dmca | 1ba09591aaa995f19e84088074924d7120536d41 | [
"CC-BY-3.0"
] | 2,135 | 2015-01-01T12:23:57.000Z | 2022-03-31T18:12:08.000Z | **Are you the copyright holder or authorized to act on the copyright owner's behalf?**
Yes, I am authorized to act on the copyright owner's behalf.
**Please describe the nature of your copyright ownership or authorization to act on the owner's behalf.**
The commercial product with the license non disclosure agreement is published on the github respository.
The code seems published by some third party involved in maintained of the owing party product. (License purchased by someone hired 3rd party to maintain the product).
The product owned by
SOFTLAB24 LIMITED
OPEN SOURCE SOCIAL NETWORK
I am authorized to act on the behalf.
**Please provide a detailed description of the original copyrighted work that has allegedly been infringed. If possible, include a URL to where it is posted online.**
The code can be found
https://github.com/Expertweblancer/ossn
Fork: https://github.com/Mayank-1234-cmd/ossnplus
Fork : https://github.com/Y0urN3w0wn3r/ossn
Fork : https://github.com/qidouhai/ossn
You may check copyrights in the files
https://github.com/Expertweblancer/ossn/blob/master/opensource-socialnetwork.xml
https://github.com/Expertweblancer/ossn/blob/master/COPYRIGHT.txt
You may find the original files [private]
From many files he removed our copyrights already which is violation also.
**What files should be taken down? Please provide URLs for each file, or if the entire repository, the repository’s URL.**
Entire repository need to be taken down as we are the original copyright owner and the repository owner is not authorized to disclose the source code.
**Have you searched for any forks of the allegedly infringing files or repositories? Each fork is a distinct repository and must be identified separately if you believe it is infringing and wish to have it taken down.**
Fork: https://github.com/Mayank-1234-cmd/ossnplus
Fork : https://github.com/Y0urN3w0wn3r/ossn
Fork : https://github.com/qidouhai/ossn
**Is the work licensed under an open source license? If so, which open source license? Are the allegedly infringing files being used under the open source license, or are they in violation of the license?**
The product is dual license however the product uploaded is under https://www.softlab24.com/license/commercial-license-v1
**What would be the best solution for the alleged infringement? Are there specific changes the other person can make other than removal? Can the repository be made private?**
The owner need to remove the repository as he is not the original license owner.
**Do you have the alleged infringer’s contact information? If so, please provide it.**
No we don't have 3rd party contact information as he is not the original owner.
You may contact us directly at [private]
**I have a good faith belief that use of the copyrighted materials described above on the infringing web pages is not authorized by the copyright owner, or its agent, or the law.**
**I have taken <a href="https://www.lumendatabase.org/topics/22">fair use</a> into consideration.**
**I swear, under penalty of perjury, that the information in this notification is accurate and that I am the copyright owner, or am authorized to act on behalf of the owner, of an exclusive right that is allegedly infringed.**
**I have read and understand GitHub's <a href="https://docs.github.com/articles/guide-to-submitting-a-dmca-takedown-notice/">Guide to Submitting a DMCA Takedown Notice</a>.**
**So that we can get back to you, please provide either your telephone number or physical address.**
SOFTLAB24 LIMITED
[private]
[private]
[private]
[private]
http://www.softlab24.com/
**Please type your full legal name below to sign this request.**
[private]
| 46.4625 | 226 | 0.779392 | eng_Latn | 0.99816 |
db7ce0a58c43081d11fa48dd7a376dc58212fcbe | 4,550 | md | Markdown | content/en/tracing/_index.md | kubum/documentation | 677c4bf38ddf460935b7abebd295f34f54da4bb6 | [
"BSD-3-Clause"
] | null | null | null | content/en/tracing/_index.md | kubum/documentation | 677c4bf38ddf460935b7abebd295f34f54da4bb6 | [
"BSD-3-Clause"
] | null | null | null | content/en/tracing/_index.md | kubum/documentation | 677c4bf38ddf460935b7abebd295f34f54da4bb6 | [
"BSD-3-Clause"
] | null | null | null | ---
title: APM & Distributed Tracing
kind: documentation
description: Instrument your code to improve performance
further_reading:
- link: "/tracing/guide/setting_primary_tags_to_scope/"
tag: "Documentation"
text: "Add primary and secondary tags to your traces"
- link: "/tracing/guide/add_span_md_and_graph_it/"
tag: "Documentation"
text: "Add custom tags to your spans to slice and dice performance"
- link: "/tracing/guide/security/"
tag: "Documentation"
text: "Automatically scrub PII from your traces"
- link: "/tracing/guide/metrics_namespace/"
tag: "Documentation"
text: "Learn about trace metrics and their tags"
- link: "/tracing/visualization/"
tag: "Documentation"
text: "Learn to use the APM UI"
aliases:
- /tracing/faq/terminology
- /tracing/guide/terminology
- /tracing/guide/distributed_tracing/
- /tracing/advanced/
- /tracing/api
- /tracing/faq/distributed-tracing/
---
{{< vimeo 381554158 >}}
</br>
Datadog APM & Distributed Tracing gives deep visibility into your applications with **out-of-the-box performance dashboards** for web services, queues and databases to monitor requests, errors, and latency. Distributed traces **seamlessly correlate** to browser sessions, logs, synthetic checks, network, processes and infrastructure metrics across hosts, containers, proxies, and serverless functions. Search **100% of ingested traces live with no sampling** during an outage, while Datadog intelligently retains traces that represent an error, high latency, or unique code paths for analysis.
## Getting Started
As you transition from monoliths to microservices, setting up Datadog APM across hosts, containers or serverless functions takes just minutes.
### 1. Configure the Datadog Agent
[Install and configure the Datadog Agent][1] in AWS, GCP, Azure, Kubernetes, ECS, Fargate, PCF, Heroku, on-prem and more.
### 2. Instrument Your Application
Add a tracing library to your application or proxy service to start sending traces to the Datadog Agent.
{{< partial name="apm/apm-languages.html" >}}
<br>
## Explore Datadog APM
Now that you've configured your application to send traces to Datadog, start getting insights into your application performance:
### Service Map
[Understand service dependencies][2] with an auto-generated service map from your traces alongside service performance metrics and monitor alert statuses.
{{< img src="tracing/index/ServiceMapInspect.gif" alt="Service Map" style="width:100%;">}}
### Service Performance Dashboards
[Monitor Service metrics][3] for requests, errors and latency percentiles. Drill down into database queries or endpoints correlated with infrastructure.
{{< img src="tracing/index/ServicePage.gif" alt="Service Pages" style="width:100%;">}}
### Live Search
[Search on any span][4] by any tag on 100% of your ingested traces live with no sampling for 15 minutes.
{{< img src="tracing/live_search/livesearchmain.gif" alt="Live Search" >}}
### Connect Logs and Distributed Traces
[View your application logs][5] side-by-side with the trace for a single distributed request with automatic trace-id injection.
{{< img src="tracing/index/ConnectLogsWithTraces.png" alt="Connect Logs And Traces" style="width:100%;">}}
### App Analytics
[Analyze performance][6] by application, infrastructure or custom tags such as datacenter, availability zone, deployment version, domain, user, checkout amount, customer and more.
{{< img src="tracing/index/SearchAppAnalytics.gif" alt="App Analytics" style="width:100%;">}}
### Connect Synthetics and Traces
[Link simulated API tests][7] to traces to find the root cause of failures across frontend, network and backend requests.
{{< img src="tracing/index/Synthetics.gif" alt="Synthetics" style="width:100%;">}}
### Continuous Profiling
[Improve code efficiency][8] with always on production profiling to pinpoint the lines of code consuming the most CPU, memory, or I/O.
{{< img src="tracing/index/Profiling.png" alt="Profiling" style="width:100%;">}}
### Customize your Instrumentation or add OpenTracing
[Seamlessly connect your instrumentation][9] between automatic instrumentation, dd-trace-api, and OpenTracing.
## Further Reading
{{< partial name="whats-next/whats-next.html" >}}
[1]: /tracing/send_traces/
[2]: /tracing/visualization/services_map/
[3]: /tracing/visualization/service/
[4]: /tracing/livesearch/
[5]: /tracing/connect_logs_and_traces/
[6]: /tracing/app_analytics/
[7]: /synthetics/apm/
[8]: /tracing/profiling/
[9]: /tracing/manual_instrumentation/
| 39.912281 | 594 | 0.758901 | eng_Latn | 0.888154 |
db7d03bcd324324df6ba49bee203fc4b7a4ec2a3 | 29 | md | Markdown | site_source_files/content/about/_index.md | ant9112/seleniumhq.github.io | eca30c115763d7b8b024e138b9c99bacc5d0fdc2 | [
"Apache-2.0"
] | 1 | 2021-01-18T03:40:00.000Z | 2021-01-18T03:40:00.000Z | site_source_files/content/about/_index.md | mookkiah/seleniumhq.github.io | a31e8a7c8da7a0895274cf98e1d0caf45deb9711 | [
"Apache-2.0"
] | 20 | 2020-12-28T15:43:44.000Z | 2022-01-28T22:17:23.000Z | site_source_files/content/about/_index.md | mookkiah/seleniumhq.github.io | a31e8a7c8da7a0895274cf98e1d0caf45deb9711 | [
"Apache-2.0"
] | 1 | 2021-01-16T04:17:20.000Z | 2021-01-16T04:17:20.000Z | ---
title: About Selenium
--- | 9.666667 | 21 | 0.62069 | eng_Latn | 0.649723 |
db7e17b4fe2a8fe9a37f30e961699c8b556f2603 | 555 | md | Markdown | README.md | tivac/wright-workflow | a2bd3fdf54fa5fc91777a1f248d7d2359d13aab8 | [
"MIT"
] | 5 | 2018-08-13T21:04:39.000Z | 2019-09-03T21:23:05.000Z | README.md | tivac/wright-workflow | a2bd3fdf54fa5fc91777a1f248d7d2359d13aab8 | [
"MIT"
] | null | null | null | README.md | tivac/wright-workflow | a2bd3fdf54fa5fc91777a1f248d7d2359d13aab8 | [
"MIT"
] | null | null | null | # wright-workflow
Trying out a workflow using [`wright`](https://github.com/porsager/wright) with [`rollup`](https://rollupjs.org/guide/en) for bundling, powered by [`svelte`](http://svelte.technology/) with [`svelte-dev-helper`](https://github.com/ekhaled/svelte-dev-helper) to enable hot-reloading.
Oh, and [`modular-css-rollup`](https://github.com/tivac/modular-css/tree/master/packages/rollup) for styling, naturally.
## Installation
```bash
$> npx degit tivac/wright-workflow wright-workflow
$> cd wright-workflow
$> npm install
$> npm start
```
| 37 | 282 | 0.736937 | eng_Latn | 0.571169 |
db7e1fe105d1b4fc6ea8953ec12ad65ad24fdc6f | 272 | md | Markdown | CHANGELOG.md | kanety/stimulus-dropzone | dfce90a2bd7e39ef8967bd98902c992b91dc65eb | [
"MIT"
] | 1 | 2022-02-24T02:57:12.000Z | 2022-02-24T02:57:12.000Z | CHANGELOG.md | kanety/stimulus-dropzone | dfce90a2bd7e39ef8967bd98902c992b91dc65eb | [
"MIT"
] | null | null | null | CHANGELOG.md | kanety/stimulus-dropzone | dfce90a2bd7e39ef8967bd98902c992b91dc65eb | [
"MIT"
] | null | null | null | # CHANGELOG
## 1.0.4
* Check type of dataTransfer.
* Remove css for disable.
## 1.0.3
* Remove use of toggle for classList.
## 1.0.2
* Check acceptance of multiple files for input tag.
## 1.0.1
* Dispatch input event when file dropped.
## 1.0.0
* First release.
| 11.826087 | 51 | 0.665441 | eng_Latn | 0.865745 |
db7e38539010b0023f9b42510fef5e350b0aeb8d | 136 | md | Markdown | README.md | MagicalMontra/AiyaTest | 49fc1eea85992c99ecd816db296d6c030a569eb7 | [
"CC0-1.0"
] | null | null | null | README.md | MagicalMontra/AiyaTest | 49fc1eea85992c99ecd816db296d6c030a569eb7 | [
"CC0-1.0"
] | null | null | null | README.md | MagicalMontra/AiyaTest | 49fc1eea85992c99ecd816db296d6c030a569eb7 | [
"CC0-1.0"
] | null | null | null | # AiyaTest
Download the standalone build on Release
How to play:
WASD to control head character direction
QE to swap head with head
| 13.6 | 40 | 0.786765 | eng_Latn | 0.998413 |
db7e86949d428759e0e5d3b0b8d41168886289e5 | 246 | md | Markdown | translations/pt-BR/data/reusables/codespaces/concurrent-codespace-limit.md | Damian995/docs | 19684e8249771a733f00c8cf90a2264704bf4f60 | [
"CC-BY-4.0",
"MIT"
] | 6 | 2021-02-17T03:31:27.000Z | 2021-09-11T04:17:57.000Z | translations/pt-BR/data/reusables/codespaces/concurrent-codespace-limit.md | Honeyk25/docs | de643512095e283cb3a56243c1a7adcf680a1d08 | [
"CC-BY-4.0",
"MIT"
] | 96 | 2021-10-06T16:37:09.000Z | 2022-03-28T05:19:46.000Z | translations/pt-BR/data/reusables/codespaces/concurrent-codespace-limit.md | Honeyk25/docs | de643512095e283cb3a56243c1a7adcf680a1d08 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2021-08-16T08:21:13.000Z | 2021-11-24T18:52:17.000Z | Você pode criar mais de um código de espaço por repositório ou até mesmo por branch. However, each user account has a limit of 10 codespaces. Se você atingiu o limite e deseja criar um novo espaço de código, você deve primeiro excluir um código.
| 123 | 245 | 0.796748 | por_Latn | 1.00001 |
db7eccdf3452f1376c3126926e7464db51aa95f5 | 246 | md | Markdown | docs-archive-a/2014/includes/vstecwebservices-md.md | v-alji/sql-docs-archive-pr.pt-br | 2791ff90ec3525b2542728436f5e9cece0a24168 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs-archive-a/2014/includes/vstecwebservices-md.md | v-alji/sql-docs-archive-pr.pt-br | 2791ff90ec3525b2542728436f5e9cece0a24168 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-11-25T02:18:31.000Z | 2021-11-25T02:26:28.000Z | docs-archive-a/2014/includes/vstecwebservices-md.md | v-alji/sql-docs-archive-pr.pt-br | 2791ff90ec3525b2542728436f5e9cece0a24168 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2021-09-29T08:52:22.000Z | 2021-10-13T09:16:56.000Z | ---
ms.openlocfilehash: 1b0190dd4c42506effa69e02e1bbf4760fdc0883
ms.sourcegitcommit: ad4d92dce894592a259721a1571b1d8736abacdb
ms.translationtype: MT
ms.contentlocale: pt-BR
ms.lasthandoff: 08/04/2020
ms.locfileid: "87573644"
---
XML Web Services
| 24.6 | 60 | 0.837398 | yue_Hant | 0.157065 |
db7faa018dff90ee861befb8714ad3063b09e3a7 | 4,630 | md | Markdown | Assets/Watson/Scripts/Services/LanguageTranslator/v3/README.md | iamdakshak/faceAR | d5c10e2bb81324e9fe3b0c0baab5a81db9ca900d | [
"MIT"
] | 3 | 2019-03-21T11:22:37.000Z | 2019-04-04T17:12:58.000Z | Assets/Watson/Scripts/Services/LanguageTranslator/v3/README.md | iamdakshak/faceAR | d5c10e2bb81324e9fe3b0c0baab5a81db9ca900d | [
"MIT"
] | null | null | null | Assets/Watson/Scripts/Services/LanguageTranslator/v3/README.md | iamdakshak/faceAR | d5c10e2bb81324e9fe3b0c0baab5a81db9ca900d | [
"MIT"
] | 1 | 2020-02-23T18:47:32.000Z | 2020-02-23T18:47:32.000Z | # Language Translator V3
[Language Translator][language_translator] translates text from one language to another. The service offers multiple domain-specific models that you can customize based on your unique terminology and language. Use Language Translator to take news from across the globe and present it in your language, communicate with your customers in their own language, and more.
## Usage
Select a domain, then identify or select the language of text, and then translate the text from one supported language to another.
### List models
Lists available models for language translation with option to filter by source or by target language.
```cs
private void GetModels()
{
if (!_languageTranslator.GetModels(OnGetModels, OnFail))
Log.Debug("ExampleLanguageTranslatorV3.GetModels()", "Failed to get models.");
}
private void OnGetModels(TranslationModels models, Dictionary<string, object> customData)
{
Log.Debug("ExampleLanguageTranslatorV3.OnGetModels()", "Language Translator - Get models response: {0}", customData["json"].ToString());
}
```
### Create a model
Uploads a TMX glossary file on top of a domain to customize a translation model. Depending on the size of the file, training can range from minutes for a glossary to several hours for a large parallel corpus. Glossary files must be less than 10 MB. The cumulative file size of all uploaded glossary and corpus files is limited to 250 MB.
```cs
private void CreateModel()
{
if (!_languageTranslator.CreateModel(OnCreateModel, OnFail, <base-model-name>, <custom-model-name>, <glossary-filepath>))
Log.Debug("ExampleLanguageTranslatorV3.CreateModel()", "Failed to create model.");
}
private void OnCreateModel(TranslationModel model, Dictionary<string, object> customData)
{
Log.Debug("ExampleLanguageTranslatorV3.OnCreateModel()", "Language Translator - Create model response: {0}", customData["json"].ToString());
}
```
### Get a model details
Returns information, including training status, about a specified translation model.
```cs
private void GetModel()
{
if (!_languageTranslator.GetModel(OnGetModel, OnFail, <custom-language-model-id>))
Log.Debug("ExampleLanguageTranslatorV3.GetModel()", "Failed to get model.");
}
private void OnGetModel(TranslationModel model, Dictionary<string, object> customData)
{
Log.Debug("ExampleLanguageTranslatorV3.OnGetModel()", "Language Translator - Get model response: {0}", customData["json"].ToString());
}
```
### Delete a model
Deletes trained translation models.
```cs
private void DeleteModel()
{
if (!_languageTranslator.DeleteModel(OnDeleteModel, OnFail, <custom-language-model-id>))
Log.Debug("ExampleLanguageTranslatorV3.DeleteModel()", "Failed to delete model.");
}
private void OnDeleteModel(bool success, Dictionary<string, object> customData)
{
Log.Debug("ExampleLanguageTranslatorV3.OnDeleteModel()", "Language Translator - Delete model response: success: {0}", success);
}
```
### Translate
Translates input text from the source language to the target language.
```cs
private void Translate()
{
if (!_languageTranslator.GetTranslation(OnGetTranslation, OnFail, <text-to-translate>, <from-language>, <to-language>))
Log.Debug("ExampleLanguageTranslatorV3.Translate()", "Failed to translate.");
}
private void OnGetTranslation(Translations translation, Dictionary<string, object> customData)
{
Log.Debug("ExampleLanguageTranslatorV3.OnGetTranslation()", "Langauge Translator - Translate Response: {0}", customData["json"].ToString());
}
```
### Identify language
Identify the language in which a text is written.
```cs
private void Identify()
{
if (!_languageTranslator.Identify(OnIdentify, OnFail, <text-to-identify>))
Log.Debug("ExampleLanguageTranslatorV3.Identify()", "Failed to identify language.");
}
private void OnIdentify(string lang, Dictionary<string, object> customData)
{
Log.Debug("ExampleLanguageTranslatorV3.OnIdentify()", "Language Translator - Identify response: {0}", customData["json"].ToString());
}
```
### Identifiable languages
Return the list of languages it can detect.
```cs
private void GetLanguages()
{
if (!_languageTranslator.GetLanguages(OnGetLanguages, OnFail))
Log.Debug("ExampleLanguageTranslatorV3.GetLanguages()", "Failed to get languages.");
}
private void OnGetLanguages(Languages languages, Dictionary<string, object> customData)
{
Log.Debug("ExampleLanguageTranslatorV3.OnGetLanguages()", "Language Translator - Get languages response: {0}", customData["json"].ToString());
}
```
[language_translator]: https://www.ibm.com/watson/services/language-translator/
| 32.836879 | 366 | 0.762635 | yue_Hant | 0.487918 |
db7fb7402f03c142098b9fdf9406d24d2c68df73 | 12,280 | md | Markdown | articles/azure-maps/display-feature-information-android.md | Myhostings/azure-docs.tr-tr | 536eaf3b454f181f4948041d5c127e5d3c6c92cc | [
"CC-BY-4.0",
"MIT"
] | 16 | 2017-08-28T08:29:36.000Z | 2022-01-02T16:46:30.000Z | articles/azure-maps/display-feature-information-android.md | Ahmetmaman/azure-docs.tr-tr | 536eaf3b454f181f4948041d5c127e5d3c6c92cc | [
"CC-BY-4.0",
"MIT"
] | 470 | 2017-11-11T20:59:16.000Z | 2021-04-10T17:06:28.000Z | articles/azure-maps/display-feature-information-android.md | Ahmetmaman/azure-docs.tr-tr | 536eaf3b454f181f4948041d5c127e5d3c6c92cc | [
"CC-BY-4.0",
"MIT"
] | 25 | 2017-11-11T19:39:08.000Z | 2022-03-30T13:47:56.000Z | ---
title: Android haritalar 'da Özellik bilgilerini görüntüleme | Microsoft Azure haritaları
description: Kullanıcılar harita özellikleriyle etkileşim kurarken bilgileri görüntülemeyi öğrenin. Bildirim iletilerini ve diğer ileti türlerini göstermek için Azure Haritalar Android SDK kullanın.
author: rbrundritt
ms.author: richbrun
ms.date: 2/26/2021
ms.topic: conceptual
ms.service: azure-maps
services: azure-maps
manager: cpendle
zone_pivot_groups: azure-maps-android
ms.openlocfilehash: ea9ed2c74651a7719533340a24c4741d4e25b805
ms.sourcegitcommit: 32e0fedb80b5a5ed0d2336cea18c3ec3b5015ca1
ms.translationtype: MT
ms.contentlocale: tr-TR
ms.lasthandoff: 03/30/2021
ms.locfileid: "105605731"
---
# <a name="display-feature-information"></a>Özellik bilgilerini görüntüleme
Uzamsal veriler genellikle noktaları, çizgileri ve çokgenler kullanılarak temsil edilir. Bu verilere genellikle ilişkili meta veri bilgileri sahip olur. Örneğin, bir nokta, Restoran konumunu temsil edebilir ve bu restoran hakkında, hizmet verdiği yiyecek 'nin adı, adresi ve veri türü olabilir. Bu meta veriler coğrafi JSON 'ın özellikleri olarak eklenebilir `Feature` . Aşağıdaki kod, `title` "Merhaba Dünya!" değerine sahip bir özelliği olan basit bir nokta özelliği oluşturur
::: zone pivot="programming-language-java-android"
```java
//Create a data source and add it to the map.
DataSource source = new DataSource();
map.sources.add(source);
//Create a point feature.
Feature feature = Feature.fromGeometry(Point.fromLngLat(-122.33, 47.64));
//Add a property to the feature.
feature.addStringProperty("title", "Hello World!");
//Create a point feature, pass in the metadata properties, and add it to the data source.
source.add(feature);
```
::: zone-end
::: zone pivot="programming-language-kotlin"
```kotlin
//Create a data source and add it to the map.
val source = DataSource()
map.sources.add(source)
//Create a point feature.
val feature = Feature.fromGeometry(Point.fromLngLat(-122.33, 47.64))
//Add a property to the feature.
feature.addStringProperty("title", "Hello World!")
//Create a point feature, pass in the metadata properties, and add it to the data source.
source.add(feature)
```
::: zone-end
Verileri oluşturma ve haritaya ekleme yolları için [veri kaynağı oluşturma](create-data-source-android-sdk.md) belgelerine bakın.
Kullanıcı haritada bir özellik ile etkileşime geçtiğinde, olaylar bu eylemlere tepki vermek için kullanılabilir. Yaygın bir senaryo, Kullanıcı tarafından etkileşim kurulan bir özelliğin meta veri özelliklerinden oluşan bir ileti görüntülemektir. `OnFeatureClick`Olay, kullanıcının haritadaki bir özelliği dokunduğunda tespit etmek için kullanılan ana olaydır. Ayrıca bir olay da vardır `OnLongFeatureClick` . `OnFeatureClick`Olayı haritaya eklerken, bir katmanın kimliğini ile sınırlamak için bir katman kimliğine geçerek tek bir katmanla sınırlı olabilir. Katman KIMLIĞI geçirilmemişse, hangi katmanda olduğuna bakılmaksızın haritadaki herhangi bir özelliğe dokunarak bu olayı tetiklersiniz. Aşağıdaki kod, haritada nokta verisi işlemek için bir sembol katmanı oluşturur, sonra bir `OnFeatureClick` olay ekler ve bu sembol katmanına kısıtlar.
::: zone pivot="programming-language-java-android"
```java
//Create a symbol and add it to the map.
SymbolLayer layer = new SymbolLayer(source);
map.layers.add(layer);
//Add a feature click event to the map.
map.events.add((OnFeatureClick) (features) -> {
//Retrieve the title property of the feature as a string.
String msg = features.get(0).getStringProperty("title");
//Do something with the message.
//Return a boolean indicating if event should be consumed or continue bubble up.
return false;
}, layer.getId()); //Limit this event to the symbol layer.
```
::: zone-end
::: zone pivot="programming-language-kotlin"
```kotlin
//Create a symbol and add it to the map.
val layer = SymbolLayer(source)
map.layers.add(layer)
//Add a feature click event to the map.
map.events.add(OnFeatureClick { features: List<Feature> ->
//Retrieve the title property of the feature as a string.
val msg = features[0].getStringProperty("title")
//Do something with the message.
//Return a boolean indicating if event should be consumed or continue bubble up.
return false
}, layer.getId()) //Limit this event to the symbol layer.
```
::: zone-end
## <a name="display-a-toast-message"></a>Bildirim iletisi görüntüle
Bildirim iletisi, kullanıcıya bilgi görüntülemenin en kolay yollarından biridir ve Android 'in tüm sürümlerinde kullanılabilir. Her tür Kullanıcı girişini desteklemez ve yalnızca kısa bir süre için görüntülenir. Kullanıcının ne dokundukları hakkında bir şey bilmesini hızlıca sağlamak istiyorsanız, bir bildirim iletisi iyi bir seçenek olabilir. Aşağıdaki kod, bir bildirim iletisinin olayla nasıl kullanılabileceğini gösterir `OnFeatureClick` .
::: zone pivot="programming-language-java-android"
```java
//Add a feature click event to the map.
map.events.add((OnFeatureClick) (features) -> {
//Retrieve the title property of the feature as a string.
String msg = features.get(0).getStringProperty("title");
//Display a toast message with the title information.
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
//Return a boolean indicating if event should be consumed or continue bubble up.
return false;
}, layer.getId()); //Limit this event to the symbol layer.
```
::: zone-end
::: zone pivot="programming-language-kotlin"
```kotlin
//Add a feature click event to the map.
map.events.add(OnFeatureClick { features: List<Feature> ->
//Retrieve the title property of the feature as a string.
val msg = features[0].getStringProperty("title")
//Display a toast message with the title information.
Toast.makeText(this, msg, Toast.LENGTH_SHORT).show()
//Return a boolean indicating if event should be consumed or continue bubble up.
return false
}, layer.getId()) //Limit this event to the symbol layer.
```
::: zone-end

Mesajların yanı sıra, bir özelliğin meta veri özelliklerini sunmak için birçok farklı yol vardır:
- [Snackbar pencere öğesi](https://developer.android.com/training/snackbar/showing.html) - `Snackbars` bir işlem hakkında hafif geri bildirim sağlayın. Bu kişiler, ekranın alt kısmında mobil ve daha büyük cihazlarda sol alt kısımdaki kısa bir ileti gösterir. `Snackbars` Tüm diğer öğelerin ekranda görünmesini ve tek seferde yalnızca bir tane görüntülenmesini sağlayabilirsiniz.
- İletişim [kutuları](https://developer.android.com/guide/topics/ui/dialogs) -bir iletişim kutusu, kullanıcıdan karar vermesini veya ek bilgiler girmesini isteyen küçük bir penceredir. Bir iletişim kutusu, ekranı doldurmaz ve normalde, kullanıcıların devam etmeden önce bir eylemde bulunması gereken kalıcı olaylar için kullanılır.
- Geçerli etkinliğe bir [parça](https://developer.android.com/guide/components/fragments) ekleyin.
- Başka bir etkinliğe veya görünüme gidin.
## <a name="display-a-popup"></a>Açılan pencere görüntüle
Azure Haritalar Android SDK, `Popup` harita üzerindeki bir konuma SABITLENMIŞ UI ek açıklama öğelerini oluşturmayı kolaylaştıran bir sınıf sağlar. Açılanlar için, açılan menü seçeneğine göreli düzen ile bir görünüm geçirmeniz gerekir `content` . Aşağıda, bir while arka planının üzerine koyu metin görüntüleyen basit bir düzen örneği verilmiştir.
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:orientation="vertical"
android:background="#ffffff"
android:layout_margin="8dp"
android:padding="10dp"
android:layout_height="match_parent">
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:text=""
android:textSize="18dp"
android:textColor="#222"
android:layout_height="wrap_content"
android:width="200dp"/>
</RelativeLayout>
```
Yukarıdaki düzenin, bir uygulamanın klasöründe adlı bir dosyada depolandığını varsayarak, `popup_text.xml` `res -> layout` Aşağıdaki kod bir açılan pencere oluşturur ve Haritayı haritaya ekler. Bir özellik tıklandığında, `title` özellik düzen kullanılarak görüntülenir `popup_text.xml` ve düzen alt orta ile haritada belirtilen konuma sabitlenmiş olur.
::: zone pivot="programming-language-java-android"
```java
//Create a popup and add it to the map.
Popup popup = new Popup();
map.popups.add(popup);
map.events.add((OnFeatureClick)(feature) -> {
//Get the first feature and it's properties.
Feature f = feature.get(0);
JsonObject props = f.properties();
//Retrieve the custom layout for the popup.
View customView = LayoutInflater.from(this).inflate(R.layout.popup_text, null);
//Access the text view within the custom view and set the text to the title property of the feature.
TextView tv = customView.findViewById(R.id.message);
tv.setText(props.get("title").getAsString());
//Get the coordinates from the clicked feature and create a position object.
List<Double> c = ((Point)(f.geometry())).coordinates();
Position pos = new Position(c.get(0), c.get(1));
//Set the options on the popup.
popup.setOptions(
//Set the popups position.
position(pos),
//Set the anchor point of the popup content.
anchor(AnchorType.BOTTOM),
//Set the content of the popup.
content(customView)
//Optionally, hide the close button of the popup.
//, closeButton(false)
);
//Open the popup.
popup.open();
//Return a boolean indicating if event should be consumed or continue bubble up.
return false;
});
```
::: zone-end
::: zone pivot="programming-language-kotlin"
```kotlin
//Create a popup and add it to the map.
val popup = Popup()
map.popups.add(popup)
map.events.add(OnFeatureClick { feature: List<Feature> ->
//Get the first feature and it's properties.
val f = feature[0]
val props = f.properties()
//Retrieve the custom layout for the popup.
val customView: View = LayoutInflater.from(this).inflate(R.layout.popup_text, null)
//Access the text view within the custom view and set the text to the title property of the feature.
val tv: TextView = customView.findViewById(R.id.message)
tv.text = props!!["title"].asString
//Get the coordinates from the clicked feature and create a position object.
val c: List<Double> = (f.geometry() as Point?).coordinates()
val pos = Position(c[0], c[1])
//Set the options on the popup.
popup.setOptions(
//Set the popups position.
position(pos),
//Set the anchor point of the popup content.
anchor(AnchorType.BOTTOM),
//Set the content of the popup.
content(customView)
//Optionally, hide the close button of the popup.
//, closeButton(false)
)
//Open the popup.
popup.open()
//Return a boolean indicating if event should be consumed or continue bubble up.
return false
})
```
::: zone-end
Aşağıdaki ekran yakalama, Özellikler tıklandığında açılan pencereleri gösterir ve taşırken haritada belirtilen konumlarına tutturulduğu sırada görünür.

## <a name="next-steps"></a>Sonraki adımlar
Haritanızda daha fazla veri eklemek için:
> [!div class="nextstepaction"]
> [Eşleme olaylarına tepki verme](android-map-events.md)
> [!div class="nextstepaction"]
> [Veri kaynağı oluşturma](create-data-source-android-sdk.md)
> [!div class="nextstepaction"]
> [Sembol katmanı ekleme](how-to-add-symbol-to-android-map.md)
> [!div class="nextstepaction"]
> [Baloncuk katmanı ekleme](map-add-bubble-layer-android.md)
> [!div class="nextstepaction"]
> [Çizgi katmanı ekleme](android-map-add-line-layer.md)
> [!div class="nextstepaction"]
> [Çokgen katmanı ekleme](how-to-add-shapes-to-android-map.md)
| 40.130719 | 843 | 0.747638 | tur_Latn | 0.979369 |
db7fc9f81638fe1aa0b867857c17f8bcfe348144 | 12,397 | md | Markdown | dir3/DOCUMENTATION.md | aturfah/docstring_builder | dc7632b907d7324932a9d3041d1673f827d6010f | [
"MIT"
] | null | null | null | dir3/DOCUMENTATION.md | aturfah/docstring_builder | dc7632b907d7324932a9d3041d1673f827d6010f | [
"MIT"
] | null | null | null | dir3/DOCUMENTATION.md | aturfah/docstring_builder | dc7632b907d7324932a9d3041d1673f827d6010f | [
"MIT"
] | null | null | null | # Module: `dir3`
## File: `__init__.py`
Module with helpers for PokemonAgent class.
## File: `calculate.py`
Module for Pokemon Helpers calculations.
### Function: `calculate_stat`
Calculate the value for a given pokemon statistic.
#### Description
Formula from https://bulbapedia.bulbagarden.net/wiki/Statistic#Determination_of_stats
#### Arguments:
- base_val
- Type: int
- The pokemon's base statistic value in that statistic.
- ev_val
- Type: int
- The pokemon's effort values in that statistic
- level
- Type: int
- Pokemon's level
#### Returns:
Value for the statistic
### Function: `calculate_hp_stat`
Calculate the value for a pokemon's Hit Points statistic.
#### Description
Formula from https://bulbapedia.bulbagarden.net/wiki/Statistic#Determination_of_stats
#### Arguments:
- base_hp
- Type: int
- Base HP statistic.
- ev_val
- Type: int
- Pokemon's effort values in hitpoints.
- level
- Type: int
- Pokemon's level
#### Returns:
Maximum hitpoints for the pokemon.
### Function: `calculate_spe_range`
Calculate the range for a pokemon's speed.
#### Arguments:
- pokmeon_name
- Type: str
- The name of the pokemon for whom the range is being calculated.
#### Returns:
Tuple win min/max speed for this Pokemon
### Function: `generate_all_ev_combinations`
Generate all possible stat investment combinations.
#### Arguments:
_None_
#### Returns:
_None_
### Function: `calc_boost_factor`
Calculate the multiplicative modifier for a pokemon's stat.
#### Arguments:
- pokemon
- Type: Pokemon
- The pokemon for whom we are calculating.
- stat
- Type: str
- The stat for which we are calculating this for.
#### Returns:
The multiplier to apply to that pokemon's stat.
### Function: `calculate_status_damage`
Calculate the % HP to remove as status damage.
#### Arguments:
- pokemon
- Type: Pokemon or dict
- The pokemon that this damage is calculated for. pokemon.status is None if no status, otherwise one of the _STATUS variables in the config.
#### Returns:
Float value for the % Damage it will take from status this turn.
### Function: `calculate_modifier`
Calculate the damage modifier for an attack.
#### Description
Factors in STAB, and type effectiveness.
#### Arguments:
- move
- Type: dict
- Information on the move being used.
- attacker
- Type: Pokemon
- The pokemon using the attack.
- defender
- Type: Pokemon
- The pokemon that is recieving the attack.
#### Returns:
The multipler to apply to the damage.
### Function: `calculate_damage`
Calculate damage of a move.
#### Arguments:
- move
- Type: dict
- Information on the move being used.
- attacker
- Type: Pokemon
- The pokemon using the attack.
- defender
- Type: Pokemon
- The pokemon that is recieving the attack.
#### Returns:
The damage dealt by this move, as well as a flag whether or not
the attack resulted in a critical hit.
## File: `damage_stats.py`
Class for calculating damage stats for a pokemon.
Based on https://www.smogon.com/smog/issue4/damage_stats
### Function: `boost_modifier`
Calcualte the boost modifier for an attack.
#### Arguments:
- attacker
- Type: dict or Pokemon
- Attacking Pokemon with boosts. Must support [] lookup.
- defender
- Type: dict or Pokemon
- Defending Pokemon with boosts. Must support [] lookup.
#### Returns:
Calculates the ratio of attacking boosts to defending boosts.
### Class: `DamageStatCalc`
Class to estimate damage taken/given.
### Function: `__init__`
Initialize the calculator.
#### Arguments:
_None_
#### Returns:
_None_
### Function: `calculate_range`
Calculate the damage range for a player's attack.
#### Arguments:
- attacker
- Type: dict or Pokemon
- Stats and boosts for attacking Pokemon. Must support [] lookup.
- defender
- Type: dict or Pokemon
- Stats and boosts for defending Pokemon. Must support [] lookup.
- move
- Type: dict
- Dictionary with attacking move's data
- params
- Type: dict
- Dictionary with three required keys, 'atk' and 'def', and 'hp' with the kwargs for the estimate_dmg_val calculations.
#### Returns:
Tuple of damage range possible in the form (min, max)
### Function: `estimate_dmg_val`
Estimate the value of a damage_statistic.
#### Arguments:
- stat_val
- Type: int
- The pokemon's base value for this statistic.
- is_hp
- Type: bool
- Whether or not we are calculating the HP statisitc.
- is_atk
- Type: bool
- Whether or not we are calculating an Attack statistic.
- max_evs
- Type: bool
- Whether or not this stat has the maximum number of EVs.
- positive_nature
- Type: bool
- Whether or not this stat has a positive nature associated with it.
#### Returns:
Calculated Damage Statistic for the stat in question.
### Function: `find_closest_level`
Find the closest value in the keys to this number.
#### Description
Rounds down, so 215 mathces to 200.
#### Arguments:
- number
- Type: int
- The number we are looking for a match for.
#### Returns:
Tuple of closest stat value, and the difference.
### Function: `build_stats`
Build the dictionary for the stat numbers.
#### Arguments:
_None_
#### Returns:
_None_
## File: `pkmn_player_gamestate.py`
Class defining an Engine's Game State.
### Function: `contains_switch`
Determine if switching info contains Switch information.
#### Arguments:
- turn_info
- Type: list
- List of event that happened that turn.
#### Returns:
Boolean whether or not a switch happened that turn.
### Class: `PokemonPlayerGameState`
Representation of a player's internal game state.
### Function: `__init__`
Initialize this player's internal game state.
#### Arguments:
_None_
#### Returns:
_None_
### Function: `reset_gamestates`
Reset gamestate values for a new battle.
#### Arguments:
_None_
#### Returns:
_None_
### Function: `init_opp_gamestate`
Initialize the investment data for the opponent's team.
#### Arguments:
- opp_team
- Type: list
- List with the opponent's Pokemon.
- opp_active
- Type: Pokemon
- Opponent's active Pokemon.
#### Returns:
_None_
### Function: `update_gamestate`
Update internal gamestate for self.
#### Arguments:
- my_gamestate
- Type: dict
- PokemonEngine representation of player's position. Should have "active" and "team" keys.
- opp_gamestate
- Type: dict
- PokemonEngine representation of opponent's position. Only % HP should be viewable, and has "active" and "team" keys.
#### Returns:
_None_
### Function: `new_info`
Get new info for opponent's game_state.
#### Description
Assumes Species Clause is in effect.
#### Arguments:
- turn_info
- Type: list
- What happened on that turn, who took what damage.
- my_id
- Type: str
- Name corresponding to the "attacker" or "defender" values of this dict. To know which values the method should be looking at in turn_info.
#### Returns:
_None_
### Function: `update_speed_inference`
Infer speed information from the turn info.
#### Arguments:
- turn_info
- Type: dict
- Information on a single event of that turn.
- my_id
- Type: str
- Name corresponding to the "attacker" or "defender" values of this dict.
#### Returns:
_None_
### Function: `results_attacking`
Generate possible results for when we are attacking.
#### Arguments:
- turn_info
- Type: dict
- Information on a single event of that turn.
#### Returns:
Two lists contianing T/F values of opponent's defense investment.
### Function: `results_defending`
Generate possible results for when we are defending.
#### Arguments:
- turn_info
- Type: dict
- Information on a single event of that turn.
#### Returns:
Two lists contianing T/F values of opponent's defense investment.
### Function: `valid_results_atk`
Decide which of potential the potential results are valid given damage dealt.
#### Arguments:
- poke_name
- Type: str
- Name of the pokemon in question.
- stat
- Type: str
- Name of the statistic that this move's damage is calculated from, defense or special defense.
- dmg_pct
- Type: float
- How much % damage was done this turn.
- results
- Type: list
- Possible defense investment combinations.
- combinations
- Type: list
- T/F values corresponding to the defense investment combinations.
#### Returns:
Subset of the results that are possible given the damage dealt.
### Function: `valid_results_def`
Decide which of potential the potential results are valid given damage dealt.
#### Arguments:
- poke_name
- Type: str
- Name of the pokemon in question.
- stat
- Type: str
- Name of the statistic that this move's damage is calculated from, defense or special defense.
- dmg_pct
- Type: float
- How much % damage was done this turn.
- results
- Type: list
- Possible defense investment combinations.
- combinations
- Type: list
- T/F values corresponding to the defense investment combinations.
#### Returns:
Subset of the results that are possible given the damage dealt.
### Function: `update_atk_inference`
Update the opponent's defense investment information.
#### Arguments:
- turn_info
- Type: dict
- Information on damage dealt this turn.
- results
- Type: list
- Possible defense investment combinations.
- combinations
- Type: list
- T/F values corresponding to the defense investment combinations.
#### Returns:
_None_
### Function: `update_def_inference`
Update the opponent's attack investment information.
#### Arguments:
- turn_info
- Type: dict
- Information on damage dealt this turn.
- results
- Type: list
- Possible defense investment combinations.
- combinations
- Type: list
- T/F values corresponding to the defense investment combinations.
#### Returns:
_None_
### Function: `__getitem__`
Define [] lookup on this object.
#### Arguments:
- key
- Type: str
- Attribute of this object to get.
#### Returns:
Attribute of this object at the key.
### Function: `to_json`
Convert this instance to something the interface can use.
#### Arguments:
_None_
#### Returns:
_None_
## File: `pokemon.py`
Class for a pokemon used by a PokemonAgent.
### Function: `default_boosts`
Generate dictionary with default boost levels.
#### Arguments:
_None_
#### Returns:
_None_
### Function: `default_team_spinda`
Generate a Spinda for these players.
#### Arguments:
_None_
#### Returns:
_None_
### Function: `default_team_floatzel`
Generate a FLoatzel for the player.
#### Arguments:
_None_
#### Returns:
_None_
### Function: `default_team_ivysaur`
Generate an Ivysaur for these players.
#### Arguments:
_None_
#### Returns:
_None_
### Class: `Pokemon`
The pokemon class.
### Function: `__init__`
Initialize a pokemon.
#### Description
Make a new instance of species \<name\> with moves \<moves\> at level \<level\> with nature \<quirky\>
#### Arguments:
- name
- Type: str
- String corresponding to value in config.POKEMON_DATA
- moves
- Type: list
- List of moves corresponding to moves in config.MOVE_DATA
- level
- Type: int
- Level of pokemon to be used in calculations
- nature
- Type: str
- Pokemon nature to be used to modify stat values.
- evs
- Type: dict
- Dictionary of key/value pairs with EVs for each stat. Key should be stat code, value should be number of EVs.
#### Returns:
_None_
### Function: `set_stats`
Calculate stats for the pokemon.
#### Arguments:
- nature
- Type: str
- Nature of the pokemon to modify stats.
- evs
- Type: dict
- Dictionary with EVs for this Pokemon.
#### Returns:
_None_
### Function: `effective_stat`
Calculate this pokemon's effective stat after boosts.
#### Arguments:
- stat
- Type: str
- Statistic to get the value for.
#### Returns:
Pokemon's stat factoring in boosts and status effects.
### Function: `get`
Extend __getitem__ to have defaults.
#### Arguments:
- key
- Type: str
- Attribute of this object to get. default: What to return if there is no such key.
#### Returns:
Value of this object's key, if it exists. If not, return value
specified in default.
### Function: `__getitem__`
Define [] operating on this object.
#### Arguments:
- key
- Type: str
- Attribute of this object to get.
#### Returns:
Value of this object's key.
### Function: `__contains__`
Define 'in' operator on this object.
#### Arguments:
- key
- Type: str
- Attribute to theck this object for.
#### Returns:
True if this object has 'key' as an attribute.
### Function: `to_json`
Return JSON serializable version of self.
#### Arguments:
_None_
#### Returns:
_None_
| 25.197154 | 142 | 0.718561 | eng_Latn | 0.951531 |
db8110905557c31b195d3325c6321fb3469ee3f7 | 810 | md | Markdown | _posts/2015-11-29-Landa-Designs-LE163.md | gownthlala/gownthlala.github.io | f86dbdf6fa0e98646ca4cb470fa2928a56e04eec | [
"MIT"
] | null | null | null | _posts/2015-11-29-Landa-Designs-LE163.md | gownthlala/gownthlala.github.io | f86dbdf6fa0e98646ca4cb470fa2928a56e04eec | [
"MIT"
] | null | null | null | _posts/2015-11-29-Landa-Designs-LE163.md | gownthlala/gownthlala.github.io | f86dbdf6fa0e98646ca4cb470fa2928a56e04eec | [
"MIT"
] | null | null | null | ---
layout: post
date: 2015-11-29
title: "Landa Designs LE163"
category: Landa Designs
tags: [Landa Designs]
---
### Landa Designs LE163
Just **$419.99**
###
<table><tr><td>BRANDS</td><td>Landa Designs</td></tr></table>
<a href="https://www.readybrides.com/en/landa-designs/60511-landa-designs-le163.html"><img src="//img.readybrides.com/140927/landa-designs-le163.jpg" alt="Landa Designs LE163" style="width:100%;" /></a>
<!-- break --><a href="https://www.readybrides.com/en/landa-designs/60511-landa-designs-le163.html"><img src="//img.readybrides.com/140926/landa-designs-le163.jpg" alt="Landa Designs LE163" style="width:100%;" /></a>
Buy it: [https://www.readybrides.com/en/landa-designs/60511-landa-designs-le163.html](https://www.readybrides.com/en/landa-designs/60511-landa-designs-le163.html)
| 50.625 | 216 | 0.716049 | yue_Hant | 0.431683 |
db8116b651702085886189af0cf12a8b885149ff | 2,636 | md | Markdown | CHANGELOG.md | filippoliverani/solidus_sitemap | 892a920710ab2408d93d4fcc27cad8f6112757a9 | [
"BSD-3-Clause"
] | 10 | 2017-03-03T06:29:39.000Z | 2022-02-14T11:17:43.000Z | CHANGELOG.md | filippoliverani/solidus_sitemap | 892a920710ab2408d93d4fcc27cad8f6112757a9 | [
"BSD-3-Clause"
] | 27 | 2016-05-09T19:37:27.000Z | 2021-09-03T01:25:22.000Z | CHANGELOG.md | filippoliverani/solidus_sitemap | 892a920710ab2408d93d4fcc27cad8f6112757a9 | [
"BSD-3-Clause"
] | 22 | 2016-05-09T19:09:10.000Z | 2021-03-14T05:24:28.000Z | # Change Log
## [Unreleased](https://github.com/solidusio-contrib/solidus_sitemap/tree/HEAD)
[Full Changelog](https://github.com/solidusio-contrib/solidus_sitemap/compare/v1.0.0...HEAD)
**Closed issues:**
- undefined method `active` for \#\<Class\> in solidus\_defaults.rb:26 [\#4](https://github.com/solidusio-contrib/solidus_sitemap/issues/4)
**Merged pull requests:**
- Replace TravisCI's build status badge with CircleCI's one [\#17](https://github.com/solidusio-contrib/solidus_sitemap/pull/17) ([MinasMazar](https://github.com/MinasMazar))
- Add support for Solidus CI [\#16](https://github.com/solidusio-contrib/solidus_sitemap/pull/16) ([MinasMazar](https://github.com/MinasMazar))
- Refactor SolidusDefaults\#add\_pages via \#add\_page [\#15](https://github.com/solidusio-contrib/solidus_sitemap/pull/15) ([MinasMazar](https://github.com/MinasMazar))
- Replace `::each` with `::find\_each` for memory usage [\#13](https://github.com/solidusio-contrib/solidus_sitemap/pull/13) ([spaghetticode](https://github.com/spaghetticode))
- Extension maintenance [\#12](https://github.com/solidusio-contrib/solidus_sitemap/pull/12) ([aitbw](https://github.com/aitbw))
- Fix specs [\#11](https://github.com/solidusio-contrib/solidus_sitemap/pull/11) ([kennyadsl](https://github.com/kennyadsl))
- Remove versions past EOL from .travis.yml [\#9](https://github.com/solidusio-contrib/solidus_sitemap/pull/9) ([jacobherrington](https://github.com/jacobherrington))
- Add Solidus 2.7 to .travis.yml [\#8](https://github.com/solidusio-contrib/solidus_sitemap/pull/8) ([jacobherrington](https://github.com/jacobherrington))
- Update sitemap\_generator to support Ruby 2.5 [\#7](https://github.com/solidusio-contrib/solidus_sitemap/pull/7) ([mtylty](https://github.com/mtylty))
- Replace depracted active scope [\#6](https://github.com/solidusio-contrib/solidus_sitemap/pull/6) ([dankmitchell](https://github.com/dankmitchell))
## [v1.0.0](https://github.com/solidusio-contrib/solidus_sitemap/tree/v1.0.0) (2016-09-22)
**Merged pull requests:**
- Add support for Solidus 2.0 and Rails 5 [\#3](https://github.com/solidusio-contrib/solidus_sitemap/pull/3) ([jhawthorn](https://github.com/jhawthorn))
- Updates for move to solidusio-contrib [\#2](https://github.com/solidusio-contrib/solidus_sitemap/pull/2) ([jhawthorn](https://github.com/jhawthorn))
- Rename folder to make generator work [\#1](https://github.com/solidusio-contrib/solidus_sitemap/pull/1) ([ericsaupe](https://github.com/ericsaupe))
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* | 79.878788 | 176 | 0.755311 | yue_Hant | 0.474858 |
db814c3e908a779a0b53a4f255dc0d668373f696 | 57 | md | Markdown | README.md | shadowcompiler/boredapp | cb4a314a2589673dd16757f679a8716e6ebd65d9 | [
"MIT"
] | null | null | null | README.md | shadowcompiler/boredapp | cb4a314a2589673dd16757f679a8716e6ebd65d9 | [
"MIT"
] | null | null | null | README.md | shadowcompiler/boredapp | cb4a314a2589673dd16757f679a8716e6ebd65d9 | [
"MIT"
] | null | null | null | # boredapp
Activity suggestion app based on boredapi.com
| 19 | 45 | 0.824561 | eng_Latn | 0.971762 |
db817af0905622d72f253bfe39739e494f3ee4b7 | 4,448 | md | Markdown | AndrewDavidoffDocset0426213909/articles/MS-PST/8773374f-8495-44fe-9614-6c4f60418489.md | AndrewDavidoff/AndrewDavidoffRepo0426213909 | 4ee7b3dbc81782000a5158731fcfdf6aeef7d397 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | AndrewDavidoffDocset0426213909/articles/MS-PST/8773374f-8495-44fe-9614-6c4f60418489.md | AndrewDavidoff/AndrewDavidoffRepo0426213909 | 4ee7b3dbc81782000a5158731fcfdf6aeef7d397 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | AndrewDavidoffDocset0426213909/articles/MS-PST/8773374f-8495-44fe-9614-6c4f60418489.md | AndrewDavidoff/AndrewDavidoffRepo0426213909 | 4ee7b3dbc81782000a5158731fcfdf6aeef7d397 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | <html dir="LTR" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tool="http://www.microsoft.com/tooltip">
<head>
<meta http-equiv="Content-Type" content="text/html; CHARSET=utf-8"></meta>
<meta name="save" content="history"></meta>
<title>3.8 Sample Heap-on-Node (HN)</title>
<xml>
<mshelp:toctitle title="3.8 Sample Heap-on-Node (HN)"></mshelp:toctitle>
<mshelp:rltitle title="[MS-PST]: Sample Heap-on-Node (HN)"></mshelp:rltitle>
<mshelp:keyword index="A" term="8773374f-8495-44fe-9614-6c4f60418489"></mshelp:keyword>
<mshelp:attr name="DCSext.ContentType" value="open specification"></mshelp:attr>
<mshelp:attr name="AssetID" value="8773374f-8495-44fe-9614-6c4f60418489"></mshelp:attr>
<mshelp:attr name="TopicType" value="kbRef"></mshelp:attr>
<mshelp:attr name="DCSext.Title" value="[MS-PST]: Sample Heap-on-Node (HN)" />
</xml>
</head>
<body>
<div id="header">
<h1 class="heading">3.8 Sample Heap-on-Node (HN)</h1>
</div>
<div id="mainSection">
<div id="mainBody">
<div id="allHistory" class="saveHistory"></div>
<div id="sectionSection0" class="section" name="collapseableSection">
<p>The following is the binary dump of an HN (section <a href="77ce49a3-3772-4d8d-bb2c-2f7520a238a6.htm">2.3.1</a>). The first 12 bytes
(<code>EC 00 EC BC 20 00 00 00-00 00 00 00</code>) indicate
the HNHDR structure (section <a href="8e4ae05c-3c24-4103-b7e5-ffef6f244834.htm">2.3.1.2</a>),
which contain information about the HN. The last 22 bytes (shown following)
represent the HNPAGEMAP structure (section <a href="291653c0-b347-4c5b-ba41-85ad780b4ba4.htm">2.3.1.5</a>), which contains
the information about each allocated heap block. </p>
<dl>
<dd>
<div><pre> 08 00 00 00 *.....}.pb.......*
00000000000048F0 0C 00 14 00 6C 00 7C 00-8C 00 A4 00 BC 00 D4 00 *....l.|.........*
0000000000004900 EC 00 *
</pre></div>
</dd></dl>
<p>In this particular example, the signature indicates an HN (<b>bSig</b>=0xEC)
which ultimately contains a PC (<b>bClientSig</b>=0xBC (<b>bTypePC</b>)). The
metadata of the next-level client is stored in HID 0x20 (<b>hidUserRoot</b>=0x00000020).
The HNPAGEMAP structure can be found at offset 0xEC with respect to the
beginning of the HN (<b>ibHnpm</b>=0x00EC).</p>
<p>The HNPAGEMAP indicate that the HN has 8 allocations (<b>cAlloc</b>=8),
and the starting offsets of the allocations (with respect to the beginning of
the HN) are: 0x0C, 0x14, 0x6C, 0x7C, 0x8C, 0xA4, 0xBC, 0xD4, respectively. And
finally, the next allocation starts at offset 0xEC.</p>
<dl>
<dd>
<div><pre>
0000000000004800 EC 00 EC BC 20 00 00 00-00 00 00 00 B5 02 06 00
0000000000004810 40 00 00 00 34 0E 02 01-A0 00 00 00 38 0E 03 00 *@...4.......8...*
0000000000004820 00 00 00 00 F9 0F 02 01-60 00 00 00 01 30 1F 00 *........`....0..*
0000000000004830 80 00 00 00 DF 35 03 00-89 00 00 00 E0 35 02 01 *.....5.......5..*
0000000000004840 C0 00 00 00 E3 35 02 01-00 01 00 00 E7 35 02 01 *.....5.......5..*
0000000000004850 E0 00 00 00 33 66 0B 00-01 00 00 00 FA 66 03 00 *....3f.......f..*
0000000000004860 0D 00 0E 00 FF 67 03 00-00 00 00 00 22 9D B5 0A *.....g......"...*
0000000000004870 DC D9 94 43 85 DE 90 AE-B0 7D 12 70 55 00 4E 00 *...C.....}.pU.N.*
0000000000004880 49 00 43 00 4F 00 44 00-45 00 31 00 01 00 00 00 *I.C.O.D.E.1.....*
0000000000004890 F5 5E F6 66 95 69 CC 4C-83 D1 D8 73 98 99 02 85 *.^.f.i.L...s....*
00000000000048A0 01 00 00 00 00 00 00 00-22 9D B5 0A DC D9 94 43 *........"......C*
00000000000048B0 85 DE 90 AE B0 7D 12 70-22 80 00 00 00 00 00 00 *.....}.p".......*
00000000000048C0 22 9D B5 0A DC D9 94 43-85 DE 90 AE B0 7D 12 70 *"......C.....}.p*
00000000000048D0 42 80 00 00 00 00 00 00-22 9D B5 0A DC D9 94 43 *B......."......C*
00000000000048E0 85 DE 90 AE B0 7D 12 70-62 80 00 00 08 00 00 00 *.....}.pb.......*
00000000000048F0 0C 00 14 00 6C 00 7C 00-8C 00 A4 00 BC 00 D4 00 *....l.|.........*
0000000000004900 EC 00 *
</pre></div>
</dd></dl>
</div>
</div>
</div>
</body>
</html> | 55.6 | 217 | 0.615333 | yue_Hant | 0.401759 |
db81d27f1de6fc653847e9dbf735e817ab305677 | 1,212 | md | Markdown | desktop-src/SysMon/counters-count.md | velden/win32 | 94b05f07dccf18d4b1dbca13b19fd365a0c7eedc | [
"CC-BY-4.0",
"MIT"
] | 552 | 2019-08-20T00:08:40.000Z | 2022-03-30T18:25:35.000Z | desktop-src/SysMon/counters-count.md | velden/win32 | 94b05f07dccf18d4b1dbca13b19fd365a0c7eedc | [
"CC-BY-4.0",
"MIT"
] | 1,143 | 2019-08-21T20:17:47.000Z | 2022-03-31T20:24:39.000Z | desktop-src/SysMon/counters-count.md | velden/win32 | 94b05f07dccf18d4b1dbca13b19fd365a0c7eedc | [
"CC-BY-4.0",
"MIT"
] | 1,287 | 2019-08-20T05:37:48.000Z | 2022-03-31T20:22:06.000Z | ---
title: Counters.Count property
description: Retrieves the number of CounterItem instances in the collection.
ms.assetid: fb6aed19-e24d-4e29-bda8-877f8f481b62
keywords:
- Count property SysMon
- Count property SysMon , Counters class
- Counters class SysMon , Count property
topic_type:
- apiref
api_name:
- Counters.Count
api_location:
- Sysmon.ocx
api_type:
- COM
ms.topic: reference
ms.date: 05/31/2018
---
# Counters.Count property
Retrieves the number of [**CounterItem**](counteritem.md) instances in the collection.
This property is read-only.
## Syntax
```VB
Property Count As Long
```
## Property value
Number of counters in the collection.
## Requirements
| Requirement | Value |
|-------------------------------------|---------------------------------------------------------------------------------------|
| Minimum supported client<br/> | Windows 2000 Professional \[desktop apps only\]<br/> |
| Minimum supported server<br/> | Windows 2000 Server \[desktop apps only\]<br/> |
| DLL<br/> | <dl> <dt>Sysmon.ocx</dt> </dl> |
## See also
<dl> <dt>
[**Counters**](counters.md)
</dt> </dl>
| 18.089552 | 127 | 0.585809 | eng_Latn | 0.735152 |
db82a6e6a5ff0649e72afa02fefd3967e5ddc060 | 56 | md | Markdown | README.md | nopdotcom/docker-git-cache | ccff0c83aad14c184a2a5d39769650dad3d7070c | [
"MIT"
] | null | null | null | README.md | nopdotcom/docker-git-cache | ccff0c83aad14c184a2a5d39769650dad3d7070c | [
"MIT"
] | null | null | null | README.md | nopdotcom/docker-git-cache | ccff0c83aad14c184a2a5d39769650dad3d7070c | [
"MIT"
] | null | null | null | # docker-git-cache
git-cache-http-server in a container
| 18.666667 | 36 | 0.785714 | deu_Latn | 0.297602 |
db82be3ca6109c4290608b5e4d7633effd1b72c2 | 63 | md | Markdown | README.md | osgeo-forge/mrsid-sdk-feedstock | 8195a1b666844784d18318812dfc8521821ad303 | [
"BSD-3-Clause"
] | null | null | null | README.md | osgeo-forge/mrsid-sdk-feedstock | 8195a1b666844784d18318812dfc8521821ad303 | [
"BSD-3-Clause"
] | null | null | null | README.md | osgeo-forge/mrsid-sdk-feedstock | 8195a1b666844784d18318812dfc8521821ad303 | [
"BSD-3-Clause"
] | null | null | null | # mrsid-sdk-feedstock
A conda-smithy repository for MrSID SDK.
| 21 | 40 | 0.793651 | eng_Latn | 0.681384 |
db831da0c1f1c9295417594c68bfba9d0f43c37c | 96 | md | Markdown | README.md | JackyPJB/cloud-demo | 13908dcd9097245bdf29de7d1497560dcceeb2aa | [
"Apache-2.0"
] | null | null | null | README.md | JackyPJB/cloud-demo | 13908dcd9097245bdf29de7d1497560dcceeb2aa | [
"Apache-2.0"
] | null | null | null | README.md | JackyPJB/cloud-demo | 13908dcd9097245bdf29de7d1497560dcceeb2aa | [
"Apache-2.0"
] | null | null | null | # cloud-demo
[史上最简单的 SpringCloud 教程 | 终章](https://blog.csdn.net/forezp/article/details/70148833) | 48 | 83 | 0.770833 | kor_Hang | 0.385741 |
db838294301cbcfd1f87fbf202918cb5ff431b83 | 2,813 | md | Markdown | README.md | brenoslivio/MusicBot | 7fddbec9390959be88de326d0ea22f2e98d3f7fa | [
"MIT"
] | null | null | null | README.md | brenoslivio/MusicBot | 7fddbec9390959be88de326d0ea22f2e98d3f7fa | [
"MIT"
] | null | null | null | README.md | brenoslivio/MusicBot | 7fddbec9390959be88de326d0ea22f2e98d3f7fa | [
"MIT"
] | null | null | null | <!-- PROJECT LOGO -->
<br />
<p align="center">
<h3 align="center">MusicBot</h3>
<p align="center">
A bot that creates music using evolutionary algorithm's concepts.
<br />
<br />
<strong> Authors: </strong> Breno Lívio, <a href="https://github.com/brenoslivio/"> brenoslivio </a>
<br />
Lucas Camolezi, <a href="https://github.com/camolezi"> camolezi </a>
<br />
Matheus Victal, <a href="https://github.com/matheusvictal"> matheusvictal </a>
<br />
<br />
<a href="https://github.com/brenoslivio/MusicBot/"><strong>Explore the docs »</strong></a>
</p>
</p>
<!-- TABLE OF CONTENTS -->
<summary><h2 style="display: inline-block">Table of Contents</h2></summary>
<ol>
<li>
<a href="#about-the-project">About The Project</a>
</li>
<li>
<a href="#getting-started">Getting Started</a>
<ul>
<li><a href="#prerequisites">Prerequisites</a></li>
<li><a href="#installation">Installation</a></li>
</ul>
</li>
<li><a href="#license">License</a></li>
<li><a href="#acknowledgements">Acknowledgements</a></li>
</ol>
<!-- ABOUT THE PROJECT -->
## About The Project
MusicBot was a software project for the course SSC0713 - Evolutionary systems applied to robotics, at ICMC - USP, 2nd semester of 2017. The subjects treated were:
'Introduction to systemic view. Types of evolutionary systems. Systems modeling techniques and direct, indirect and mixed representations. Major evolutionary algorithms in the literature. Real-world applications (financial market, bioinformatics, task scheduling and production planning in industries) and robotic (automated synthesis system as antennas, controllers, test and verification of microprocessors, signal processing, computer vision and navigation robots).'
For more information about the course check [here](https://uspdigital.usp.br/jupiterweb/obterDisciplina?sgldis=SSC0713).
The bot generates music based on the concepts of dissonance/consonance and cent scale to produce 'pleasant' music for the ears. For more details check the document [here](https://github.com/brenoslivio/MusicBot/blob/master/AG%20M%C3%BAsica.pdf).
<!-- GETTING STARTED -->
## Getting Started
To get a local copy up and running follow these simple steps.
### Prerequisites
Java 8 or greater, Eclipse IDE.
### Installation
1. Clone the repo
```sh
git clone https://github.com/brenoslivio/MusicBot.git
```
2. Open the project with Eclipse, compiling the software. You can obviously compile directly, or with other IDE, but the project is in a Eclipse IDE folder.
<!-- LICENSE -->
## License
Distributed under the MIT License. See `LICENSE` for more information.
<!-- ACKNOWLEDGEMENTS -->
## Acknowledgements
* [JúpiterWeb](https://uspdigital.usp.br/jupiterweb/obterDisciplina?sgldis=SSC0713)
| 35.607595 | 469 | 0.710274 | eng_Latn | 0.657017 |
db8396d4a9e36de4b663c10ba71c2381bf6e00d5 | 1,059 | md | Markdown | README.md | gahjelle/advent-of-code-ocr | 4ac81ffd21d590b296ee5d052f03a72d6eceaf2e | [
"MIT"
] | null | null | null | README.md | gahjelle/advent-of-code-ocr | 4ac81ffd21d590b296ee5d052f03a72d6eceaf2e | [
"MIT"
] | null | null | null | README.md | gahjelle/advent-of-code-ocr | 4ac81ffd21d590b296ee5d052f03a72d6eceaf2e | [
"MIT"
] | null | null | null | # Advent of Code® OCR
This Python module helps with converting Advent of Code ASCII art letters into plain characters. At the moment, it only supports 6-pixel-tall characters as seen in 2016 Day 8, 2019 Days 8 and 11, and 2021 Day 13.
Support for 10-pixel-tall characters (2018 Day 10) is coming soon.
Put simply, it converts this to `ABC`:
```txt
██ ███ ██
█ █ █ █ █ █
█ █ ███ █
████ █ █ █
█ █ █ █ █ █
█ █ ███ ██
```
# Installation
This module can be installed from PyPI:
```sh
$ pip install advent-of-code-ocr
```
# Usage
Using this module is pretty easy. By default, this module recognizes `#` as a filled pixel and `.` as an empty pixel. However, you can change this using the `fill_pixel` and `empty_pixel` keywork arguments respectively.
```py
from advent_of_code_ocr import convert_6
print(convert_6(".##.\n#..#\n#..#\n####\n#..#\n#..#"))
# A
print(convert_6(" $$ \n$ $\n$ $\n$$$$\n$ $\n$ $", fill_pixel="$", empty_pixel=" "))
# A
```
---
Advent of Code is a registered trademark of Eric K Wastl in the United States.
| 24.627907 | 219 | 0.637394 | eng_Latn | 0.975794 |
db85bfad28d7c14bc5090e00c3a8c2c20b70800a | 145 | md | Markdown | src/__tests__/fixtures/unfoldingWord/en_tq/jdg/19/06.md | unfoldingWord/content-checker | 7b4ca10b94b834d2795ec46c243318089cc9110e | [
"MIT"
] | null | null | null | src/__tests__/fixtures/unfoldingWord/en_tq/jdg/19/06.md | unfoldingWord/content-checker | 7b4ca10b94b834d2795ec46c243318089cc9110e | [
"MIT"
] | 226 | 2020-09-09T21:56:14.000Z | 2022-03-26T18:09:53.000Z | src/__tests__/fixtures/unfoldingWord/en_tq/jdg/19/06.md | unfoldingWord/content-checker | 7b4ca10b94b834d2795ec46c243318089cc9110e | [
"MIT"
] | 1 | 2022-01-10T21:47:07.000Z | 2022-01-10T21:47:07.000Z | # Although the Levite intended to go home, what did his father-in-law want him to do?
His father-in-law wanted him to stay and spend the night.
| 36.25 | 85 | 0.758621 | eng_Latn | 1.000004 |
db8673e28b61615c1b280d17936c7d70bb8e964c | 22,029 | md | Markdown | README.md | YingjieQiao/WebScraping | c5045e16e1ad2ac9dd85330cbacf9aa4abf08251 | [
"MIT"
] | null | null | null | README.md | YingjieQiao/WebScraping | c5045e16e1ad2ac9dd85330cbacf9aa4abf08251 | [
"MIT"
] | null | null | null | README.md | YingjieQiao/WebScraping | c5045e16e1ad2ac9dd85330cbacf9aa4abf08251 | [
"MIT"
] | null | null | null | # WebScraping
This is my web scraping learning notes. Preparation work for [a UROP project](https://github.com/YingjieQiao/WebScraping/tree/master/UROPcode).
With reference to "Web Scraping with Python" by Ryan Mitchell, "Automate Boring Stuff with Python" by Al Sweigart and Coursera course "Using Python to Access Web Data" by Prof. Charles Severance. <br /><br /><br />
<br />
## Basic data retrieval
<br />
`webbrowser.open(url, new=0, autoraise=True)` is used to open a website in a browser. `new=0` opens the page in the same browser window if possible, `new=1` opens the page in a new window, `new=2` opens the page in a new tab.
`webbrowser.open('https://www.google.com/maps/place/' + address)`
<br />
Sample code from the book, to get urls on a webpage.
```
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("https://en.wikipedia.org/wiki/Kevin_Bacon/")
bsObj = BeautifulSoup(html, features="html.parser")
for link in bsObj.findAll("a"):
if 'href' in link.attrs:
print(link.attrs['href'])
```
The bsObj is the html source code of the original website.
The links on most webpages exist in this format: <br />
<a href="https://someurl.com" sometag </a> <br />
I wrote a piece of code to retrieve title and corresonding url link on [hacker news](https://news.ycombinator.com/) as a practice. [getTitles.py](https://github.com/YingjieQiao/WebScraping/blob/master/Practices/getTitles.py)
```
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("https://news.ycombinator.com/").read()
bsObj = BeautifulSoup(html, features="html.parser")
for link in bsObj.findAll('td',{'class':'title'},{'class':'storylink'}):
print(link.text)
```
The link in the code above is a `tag` object and the `.text` gets all the child strings and return concatenated using the given separator. Return type of `.text` is unicode object.
[Here](https://github.com/YingjieQiao/WebScraping/blob/master/Practices/tagCount.py) is another piece of code I've written for practice. Based on the data from the first 2 pages of https://stackoverflow.com/tags?page=1&tab=popular, it produces a graph with languages on the x-axis and number of tags on the y-axis. In my current approach, I used 2 loops, i.e., created 2 BeautifulSoup objects to get 2 arrays.
<br />
Use `for tag in bsObj.findAll('a',{'class':'post-tag'}):` to retrieve the following html (don't have to create the `bs` object layer by layer): <br />
`<a href="/questions/tagged/java" class="post-tag" title="" rel="tag">java</a>`
Also, I find it easier to locate urls in the html source using the following formats.
 (credit: "Automate Boring Stuff with Python" by Al Sweigart)
I applied such formatting in re-writing the downloading files sample code using `urllib.request.urlretrieve` later.
<br />
## Downloading files
<br />
Use the `request` module to download files.
```
import requests, os, bs4
url = 'http://xkcd.com'
#the downloaded files will be saved in the folder "xkcd" under the same directory as the script
os.makedirs('xkcd', exist_ok=True)
while not url.endswith('#'):
print('Downloading page %s...' % url)
res = requests.get(url) #use get to open a url
res.raise_for_status() #Raises stored HTTPError, if one occurred. i.e., Raise an exception if a request falis.
soup = bs4.BeautifulSoup(res.text) #.text deletes unnecessary html formats
comicElem = soup.select('#comic img')
if comicElem == []:
print('Could not find comic image.')
else:
comicUrl = 'http:' + comicElem[0].get('src')
# Download the image.
print('Downloading image %s...' % (comicUrl))
res = requests.get(comicUrl) #This is the line that downloads the photo. "get" method can be used for downloading.
res.raise_for_status()
imageFile = open(os.path.join('xkcd', os.path.basename(comicUrl)), 'wb')
#"imageFile" is going to be the filename of the downloaded file
for chunk in res.iter_content(100000):
#iterates over the response data.
imageFile.write(chunk)
imageFile.close()
# Get the Prev button's url.
prevLink = soup.select('a[rel="prev"]')[0]
url = 'http://xkcd.com' + prevLink.get('href')
```
<br />
Use `urllib.request.urlretrieve` to download files.
urllib.request.urlretrieve(url, filename=None, reporthook=None, data=None)
The parameter "filename" here is the name of the file on the local drive.
The photo downloading code can also be re-written using `urllib.request.urlretrieve`
```
import os
from bs4 import BeautifulSoup as bs
from urllib.request import urlopen
from urllib.request import urlretrieve
url = 'http://xkcd.com'
os.makedirs('redo', exist_ok=True)
#the downloaded files will be saved in the folder "redo" under the same directory as the script
while not url.endswith('#'):
print('Downloading page %s...' % url)
html = urlopen(url)
soup = bs(html)
comicElem = soup.select('#comic img')
if comicElem == []:
print('Could not find comic image.')
else:
comicUrl = 'http:' + comicElem[0].get('src')
# Download the image.
print('Downloading image %s...' % (comicUrl))
urlretrieve(comicUrl, os.path.join('redo', os.path.basename(comicUrl)))
# Get the Prev button's url.
prevLink = soup.select('a[rel="prev"]')[0]
url = 'http://xkcd.com' + prevLink.get('href')
```
<br />
## Working with PDF
<br />
There are multi 3rd party pdf modules available such as [pdfminer](https://pypi.org/project/pdfminer/), [PyPDF2](https://anaconda.org/conda-forge/pypdf2), etc. I am working with PyPDF2 here.
```
import PyPDF2
pdfFileObj = open('core paper copy.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
pageObj = pdfReader.getPage(0)
print(pdfReader.numPages)
print(pageObj)
print(pageObj.extractText())
```
To extract text from a page, you need to get a `page` object, which represents
a single page of a PDF, from a `PdfFileReader` object. You can get a `Page`
object by calling the `getPage()` method on a `PdfFileReader` object and passing
it the page number of the page you’re interested in — in the given case, 0.
Once you have your Page object, call its extractText() method to return a
string of the page’s text. But the text extraction isn't perfect and there are some undesirable formatting errors.
<br />
Some PDF documents have an encryption feature that will keep them from being read until whoever is opening the document provides a password. To decrypt, use the following:
```
password = "the password of the encryted pdf file, you need to find it out by yourself somehow"
pdfReader.decrypt(password)
```
<br />
PyPDF2’s counterpart to `PdfFileReader` objects is `PdfFileWriter` objects, which
can create new PDF files. But PyPDF2 cannot write arbitrary text to a PDF
like Python can do with plaintext files. Instead, PyPDF2’s PDF-writing capabilities
are limited to copying pages from other PDFs, rotating pages, overlaying
pages, and encrypting files. Also, PyPDF2 doesn’t allow you to directly edit a PDF. Instead, you have to
create a new PDF and then copy content over from an existing document.
The following is the sample code from the book about how to combine 2 existing pdf files into a new one.
```
import PyPDF2
pdf1File = open('file1.pdf', 'rb')
pdf2File = open('file2.pdf', 'rb')
pdf1Reader = PyPDF2.PdfFileReader(pdf1File)
pdf2Reader = PyPDF2.PdfFileReader(pdf2File)
pdfWriter = PyPDF2.PdfFileWriter()
for pageNum in range(pdf1Reader.numPages):
pageObj = pdf1Reader.getPage(pageNum)
pdfWriter.addPage(pageObj)
for pageNum in range(pdf2Reader.numPages):
pageObj = pdf2Reader.getPage(pageNum)
pdfWriter.addPage(pageObj)
pdfOutputFile = open('combined.pdf', 'wb')
pdfWriter.write(pdfOutputFile)
pdfOutputFile.close()
pdf1File.close()
pdf2File.close()
```
PyPDF2 can also overlay the contents of one page over another, which is useful for adding a logo, timestamp, or watermark to a page.
Here is an example of how to add in watermarks using PyPDF2.
```
import PyPDF2
minutesFile = open('meetingminutes.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(minutesFile)
minutesFirstPage = pdfReader.getPage(0)
pdfWatermarkReader = PyPDF2.PdfFileReader(open('watermark.pdf', 'rb'))
minutesFirstPage.mergePage(pdfWatermarkReader.getPage(0))
pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter.addPage(minutesFirstPage)
for pageNum in range(1, pdfReader.numPages):
pageObj = pdfReader.getPage(pageNum)
pdfWriter.addPage(pageObj)
resultPdfFile = open('watermarkedCover.pdf', 'wb')
pdfWriter.write(resultPdfFile)
minutesFile.close()
resultPdfFile.close()
```
[This script](https://github.com/YingjieQiao/WebScraping/blob/master/mergepdf.py) merges many PDF documents into a single PDF file without the first page of each file (cover by default).
## Crawling across the internet
<br />
The sample code to crawl across the whole internet in the book is uploaded [here](https://github.com/YingjieQiao/WebScraping/blob/master/keepCrawling_SampleCode.py).
To crawl on a certain website, only webpages under en.wikipedia.org or ieee.org, for example, modify the regular expression for `href`. An example function is commented at the end of the sample code file above.
<br />
## Data cleaning
<br />
Use regular expressions to remove escape characters and use filtering to remove Unicode characters.
`.strip(string.punctuation)` removes any punctuation characters on either side of a word except hyphens because they are bounded by letter characters on either side.
```
def cleanInput(content):
content = re.sub('\n+', " ", content) #replace all new line characters with one single white space
content = re.sub('\[[0-9]*\]', "", input) #remove special symbols and numbers, the / here is to escape special characters
content = re.sub(' +', " ", content) #replace all white space characters with one single white space
content = bytes(content, "UTF-8") #remove all Unicode characters by encoding with UTF-8
content = content.decode("ascii", "ignore")
cleanedInput = []
input = input.split(' ')
for item in content:
content = content.strip(string.punctuation) #remove punctuations
if len(item) > 1 or (item.lower() == 'a' or item.lower() == 'i'): #single character words "I" and "a"
cleanedInput.append(item)
return cleanedInput
```
<br />
An [n-gram](https://en.wikipedia.org/wiki/N-gram) is a contiguous sequence of n items from a given sample of text or speech.
```
def ngrams(text,n):
text = cleanInput(text)
ngrammed = []
for i in range(len(text)-n+1):
ngrammed.append(input[i:i+n])
return ngrammed
```
<br />
`OrderedDict`, as obvious from its name, is an ordered dictionary.
The `cleanInput` function above obly record the existence of each ngram but not frqeuency. The follwoing code can record the frequency of each ngram along with the ngram itself in an ordered dictionary.
```
from collections import OrderedDict
...
ngrams = ngrams(content, 2)
ngrams = OrderedDict(sorted(ngrams.items(), key=lambda t: t[1], reverse=True))
print(ngrams)
```
[Openrefine](http://openrefine.org/) can be applied for more efficient data cleaning. It may be not working on Mac because it has been open sourced which may potentially be regarded as "unsafe" in the eyes of Apple.
<br />
## Avoid Scraping Traps
<br />
The headers can be editted to avoid being blocked by website admin using the code below:
```
import requests
from bs4 import BeautifulSoup
session = requests.Session()
headers = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit 537.36 (KHTML, like Gecko) Chrome","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"}
#this website is useful in checking your http headers
url = "https://www.whatismybrowser.com/developers/what-http-headers-is-my-browser-sending"
req = session.get(url, headers=headers)
bsObj = BeautifulSoup(req.text)
print(bsObj.find("table",{"class":"table-striped"}).get_text)
```
The "User-agent" in the header is what really matters when the website checks the "humaness" of each visit.
Side note: `.text` attribute can give you a better formatting in the output.
<br />
Handling cookies correctly can alleviate many of scraping problems, although cookies
can also be a double-edged sword. Websites that track your progression through a site
using cookies might attempt to cut off scrapers that display abnormal behavior, such
as completing forms too quickly, or visiting too many pages. Although these behaviors
can be disguised by closing and reopening connections to the site, or even changing
your IP address.
Cookies can also be very necessary to scrape a site. Staying
logged in on a site requires that you be able to hold and present a cookie from page to
page. Some websites don’t even require that you actually log in and get a new version
of a cookie every time—merely holding an old copy of a “logged in” cookie and visiting
the site is enough.
The following code manipulates cookies using `selenium.webdriver`.
```
from selenium import webdriver
driver = webdriver.PhantomJS(executable_path='<Path to Phantom JS>')
driver.get("http://pythonscraping.com")
driver.implicitly_wait(1)
print(driver.get_cookies())
savedCookies = driver.get_cookies()
driver2 = webdriver.PhantomJS(executable_path='<Path to Phantom JS>')
driver2.get("http://pythonscraping.com")
driver2.delete_all_cookies()
for cookie in savedCookies:
driver2.add_cookie(cookie)
driver2.get("http://pythonscraping.com")
driver.implicitly_wait(1)
print(driver2.get_cookies())
```
Technical note: For `driver2`, it must load the website first so that Selenium knows which website
the cookies belong to, even if the act of loading the website does nothing useful
for us.
<br />
“Hidden” fields in html can prevent scrapers from sending forms. Such as putting a link in the html source code but adding a `display:None` CSS attribute, creating a hidden input blank or moving a clickable element 500000 pixles to the right, i.e. off the monitor screen.
Whether the element is present on the page can be determined by the `is_displayed()` function.
```
from selenium import webdriver
from selenium.webdriver.remote.webelement import WebElement
driver = webdriver.PhantomJS(executable_path='')
driver.get("http://pythonscraping.com/pages/itsatrap.html")
links = driver.find_elements_by_tag_name("a")
for link in links:
if not link.is_displayed():
print("The link "+link.get_attribute("href")+" is a trap")
fields = driver.find_elements_by_tag_name("input")
for field in fields:
if not field.is_displayed():
print("Do not change value of "+field.get_attribute("name"))
```
Although you probably don’t want to visit any hidden links you find, you will want to
make sure that you submit any pre-populated hidden form values (or have Selenium
submit them for you) with the rest of the form. To sum up, it is dangerous to simply
ignore hidden fields, although you must be very careful when interacting with them.
<br />
## Testing
<br />
About `assert`: https://stackoverflow.com/questions/5142418/what-is-the-use-of-assert-in-python
Python’s unit testing module, `unittest`, comes packaged with all standard Pythoninstallations. Just import and extend `unittest.TestCase`, and it will do the following:
1. Provide `setUp` and `tearDown` functions that run before and after each unit test
2. Provide several types of “assert” statements to allow tests to pass or fail
3. Run all functions that begin with `test_ ` as unit tests, and ignore functions thatare not prepended as tests.
Here is a piece of sample code taken from the book.
```
from urllib.request import urlopen
from bs4 import BeautifulSoup
import unittest
class TestWikipedia(unittest.TestCase):
bsObj = None
def setUpClass():
global bsObj
url = "http://en.wikipedia.org/wiki/Monty_Python"
bsObj = BeautifulSoup(urlopen(url))
def test_titleText(self):
global bsObj
pageTitle = bsObj.find("h1").get_text()
self.assertEqual("Monty Python", pageTitle)
def test_contentExists(self):
global bsObj
content = bsObj.find("div",{"id":"mw-content-text"})
self.assertIsNotNone(content)
```
If needs to do multiple tests, create a function like this:
```
class TestWikipedia(unittest.TestCase):
bsObj = None
url = None
def test_PageProperties(self):
global bsObj
global url
url = "http://en.wikipedia.org/wiki/Monty_Python"
#Test the first 100 pages we encounter
for i in range(1, 100):
bsObj = BeautifulSoup(urlopen(url))
titles = self.titleMatchesURL()
self.assertEquals(titles[0], titles[1])
self.assertTrue(self.contentExists())
url = self.getNextLink()
print("Done!")
```
<br />
`selenuim` can also be apllied for testing especially websites written in JavaScrip.
Although obviously written in the same language, the syntax of Python unittests and
Selenium unit tests have surprisingly little in common. Selenium does not require
that its unit tests be contained as functions within classes; its “assert” statements do
not require parentheses; and tests pass silently, only producing some kind of message
on a failure:
```
driver = webdriver.PhantomJS()
driver.get("http://en.wikipedia.org/wiki/Monty_Python")
assert "Monty Python" in driver.title
driver.close()
```
When run, this test should produce no output if the title is correct.
<br />
`selenuim` is powerful in interacting with site such as filling and submitting forms automatically, completing drag-and-drop bot-verification, taking screenshots, etc.
<br />
## Scraping Remotely
<br />
IP address blocking is an extremely common method for server administrators to stop suspected web scrapers from accessing servers.
So changing the IP address is important in avoid being blocked for web scrapers.
Some tasks are simply too large for a home computer and Internet connection and require a lot more bandwidth and storage
than your current setup can provide.
The Onion Router network, better known by the acronym [Tor](https://en.wikipedia.org/wiki/Tor_(anonymity_network)), is a network of volunteer
servers set up to route and reroute traffic through many layers (hence the onion
reference) of different servers in order to obscure its origin. Data is encrypted before
it enters the network so that if any particular server is eavesdropped on the nature of
the communication cannot be revealed.
[PySocks](https://pypi.org/project/PySocks/1.5.0/) is a remarkably simple Python module that is capable of routing traffic
through proxy servers and that works fantastically in conjunction with Tor. To download: `pip install PySocks==1.5.0`
The Tor service must be running on **port 9150** (the default port) while running this code:
```
import socks
import socket
from urllib.request import urlopen
socks.set_default_proxy(socks.SOCKS5, "localhost", 9150)
socket.socket = socks.socksocket
print(urlopen('http://icanhazip.com').read())
```
The website http://icanhazip.com displays only the IP address for the client connecting
to the server and can be useful for testing purposes. When this script is run, it
should display an IP address that is not your own.
If you want to use Selenium and PhantomJS with Tor, you don’t need PySocks at all—
just make sure that Tor is currently running and add the optional service_args
parameters, specifying that Selenium should connect through **port 9150**:
```
from selenium import webdriver
service_args = [ '--proxy=localhost:9150', '--proxy-type=socks5', ]
driver = webdriver.PhantomJS(executable_path='<path to PhantomJS>',service_args=service_args)
driver.get("http://icanhazip.com")
print(driver.page_source)
driver.close()
```
Again, this should print out an IP address that is not your own but the one that your running Tor client is currently using.
<br />
## NLTK
<br />
NLTK is a powerful NLP library in python.
<br />
`nltk.word_tokennize(text1)` returns a list consists of the words and punctuations.
`>>> s0 = "This is a cooool #dummysmiley: :-) :-P <3 and some arrows < > -> <--"`
`>>>nltk.word_tokenize(s0)`
returns `['This', 'is', 'a', 'cooool', '#dummysmiley', ':', ':-)', ':-P', '<3', 'and', 'some', 'arrows', '<', '>', '->', '<--']`
<br />
`pos_tag` returns a list ot tuples, `(token, the part of speech of a word)`.
```
>>>from nltk import pos_tag
>>>pos_tag(nltk.word_tokenize(s0))
>>>[('This', 'DT'),('is', 'VBZ'),('a', 'DT'),('cooool', 'JJ'),('#', '#'),
('dummysmiley', 'NN'),(':', ':'),(':', ':'),('-', ':'),
(')', ')'),(':', ':'),('-P', 'JJ'),('<', '$'),('3', 'CD'),
('and', 'CC'),('some', 'DT'),('arrows', 'NNS'),('<', 'VBP'),
('>', 'SYM'),('-', ':'),('>', 'NN'),('<', 'CD'),('--', ':')]
```
Take note that parsing sentence structure using `poa_tag` can sometimes be ambiguous. This sentence can have 2 total different meanings but only one of the two is returned. For example,
```
s1 = "I saw a man with a telescope"
pos_tag(nltk.word_tokenize(s1))
Out[9]:
[('I', 'PRP'),
('saw', 'VBD'),
('a', 'DT'),
('man', 'NN'),
('with', 'IN'),
('a', 'DT'),
('telescope', 'NN')]
```

| 35.022258 | 411 | 0.706342 | eng_Latn | 0.941347 |
db86949d8faa9c7d73957c8e07a56bdb434dea41 | 2,767 | md | Markdown | README.md | ehaselwanter/kitchen-sharedtests | 6e326b0603b67ae1b433ac381cfac9b117c6fa29 | [
"Apache-2.0"
] | 1 | 2016-09-22T14:43:51.000Z | 2016-09-22T14:43:51.000Z | README.md | ehaselwanter/kitchen-sharedtests | 6e326b0603b67ae1b433ac381cfac9b117c6fa29 | [
"Apache-2.0"
] | null | null | null | README.md | ehaselwanter/kitchen-sharedtests | 6e326b0603b67ae1b433ac381cfac9b117c6fa29 | [
"Apache-2.0"
] | null | null | null | # Kitchen::SharedTests
This gem allows you to use an external git repo for your tests. This comes in handy if you want to separate the tests from your test-kitchen project. There is a patch pending to make this non intrusive (read feature) in test-kitchen itself
- [Test Artifact Fetch Feature](https://github.com/test-kitchen/test-kitchen/issues/434)
## Installation
Add this line to your application's Gemfile:
gem 'kitchen-sharedtests'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install kitchen-sharedtests
## Usage
Create a Thorfile in your porject and add
```
require 'bundler'
require 'bundler/setup'
require 'kitchen_sharedtests'
require 'kitchen/sharedtests_thor_tasks'
Kitchen::SharedtestsThorTasks.new
```
to your Thorfile
Add a new option to your `kitchen.yml` pointing to the integration test repo
```
provisioner:
test_repo_uri: "https://github.com/ehaselwanter/tests-kitchen-example.git"
```
Then you can either overwrite your local integration folder or run from a new integration test folder.
```
thor kitchen:fetch-remote-tests
± kitchen diagnose |grep test_base_path
test_base_path: /....../puppet-kitchen-example/test/integration
test_base_path: /....../puppet-kitchen-example/test/integration
test_base_path: /....../puppet-kitchen-example/test/integration
```
will clone the in the `provisioner.test_repo_uri` to `test/integration`
```
thor kitchen:all-sharedtests
```
and the other `kitchen:*-sharedtests*` tasks will create a folder `./shared_test_repo` and point `test_base_path` to this folder
```
± thor kitchen:diagnose-sharedtests-default-ubuntu-1204|grep test_base_path
!ruby/sym test_base_path: /....../puppet-kitchen-example/shared_test_repo
!ruby/sym test_base_path: /....../puppet-kitchen-example/shared_test_repo
!ruby/sym test_base_path: /....../puppet-kitchen-example/shared_test_repo
```
```
± thor -T
kitchen
-------
thor kitchen:all-sharedtests # Run all test instances
thor kitchen:diagnose-sharedtests-default-ubuntu-1204 # Diagnose default-ubuntu-1204 test instance
thor kitchen:fetch-remote-tests # Fetch remote tests from provider.test_repo_uri
thor kitchen:run-sharedtests-default-ubuntu-1204 # Run run-sharedtests-default-ubuntu-1204 test instance
thor kitchen:verify-sharedtests-default-ubuntu-1204 # Run default-ubuntu-1204 to verify instance
```
## Contributing
1. Fork it ( http://github.com/<my-github-username>/kitchen-shared-tests/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
| 31.804598 | 239 | 0.739429 | eng_Latn | 0.813826 |
db86b4ebed9837f218ee14dbf66bfd4163734ce7 | 7,512 | md | Markdown | articles/logic-apps/logic-apps-enterprise-integration-edifact-decode.md | dbroeglin/azure-docs.fr-fr | 98723467b92322c5546c342f50caae075d4c3ff5 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/logic-apps/logic-apps-enterprise-integration-edifact-decode.md | dbroeglin/azure-docs.fr-fr | 98723467b92322c5546c342f50caae075d4c3ff5 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/logic-apps/logic-apps-enterprise-integration-edifact-decode.md | dbroeglin/azure-docs.fr-fr | 98723467b92322c5546c342f50caae075d4c3ff5 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Messages Decode EDIFACT
description: Valider l’EDI et générer les accusés de réception avec le décodeur de messages EDIFACT pour Azure Logic Apps dans Enterprise Integration Pack
services: logic-apps
ms.suite: integration
author: divyaswarnkar
ms.author: divswa
ms.reviewer: jonfan, divswa, logicappspm
ms.topic: article
ms.date: 01/27/2017
ms.openlocfilehash: 78c0d20c0f32a6d63d134e958b30d38fe11fcc5c
ms.sourcegitcommit: 76b48a22257a2244024f05eb9fe8aa6182daf7e2
ms.translationtype: HT
ms.contentlocale: fr-FR
ms.lasthandoff: 12/03/2019
ms.locfileid: "74790668"
---
# <a name="decode-edifact-messages-for-azure-logic-apps-with-the-enterprise-integration-pack"></a>Décodez des messages EDIFACT pour Azure Logic Apps avec Enterprise Integration Pack
Avec le connecteur de messages Decode EDIFACT, vous pouvez valider l’EDI et les propriétés spécifiques du partenaire, fractionner des échanges en documents informatisés ou conserver les échanges entiers et générer des accusés de réception pour les transactions traitées. Pour utiliser ce connecteur, vous devez ajouter le connecteur à un déclencheur existant dans votre application logique.
## <a name="before-you-start"></a>Avant de commencer
Voici les éléments dont vous avez besoin :
* Un compte Azure (que vous pouvez [créer gratuitement)](https://azure.microsoft.com/free)
* Un [compte d’intégration](logic-apps-enterprise-integration-create-integration-account.md) déjà défini et associé à votre abonnement Azure. Vous devez disposer d’un compte d’intégration pour pouvoir utiliser le connecteur Decode EDIFACT Message.
* Au moins deux [partenaires](logic-apps-enterprise-integration-partners.md) déjà définis dans votre compte d’intégration
* Un [contrat EDIFACT](logic-apps-enterprise-integration-edifact.md) déjà défini dans votre compte d’intégration
## <a name="decode-edifact-messages"></a>Messages Decode EDIFACT
1. [Créez une application logique](quickstart-create-first-logic-app-workflow.md).
2. Le connecteur Decode EDIFACT Message ne possède aucun déclencheur, ce qui signifie que vous devez ajouter un déclencheur pour le démarrage de votre application logique, par exemple un déclencheur de requête. Dans le concepteur d’applications logiques, ajoutez un déclencheur, puis ajoutez une action à votre application logique.
3. Dans la zone de recherche, entrez « EDIFACT » comme filtre. Sélectionnez **Decode EDIFACT Message**.

3. Si vous n’avez pas encore créé de connexions à votre compte d’intégration, vous êtes invité à le faire à cette étape. Donnez un nom à votre connexion, puis sélectionnez le compte d’intégration auquel vous souhaitez vous connecter.

Les propriétés marquées d’un astérisque sont obligatoires.
| Propriété | Détails |
| --- | --- |
| Nom de connexion * |Entrez un nom pour votre connexion. |
| Compte d’intégration * |Entrez un nom pour votre compte d’intégration. Vérifiez que votre compte d’intégration et votre application logique se trouvent dans le même emplacement Azure. |
4. Pour terminer la création de votre connexion, sélectionnez l’option **Créer**. Les détails de votre connexion doivent apparaître tels qu’indiqués dans l’exemple suivant :

5. Une fois votre connexion est créée, comme indiqué dans cet exemple, sélectionnez le message de fichier plat EDIFACT à décoder.

Par exemple :

## <a name="edifact-decoder-details"></a>Détails sur le décodeur EDIFACT
Le connecteur Decode EDIFACT effectue les tâches suivantes :
* Valide l’enveloppe par rapport à l’accord de partenariat commercial.
* Résout l’accord en mettant en correspondance les identificateurs et les qualificateurs de l’expéditeur et du récepteur.
* Fractionne un échange en plusieurs transactions lorsque l’échange a plusieurs transactions basées sur la configuration des paramètres de réception de l’accord.
* Désassemble l’échange.
* Valide l’EDI et les propriétés spécifiques du partenaire, y compris :
* Validation de la structure de l’enveloppe d’échange
* Validation de schéma de l’enveloppe par rapport au schéma de contrôle
* Validation de schéma des éléments de données du document informatisé par rapport au schéma de message
* Validation EDI effectuée sur les éléments de données du document informatisé.
* Vérifie que les numéros de contrôle de l’échange, du groupe et du document informatisé ne sont pas des doublons (si configuré)
* Vérifie le numéro de contrôle de l’échange par rapport aux échanges reçus précédemment.
* Vérifie le numéro de contrôle du groupe par rapport aux autres numéros de contrôle de groupe dans l’échange.
* Vérifie le numéro de contrôle du document informatisé par rapport aux autres numéros de contrôle de document informatisé dans ce groupe.
* Fractionne l’échange en documents informatisés ou conserve l’échange entier :
* Scinder l’échange en documents informatisés - suspendre les documents informatisés en cas d’erreur : Scinde l’échange en documents informatisés et analyse chaque document informatisé.
L’action X12 Decode ne génère que les documents informatisés qui échouent à la validation `badMessages` et produit les documents informatisés restants en tant que `goodMessages`.
* Scinder l’échange en documents informatisés - suspendre l’échange en cas d’erreur : Scinde l’échange en documents informatisés et analyse chaque document informatisé.
Si la validation d’un ou de plusieurs documents informatisés de l’échange échoue, l’action X12 Decode génère tous les documents informatisés dans cet échange en tant que `badMessages`.
* Préserver l’échange - suspendre les documents informatisés en cas d’erreur : Préserve l’échange et traite l’intégralité de l’échange par lot.
L’action X12 Decode ne génère que les documents informatisés qui échouent à la validation `badMessages` et produit les documents informatisés restants en tant que `goodMessages`.
* Préserver l’échange - suspendre l’échange en cas d’erreur : Préserve l’échange et traite l’intégralité de l’échange par lot.
Si la validation d’un ou de plusieurs documents informatisés de l’échange échoue, l’action X12 Decode génère tous les documents informatisés dans cet échange en tant que `badMessages`.
* Génère un accusé de réception fonctionnel et/ou technique (contrôle) (si configuré).
* Un accusé de réception technique ou l’ACK CONTRL renvoie les résultats d’une vérification syntaxique de tout l’échange reçu.
* Un accusé de réception fonctionnel accuse réception de l’acceptation ou du refus d’un groupe ou d’un échange reçu
## <a name="view-swagger-file"></a>Afficher le fichier Swagger
Pour afficher les détails Swagger du connecteur EDIFACT, consultez [EDIFACT](/connectors/edifact/).
## <a name="next-steps"></a>Étapes suivantes
[En savoir plus sur Enterprise Integration Pack](logic-apps-enterprise-integration-overview.md "En savoir plus sur Enterprise Integration Pack")
| 75.12 | 390 | 0.795394 | fra_Latn | 0.98558 |
db87c2ca17d8b95a7d67b05cf836b57b664308c0 | 5,816 | md | Markdown | scripting-docs/javascript/reference/intl-collator-object-javascript.md | PoulChapman/visualstudio-docs-public-personal | 26d6f2dc195841a71a44190df8859aa9857a9a43 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2017-08-15T16:18:32.000Z | 2017-08-15T16:18:32.000Z | scripting-docs/javascript/reference/intl-collator-object-javascript.md | PoulChapman/visualstudio-docs-personal | 26d6f2dc195841a71a44190df8859aa9857a9a43 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | scripting-docs/javascript/reference/intl-collator-object-javascript.md | PoulChapman/visualstudio-docs-personal | 26d6f2dc195841a71a44190df8859aa9857a9a43 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: "Intl.Collator Object (JavaScript) | Microsoft Docs"
ms.custom: ""
ms.date: "01/18/2017"
ms.prod: "windows-client-threshold"
ms.reviewer: ""
ms.suite: ""
ms.technology:
- "devlang-javascript"
ms.tgt_pltfrm: ""
ms.topic: "language-reference"
f1_keywords:
- "Collator"
dev_langs:
- "JavaScript"
- "TypeScript"
- "DHTML"
ms.assetid: acbb9461-f956-4b5b-ae5f-6a47815ae15c
caps.latest.revision: 14
author: "mikejo5000"
ms.author: "mikejo"
manager: "ghogen"
---
# Intl.Collator Object (JavaScript)
Provides locale-specific string comparisons.
## Syntax
```
collatorObj = new Intl.Collator([locales][, options])
```
#### Parameters
`collatorObj`
Required. The variable name to assign the `Collator` object to.
`locales`
Optional. An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. See the Remarks section for more information.
`options`
Optional. An object that contains one or more properties that specify comparison options. See the Remarks section for details.
## Remarks
The `locales` parameter must conform to [BCP 47](http://tools.ietf.org/html/rfc5646) language or locale tags such as "en-US" and "zh-Hans-CN". The tag may include language, region, country, and variant. For a list of languages, see the [IANA language subtag registry](http://go.microsoft.com/fwlink/p/?linkid=227303). For examples of language tags, see [Appendix A](http://tools.ietf.org/html/rfc5646#appendix-A) of BCP 47. For `Collator`, you may include the -u extension in the locale string to specify one or more of the following Unicode extensions:
- -co to specify variant collations (locale-specific): "*language*-*region*-u-co-*value*".
- -kn to specify a numeric comparison: "*language*-*region*-u-kn-true|false".
- –kf to specify whether to sort uppercase or lowercase characters first: "*language*-*region*-u-kf-upper|lower|false"). This extension is not currently supported.
To specify a numeric comparison, you can set the –kn extension in the locale string or use the `numeric` property in the `options` parameter. If you're using the `numeric` property, the –kn value will not apply.
The `options` parameter may include the following properties:
- `localeMatcher`. Specifies the locale-matching algorithm to use. The possible values are "lookup" and "best fit". The default value is "best fit".
- `usage`. Specifies whether the goal of comparison is sorting or searching. The possible values are "sort" and "search". The default value is "sort".
- `sensitivity`. Specifies the collator’s sensitivity. The possible values are "base", "accent", "case", and "variant". The default value is `undefined`.
- `ignorePunctuation`. Specifies whether punctuation is ignored in the comparison. The possible values are "true" and "false". The default value is `false`.
- `numeric`. Specifies whether numeric sorting is used. The possible values are "true" and "false". The default value is `false`.
- `caseFirst`. Not currently supported.
## Properties
The following table lists the properties of the `Collator` object.
|||
|-|-|
|Property|Description|
|[compare](../../javascript/reference/compare-property-intl-collator.md)|Returns a function that compares two strings by using the collator’s sort order.|
|[constructor](../../javascript/reference/constructor-property-intl-collator.md)|Specifies the function that creates a collator.|
|[prototype](../../javascript/reference/prototype-property-intl-collator.md)|Returns a reference to the prototype for a collator.|
## Methods
The following table lists the methods of the `Collator` object.
|||
|-|-|
|Method|Description|
|[resolvedOptions](../../javascript/reference/resolvedoptions-method-intl-collator.md)|Returns an object that contains the properties and values of the collator.|
## Example
The following example creates a `Collator` object and performs a comparison.
```JavaScript
var co = new Intl.Collator(["de-DE"]);
co.compare("a", "b"); // Returns -1
```
## Example
The following example uses `Collator` objects to sort an array. This example shows locale-specific differences.
```JavaScript
var co1 = new Intl.Collator(["de-DE-u-co-phonebk"]);
var co2 = new Intl.Collator(["de-DE"]);
var co3 = new Intl.Collator(["en-US"]);
var arr = ["ä", "ad", "af", "a"];
if (console && console.log) {
console.log(arr.sort(co1.compare)); // Returns a,ad,ä,af
console.log(arr.sort(co2.compare)); // Returns a,ä,ad,af
console.log(arr.sort(co3.compare)); // Returns a,ä,ad,af
}
```
## Example
The following example uses a `Collator` object to search for a string and specifies comparison options.
```JavaScript
// String to search
var arr = ["ä", "ad", "af", "a"];
// String searched for
var s = "af";
var co = new Intl.Collator("de-DE", { usage: "search" });
var matches = arr.filter(function (i) {
return co.compare(i, s) === 0;
});
if (console && console.log) {
console.log(matches); // Returns af
}
```
## Requirements
[!INCLUDE[jsv11](../../javascript/reference/includes/jsv11-md.md)]
## See Also
[localeCompare Method (String)](../../javascript/reference/localecompare-method-string-javascript.md)
[Intl.DateTimeFormat Object](../../javascript/reference/intl-datetimeformat-object-javascript.md)
[Intl.NumberFormat Object](../../javascript/reference/intl-numberformat-object-javascript.md) | 42.452555 | 556 | 0.699966 | eng_Latn | 0.95408 |
db87f6f1265eae88b007a9dbf9b2e95658707b8a | 609 | md | Markdown | README.md | IlyaKhD/systemjs-vue-browser | a8814c57b259858a5f5b4c637b80c4b7a5db2748 | [
"MIT"
] | null | null | null | README.md | IlyaKhD/systemjs-vue-browser | a8814c57b259858a5f5b4c637b80c4b7a5db2748 | [
"MIT"
] | null | null | null | README.md | IlyaKhD/systemjs-vue-browser | a8814c57b259858a5f5b4c637b80c4b7a5db2748 | [
"MIT"
] | null | null | null | # systemjs-vue-browser
SystemJS plugin to load .vue single file components
```js
/* global System */
System.config({
transpiler: "plugin-babel",
paths: {
"npm:": "https://unpkg.com/"
},
map: {
vue: "npm:[email protected]/dist/vue.esm.browser.js",
"vue-loader": "npm:[email protected]/index.js",
"plugin-babel": "npm:systemjs-plugin-babel@0/plugin-babel.js",
"systemjs-babel-build":
"npm:systemjs-plugin-babel@0/systemjs-babel-browser.js"
},
meta: {
"*.vue": { loader: "vue-loader" }
}
});
```
Codesandbox [example](https://codesandbox.io/s/l49oz232km)
| 21 | 66 | 0.6289 | kor_Hang | 0.089889 |
db885dc9deb91c39e4ec32feafae32caf5d175da | 2,434 | md | Markdown | README.md | PeterGilles/Syllabifier-for-Luxembourgish | 632ced74cbc1f7e9f480ab39a62fa09663caeaf0 | [
"MIT"
] | 2 | 2020-04-14T11:31:36.000Z | 2020-04-14T17:08:58.000Z | README.md | vdca/Syllabifier-for-Luxembourgish | 632ced74cbc1f7e9f480ab39a62fa09663caeaf0 | [
"MIT"
] | null | null | null | README.md | vdca/Syllabifier-for-Luxembourgish | 632ced74cbc1f7e9f480ab39a62fa09663caeaf0 | [
"MIT"
] | 1 | 2020-06-17T15:37:44.000Z | 2020-06-17T15:37:44.000Z | # Syllabifier for Luxembourgish
Based on the syllabifier from the [Penn Phonetics Toolkit](https://sourceforge.net/projects/p2tk/),
this is an adaption for Luxembourgish.
The Python script `syllabifer.py` takes IPA-transcribed words of Luxembourgish as input and
returns the segments grouped as syllables. The phonetic segments in the input have to be
separated by spaces, e.g. `æ p ə l t ɛːɐ t ɐ ɕ ɐ` (*Äppeltäertercher*).
The script applies the `Maximum Onset Principle` to assign as many consonants to a potential
syllable onset as long as this onset is permitted in the language. These allowed onsets are
specified in `luxembourgish.cfg` (and also in the script itself) as `onsets`; permitted
`consonants` and `nuclei` are specified in the configuration as well.
The lists with IPA transcribed words comes from the training data for my [g2p system](http://engelmann.uni.lu/transcription/).
Although developed and tested for Luxembourgish, this system should also work in principle for IPA data for lots of other
languages. It is only necessary to adapt the configuration for `onsets`, `nuclei` and `consonsants`.
## Usage
The Python notebook `Syllabifier` provides a simple example.
```python
import syllabifier
language = syllabifier.Luxembourgish
syllables = syllabifier.syllabify(language, "æ p ə l t ɛːɐ t ɐ ɕ ɐ")
# some test words
# æ p ə l t ɛːɐ t ɐ ɕ ɐ
# ɑ p ʀ o v i z i̯ o n ɜɪ ə ʀ ə n
# ʃ ɑ̃ː m b ɐ s p ʀ e z i d æ n t i n ə n
# k ɑ ʀ ɑ k t ə ʀ eː ʑ ə n ʃ ɑ f t ə n
# k ɑ ʀ i s m aː
# ʃ i m iː s p ʀ o f æ s oː ʀ i n ə n
# ɕ i ʀ u ʀ ʑ i n ə n
# k w ɑ f œː ʀ s s ɑ l ɑ̃ː
# d e k l ɑ ʀ ɑ ts i̯ əʊ n ə n
# d ʀ oː ɡ ə ʃ t ɑ t i s t i k
for stress, onset, nucleus, coda in syllables :
print(" ".join(onset), " ".join(nucleus), " ".join(coda))
æ
p ə l
t ɛːɐ
t ɐ
ɕ ɐ
```
When run from a terminal:
```
python syllabifier.py luxembourgish.cfg < lux_ipa.txt > lux_ipa_syllabified.txt
```
## Limitations
- Compounds like `b l i n t d aː ʀ m o p e ʀ ɑ ts i̯ əʊ n` where the `m` is falsely attributed
to the next syllable, because `m o` is of course a permitted onset. To solve this, a
morphological pre-segmentation would be necessary.
- Intervocalic single consonants after short vowel are ambisyllabic and should thus be
attributed to both syllables, which is not possible in this framework. In `ʃ t ʀ e k ə l` the
`k` is in the second, while in `z ɑ ŋ ə n` the `ŋ` goes to the first syllable.
| 36.328358 | 126 | 0.71857 | eng_Latn | 0.994612 |
db88d29daf15dbda0d92fb8bff0321c861a23fda | 3,000 | md | Markdown | README.md | aman-rajvanshi/examportal | 618e2a30c7a2185daf4b8b8cad4983d74383fbbb | [
"MIT"
] | null | null | null | README.md | aman-rajvanshi/examportal | 618e2a30c7a2185daf4b8b8cad4983d74383fbbb | [
"MIT"
] | null | null | null | README.md | aman-rajvanshi/examportal | 618e2a30c7a2185daf4b8b8cad4983d74383fbbb | [
"MIT"
] | null | null | null | # Online-exam-system
Online examination system is a app for setup online quiz with so many functionality.
It is a PHP project.
Instalation ::
### Steps
1)Copy full folder in your web directory.
2)Import database in your phpmyadmin named project1.sql.
3)Edit dbconnection file.change username,password and database name.
- Default user is root,password is null and database name is project1.
Default admin email id is [email protected] and password is head .
admin password is md5 encypted.
For any query or feedback contact me at [email protected].
Thanx.
## Precise Explanation regarding the work in detail :
INSTALLATION STEPS :
1. Copy zip file and Unzip file on your local server.
2. Put this file inside WAMP or XAMPP server.
3. Database Configuration
- Open phpmyadmin
- Create Database named project1.
- Import database project1.sql from downloaded folder(inside database)
4. Open Your browser put inside "http://localhost/Online-Exam-System/"
5. To Login as admin put the following details.
- Admin Login Details
- Login Id: [email protected]
- Password: head
## ONLINE EXAMINATION SYSTEM FEATURES :
1. Login system must be present and secured by password.
2. Ability to setup multiple choice question paper.
3. Display of quick and accurate results.
4. Rankings , and history of exams attempted can be looked after.
5. Admin panel
- Can add/remove the teachers.
- Can view the feedbacks.
5. Teacher panel
- Can add/remove question papers.
- Can view the individual test results and overall rankings.
6. Student panel
- Can write the exams shown in home page
- Only once a student can attempt the examination , after then the examination is disabled until the teacher removes it.
- Can view the overall ranking and the details of scores and examinations previously attempted.
7. Log out after the over.
8. Users can send the suggestions and feedbacks from the home page , it can be viewed by admin.
## What makes our online exam system web project differs from others
Low internet connection would be sufficient to load the pages, since we haven’t used any picture data(using pictures the user with low internet connection takes time to load the images).
In other online exam system websites , we can find only one admin who is surely responsible for the addition or deletion of the test, but we made this site any number of authorized persons can add/remove the examinations and these all authorized persons and users of this site will be controlled by the admin.
It could be very helpful for educational institues acting as :
- Admin(headdash.php) --- director of institute
- Teacher(dash.php) --- professors of college
- User(acccount.php) --- students of the college
- home page (index.php)
Security with password , even the admin cannot look at the password , ensuring the trust of the users.
A feedback system available for suggesting improvements and registering complaints. | 37.5 | 310 | 0.759 | eng_Latn | 0.997658 |
db88fcffe93e08f40e92e8701a529f885e1ff888 | 959 | md | Markdown | readme.md | wayneashleyberry/phpl | 028ab46712e58b4eb1f1f6219d4af6f50b451d58 | [
"MIT"
] | 6 | 2016-03-31T00:07:49.000Z | 2019-06-12T16:08:20.000Z | readme.md | wayneashleyberry/phpl | 028ab46712e58b4eb1f1f6219d4af6f50b451d58 | [
"MIT"
] | 1 | 2017-01-16T06:30:24.000Z | 2017-01-16T06:30:24.000Z | readme.md | wayneashleyberry/phpl | 028ab46712e58b4eb1f1f6219d4af6f50b451d58 | [
"MIT"
] | 4 | 2017-01-15T16:49:17.000Z | 2018-04-24T07:58:52.000Z | ## phpl
> Inspired by [phplint](https://github.com/wayneashleyberry/phplint), phpl is a concurrent php linter written in [Go](https://golang.org/).
[](https://goreportcard.com/report/github.com/wayneashleyberry/phpl)
[](https://godoc.org/github.com/wayneashleyberry/phpl)
#### Motivation
PHP's native linter can only lint one file at a time, and that's slow.
#### Installation
The easiest way to install phpl is to download the [latest
binary](https://github.com/wayneashleyberry/phpl/releases/latest) and place it
in your `$PATH`.
Alternatively if you have a [go
workspace](https://golang.org/doc/code.html#Workspaces), you can use `go get`.
```sh
go get github.com/wayneashleyberry/phpl
```
#### Usage
```
cd /path/to/php
phpl
```
#### License
MIT © [Wayne Ashley Berry](https://wayne.cloud)
| 27.4 | 150 | 0.734098 | eng_Latn | 0.298037 |
db89f027ad0f5a3942cf6cd626bb9cb53ae1c590 | 1,376 | markdown | Markdown | _posts/2017-08-20-multiflavors_part_2.markdown | PawelRaciborski/pawelraciborski.github.io | 9208f1c221cea0638178020daac44e7e39279193 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | _posts/2017-08-20-multiflavors_part_2.markdown | PawelRaciborski/pawelraciborski.github.io | 9208f1c221cea0638178020daac44e7e39279193 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | _posts/2017-08-20-multiflavors_part_2.markdown | PawelRaciborski/pawelraciborski.github.io | 9208f1c221cea0638178020daac44e7e39279193 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | ---
title: "Multi module and multi flavor project - PART 2"
date: 2018-08-20 23:00:00 +0100
categories:
- development
tags: android gradle
---
In my [previous post](https://pawelraciborski.github.io/development/multiflavors_part_1/) I’ve showed how to handle app and library flavors within same dimension. Everything is fine and dandy, but what if we would like to add another dimension to the library. Let's extend our previous example:
<script src="https://gist.github.com/PawelRaciborski/dcd6acb8398e51a196e22369b80956a5.js"></script>
*ontop* dimension doesn’t have its counterpart in the app. We have to cover that with in app build gradle:
<script src="https://gist.github.com/PawelRaciborski/872498916aae7372cb7b7dc19b9a40b6.js"></script>
First argument is the missing dimension name, and the second is the flavor which will be selected for app build. (You can put more than one here, so you’ll get hierarchy of fallbacks).
It’s also possible to make an exception from missingDimensionStrategy declared in defaultConfig. It can be overridden for a specific flavor. Let's, again, extend script from previous post:
<script src="https://gist.github.com/PawelRaciborski/acbf15c1e27b9b53bb89774be1f00731.js"></script>
This last snippet ends this two part post. Complete project can be found on [Github](https://github.com/PawelRaciborski/multiflavours/tree/v0.2).
| 57.333333 | 294 | 0.788517 | eng_Latn | 0.963252 |
db8a87f8f0bbcab446f9f2fd8763b68f74cf4175 | 643 | md | Markdown | tests/test-cases/Group22-Docker-Apps/22-03-registry.md | mhazankin/vic | c7036a165aaa90cec10c290b95a40e9e74a3e46b | [
"Apache-2.0"
] | 678 | 2016-04-04T19:47:24.000Z | 2022-02-28T21:13:12.000Z | tests/test-cases/Group22-Docker-Apps/22-03-registry.md | mhazankin/vic | c7036a165aaa90cec10c290b95a40e9e74a3e46b | [
"Apache-2.0"
] | 7,047 | 2016-04-04T20:08:35.000Z | 2022-03-09T02:33:36.000Z | tests/test-cases/Group22-Docker-Apps/22-03-registry.md | mhazankin/vic | c7036a165aaa90cec10c290b95a40e9e74a3e46b | [
"Apache-2.0"
] | 239 | 2016-04-04T20:01:50.000Z | 2022-01-17T13:05:58.000Z | Test 22-03 - registry
=======
# Purpose:
To verify that the registry application on docker hub works as expected on VIC
# References:
[1 - Docker Hub registry Official Repository](https://hub.docker.com/_/registry/)
# Environment:
This test requires that a vSphere server is running and available
# Test Steps:
1. Deploy VIC appliance to the vSphere server
2. Run a registry container in the background and verify that it is working:
`docker run -d -p 5000:5000 --restart always --name registry registry:2`
# Expected Outcome:
* Each step should succeed, registry should be running without error in each case
# Possible Problems:
None
| 27.956522 | 81 | 0.757387 | eng_Latn | 0.963039 |
db8af5e17c357ad4d91b4f78b0ad35c50702a953 | 12,995 | md | Markdown | treebanks/ar_pud/ar_pud-pos-VERB.md | mjabrams/docs | eef96df1ce8f6752e9f80660c8255482b2a07c45 | [
"Apache-2.0"
] | null | null | null | treebanks/ar_pud/ar_pud-pos-VERB.md | mjabrams/docs | eef96df1ce8f6752e9f80660c8255482b2a07c45 | [
"Apache-2.0"
] | null | null | null | treebanks/ar_pud/ar_pud-pos-VERB.md | mjabrams/docs | eef96df1ce8f6752e9f80660c8255482b2a07c45 | [
"Apache-2.0"
] | null | null | null | ---
layout: base
title: 'Statistics of VERB in UD_Arabic-PUD'
udver: '2'
---
## Treebank Statistics: UD_Arabic-PUD: POS Tags: `VERB`
There are 585 `VERB` lemmas (12%), 1015 `VERB` types (14%) and 1783 `VERB` tokens (9%).
Out of 16 observed tags, the rank of `VERB` is: 4 in number of lemmas, 4 in number of types and 5 in number of tokens.
The 10 most frequent `VERB` lemmas: kAn-u_1، qAl-u_1، >amokan_1، bada>-a_1، EAd-u_1، Zahar-a_1، tam~-i_1، Earaf-i_1، $ak~al_1، Eamil-a_1
The 10 most frequent `VERB` types: كان، كانت، يمكن، قال، يكون، تم، تكون، يكن، بدأت، قالت
The 10 most frequent ambiguous lemmas: kAn-u_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 185, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 86, <tt><a href="ar_pud-pos-PROPN.html">PROPN</a></tt> 1), EAd-u_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 21, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 3), $ak~al_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 13, <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 2, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 1), >aEolan_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 10, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 1), ra>aY-a_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 10, <tt><a href="ar_pud-pos-PROPN.html">PROPN</a></tt> 3), Hamal-i_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 9, <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 3), badA-u_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 9, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 1), bAt-i_1 (<tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 7, <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 7), katab-u_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 6, <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 1), qad~am_1 (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 6, <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 1)
The 10 most frequent ambiguous types: كان (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 77, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 36), كانت (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 48, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 19), يكون (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 16, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 15), تكون (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 12, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 5), يكن (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 12, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 1), كانوا (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 11, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 2), بات (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 7, <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 2), تشكل (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 5, <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 2), تكن (<tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 4, <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 4), ظهر (<tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 4, <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 1)
* كان
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 77: س أدخل السجن في كل الأحوال , آمل أن الأمر <b>كان</b> يستحق .
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 36: ل ربما <b>كان</b> الزي الواجب ارتداؤ ه خانقاً زيادة عن اللزوم .
* كانت
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 48: <b>كانت</b> في الـ84 من عمر ها .
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 19: خمسون فقط <b>كانت</b> أسواقاً تجارية .
* يكون
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 16: من الناحية النظرية , إذا تم الأمر ب الشكل الصحيح , س <b>يكون</b> غير قابل ل لكشف .
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 15: قد <b>يكون</b> " خنزير " خنزيراً وحيداً , غير أن ه لا يترك وحد ه أبداً .
* تكون
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 12: قد لا <b>تكون</b> المشكلة قد انتهت ب النسبة إلى باروسو .
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 5: مثل الأودية الخلالية , عادةً ما <b>تكون</b> بحيرات المياه العذبة عميقة .
* يكن
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 12: لكن لم <b>يكن</b> لدي ها شيءٌ آخر خلاق في ها أو في سلوك ها تجاه الآخرين .
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 1: لذلك لن تختفي العلامات المزعجة ب شكلٍ كلي : وفقاً ل لمعلومات الواردة من وكالة الأنباء الألمانية , ف هي س تفعل فقط إن لم <b>يكن</b> الفنان أو شركة التسجيلات مثلاً , عضواً في هيئة الأداء الموسيقي و حقوق النسخ الإلكترونية الألمانية و لم يكن لدي ه اتفاقية مع يوتيوب .
* كانوا
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 11: من هنا سرقوا قارباً صغيراً ترك ه سكانٌ أستراليون أصليون <b>كانوا</b> يعيشون في المنطقة .
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 2: رأيت في بيونغ يانغ أناساً يحملون هواتف ذكية , لكن هم <b>كانوا</b> أقل ب كثير .
* بات
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 7: لكن الآن <b>بات</b> كل شيء يفتقد إلى التوازن و يبدو أن ه يبحث عن حلول طوال الوقت .
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 2: هل <b>بات</b> حق هم الإلهي ب ارتداء عباءة أفضل فريقٍ في العالم غير مضمون ؟
* تشكل
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 5: و يجب أن تستقبل ب روحٍ منفتحة و ذهنٍ صافٍ ل أن ها <b>تشكل</b> الجيل الجديد من الجمال و الأمل .
* <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 2: قبل <b>تشكل</b> جبال الأنديز , كانت الحافة الغربية ل أمريكا الجنوبية تشهد العديد من الحركة الأوروجينية .
* تكن
* <tt><a href="ar_pud-pos-AUX.html">AUX</a></tt> 4: طورت التجارة من خلال إنشاء مواقع تجارية في أرجاء البحر المتوسط , و هي طريقة لم <b>تكن</b> متبعة حتى ذلك الحين .
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 4: إدارت ها , مع ذلك , لم <b>تكن</b> تخلو من الانتقادات .
* ظهر
* <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> 4: خلال إحدى الحلقات , <b>ظهر</b> ك عازف غيتارٍ بارع .
* <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> 1: ف من ناحية , هو يؤنس و يبهج القلب ب بساطة و كأن ه مصنوعٌ من أجل مشاهدت ه من بعد <b>ظهر</b> يوم الأحد .
## Morphology
The form / lemma ratio of `VERB` is 1.735043 (the average of all parts of speech is 1.409765).
The 1st highest number of forms (12) was observed with the lemma “kAn-u_1”: أكن, تكن, تكون, كان, كانت, كانتا, كانوا, كنت, نكون, يكن, يكون, يكونون.
The 2nd highest number of forms (7) was observed with the lemma “EAd-u_1”: تعد, تعود, عاد, عادت, عدنا, نعود, يعود.
The 3rd highest number of forms (7) was observed with the lemma “qAl-u_1”: تقول, قال, قالت, قيل, نقل, يقال, يقول.
`VERB` occurs with 9 features: <tt><a href="ar_pud-feat-Number.html">Number</a></tt> (1782; 100% instances), <tt><a href="ar_pud-feat-Person.html">Person</a></tt> (1781; 100% instances), <tt><a href="ar_pud-feat-Voice.html">Voice</a></tt> (1781; 100% instances), <tt><a href="ar_pud-feat-Aspect.html">Aspect</a></tt> (1780; 100% instances), <tt><a href="ar_pud-feat-Tense.html">Tense</a></tt> (1780; 100% instances), <tt><a href="ar_pud-feat-Gender.html">Gender</a></tt> (1707; 96% instances), <tt><a href="ar_pud-feat-Mood.html">Mood</a></tt> (884; 50% instances), <tt><a href="ar_pud-feat-Case.html">Case</a></tt> (2; 0% instances), <tt><a href="ar_pud-feat-Definite.html">Definite</a></tt> (2; 0% instances)
`VERB` occurs with 22 feature-value pairs: `Aspect=Imp`, `Aspect=Perf`, `Case=Acc`, `Case=Nom`, `Definite=Ind`, `Gender=Fem`, `Gender=Masc`, `Mood=Imp`, `Mood=Ind`, `Mood=Jus`, `Mood=Sub`, `Number=Dual`, `Number=Plur`, `Number=Sing`, `Person=1`, `Person=2`, `Person=3`, `Tense=Fut`, `Tense=Past`, `Tense=Pres`, `Voice=Act`, `Voice=Pass`
`VERB` occurs with 60 feature combinations.
The most frequent feature combination is `Aspect=Perf|Gender=Masc|Number=Sing|Person=3|Tense=Past|Voice=Act` (437 tokens).
Examples: كان، قال، تم، بدأ، أدى، بات، حدث، التقى، قرر، استمر
## Relations
`VERB` nodes are attached to their parents using 17 different relations: <tt><a href="ar_pud-dep-root.html">root</a></tt> (776; 44% instances), <tt><a href="ar_pud-dep-acl-relcl.html">acl:relcl</a></tt> (283; 16% instances), <tt><a href="ar_pud-dep-advcl.html">advcl</a></tt> (205; 11% instances), <tt><a href="ar_pud-dep-conj.html">conj</a></tt> (166; 9% instances), <tt><a href="ar_pud-dep-ccomp.html">ccomp</a></tt> (104; 6% instances), <tt><a href="ar_pud-dep-aux.html">aux</a></tt> (94; 5% instances), <tt><a href="ar_pud-dep-xcomp.html">xcomp</a></tt> (69; 4% instances), <tt><a href="ar_pud-dep-csubj.html">csubj</a></tt> (49; 3% instances), <tt><a href="ar_pud-dep-parataxis.html">parataxis</a></tt> (18; 1% instances), <tt><a href="ar_pud-dep-fixed.html">fixed</a></tt> (4; 0% instances), <tt><a href="ar_pud-dep-cop.html">cop</a></tt> (3; 0% instances), <tt><a href="ar_pud-dep-csubj-pass.html">csubj:pass</a></tt> (3; 0% instances), <tt><a href="ar_pud-dep-nmod-gmod.html">nmod:gmod</a></tt> (3; 0% instances), <tt><a href="ar_pud-dep-appos.html">appos</a></tt> (2; 0% instances), <tt><a href="ar_pud-dep-obj.html">obj</a></tt> (2; 0% instances), <tt><a href="ar_pud-dep-dep.html">dep</a></tt> (1; 0% instances), <tt><a href="ar_pud-dep-obl.html">obl</a></tt> (1; 0% instances)
Parents of `VERB` nodes belong to 9 different parts of speech: (776; 44% instances), <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> (564; 32% instances), <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> (300; 17% instances), <tt><a href="ar_pud-pos-PRON.html">PRON</a></tt> (41; 2% instances), <tt><a href="ar_pud-pos-ADJ.html">ADJ</a></tt> (37; 2% instances), <tt><a href="ar_pud-pos-PROPN.html">PROPN</a></tt> (34; 2% instances), <tt><a href="ar_pud-pos-ADP.html">ADP</a></tt> (25; 1% instances), <tt><a href="ar_pud-pos-PART.html">PART</a></tt> (4; 0% instances), <tt><a href="ar_pud-pos-ADV.html">ADV</a></tt> (2; 0% instances)
99 (6%) `VERB` nodes are leaves.
90 (5%) `VERB` nodes have one child.
239 (13%) `VERB` nodes have two children.
1355 (76%) `VERB` nodes have three or more children.
The highest child degree of a `VERB` node is 9.
Children of `VERB` nodes are attached using 29 different relations: <tt><a href="ar_pud-dep-obl.html">obl</a></tt> (1364; 22% instances), <tt><a href="ar_pud-dep-punct.html">punct</a></tt> (1148; 18% instances), <tt><a href="ar_pud-dep-nsubj.html">nsubj</a></tt> (1003; 16% instances), <tt><a href="ar_pud-dep-obj.html">obj</a></tt> (576; 9% instances), <tt><a href="ar_pud-dep-mark.html">mark</a></tt> (367; 6% instances), <tt><a href="ar_pud-dep-advmod.html">advmod</a></tt> (276; 4% instances), <tt><a href="ar_pud-dep-compound-prt.html">compound:prt</a></tt> (274; 4% instances), <tt><a href="ar_pud-dep-advcl.html">advcl</a></tt> (212; 3% instances), <tt><a href="ar_pud-dep-conj.html">conj</a></tt> (175; 3% instances), <tt><a href="ar_pud-dep-cc.html">cc</a></tt> (165; 3% instances), <tt><a href="ar_pud-dep-ccomp.html">ccomp</a></tt> (162; 3% instances), <tt><a href="ar_pud-dep-nsubj-pass.html">nsubj:pass</a></tt> (125; 2% instances), <tt><a href="ar_pud-dep-aux.html">aux</a></tt> (90; 1% instances), <tt><a href="ar_pud-dep-obl-tmod.html">obl:tmod</a></tt> (75; 1% instances), <tt><a href="ar_pud-dep-xcomp.html">xcomp</a></tt> (68; 1% instances), <tt><a href="ar_pud-dep-case.html">case</a></tt> (56; 1% instances), <tt><a href="ar_pud-dep-dep.html">dep</a></tt> (36; 1% instances), <tt><a href="ar_pud-dep-csubj.html">csubj</a></tt> (35; 1% instances), <tt><a href="ar_pud-dep-parataxis.html">parataxis</a></tt> (18; 0% instances), <tt><a href="ar_pud-dep-acl.html">acl</a></tt> (13; 0% instances), <tt><a href="ar_pud-dep-iobj.html">iobj</a></tt> (8; 0% instances), <tt><a href="ar_pud-dep-csubj-pass.html">csubj:pass</a></tt> (7; 0% instances), <tt><a href="ar_pud-dep-expl.html">expl</a></tt> (4; 0% instances), <tt><a href="ar_pud-dep-dislocated.html">dislocated</a></tt> (2; 0% instances), <tt><a href="ar_pud-dep-orphan.html">orphan</a></tt> (2; 0% instances), <tt><a href="ar_pud-dep-amod.html">amod</a></tt> (1; 0% instances), <tt><a href="ar_pud-dep-cc-preconj.html">cc:preconj</a></tt> (1; 0% instances), <tt><a href="ar_pud-dep-discourse.html">discourse</a></tt> (1; 0% instances), <tt><a href="ar_pud-dep-nmod.html">nmod</a></tt> (1; 0% instances)
Children of `VERB` nodes belong to 14 different parts of speech: <tt><a href="ar_pud-pos-NOUN.html">NOUN</a></tt> (2305; 37% instances), <tt><a href="ar_pud-pos-PUNCT.html">PUNCT</a></tt> (1148; 18% instances), <tt><a href="ar_pud-pos-VERB.html">VERB</a></tt> (564; 9% instances), <tt><a href="ar_pud-pos-PRON.html">PRON</a></tt> (456; 7% instances), <tt><a href="ar_pud-pos-PROPN.html">PROPN</a></tt> (395; 6% instances), <tt><a href="ar_pud-pos-PART.html">PART</a></tt> (390; 6% instances), <tt><a href="ar_pud-pos-ADP.html">ADP</a></tt> (321; 5% instances), <tt><a href="ar_pud-pos-ADV.html">ADV</a></tt> (237; 4% instances), <tt><a href="ar_pud-pos-CCONJ.html">CCONJ</a></tt> (165; 3% instances), <tt><a href="ar_pud-pos-ADJ.html">ADJ</a></tt> (130; 2% instances), <tt><a href="ar_pud-pos-SCONJ.html">SCONJ</a></tt> (112; 2% instances), <tt><a href="ar_pud-pos-NUM.html">NUM</a></tt> (36; 1% instances), <tt><a href="ar_pud-pos-SYM.html">SYM</a></tt> (5; 0% instances), <tt><a href="ar_pud-pos-X.html">X</a></tt> (1; 0% instances)
| 142.802198 | 2,174 | 0.646018 | yue_Hant | 0.759633 |
db8b6cefc76141e592ce7d3f24cf3b741b7e3a86 | 4,454 | md | Markdown | articles/app-service/environment/app-service-app-service-environment-custom-settings.md | skmspd/azure-docs.ja-jp | 27f5987c209eddccb7e5dd9edc7a3450b54d7b2c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/app-service/environment/app-service-app-service-environment-custom-settings.md | skmspd/azure-docs.ja-jp | 27f5987c209eddccb7e5dd9edc7a3450b54d7b2c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/app-service/environment/app-service-app-service-environment-custom-settings.md | skmspd/azure-docs.ja-jp | 27f5987c209eddccb7e5dd9edc7a3450b54d7b2c | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: App Service Environment のカスタム設定 - Azure
description: App Service Environment のカスタム構成設定
services: app-service
documentationcenter: ''
author: stefsch
manager: nirma
editor: ''
ms.assetid: 1d1d85f3-6cc6-4d57-ae1a-5b37c642d812
ms.service: app-service
ms.workload: na
ms.tgt_pltfrm: na
ms.topic: tutorial
ms.date: 01/16/2018
ms.author: stefsch
ms.custom: seodec18
ms.openlocfilehash: 768e354281aeb5e2143ddb0e190b0f27bf4f4e24
ms.sourcegitcommit: c22327552d62f88aeaa321189f9b9a631525027c
ms.translationtype: HT
ms.contentlocale: ja-JP
ms.lasthandoff: 11/04/2019
ms.locfileid: "73470696"
---
# <a name="custom-configuration-settings-for-app-service-environments"></a>App Service Environment のカスタム構成設定
## <a name="overview"></a>概要
App Service Environment (ASE) は単一の顧客に分離されるため、App Service Environment にのみ適用できる特定の構成設定があります。 この記事では、App Service Environment で使用可能な、固有の各種カスタマイズについて説明します。
App Service 環境がない場合は、 [App Service 環境の作成方法](app-service-web-how-to-create-an-app-service-environment.md)に関するページを参照してください。
App Service Environment のカスタマイズは、新しい **clusterSettings** 属性の配列を使って保存できます。 この属性は、Azure Resource Manager の *hostingEnvironments* エンティティの "Properties" ディクショナリにあります。
次の簡略化された Resource Manager テンプレートのスニペットに、その **clusterSettings** 属性が示されています。
"resources": [
{
"apiVersion": "2015-08-01",
"type": "Microsoft.Web/hostingEnvironments",
"name": ...,
"location": ...,
"properties": {
"clusterSettings": [
{
"name": "nameOfCustomSetting",
"value": "valueOfCustomSetting"
}
],
"workerPools": [ ...],
etc...
}
}
Resource Manager テンプレートに **clusterSettings** 属性を含めて、App Service Environment を更新することができます。
## <a name="use-azure-resource-explorer-to-update-an-app-service-environment"></a>Azure リソース エクスプローラーを使った App Service Environment の更新
App Service Environment は、 [Azure リソース エクスプローラー](https://resources.azure.com)を使って更新することもできます。
1. Resource Explorer で、App Service Environment のノードに移動します (**subscriptions** > **resourceGroups** > **providers** > **Microsoft.Web** > **hostingEnvironments** の順に移動)。 次に、更新する App Service Environment をクリックします。
2. 右側のペインで、上部のツールバーの **[読み取り/書き込み]** をクリックし、リソース エクスプローラーでの対話型の編集を許可します。
3. 青色の **[編集]** ボタンをクリックし、Resource Manager テンプレートを編集可能にします。
4. 右側のペインの一番下までスクロールします。 **clusterSettings** 属性は一番下にあります。ここで、値の入力または更新ができます。
5. **clusterSettings** 属性に、必要な構成値の配列を入力します (またはコピーして貼り付けます)。
6. 右側のペインの上部にある緑色の **[PUT]** ボタンをクリックし、App Service Environment に変更をコミットします。
ただし、変更を送信してから反映されるまでに、App Service Environment 内のフロント エンドの数に 30 分をかけた程度の時間がかかります。
たとえば、App Service Environment に 4 つのフロント エンドがある場合、構成の更新が完了するまでに約 2 時間かかります。 構成の変更がロールアウトされている間は、App Service Environment で他のスケーリング操作や構成の変更操作は実行できません。
## <a name="disable-tls-10-and-tls-11"></a>TLS 1.0 と TLS 1.1 の無効化
TLS の設定をアプリごとに管理したい場合は、[TLS 設定の適用](../configure-ssl-bindings.md#enforce-tls-versions)に関するドキュメントに記載されたガイダンスが参考になります。
ASE のすべてのアプリについて、TLS 1.0 と TLS 1.1 のインバウンド トラフィックをすべて無効にしたい場合は、次の **clusterSettings** エントリを設定してください。
"clusterSettings": [
{
"name": "DisableTls1.0",
"value": "1"
}
],
設定の名前は 1.0 になっていますが、これを構成すると、TLS 1.0 と TLS 1.1 の両方が無効化されます。
## <a name="change-tls-cipher-suite-order"></a>TLS 暗号スイートの順序変更
お客様から寄せられるもう 1 つの質問は、サーバーによってネゴシエートされた暗号のリストを変更できるかどうかということです。これは、以下に示したように **clusterSettings** を変更することで実行できます。 利用できる暗号スイートのリストは、[こちらの MSDN の記事](https://msdn.microsoft.com/library/windows/desktop/aa374757\(v=vs.85\).aspx) で確認できます。
"clusterSettings": [
{
"name": "FrontEndSSLCipherSuiteOrder",
"value": "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384_P256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256_P256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256"
}
],
> [!WARNING]
> SChannel が認識できない間違った値を暗号スイートに設定すると、ご利用のサーバーに対するすべての TLS 通信が機能しなくなります。 この場合は、 *clusterSettings* から **FrontEndSSLCipherSuiteOrder** エントリを削除し、更新された Resource Manager テンプレートを送信して、既定の暗号スイート設定に戻す必要があります。 この機能は慎重に使用してください。
>
>
## <a name="get-started"></a>作業開始
Azure クイック スタート Resource Manager テンプレートのサイトには、 [App Service Environment を作成](https://azure.microsoft.com/documentation/templates/201-web-app-ase-create/)するための基本定義を含むテンプレートが用意されています。
<!-- LINKS -->
<!-- IMAGES -->
| 43.242718 | 282 | 0.739111 | yue_Hant | 0.744003 |
db8b8174014f425f642f141565efda7113568662 | 680 | md | Markdown | maven/archetype/README.md | twolfart/wcm-io-qa-galenium | e253aae4cbc587c8bf17991d829a4b107069ea6b | [
"Apache-2.0"
] | null | null | null | maven/archetype/README.md | twolfart/wcm-io-qa-galenium | e253aae4cbc587c8bf17991d829a4b107069ea6b | [
"Apache-2.0"
] | null | null | null | maven/archetype/README.md | twolfart/wcm-io-qa-galenium | e253aae4cbc587c8bf17991d829a4b107069ea6b | [
"Apache-2.0"
] | null | null | null | Galenium Maven Archetype Project
========================
This project contains a Maven archetype for creating Galenium Projects from scratch.
Run Archetype Project
---------------------
Run the Maven command to add the archetype to your local M2 repository:
`mvn clean install`
Create Galenium Project
------------------------
You can create your Galenium Project with a Maven Command e.g.:
```
mvn archetype:generate
-DarchetypeGroupId=io.wcm.qa
-DarchetypeArtifactId=io.wcm.qa.galenium.archetype
-DarchetypeVersion=0.1.0-SNAPSHOT
-DgroupId=de.foo
-DartifactId=de.foo.bar
-Dversion=1.0-SNAPSHOT
-Dpackage=de.foo.bar.sample
-DprojectName=MyProject
```
| 22.666667 | 84 | 0.695588 | eng_Latn | 0.743236 |
db8bc3d77916abe98f6f1f5113d889d83b858ece | 3,264 | md | Markdown | _posts/2021-05-19-w2v.md | Shiina18/Shiina18.github.io | 9da38ddc4560f963c1d732cd41fb9dd431a9131c | [
"Apache-2.0"
] | null | null | null | _posts/2021-05-19-w2v.md | Shiina18/Shiina18.github.io | 9da38ddc4560f963c1d732cd41fb9dd431a9131c | [
"Apache-2.0"
] | null | null | null | _posts/2021-05-19-w2v.md | Shiina18/Shiina18.github.io | 9da38ddc4560f963c1d732cd41fb9dd431a9131c | [
"Apache-2.0"
] | null | null | null | ---
title: "Word2Vec 简短回顾"
categories:
- Machine Learning
tags: NLP
updated:
comments: true
mathjax: true
---
经典老番, 复习.
CS224n 的 [第一课讲义](https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1204/readings/cs224n-2019-notes01-wordvecs1.pdf) 写得很好, 介绍全面而清晰, 下面的讲法来自 [Speech and Language Processing](https://web.stanford.edu/~jurafsky/slp3/) December 30, 2020 draft. 只讲 skip-gram + negative sampling, 最为简洁.
关于 BERT, [dive into deep learning](http://gluon.ai/chapter_natural-language-processing-pretraining/bert.html) 这里有非常清楚的解释.
<!-- more -->
Word2Vec 字面意思, 将每个单词映射为一个有限维欧氏空间中的向量.
It turns out that dense vectors work better in every NLP task than sparse vectors. While we don't completely understand all the reasons for this, we have some intuitions. 现在神经网络方法的通病, 原因只能靠猜. (1) 参数更少, (2) 向量之间不再互相正交, 更能表示语义.
The intuition of word2vec is that instead of counting how often each word $w$ occurs near, say, apricot, we'll instead train a classifier on a binary prediction task: "Is word $w$ likely to show up near apricot?" We don't actually care about this prediction task; instead **we'll take the learned classifier weights as the word embeddings**. 词向量的来源.
The revolutionary intuition here is that we can just use running text as implicitly supervised training data for such a classifier; a word $s$ that occurs near the target word apricot acts as gold 'correct answer' to the question posed above. 本质是一个浅层二分类网络 (逻辑回归), 而分类则自动由文本提供.
## 分类器
比如文本为
```
blah [c_1 c_2 t c_3 c_4] blah
```
已知中心词预测上下文.
Our goal is to train a classifier such that, given a tuple $(t, c)$ of a target word $t$ paired with a candidate context word $c$, it will return the probability that $c$ is a real context word $\mathbb P(+ \vert t, c)$, 错误则记为 $\mathbb P(- \vert t, c)$.
The intuition of the skipgram model is to base this probability on similarity: a word is likely to occur near the target if its embedding is similar to the target embedding. Skip-gram makes the strong but very useful simplifying **assumption that all context words are independent**. 用内积 $t\cdot c$ 来表示相似度, 再用 sigmoid 函数 $\sigma$ 计算概率
$$
\mathbb P(+ | t, c_{1:m}) = \prod_{i=1}^m \frac{1}{1+\mathrm e^{-t\cdot c_i}},
$$
其中 $c_{1:m} = (c_1, \dots, c_m)$, context window 由 $m$ 个词组成.
## 学习词嵌入
For each of these $(t,c)$ training instances we'll create $k$ (一个参数) negative samples, 从词汇表中采样, 并且排除 $(t, t)$.
采样分布: The noise words are chosen according to their weighted unigram frequency
$$
p_\alpha(w) = \frac{\operatorname{count}^\alpha(w)}
{\sum_{v}\operatorname{count}^\alpha(v)},
$$
其中 $\alpha$ 是一个参数, 常取为 0.75. 它小于 1 的好处是能放大罕见词出现的概率.
我们的目标是最大化正样本中 word pair $(t, c)$ 的相似度, 最小化负样本单词对的相似度
$$
L(\theta) = \sum_{(t, c)\in +} \log \mathbb P(+ | t, c)
+ \sum_{(t, n)\in -} \log \mathbb P(- | t, n).
$$
回忆 $1 - \sigma(x) = \sigma(-x)$, 所以第二个求和式是在最小化负样本单词对的相似度. 负采样的动机是, 否则我们需要对词汇表里所有词计算再求和, 开销太大.
Note that the skip-gram model thus actually learns **two separate embeddings** for each word $w$: the target embedding $t$ and the context embedding $c$. 这些嵌入用矩阵存储, 构成了参数 $\theta$. 通常只保留 target embedding, 不过也可以尝试把两个嵌入加起来或者拼接起来之类的.
> In practice, hierarchical softmax tends to be better for infrequent words, while negative sampling works better for frequent words and lower dimensional vectors. | 45.971831 | 349 | 0.731311 | eng_Latn | 0.954199 |
db8c0817d27ab409f72096596b8afa54fb59348d | 494 | md | Markdown | courses/machine_learning/deepdive/07_structured/serving/application/README.md | ismailbaigteg/python | 50a15a786dbd13d097a3cf89d35a70918ae48b81 | [
"Apache-2.0"
] | 1 | 2019-07-28T10:44:05.000Z | 2019-07-28T10:44:05.000Z | courses/machine_learning/deepdive/07_structured/serving/application/README.md | ismailbaigteg/python | 50a15a786dbd13d097a3cf89d35a70918ae48b81 | [
"Apache-2.0"
] | 1 | 2021-03-26T00:38:05.000Z | 2021-03-26T00:38:05.000Z | courses/machine_learning/deepdive/07_structured/serving/application/README.md | ismailbaigteg/python | 50a15a786dbd13d097a3cf89d35a70918ae48b81 | [
"Apache-2.0"
] | 1 | 2019-07-28T10:44:07.000Z | 2019-07-28T10:44:07.000Z | ## Prerequisites
A deployed babyweight model
## Deploy the AppEngine web application
```shell
$ pip install -r requirements.txt -t lib
$ gcloud app create
$ gcloud app deploy
```
By executing these commands on the Cloud Shell, the project id is automatically
applied to the application and the application URL will be
`https://[project id].appspot.com`.
Now you can access the URL from your browser to use the web application
to predict a baby's weight.

| 24.7 | 79 | 0.753036 | eng_Latn | 0.985698 |
db8d0622bf661fec538a12d128aa310591ac144f | 15,789 | md | Markdown | articles/key-vault/key-vault-hsm-protected-keys.md | lettucebo/azure-content-zhtw | f9aa6105a8900d47dbf27a51fd993c44a9af5b63 | [
"CC-BY-3.0"
] | null | null | null | articles/key-vault/key-vault-hsm-protected-keys.md | lettucebo/azure-content-zhtw | f9aa6105a8900d47dbf27a51fd993c44a9af5b63 | [
"CC-BY-3.0"
] | null | null | null | articles/key-vault/key-vault-hsm-protected-keys.md | lettucebo/azure-content-zhtw | f9aa6105a8900d47dbf27a51fd993c44a9af5b63 | [
"CC-BY-3.0"
] | null | null | null | <properties
pageTitle="如何為 Azure 金鑰保存庫產生並傳輸受 HSM 保護的金鑰 |Microsoft Azure"
description="使用這份文件協助您規劃、產生,並傳輸受 HSM 保護的金鑰,以搭配 Azure 金鑰保存庫使用。"
services="key-vault"
documentationCenter=""
authors="cabailey"
manager="mbaldwin"
tags="azure-resource-manager"/>
<tags
ms.service="key-vault"
ms.workload="identity"
ms.tgt_pltfrm="na"
ms.devlang="na"
ms.topic="article"
ms.date="07/15/2016"
ms.author="cabailey"/>
#如何為 Azure 金鑰保存庫產生並傳輸受 HSM 保護的金鑰
##簡介
為了加強保證,當您使用 Azure 金鑰保存庫時,您可以在硬體安全模組 (HSM) 中匯入或產生無需離開 HSM 界限的金鑰。此案例通常稱為*自備金鑰*或 BYOK。HSM 已通過 FIPS 140-2 Level 2 驗證。Azure 金鑰保存庫使用 Thales nShield 系列 HSM 來保護您的金鑰。
使用本主題中的資訊,協助您規劃、產生然後傳送自己受 HSM 保護的金鑰,以搭配使用 Azure 金鑰保存庫。
此功能不適用於 Azure China。
>[AZURE.NOTE] 如需 Azure 金鑰保存庫的詳細資訊,請參閱[什麼是 Azure 金鑰保存庫?](key-vault-whatis.md)
>
>如需入門教學課程,其中包括建立受 HSM 保護之金鑰的金鑰保存庫,請參閱[開始使用 Azure 金鑰保存庫](key-vault-get-started.md)。
有關產生及透過網際網路傳輸受 HSM 保護之金鑰的詳細資訊:
- 您可以從離線工作站產生金鑰,可減少受攻擊面。
- 此金鑰利用金鑰交換金鑰 (KEK) 加密,且加密狀態會維持到金鑰傳輸至 Azure 金鑰保存庫 HSM 為止。只有加密版本的金鑰會離開原始工作站。
- 工具組會在將您的金鑰繫結至 Azure 金鑰保存庫安全世界的租用戶金鑰上設定屬性。因此,在 Azure 金鑰保存庫 HSM 接收和解密您的金鑰之後,只有這些 HSM 可使用它。無法匯出您的金鑰。這個繫結是由 Thales HSM 強制執行。
- 用來解密金鑰的金鑰互換金鑰 (KEK) 產生於 Azure 金鑰保存庫 HSM 內且不可匯出。HSM 會強制執行使 HSM 外部沒有明確版本的 KEK。此外,工具組包含了來自 Thales 的證明,代表 KEK 不可匯出,且產生於 Thales 製造的正版 HSM 內部。
- 工具組包含了來自 Thales 的證明,代表 Azure 金鑰保存庫安全世界也產生於 Thales 製造的正版 HSM 上。這會向您證明 Microsoft 正在使用正版硬體。
- Microsoft 會在每個地理區域中使用個別的 KEK 與個別的安全世界,以確保您的金鑰只能在您將其加密之區域中的資料中心使用。例如,來自歐洲客戶的金鑰不能在北美或亞洲的資料中心使用。
##Thales HSM 和 Microsoft 服務的詳細資訊
Thales e-Security 是金融服務的資料加密和網路安全性解決方案、高科技、製造業、政府和技術部門的領先全域提供者。透過保護企業及政府資訊的 40 年追蹤記錄,目前規模最大的五間能源和航太公司中有四間都在使用 Thales 解決方案,另外還有 22 個北大西洋公約組織國家也在使用,而且全世界有超過 80% 的付款交易都受其保障。
Microsoft 已與 thales 合作增強 HSM 的開發狀態。這些增強內容可讓您取得裝載服務的典型優勢,而且不用放棄金鑰的控制權。具體而言,這些增強內容可讓 Microsoft 管理 HSM,如此您就不必費心管理。做為雲端服務,Azure 金鑰保存庫無需通知就會相應增加,以符合組織的使用尖峰。在此同時,您的金鑰也會在 Microsoft 的 HSM 內部受到保護:您可以保留金鑰生命週期的控制權,因為您會產生金鑰並將它傳輸給 Microsoft 的 HSM。
##實作 Azure 金鑰保存庫的自備金鑰 (BYOK)
如果您將產生您自己受 HSM 保護的金鑰,然後將它傳輸到 Azure 金鑰保存庫,請使用下列資訊和程序—自備金鑰 (BYOK) 案例。
##BYOK 的必要條件
請參閱下表的必要條件清單以取得 Azure 金鑰保存庫的自備金鑰 (BYOK)。
|需求|詳細資訊|
|---|---|
|Azure 訂用帳戶|若要建立 Azure 金鑰保存庫,您需要 Azure 訂用帳戶:[註冊免費試用](https://azure.microsoft.com/pricing/free-trial/)|
|支援 HSM 的 Azure 金鑰保存庫|如需 Azure 金鑰保存庫的服務層和功能的詳細資訊,請參閱 [Azure 金鑰保存庫價格](https://azure.microsoft.com/pricing/details/key-vault/)網站。|
|Thales HSM、智慧卡和支援軟體|您必須存取 Thales 硬體安全模組和 Thales HSM 的基本操作知識。請參閱 [Thales 硬體安全模組](https://www.thales-esecurity.com/msrms/buy)以取得相容模型的清單,或者如果您沒有 HSM,請購買 HSM。|
|下列硬體和軟體:<ol><li>離線 x64 工作站,最低 Windows 作業系統為 Windows 7,Thales nShield 軟體至少為 11.50 版。<br/><br/>若此工作站執行 Windows 7,您必須[安裝 Microsoft.NET Framework 4.5](http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe)。</li><li>連線到網際網路且具有最低 Windows 作業系統 Windows 7 的工作站。</li><li>擁有至少 16 MB 可用空間的 USB 磁碟機或其他可攜式儲存裝置。</li></ol>|基於安全性理由,建議第一個工作站不要連線到網路。不過,這不會以程式設計的方式強制執行。<br/><br/>請注意,在接下來的指示中,此工作站稱為中斷連線的工作站。</p></blockquote><br/>此外,如果您的租用戶金鑰適用於生產網路,建議您使用第二個個別的工作站下載工具組並上傳租用戶金鑰。但是為了測試目的,您可以使用和第一個工作站相同的工作站。<br/><br/>請注意,在接下來的指示中,此第二個工作站稱為網際網路連線的工作站。</p></blockquote><br/>|
##產生金鑰並將其傳輸至 Azure 金鑰保存庫 HSM
您將使用下列 5 個步驟產生金鑰並將其傳輸至 Azure 金鑰保存庫 HSM:
- [步驟 1:準備網際網路連線的工作站](#step-1-prepare-your-internet-connected-workstation)
- [步驟 2:準備中斷連線的工作站](#step-2-prepare-your-disconnected-workstation)
- [步驟 3:產生您的金鑰](#step-3-generate-your-key)
- [步驟 4:準備要傳輸的金鑰](#step-4-prepare-your-key-for-transfer)
- [步驟 5:將金鑰傳輸至 Azure 金鑰保存庫](#step-5-transfer-your-key-to-azure-key-vault)
## 步驟 1:準備網際網路連線的工作站
在第一個步驟中,請在連線到網際網路的工作站上執行下列程序。
###步驟 1.1:安裝 Azure PowerShell
從網際網路連線的工作站,下載並安裝 Azure PowerShell 模組,其包含 cmdlet 以管理 Azure 金鑰保存庫。這需要得最低版本為 0.8.13。
如需安裝指示,請參閱[如何安裝和設定 Azure PowerShell](../powershell-install-configure.md)。
###步驟 1.2:取得您的 Azure 訂用帳戶識別碼
使用下列命令開始 Azure PowerShell 工作階段,並登入您的 Azure 帳戶:
Add-AzureAccount
在快顯瀏覽器視窗中,輸入您的 Azure 帳戶使用者名稱與密碼。然後,使用 [Get-azuresubscription](https://msdn.microsoft.com/library/azure/dn790366.aspx) 命令:
Get-AzureSubscription
從輸出中,找出您將用於 Azure 金鑰保存庫的訂用帳戶識別碼。您稍後將需要此訂用帳戶識別碼。
請勿關閉 Azure PowerShell 視窗。
###步驟 1.3:下載 Azure 金鑰保存庫的 BYOK 工具組
移至 Microsoft 下載中心並為您的地理區域或 Azure 執行個體[下載 Azure 金鑰保存庫 BYOK 工具組](http://www.microsoft.com/download/details.aspx?id=45345)。使用下列資訊來識別要下載封裝雜湊與其對應的 SHA-256 封裝雜湊︰
---
**北美洲:**
KeyVault-BYOK-Tools-UnitedStates.zip
305F44A78FEB750D1D478F6A0C345B097CD5551003302FA465C73D9497AB4A03
---
**歐洲︰**
KeyVault-BYOK-Tools-Europe.zip
C73BB0628B91471CA7F9ADFCE247561C6016A5103EF1A315D49C3EA23AFC0B9C
---
**亞洲︰**
KeyVault-BYOK-Tools-AsiaPacific.zip
BE9A84B6C76661929F9FDAD627005D892B3B8F9F19F351220BB4F9C356694192
---
**拉丁美洲︰**
KeyVault-BYOK-Tools-LatinAmerica.zip
9E8EE11972DECE8F05CD898AF64C070C375B387CED716FDCB788544AE27D3D23
---
**日本︰**
KeyVault-BYOK-Tools-Japan.zip
E6B88C111D972A02ABA3325F8969C4E36FD7565C467E9D7107635E3DDA11A8B2
---
**澳大利亞:**
KeyVault-BYOK-Tools-Australia.zip
7660D7A675506737857B14F527232BE51DC269746590A4E5AB7D50EDD220675D
---
[**Azure Government:**](https://azure.microsoft.com/features/gov/)
KeyVault-BYOK-Tools-USGovCloud.zip
53801A3043B0F8B4A50E8DC01A935C2BFE61F94EE027445B65C52C1ACC2B5E80
---
**加拿大:**
KeyVault-BYOK-Tools-Canada.zip
A42D9407B490E97693F8A5FA6B60DC1B06B1D1516EDAE7C9A71AA13E12CF1345
---
**德國:**
KeyVault-BYOK-Tools-Germany.zip
4795DA855E027B2CA8A2FF1E7AE6F03F772836C7255AFC68E576410BDD28B48E
---
**印度:**
KeyVault-BYOK-Tools-India.zip
26853511EB767A33CF6CD880E78588E9BBE04E619B17FBC77A6B00A5111E800C
---
若要驗證您已下載之 BYOK 工具組的完整性,請從您的 Azure PowerShell 工作階段,使用 [Get-FileHash](https://technet.microsoft.com/library/dn520872.aspx) Cmdlet。
Get-FileHash KeyVault-BYOK-Tools-*.zip
工具組包含下列各項:
- 具有以 **BYOK-KEK-pkg-** 做為開頭名稱的金鑰互換金鑰 (KEK) 封裝。
- 具有以 **BYOK-SecurityWorld-pkg-** 做為開頭名稱的安全世界封裝。
- 名為 v**erifykeypackage.py** 的 python 指令碼。
- 名為 **KeyTransferRemote.exe** 的命令列可執行檔和相關聯的 DLL。
- Visual C++ 可轉散發套件,名為 **vcredist\_x64.exe**。
將封裝複製到 USB 磁碟機或其他可攜式儲存裝置。
##步驟 2:準備中斷連線的工作站
在第二個步驟中,請在未連線到網路 (網際網路或內部網路) 的工作站上執行下列程序。
###步驟 2.1:準備使用 Thales HSM 的中斷連線工作站
在 Windows 電腦上安裝 nCipher (Thales) 支援軟體,然後將 Thales HSM 附加至該電腦。
確定 Thales 工具位於您的路徑 (**%nfast\_home%\\bin** 和 ** %nfast\_home%\\python\\bin**)。例如,輸入下列內容:
set PATH=%PATH%;”%nfast_home%\bin”;”%nfast_home%\python\bin”
如需詳細資訊,請參閱 Thales HSM 內附的使用者指南。
###步驟 2.2:在中斷連線的工作站上安裝 BYOK 工具組
從 USB 磁碟機或其他可攜式儲存裝置複製 BYOK 工具組封裝,然後執行下列動作:
1. 將檔案從下載的封裝解壓縮至任何資料夾。
2. 從該資料夾執行 vcredist\_x64.exe。
3. 遵循指示以安裝 Visual Studio 2013 的 Visual C++ 執行階段元件。
##步驟 3:產生您的金鑰
在第三個步驟中,請在中斷連線的工作站上執行下列程序。
###步驟 3.1:建立安全世界
啟動命令提示字元並執行 Thales new-world 程式。
new-world.exe --initialize --cipher-suite=DLf1024s160mRijndael --module=1 --acs-quorum=2/3
此程式會在 %NFAST\_KMDATA%\\local\\world 建立**安全世界**檔案,並對應到 C:\\ProgramData\\nCipher\\Key Management Data\\local 資料夾。您可以使用不同的值進行仲裁,但是在我們的範例中,系統會提示您輸入三個空白的卡片和其個別的 pin。然後,任兩張卡片可提供安全世界的完整存取權。這些卡片將成為新安全世界的**系統管理員卡組**。
然後執行以下動作:
- 備份世界檔案。保障和保護世界檔案、系統管理員卡及其 pin,並確定沒有一個人可存取多張卡。
###步驟 3.2:驗證下載的封裝
此步驟為選擇性但建議使用,以便您可以驗證下列項目:
- 工具組中包含的金鑰交換金鑰已從正版 Thales HSM 中產生。
- 工具組中包含的安全世界雜湊已在正版 Thales HSM 中產生。
- 金鑰交換金鑰不可匯出。
>[AZURE.NOTE]若要驗證下載的封裝,HSM 必須連線、開啟電源,而且必須在其上具有安全世界 (如同您剛才所建立的那一個)。
驗證下載的封裝:
1. 根據您的地理區域或 Azure 執行個體嘗試下列其中一個區域,以執行 verifykeypackage.py 指令碼:
- 北美洲:
python verifykeypackage.py -k BYOK-KEK-pkg-NA-1 -w BYOK-SecurityWorld-pkg-NA-1
- 歐洲:
python verifykeypackage.py -k BYOK-KEK-pkg-EU-1 -w BYOK-SecurityWorld-pkg-EU-1
- 亞洲:
python verifykeypackage.py -k BYOK-KEK-pkg-AP-1 -w BYOK-SecurityWorld-pkg-AP-1
- 拉丁美洲:
python verifykeypackage.py -k BYOK-KEK-pkg-LATAM-1 -w BYOK-SecurityWorld-pkg-LATAM-1
- 日本:
python verifykeypackage.py -k BYOK-KEK-pkg-JPN-1 -w BYOK-SecurityWorld-pkg-JPN-1
- 澳大利亞:
python verifykeypackage.py -k BYOK-KEK-pkg-AUS-1 -w BYOK-SecurityWorld-pkg-AUS-1
- 對於 [Azure Government](https://azure.microsoft.com/features/gov/),它會使用美國政府的 Azure 執行個體:
python verifykeypackage.py -k BYOK-KEK-pkg-USGOV-1 -w BYOK-SecurityWorld-pkg-USGOV-1
- 針對加拿大:
python verifykeypackage.py -k BYOK-KEK-pkg-CANADA-1 -w BYOK-SecurityWorld-pkg-CANADA-1
- 針對德國:
python verifykeypackage.py -k BYOK-KEK-pkg-GERMANY-1 -w BYOK-SecurityWorld-pkg-GERMANY-1
- 針對印度︰
python verifykeypackage.py -k BYOK-KEK-pkg-INDIA-1 -w BYOK-SecurityWorld-pkg-INDIA-1
>[AZURE.TIP]Thales 軟體包含 %NFAST\_HOME%\\python\\bin 中的 python
2. 確認您看到下列訊息,表示驗證成功:**Result: SUCCESS**。
此指令碼會驗證簽章者鏈結到 Thales 根金鑰。此根金鑰的雜湊內嵌於指令碼中,而且其值應為 **59178a47 de508c3f 291277ee 184f46c4 f1d9c639**。您也可以造訪 [Thales 網站](http://www.thalesesec.com/)以另行確認此值。
您現在可以開始建立新的金鑰。
###步驟 3.3:建立新的金鑰
使用 Thales **generatekey** 程式產生金鑰。
執行下列命令來產生金鑰:
generatekey --generate simple type=RSA size=2048 protect=module ident=contosokey plainname=contosokey nvram=no pubexp=
當您執行此命令時,請使用下列指示:
- 參數 *protect* 必須如所示般設定為值 **module**。這會建立受模組保護的金鑰。BYOK 工具組不支援受 OCS 保護的金鑰。
- 以任意字串值取代 **ident** 和 **plainname** 的 *contosokey* 值。若要將系統管理負擔降至最低並減少錯誤的風險,建議您同時對兩者使用相同的值。**Ident** 值只能包含數字、連字號和小寫字母。
- 在這個範例中,Pubexp 保留空白 (預設值),但是您可以指定特定值。如需詳細資訊,請參閱 Thales 文件。
此命令會在您的 %NFAST\_KMDATA%\\local 資料夾建立名稱開頭為 **key\_simple\_** 的語彙基元化金鑰檔案,後面接著在命令中指定的 ident。例如:**key\_simple\_contosokey**。此檔案包含已加密的金鑰。
在安全的位置備份此語彙基元化金鑰檔案。
>[AZURE.IMPORTANT] 當您稍後將您的金鑰傳輸至 Azure 金鑰保存庫時,Microsoft 就無法將此金鑰匯出給您,因此,請務必安全地備份您的金鑰和安全世界。如需備份金鑰的指引及最佳作法,請連絡 Thales。
您現在已準備好將金鑰傳輸至 Azure 金鑰保存庫。
##步驟 4:準備要傳輸的金鑰
在第四個步驟中,請在中斷連線的工作站上執行下列程序。
###步驟 4.1:使用降低權限建立金鑰的複本
若要減少金鑰的權限,請從命令提示字元,根據您的地理區域或 Azure 執行個體,執行下列其中一個區域:
- 北美洲:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-NA-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-NA-1
- 歐洲:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-EU-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-EU-1
- 亞洲:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-AP-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-AP-1
- 拉丁美洲:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-LATAM-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-LATAM-1
- 日本:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-JPN-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-JPN-1
- 澳大利亞:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-AUS-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-AUS-1
- 對於 [Azure Government](https://azure.microsoft.com/features/gov/),它會使用美國政府的 Azure 執行個體:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-USGOV-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-USGOV-1
- 針對加拿大:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-CANADA-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-CANADA-1
- 針對德國:
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-GERMANY-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-GERMANY-1
- 針對印度︰
KeyTransferRemote.exe -ModifyAcls -KeyAppName simple -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-INDIA-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-INDIA-1
當您執行此命令時,請以您從[產生您的金鑰](#step-3-generate-your-key)步驟的**步驟 3.3:建立新的金鑰**中指定的相同值取代 *contosokey*。
系統會要求您插入您的安全世界系統管理員卡。
此命令完成時,您會看到 **Result: SUCCESS**,而降低權限的金鑰複本會在名為 key\_xferacId\_<contosokey> 的檔案中。
###步驟 4.2:檢查金鑰的新複本
(選擇性) 執行 Thales 公用程式來確認新金鑰的最低權限:
- aclprint.py:
"%nfast_home%\bin\preload.exe" -m 1 -A xferacld -K contosokey "%nfast_home%\python\bin\python" "%nfast_home%\python\examples\aclprint.py"
- kmfile-dump.exe:
"%nfast_home%\bin\kmfile-dump.exe" "%NFAST_KMDATA%\local\key_xferacld_contosokey"
當您執行這些命令時,請以您從[產生您的金鑰](#step-3-generate-your-key)步驟的**步驟 3.3:建立新的金鑰**指定的相同值取代 contosokey。
###步驟 4.3:使用 Microsoft 的金鑰交換金鑰來加密您的金鑰
根據您的地理區域或 Azure 執行個體,執行下列其中一個命令:
- 北美洲:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-NA-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-NA-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 歐洲:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-EU-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-EU-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 亞洲:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-AP-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-AP-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 拉丁美洲:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-LATAM-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-LATAM-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 日本:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-JPN-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-JPN-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 澳大利亞:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-AUS-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-AUS-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 對於 [Azure Government](https://azure.microsoft.com/features/gov/),它會使用美國政府的 Azure 執行個體:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-USGOV-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-USGOV-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 針對加拿大:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-CANADA-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-CANADA-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 針對德國:
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-GERMANY-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-GERMANY-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
- 針對印度︰
KeyTransferRemote.exe -Package -KeyIdentifier contosokey -ExchangeKeyPackage BYOK-KEK-pkg-INDIA-1 -NewSecurityWorldPackage BYOK-SecurityWorld-pkg-INDIA-1 -SubscriptionId SubscriptionID -KeyFriendlyName ContosoFirstHSMkey
當您執行此命令時,請使用下列指示:
- 請以您在[產生您的金鑰](#step-3-generate-your-key)步驟的**步驟 3.3:建立新的金鑰**中用來產生金鑰的識別碼取代 *contosokey*。
- 以包含金鑰保存庫的 Azure 訂用帳戶識別碼取代 *SubscriptionID*。您先前已在**步驟 1.2:取得 Azure 訂用帳戶識別碼**中從[準備網際網路連線的工作站](#step-1-prepare-your-internet-connected-workstation)步驟擷取過這個值。
- 以用於輸出檔案名稱的標籤取代 *ContosoFirstHSMKey*。
當此動作成功完成時,會顯示 **Result: SUCCESS**,而且目前的資料夾中會有新的檔案,其名稱如下:TransferPackage-*ContosoFirstHSMkey*.byok
###步驟 4.4:將金鑰傳輸封裝複製到網際網路連線的工作站
使用 USB 磁碟機或其他可攜式儲存裝置,將上一個步驟的輸出檔案 (KeyTransferPackage-ContosoFirstHSMkey.byok) 複製到網際網路連線的工作站。
##步驟 5:將金鑰傳輸至 Azure 金鑰保存庫
在最後一個步驟中,在網際網路連線的工作站上,使用 [Add-AzureKeyVaultKey](https://msdn.microsoft.com/library/azure/dn868048.aspx) Cmdlet 來上傳您從中斷連線的工作站複製到 Azure 金鑰保存庫 HSM 的金鑰傳輸封裝:
Add-AzureKeyVaultKey -VaultName 'ContosoKeyVaultHSM' -Name 'ContosoFirstHSMkey' -KeyFilePath 'c:\TransferPackage-ContosoFirstHSMkey.byok' -Destination 'HSM'
如果上傳成功,就會顯示您剛才加入之金鑰的屬性。
##後續步驟
您現在可以在您的金鑰保存庫中使用這個受 HSM 保護的金鑰。如需詳細資訊,請參閱[開始使用 Azure 金鑰保存庫](key-vault-get-started.md)教學課程中的**如果您想要使用硬體安全模組 (HSM)** 一節。
<!---HONumber=AcomDC_0720_2016--> | 36.380184 | 610 | 0.775097 | yue_Hant | 0.963845 |
db8d73c0a5b3866bee75d18ae39b02a731e86b4c | 5,375 | md | Markdown | docs/relational-databases/system-catalog-views/sys-service-broker-endpoints-transact-sql.md | v-thepet/sql-docs | 487ce4c1584d377b26ce4ced54c3107efcd75f8e | [
"CC-BY-4.0",
"MIT"
] | 1 | 2019-05-04T19:57:42.000Z | 2019-05-04T19:57:42.000Z | docs/relational-databases/system-catalog-views/sys-service-broker-endpoints-transact-sql.md | jzabroski/sql-docs | 34be3e3e656de711b4c7a09274c715b23b451014 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/relational-databases/system-catalog-views/sys-service-broker-endpoints-transact-sql.md | jzabroski/sql-docs | 34be3e3e656de711b4c7a09274c715b23b451014 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-01-13T23:26:30.000Z | 2021-01-13T23:26:30.000Z | ---
title: "sys.service_broker_endpoints (Transact-SQL) | Microsoft Docs"
ms.custom: ""
ms.date: "06/10/2016"
ms.prod: "sql-non-specified"
ms.reviewer: ""
ms.suite: ""
ms.technology:
- "database-engine"
ms.tgt_pltfrm: ""
ms.topic: "language-reference"
f1_keywords:
- "sys.service_broker_endpoints_TSQL"
- "service_broker_endpoints"
- "service_broker_endpoints_TSQL"
- "sys.service_broker_endpoints"
dev_langs:
- "TSQL"
helpviewer_keywords:
- "sys.service_broker_endpoints catalog view"
ms.assetid: 6979ec9b-0043-411e-aafb-0226fa26c5ba
caps.latest.revision: 51
author: "JennieHubbard"
ms.author: "jhubbard"
manager: "jhubbard"
ms.workload: "Inactive"
---
# sys.service_broker_endpoints (Transact-SQL)
[!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx_md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)]
This catalog view contains one row for the Service Broker endpoint. For every row in this view, there is a corresponding row with the same **endpoint_id** in the **sys.tcp_endpoints** view that contains the TCP configuration metadata. TCP is the only allowed protocol for Service Broker.
|Column name|Data type|Description|
|-----------------|---------------|-----------------|
|**\<inherited columns>**|**--**|Inherits columns from [sys.endpoints (Transact-SQL)](../../relational-databases/system-catalog-views/sys-endpoints-transact-sql.md).|
|**is_message_forwarding_enabled**|**bit**|Does endpoint support message forwarding. This is initially set to **0** (disabled). Not NULLABLE.|
|**message_forwarding_size**|**int**|The maximum number of megabytes of **tempdb** space allowed to be used for messages being forwarded. This is initially set to **10**. Not NULLABLE.|
|**connection_auth**|**tinyint**|The type of connection authentication required for connections to this endpoint, one of:<br /><br /> **1** - NTLM<br /><br /> **2** - KERBEROS<br /><br /> **3** - NEGOTIATE<br /><br /> **4** - CERTIFICATE<br /><br /> **5** - NTLM, CERTIFICATE<br /><br /> **6** - KERBEROS, CERTIFICATE<br /><br /> **7** - NEGOTIATE, CERTIFICATE<br /><br /> **8** - CERTIFICATE, NTLM<br /><br /> **9** - CERTIFICATE, KERBEROS<br /><br /> **10** - CERTIFICATE, NEGOTIATE<br /><br /> Not NULLABLE.|
|**connection_auth_desc**|**nvarchar(60)**|Description of the type of connection authentication required for connections to this endpoint, one of:<br /><br /> NTLM<br /><br /> KERBEROS<br /><br /> NEGOTIATE<br /><br /> CERTIFICATE<br /><br /> NTLM, CERTIFICATE<br /><br /> KERBEROS, CERTIFICATE<br /><br /> NEGOTIATE, CERTIFICATE<br /><br /> CERTIFICATE, NTLM<br /><br /> CERTIFICATE, KERBEROS<br /><br /> CERTIFICATE, NEGOTIATE<br /><br /> NULLABLE.|
|**certificate_id**|**int**|ID of certificate used for authentication, if any.<br /><br /> 0 = Windows Authentication is being used.|
|**encryption_algorithm**|**tinyint**|Encryption algorithm. The following are the possible values with their descriptions and corresponding DDL options.<br /><br /> **0** : NONE. Corresponding DDL option: Disabled.<br /><br /> **1** : RC4. Corresponding DDL option: {Required | Required algorithm RC4}.<br /><br /> **2** : AES. Corresponding DDL option: Required Algorithm AES.<br /><br /> **3** : NONE, RC4. Corresponding DDL option: {Supported | Supported Algorithm RC4}.<br /><br /> **4** : NONE, AES. Corresponding DDL option: Supported Algorithm AES.<br /><br /> **5** : RC4, AES. Corresponding DDL option: Required Algorithm RC4 AES.<br /><br /> **6** : AES, RC4. Corresponding DDL option: Required Algorithm AES RC4.<br /><br /> **7** : NONE, RC4, AES. Corresponding DDL option: Supported Algorithm RC4 AES.<br /><br /> **8** : NONE, AES, RC4. Corresponding DDL option: Supported Algorithm AES RC4.<br /><br /> Not NULLABLE.|
|**encryption_algorithm_desc**|**nvarchar(60)**|Encryption algorithm description. The possible values and their corresponding DDL options are listed below:<br /><br /> NONE : Disabled<br /><br /> RC4 : {Required | Required Algorithm RC4}<br /><br /> AES : Required Algorithm AES<br /><br /> NONE, RC4 : {Supported | Supported Algorithm RC4}<br /><br /> NONE, AES : Supported Algorithm AES<br /><br /> RC4, AES : Required Algorithm RC4 AES<br /><br /> AES, RC4 : Required Algorithm AES RC4<br /><br /> NONE, RC4, AES : Supported Algorithm RC4 AES<br /><br /> NONE, AES, RC4 : Supported Algorithm AES RC4<br /><br /> NULLABLE.|
## Remarks
> [!NOTE]
> The RC4 algorithm is only supported for backward compatibility. New material can only be encrypted using RC4 or RC4_128 when the database is in compatibility level 90 or 100. (Not recommended.) Use a newer algorithm such as one of the AES algorithms instead. In [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] and later versions, material encrypted using RC4 or RC4_128 can be decrypted in any compatibility level.
## Permissions
[!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md).
## See Also
[ALTER ENDPOINT (Transact-SQL)](../../t-sql/statements/alter-endpoint-transact-sql.md)
[CREATE ENDPOINT (Transact-SQL)](../../t-sql/statements/create-endpoint-transact-sql.md)
| 94.298246 | 950 | 0.687628 | eng_Latn | 0.623376 |
db8d7573dbcca2fd6dd99c70a19ed9d2f5380e51 | 992 | md | Markdown | ch14/readme.md | wolf-nest/study_golang | 29134f07d7958f46629a18d35dce5ea04e970064 | [
"MIT"
] | 1 | 2021-02-05T02:57:27.000Z | 2021-02-05T02:57:27.000Z | ch14/readme.md | wolf-nest/study_golang | 29134f07d7958f46629a18d35dce5ea04e970064 | [
"MIT"
] | null | null | null | ch14/readme.md | wolf-nest/study_golang | 29134f07d7958f46629a18d35dce5ea04e970064 | [
"MIT"
] | null | null | null | # Go 的错误机制
*与其它主要编程语言的差异*
1. 没有异常机制
2. error类型实现了 error 接口
```$go
type error interface{
Error() string
}
```
3. 可以通过errors.New 来快速创建错误实例
` errors.New(n must be in the range [0,10]) `
## 最佳实践
1. 定义不同的错误变量,以便于判定错误类型
```$go
var LessThanTwoError = errors.New("n must be greater than 2")
var GreaterThanHundredError = errors.New("n must be less than 100")
....
func TestGetFibonacci(t *testing.T) {
if list, err := GetFibonacci(-5); err != nil {
if err == LessThanTwoError {
t.Error("Need a larger number.")
}
if err == GreaterThanHundredError {
t.Error("Need a less number.")
}
} else {
t.Log(list)
}
}
```
2. 及早失败 避免嵌套
## Panic
* panic 用于不可以恢复的错误
* panic 退出前会执行 defer 指定的内容
## Panic vs os.Exit
* os.Exit 退出时不会调用 defer 指定的函数
* os.Exit 退出时不输出当前调用栈信息
## 最常见的“错误恢复”
```
defer func(){
if err := recover(); err !=nil {
log.Error("recovered panic", err)
}
}()
```
## 当心! recover 成为恶魔😈
* 形成僵尸服务进程,导致health check 失效。
* "Let it Ceash!" 往往是我们恢复不正确性错误的最好方法
| 17.103448 | 68 | 0.648185 | yue_Hant | 0.328479 |
db8d7734ef1e4065edd4397fca36a318e62b8072 | 703 | md | Markdown | catalog/kimari-no-nai-kuni/en-US_kimari-no-nai-kuni.md | htron-dev/baka-db | cb6e907a5c53113275da271631698cd3b35c9589 | [
"MIT"
] | 3 | 2021-08-12T20:02:29.000Z | 2021-09-05T05:03:32.000Z | catalog/kimari-no-nai-kuni/en-US_kimari-no-nai-kuni.md | zzhenryquezz/baka-db | da8f54a87191a53a7fca54b0775b3c00f99d2531 | [
"MIT"
] | 8 | 2021-07-20T00:44:48.000Z | 2021-09-22T18:44:04.000Z | catalog/kimari-no-nai-kuni/en-US_kimari-no-nai-kuni.md | zzhenryquezz/baka-db | da8f54a87191a53a7fca54b0775b3c00f99d2531 | [
"MIT"
] | 2 | 2021-07-19T01:38:25.000Z | 2021-07-29T08:10:29.000Z | # Kimari no Nai Kuni
- **type**: ova
- **episodes**: 1
- **original-name**: きまりのないくに
- **start-date**: 2001-01-20
- **rating**: G - All Ages
## Tags
## Sinopse
Kiriko likes doing fun things even if it meant breaking the rules. One day they wake up and find the world different, there are no rules! But it's horrible, Kiriko realizes just how terrible and lonely it is in a world full of anarchy. From now on they promise to follow the rules, and in doing so, Kiriko makes new friends.
## Links
- [My Anime list](https://myanimelist.net/anime/36323/Kimari_no_Nai_Kuni)
- [Official Site](http://www.pref.kagawa.lg.jp/content/etc/subsite/dowaseisaku/video/vhs/human_rights/index.shtml)
| 37 | 324 | 0.714083 | eng_Latn | 0.918676 |
db8e13c6c9e775d6e95c9ada54a4bdb925f687cb | 352 | md | Markdown | services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md | yupwei68/azure-sdk-for-go | 57dce2697f80c8efc56dea8dbf26be6321b36fee | [
"MIT"
] | 2 | 2021-11-01T08:07:49.000Z | 2021-11-09T10:46:44.000Z | services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md | smooth80/azure-sdk-for-go | c68b43cc27b8ab4bebf2e8b4b5ff3ca47b4ed887 | [
"MIT"
] | null | null | null | services/resources/mgmt/2020-05-01/managementgroups/CHANGELOG.md | smooth80/azure-sdk-for-go | c68b43cc27b8ab4bebf2e8b4b5ff3ca47b4ed887 | [
"MIT"
] | null | null | null | # Change History
## Additive Changes
### New Funcs
1. CheckNameAvailabilityResult.MarshalJSON() ([]byte, error)
1. CreateManagementGroupChildInfo.MarshalJSON() ([]byte, error)
1. OperationDisplayProperties.MarshalJSON() ([]byte, error)
1. OperationListResult.MarshalJSON() ([]byte, error)
1. TenantBackfillStatusResult.MarshalJSON() ([]byte, error)
| 29.333333 | 63 | 0.764205 | yue_Hant | 0.432764 |
db8f3326f15a9e183b568277710479e578a55e70 | 1,310 | md | Markdown | workshop/content/20-create-project/100-cdk-init.md | leepa/aws-cdk-intro-workshop | 55730905bb40552783be57867ca7d075f5339828 | [
"MIT-0"
] | null | null | null | workshop/content/20-create-project/100-cdk-init.md | leepa/aws-cdk-intro-workshop | 55730905bb40552783be57867ca7d075f5339828 | [
"MIT-0"
] | null | null | null | workshop/content/20-create-project/100-cdk-init.md | leepa/aws-cdk-intro-workshop | 55730905bb40552783be57867ca7d075f5339828 | [
"MIT-0"
] | null | null | null | +++
title = "cdk init"
weight = 100
+++
## Create project directory
Create an empty directory on your system:
```console
mkdir cdk-workshop && cd cdk-workshop
```
## cdk init
We will use `cdk init` to create a new TypeScript CDK project:
```console
cdk init sample-app --language typescript
```
Output should look like this (you can safely ignore warnings about
initialization of a git repository, this probably means you don't have git
installed, which is fine for this workshop):
```
Applying project template app for typescript
Initializing a new git repository...
Executing npm install...
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
# Useful commands
* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template
```
As you can see, it shows us a bunch of useful commands to get us started.
## See Also
- [AWS CDK Command Line Toolkit (cdk) in the AWS CDK User Guide](https://docs.aws.amazon.com/CDK/latest/userguide/tools.html) | 27.87234 | 125 | 0.734351 | eng_Latn | 0.979234 |
db8f376629d741bf379ef4b1bc5db6c4f0586b3c | 99 | md | Markdown | README.md | alaukiknpant/personal-website | 62d8096532f88d2efd02dc4900d9f276f8a532fe | [
"MIT"
] | null | null | null | README.md | alaukiknpant/personal-website | 62d8096532f88d2efd02dc4900d9f276f8a532fe | [
"MIT"
] | null | null | null | README.md | alaukiknpant/personal-website | 62d8096532f88d2efd02dc4900d9f276f8a532fe | [
"MIT"
] | null | null | null | ## My personal website
> Adapted from[https://agusmakmun.github.io](https://agusmakmun.github.io)
| 24.75 | 74 | 0.747475 | yue_Hant | 0.244813 |
db8f4a6cd5e720ccb8684f1dad0027aab0c37a97 | 3,181 | md | Markdown | README.md | ota-meshi/svelte-adapter-ghpages | 4f36f613d1ccae23e1c82aac883bd9c81944e844 | [
"MIT"
] | null | null | null | README.md | ota-meshi/svelte-adapter-ghpages | 4f36f613d1ccae23e1c82aac883bd9c81944e844 | [
"MIT"
] | 1 | 2021-12-12T23:49:22.000Z | 2022-01-17T05:49:45.000Z | README.md | ota-meshi/svelte-adapter-ghpages | 4f36f613d1ccae23e1c82aac883bd9c81944e844 | [
"MIT"
] | null | null | null | # svelte-adapter-ghpages
SvelteKit adapter for gh-pages
| :warning: WARNING: this project is considered to be in BETA until SvelteKit is available for general use and the Adapter API is stable! |
| --------------------------------------------------------------------------------------------------------------------------------------- |
[](https://www.npmjs.com/package/svelte-adapter-ghpages)
[](https://www.npmjs.com/package/svelte-adapter-ghpages)
[](http://www.npmtrends.com/svelte-adapter-ghpages)
[](http://www.npmtrends.com/svelte-adapter-ghpages)
[](http://www.npmtrends.com/svelte-adapter-ghpages)
[](http://www.npmtrends.com/svelte-adapter-ghpages)
[](http://www.npmtrends.com/svelte-adapter-ghpages)
[](https://github.com/ota-meshi/svelte-adapter-ghpages/actions?query=workflow%3ACI)
[](https://coveralls.io/github/ota-meshi/svelte-adapter-ghpages?branch=main)
## 📛 Features
This is an adapter for the [SvelteKit].
This adapter will generate `404.html` in addition to the files generated by [@sveltejs/adapter-static] to work well with GitHub Pages.
## 💿 Installation
```bash
npm install --save-dev svelte-adapter-ghpages
```
## 📖 Usage
Add it to `svelte.config.js`
```js
// svelte.config.js
import adapterGhpages from "svelte-adapter-ghpages";
/** @type {import('@sveltejs/kit').Config} */
const config = {
// ...
kit: {
// ...
paths: {
base: "/your-repo-name",
},
// ...
adapter: adapterGhpages(
// default options are shown
pages: 'build',
assets: 'build',
fallback: null
),
// ...
},
};
```
Add `404.svelte` to the routes directory.
For example: `src/routes/404.svelte`
```svelte
<h1>404</h1>
<blockquote>
<p>Not Found</p>
</blockquote>
```
`404.svelte` will be placed as `404.html` when you run `npm run build`.
[sveltekit]: https://kit.svelte.dev/
[@sveltejs/adapter-static]: https://github.com/sveltejs/kit/tree/master/packages/adapter-static
### Options
#### `pages`, `assets`, `fallback`
See [https://github.com/sveltejs/kit/tree/master/packages/adapter-static#pages](https://github.com/sveltejs/kit/tree/master/packages/adapter-static#pages).
## :beers: Contributing
Welcome contributing!
Please use GitHub's Issues/PRs.
## :lock: License
See the [LICENSE](LICENSE) file for license rights and limitations (MIT).
| 36.147727 | 260 | 0.689091 | kor_Hang | 0.165572 |
db8f66bc977ab9742a2e054be4a3e9c7bfe55541 | 1,509 | md | Markdown | metrics/scripts/README.md | ParthDesai/solana | bdda79343e8d854b1d4d9217b91b1ce26ae23021 | [
"Apache-2.0"
] | 1 | 2019-09-18T14:14:12.000Z | 2019-09-18T14:14:12.000Z | metrics/scripts/README.md | ParthDesai/solana | bdda79343e8d854b1d4d9217b91b1ce26ae23021 | [
"Apache-2.0"
] | null | null | null | metrics/scripts/README.md | ParthDesai/solana | bdda79343e8d854b1d4d9217b91b1ce26ae23021 | [
"Apache-2.0"
] | null | null | null |
This directory contains scripts to manage a local instance of [InfluxDB OSS](https://docs.influxdata.com/influxdb/v1.6/) and [Grafana](https://grafana.com/docs/v5.2/)
### Setup
Start the local metric services:
`$ ./start.sh`
Metrics are enabled on a per-shell basis which means you must `source` the
following scripts in each shell in which you start an application you wish to
collect metrics from. For example, if running a Solana validator you must run
`source ./enable.sh` before starting the node:
`$ source ./enable.sh`
Once metrics have been started and you have an application running you can view the metrics at:
http://localhost:3000/dashboards
To test that things are working correctly you can send a test airdrop data point and then check the
metrics dashboard:
`$ ./test.sh`
Stop metric services:
`$ ./stop.sh`
### InfluxDB CLI
You may find it useful to install the InfluxDB client for
adhoc metrics collection/viewing
* Linux - `sudo apt-get install influxdb-client`
* macOS - `brew install influxdb`
Simple example of pulling all airdrop measurements out of the `testnet` database:
```sh
$ influx -database testnet -username read -password read -execute 'SELECT * FROM "drone-airdrop"'
```
Reference: https://docs.influxdata.com/influxdb/v1.5/query_language/
### Monitoring
To monitor activity, run one of:
```sh
$ docker logs -f influxdb
$ docker logs -f grafana
```
### Reference
* https://hub.docker.com/_/influxdata-influxdb
* https://hub.docker.com/r/grafana/grafana
| 26.473684 | 166 | 0.749503 | eng_Latn | 0.944198 |
db8f9ae72e534d8a2feaac76abff6c6ee345d243 | 7,191 | md | Markdown | articles/active-directory/hybrid/concept-adsync-service-account.md | changeworld/azure-docs.nl-nl | bdaa9c94e3a164b14a5d4b985a519e8ae95248d5 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/active-directory/hybrid/concept-adsync-service-account.md | changeworld/azure-docs.nl-nl | bdaa9c94e3a164b14a5d4b985a519e8ae95248d5 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/active-directory/hybrid/concept-adsync-service-account.md | changeworld/azure-docs.nl-nl | bdaa9c94e3a164b14a5d4b985a519e8ae95248d5 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: 'Azure AD Connect: ADSync-service-account | Microsoft Docs'
description: In dit onderwerp vindt het account van de service ADSync en aanbevolen procedures met betrekking tot het account.
services: active-directory
documentationcenter: ''
author: billmath
manager: daveba
editor: ''
ms.service: active-directory
ms.workload: identity
ms.tgt_pltfrm: na
ms.devlang: na
ms.topic: reference
ms.date: 06/27/2019
ms.subservice: hybrid
ms.author: billmath
ms.collection: M365-identity-device-management
ms.openlocfilehash: f228da5afc5998d8fa59ce2d720cec4c9f955b67
ms.sourcegitcommit: f811238c0d732deb1f0892fe7a20a26c993bc4fc
ms.translationtype: MT
ms.contentlocale: nl-NL
ms.lasthandoff: 06/29/2019
ms.locfileid: "67478717"
---
# <a name="adsync-service-account"></a>ADSync-serviceaccount
Azure AD Connect installeert een on-premises-service die wordt georganiseerd synchronisatie tussen Active Directory en Azure Active Directory. De synchronisatieservice van Microsoft Azure AD Sync (ADSync) wordt uitgevoerd op een server in uw on-premises omgeving. De referenties voor de service worden ingesteld in de Express-installaties standaard maar kunnen worden aangepast om te voldoen aan de beveiligingsvereisten van uw organisatie. Deze referenties worden niet gebruikt om verbinding maken met uw on-premises-forests of Azure Active Directory.
De ADSync kiezen is-serviceaccount een belangrijke planning beslissing voordat u Azure AD Connect installeert. Elke poging de referenties wijzigen nadat de installatie van de service niet kan worden gestart, zal leiden verlies van toegang tot de synchronisatiedatabase en niet kan worden geverifieerd met uw verbonden mappen (Azure- en AD DS). Er is geen synchronisatie wordt uitgevoerd totdat de oorspronkelijke referenties zijn hersteld.
## <a name="the-default-adsync-service-account"></a>Het standaardaccount ADSync-service
Wanneer uitvoert op een lidserver, is de service AdSync wordt uitgevoerd in de context van een Virtual Service Account (leverancierspecifiek Kenmerk). Een aangepaste service-account is vanwege een productbeperking gemaakt wanneer op een domeincontroller is geïnstalleerd. Als het serviceaccount van de Express-instellingen niet aan de beveiligingsvereisten van uw organisatie, kunt u Azure AD Connect implementeren door de optie aanpassen te kiezen. Kies vervolgens de optie voor service-account die voldoet aan de vereisten van uw organisatie.
>[!NOTE]
>Het standaard serviceaccount wanneer geïnstalleerd op een domeincontroller is van het formulier Domain\AAD_InstallationIdentifier. Het wachtwoord voor dit account wordt willekeurig gegenereerd en geeft de grote uitdagingen voor de rotatie van herstel en het wachtwoord. Microsoft raadt u aan het aanpassen van de serviceaccount tijdens de initiële installatie op een domeincontroller als een zelfstandig gebruiken of een groep beheerd serviceaccount (sMSA / gMSA)
|Azure AD Connect-locatie|Service-account gemaakt|
|-----|-----|
|Lidserver|NT-SERVICE\ADSync|
|Domeincontroller|Domain\AAD_74dc30c01e80 (see note)|
## <a name="custom-adsync-service-accounts"></a>Aangepaste ADSync-service-accounts
Microsoft adviseert het uitvoeren van de ADSync-service in de context van een Virtual Service Account of een zelfstandige of beheerd serviceaccount. De domeinbeheerder mogelijk ook voor kiezen om te maken van een service-account ingericht om te voldoen aan de beveiligingsvereisten voor uw specifieke organisatie. Voor het aanpassen van het serviceaccount dat tijdens de installatie gebruikt, kiest u de optie aanpassen op de pagina van de Express-instellingen hieronder. De volgende opties zijn beschikbaar:
- Standaard-account: Azure AD Connect wordt ingericht op het serviceaccount, zoals hierboven beschreven
- beheerd serviceaccount: gebruik van een zelfstandige of groepen beheerde Serviceaccounts die zijn ingericht door uw beheerder
- domeinaccount: gebruik een domein-serviceaccount die door de beheerder is ingericht


## <a name="diagnosing-adsync-service-account-changes"></a>Accountwijzigingen ADSync-service vaststellen
De referenties voor de service ADSync wijzigen na installatie tot de service niet starten leiden zal, verliezen toegang tot de synchronisatiedatabase en niet kan worden geverifieerd met uw verbonden mappen (Azure- en AD DS). Verlenen toegang tot de database naar de nieuwe ADSync-service-account is onvoldoende om van dit probleem te herstellen. Er is geen synchronisatie wordt uitgevoerd totdat de oorspronkelijke referenties zijn hersteld.
De ADSync-service geeft een niveau foutbericht wordt weergegeven in het gebeurtenislogboek wanneer deze kan niet worden gestart. De inhoud van het bericht varieert afhankelijk van of de ingebouwde database (localdb) of het volledige SQL in gebruik is. Hier volgen enkele voorbeelden van de logboekgegevens van gebeurtenissen die mogelijk aanwezig zijn.
### <a name="example-1"></a>Voorbeeld 1
De versleutelingssleutels AdSync-service kunnen niet worden gevonden en is opnieuw gemaakt. Synchronisatie wordt niet uitgevoerd totdat dit probleem is opgelost.
Het oplossen van dit probleem het Microsoft Azure AD Sync versleutelingssleutels niet meer toegankelijk als de AdSync-service aanmelden referenties worden gewijzigd. Als de referenties zijn gewijzigd, gebruikt u de Services-toepassing te wijzigen van het account aanmelden terug naar de oorspronkelijk geconfigureerde waarde (ex. NT-SERVICE\AdSync) en de service opnieuw. Hiermee wordt onmiddellijk juiste werking van de service AdSync hersteld.
Raadpleeg de volgende [artikel](https://go.microsoft.com/fwlink/?linkid=2086764) voor meer informatie.
### <a name="example-2"></a>Voorbeeld 2
De service is niet starten omdat een verbinding met de lokale database (localdb) kan niet worden gemaakt.
Het oplossen van dit probleem de Microsoft Azure AD Sync-service, verliest machtiging voor toegang tot de provider van de lokale database als service AdSync aanmelden referenties worden gewijzigd. Als de referenties zijn gewijzigd de Services-toepassing gebruiken om te wijzigen van het account aanmelden terug naar de oorspronkelijk geconfigureerde waarde (ex. NT-SERVICE\AdSync) en de service opnieuw. Hiermee wordt onmiddellijk juiste werking van de service AdSync hersteld.
Raadpleeg de volgende [artikel](https://go.microsoft.com/fwlink/?linkid=2086764) voor meer informatie.
Aanvullende Details van die de gegevens van de volgende fout is geretourneerd door de provider:
```
OriginalError=0x80004005 OLEDB Provider error(s):
Description = 'Login timeout expired'
Failure Code = 0x80004005
Minor Number = 0
Description = 'A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.'
```
## <a name="next-steps"></a>Volgende stappen
Lees meer over het [integreren van uw on-premises identiteiten met Azure Active Directory](whatis-hybrid-identity.md). | 84.6 | 555 | 0.819497 | nld_Latn | 0.999458 |
db90f733880980818114968c69edd4aa699b446b | 587 | md | Markdown | README.md | haja-k/hydro-telemetry-anomaly-detection-lstm | d161e32698497779269fa96379dbbe40e6df33f4 | [
"MIT"
] | null | null | null | README.md | haja-k/hydro-telemetry-anomaly-detection-lstm | d161e32698497779269fa96379dbbe40e6df33f4 | [
"MIT"
] | null | null | null | README.md | haja-k/hydro-telemetry-anomaly-detection-lstm | d161e32698497779269fa96379dbbe40e6df33f4 | [
"MIT"
] | null | null | null | # hydro-telemetry-anomaly-detection-lstm
Detecting anomaly in different water waves using LSTM (long term short memory) algorithm
### Getting Started
1. create virtual environment
- `python3 -m venv lstm`
2. activate the virtual environment
- `source lstm/bin/activate`
3. install packages required from requirements.txt
- `pip install -r requirements.txt`
4. get data from database using the credentials provided by admin by running **Query.py** file
5. clean up the exported csv file with **clean.ipynb**
6. start data training and testing
7. drop the data into database | 41.928571 | 94 | 0.764906 | eng_Latn | 0.988571 |
db9155dffcb454e8fa32fb376000506576542715 | 7,495 | md | Markdown | docs/2014/integration-services/run-manage-packages-programmatically/running-and-managing-packages-programmatically.md | CeciAc/sql-docs.fr-fr | 0488ed00d9a3c5c0a3b1601a143c0a43692ca758 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/2014/integration-services/run-manage-packages-programmatically/running-and-managing-packages-programmatically.md | CeciAc/sql-docs.fr-fr | 0488ed00d9a3c5c0a3b1601a143c0a43692ca758 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/2014/integration-services/run-manage-packages-programmatically/running-and-managing-packages-programmatically.md | CeciAc/sql-docs.fr-fr | 0488ed00d9a3c5c0a3b1601a143c0a43692ca758 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-03-04T05:50:54.000Z | 2020-03-04T05:50:54.000Z | ---
title: Exécution et gestion de packages par programmation | Microsoft Docs
ms.custom: ''
ms.date: 06/13/2017
ms.prod: sql-server-2014
ms.reviewer: ''
ms.technology: integration-services
ms.topic: reference
ms.assetid: 1a08c75e-ce8c-45ee-81bd-32248bbdb2b2
author: janinezhang
ms.author: janinez
manager: craigg
ms.openlocfilehash: ecbaa54a723fae6a3c5fd11363bf42f1f2a57da0
ms.sourcegitcommit: 3026c22b7fba19059a769ea5f367c4f51efaf286
ms.translationtype: MT
ms.contentlocale: fr-FR
ms.lasthandoff: 06/15/2019
ms.locfileid: "62766824"
---
# <a name="running-and-managing-packages-programmatically"></a>Exécution et gestion de packages par programme
Si vous devez gérer et exécuter des packages [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] hors de l'environnement de développement, vous pouvez manipuler les packages par programme. Cette méthode vous offre un choix d'options :
- Charger et exécuter un package existant sans modification.
- Charger un package existant, le reconfigurer (par exemple, spécifier une source de données différente) et l'exécuter.
- Créer un package, ajouter et configurer des composants objet par objet et propriété par propriété, l'enregistrer, puis l'exécuter.
Vous pouvez charger et exécuter un package existant à partir d'une application cliente en écrivant quelques lignes de code seulement.
Cette section décrit et explique comment exécuter un package existant par programme et comment accéder à la sortie du flux d'autres applications. Une option de programmation avancée vous permet de créer par programme un package [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] ligne par ligne, tel que décrit dans [Building Packages Programmatically](../building-packages-programmatically/building-packages-programmatically.md).
Cette section présente également d'autres tâches d'administration que vous pouvez effectuer par programme pour gérer des packages stockés, des packages en cours d'exécution et des rôles de package.
## <a name="running-packages-on-the-integration-services-server"></a>Exécution de packages sur le serveur Integration Services
Lorsque vous déployez des packages sur le serveur [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)], vous pouvez exécuter les packages par programme à l'aide de l'espace de noms <xref:Microsoft.SqlServer.Management.IntegrationServices>. L'assembly Microsoft.SqlServer.Management.IntegrationServices est compilé avec le .NET Framework 3.5. Si vous générez une application .NET Framework 4.0, vous devrez peut-être ajouter la référence d'assembly directement dans votre fichier projet.
Vous pouvez également utiliser l'espace de noms pour déployer et gérer des projets [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] sur le serveur [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] . Pour obtenir une vue d'ensemble de l'espace de noms et des extraits de code, consultez l'entrée de blog, [Aperçu du modèle d'objet géré du catalogue SSIS](https://go.microsoft.com/fwlink/?LinkId=253122), sur blogs.msdn.com.
## <a name="in-this-section"></a>Dans cette section
[Présentation des différences entre l’exécution locale et l’exécution distante](../run-manage-packages-programmatically/understanding-the-differences-between-local-and-remote-execution.md)
Examine les différences essentielles entre l'exécution d'un package localement ou sur le serveur.
[Chargement et exécution d’un package local par programmation](../run-manage-packages-programmatically/loading-and-running-a-local-package-programmatically.md)
Décrit comment exécuter un package existant à partir d'une application cliente sur l'ordinateur local.
[Chargement et exécution d’un package distant par programmation](../run-manage-packages-programmatically/loading-and-running-a-remote-package-programmatically.md)
Décrit comment exécuter un package existant à partir d'une application cliente et s'assurer que le package s'exécute sur le serveur.
[Chargement de la sortie d’un package local](../run-manage-packages-programmatically/loading-the-output-of-a-local-package.md)
Décrit comment exécuter un package sur l'ordinateur local et charger la sortie du flux de données dans une application cliente à l'aide de la destination DataReader et de l'espace de noms DtsClient.
[Énumération des packages disponibles par programmation](../run-manage-packages-programmatically/enumerating-available-packages-programmatically.md)
Décrit comment découvrir les packages disponibles gérés par le service [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] .
[Gestion des packages et des dossiers par programmation](../run-manage-packages-programmatically/managing-packages-and-folders-programmatically.md)
Décrit comment créer, renommer et supprimer des packages et des dossiers.
[Gestion des packages en cours d’exécution par programmation](../run-manage-packages-programmatically/managing-running-packages-programmatically.md)
Décrit comment répertorier les packages en cours d'exécution, examiner leurs propriétés et arrêter un package exécuté.
[Gestion par programmation des rôles de package (Service SSIS)](../run-manage-packages-programmatically/managing-package-roles-programmatically-ssis-service.md)
Explique comment obtenir ou définir des informations sur les rôles attribués à un package ou un dossier.
## <a name="reference"></a>Référence
[Guide de référence des erreurs et des messages propres à Integration Services](../integration-services-error-and-message-reference.md)
Répertorie les codes d'erreur [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] prédéfinis avec leur nom symbolique et leur description.
## <a name="related-sections"></a>Sections connexes
[Extension de packages avec des scripts](../extending-packages-scripting/extending-packages-with-scripting.md)
Explique comment étendre le flux de contrôle à l'aide de la tâche de script, et comment étendre le flux de données à l'aide du composant Script.
[Extension de packages avec des objets personnalisés](../extending-packages-custom-objects/extending-packages-with-custom-objects.md)
Explique comment créer des tâches personnalisées de programme, des composants de flux de données et d'autres objets de package à utiliser dans plusieurs packages.
[Génération de packages par programmation](../building-packages-programmatically/building-packages-programmatically.md)
Explique comment créer, configurer et enregistrer des packages [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] par programme.
")**rester jusqu'à la Date avec Integration Services**<br /> Pour obtenir les téléchargements, articles, exemples et vidéos les plus récents de [!INCLUDE[msCoName](../../includes/msconame-md.md)], ainsi que les solutions retenues par la communauté informatique, consultez la page [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] sur MSDN :<br /><br /> [Visitez la page Integration Services sur MSDN](https://go.microsoft.com/fwlink/?LinkId=136655)<br /><br /> Pour recevoir une notification automatique de ces mises à jour, abonnez-vous aux flux RSS disponibles sur la page.
## <a name="see-also"></a>Voir aussi
[SQL Server Integration Services](../sql-server-integration-services.md)
| 88.176471 | 684 | 0.786124 | fra_Latn | 0.889701 |
db91d5e86d9a888e04aa49f90182793ccaf8814b | 557 | md | Markdown | Docs/ArchicadDG/m_edit_control/TextEditBase_Observer.md | kant/PauperTools | bfe0f3fac5c852067e9ecd861e98fbb3f43c62e4 | [
"Apache-2.0"
] | 2 | 2021-11-14T16:30:21.000Z | 2021-11-14T16:31:00.000Z | Docs/ArchicadDG/m_edit_control/TextEditBase_Observer.md | kant/PauperTools | bfe0f3fac5c852067e9ecd861e98fbb3f43c62e4 | [
"Apache-2.0"
] | 1 | 2021-07-27T23:40:19.000Z | 2021-07-27T23:40:19.000Z | Docs/ArchicadDG/m_edit_control/TextEditBase_Observer.md | kant/PauperTools | bfe0f3fac5c852067e9ecd861e98fbb3f43c62e4 | [
"Apache-2.0"
] | 2 | 2021-07-09T21:29:38.000Z | 2021-11-14T16:31:03.000Z | ## TextEditBaseObserver Class
### Parent Class
* [ItemObserver](../m_item/Item_Observer.md)
* [EditDragSourceObserver](EditDragSource_Observer.md)
* [EditDropTargetObserver](EditDropTarget_Observer.md)
### Children Class
* None
### Import
```
from ArchicadDG import TextEditBaseObserver
```
### Class Functions
* **constructor([TextEditBase](TextEditBase.md) textEditBase)**
* Class constructor.
### Class Events
#### TextEditChanged([TextEditBase](TextEditBase.md) textEditBase,ItemEvent e)
* Event handler for the text edit changed notification.
| 21.423077 | 78 | 0.761221 | yue_Hant | 0.753315 |
db92a66bf61d84b73acf32c1d06c6cd9a6f1a687 | 1,595 | md | Markdown | articles/human-resources/hr-admin-troubleshooting-private-addresses.md | MicrosoftDocs/Dynamics-365-Operations.hu-hu | 52e56eef99cc41887360f8961e7ccd2adfa21fd1 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-05-18T17:14:11.000Z | 2021-04-20T21:13:46.000Z | articles/human-resources/hr-admin-troubleshooting-private-addresses.md | MicrosoftDocs/Dynamics-365-Operations.hu-hu | 52e56eef99cc41887360f8961e7ccd2adfa21fd1 | [
"CC-BY-4.0",
"MIT"
] | 7 | 2017-12-08T15:20:43.000Z | 2021-02-17T13:09:53.000Z | articles/human-resources/hr-admin-troubleshooting-private-addresses.md | MicrosoftDocs/Dynamics-365-Operations.hu-hu | 52e56eef99cc41887360f8961e7ccd2adfa21fd1 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2019-10-12T18:21:04.000Z | 2021-10-13T09:24:54.000Z | ---
title: Hozzáférés privát címekhez biztonsági szerepkörnek megfelelően
description: Ez a téma elmagyarázza, hogyan oldható meg, ha egy ügyfél nem tud hozzáférni a privát címekhez.
author: twheeloc
ms.date: 08/19/2021
ms.topic: article
ms.prod: ''
ms.technology: ''
audience: Application User
ms.search.scope: Human Resources
ms.custom: ''
ms.assetid: ''
ms.search.region: Global
ms.author: twheeloc
ms.search.validFrom: 2018-11-02
ms.dyn365.ops.version: Human Resources
ms.openlocfilehash: 0b96733946e4ef79de244730d0c442b9900426c1
ms.sourcegitcommit: 7e32e5e39e762a4b1606161cb603a450d13b5251
ms.translationtype: HT
ms.contentlocale: hu-HU
ms.lasthandoff: 08/23/2021
ms.locfileid: "7413339"
---
# <a name="access-to-private-addresses-by-security-role"></a>Hozzáférés privát címekhez biztonsági szerepkörnek megfelelően
[!include [Applies to Human Resources](../includes/applies-to-hr.md)]
**Probléma**
Miután a vevő duplikál egy biztonsági szerepkört, és az új szerepkörrel jelentkezik be, a vevő nem látja a személyesként megjelölt címeket.
**Felbontás**
A probléma megoldásához a vevőnek az alábbi lépéseket kell követnie a duplikált biztonsági szerepkör esetén.
1. Lépjen a **Szervezeti felügyelet \> Globális címjegyzék \> Globális címjegyzék paraméterei** elemre.
2. A **Saját hely biztonsága** lapon helyezze át az új biztonsági szerepkört az **Elérhető szerepkörök** listából a **Kijelölt szerepkörök** listájába.
3. Válassza a **Mentés** lehetőséget.

[!INCLUDE[footer-include](../includes/footer-banner.md)]
| 36.25 | 151 | 0.791223 | hun_Latn | 0.999808 |
db930be6c12db81cfcdd1ab70a4fae129baabcb2 | 1,672 | md | Markdown | ReleaseNotes.md | prismicio/dotnet-kit | b673d831e6669696abc472670530c7b7e71a7858 | [
"Apache-2.0"
] | null | null | null | ReleaseNotes.md | prismicio/dotnet-kit | b673d831e6669696abc472670530c7b7e71a7858 | [
"Apache-2.0"
] | 1 | 2021-08-28T16:45:44.000Z | 2021-08-28T16:45:44.000Z | ReleaseNotes.md | prismicio/dotnet-kit | b673d831e6669696abc472670530c7b7e71a7858 | [
"Apache-2.0"
] | null | null | null | ### New in 1.0.0 (Released 2014/05/30)
* Initial version
* API for providing binding to the prismic.io REST API.
* Extensions for C#.
### New in 1.0.1 (Released 2014/05/30)
* New extensions for C#.
### New in 1.0.2 (Released 2014/06/01)
* New builder for DocumentLinkResolver
* Renamed ref to refId, more convenient not to deal with reserved keywords
* Changed a module name (Infra to ApiInfra)
* bug fix : ScheduledAt date parsed from unix time
* Use a Tuple List instead of a Map for storing documents in order to maintain order
### New in 1.0.3 (Released 2014/06/06)
* Set exact version number of FSharpData
### New in 1.0.4 (Released 2014/07/04)
* Add a release Id on Ref
* Add Linked Documents on Document
* Add a simple cache
### New in 1.0.5 (Released 2014/08/22)
* Add a Embed getter
* Add GeoPoint support
### New in 1.0.6 (Released 2014/08/25)
* Add C# extension for GeoPoint & Embed fragment.
### New in 1.0.7 (Released 2014/09/23)
* Add support for Timestamp fragments.
### New in 1.0.8 (Release 2014/09/26)
* Add support for Links in images
* Add support for span and group labels
### New in 1.0.10 (Release 2014/09/30)
* Fix parsing for Links in images
### New in 1.0.11 (Release 2014/10/01)
* Add support for h5 and h6
### New in 1.1.0 (Release 2014/10/02)
* BREAKING CHANGE: In F#, the signature of asHtml and related functions have changed as we introduced the HtmlSerializer. If you don't need to generate custom HTML, just pass HtmlSerializer.Empty. The signature in C# should be unchanged.
* Add support for HtmlSerializer, to control the generated HTML from asHtml
#### New in 1.1.1 (Release 2014/11/17)
* OEmbed: make provider optional
| 32.784314 | 237 | 0.720694 | eng_Latn | 0.938975 |
db9333c8377356c5955d724f73fe5de1fe614025 | 648 | md | Markdown | new-docs/puppeteer.protocol.systeminfo.imagedecodeacceleratorcapability.mindimensions.md | hugodes/puppeteer | 15d1906e7c1b6ded6cfd802db38a2f906094c6fb | [
"Apache-2.0"
] | 1 | 2020-08-03T17:49:24.000Z | 2020-08-03T17:49:24.000Z | new-docs/puppeteer.protocol.systeminfo.imagedecodeacceleratorcapability.mindimensions.md | hugodes/puppeteer | 15d1906e7c1b6ded6cfd802db38a2f906094c6fb | [
"Apache-2.0"
] | 1 | 2020-10-06T18:53:37.000Z | 2020-10-06T18:53:37.000Z | new-docs/puppeteer.protocol.systeminfo.imagedecodeacceleratorcapability.mindimensions.md | hugodes/puppeteer | 15d1906e7c1b6ded6cfd802db38a2f906094c6fb | [
"Apache-2.0"
] | 1 | 2020-09-14T04:23:23.000Z | 2020-09-14T04:23:23.000Z | <!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Protocol](./puppeteer.protocol.md) > [SystemInfo](./puppeteer.protocol.systeminfo.md) > [ImageDecodeAcceleratorCapability](./puppeteer.protocol.systeminfo.imagedecodeacceleratorcapability.md) > [minDimensions](./puppeteer.protocol.systeminfo.imagedecodeacceleratorcapability.mindimensions.md)
## Protocol.SystemInfo.ImageDecodeAcceleratorCapability.minDimensions property
Minimum supported dimensions of the image in pixels.
<b>Signature:</b>
```typescript
minDimensions: Size;
```
| 46.285714 | 360 | 0.768519 | eng_Latn | 0.244374 |
db93359918b621df122b5146b91ac86b2a63926f | 522 | md | Markdown | guide/spanish/html/elements/abbr-tag/index.md | SweeneyNew/freeCodeCamp | e24b995d3d6a2829701de7ac2225d72f3a954b40 | [
"BSD-3-Clause"
] | 144 | 2017-09-08T06:59:16.000Z | 2022-01-08T21:20:50.000Z | guide/spanish/html/elements/abbr-tag/index.md | SweeneyNew/freeCodeCamp | e24b995d3d6a2829701de7ac2225d72f3a954b40 | [
"BSD-3-Clause"
] | 2,056 | 2019-08-25T19:29:20.000Z | 2022-02-13T22:13:01.000Z | guide/spanish/html/elements/abbr-tag/index.md | SweeneyNew/freeCodeCamp | e24b995d3d6a2829701de7ac2225d72f3a954b40 | [
"BSD-3-Clause"
] | 66 | 2017-08-29T06:26:32.000Z | 2021-12-29T00:20:34.000Z | ---
title: Abbr Tag
localeTitle: Abbr Tag
---
## Abbr Tag
La etiqueta `<abbr>` significa "abreviatura". Puede tomar atributo de `title` , para explicar la abreviatura.
Ejemplo de uso:
```html
<abbr title="Free Code Camp">FCC</abbr>
```
#### Más información:
* [El elemento HTML <abbr>: MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr)
* [Formato de texto avanzado: Abreviaturas](https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Advanced_text_formatting#Abbreviations) | 27.473684 | 158 | 0.731801 | spa_Latn | 0.337505 |
db938f92dc3522773d478cb3eb0a20b384b77e4c | 2,892 | md | Markdown | nav_supporters.md | Dry8r3aD/ubuntu-fest | dbc6e952c23fcfba6694f6c129977c1990a4479e | [
"MIT"
] | 1 | 2018-08-30T14:01:52.000Z | 2018-08-30T14:01:52.000Z | nav_supporters.md | Dry8r3aD/ubuntu-fest | dbc6e952c23fcfba6694f6c129977c1990a4479e | [
"MIT"
] | 1 | 2018-11-23T04:50:35.000Z | 2018-11-23T04:50:35.000Z | nav_supporters.md | Dry8r3aD/ubuntu-fest | dbc6e952c23fcfba6694f6c129977c1990a4479e | [
"MIT"
] | 3 | 2018-08-31T04:44:58.000Z | 2019-10-31T01:42:40.000Z | ---
layout: frame
title: "- Supporters"
icon: <i class="fas fa-handshake"></i>
permalink: /supporters/
---
<section class="page-header" style="padding-bottom:1px">
<div class="container" style="color: #ffffff">
<h1 style="font-size: 3em;">{{ page.icon }}{{ page.title }}</h1>
<p>행사를 열고 진행하는데 도움을 주신 분들입니다.</p>
</div>
</section>
<div class="container" style="padding-top:32px; padding-bottom:32px; ">
<div class="row">
<div style="padding: 5px 5px 5px 5px; margin: auto; float:center; text-align:center">
{% for host-b in site.host-b %}
<div class="card" style="width: 20rem; height: auto;">
<img class="card-img-top" src="{{ site.baseurl }}/assets/imgs/{{ host-b.image }}" alt="{{ host-b.name }}" style="max-width: 100%;height: 10rem;">
<div class="card-body">
<h5 class="card-title">{{ host-b.name }}</h5>
<p class="card-text">{{ host-b.desc }}</p>
<a href="{{ host-b.url }}" class="btn btn-primary">웹사이트 방문</a>
</div>
</div>
{% endfor %}
</div>
<div style="padding: 5px 5px 5px 5px; margin: auto; float:center; text-align:center">
{% for host-a in site.host-a %}
<div class="card" style="width: 20rem; height: auto;">
<img class="card-img-top" src="{{ site.baseurl }}/assets/imgs/{{ host-a.image }}" alt="{{ host-a.name }}" style="max-width: 100%;height: 10rem;">
<div class="card-body">
<h5 class="card-title">{{ host-a.name }}</h5>
<p class="card-text">{{ host-a.desc }}</p>
<a href="{{ host-a.url }}" class="btn btn-primary">웹사이트 방문</a>
</div>
</div>
{% endfor %}
</div>
<div style="padding: 5px 5px 5px 5px; margin: auto; float:center; text-align:center">
{% for host-c in site.host-c %}
<div class="card" style="width: 20rem; height: auto;">
<img class="card-img-top" src="{{ site.baseurl }}/assets/imgs/{{ host-c.image }}" alt="{{ host-c.name }}" style="max-width: 100%;height: 10rem;">
<div class="card-body">
<h5 class="card-title">{{ host-c.name }}</h5>
<p class="card-text">{{ host-c.desc }}</p>
<a href="{{ host-c.url }}" class="btn btn-primary">웹사이트 방문</a>
</div>
</div>
{% endfor %}
</div>
<div style="padding: 5px 5px 5px 5px; margin: auto; float:center; text-align:center">
{% for supporters in site.supporters %}
<div class="card" style="width: 20rem; height: auto;">
<img class="card-img-top" src="{{ site.baseurl }}/assets/imgs/{{ supporters.image }}" alt="{{ supporters.name }}" style="max-width: 100%;height: 10rem;">
<div class="card-body">
<h5 class="card-title">{{ supporters.name }}</h5>
<p class="card-text">{{ supporters.desc }}</p>
<a href="{{ supporters.url }}" class="btn btn-primary">웹사이트 방문</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% include sponsors.html %}
| 41.314286 | 159 | 0.573651 | eng_Latn | 0.191255 |
db941825f6669e23d40a1755edb13b14857883bf | 33 | md | Markdown | README.md | islam-mirajul/Name-Based-Community-Prediction | cc97a82a6737442a293d75c964720090b2979df0 | [
"Apache-2.0"
] | null | null | null | README.md | islam-mirajul/Name-Based-Community-Prediction | cc97a82a6737442a293d75c964720090b2979df0 | [
"Apache-2.0"
] | null | null | null | README.md | islam-mirajul/Name-Based-Community-Prediction | cc97a82a6737442a293d75c964720090b2979df0 | [
"Apache-2.0"
] | null | null | null | # Name-Based-Community-Prediction | 33 | 33 | 0.848485 | yue_Hant | 0.728435 |
db94285746e0841042ff0b6e364956e3e3564519 | 60 | md | Markdown | README.md | Grauenwolf/HemaVideoWiki | df3393d0365a2da99a6f9048739ec8048fed8243 | [
"MIT"
] | 1 | 2018-04-02T23:39:34.000Z | 2018-04-02T23:39:34.000Z | README.md | Grauenwolf/HemaVideoWiki | df3393d0365a2da99a6f9048739ec8048fed8243 | [
"MIT"
] | 30 | 2018-03-23T07:55:42.000Z | 2020-04-30T00:58:57.000Z | README.md | Grauenwolf/HemaVideoWiki | df3393d0365a2da99a6f9048739ec8048fed8243 | [
"MIT"
] | null | null | null | # HemaVideoWiki
A wiki for Historical European Martial Arts
| 20 | 43 | 0.833333 | eng_Latn | 0.348138 |
db947e2f90066b1f85f8921d912279d402563fd6 | 3,218 | md | Markdown | docs/content/about/what-is-hugo.md | regisphilibert/hugo | 19e26cb4ebdc17ad190a0058b347ac46ed75f4c8 | [
"Apache-2.0"
] | null | null | null | docs/content/about/what-is-hugo.md | regisphilibert/hugo | 19e26cb4ebdc17ad190a0058b347ac46ed75f4c8 | [
"Apache-2.0"
] | null | null | null | docs/content/about/what-is-hugo.md | regisphilibert/hugo | 19e26cb4ebdc17ad190a0058b347ac46ed75f4c8 | [
"Apache-2.0"
] | 1 | 2021-05-13T00:57:08.000Z | 2021-05-13T00:57:08.000Z | ---
title: What is Hugo
linktitle: What is Hugo
description: Hugo is a fast and modern static site generator written in Go, and designed to make website creation fun again.
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
layout: single
menu:
main:
parent: "about"
weight: 10
weight: 10
sections_weight: 10
draft: false
aliases: [/overview/introduction/,/about/why-i-built-hugo/]
toc: true
---
Hugo is a general-purpose website framework. Technically speaking, Hugo is a [static site generator][]. Unlike systems that dynamically build a page with each visitor request, Hugo builds pages when you create or update your content. Since websites are viewed far more often than they are edited, Hugo is designed to provide an optimal viewing experience for your website's end users and an ideal writing experience for website authors.
Websites built with Hugo are extremely fast and secure. Hugo sites can be hosted anywhere, including [Netlify][], [Heroku][], [GoDaddy][], [DreamHost][], [GitHub Pages][], [GitLab Pages][], [Surge][], [Aerobatic][], [Firebase][], [Google Cloud Storage][], [Amazon S3][], [Rackspace][], [Azure][], and [CloudFront][] and work well with CDNs. Hugo sites run without the need for a database or dependencies on expensive runtimes like Ruby, Python, or PHP.
We think of Hugo as the ideal website creation tool with nearly instant build times, able to rebuild whenever a change is made.
## How Fast is Hugo?
{{< youtube "CdiDYZ51a2o" >}}
## What Does Hugo Do?
In technical terms, Hugo takes a source directory of files and templates and uses these as input to create a complete website.
## Who Should Use Hugo?
Hugo is for people that prefer writing in a text editor over a browser.
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
Hugo is for people building a blog, a company site, a portfolio site, documentation, a single landing page, or a website with thousands of pages.
[@spf13]: https://twitter.com/@spf13
[Aerobatic]: https://www.aerobatic.com/
[Amazon S3]: http://aws.amazon.com/s3/
[Azure]: https://blogs.msdn.microsoft.com/acoat/2016/01/28/publish-a-static-web-site-using-azure-web-apps/
[CloudFront]: http://aws.amazon.com/cloudfront/ "Amazon CloudFront"
[contributing to it]: https://github.com/gohugoio/hugo
[DreamHost]: http://www.dreamhost.com/
[Firebase]: https://firebase.google.com/docs/hosting/ "Firebase static hosting"
[GitHub Pages]: https://pages.github.com/
[GitLab Pages]: https://about.gitlab.com/features/pages/
[Go language]: https://golang.org/
[GoDaddy]: https://www.godaddy.com/ "Godaddy.com Hosting"
[Google Cloud Storage]: http://cloud.google.com/storage/
[Heroku]: https://www.heroku.com/
[Jekyll]: http://jekyllrb.com/
[Jekyll]: https://jekyllrb.com/
[Middleman]: https://middlemanapp.com/
[Middleman]: https://middlemanapp.com/
[Nanoc]: http://nanoc.ws/
[Nanoc]: https://nanoc.ws/
[Netlify]: https://netlify.com
[rackspace]: https://www.rackspace.com/cloud/files
[static site generator]: /about/benefits/
[Rackspace]: https://www.rackspace.com/cloud/files
[static site generator]: /about/benefits/
[Surge]: https://surge.sh
| 45.971429 | 452 | 0.747359 | eng_Latn | 0.850195 |
db94d95e08f660fa8dc8074e5b92c35553ba27ac | 274 | md | Markdown | NEWS.md | sbalci/xplorerr | 8b2bd6abf3c39c25e4721c40e1aa5fb5e19e2705 | [
"MIT"
] | 1 | 2021-02-25T15:01:01.000Z | 2021-02-25T15:01:01.000Z | NEWS.md | sbalci/xplorerr | 8b2bd6abf3c39c25e4721c40e1aa5fb5e19e2705 | [
"MIT"
] | null | null | null | NEWS.md | sbalci/xplorerr | 8b2bd6abf3c39c25e4721c40e1aa5fb5e19e2705 | [
"MIT"
] | null | null | null | # xplorerr 0.1.1
This is a patch release to fix bugs in the app.
- Check suggested packages ([#14](https://github.com/rsquaredacademy/xplorerr/issues/14))
- Screening error ([#16](https://github.com/rsquaredacademy/xplorerr/issues/16))
# xplorerr 0.1.0
First release
| 19.571429 | 89 | 0.729927 | eng_Latn | 0.790415 |
db95136a940f1807f048b26f67a4a78a8bfce66b | 1,610 | md | Markdown | docs/visual-basic/misc/bc30301.md | dhernandezb/docs.es-es | cf1637e989876a55eb3c57002818d3982591baf1 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/visual-basic/misc/bc30301.md | dhernandezb/docs.es-es | cf1637e989876a55eb3c57002818d3982591baf1 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/visual-basic/misc/bc30301.md | dhernandezb/docs.es-es | cf1637e989876a55eb3c57002818d3982591baf1 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: ''<Method1> ' y ' <method2> ' no se pueden sobrecargar entre sí porque solo se diferencian en tipos de valor devuelto'
ms.date: 07/20/2015
f1_keywords:
- bc30301
- vbc30301
helpviewer_keywords:
- BC30301
ms.assetid: 5adc442b-9671-4d93-add8-42929b1a09b9
ms.openlocfilehash: 5826938a8f50c0c2d042f5aa3f5b12f523ec97f6
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.translationtype: MT
ms.contentlocale: es-ES
ms.lasthandoff: 05/04/2018
ms.locfileid: "33613145"
---
# <a name="39ltmethod1gt39-and-39ltmethod2gt39-cannot-overload-each-other-because-they-differ-only-by-return-types"></a>'<Method1> ' y ' <method2> ' no se pueden sobrecargar entre sí porque solo se diferencian en tipos de valor devuelto
Intentó sobrecargar un método con otro método que es distinto del primero solo en su tipo de valor devuelto. En la sobrecarga, dos versiones de un método se deben diferenciar por sus listas de argumentos. Los métodos no se pueden diferenciar si no es por las listas de argumentos.
**Identificador de error:** BC30301
## <a name="to-correct-this-error"></a>Para corregir este error
- Asegúrese de que los métodos se diferencian por sus listas de argumentos.
## <a name="see-also"></a>Vea también
[Sobrecarga de procedimientos](../../visual-basic/programming-guide/language-features/procedures/procedure-overloading.md)
[Consideraciones sobre la sobrecarga de procedimientos](../../visual-basic/programming-guide/language-features/procedures/considerations-in-overloading-procedures.md)
| 55.517241 | 282 | 0.765839 | spa_Latn | 0.827389 |
db953210a90a20cc473df0603ae206ee615048d6 | 5,076 | md | Markdown | docs/resources-reference/v1.5/documents/_generated_persistentvolumespec_v1_concept.md | jayunit100/kubernetes.github.io | a2d0e7c1655c8820a35bd34491dc70a2b637aa9a | [
"CC-BY-4.0"
] | null | null | null | docs/resources-reference/v1.5/documents/_generated_persistentvolumespec_v1_concept.md | jayunit100/kubernetes.github.io | a2d0e7c1655c8820a35bd34491dc70a2b637aa9a | [
"CC-BY-4.0"
] | null | null | null | docs/resources-reference/v1.5/documents/_generated_persistentvolumespec_v1_concept.md | jayunit100/kubernetes.github.io | a2d0e7c1655c8820a35bd34491dc70a2b637aa9a | [
"CC-BY-4.0"
] | null | null | null |
-----------
# PersistentVolumeSpec v1
Group | Version | Kind
------------ | ---------- | -----------
Core | v1 | PersistentVolumeSpec
PersistentVolumeSpec is the specification of a persistent volume.
<aside class="notice">
Appears In <a href="#persistentvolume-v1">PersistentVolume</a> </aside>
Field | Description
------------ | -----------
accessModes <br /> *string array* | AccessModes contains all ways the volume can be mounted. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes
awsElasticBlockStore <br /> *[AWSElasticBlockStoreVolumeSource](#awselasticblockstorevolumesource-v1)* | AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: http://kubernetes.io/docs/user-guide/volumes#awselasticblockstore
azureDisk <br /> *[AzureDiskVolumeSource](#azurediskvolumesource-v1)* | AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
azureFile <br /> *[AzureFileVolumeSource](#azurefilevolumesource-v1)* | AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
capacity <br /> *object* | A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity
cephfs <br /> *[CephFSVolumeSource](#cephfsvolumesource-v1)* | CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
cinder <br /> *[CinderVolumeSource](#cindervolumesource-v1)* | Cinder represents a cinder volume attached and mounted on kubelets host machine More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
claimRef <br /> *[ObjectReference](#objectreference-v1)* | ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#binding
fc <br /> *[FCVolumeSource](#fcvolumesource-v1)* | FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
flexVolume <br /> *[FlexVolumeSource](#flexvolumesource-v1)* | FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.
flocker <br /> *[FlockerVolumeSource](#flockervolumesource-v1)* | Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
gcePersistentDisk <br /> *[GCEPersistentDiskVolumeSource](#gcepersistentdiskvolumesource-v1)* | GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#gcepersistentdisk
glusterfs <br /> *[GlusterfsVolumeSource](#glusterfsvolumesource-v1)* | Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: http://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md
hostPath <br /> *[HostPathVolumeSource](#hostpathvolumesource-v1)* | HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: http://kubernetes.io/docs/user-guide/volumes#hostpath
iscsi <br /> *[ISCSIVolumeSource](#iscsivolumesource-v1)* | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.
nfs <br /> *[NFSVolumeSource](#nfsvolumesource-v1)* | NFS represents an NFS mount on the host. Provisioned by an admin. More info: http://kubernetes.io/docs/user-guide/volumes#nfs
persistentVolumeReclaimPolicy <br /> *string* | What happens to a persistent volume when released from its claim. Valid options are Retain (default) and Recycle. Recycling must be supported by the volume plugin underlying this persistent volume. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#recycling-policy
photonPersistentDisk <br /> *[PhotonPersistentDiskVolumeSource](#photonpersistentdiskvolumesource-v1)* | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
quobyte <br /> *[QuobyteVolumeSource](#quobytevolumesource-v1)* | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
rbd <br /> *[RBDVolumeSource](#rbdvolumesource-v1)* | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md
vsphereVolume <br /> *[VsphereVirtualDiskVolumeSource](#vspherevirtualdiskvolumesource-v1)* | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
| 97.615385 | 365 | 0.777187 | eng_Latn | 0.765708 |
db9594f177681b982e1cf0128e121d7baac7e314 | 10,421 | md | Markdown | articles/active-directory/manage-apps/manage-app-consent-policies.md | ancorrg/azure-docs.es-es | fe960fa0a6fb269e31c6120dcc310cfc28e1239d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/active-directory/manage-apps/manage-app-consent-policies.md | ancorrg/azure-docs.es-es | fe960fa0a6fb269e31c6120dcc310cfc28e1239d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | articles/active-directory/manage-apps/manage-app-consent-policies.md | ancorrg/azure-docs.es-es | fe960fa0a6fb269e31c6120dcc310cfc28e1239d | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: Administración de directivas de consentimiento de aplicaciones en Azure AD
description: Obtenga información sobre cómo administrar las directivas de consentimiento de aplicaciones integradas y personalizadas para controlar el momento en que se puede conceder ese consentimiento.
services: active-directory
author: kenwith
manager: celestedg
ms.service: active-directory
ms.subservice: app-mgmt
ms.workload: identity
ms.topic: how-to
ms.date: 06/01/2020
ms.author: kenwith
ms.reviewer: arvindh, luleon, phsignor
ms.custom: contperfq2
ms.openlocfilehash: edcfa19ed93733c4d6b060ebcb5ff179708195aa
ms.sourcegitcommit: 3bcce2e26935f523226ea269f034e0d75aa6693a
ms.translationtype: HT
ms.contentlocale: es-ES
ms.lasthandoff: 10/23/2020
ms.locfileid: "92486929"
---
# <a name="manage-app-consent-policies"></a>Administración de directivas de consentimiento de aplicaciones
Con Azure AD PowerShell, puede ver y administrar las directivas de consentimiento de la aplicación.
Una directiva de consentimiento de la aplicación se compone de uno o más conjuntos de condiciones de tipo "includes" y cero o más conjuntos de condiciones de tipo "excludes". Para que un evento se tenga en cuenta en una directiva de consentimiento de aplicaciones, debe coincidir *al menos* con un conjunto de condiciones de tipo "includes" y no debe haber *ningún* conjunto de condiciones de tipo "excludes".
Cada conjunto de condiciones está formado por varias condiciones. Para que un evento coincida con un conjunto de condiciones, se deben cumplir *todas* las condiciones detalladas en el conjunto de condiciones.
Las directivas de consentimiento de aplicaciones en las que el id. comienza por "Microsoft" son directivas integradas. Algunas de estas directivas integradas se usan en los roles de directorio integrados. Por ejemplo, la directiva de consentimiento de aplicaciones `microsoft-application-admin` describe las condiciones en las que los roles de Administrador de aplicaciones y de Administrador de aplicaciones en la nube pueden conceder consentimiento de administrador para todo el inquilino. Las directivas integradas se pueden usar en roles de directorio personalizados y para configurar las opciones de consentimiento del usuario, pero no se pueden editar ni eliminar.
## <a name="pre-requisites"></a>Requisitos previos
1. Asegúrese de que usa el módulo [AzureADPreview](https://docs.microsoft.com/powershell/module/azuread/?view=azureadps-2.0-preview&preserve-view=true). Este paso es importante si ha instalado el módulo [AzureAD](https://docs.microsoft.com/powershell/module/azuread/?view=azureadps-2.0&preserve-view=true) y el módulo [AzureADPreview](https://docs.microsoft.com/powershell/module/azuread/?view=azureadps-2.0-preview&preserve-view=true).
```powershell
Remove-Module AzureAD -ErrorAction SilentlyContinue
Import-Module AzureADPreview
```
1. Conéctese a Azure AD PowerShell.
```powershell
Connect-AzureAD
```
## <a name="list-existing-app-consent-policies"></a>Enumeración de las directivas de consentimiento de aplicaciones existentes
Para empezar, familiarícese con las directivas de consentimiento de aplicaciones existentes en su organización:
1. Enumere todas las directivas de consentimiento de aplicaciones:
```powershell
Get-AzureADMSPermissionGrantPolicy | ft Id, DisplayName, Description
```
1. Consulte los conjuntos de condiciones de tipo "includes" de una directiva:
```powershell
Get-AzureADMSPermissionGrantConditionSet -PolicyId "microsoft-application-admin" `
-ConditionSetType "includes"
```
1. Consulte los conjuntos de condiciones de tipo "excludes":
```powershell
Get-AzureADMSPermissionGrantConditionSet -PolicyId "microsoft-application-admin" `
-ConditionSetType "excludes"
```
## <a name="create-a-custom-app-consent-policy"></a>Creación de una directiva de consentimiento de aplicaciones personalizada
Siga estos pasos para crear una directiva de consentimiento de aplicaciones personalizada:
1. Cree una directiva de consentimiento de aplicaciones que esté vacía.
```powershell
New-AzureADMSPermissionGrantPolicy `
-Id "my-custom-policy" `
-DisplayName "My first custom consent policy" `
-Description "This is a sample custom app consent policy."
```
1. Agregue los conjuntos de condiciones de tipo "includes".
```powershell
# Include delegated permissions classified "low", for apps from verified publishers
New-AzureADMSPermissionGrantConditionSet `
-PolicyId "my-custom-policy" `
-ConditionSetType "includes" `
-PermissionType "delegated" `
-PermissionClassification "low" `
-ClientApplicationsFromVerifiedPublisherOnly $true
```
Repita este paso para agregar conjuntos de condiciones adicionales de tipo "include".
1. De forma opcional, puede agregar conjuntos de condiciones de tipo "excludes".
```powershell
# Retrieve the service principal for the Azure Management API
$azureApi = Get-AzureADServicePrincipal -Filter "servicePrincipalNames/any(n:n eq 'https://management.azure.com/')"
# Exclude delegated permissions for the Azure Management API
New-AzureADMSPermissionGrantConditionSet `
-PolicyId "my-custom-policy" `
-ConditionSetType "excludes" `
-PermissionType "delegated" `
-ResourceApplication $azureApi.AppId
```
Repita este paso para agregar conjuntos de condiciones adicionales de tipo "exclude".
Una vez creada la directiva de consentimiento de aplicaciones, puede [permitir el consentimiento del usuario](configure-user-consent.md?tabs=azure-powershell#allow-user-consent-subject-to-an-app-consent-policy) que esté sujeto a esta directiva.
## <a name="delete-a-custom-app-consent-policy"></a>Eliminación de una directiva de consentimiento de aplicaciones personalizada
1. A continuación se muestra cómo se puede eliminar una directiva de consentimiento de aplicaciones personalizada. **Esta operación no se puede deshacer.**
```powershell
Remove-AzureADMSPermissionGrantPolicy -Id "my-custom-policy"
```
> [!WARNING]
> Las directivas de consentimiento de aplicaciones eliminadas no se pueden restaurar. Si elimina accidentalmente una directiva de consentimiento de aplicaciones personalizada, tendrá que volver a crear la directiva.
---
### <a name="supported-conditions"></a>Condiciones que se admiten
En la tabla siguiente se proporciona la lista de condiciones admitidas para las directivas de consentimiento de aplicaciones.
| Condición | Descripción|
|:---------------|:----------|
| PermissionClassification | Es la [clasificación de permisos](configure-permission-classifications.md) referente al permiso que se va a conceder; también puede ser el valor "todos" para hacer que coincida con cualquier clasificación de permisos (incluidos los permisos que no están clasificados). El valor predeterminado es "todos". |
| PermissionType | Es el tipo del permiso que se va a conceder. Use "aplicación" para permisos de aplicaciones (por ejemplo, roles de aplicación) o "delegado" para los permisos delegados. <br><br>**Nota** : El valor "delegatedUserConsentable" indica permisos delegados que el publicador de la API no ha configurado para requerir el consentimiento del administrador; este valor se puede usar en directivas de concesión de permisos integrados, pero no se puede usar en directivas de concesión de permisos personalizados. Necesario. |
| ResourceApplication | Es el valor **AppId** de la aplicación de recursos (por ejemplo, la API) para la que se concede un permiso o el estado "cualquiera" para que coincida con cualquier aplicación de recursos o API. El valor predeterminado es "cualquiera". |
| Permisos | Lista de id. de permisos que deben coincidir con los permisos específicos, o una lista con el valor único "Todos" para que así los valores coincidan con cualquier permiso. El valor predeterminado es el valor único "todos". <ul><li>Los id. de permisos delegados se pueden encontrar en la propiedad **OAuth2Permissions** del objeto ServicePrincipal de la API.</li><li>Los id. de permisos de aplicación se pueden encontrar en la propiedad **AppRoles** del objeto ServicePrincipal de la API.</li></ol> |
| ClientApplicationIds | Es una lista de valores de **AppId** que deben coincidir con las aplicaciones cliente o una lista con el valor único "todos" para que así los valores coincidan con cualquier aplicación cliente. El valor predeterminado es el valor único "todos". |
| ClientApplicationTenantIds | Es una lista de los id. de inquilinos de Azure Active Directory en los que se registra la aplicación cliente o una lista con el valor único "todos" para que coincida con las aplicaciones cliente registradas en cualquier inquilino. El valor predeterminado es el valor único "todos". |
| ClientApplicationPublisherIds | Es una lista de id. de Microsoft Partner Network (MPN) para [publicadores comprobados](../develop/publisher-verification-overview.md) de la aplicación cliente, o una lista con el valor único "todos" para que coincida con las aplicaciones cliente de cualquier publicador. El valor predeterminado es el valor único "todos". |
| ClientApplicationsFromVerifiedPublisherOnly | Se establece en `$true` para que solo coincida con las aplicaciones cliente con [publicadores comprobados](../develop/publisher-verification-overview.md). Se establece en `$false` para que coincida con cualquier aplicación cliente, incluso si no tiene un publicador comprobado. El valor predeterminado es `$false`. |
## <a name="next-steps"></a>Pasos siguientes
Para obtener más información:
* [Opciones de configuración del consentimiento del usuario](configure-user-consent.md)
* [Configuración del flujo de trabajo de consentimiento del administrador](configure-admin-consent-workflow.md)
* [Aprenda a administrar el consentimiento de aplicaciones y a evaluar las solicitudes de consentimiento](manage-consent-requests.md)
* [Concesión del consentimiento del administrador para todo el inquilino a una aplicación](grant-admin-consent.md)
* [Permisos y consentimiento en la plataforma de identidad de Microsoft](../develop/active-directory-v2-scopes.md)
Para obtener ayuda o encontrar respuestas a sus preguntas:
* [Azure AD en StackOverflow](https://stackoverflow.com/questions/tagged/azure-active-directory)
| 66.801282 | 670 | 0.780059 | spa_Latn | 0.977285 |
db964ddb3c503828880fae56ee5cba6b9386750c | 5,733 | md | Markdown | README.md | korczis/iCave | 606021061a3180e4768e344a97f01d85ee2ce2b9 | [
"MIT"
] | null | null | null | README.md | korczis/iCave | 606021061a3180e4768e344a97f01d85ee2ce2b9 | [
"MIT"
] | null | null | null | README.md | korczis/iCave | 606021061a3180e4768e344a97f01d85ee2ce2b9 | [
"MIT"
] | null | null | null | # iCave
Web Interface for your Cave.
*This is proof of concept, there is many things [To Do (TODO.md)](https://github.com/korczis/iCave/blob/master/TODO.md).*
See [Changelog (CHANGELOG.md)](https://github.com/korczis/iCave/blob/master/CHANGELOG.md) for info about latest changes.
## Preview

## Features
- Logging data to SD Card (See [iCave::Manager::loop()](https://github.com/korczis/iCave/blob/master/app/manager.cpp), [sample data](https://github.com/korczis/iCave/blob/master/data/data.txt))
- Temperature measurement
- Humidity measurement
- GPS
- Location
- Speed
- Altitude
- Luminosity
- TFT Display UI
- Serial Output
- Power
- USB
- Battery
- Laboratory voltage source
## Structure
- [app](https://github.com/korczis/iCave/blob/master/app)
- [CHANGELOG.md](https://github.com/korczis/iCave/blob/master/CHANGELOG.md)
- [README.md](https://github.com/korczis/iCave/blob/master/README.md)
- [TODO.md](https://github.com/korczis/iCave/blob/master/TODO.md)
## Prerequisites
Not everything is needed, see [configuration file](https://github.com/korczis/iCave/blob/master/app/general.h).
### Libraries
Not everything is needed, see [configuration file](https://github.com/korczis/iCave/blob/master/app/general.h).
- [Adafruit CC3000](https://github.com/adafruit/Adafruit_CC3000_Library)
*Library for the Adafruit CC3000 WiFi Breakouts etc.*
- [Adafruit GFX](https://github.com/adafruit/Adafruit-GFX-Library)
*Graphics library for all our displays, providing a common set of graphics primitives (points, lines, circles, etc.)*
- [ArduinoJson](https://github.com/bblanchon/ArduinoJson)
*An elegant and efficient JSON library for embedded systems.*
- [RC522](https://github.com/miguelbalboa/rfid)
*Arduino library for MFRC522 and other RFID RC522 based modules.*
- [Snooze](https://github.com/duff2013/Snooze)
*Low Power Teensy 3.x library.*
- [TFT_ILI9340](https://github.com/sumotoy/TFT_ILI9340)
*A hyper fast SPI driver for Ilitek ILI9340 TFT 2.2" displays Features: - Very FAST!, expecially with Teensy 3.x where uses native SPI.*
- [TSL2561](https://github.com/adafruit/TSL2561-Arduino-Library)
*Library for the TSL2561 digital luminosity (light) sensors.*
### Hardware
Not everything is needed, see [configuration file](https://github.com/korczis/iCave/blob/master/app/general.h).
- [Teensy 3.1](https://www.pjrc.com/teensy/teensy31.html) (~ $20)
*Teensy 3.1 is a small, breadboard-friendly development which brings a low-cost 32 bit ARM Cortex-M4 platform to hobbyists, students and engineers, using an adapted version of the Arduino IDE.*
- Processor: MK20DX256VLH7
- Core: Cortex-M4
- Clock: 72 MHz / Overclock: 96 MHz
- Flash Memory: 256 kB
- Cache: 256 B
- RAM: 64 kB
- EEPROM: 2 kB
- DAC: 12 bits
- USB / Serial / SPI / I2C / CAN / I2S
- 5V tolerant digital inputs
- [ST7735R](https://www.adafruit.com/product/358) (~ $20)
*Display that uses 4-wire SPI to communicate and has its own pixel-addressable frame buffer, it can be used with every kind of microcontroller.*
- 1.8" diagonal LCD TFT display
- 128x160 resolution, 18-bit (262,144) color
- ST7735R (datasheet) controller with built in pixel-addressable video RAM buffer
- 4 or 5 wire SPI digital interface
- Built-in microSD slot - uses 2 more digital lines
- 5V compatible, use with 3.3V or 5V logic
- Onboard 3.3V @ 150mA LDO regulator
- 2 white LED backlight, transistor connected so you can PWM dim the backlight
- 1x10 header for easy breadboarding
- 4 x 0.9"/2mm mounting holes in corners
- Current with full backlight draw is ~50mA
- [DHT22](https://www.adafruit.com/product/393) (~ $15)
*Basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin.*
- Low cost
- 3 to 5V power and I/O
- 2.5mA max current use
- 0-100% humidity readings with 2-5% accuracy
- -40 to 80°C temperature readings ±0.5°C accuracy
- [GPS](https://www.adafruit.com/products/746) (~ $40)
*High-quality GPS module that can track up to 22 satellites on 66 channels and has an excellent high-sensitivity receiver.*
- 165 dBm sensitivity, 10 Hz updates, 66 channels
- 5V friendly design
- Only 20mA current draw
- Breadboard friendly + two mounting holes
- RTC battery-compatible
- Built-in datalogging
- PPS output on fix
- Internal patch antenna
- u.FL connector for external active antenna
- Fix status LED
- [TSL2561](https://www.adafruit.com/products/439) (~ $6)
*The TSL2561 luminosity sensor is an advanced digital light sensor.*
- Approximates Human eye Response
- Precisely Measures Illuminance in Diverse Lighting Conditions
- Temperature range: -30 to 80 *C
- Dynamic range (Lux): 0.1 to 40,000 Lux
- Voltage range: 2.7-3.6V
- Interface: I2C
- I2C 7-bit addresses 0x39, 0x29, 0x49, selectable with jumpers
- [Wifi CC3000](https://www.adafruit.com/products/1469) (~ $35)
*Microcontroller-friendly WiFi module.*
- 802.11b/g
- Open/WEP/WPA/WPA2 security,
- TKIP & AES
- Built in TCP/IP stack
- "BSD socket" interface
- [nRF24L01](http://playground.arduino.cc/InterfacingWithHardware/Nrf24L01) (~ $1-5)
*Radio/Wireless Transceiver.*
- 2.4GHz RF
- [How To](http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo)
- [RFID-RC522](http://devsketches.blogspot.cz/2014/05/rfid-sensor-funduino-rfid-rc522.html) (~ $6)
*RFID sensor.*
## Getting started
Clone git sources ...
```
git clone https://github.com/korczis/iCave.git
```
| 33.138728 | 195 | 0.721088 | eng_Latn | 0.471292 |
db96635bb42c3a634a99541f1ab277825d0bfb7c | 2,535 | md | Markdown | _listings/1forge/convert-get-postman.md | streamdata-gallery-organizations/1forge | 6dc245690e7c902db72c102dd8f8d7984d886519 | [
"CC-BY-3.0"
] | null | null | null | _listings/1forge/convert-get-postman.md | streamdata-gallery-organizations/1forge | 6dc245690e7c902db72c102dd8f8d7984d886519 | [
"CC-BY-3.0"
] | null | null | null | _listings/1forge/convert-get-postman.md | streamdata-gallery-organizations/1forge | 6dc245690e7c902db72c102dd8f8d7984d886519 | [
"CC-BY-3.0"
] | null | null | null | {
"info": {
"name": "1Forge Currency Conversion API",
"_postman_id": "1214d7e0-30f2-4c09-b71d-8805a6676ea1",
"description": "Converts between to types of currency and returns the current results.",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/"
},
"item": [
{
"name": "Quotes",
"item": [
{
"id": "f2c5c617-40f8-47bf-b854-0680e4ebfa9f",
"name": "getQuotes",
"request": {
"url": "http://forex.1forge.com/1.0.3/quotes?api_key=api_key&format=format&pairs=pairs",
"method": "GET",
"body": {
"mode": "raw"
},
"description": "Get quotes for specific currency pair(s)."
},
"response": [
{
"status": "OK",
"code": 200,
"name": "Response_200",
"id": "fef8ee98-2d9c-4fbf-a1cf-9c9546c860ff"
}
]
}
]
},
{
"name": "Symbols",
"item": [
{
"id": "8b855d0d-7638-415b-a72f-cee6efd864a8",
"name": "getSymbols",
"request": {
"url": "http://forex.1forge.com/1.0.3/symbols?api_key=api_key&format=format",
"method": "GET",
"body": {
"mode": "raw"
},
"description": "Get a list of currency symbols to use when making calls to the other APIs."
},
"response": [
{
"status": "OK",
"code": 200,
"name": "Response_200",
"id": "9070b41e-8c64-4a55-b909-7d71886bec03"
}
]
}
]
},
{
"name": "Currency",
"item": [
{
"id": "295cd827-6149-4e43-b06f-52c87a8e6f2c",
"name": "convertCurrency",
"request": {
"url": "http://forex.1forge.com/1.0.3/convert?api_key=api_key&format=format&from=from&quantity=quantity&to=to",
"method": "GET",
"body": {
"mode": "raw"
},
"description": "Converts between to types of currency and returns the current results."
},
"response": [
{
"status": "OK",
"code": 200,
"name": "Response_200",
"id": "15c37d0d-e0cc-42be-ae96-a7044572378b"
}
]
}
]
}
]
} | 29.823529 | 124 | 0.428008 | eng_Latn | 0.273247 |
db96837e7d0963a16165bfe6781d0f8108549ea2 | 8,373 | md | Markdown | articles/supply-chain/asset-management/work-orders/procurement.md | MicrosoftDocs/Dynamics-365-Operations.de-de | cd5ad614a04a6af4810d202838f5d048bb7f9c3c | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-05-18T17:13:42.000Z | 2020-05-18T17:13:42.000Z | articles/supply-chain/asset-management/work-orders/procurement.md | MicrosoftDocs/Dynamics-365-Operations.de-de | cd5ad614a04a6af4810d202838f5d048bb7f9c3c | [
"CC-BY-4.0",
"MIT"
] | 7 | 2017-12-11T16:30:58.000Z | 2019-04-30T11:46:00.000Z | articles/supply-chain/asset-management/work-orders/procurement.md | MicrosoftDocs/Dynamics-365-Operations.de-de | cd5ad614a04a6af4810d202838f5d048bb7f9c3c | [
"CC-BY-4.0",
"MIT"
] | 3 | 2018-07-20T06:44:57.000Z | 2021-05-04T15:51:05.000Z | ---
title: Beschaffung
description: In diesem Thema wird die Beschaffung im Anlagenmanagement erläutert.
author: johanhoffmann
ms.date: 10/15/2019
ms.topic: article
ms.prod: ''
ms.technology: ''
ms.search.form: EntAssetWorkOrderPurchaseListPagePreviewPane, EntAssetWorkOrderPurchaseListPage, EntAssetWorkOrderPurchaseLineAmountInfoPart, EntAssetWorkOrderPurchReqListPage
audience: Application User
ms.reviewer: kamaybac
ms.custom: ''
ms.assetid: ''
ms.search.region: Global
ms.author: johanho
ms.search.validFrom: 2019-09-30
ms.dyn365.ops.version: 10.0.5
ms.openlocfilehash: 2b5e160beb4743db2530b91020f21b686d84237b17cfa7ff7f0cc1da97695d08
ms.sourcegitcommit: 42fe9790ddf0bdad911544deaa82123a396712fb
ms.translationtype: HT
ms.contentlocale: de-DE
ms.lasthandoff: 08/05/2021
ms.locfileid: "6743649"
---
# <a name="procurement"></a>Beschaffung
[!include [banner](../../includes/banner.md)]
Im Anlagenmanagement können Sie sich einen Überblick über Bestellanforderungen und Bestellungen zu Arbeitsaufträgen verschaffen. Es ist auch möglich, eine Bestellung oder eine Bestellanforderung aus einem Arbeitsauftrag heraus anzulegen.
Auf der Listenseite **Arbeitsauftragsbestellanforderung** (**Anlagenmanagement** > **Allgemein** > **Beschaffung** > **Arbeitsauftragsbestellanforderung**) wird eine Liste von Bestellanforderungen zu Arbeitsaufträgen angezeigt. Wenn Sie einen Arbeitsauftragseinzelvorgang auf dieser Seite auswählen, können Sie die Schaltflächen in der Gruppe **Anzeigen** auf der Registerkarte **Arbeitsauftragsbestellanforderung** verwenden, um verschiedene Aktionen auszuführen:
- Um die verwandte Bestellanforderung zu öffnen, wählen Sie **Bestellanforderung** aus.
- Um den zugehörigen Arbeitsauftrag zu öffnen, wählen Sie **Arbeitsauftrag** aus.
- Um einen Überblick darüber zu erhalten, wo der Artikel in der ausgewählten Position verwendet wird in Bezug auf Anlagen, Standardwerte für Wartungsauftragstypen, Ersatzteile und Arbeitsaufträge in Anlagenmanagement, wählen Sie die Option **Artikelverwendungsort** aus. Weitere Informationen über diesen Überblick finden Sie unter [Artikelverwendungsort](../controlling-and-reporting/item-where-used.md).
In der folgenden Abbildung wird ein Beispiel der Listenseite **Arbeitsauftragsbestellanforderung** angezeigt.

Auf der Listenseite **Arbeitsauftragsbestellanforderung** (**Anlagenmanagement** > **Allgemein** > **Beschaffung** > **Arbeitsauftragsbestellung**) wird eine Liste von Bestellungen zu Arbeitsaufträgen angezeigt. Wenn Sie einen Arbeitsauftragseinzelvorgang auf dieser Seite auswählen, können Sie die Schaltflächen in der Gruppe **Anzeigen** auf der Registerkarte **Arbeitsauftragsbestellung** des Aktivitätsbereichs verwenden, um verschiedene Aktionen auszuführen:
- Um die zugehörige Bestellung zu öffnen, wählen Sie **Bestellung** aus.
- Um den zugehörigen Arbeitsauftrag zu öffnen, wählen Sie **Arbeitsauftrag** aus.
- Um einen Überblick darüber zu erhalten, wo der Artikel in der ausgewählten Position verwendet wird in Bezug auf Anlagen, Standardwerte für Wartungsauftragstypen, Ersatzteile und Arbeitsaufträge in Anlagenmanagement, wählen Sie die Option **Artikelverwendungsort** aus. Weitere Informationen über diesen Überblick finden Sie unter [Artikelverwendungsort](../controlling-and-reporting/item-where-used.md).
In der folgenden Abbildung wird ein Beispiel der Listenseite **Arbeitsauftragsbestellung** angezeigt.

Auf der Listenseite **Arbeitsauftragsbestellung** und der Listenseite **Arbeitsauftragsbestellanforderung** der Listenseite wird ein Symbol angezeigt, das zu dem Lieferdatumsteuerelement rechts neben jeder Position gehört. Wenn das Symbol ein Ausrufezeichen in einem roten Kreis anzeigt, bedeutet dies, dass sich die Lieferung der zugehörigen Bestellanforderung oder Bestellung verzögern kann.
Bei einer Bestellung wird das Datum, das sich auf eine Bestellposition bezieht, verwendet, um eine mögliche Verzögerung zu berechnen. Um dieses Datum anzuzeigen, wählen Sie auf der Seite **Bestellung** die Bestellposition aus. Das Datum wird im Feld **Bestätigtes Lieferdatum** auf der Registerkarte **Einstellungen** des Inforegisters **Positionsdetails** angezeigt. Wenn das Feld **Bestätigtes Lieferdatum** nicht festgelegt wird, wird das Datum im Feld **Lieferdatum** auf dem Inforegister **Bestellkopf** für die Berechnung verwendet. Einer dieser Termine wird mit dem verfügbaren Datum auf dem Arbeitsauftrag oder dem Arbeitsauftragseinzelvorgang in der folgenden Reihenfolge verglichen:
1. Iststartdatum auf dem Arbeitsauftrag
2. Geplantes Startdatum für den zugehörigen Arbeitsauftragseinzelvorgang
3. Geplanter Starttermin auf dem Arbeitsauftrag
4. Erwartetes Startdatum auf dem Arbeitsauftrag
Auf einer Bestellanforderung wird das Datum im Feld **Angefordertes Datum** auf dem Inforegister **Bestellanforderungskopf** der Seite **Bestellanforderungen** zur Berechnung einer möglichen Verzögerung verwendet. Das Datum in diesem Feld wird in derselben Reihenfolge mit dem verfügbaren Datum auf dem Arbeitsauftrag oder Arbeitsauftragseinzelvorgang verglichen, die auch für eine Bestellung verwendet wird.
## <a name="create-a-purchase-order-from-a-work-order"></a>Bestellung aus einem Arbeitsauftrag anlegen
Auf der Listenseite **Alle Arbeitsaufträge** können Sie einen Arbeitsauftragseinzelvorgang auswählen und dann eine zugehörige Bestellung oder eine zugehörige Bestellanforderung anlegen. Auf diese Weise können Sie sicherstellen, dass die Projektbeziehungen zwischen der Bestellung oder Bestellanforderung und dem Arbeitsauftrag bestehen.
1. Wählen Sie **Anlagenverwaltung** > **Allgemein** > **Arbeitsaufträge** > **Alle Arbeitsaufträge** oder **Aktive Arbeitsaufträge** aus.
2. Wählen Sie den Arbeitsauftrag aus, für den eine Bestellung erstellt werden soll, und wählen Sie dann **Bearbeiten** aus.
3. Wählen Sie auf dem Inforegister **Wartungsaufträge für Arbeitsaufträge** den Arbeitsauftrag aus, für den Sie die Bestellung anlegen möchten.
4. Wählen Sie **Artikelaufgaben** > **Bestellung aus Arbeitsauftragseinzelvorgang**.
5. Klicken Sie auf der Listenseite **Projektbestellungen** auf **Neu**.
6. Legen Sie die Bestellung an.
>[!NOTE]
>Um eine zugeordnete Bestellanforderung zu erstellen, führen Sie dieselben Schritte durch. Allerdings wählen Sie **Artikelaufgaben** > **Bestellanforderung aus Arbeitsauftragseinzelvorgang** in Schritt 4 aus.
## <a name="project-relation-between-work-order-and-purchase-order-or-purchase-requisition"></a>Projektbeziehung zwischen Arbeitsauftrag und Bestellung oder Bestellanforderung
Eine Bestellzeile oder Bestellanforderungszeile ist über das Arbeitsauftragsprojekt und die zugehörige Projektvorgangsnummer mit einem Arbeitsauftrag verknüpft. Wenn Sie eine Bestellung oder Bestellanforderung aus einem Arbeitsauftrag heraus anlegen, ist die zugehörige Projektvorgangsnummer obligatorisch. Die Projektleistungsnummer wird automatisch in eine Bestellung oder Bestellanforderung eingegeben, wenn alle Arbeitsauftragseinzelvorgänge im zugehörigen Arbeitsauftrag den gleichen Wartungsauftragstyp verwenden. Sie müssen die Projektleistungsnummer manuell in eine Bestellung oder Bestellanforderung eingeben, wenn alle Arbeitsauftragseinzelvorgänge unterschiedliche Wartungsauftragstypen verwenden.
Um die Aktivitätsnummer einzugeben oder anzuzeigen, die zu einer Bestellposition gehört, wählen Sie auf der Listenseite **Arbeitsauftragsbestellung** den Bestellungsdatensatz und dann in der Spalte **Bestellung** den Link für die Bestellung aus. Sie können das Feld **Aktivitätsnummer** auf der Registerkarte **Projekt** im Inforegister **Positionsdetails** finden.
Die folgende Abbildung zeigt ein Beispiel der Seite **Bestellung** mit Fokus auf der **Aktivitätsnummer**.

Um die Aktivitätsnummer einzugeben oder anzuzeigen, die zu der Bestellposition eines Arbeitsauftrags gehört, wählen Sie auf der Listenseite **Arbeitsauftragsbestellanforderung** den Bestellanforderungsdatensatz und dann in der Spalte **Bestellanforderung** den Link für die Bestellanforderung aus. Sie können das Feld **Aktivitätsnummer** auf der Registerkarte **Projekt** im Inforegister **Positionsdetails** finden.
[!INCLUDE[footer-include](../../../includes/footer-banner.md)] | 82.088235 | 708 | 0.822286 | deu_Latn | 0.998752 |
db96961d1267c015522570c6a0ed51702c7ac68a | 2,802 | md | Markdown | README.md | freder1c/more_holiday | 93f1d44aa582a20028142e5c420f95c7afa6cdf0 | [
"MIT"
] | null | null | null | README.md | freder1c/more_holiday | 93f1d44aa582a20028142e5c420f95c7afa6cdf0 | [
"MIT"
] | 1 | 2020-12-22T09:56:54.000Z | 2020-12-22T09:56:54.000Z | README.md | freder1c/more_holiday | 93f1d44aa582a20028142e5c420f95c7afa6cdf0 | [
"MIT"
] | null | null | null | # MoreHoliday
Make more out of your holidays!
## Description
Use bridging days smartly, to have more value out of your given holiday days. This gem automatically suggests you, which days to reserve next time you ask your employer for vacation.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'more_holiday'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install more_holiday
## Usage
This libary comes with german official holidays build in! So you just need to select your state and how many days you have available. Then you will get a suggestion, which days you should use, to take advantage from bridging days.
```ruby
MoreHoliday::Holiday.new("Berlin", available_days: 15).suggestions
```
Currently only german official holidays are supported. If you want to use select a different state or just want to play custom non official days, you can initialize with an ical file.
```ruby
MoreHoliday::Holiday.new(nil, available_days: 15, file_path: "/path/to/ical.ics").suggestions
```
## Export
It is possible to export the suggested days as a ical file as well, so you don't need to add them all manually to your calendar.
```ruby
MoreHoliday::Holiday.new("Berlin", available_days: 15).export_ical_file("/path/for/export")
# => "/path/for/export/MoreHoliday.ics"
```
## Next steps
- Add preference option, that suggestions are focused on specific time ranges
- Support more country states
- Add more import and export file content types
- Add browser support, that libary can be used with a stylish interface
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/freder1c/more_holiday. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the MoreHoliday project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/freder1c/more_holiday/blob/master/CODE_OF_CONDUCT.md).
| 38.916667 | 324 | 0.767666 | eng_Latn | 0.994987 |
db96c85b55746342b31fbce8db79a25aeda0189a | 14,905 | md | Markdown | Rocket/docs/Games/Unturned.md | educatalan02/Legally-Distinct-Missile | d22e8b1cfd095594231d38ab4a341b3db3f2cb89 | [
"MIT"
] | 47 | 2020-06-03T20:52:26.000Z | 2022-02-26T00:04:34.000Z | Rocket/docs/Games/Unturned.md | educatalan02/Legally-Distinct-Missile | d22e8b1cfd095594231d38ab4a341b3db3f2cb89 | [
"MIT"
] | 36 | 2020-06-14T04:23:16.000Z | 2022-03-30T17:29:09.000Z | Rocket/docs/Games/Unturned.md | educatalan02/Legally-Distinct-Missile | d22e8b1cfd095594231d38ab4a341b3db3f2cb89 | [
"MIT"
] | 24 | 2020-06-30T18:23:31.000Z | 2022-03-14T12:23:17.000Z | # Rocket.Unturned
## UnturnedPlayer
An extension for most used player info and methods.
```csharp
// Run the command.
public void Execute(IRocketPlayer caller, string[] command) {
if (caller is ConsolePlayer) {
Logger.Log("This command cannot be called from the console.");
return;
}
if (command.Length > 0) {
UnturnedChat.Say(caller, "This command is only for yourself.");
return;
}
UnturnedPlayer pCaller = (UnturnedPlayer)caller;
// Check if Admin
if (pCaller.IsAdmin && pCaller.Equals(UnturnedPlayer.FromName(command[0]))) {
pCaller.Features.GodMode = true;
pCaller.Features.VanishMode = true;
pCaller.Infection = 0;
pCaller.Hunger = 0;
pCaller.Thirst = 0;
pCaller.Heal(100, true, true);
// In UnturnedChat, both caller and pCaller will work.
UnturnedChat.Say(caller, String.Format("You are an Admin {0} [{1}], and now a vanished god at full health.", pCaller.CharacterName, pCaller.SteamName));
} else {
UnturnedChat.Say(caller, String.Format("For trying to call this admin-only command, you get more zombies {0} [{1}]!", pCaller.CharacterName, pCaller.SteamName));
pCaller.Kick("Bad dog.");
}
}
```
####Properties
Name | Type | Details | get or set
---------- | ---------- | ---------- | ----------
Bleeding | bool | Player is bleeding | get and set
Broken | bool | Player's broken bones | get and set
CharacterName | string | Player's Character name | get only
CSteamID | CSteamID | Player's Steam ID | get only
Dead | bool | Player is dead | get only
Events | UnturnedPlayerEvents | A getter for "player" events | get only
Experience | uint | Player's Experience | get and set
Features | RocketPlayerFeatures | Player's Features component | get only
Freezing | bool | Player is freezing | get only
Health | byte | Player's Health | get only
Hunger | byte | Player's Hunger | get and set
Infection | byte | Player's Infection level | get and set
Inventory | PlayerInventory | Player's Inventory | get only
IsAdmin | bool | true if admin, false otherwise | get only
IsPro | bool | true if the player has gold account | get only
Ping | float | the ping of the player | get only
Player | Player | SDG.Unturned.Player Instance | get only
Position | Vector3 | Player's position | get only
Rotation | float | Direction player is looking | get only
Stamina | byte | Player's current stamina | get only
Stance | EPlayerStance | Player's current stance | get only
SteamGroupID | CSteamID | Player's Group ID | get only
SteamName | string | Player's Steam name | get only
Thirst | byte | Player's Thirst | get and set
####Methods
Name | Parameters | Output | Description
---------- | ---------- | ---------- | ----------
Admin | bool, UnturnedPlayer=null | none | Admins player if true, unadmins if false [caller (UnturnedPlayer)]
Ban | string, uint | none | Bans player for reason (string) and seconds (uint)
Damage | byte, Vector3, EDeathCause, ELimb, CSteamID | EPlayerKill | Sends to the server a damage of the player
Equals | UnturnedPlayer | bool | Check if two UnturnedPlayers are equal
FromCSteamID | CSteamID | UnturnedPlayer | Gets UnturnedPlayer instance from CSteamID, null if not found
FromName | string | UnturnedPlayer | Get UnturnedPlayer instance from given CSteamID or player name (in a string), null if not found
FromPlayer | SDG.Unturned.Player | UnturnedPlayer | Get UnturnedPlayer instance, null if not found
FromSteamPlayer | SteamPlayer | UnturnedPlayer | Get RocketPlayer instance, null if not found
GetComponent<T> | Component | Component | Finds the instance of component type T
GiveItem | SDG.Unturned.Item | bool | Gives player an item, success returns true
GiveItem | ushort, byte | bool | Gives player an item of itemid (ushort) and its amount (byte), success returns true
GiveVehicle | ushort | bool | Gives player a vehicle of id (ushort), success returns true
Heal | byte, bool?=null, bool?=null | none | Heals player by amount (byte), bleeding, and broken (bool? x2)
Kick | string | none | Kicks player for reason (string)
Suicide | none | none | Causes player to suicide
Teleport | UnturnedPlayer | none | Teleports player to another player (UnturnedPlayer)
Teleport | Vector3, float | none | Teleports player to position (Vector3) facing (float)
Teleport | string | bool | Teleports player to map node (string), success returns true
TriggerEffect | ushort | none | Triggers an effect on the player
##UnturnedPlayerFeatures
A set of features for players. This is a sealed class and should be accessed through UnturnedPlayer.
#### Properties
Name | Type | Default | get/set
---------- | ---------- | ---------- | ----------
VanishMode | bool | false | get and set
GodMode | bool | false | get and set
## UnturnedPlayerComponent
> To use, your class should inherit from this component
```csharp
public class MyFancyPlayerComponent : UnturnedPlayerComponent {
public bool HasKitten;
private void Start() {
this.HasKitten = true;
}
private void FixedUpdate() {
if (this.HasKitten) {
UnturnedChat.Say(this.Player, MyFancyPlugin.Instance.Translate("myfancyplugin_message", 12));
}
}
}
```
Applied to all players when they connect and removed when they disconnect (or plugin unloaded).
#### Fields
Name | Type | Default
---------- | ---------- | ----------
Player | UnturnedPlayer | Current UnturnedPlayer instance
<aside class="notice">
Include Rocket.Core.Player in your references.
</aside>
## UnturnedChat
```csharp
UnturnedChat.Say(caller, "Message about how fancy I am here.");
UnturnedChat.Say(caller.CSteamID, "Message about how fancy I am here.");
UnturnedChat.Say("Broadcast about how fancy Rocket is.");
```
Used to send or broadcast messages in chat.
#### Methods
Name | Parameters | Output
---------- | ---------- | ----------
GetColorFromHex | string | Returns a new instance of UnityEngine.Color with the given hexadecimal color
GetColorFromName | string, UnityEngine.Color | Returns an instance of UnityEngine.Color with the given color name. On fail, the given UnityEngine.Color will be returned.
GetColorFromRGB | byte, byte, byte, byte=255 | Returns a new instance of UnityEngine.Color with the given RGBA (Red, Green, Blue and Alpha) color
Say | string [, UnityEngine.Color] | Broadcasts message to the server with a given color (optional)
Say | CSteamID, string [, UnityEngine.Color] | Sends a private message to the given CSteamID with a given color (optional)
Say | IRocketPlayer, string [, UnityEngine.Color] | Sends a private message to the given IRocketPlayer with a given color (optional)
wrapMessage | string | Wraps the given string and returns List<string> (wraps after 90 characters)
## UnturnedEvents
```csharp
protected override Load()
{
U.Events.OnPlayerConnected += (UnturnedPlayer player) =>
{
UnturnedChat.Say(player, "Welcome to my server!");
UnturnedChat.Say(player.CharacterName + " has joined the server!");
}
U.Events.OnPlayerDisconnected += (UnturnedPlayer player) =>
{
UnturnedChat.Say(player.CharacterName + " has disconnected from the server!", Color.Red);
}
U.Events.OnShutdown += () =>
{
Logger.Log("rip");
}
}
```
Unturned events.
#### Events
Name | Parameters | Occurrence
---------- | ---------- | ----------
OnBeforePlayerConnected | UnturnedPlayer | When the player starts the connection with the server
OnPlayerConnected | UnturnedPlayer | When the player's game has completely loaded
OnPlayerDisconnected | UnturnedPlayer | When the player disconnects from the server
OnShutdown | none | When the server shuts down
<aside class="notice">
You need to use the instance of UnturnedEvents class which can be found in Rocket.Unturned.U.Events.
</aside>
## UnturnedPlayerEvents
```csharp
protected override void Load()
{
UnturnedPlayerEvents.OnPlayerChatted += (UnturnedPlayer player, ref Color color, string message, EChatMode chatMode) =>
{
File.AppendAllText("mylogs.txt", String.Format("[CHAT] [{0}] {1}[{2}]: {3}", chatMode.ToString(), player.CharacterName, player.SteamName, message));
};
}
```
Unturned Player events.
#### Non-Static Events
Name | Parameters | Occurrence
---------- | ---------- | ----------
OnDead | UnturnedPlayer, Vector3 | When a player is dead with the given position (Vector3)
OnDeath | UnturnedPlayer, EDeathCause, ELimb, CSteamID | When a player dies with the given dead player (UnturnedPlayer), the cause of the death (EDeathCause), Which limb caused the death (ELimb) and the murderer's CSteamID
OnInventoryAdded | UnturnedPlayer, InventoryGroup, byte, ItemJar | When an item is added to the player's inventory
OnIntentoryRemoved | UnturnedPlayer, InventoryGroup, byte, ItemJar | When an item is removed from the player's inventory
OnInventoryResized | UnturnedPlayer, InventoryGroup, byte, byte | When the player's inventory is resized
OnInventoryUpdated | UnturnedPlayer, InventoryGroup, byte, ItemJar | When an item is updated in the player's inventory
OnRevive | UnturnedPlayer, Vector3, byte | When the player revives at the given position (Vector3)
OnUpdateBleeding | UnturnedPlayer, bool | When the player's bleeding status is updated
OnUpdateBroken | UnturnedPlayer, bool | When the player's broken status is updated
OnUpdateExperience | UnturnedPlayer, uint | When the player's experience value is updated
OnUpdateFood | UnturnedPlayer, byte | When the player's food value is updated
OnUpdateGesture | UnturnedPlayer, PlayerGesture | When the player's gesture is updated
OnUpdateHealth | UnturnedPlayer, byte | When the player's health value is updated
OnUpdateLife | UnturnedPlayer, byte | When the player's life value is updated
OnUpdatePosition | UnturnedPlayer, Vector3 | When the player's position is updated
OnUpdateStamina | UnturnedPlayer, byte | When the player's stamina value is updated
OnUpdateStance | UnturnedPlayer, byte | When the player's stance value is updated
OnUpdateStat | UnturnedPlayer, EPlayerStat | When the player updates his stats
OnUpdateVirus | UnturnedPlayer, byte | When the player's virus value is updated
OnUpdateWater | UnturnedPlayer, byte | When the player's water value is updated
<aside class="notice">
To use the non-static events, you need to access them through a player's instance of UnturnedPlayer.Events
</aside>
#### Static Events
Name | Parameters | Occurrence
---------- | ---------- | ----------
OnPlayerChatted | UnturnedPlayer, ref Color, string, EChatMode | When the player sends a chat message to the server with the given message (string) and the chat mode (EChatMode)
OnPlayerDead | UnturnedPlayer, Vector3 | When a player is dead with the given position (Vector3)
OnPlayerDeath | UnturnedPlayer, EDeathCause, ELimb, CSteamID | When a player dies with the given dead player (UnturnedPlayer), the cause of the death (EDeathCause), Which limb caused the death (ELimb) and the murderer's CSteamID
OnPlayerInventoryAdded | UnturnedPlayer, InventoryGroup, byte, ItemJar | When an item is added to the player's inventory
OnPlayerIntentoryRemoved | UnturnedPlayer, InventoryGroup, byte, ItemJar | When an item is removed from the player's inventory
OnPlayerInventoryResized | UnturnedPlayer, InventoryGroup, byte, byte | When the player's inventory is resized
OnPlayerInventoryUpdated | UnturnedPlayer, InventoryGroup, byte, ItemJar | When an item is updated in the player's inventory
OnPlayerRevive | UnturnedPlayer, Vector3, byte | When the player revives at the given position (Vector3)
OnPlayerUpdateBleeding | UnturnedPlayer, bool | When the player's bleeding status is updated
OnPlayerUpdateBroken | UnturnedPlayer, bool | When the player's broken status is updated
OnPlayerUpdateExperience | UnturnedPlayer, uint | When the player's experience value is updated
OnPlayerUpdateFood | UnturnedPlayer, byte | When the player's food value is updated
OnPlayerUpdateGesture | UnturnedPlayer, PlayerGesture | When the player's gesture is updated
OnPlayerUpdateHealth | UnturnedPlayer, byte | When the player's health value is updated
OnPlayerUpdateLife | UnturnedPlayer, byte | When the player's life value is updated
OnPlayerUpdatePosition | UnturnedPlayer, Vector3 | When the player's position is updated
OnPlayerUpdateStamina | UnturnedPlayer, byte | When the player's stamina value is updated
OnPlayerUpdateStance | UnturnedPlayer, byte | When the player's stance value is updated
OnPlayerUpdateStat | UnturnedPlayer, EPlayerStat | When the player updates his stats
OnPlayerUpdateVirus | UnturnedPlayer, byte | When the player's virus value is updated
OnPlayerUpdateWater | UnturnedPlayer, byte | When the player's water value is updated
OnPlayerWear | UnturnedPlayer, UnturnedPlayerEvents.Wearables, ushort, byte? | When the player wears an item
## UnturnedPermissions
```csharp
// For example, we have a list of banned SteamIDs in a List<ulong>.
List<ulong> bannedids = new List<ulong>() { };
UnturnedPermissions.OnJoinRequested += (Steamworks.CSteamID player, ref ESteamRejection? rejectionReason) =>
{
if (bannedids.Contains(player.m_SteamID)){
Logger.Log("Banned SteamID (" + player.m_SteamID.ToString() + ") has attempted to connect.");
rejectionReason = ESteamRejection.FAILED_AUTHENTICATION;
}
};
```
#### Events
Name | Parameters | Occurrence
---------- | ---------- | ----------
OnJoinRequested | CSteamID, ref ESteamRejection? | When the player requests a join request from the server, connection can be rejected by assigning a reason to ESteamRejection, or null if allowed
OnPermissionRequested | UnturnedPlayer, string, ref bool | When the player requests a permission, with the given permission name (string). Permission can be granted by setting the permissionGranted (bool) to true, false for the opposite
## UnturnedItems
```csharp
using Rocket.Unturned.Items;
using SDG.Unturned;
public static bool GiveMahItem(UnturnedPlayer p)
{
if(p==null) return false;
return p.GiveItem(UnturnedItems.AssembleItem(363,
30, // clipsize
new Attachment(22, 100), // sight
new Attachment(151, 100), // tactical
new Attachment(8, 100), // grip
new Attachment(7, 100), // barrel
new Attachment(17, 100), // magazine
EFiremode.AUTO, // firemode
1, 100 // amount, durability
));
}
```
#### Methods
Name | Parameters | Output
---------- | ---------- | ----------
AssembleItem | ushort, byte, byte, byte[] | Returns a new instance of an Item with the given itemid (ushort), amount, durability (byte x2) and the metadata (byte[])
AssembleItem | ushort, byte, Items.Attachment, Items.Attachment, Items.Attachment, Items.Attachment, Items.Attachment, EFiremode, byte, byte | Returns a new instance of an Item with the given itemid (ushort)<br/>Same as the overload above, but extending metadata into parameters clipsize, sight, tactical, grip, barrel, magazine and firemode (byte, Items.Attachment x5, EFiremode), with amount and durability (byte x2)
GetItemAssetById | ushort | Returns the ItemAsset of the given ItemID
GetItemAssetByName | string | Returns the ItemAsset of the given Item name
| 49.518272 | 418 | 0.745589 | eng_Latn | 0.949022 |
db96d34937bd6bb9746f70b59995822def1a9d21 | 84 | md | Markdown | monitor/README.md | dominicschaff/arduino_projects | 36d55a38a8cccf9b7257a341b20d1cc50774cc67 | [
"MIT"
] | null | null | null | monitor/README.md | dominicschaff/arduino_projects | 36d55a38a8cccf9b7257a341b20d1cc50774cc67 | [
"MIT"
] | null | null | null | monitor/README.md | dominicschaff/arduino_projects | 36d55a38a8cccf9b7257a341b20d1cc50774cc67 | [
"MIT"
] | null | null | null | # Monitor
I plan to build up a mini environment kind of system, which will be here
| 21 | 72 | 0.761905 | eng_Latn | 0.999942 |
db97cd8e6b418af773975fc0dba7a1c28ead657e | 15,609 | md | Markdown | claims/is-environmental-footprint.md | AceTheCreator/web3 | 7980ea93f928ea25ea32dfd945c43af4c56002ad | [
"CC0-1.0"
] | null | null | null | claims/is-environmental-footprint.md | AceTheCreator/web3 | 7980ea93f928ea25ea32dfd945c43af4c56002ad | [
"CC0-1.0"
] | null | null | null | claims/is-environmental-footprint.md | AceTheCreator/web3 | 7980ea93f928ea25ea32dfd945c43af4c56002ad | [
"CC0-1.0"
] | null | null | null | # Crypto Mining is Harmful to the Environment
Bitcoin [mining](../concepts/mining.md) is enormously harmful to the environment, the design of the Proof of Work (PoW) [consensus algorithm](../concepts/consensus-algorithm.md) is energy wasteful as part of its design. There are three factors that give rise to its inordinate environmental footprint which is incommensurate with its generated utility.
1. E-waste from discarded or broken ASIC mining equipment, graphics cards and servers.
2. Carbon release from fossil fuels used to power mining data centres
3. Opportunity cost of the energy used to run [consensus algorithm](../concepts/consensus-algorithm.md) compared to more efficient of efficient [real time gross settlement systems](../concepts/rtgs.md) and traditional [payment rails](is-transnational-payment.md) such as SWIFT, SEPA, Visa and ACH.
Crypto assets are not [providing access to the unbanked](is-crypto-unbanked.md) and cannot fulfil even a tiny fraction of the services provided by the global banking sector. Crypto assets like [bitcoin](../concepts/bitcoin.md) are simply a very inefficient and settlement to issue a speculative [cryptoasset](../concepts/cryptoasset.md) used primarily for [gambling](../concepts/gambling.md) and [illicit financing](../concepts/illicit-financing.md).
BItcoin mining has the equivalent power consumption of the state of Argentina, a country with a population of 45 million people. Bitcoin mining has an e-waste footprint comparable to that of entire population of Germany.
Bitcoin mining collectively consumes more power than all data centres run by Google, Amazon, Microsoft, Apple, Netflix, Facebook and YouTube put together.
Bitcoin is simply one of thousands of crypto assets which use PoW algorithm, including the second largest asset Ethereum which together with all other assets sum some to an even larger environmental footprint and difficult to calculate environmental footprint.
## References
1. Ahl, Amanda, Masaru Yarime, Kenji Tanaka, and Daishi Sagawa. ‘Review of Blockchain-Based Distributed Energy: Implications for Institutional Development’. Renewable and Sustainable Energy Reviews 107 (2019): 200–211. https://doi.org/10.1016/j.rser.2019.03.002.
1. Amenta, Carlo, E Riva Sanseverino, and Carlo Stagnaro. ‘Regulating Blockchain for Sustainability? The Critical Relationship between Digital Innovation, Regulation, and Electricity Governance’. Energy Research & Social Science 76 (2021): 102060. https://doi.org/10.1016/j.erss.2021.102060.
1. Ante, L., F. Steinmetz, and I. Fiedler. ‘Blockchain and Energy: A Bibliometric Analysis and Review’. Renewable and Sustainable Energy Reviews 137, no. October 2020 (2021): 110597. https://doi.org/10.1016/j.rser.2020.110597.
1. Badea, Liana, and Mariana Claudia Mungiu-Pupazan. ‘The Economic and Environmental Impact of Bitcoin’. IEEE Access 9 (2021): 48091–104. https://doi.org/10.1109/ACCESS.2021.3068636.
1. Benetton, Matteo, Giovanni Compiani, and Adair Morse. ‘When Cryptomining Comes to Town: High Electricity-Use Spillovers to the Local Economy’. SSRN Electronic Journal, 2021. https://doi.org/10.2139/ssrn.3779720.
1. Bogensperger, Alexander, Andreas Zeiselmair, Michael Hinterstocker, Patrick Dossow, Johannes Hilpert, Maximilian Wimmer, Carsten von Gneisenau, et al. ‘Welche Zukunft Hat Die Blockchain-Technologie in Der Energiewirtschaft?’, 2021. https://www.econstor.eu/handle/10419/237670.
1. Brilliantova, Vlada, and Thomas Wolfgang Thurner. ‘Blockchain and the Future of Energy’. Technology in Society 57 (2019): 38–45. https://doi.org/10.1016/j.techsoc.2018.11.001.
1. Buth, M C (Annemarie), A J (Anna) Wieczorek, and G P J (Geert) Verbong. ‘The Promise of Peer-to-Peer Trading? The Potential Impact of Blockchain on the Actor Configuration in the Dutch Electricity System’. Energy Research & Social Science 53 (2019): 194–205. https://doi.org/10.1016/j.erss.2019.02.021.
1. Campbell-Verduyn, Malcolm. ‘Conjuring a Cooler World? Blockchains, Imaginaries and the Legitimacy of Climate Governance’. Global Cooperation Research Papers 28 (2021). https://doi.org/doi:10.14282/2198-0411-GCRP-28.
1. Diehl, Stephen. ‘The Crypto Chernobyl’, 10 February 2021. https://www.stephendiehl.com/blog/chernobyl.html.
1. Dindar, B., and Ö. Gül. ‘The Detection of Illicit Cryptocurrency Mining Farms with Innovative Approaches for the Prevention of Electricity Theft’. Energy & Environment, no. April (2021): 0958305X211045066. https://doi.org/10.1177/0958305x211045066.
1. Dorfleitner, Gregor, Franziska Muck, and Isabel Scheckenbach. ‘Blockchain Applications for Climate Protection: A Global Empirical Investigation’. Renewable and Sustainable Energy Reviews 149, no. June (October 2021): 111378. https://doi.org/10.1016/j.rser.2021.111378.
1. Gallersdörfer, Ulrich, Lena Klaaßen, and Christian Stoll. ‘Accounting for Carbon Emissions Caused by Cryptocurrency and Token Systems’, 2021. https://arxiv.org/abs/2111.06477.
1. ———. ‘Energy Consumption of Cryptocurrencies Beyond Bitcoin’. Joule, 2020.
1. Gallersdörfer, Ulrich, Lena Klaaßen, Christian Stoll, Ulrich Gallersdo, Lena Klaaßen, Christian Stoll, and Ulrich Gallersdo. ‘Energy Consumption of Cryptocurrencies Beyond Bitcoin’. Joule 4, no. 2018 (September 2020): 2018–21. https://doi.org/10.1016/j.joule.2020.07.013.
1. Goodkind, Andrew L, Benjamin A Jones, and Robert P Berrens. ‘Cryptodamages: Monetary Value Estimates of the Air Pollution and Human Health Impacts of Cryptocurrency Mining’. Energy Research & Social Science 59 (2020): 101281.
1. Goodkind, Andrew L., Benjamin A. Jones, and Robert P. Berrens. ‘Cryptodamages: Monetary Value Estimates of the Air Pollution and Human Health Impacts of Cryptocurrency Mining’. Energy Research and Social Science 59, no. March 2019 (2020): 101281. https://doi.org/10.1016/j.erss.2019.101281.
1. Greenberg, Pierce, and Dylan Bugden. ‘Energy Consumption Boomtowns in the United States: Community Responses to a Cryptocurrency Boom’. Energy Research and Social Science 50, no. December 2018 (2019): 162–67. https://doi.org/10.1016/j.erss.2018.12.005.
1. Howson, Peter. ‘Building Trust and Equity in Marine Conservation and Fisheries Supply Chain Management with Blockchain’. Marine Policy 115 (May 2020): 103873. https://doi.org/10.1016/J.MARPOL.2020.103873.
1. ———. ‘Climate Crises and Crypto-Colonialism: Conjuring Value on the Blockchain Frontiers of the Global South’. Frontiers in Blockchain 3, no. May (2020). https://doi.org/10.3389/fbloc.2020.00022.
1. ———. ‘Distributed Degrowth Technology: Challenges for Blockchain beyond the Green Economy’. Ecological Economics 184, no. June 2020 (June 2021): 107020. https://doi.org/10.1016/j.ecolecon.2021.107020.
1. ———. ‘Tackling Climate Change with Blockchain’. Nature Climate Change 9, no. 9 (2019): 644–45. https://doi.org/10.1038/s41558-019-0567-9.
1. Howson, Peter, Sarah Oakes, Zachary Baynham-Herd, and Jon Swords. ‘Cryptocarbon: The Promises and Pitfalls of Forest Protection on a Blockchain’. Geoforum 100, no. February 2019 (2019): 1–9. https://doi.org/10.1016/j.geoforum.2019.02.011.
1. Howson, Peter, and Alex de Vries. ‘Preying on the Poor? Opportunities and Challenges for Tackling the Social and Environmental Threats of Cryptocurrencies for Vulnerable and Low-Income Communities’. Energy Research and Social Science 84, no. xxxx (2022): 102394. https://doi.org/10.1016/j.erss.2021.102394.
1. Hull, Jed, Aarti Gupta, and Sanneke Kloppenburg. ‘Interrogating the Promises and Perils of Climate Cryptogovernance: Blockchain Discourses in International Climate Politics’. Earth System Governance 9 (2021): 100117. https://doi.org/10.1016/j.esg.2021.100117.
1. Huston, Jacob. ‘The Energy Consumption of Bitcoin Mining and Potential for Regulation’. George Washington Journal of Energy and Environmental Law 11, no. 1 (2020): 32–41. https://heinonline.org/hol-cgi-bin/get_pdf.cgi?handle=hein.journals/gwjeel11§ion=6.
1. Jana, Rabin K., Indranil Ghosh, Debojyoti Das, and Anupam Dutta. ‘Determinants of Electronic Waste Generation in Bitcoin Network: Evidence from the Machine Learning Approach’. Technological Forecasting and Social Change 173 (2021). https://doi.org/10.1016/j.techfore.2021.121101.
1. Koomey, Jonathan, and Eric Masanet. ‘Does Not Compute: Avoiding Pitfalls Assessing the Internet’s Energy and Carbon Impacts’. Joule 5, no. 7 (2021): 1625–28. https://doi.org/10.1016/j.joule.2021.05.007.
1. Küfeoğlu, Sinan, and Mahmut Özkuran. ‘Bitcoin Mining: A Global Review of Energy and Power Demand’. Energy Research and Social Science 58 (2019): 101273. https://doi.org/10.1016/j.erss.2019.101273.
1. Li, Jingming, Nianping Li, Jinqing Peng, Haijiao Cui, and Zhibin Wu. ‘Energy Consumption of Cryptocurrency Mining: A Study of Electricity Consumption in Mining Cryptocurrencies’. Energy 168 (2019): 160–68. https://doi.org/10.1016/j.energy.2018.11.046.
1. ———. ‘Energy Consumption of Cryptocurrency Mining: A Study of Electricity Consumption in Mining Cryptocurrencies’. Energy 168 (2019): 160–68. https://doi.org/10.1016/j.energy.2018.11.046.
1. McDonald, Kyle. ‘Ethereum Emissions: A Bottom-up Estimate’, 2021. http://arxiv.org/abs/2112.01238.
1. Miglani, Arzoo, Neeraj Kumar, Vinay Chamola, and Sherali Zeadally. ‘Blockchain for Internet of Energy Management: Review, Solutions, and Challenges’. Computer Communications 151 (2020): 395–418. https://doi.org/10.1016/j.comcom.2020.01.014.
1. Mollah, Muhammad Baqer, Jun Zhao, Dusit Niyato, Kwok Yan Lam, Xin Zhang, Amer M.Y.M. Ghias, Leong Hai Koh, and Lei Yang. ‘Blockchain for Future Smart Grid: A Comprehensive Survey’. IEEE Internet of Things Journal 8, no. 1 (2021): 18–43. https://doi.org/10.1109/JIOT.2020.2993601.
1. Mora, Camilo, Randi L Rollins, Katie Taladay, Michael B Kantar, Mason K Chock, Mio Shimada, and Erik C Franklin. ‘Bitcoin Emissions Alone Could Push Global Warming above 2 C’. Nature Climate Change 8, no. 11 (2018): 931–33.
1. Náñez Alonso, Sergio Luis, Javier Jorge‐vázquez, Miguel Ángel Echarte Fernández, and Ricardo Francisco Reier Forradellas. ‘Cryptocurrency Mining from an Economic and Environmental Perspective. Analysis of the Most and Least Sustainable Countries’. Energies 14, no. 14 (2021). https://doi.org/10.3390/en14144254.
1. Okorie, David I. ‘A Network Analysis of Electricity Demand and the Cryptocurrency Markets’. International Journal of Finance and Economics 26, no. 2 (2021): 3093–3108. https://doi.org/10.1002/ijfe.1952.
1. Peplow, Mark. ‘Bitcoin Poses Major Electronic-Waste Problem’. Chemical & Engineering News. American Chemical Society, March 2019. http://cen.acs.org/environment/sustainability/Bitcoin-poses-major-electronic-waste/97/i11.
1. Petri, Ioan, Masoud Barati, Yacine Rezgui, and Omer F Rana. ‘Blockchain for Energy Sharing and Trading in Distributed Prosumer Communities’. Computers in Industry 123 (2020): 103282. https://doi.org/10.1016/j.compind.2020.103282.
1. Platt, Moritz, Johannes Sedlmeir, Daniel Platt, Jiahua Xu, Paolo Tasca, Nikhil Vadgama, and Juan Ignacio Ibanez. ‘Energy Footprint of Blockchain Consensus Mechanisms Beyond Proof-of-Work’, 2021. https://arxiv.org/abs/2109.03667.
1. Qin, Shize, Lena Klaaßen, Ulrich Gallersdörfer, Christian Stoll, and Da Zhang. ‘Bitcoin’s Future Carbon Footprint’, 2020. http://arxiv.org/abs/2011.02612.
1. Scharnowski, Stefan, and Yanghua Shi. ‘Bitcoin Blackout: Proof-of-Work and the Centralization of Mining’. SSRN Electronic Journal, 2021. https://doi.org/10.2139/ssrn.3936787.
1. Schinckus, Christophe. ‘The Good, the Bad and the Ugly: An Overview of the Sustainability of Blockchain Technology’. Energy Research and Social Science 69, no. May (2020): 101614. https://doi.org/10.1016/j.erss.2020.101614.
1. Schneiders, Alexandra, and David Shipworth. ‘Community Energy Groups: Can They Shield Consumers from the Risks of Using Blockchain for Peer-to-Peer Energy Trading?’ Energies 14, no. 12 (2021). https://doi.org/10.3390/en14123569.
1. Schulz, Karsten, and Marian Feist. ‘Leveraging Blockchain Technology for Innovative Climate Finance under the Green Climate Fund’. SSRN Electronic Journal 7 (2020): 100084. https://doi.org/10.2139/ssrn.3663176.
1. Sedlmeir, Johannes, Hans Ulrich Buhl, Gilbert Fridgen, and Robert Keller. ‘Ein Blick Auf Aktuelle Entwicklungen Bei Blockchains Und Deren Auswirkungen Auf Den Energieverbrauch’. Informatik-Spektrum 43, no. 6 (2020): 391–404. https://doi.org/10.1007/s00287-020-01321-z.
1. Sedlmeir, Johannes, Hans Ulrich, Buhl Gilbert, and Robert Keller. ‘The Energy Consumption of Blockchain Technology : Beyond Myth’. Business & Information Systems Engineering 62, no. 6 (2020): 599–608. https://doi.org/10.1007/s12599-020-00656-x.
1. Stoll, Christian, Lena Klaaßen, and Ulrich Gallersdörfer. ‘The Carbon Footprint of Bitcoin’. Joule 3, no. 7 (2019): 1647–61. https://doi.org/10.1016/j.joule.2019.05.012.
1. Teng, Fei, Qi Zhang, Ge Wang, Jiangfeng Liu, and Hailong Li. ‘A Comprehensive Review of Energy Blockchain: Application Scenarios and Development Trends’. International Journal of Energy Research 45, no. 12 (2021): 17515–31. https://doi.org/10.1002/er.7109.
1. Teufel, Bernd, Anton Sentic, and Mathias Barmet. ‘Blockchain Energy: Blockchain in Future Energy Systems’. Journal of Electronic Science and Technology 17, no. 4 (2019): 100011. https://doi.org/10.1016/j.jnlest.2020.100011.
1. Truby, Jon. ‘Decarbonizing Bitcoin: Law and Policy Choices for Reducing the Energy Consumption of Blockchain Technologies and Digital Currencies’. Energy Research and Social Science 44, no. June (2018): 399–410. https://doi.org/10.1016/j.erss.2018.06.009.
1. Valdivia, A. Diaz, and M. Poblet Balcell. ‘Connecting the Grids: A Review of Blockchain Governance in Distributed Energy Transitions’. Energy Research and Social Science 84 (2022): 102383. https://doi.org/10.1016/j.erss.2021.102383.
1. Vries, Alex De. ‘Bitcoin’s Energy Consumption Is Underestimated : A Market Dynamics Approach’. Energy Research & Social Science 70, no. July (2020): 101721. https://doi.org/10.1016/j.erss.2020.101721.
1. Vries, Alex de. ‘Bitcoin’s Growing Energy Problem’. Joule 2, no. 5 (2018): 801–5. https://doi.org/10.1016/j.joule.2018.04.016.
1. Vries, Alex de, and Christian Stoll. ‘Bitcoin’s Growing e-Waste Problem’. Resources, Conservation and Recycling 175, no. September (2021): 105901. https://doi.org/10.1016/j.resconrec.2021.105901.
1. Wanat, Emanuel. ‘Are Crypto-Assets Green Enough? – An Analysis of Draft EU Regulation on Markets in Crypto Assets from the Perspective of the European Green Deal’. Osteuropa Recht 67, no. 2 (2021): 237–50. https://doi.org/10.5771/0030-6444-2021-2-237.
1. Yan, Lei, Nawazish Mirza, and Muhammad Umar. ‘The Cryptocurrency Uncertainties and Investment Transitions: Evidence from High and Low Carbon Energy Funds in China’. Technological Forecasting and Social Change, 2021, 121326. https://doi.org/10.1016/j.techfore.2021.121326.
1. Yapa, Charithri, Chamitha de Alwis, and Madhusanka Liyanage. ‘Can Blockchain Strengthen the Energy Internet?’ Network 1, no. 2 (2021): 95–115. https://doi.org/10.3390/network1020007.
1. Yildizbasi, Abdullah. ‘Blockchain and Renewable Energy: Integration Challenges in Circular Economy Era’. Renewable Energy 176 (2021): 183–97. https://doi.org/10.1016/j.renene.2021.05.053.
1. Zannini, Alice. ‘Blockchain Technology as the Digital Enabler to Scale up Renewable Energy Communities and Cooperatives in Spain’, 2020.
1. Zhu, Shuai, Malin Song, Ming Kim Lim, Jianlin Wang, and Jiajia Zhao. ‘The Development of Energy Blockchain and Its Implications for China’s Energy Sector’. Resources Policy 66 (2020): 101595. https://doi.org/10.1016/j.resourpol.2020.101595. | 202.714286 | 450 | 0.776475 | eng_Latn | 0.507865 |
db97d19e7c840104b282aa05d99b796f5294653c | 16,491 | md | Markdown | README.md | srjnm/demoinfocs-golang | 76e41f3c8684b77b5a9ccd46e8bb5204395925f9 | [
"MIT"
] | 1 | 2021-08-15T18:53:16.000Z | 2021-08-15T18:53:16.000Z | README.md | srjnm/demoinfocs-golang | 76e41f3c8684b77b5a9ccd46e8bb5204395925f9 | [
"MIT"
] | null | null | null | README.md | srjnm/demoinfocs-golang | 76e41f3c8684b77b5a9ccd46e8bb5204395925f9 | [
"MIT"
] | null | null | null | # demoinfocs-golang - CS:GO Demo Parser
A blazing fast, feature complete and production ready Go library for parsing and analysing of Counter Strike: Global Offensive (CS:GO) demos (aka replays). It is based on <a href="https://github.com/ValveSoftware/csgo-demoinfo" rel="external">Valve's demoinfogo</a> and <a href="https://github.com/StatsHelix/demoinfo" rel="external">SatsHelix's demoinfo</a> but provides many improvements.
[](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc)
[](https://travis-ci.com/github/markus-wa/demoinfocs-golang)
[](https://codecov.io/gh/markus-wa/demoinfocs-golang)
[](https://goreportcard.com/report/github.com/markus-wa/demoinfocs-golang)
[](LICENSE.md)
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fmarkus-wa%2Fdemoinfocs-golang?ref=badge_shield)
[](https://app.snyk.io/org/markus-wa/project/4103d506-a2ae-4d16-a93b-c31b069268e2)
## Discussions / Chat
You can use [Gitter](https://gitter.im/csgodemos/demoinfo-lib) or [GitHub Discussions](https://github.com/markus-wa/demoinfocs-golang/discussions) to ask questions and discuss ideas about this project.<br>
For business inquiries please use the contact information found on the [GitHub profile](https://github.com/markus-wa).
[](https://gitter.im/csgodemos/demoinfo-lib)
## Donations
If you have been enjoying this library and are considering donating, please check out this wiki page [regarding donations](https://github.com/markus-wa/demoinfocs-golang/wiki/Regarding-Donations).
## Go Get
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
## Table of Contents
- [Requirements](https://github.com/markus-wa/demoinfocs-golang#requirements)
- [Quickstart Guide](https://github.com/markus-wa/demoinfocs-golang#quickstart-guide)
- [Example](https://github.com/markus-wa/demoinfocs-golang#example)
- [More Examples](https://github.com/markus-wa/demoinfocs-golang#more-examples)
- [Documentation](https://github.com/markus-wa/demoinfocs-golang#documentation)
- [Features](https://github.com/markus-wa/demoinfocs-golang#features)
- [Performance / Benchmarks](https://github.com/markus-wa/demoinfocs-golang#performance--benchmarks)
- [Versioning](https://github.com/markus-wa/demoinfocs-golang#versioning)
- [Projects Using demoinfocs-golang](https://github.com/markus-wa/demoinfocs-golang#projects-using-demoinfocs-golang)
- [Development](https://github.com/markus-wa/demoinfocs-golang#development)
- [Debugging](https://github.com/markus-wa/demoinfocs-golang#debugging)
- [Testing](https://github.com/markus-wa/demoinfocs-golang#testing)
- [Generating Interfaces](https://github.com/markus-wa/demoinfocs-golang#generating-interfaces)
- [Generating Protobuf Code](https://github.com/markus-wa/demoinfocs-golang#generating-protobuf-code)
- [Git Hooks](https://github.com/markus-wa/demoinfocs-golang#git-hooks)
- [Acknowledgements](https://github.com/markus-wa/demoinfocs-golang#acknowledgements)
- [License](https://github.com/markus-wa/demoinfocs-golang#license) (MIT)
## Requirements
This library should be used with `go 1.11` or higher as it is built using Go modules.
It's recommended to use modules for consumers as well if possible.
If you are unfamiliar with Go modules there's a [list of recommended resources](https://github.com/markus-wa/demoinfocs-golang/wiki/Go-Modules#recommended-links--articles) in the wiki.
## Quickstart Guide
1. Download and install the latest version of Go [from golang.org](https://golang.org/dl/) or via your favourite package manager
2. Create a new Go Modules project
```terminal
mkdir my-project
cd my-project
go mod init github.com/<YOUR_GITHUB_USER>/my-project
# the module name (github.com/<YOUR_GITHUB_USER>/my-project) can always be changed later
# you can also put example.com/my-project or anything else if you don't plan to publish your project
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
```
3. Create a `main.go` file with the example below
4. Run `go run main.go`
### Example
This is a simple example on how to handle game events using this library.
It prints all kills in a given demo (killer, weapon, victim, was it a wallbang/headshot?) by registering a handler for [`events.Kill`](https://godoc.org/github.com/markus-wa/demoinfocs-golang/events#Kill).
Check out the [godoc of the `events` package](https://godoc.org/github.com/markus-wa/demoinfocs-golang/events) for some information about the other available events and their purpose.
```go
package main
import (
"fmt"
"os"
dem "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
)
func main() {
f, err := os.Open("/path/to/demo.dem")
if err != nil {
panic(err)
}
defer f.Close()
p := dem.NewParser(f)
defer p.Close()
// Register handler on kill events
p.RegisterEventHandler(func(e events.Kill) {
var hs string
if e.IsHeadshot {
hs = " (HS)"
}
var wallBang string
if e.PenetratedObjects > 0 {
wallBang = " (WB)"
}
fmt.Printf("%s <%v%s%s> %s\n", e.Killer, e.Weapon, hs, wallBang, e.Victim)
})
// Parse to end
err = p.ParseToEnd()
if err != nil {
panic(err)
}
}
```
#### Sample Output
Running the code above will print something like this:
```
xms <AK-47 (HS)> crisby
tiziaN <USP-S (HS)> Ex6TenZ
tiziaN <USP-S> mistou
tiziaN <USP-S (HS)> ALEX
xms <Glock-18 (HS)> tiziaN
...
keev <AWP (HS) (WB)> to1nou
...
```
### More Examples
Check out the [examples](examples) folder for more examples, like [how to generate heatmaps](examples/heatmap) like this one:
<img alt="sample heatmap" src="https://raw.githubusercontent.com/markus-wa/demoinfocs-golang/master/examples/heatmap/heatmap.jpg" width="50%">
### Documentation
The full API documentation is available here on [pkg.go.dev](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs).
## Features
* Game events (kills, shots, round starts/ends, footsteps etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events?tab=doc) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
* Tracking of game-state (players, teams, grenades, ConVars etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc#GameState)
* Grenade projectiles / trajectories - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc#GameState.GrenadeProjectiles) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/nade-trajectories)
* Access to entities, server-classes & data-tables - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables?tab=doc#ServerClasses) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/entities)
* Access to all net-messages - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc#NetMessageCreator) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/net-messages)
* Chat & console messages <sup id="achat1">1</sup> - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events?tab=doc#ChatMessage) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
* Matchmaking ranks (official MM demos only) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events?tab=doc#RankUpdate)
* Full POV demo support <sup id="achat1">2</sup>
* JavaScript (browser / Node.js) support via WebAssembly - [example](https://github.com/markus-wa/demoinfocs-wasm)
* [Easy debugging via build-flags](#debugging)
* Built with performance & concurrency in mind
1. <small id="f1">Only for some demos; in MM demos the chat is encrypted for example.</small>
2. <small id="f2">Better than some other parsers at the time of writing.</small>
## Performance / Benchmarks
Two of the top priorities of this parser are performance and concurrency.
Here are some benchmark results from a system with an Intel i7 6700k CPU and a SSD disk running Windows 10 and a demo with 85'000 frames.
### Overview
|Benchmark|Description|Average Duration|Speed|
|-|-|-|-|
|`BenchmarkConcurrent`|Read and parse 8 demos concurrently|2.06 s (per 8 demos)|~330'000 ticks / s|
|`BenchmarkDemoInfoCs`|Read demo from drive and parse|0.89 s|~95'000 ticks / s
|`BenchmarkInMemory`|Read demo from memory and parse|0.88 s|~96'000 ticks / s
*That's almost 1.5 hours of gameplay per second when parsing in parallel (recorded at 64 ticks per second) - or 25 minues per second when only parsing a single demo at a time.*
### Raw Output
```
$ go test -run _NONE_ -bench . -benchtime 30s -benchmem -concurrentdemos 8
goos: windows
goarch: amd64
pkg: github.com/markus-wa/demoinfocs-golang
BenchmarkDemoInfoCs-8 50 894500010 ns/op 257610127 B/op 914355 allocs/op
BenchmarkInMemory-8 50 876279984 ns/op 257457271 B/op 914143 allocs/op
BenchmarkConcurrent-8 20 2058303680 ns/op 2059386582 B/op 7313145 allocs/op
--- BENCH: BenchmarkConcurrent-8
demoinfocs_test.go:315: Running concurrency benchmark with 8 demos
demoinfocs_test.go:315: Running concurrency benchmark with 8 demos
PASS
ok github.com/markus-wa/demoinfocs-golang 134.244s
```
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/markus-wa/demoinfocs-golang/tags).
There is one caveat however: Beta features - which are marked as such via comments and in release notes - may change in minor releases.
## Projects Using demoinfocs-golang
- [noesis.gg](https://www.noesis.gg/) - A suite of explorative tools to help you analyze and improve your CS:GO performance
- [esportal.se](https://esportal.se/) - An alternative Matchmaking service that aims to provide a friendly environment free from trolls and misbehaving individuals
- [esportslab.gg](https://esportslab.gg/) - Building ML/AI tools for professional esports players
- [scope.gg](https://scope.gg/) - Analytical and advisory service for advanced CS:GO players
- [PureSkill.gg](https://pureskill.gg/) - An automated coach to help you get better at CS:GO.
- [csgofacts.com](https://csgofacts.com/) - A set of open-source services for CSGO game analysis
- [cs-demo-minifier](https://github.com/markus-wa/cs-demo-minifier) - Converts demos to JSON, MessagePack and more
- [csgo_spray_pattern_plotter](https://github.com/o40/csgo_spray_pattern_plotter) - A tool to extract and plot spray patterns from CS:GO replays
- [CS:GO Player Skill Prediction](https://drive.google.com/file/d/1JXIB57BA2XBTYVLSy6Xg_5nfL6dWyDmG/view) - Machine learning master thesis by [@quancore](https://github.com/quancore) about predicting player performance
- [csgoverview](https://github.com/Linus4/csgoverview) - A 2D demo replay tool for CS:GO
- [csgo-coach-bug-detector](https://github.com/softarn/csgo-coach-bug-detector) - Detects the abuse of an exploit used by some team coaches in professional matches
- [megaclan3000](https://github.com/megaclan3000/megaclan3000) - A CS:GO stats page for clans with recent matches and player statistics
If your project is using this library feel free to submit a PR or send a message in [Gitter](https://gitter.im/csgodemos/demoinfo-lib) to be included in the list.
## Development
### Debugging
You can use the build tag `debugdemoinfocs` (i.e. `go test -tags debugdemoinfocs -v`) to print out debugging information - such as game events or unhandled demo-messages - during the parsing process.<br>
Side-note: The tag isn't called `debug` to avoid naming conflicts with other libs (and underscores in tags don't work, apparently).
To change the default debugging behavior, Go's `ldflags` parameter can be used. Example for additionally printing out all server-classes with their properties: `-ldflags="-X 'github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs.debugServerClasses=YES'"`
Check out `debug_on.go` for any other settings that can be changed.
### Testing
#### Unit Tests
For any new features, [Test Driven Development](https://medium.com/@pierreprinetti/test-driven-development-in-go-baeab5adb468) should be practiced where possible.
However, due to some design flaws in some parts of the code it's currently not always practical to do so.
Running unit tests:
scripts/unit-tests.sh
# or (identical)
go test -short ./...
#### Regression Tests
For the full regression suite you will need to download the test demo-set.
Prerequisites:
- [Git LFS](https://git-lfs.github.com) must be installed
- [`7z`](https://www.7-zip.org/) must be in your `PATH` environment variable (`p7zip` or `p7zip-full` package on most Linux distros)
Downloading demos + running regression tests:
scripts/regression-tests.sh
#### Updating the `default.golden` File
The file [`test/default.golden`](https://github.com/markus-wa/demoinfocs-golang/blob/master/test/default.golden) file contains a serialized output of all expected game events in `test/cs-demos/default.dem`.
If there is a change to game events (new fields etc.) it is necessary to update this file so the regression tests pass.
To update it you can run the following command:
go test -run TestDemoInfoCs -update
Please don't update the `.golden` file if you are not sure it's required. Maybe the failing CI is just pointing out a regression.
### Generating Interfaces
We generate interfaces such as `GameState` from structs to make it easier to keep docs in synch over structs and interfaces.
For this we use [@vburenin](https://github.com/vburenin)'s [`ifacemaker`](https://github.com/vburenin/ifacemaker) tool.
You can download the latest version [here](https://github.com/vburenin/ifacemaker/releases).
After adding it to your `PATH` you can use `scripts/generate-interfaces.sh` to update interfaces.
### Generating Protobuf Code
Should you need to re-generate the protobuf generated code in the `msg` package, you will need the following tools:
- The latest protobuf generator (`protoc`) from your package manager or https://github.com/google/protobuf/releases
- And `protoc-gen-gogofaster` from [gogoprotobuf](https://github.com/gogo/protobuf) to generate code for go.
go get -u github.com/gogo/protobuf/protoc-gen-gogofaster
[//]: # "The go get above needs two tabs so it's displayed a) as part of the last list entry and b) as a code-block"
[//]: # "Oh and don't try to move these comments above it either"
Make sure both are inside your `PATH` variable.
After installing these use `go generate ./msg` to generate the protobuf code. If you're on Windows you'll need to run go generate from CMD, not Bash.
### Git Hooks
To install some (optional, but quite handy) `pre-commit` and `pre-push` hooks, you can run the following script.
scripts/git-hooks/link-git-hooks.sh
#### `pre-commit`:
- check if [interfaces have been updated](#generating-interfaces)
- build the code
- run unit tests
#### `pre-push`:
- run regression tests
## Acknowledgements
Thanks to [@JetBrains](https://github.com/JetBrains) for sponsoring a license of their awesome [GoLand](https://www.jetbrains.com/go/) IDE for this project - go check it out!
And a very special thanks goes out to all the [⭐contributors⭐](https://github.com/markus-wa/demoinfocs-golang/graphs/contributors)️, be it in the form of PRs, issues or anything else.
## License
This project is licensed under the [MIT license](LICENSE.md).
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fmarkus-wa%2Fdemoinfocs-golang?ref=badge_large)
| 51.695925 | 390 | 0.756109 | eng_Latn | 0.700174 |
db97ebad2a17dfcfd1516f0ee4a7aad45ef72c96 | 2,795 | md | Markdown | docs/debugger/how-to-use-edit-and-continue-csharp.md | seferciogluecce/visualstudio-docs.tr-tr | 222704fc7d0e32183a44e7e0c94f11ea4cf54a33 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/debugger/how-to-use-edit-and-continue-csharp.md | seferciogluecce/visualstudio-docs.tr-tr | 222704fc7d0e32183a44e7e0c94f11ea4cf54a33 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/debugger/how-to-use-edit-and-continue-csharp.md | seferciogluecce/visualstudio-docs.tr-tr | 222704fc7d0e32183a44e7e0c94f11ea4cf54a33 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: 'Nasıl yapılır: Düzenle ve kullanma (C#) devam | Microsoft Docs'
ms.custom: ''
ms.date: 10/04/2018
ms.technology: vs-ide-debug
ms.topic: conceptual
dev_langs:
- CSharp
- VB
- FSharp
- C++
helpviewer_keywords:
- Edit and Continue [C#], about Edit and Continue
ms.assetid: 40e136d8-a08c-43bd-b313-fb821c55eb3c
author: mikejo5000
ms.author: mikejo
manager: douge
ms.workload:
- dotnet
ms.openlocfilehash: 41e97f488344e3d34ce326a3d35880d94da4ad9a
ms.sourcegitcommit: c5e72875206b8c5737c29d5b1ec7b86eec747303
ms.translationtype: MT
ms.contentlocale: tr-TR
ms.lasthandoff: 10/17/2018
ms.locfileid: "49382811"
---
# <a name="how-to-use-edit-and-continue-c"></a>Nasıl Yapılır: Düzenle ve Devam Et'i Kullanma (C#)
Düzenle ve devam et ile değişiklikler yapabilir ve bu, durdurmak ve hata ayıklama oturumunu yeniden başlatmak zorunda kalmadan hata ayıklama sırasında kodunuzda kesme modunda değişiklikleri uygulayın.
Düzenle ve devam et için kesme modunda, kod değişiklik yaptığınızda C# otomatik olarak gerçekleşir ardından kullanarak hata ayıklamaya devam **devam**, **adım**, veya **sonraki deyimi Ayarla**, veya hata ayıklayıcı penceresindeki bir işlevi değerlendirin.
Daha fazla bilgi için [Düzenle ve devam et (Visual C#)](../debugger/edit-and-continue-visual-csharp.md).
>[!NOTE]
>Düzenle ve desteklenmeyen en iyi duruma getirilmiş için karma, devam et veya SQL Server ortak dil çalışma zamanı (CLR) tümleştirme kodunda. Diğer desteklenmeyen senaryolar hakkında daha fazla bilgi için bkz: [desteklenen kod değişiklikleri (C# ve Visual Basic)](../debugger/supported-code-changes-csharp.md). Düzenle ve bu senaryoları biri ile devam etmek çalışırsanız, Düzenle ve devam et desteklenmediğini belirten bir ileti kutusu görünür.
**Düzenle ve Devam Et'i devre dışı bırakmak veya etkinleştirmek için:**
1. Hata ayıklama oturumunda kullanıyorsanız, hata ayıklamayı Durdur (**hata ayıklama** > **hata ayıklamayı Durdur** veya **Shift**+**F5**) .
1. İçinde **Araçları** > **seçenekleri** (veya **hata ayıklama** > **seçenekleri**) > **hataayıklama** > **Genel**seçin veya temizleyin **etkinleştirme Düzenle ve devam et** onay kutusu.
Başlattığınızda veya hata ayıklama oturumunu yeniden ayarı etkinleşir.
**Düzenle ve devam et kullanmak için:**
1. , Kesme modunda hata ayıklarken sizin kaynak kodunuza bir değişiklik yapın.
1. Gelen **hata ayıklama** menüsünde tıklatın **devam**, **adım**, veya **sonraki deyimi Ayarla**, veya hata ayıklayıcı penceresindeki bir işlevi değerlendirin.
Hata ayıklama, yeni, derlenmiş kod iler devam eder.
Kod değişikliklerini bazı türleri, Düzenle ve devam et tarafından desteklenmez. Daha fazla bilgi için [desteklenen kod değişiklikleri (C# ve Visual Basic)](../debugger/supported-code-changes-csharp.md).
| 51.759259 | 445 | 0.766726 | tur_Latn | 0.999811 |
db9810f1ae6fe274314f68c5602ed8abb1b6d584 | 15,272 | md | Markdown | docs/configurations.md | suren-atoyan/reboost | dd9458c12746901001852389da7e23b430abb7a9 | [
"MIT"
] | null | null | null | docs/configurations.md | suren-atoyan/reboost | dd9458c12746901001852389da7e23b430abb7a9 | [
"MIT"
] | null | null | null | docs/configurations.md | suren-atoyan/reboost | dd9458c12746901001852389da7e23b430abb7a9 | [
"MIT"
] | null | null | null | # Configurations
There are a few configuration options that you can use to customize Reboost. You would use options when starting
Reboost, like so
```js
const { start } = require('reboost');
start({
// Options
})
```
### All configurations
#### `cacheDir`
Type: `string`\
Default: `./.reboost_cache`
Directory to use for storing cached files.
#### `cacheOnMemory`
Type: `boolean`\
Default: `false`
Enables file caching on memory. Improves response speed as it reads
cached files from memory instead of the file system. May cause problems
if you are working on a very large project.
#### `commonJSInterop`
Type: `object`
Options for CommonJS interoperability.
##### `commonJSInterop.mode`
Type: `0 | 1 | 2`\
Default: `2`
Mode to use for interoperability with CommonJS modules.
If you set it to `0`, it disables CommonJS interop completely.
If you set it to `1`, it transforms your file in the following way to
support CommonJS modules -
- Transformation for ES modules
```js
// Before
import Def from 'mod1';
import { part1, part2 } from 'mod2';
import * as star from 'mod3';
// After transformation
// Importer is an object with helper functions
import _importer from '/importer';
import * as _import1 from 'mod1';
const Def = _importer.Default(_import1);
import * as _import2 from 'mod2';
const part1 = _importer.Member(_import2, 'part1'),
part2 = _importer.Member(_import2, 'part2');
import * as _import3 from 'mod3';
const start = _importer.All(_import3);
```
- Transformation for CommonJS modules
```js
// Before
const mod = require('mod');
module.exports.some = someExport;
exports.other = someOtherExport;
// After transformation
import _importer from '/importer';
import * as _import1 from 'mod';
const module = {
exports: {}
};
const exports = module.exports;
const mod = _importer.All(_import1);
module.exports.some = someExport;
exports.other = someOtherExport;
export const __cjsExports = module.exports;
```
This mode will work in almost all situations. But there are also some trade-offs when
using this mode. In this mode every import is constant, they are not live, it means
exported `let` variables won't update. Let's see an example, here's what happens in
real ES modules, you can read more about it [here](https://exploringjs.com/es6/ch_modules.html#sec_imports-as-views-on-exports)
```js
// counter.js
export let count = 0;
export function increase() {
count++;
}
// lib.js
import { count, increase } from './counter.js';
console.log(count); // 0
increase();
console.log(count); // 1
increase();
console.log(count); // 2
```
So as you can see, In the module, exported variables reflect their value everywhere they
are imported. In Reboost if you use CommonJS interop mode `1`, every import will turn constant
and they won't reflect their original value if changed.
But to the rescue, there is another mode. If you use CommonJS interop mode `2`, it will transform
your files in the following way to support interoperability. It only transforms CommonJS modules,
not ES modules
```js
// Before
const mod = require('mod');
module.exports.some = someExports;
exports.other = someOtherExport;
// After transformation
import * as _import1 from 'mod';
const __commonJS = mod => mod.__cjsModule ? mod['default'] : mod;
const exports = {};
const module = { exports };
let _export_0, _export_1;
const mod = __commonJS(_import1);
module.exports.some = someExports;
_export_0 = module.exports.some;
exports.other = someOtherExport;
_exports_1 = exports.other;
export { _export_0 as some, _export_1 as other }
export default module.exports;
export const __cjsModule = true;
```
In this way module imports in ES modules are no longer constant, they reflect their live values everywhere.
This mode is default and recommended.
**Tips**
- If you are using CommonJS as your default module style, use mode `1`.
- If you are using ES modules with CommonJS modules
- Use mode `1` if you don't mind live binding.
- Use mode `2` if you want to use CommonJS and also want live binding.
- If you know that every module you are using in your project are ES modules
(including your dependencies), use mode `0`. It will increase performance.
##### `commonJSInterop.include`
Type: `Matcher`
Files to transform to support interoperability. This option only makes sense in mode `2`,
it has no effects on mode `1`. When set to mode `2`, this option defaults to `/node_modules|\.cjs/`,
meaning that every file in `node_modules` directory and files which has `.cjs` extension
will be transformed to support interoperability.
##### `commonJSInterop.exclude`
Type: `Matcher`
Same as `commonJSInterop.include`, but for excluding files. In mode `2` it defaults to
`() => false`, meaning that no file will be excluded which are included.
#### `contentServer`
Type: `object`
Options for the content server. The content server serves your static
files like HTML, CSS, JS, images, etc.
##### `contentServer.basePath`
Type: `string`\
Default: `/`
All content files will be available under this path.
Assume that your server is running on `http://localhost:8000`. If you have file named `index.html`,
it will be available on `http://localhost:8000/index.html`. If you set `basePath` to `/some-path`,
now the `index.html` should be available on `http://localhost:8000/some-path/index.html`.
##### `contentServer.etag`
Type: `boolean`\
Default: `true`
Enable ETag in content server.
##### `contentServer.extensions`
Type: `string[]`\
Default: `['.html']`
Extensions to resolve when no extension is present in the URL.
##### `contentServer.hidden`
Type: `boolean`\
Default: `false`
If the content server should serve the hidden files or not.
##### `contentServer.index`
Type: `string`\
Default: `index.html`
Name of the index file to serve automatically when serving a directory.
##### `contentServer.middleware`
Type: `Koa.Middleware | Koa.Middleware[]`
Middleware(s) to use with the content server's [`Koa`](https://koajs.com) app instance.
##### `contentServer.open`
Type: `boolean | object`\
Default: `false`
Automatically opens the content server URL in a browser when ready. If set to `true`, opens the
URL in your default browser. You can also use an `object` for more configurations.
The `object` accepts all [`open`](https://www.npmjs.com/package/open) options.
Here's an example if you want to open the URL in Firefox browser
```js
const { start } = require('reboost');
start({
// ...
contentServer: {
open: {
app: 'firefox'
}
}
})
```
Or if you want to open the URL in an Incognito tab of Chrome
```js
const { start } = require('reboost');
start({
// ...
contentServer: {
open: {
app: ['google chrome', '--incognito']
}
}
})
```
##### `contentServer.port`
Type: `number`
Port to use for the content server. Fallbacks to any available port when the
given port is unavailable.
##### `contentServer.proxy`
Type: `object`
Sets up custom proxies in the content server. This option can be an `object` with
key as the path that you want to redirect and value as a string (shorthand) or
[`http-proxy`](https://github.com/http-party/node-http-proxy#options) options object.
```js
const { start } = require('reboost');
start({
// ...
contentServer: {
proxy: {
'/path': 'https://example.com/redirect',
'/another-path': {
target: 'https://target.path',
// More `http-proxy` options
}
}
}
})
```
##### `contentServer.root`
Type: `string`
Root directory which will be served by the content server.
##### `contentServer.serveIndex`
Type: `string`\
Default: `true`
Serves directory listing for directories that don't have an index file.
#### `entries`
Type: `([string, string] | [string, string, string])[]`
File entries which will be served by Reboost. Value is an array of an array containing input
and the output file's path
For single file
```js
const { start } = require('reboost');
start({
entries: [
[inputPath, outputPath]
// Example - ['./src/index.js', './dist/bundle.js']
]
})
```
For multiple files
```js
const { start } = require('reboost');
start({
entries: [
[inputPath1, outputPath1],
[inputPath2, outputPath2],
...
[inputPathN, outputPathN],
]
})
```
If you are authoring a library and want all your exports to be available through the
`window` object with a name you can pass an extra string in your array
`src/index.js`
```js
export const add = (a, b) => a + b;
export const subtract = (a, b) => a - b;
```
`reboost.js`
```js
const { start } = require('reboost');
start({
entries: [
['./src/index.js', './dist/library.js', 'coolLib']
// ^^^ This is our library name
]
})
```
In browser
```js
window.coolLib // Module { add: (...), subtract: (...) }
```
As you expected, exports are available through the `window` object
#### `externalHost`
Type: `string | boolean`\
Default: `true`
Enable/disable external host feature. Set a string of IPv4 address to
set the external host address.
#### `hotReload`
Type: `boolean`\
Default: `true`
Enables/disables [Hot Reload API](./hot-reload-api.md).
#### `includeDefaultPlugins`
Type: `boolean`\
Default: `true`
Include the default plugins, like [`CSSPlugin`](./built-in-plugins/css.md) and [`esbuildPlugin`](./built-in-plugins/esbuild.md).
#### `log`
Type: `false | object`
Options for message logging in Reboost.
If set to `false`, it disables the message logging completely.
The following properties can be passed if you use an `object`.
##### `log.info`
Type: `boolean`\
Default: `true`
Enables/disables logging about general information.
##### `log.responseTime`
Type: `boolean`\
Default: `false`
Enables/disables logging about how much time it took to transform a file and give a response.
##### `log.watchList`
Type: `boolean`\
Default: `true`
Enables/disables logging about which files are being added or removed from the watch list.
#### `mode`
Type: `string`\
Default: `'development'`
The mode to set as `process.env.NODE_ENV`.
#### `plugins`
Type: `ReboostPlugin[]`
An array of plugins to be used by Reboost.
#### `rootDir`
Type: `string`\
Default: `process.cwd()`
Directory to use as the root directory. This path will be used to resolve all relative paths
in the configuration.
#### `resolve`
Type: `object`
Configurations for module and file resolving. Reboost internally uses [`enhanced-resolve`](https://github.com/webpack/enhanced-resolve)
as default file resolver. `enhanced-resolve` is also used by `webpack`, so you may be already
familiar with these options. Though many options are supported by `enhanced-resolve`,
only the following options are configurable by the user, other options are overridden internally by Reboost.
##### `resolve.alias`
Type: `{ [aliasName: string]: string }`\
Default: `{}`
Paths to use when resolving aliases, create your own alias to ease importing.
Example
```js
const { start } = require('reboost');
start({
resolve: {
alias: {
Components: './components'
}
}
})
```
Instead of using relative paths, you can use aliases.
Some deeply nested file -
```js
import ProgressBar from '../../../components/progressbar';
```
Now you can do
```js
import ProgressBar from 'Components/progressbar';
```
##### `resolve.aliasFields`
Type: `string[]`\
Default: `['browser']`
Description file fields to use for parsing aliases.
[See the specification](https://github.com/defunctzombie/package-browser-field-spec).
##### `resolve.conditionNames`
Type: `string[]`\
Default: `['import', 'require', 'node', 'default']`
Condition fields to check while resolving [conditional exports](https://nodejs.org/api/esm.html#esm_conditional_exports).
##### `resolve.descriptionFiles`
Type: `string[]`\
Default: `['package.json']`
JSON files to use as description files when resolving module directories and normal directories.
##### `resolve.enforceExtension`
Type: `boolean`\
Default: `false`
If `true`, enforces extensions when resolving relative paths,
if the extension is not in the import path, resolving will just not work.
##### `resolve.exportsFields`
Type: `string[]`\
Default: `['exports']`
Description file fields to use for parsing conditional exports. To learn more about what
conditional exports are, [See official docs](https://nodejs.org/api/esm.html#esm_conditional_exports).
##### `resolve.extensions`
Type: `string[]`\
Default: `['.tsx', '.ts', '.jsx', '.mjs', '.js', '.es6', '.es', '.json']`
Extensions to use for resolving files' extensions.
```js
// If you use `['.js']`
import mod from './mod';
// resolves to
import mod from './mod.js';
```
It returns the first file with the first matched extension, so extension ordering matters.
##### `resolve.mainFields`
Type: `string[]`\
Default: `['module', 'main']`
Description file fields to be used for resolving the script file.
##### `resolve.mainFiles`
Type: `string[]`\
Default: `['index']`
File names to use while resolving directories.
```js
// If you use `['index']`
import main from './subdir';
// resolves to
import main from './subdir/index';
```
##### `resolve.modules`
Type: `string[]`\
Default: `['node_modules']`
Directory names to search for requested modules. If a relative path is provided, it scans the directory
and its ancestors for the module. If an absolute path is provided, then it searches for the module
only in the given directory.
##### `resolve.restrictions`
Type: `string[]`
Path to directories that should be excluded when resolving paths.
##### `resolve.symlinks`
Type: `boolean`\
Default: `true`
If `true`, resolves symbolic links to their original path.
#### `sourceMaps`
Type: `object`
Options to use when generating source maps.
##### `sourceMaps.include`
Type: `Matcher`\
Default: `/.*/`
Files to include in source map generation. Can be any of [`anymatch`](https://www.npmjs.com/package/anymatch)
patterns. By default, source maps are generated for all files.
##### `sourceMaps.exclude`
Type: `Matcher`\
Default: `/node_modules/`
Files to exclude from source map generation. Can be any of [`anymatch`](https://www.npmjs.com/package/anymatch)
patterns. By default, all files which are in `node_modules` are excluded.
#### `watchOptions`
Type: `object`
Options to use for watching files
##### `watchOptions.include`
Type: `Matcher`\
Default: `/.*/`
Files to include in the watch-list. Can be any of [`anymatch`](https://www.npmjs.com/package/anymatch)
patterns. By default, all files are watched except for excluded files.
It only watches the files which are requested. So file watcher won't bloat up
watching unnecessary files.
##### `watchOptions.exclude`
Type: `Matcher`\
Default: `/node_modules/`
Files to exclude from watch-list. Can be any of [`anymatch`](https://www.npmjs.com/package/anymatch)
patterns. By default, all files which are in `node_modules` are excluded.
##### `watchOptions.chokidar`
Type: `chokidar.WatchOptions`\
Default: `{}`
Options to use when initializing [`chokidar`](https://www.npmjs.com/package/chokidar).
---
**Referenced Types**\
`AnymatchPattern`: `string | RegExp | (testString: string) => boolean`\
`Matcher`: `AnymatchPattern | AnymatchPattern[]`\
`chokidar.WatchOptions`: See - https://www.npmjs.com/package/chokidar#persistence
| 26.105983 | 135 | 0.708683 | eng_Latn | 0.961175 |
db98209de57400296faf8a1aa37dd4e477b0d40f | 61,536 | md | Markdown | windows-apps-src/porting/android-ios-uwp-map.md | hanrai/windows-uwp.zh-cn | 2028c22795753418de68fa2578fc9adf5e94b4ae | [
"CC-BY-4.0",
"MIT"
] | null | null | null | windows-apps-src/porting/android-ios-uwp-map.md | hanrai/windows-uwp.zh-cn | 2028c22795753418de68fa2578fc9adf5e94b4ae | [
"CC-BY-4.0",
"MIT"
] | null | null | null | windows-apps-src/porting/android-ios-uwp-map.md | hanrai/windows-uwp.zh-cn | 2028c22795753418de68fa2578fc9adf5e94b4ae | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
Description: 比较 iOS、Android 和 Windows 10 之间的平台功能。
title: 适用于 Android 和 iOS 开发人员的 Windows 应用概念映射
ms.date: 02/08/2017
ms.topic: article
keywords: windows 10, uwp
ms.assetid: 082736c8-2ac3-41b3-b246-e705edc23f34
ms.localizationpriority: medium
ms.openlocfilehash: ba17b8a63d169f2d232930b209bfadd5a2fbdff5
ms.sourcegitcommit: 6f32604876ed480e8238c86101366a8d106c7d4e
ms.translationtype: MT
ms.contentlocale: zh-CN
ms.lasthandoff: 06/21/2019
ms.locfileid: "67319774"
---
# <a name="windows-apps-concept-mapping-for-android-and-ios-developers"></a>适用于 Android 和 iOS 开发人员的 Windows 应用概念映射
如果你是具有 Android 或 iOS 技能和/或代码的开发人员,并且希望移动到 Windows 10 和通用 Windows 平台 (UWP),则此资源具有在三个平台之间映射平台功能(以及你的知识)所需的一切。
另请参阅[从 iOS 移动到 UWP](ios-to-uwp-root.md) 中的移植内容。 本文档也可供[下载](https://www.microsoft.com/download/details.aspx?id=52041)。
## <a name="user-interface-ui"></a>用户界面 (UI)
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>设计语言。</strong><br><br>一组规定平台中的应用应当具有的外观和行为的约定。</td>
<td align="left"><strong>Android 材料设计</strong>指南提供了一种视觉语言,供 Android 设计人员和开发人员遵循。</td>
<td align="left"><strong>人机接口指南</strong>为 iOS 设计人员和开发人员提供了相关建议。</td>
<td align="left"><a href="https://developer.microsoft.com/en-us/windows/apps/design"><strong>UWP Windows 应用程序设计</strong></a>演示如何创建的应用程序看起来好了所有 Windows 10 设备上。 你可以在其中找到用户界面 (UI) 设计基础知识、响应式设计技术和完整详细的指南列表。<br/></td>
</tr>
<tr class="even">
<td align="left"><strong>用户界面标记语言。</strong> <br><br>一种呈现和描述 UI 及其组件的标记语言。 每个平台都提供了用于视觉编辑和标记编辑的编辑器。<br/></td>
<td align="left">使用 <strong>Android Studio</strong> 或 <strong>Eclipse</strong> 编辑的 <strong>XML 布局</strong>。</td>
<td align="left">使用 Xcode 内的 <strong>Interface Builder</strong> 编辑的 <strong>XIB</strong> 和<strong>情节提要</strong>。</td>
<td align="left"><strong><a href="https://docs.microsoft.com/windows/uwp/xaml-platform/xaml-overview">XAML</a></strong>、 使用编辑过<strong><a href="https://visualstudio.microsoft.com/">Microsoft Visual Studio</a></strong>并 <strong><a href="https://docs.microsoft.com/visualstudio/designers/creating-a-ui-by-using-blend-for-visual-studio?view=vs-2015">Blend for Visual Studio</a></strong>。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/xaml-platform/index">XAML 平台</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/design/basics/xaml-basics-ui">使用 XAML 创建 UI</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/layouts-with-xaml">定义与 XAML 的布局</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>内置用户界面控件。</strong> <br><br>由该平台提供的可重用 UI 元素,如按钮、列表控件和文本控件。</td>
<td align="left">预建的<strong>视图</strong>和<strong>视图组</strong>类指的是小组件、布局、文本字段、容器、日期/时间控件和专家控件。</td>
<td align="left"><strong>视图</strong>和<strong>控件</strong>位于 Xcode 对象库中,并在 UIKit 用户界面目录中列出。 视图包括图像视图、选取器视图和滚动视图。 控件包括按钮、日期选取器和文本字段。</td>
<td align="left">XAML 平台为你提供了大量的<strong>内置控件</strong>,如按钮、列表控件、面板、文本控件、命令栏、选取器、媒体和墨迹书写。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/controls-and-events-intro">添加控件和处理事件</a></td>
</tr>
<tr class="even">
<td align="left"><strong>控制事件处理。</strong> <br><br>定义在 UI 控件内触发事件时运行的逻辑。</td>
<td align="left"><strong>事件处理程序</strong>和<strong>事件侦听器</strong>已使用 XML 或以编程方式添加。</td>
<td align="left">控件会向<strong>目标</strong>发送<strong>操作</strong>消息。</td>
<td align="left">你可以定义一些方法来处理<strong>代码隐藏文件</strong>(已附加到 XAML 页面)中 XAML 控件的事件。 <strong>事件处理程序</strong>始终使用代码编写。 但是,你可以将这些处理程序连接到 XAML 标记或代码中的事件。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/controls-and-events-intro">添加控件和处理事件</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/xaml-platform/events-and-routed-events-overview">事件和路由事件概述</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>数据绑定。</strong> <br><br>允许应用 UI 呈现数据并可以与该数据保持同步的软件设计模式。</td>
<td align="left">提供了<strong>数据绑定库</strong>,尽管仍是 Beta 版。</td>
<td align="left">iOS 中没有任何内置绑定系统。 可以以<strong>键值观察</strong>为基础,通过使用第三方库或编写其他代码来执行数据绑定。 控件使用委托/回调方法来获取数据。</td>
<td align="left">UWP 平台会为你处理<strong>数据绑定</strong>。 使用 <strong><a href="https://docs.microsoft.com/windows/uwp/xaml-platform/x-bind-markup-extension">{x:Bind}</a></strong> 标记扩展可以充分利用高性能绑定,使用 <strong><a href="https://docs.microsoft.com/windows/uwp/xaml-platform/binding-markup-extension">{Binding}</a></strong> 可以充分利用更多的功能。 这只是你为了选择该平台是使用<strong>单向绑定</strong>在 UI 中显示某个数据源中的值还是当这些值因<strong>双向绑定</strong>发生更改时仍按照这些值更新 UI 而配置绑定的其中一种情况。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/data-binding/index">数据绑定</a></td>
</tr>
<tr class="even">
<td align="left"><strong>实现 UI 自动化。</strong> <br><br>以编程方式访问 UI 元素、使应用可供辅助技术产访问并启用自动测试脚本与 UI 交互。</td>
<td align="left"><strong>Text labels</strong>、<strong>contentDescription</strong> 和 <strong>hint</strong> 值有助于确保可以自动化找到 UI 元素。 Android Studio 允许你使用 <strong>UI Automator</strong> 和 <strong>Espresso</strong> 测试框架编写 UI 测试。</td>
<td align="left"><strong>自动化检测</strong>允许你使用<strong>辅助功能</strong>设置或<strong>元素层次结构</strong>中的元素位置编写自动 UI 测试脚本来验证元素。</td>
<td align="left">你可以直接通过 <strong><a href="https://docs.microsoft.com/windows/desktop/WinAuto/uiauto-uiautomationoverview">UI 自动化</a></strong>以编程方式访问 UWP 中内置的 UI 元素。<br/><strong><a href="https://docs.microsoft.com/windows/uwp/accessibility/custom-automation-peers">自定义自动化对等</a></strong>允许您为自定义 UI 类提供自动化的支持。 Visual Studio 中<strong><a href="https://docs.microsoft.com/visualstudio/test/use-ui-automation-to-test-your-code?view=vs-2015">编码的 UI 测试项目</a></strong>允许你通过 UI 自动测试整个应用程序,或者单独测试 UI。</td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>更改控件的外观。</strong> <br><br>编辑大小、颜色和其他属性。</td>
<td align="left">控件具有可以使用设计器工具以 XML 标记或编程方式编辑的<strong>属性</strong>。</td>
<td align="left">控件具有可以使用 Interface Builder 中的<strong>属性检查器</strong>或者以编程方式编辑的<strong>属性</strong>。</td>
<td align="left">你可以使用 Visual Studio 和 Blend for Visual Studio 在 XAML 标记中或以编程方式编辑控件的<strong>属性</strong>。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/controls-and-events-intro">添加控件和处理事件</a></td>
</tr>
<tr class="even">
<td align="left"><strong>可重复使用的视觉样式。</strong> <br><br>以可重用格式将视觉更改应用于多个控件。</td>
<td align="left"><strong>XML 样式</strong>是应用于一个或多个控件的属性集。</td>
<td align="left">iOS 不支持自带的可重用视觉样式,但 UIAppearance 协议允许多个控件共享通用属性。</td>
<td align="left">你可以创建可重用的<strong><a href="https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Style">样式</a></strong>,这些样式可应用于多个控件并存储在 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.ResourceDictionary">ResourceDictionary</a></strong> 以便于重用。<br/><br/><a href="https://docs.microsoft.com/previous-versions/windows/apps/hh465381(v=win.10)">快速入门:控件样式</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>编辑控件的可视结构。</strong> <br><br>除了修改属性或特性之外,还可以自定义控件的视觉结构,例如移动复选框下的复选框文本。</td>
<td align="left">在 Android 中,编辑控件的视觉结构没有任何简易方法。</td>
<td align="left">在 iOS 中,编辑控件的视觉结构没有任何简易方法。</td>
<td align="left">若要自定义控件的视觉结构,可以在 XAML 标记中复制并编辑其<strong><a href="https://docs.microsoft.com/uwp/api/Windows.UI.Xaml.Controls.ControlTemplate">控件模板</a></strong>。<br/><br/><a href="https://docs.microsoft.com/previous-versions/windows/apps/hh465374(v=win.10)">快速入门:控件模板</a></td>
</tr>
<tr class="even">
<td align="left"><strong>内置的触摸手势。</strong> <br><br>通过处理高级别的抽象化笔势事件(例如点击和双击视图和控件)提供自定义的触控支持。</td>
<td align="left"><strong>笔势检测器</strong>可检测常用触控笔势,包括滚动、长按、点击、双击和投掷。</td>
<td align="left">UIKit 框架提供了内置的<strong>笔势识别器</strong>,可检测诸如点击、收缩、平移、轻扫、旋转和长按之类触控笔势。</td>
<td align="left"><strong>UI 元素</strong>允许你处理<strong>静态笔势事件</strong>(包括点击、双击、右键点击和按住)和<strong>操作笔势事件</strong>(包括滑动、轻扫、转动、收缩和拉伸)。 笔势事件属于<strong>路由事件</strong>并且可以通过包含子 UIElement 的父对象处理。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/touch-interactions">触摸式交互</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/design/layout/index">自定义用户交互的笔势,操作和交互</a></td>
</tr>
</tbody>
</table>
<h2 id="navigation-and-app-structure">导航和应用结构</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>布局。</strong> <br><br>布局定义用户界面的结构。</td>
<td align="left">布局由多个<strong>视图组</strong>组成(如 <strong>LinearLayout</strong> 和 <strong>RelativeLayout</strong>),它们可以嵌套其他视图组或视图。</td>
<td align="left">布局中还有一个包含 <strong>UIView</strong>(可以嵌套)的 <strong>UIViewController</strong>。</td>
<td align="left">XAML 提供了一个灵活的布局系统,该系统由用于静态和响应式布局的<strong>布局面板类</strong>(如 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.canvas">Canvas</a></strong>、<strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.grid">Grid</a></strong>、<strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.relativepanel">RelativePanel</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.stackpanel">StackPanel</a></strong>)组成。 <strong><a href="https://docs.microsoft.com/visualstudio/ide/reference/properties-window?view=vs-2015">属性</a></strong>用于控制的大小和位置的元素。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/layouts-with-xaml">使用 XAML 定义布局</a><br/></td>
</tr>
<tr class="even">
<td align="left"><strong>对等方的导航。</strong> <br><br>通过在具有同等层次结构重要性的页面之间导航向用户呈现。</td>
<td align="left"><strong>选项卡</strong>、<strong>轻扫视图</strong>和<strong>导航箱</strong>均提供<strong>横向导航</strong>。</td>
<td align="left"><strong>选项卡栏控制器</strong>、<strong>拆分视图控制器</strong>和<strong>页面视图控制器</strong>允许在同等层次结构的视图之间导航。</td>
<td align="left">你可以使用<strong><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tabs-pivot">选项卡/透视</a></strong>在内容上方显示链接/选项卡的永久性列表。 <strong><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/split-view">导航窗格/拆分视图</a></strong>允许你在内容旁显示一列链接。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/navigation-basics">导航</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/navigate-between-two-pages">两个页面之间导航</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>分层导航。</strong> <br><br>在层次结构的父页面和子页面之间导航。</td>
<td align="left">当与<strong>意图</strong>一起用于加载其他<strong>活动</strong>时,<strong>列表</strong>、<strong>网格列表</strong>、<strong>按钮</strong>及其他控件提供<strong>下级导航</strong>。</td>
<td align="left"><strong>导航控制器</strong>允许用户在层次结构的各级别之间导航。</td>
<td align="left"><strong><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/hub">中心</a></strong>让你向用户显示的内容,可以选择要导航到子页面预览。 <strong><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/master-details">母版/详细信息</a></strong>让用户从相应的详细信息部分旁边显示的项摘要列表中选取。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/navigation-basics">导航</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/navigate-between-two-pages">两个页面之间导航</a></td>
</tr>
<tr class="even">
<td align="left"><strong>返回按钮导航。</strong> <br><br>在应用中进行后退导航。</td>
<td align="left">操作栏中的“后退”和“向上”按钮使用 <strong>Back 堆栈</strong>提供<strong>上级</strong>和<strong>临时</strong>导航。</td>
<td align="left"><strong>导航控制器</strong>可以向它添加一个后退按钮。<br/></td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.frame.backstack">Back 堆栈属性</a></strong>轻松地处理软件或硬件的按下后退按钮操作,该属性允许你的用户遍历<strong>导航历史记录</strong>。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/navigation-history-and-backwards-navigation">后退按钮导航</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>初始屏幕。</strong> <br><br>在应用启动时显示图像,主要是用于品牌推广。</td>
<td align="left">默认情况下,不提供初始屏幕,并通过编辑前几个活动的<strong>主题背景</strong>实现。</td>
<td align="left">应用必须具有<strong>静态启动映像</strong>或 <strong>XIB/情节提要启动文件</strong>。</td>
<td align="left">使用<strong>图像</strong>和彩色背景创建初始屏幕。 <a href="https://docs.microsoft.com/windows/uwp/launch-resume/create-a-customized-splash-screen">初始屏幕时间可以延长</a>。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/add-a-splash-screen">添加初始屏幕</a></td>
</tr>
</tbody>
</table>
<h2 id="custom-inputs">自定义输入</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>语音。</strong> <br><br>语音输入的语音识别和其他语音功能。</td>
<td align="left">实现 <strong>RecognizerIntent</strong> 的任何应用(如 <strong>Google 语音搜索</strong>)均可以提供语音输入。 <strong>SpeechRecognizer</strong> 类允许应用使用 Google 的语音识别 API。</td>
<td align="left">应用可以使用 <strong>SFSpeechRecognizer</strong> 类来实现语音输入和语音识别。</td>
<td align="left">你可以使用<strong><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/speech-recognition">语音识别</a></strong> API 与前台的应用交互。 你可以使用基于语音的 <strong><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/cortana-interactions">Cortana 交互</a></strong>来启动前台或后台中的应用,并与后台应用交互。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/speech-interactions">语音交互</a></td>
</tr>
<tr class="even">
<td align="left"><strong>自定义用户输入。</strong> <br><br>处理键盘、鼠标、触笔和其他输入。</td>
<td align="left">受支持的交互包括<strong>触控</strong>、<strong>触控板</strong>、<strong>触笔</strong>、<strong>鼠标</strong>和<strong>键盘</strong>。 报告移动和输入的方式与触控相同,但可以检测到有关<strong>输入设备</strong>的详细信息。</td>
<td align="left">提供对<strong>触控</strong>、<strong>Apple Pencil</strong> 和硬件<strong>键盘</strong>的支持。</td>
<td align="left">你将发现支持各种各样的交互,如<strong><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/touch-interactions">触控</a></strong>、<strong><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/touchpad-interactions">触控板</a></strong>、采用数字墨迹的<strong><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/pen-and-stylus-interactions">笔/触笔</a></strong>、<strong><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/mouse-interactions">鼠标</a></strong>和<strong><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/keyboard-interactions">键盘</a></strong>。 应用无需知道所使用的输入设备即可处理数据,并且可以访问原始输入设备数据(如果需要)。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/input-and-devices/handle-pointer-input">处理指针输入</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/design/layout/index">自定义用户交互</a></td>
</tr>
</tbody>
</table>
<h2 id="data">数据</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>本地应用程序数据。</strong> <br><br>在本地存储与应用相关的设置和文件。</td>
<td align="left">可以使用 <strong>openFileOutput</strong> 和 <strong>openFileInput</strong> 保存本地文件。 可以使用 <strong>getSharedPreferences</strong> 访问<strong>共享首选项文件</strong>中的设置。</td>
<td align="left">本地文件可以存储在<strong>应用程序支持</strong>目录中,可以通过 <strong>NSFileManager</strong> 类访问。 <strong>首选项</strong>文件中的设置可以通过 <strong>NSUserDefaults</strong> 类访问。</td>
<td align="left"><strong><a href="https://docs.microsoft.com/uwp/api/Windows.Storage">Windows.Storage</a></strong> 类会为你统一处理本地数据存储。 将设置存储为 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Storage.ApplicationDataContainer">ApplicationDataContainer</a></strong> 对象,可通过 <strong><a href="https://docs.microsoft.com/uwp/api/windows.storage.applicationdata.localsettings">ApplicationData.LocalSettings</a></strong> 属性访问。 将文件存储在 <strong><a href="https://docs.microsoft.com/uwp/api/windows.storage.storagefolder">StorageFolder</a></strong> 对象中,可通过 <strong><a href="https://docs.microsoft.com/uwp/api/windows.storage.applicationdata.localfolder">ApplicationData.LocalFolder</a></strong> 属性访问。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/app-settings/store-and-retrieve-app-data">存储和检索设置和其他应用程序数据</a></td>
</tr>
<tr class="even">
<td align="left"><strong>本地数据库存储。</strong> <br><br>使用对象关系映射程序 (ORM) 将应用数据存储在关系数据库中(如果适用)。</td>
<td align="left">提供 <strong>SQLite</strong> 数据库。 未内置任何 ORM。 SQL 查询使用 <strong>SQLiteDatabase</strong> 类运行。</td>
<td align="left">提供 <strong>SQLite</strong> 数据库。 <strong>CoreData</strong> 是内置的对象图形框架,可以与 SQLite 结合使用并提供可与 ORM 相媲美的功能。</td>
<td align="left">你可以使用 <strong>SQLite</strong> 存储数据。 <strong><a href="https://docs.microsoft.com/windows/uwp/data-access/entity-framework-7-with-sqlite-for-csharp-apps">实体框架</a></strong>是内置的 ORM,因此无需编写大量的数据访问代码并使您能够轻松而无需编写 SQL 查询数据库。 你可以通过 <a href="https://docs.microsoft.com/windows/uwp/data-access/sqlite-databases">SQLite 库</a>直接运行 SQL 查询。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/data-access/index">数据访问</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>REST 的 HTTP 库来访问。</strong> <br><br>内置库使你可以通过 HTTP 与 Web 服务和 Web 服务器进行通信。<br/></td>
<td align="left">HTTP 库 <strong>HttpURLConnection</strong> 和 <strong>Volley</strong>。</td>
<td align="left"><strong>NSURLSession</strong>、<strong>NSURLConnection</strong> 和 <strong>NSURLDownload</strong>。</td>
<td align="left">你可以使用内置的 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Web.Http.HttpClient">HttpClient</a></strong> API 来访问常见的 HTTP 功能(包括 GET、DELETE、PUT、POST)、常见的身份验证模式、SSL、Cookie 和进度信息。</td>
</tr>
<tr class="even">
<td align="left"><strong>云备份服务。</strong> <br><br>应用数据的平台提供的备份服务。</td>
<td align="left">Android 的 <strong>备份管理器</strong>在 Google 的 <strong>Android 备份服务</strong>中处理应用程序数据的备份。</td>
<td align="left">用户可以配置 <strong>iCloud 备份</strong>来处理其备份,包括应用数据。 使用 iCloud 兼容<strong>核心数据</strong>、<strong>iCloud 键值应用商店</strong>和 <strong>iCloud 文档存储</strong>的应用。</td>
<td align="left">你使用漫游 <strong><a href="https://docs.microsoft.com/uwp/api/windows.storage.applicationdata">ApplicationData API</a></strong>(包括 <strong><a href="https://docs.microsoft.com/uwp/api/windows.storage.applicationdata.roamingfolder">RoamingFolder</a></strong> 和 <a href="https://docs.microsoft.com/uwp/api/windows.storage.applicationdata.roamingsettings"><strong>RoamingSettings</strong></a>)存储的任何应用数据将自动同步到云和用户的其他设备。 同步通过用户的 Microsoft 帐户完成。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/design/app-settings/store-and-retrieve-app-data">漫游应用数据的准则</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>HTTP 文件下载。</strong> <br><br>通过 HTTP 下载大型和小型文件。</td>
<td align="left">可以使用 <strong>URLConnection</strong> 和 <strong>HTTPURLConnection</strong> 通过 HTTP 和 FTP 进行下载,也可以使用系统<strong>下载管理器</strong>在后台进行下载。</td>
<td align="left"><strong>NSURLSession</strong> 和 <strong>NSURLConnection</strong> 可以用于通过 HTTP 和 FTP 下载文件。</td>
<td align="left"><strong><a href="https://docs.microsoft.com/uwp/api/windows.networking.backgroundtransfer">后台传输 API</a></strong> 使你可以可靠地通过 HTTP 和 FTP 传输文件,考虑应用暂停、连接丢失并根据连接和电池使用时间进行调整。 你还可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.web.http.httpclient">HttpClient</a></strong>,它非常适合较小的文件。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/which-networking-technology">选择哪一种网络技术?</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/background-transfers">后台传输</a></td>
</tr>
<tr class="even">
<td align="left"><strong>套接字。</strong> <br><br>创建低级别的 UDP 数据报和 TCP 套接字,以便使用自己的协议与其他设备进行通信。</td>
<td align="left"><strong>Socket</strong> 类提供 TCP 套接字,<strong>DatagramSocket</strong> 类提供 UDP 套接字。</td>
<td align="left"><strong>NSStream</strong> 和 <strong>CFStream</strong> 提供 TCP 套接字,<strong>CFSocket</strong> 提供 UDP 套接字。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Networking.Sockets.DatagramSocket">DatagramSocket</a></strong> 类通过 UDP 数据报套接字进行通信,并使用 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Networking.Sockets.StreamSocket">StreamSocket</a></strong> 类通过 TCP 或蓝牙 RFCOMM 进行通信。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/networking-basics">网络基础知识</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/which-networking-technology">选择哪一种网络技术?</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/sockets">套接字概述</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>WebSockets.</strong> <br><br>在客户端和服务器之间提供双向通信,从而启用实时数据传输。</td>
<td align="left">Android 中无任何内置 WebSockets 库。</td>
<td align="left">iOS 中无任何内置 WebSockets 库。</td>
<td align="left">对于带有接收通知的较小消息,安全连接到支持 Websockets 的服务器可以通过 <strong><a href="https://docs.microsoft.com/uwp/api/windows.networking.sockets.messagewebsocket">MessageWebSocket</a></strong> 类实现,对于可以分段读取的较大的二进制文件传输,则可以通过 <strong><a href="https://docs.microsoft.com/uwp/api/windows.networking.sockets.streamwebsocket">StreamWebSocket</a></strong> 类实现。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/networking-basics">网络基础知识</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/which-networking-technology">选择哪一种网络技术?</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/networking/websockets">Websocket 概述</a></td>
</tr>
<tr class="even">
<td align="left"><strong>OAuth 库。</strong> <br><br>允许访问第三方 OAuth 提供程序和内置于平台的任何帐户管理的 OAuth 库。</td>
<td align="left">不提供任何通用 OAuth 库。 针对 OAuth 身份验证的 <strong>GoogleAuthUtil</strong> 类通过 Google Play 服务提供。<br/></td>
<td align="left">不提供任何通用 OAuth 库。 <strong>帐户框架</strong>提供对已存储在设备上的用户帐户(如 Facebook 和 Twitter)的访问权限。</td>
<td align="left">通用 OAuth 库 <strong><a href="https://docs.microsoft.com/windows/uwp/security/web-authentication-broker">Web 身份验证代理</a></strong>允许你连接到第三方标识提供者服务。 <strong><a href="https://docs.microsoft.com/windows/uwp/security/credential-locker">凭据保险箱</a></strong>允许你的用户保存其登录名并在多台设备上使用。 <strong><a href="https://docs.microsoft.com/previous-versions/office/developer/onedrive-live-sdk-reference/dn896755(v=office.15)">Microsoft.Live</a></strong> 命名空间使你可以轻松地访问 Live SDK OAuth,进而访问 Microsoft 服务。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/security/authentication-and-user-identity">身份验证和用户标识</a><br/><br/><a href="https://docs.microsoft.com/uwp/api/windows.security.authentication.web">Windows.Security.Authentication.Web API 文档</a><br/><br/><a href="https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/WebAuthenticationBroker">WebAuthenticationBroker 的代码示例</a></td>
</tr>
</tbody>
</table>
<h2 id="tooling">工具</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>IDE。</strong> <br><br>用于创建应用的工具集。</td>
<td align="left"><strong>Android Studio</strong> 和 <strong>Eclipse</strong>,随着 Google 推动开发人员转向使用 Android Studio。</td>
<td align="left"><strong>Xcode</strong></td>
<td align="left"><strong><a href="https://visualstudio.microsoft.com/features/universal-windows-platform-vs">Visual Studio</a></strong> 并<strong><a href="https://docs.microsoft.com/visualstudio/designers/creating-a-ui-by-using-blend-for-visual-studio?view=vs-2015">Blend for Visual Studio</a></strong>具有所需的代码、 设计、 连接、 调试、 分析、 优化和测试 UWP 应用的所有工具。 Visual Studio 还为你提供了适用于 Windows 10 设备的<strong><a href="https://docs.microsoft.com/windows/uwp/debug-test-perf/test-with-the-emulator">仿真器</a></strong>,以便你可以在一系列仿真设备中测试应用。<br/><br/><a href="https://developer.microsoft.com/windows/downloads">下载和适用于 UWP 的工具</a></td>
</tr>
<tr class="even">
<td align="left"><strong>代码的组织。</strong> <br><br>应用的基本文件夹结构,通常从初始模板中创建。</td>
<td align="left"><strong>AndroidManifest</strong> 文件、包含源文件的 <strong>java</strong> 文件夹、<strong>res</strong> 文件夹(带有的资源包括布局和值)、Android Studio 中的 <strong>Gradle</strong> 生成脚本和 Eclipse 中的 <strong>Ant</strong> 生成脚本。</td>
<td align="left">源文件和<strong>支持文件</strong>、<strong>Info.plist</strong> 文件、<strong>Main.storyboard</strong> 和 <strong>LaunchScreen.storyboard</strong>。 图像存储在<strong>资源库</strong>中。</td>
<td align="left">你的 UWP 应用包含应用的 XAML 和代码文件(名为 Example.xaml 和 Example.xaml.cs)、<strong>资源文件夹</strong>中的各种图像、起始页(如 <strong>MainPage.xaml</strong> 和 <strong>MainPage.xaml.cs</strong>)和清单。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/get-started/create-a-hello-world-app-xaml-universal">创建你好 world 应用</a></td>
</tr>
</tbody>
</table>
<h2 id="app-lifecycle">应用生命周期</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>应用生命周期。</strong> <br><br>在应用启动、暂停、恢复和关闭时处理事件,以便有机会保存/还原应用程序状态并运行其他任务。</td>
<td align="left">每个活动都有其自己的<strong>活动生命周期</strong>,具有<strong>已恢复</strong>之类的状态。 <strong>生命周期回调</strong>如<strong>onResume</strong>中实现您<strong>活动类</strong>。</td>
<td align="left"><strong>应用程序生命周期</strong>具有<strong>已挂起</strong>之类的状态。 如 <strong>applicationDidEnterBackground:</strong> 之类的方法在<strong>应用程序委托对象</strong>中实现,以便在状态发生更改时运行代码。</td>
<td align="left">应用程序具有<strong>应用执行状态</strong>,如 NotRunning、Activated、Running、Suspending、Suspended 和 Resuming。<br/><br/>你可以在应用中实现<strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.application">应用程序类</a></strong>方法(如 OnLaunched、OnActivated、Suspending 或 Resuming),以便在状态发生更改时运行代码。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/app-lifecycle">应用生命周期</a></td>
</tr>
<tr class="even">
<td align="left"><strong>后台任务。</strong> <br><br>执行后台操作并在应用不再位于前台的情况下继续运行的任务。</td>
<td align="left">应用可以启动<strong>服务</strong>,这些服务可在应用不再位于前台的情况下执行后台操作。 服务有其自己的<strong>生命周期</strong>并且已在清单中注册。</td>
<td align="left"><strong>后台执行</strong>仅限于特定的任务类型。<br/><br/>应用使用 <strong>supported background tasks</strong> 在 Info.plist 文件中声明<strong>受支持的后台任务</strong>。<br/><br/>系统控制后台任务何时运行以及运行时长。</td>
<td align="left">你可以创建一个后台任务,方法是实现 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.background.ibackgroundtask">IBackgroundTask</a></strong> 接口并在应用程序清单中注册该任务。 你可以将任务设置为由<a href="https://docs.microsoft.com/windows/uwp/launch-resume/run-a-background-task-on-a-timer-"><strong>计时器</strong></a>、<a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.background.systemtriggertype"><strong>系统触发器</strong></a>和<a href="https://docs.microsoft.com/windows/uwp/launch-resume/use-a-maintenance-trigger"><strong>维护触发器</strong></a>触发。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/support-your-app-with-background-tasks">支持使用后台任务对应用程序</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/create-and-register-a-background-task">创建并注册后台任务</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/guidelines-for-background-tasks">后台任务指南</a></td>
</tr>
</tbody>
</table>
<h2 id="performance">性能</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>性能最佳实践。</strong> <br><br>有关生成快速、具有响应能力、电池使用时间较长且启动时间较短的应用的指南。</td>
<td align="left">Android 提供<strong>性能的最佳做法</strong>培训指南。</td>
<td align="left">iOS 提供<strong>性能概述</strong>文档。</td>
<td align="left">你可以仔细阅读<strong><a href="https://docs.microsoft.com/windows/uwp/debug-test-perf/performance-and-xaml-ui">性能指南</a></strong>中涉及以下主题的部分:设置性能目标、测量性能、内存管理、平滑动画、高效文件系统访问以及可用于分析和性能的工具。</td>
</tr>
<tr class="even">
<td align="left"><strong>响应式 UI 的视图优化。</strong> <br><br>通过优化视图改善性能。</td>
<td align="left">使用层次结构查看器工具优化<strong>布局层次结构</strong>、<strong>重复使用布局</strong>和加载<strong>按需视图</strong>,所有这些技巧都是为了帮助保持 UI 线程具有响应能力,并避免"“出现应用程序无响应”"对话框(属于 <strong>ANR</strong>)。<br/></td>
<td align="left">使用<strong>核心动画</strong>工具修复<strong>离屏呈现</strong>、<strong>混合层</strong>、<strong>光栅化</strong>的 UI 问题,有助于保持 UI 线程有响应。</td>
<td align="left">通过几个简单的步骤即可轻松地<strong>优化</strong> XAML <strong>标记</strong>和<strong>布局</strong>。 这些技巧包括精简布局结构、最大程度减少元素计数和过度绘制。 <br/><br/><a href="https://docs.microsoft.com/windows/uwp/debug-test-perf/keep-the-ui-thread-responsive">保持 UI 线程的响应能力</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/debug-test-perf/optimize-xaml-loading">优化您的 XAML 标记</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/debug-test-perf/optimize-your-xaml-layout">优化 XAML 布局</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>线程处理。</strong> <br><br>使用线程来维护<strong>响应式 UI</strong> 并运行多个<strong>并行任务</strong>。</td>
<td align="left">实现线程的方法是使用类 <strong>Runnable</strong>、<strong>Handler</strong>、<strong>ThreadPoolExecutor</strong> 和更高级别的 <strong>AsyncTask</strong>。</td>
<td align="left">也可使用 <strong>NSThread</strong>、<strong>Grand Central Dispatch</strong> 和更高级别的 <strong>NSOperation</strong> 实现线程。</td>
<td align="left">通过 <strong><a href="https://docs.microsoft.com/uwp/api/windows.system.threading.threadpool.runasync">RunAsync</a></strong> 将<strong>工作项</strong>提交到<strong>线程池</strong>即可使用线程。 你可以通过 <strong><a href="https://docs.microsoft.com/uwp/api/windows.system.threading.threadpooltimer.createtimer">CreateTimer</a></strong> 使用计时器提交工作项,也可以通过 <strong><a href="https://docs.microsoft.com/uwp/api/windows.system.threading.threadpooltimer.createperiodictimer">CreatePeriodicTimer</a></strong> 创建重复工作项。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/threading-async/submit-a-work-item-to-the-thread-pool">向线程池提交工作项</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/threading-async/use-a-timer-to-submit-a-work-item">使用计时器提交工作项</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/threading-async/create-a-periodic-work-item">创建定期工作项</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/threading-async/best-practices-for-using-the-thread-pool">使用线程池的最佳做法</a></td>
</tr>
<tr class="even">
<td align="left"><strong>异步编程。</strong> <br><br>通过利用异步编程模式避免线程的复杂性来保持 UI 线程有响应。</td>
<td align="left">创建你自己的异步类<strong>需要使用线程</strong>。 某些内置的类都是异步类。</td>
<td align="left">创建你自己的异步类<strong>需要使用线程</strong>。 某些内置的类都是异步类。</td>
<td align="left">当你创建自己的 API 时,可以使用异步模式来避免阻止主线程,例如使用 C# 和 Visual Basic 中的 <strong>Async</strong> 和 <strong>Await</strong>。 你可以使用以单词 <strong>Async</strong> 结尾的异步内置 API。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/threading-async/asynchronous-programming-universal-windows-platform-apps">异步编程</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/threading-async/call-asynchronous-apis-in-csharp-or-visual-basic">使用 C# 或 Visual Basic 调用异步 API</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>列表视图优化。</strong> <br><br>帮助优化数据列表的内置模式,当需要显示的数据量很大时,性能通常很差</td>
<td align="left"><strong>ViewHolder</strong> 设计模式用于避免多个视图查找,从而使你可以使用可重用的 UI 元素。</td>
<td align="left">可以进行一系列的优化来改善 <strong>UITableView</strong> 的性能,不内置任何内容。</td>
<td align="left">你可以使用自带 <strong>UI 虚拟化</strong>的 <a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.listview">ListView</a> 和 <a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.gridview">GridView</a> 控件,从而提供流畅的平移和滚动体验以及更快速的启动时间。 你还可以在数据源中实现 <a href="https://docs.microsoft.com/dotnet/api/system.collections.ilist?redirectedfrom=MSDN">IList</a> 和 <a href="https://docs.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged?redirectedfrom=MSDN">INotifyCollectionChanged</a>,从而提供<strong>数据虚拟化</strong>并进一步改善性能。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/debug-test-perf/optimize-gridview-and-listview">ListView 和 GridView UI 优化</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/debug-test-perf/listview-and-gridview-data-optimization">ListView 和 GridView 数据虚拟化</a></td>
</tr>
</tbody>
</table>
<h2 id="monetization">盈利</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>应用内购买。</strong> <br><br>允许用户在你的应用中进行购买的平台功能。</td>
<td align="left"><strong>应用内计费</strong>由 Google Services 提供。 产品已添加到 <strong>Google Play 开发人员控制台</strong>。 应用内购买通过 <strong>Google Play 计费库</strong>实现。</td>
<td align="left">产品已添加到 <strong>iTunes Connect</strong>。 使用 <strong>StoreKit</strong> 框架实现应用内购买。<br/><br/>使用 <strong>SKMutablePayment</strong> 和 <strong>SKPaymentQueue</strong> 购买产品。</td>
<td align="left">你可以为应用创建应用内产品购买,方法是<a href="https://docs.microsoft.com/windows/uwp/publish/iap-submissions">将应用内产品购买添加到应用并提交到应用商店</a>。 <br/><br/>你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.store.currentapp">CurrentApp 类</a></strong>来定义应用内购买。 <br/><br/>你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.store.currentapp.requestproductpurchaseasync">CurrentApp.RequestProductPurchaseAsync</a></strong> 来显示允许客户购买产品的 UI。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/monetize/enable-in-app-product-purchases">启用应用内产品购买</a></td>
</tr>
<tr class="even">
<td align="left"><strong>可使用应用内购买。</strong> <br><br>可购买、使用并再次购买的应用内产品。</td>
<td align="left">常规购买后通过 <strong>consumePurchase</strong> 将其消耗掉、使其可购买、使用并再次购买,即可启用易消耗品购买。</td>
<td align="left">易消耗产品在 iTunes Connect 中<strong>定义为易消耗产品</strong>。</td>
<td align="left">你也可以支持易消耗品,方法是<a href="https://docs.microsoft.com/windows/uwp/publish/enter-iap-properties">在将它们提交到应用商店时将它们的产品类型定义为“易消耗品”</a>即可。 然后,在进行易消耗品购买后调用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.store.currentapp.reportconsumablefulfillmentasync">CurrentApp.ReportConsumableFulfillmentAsync</a></strong>,以便允许客户访问它。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/monetize/enable-consumable-in-app-product-purchases">启用可使用应用内购买</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>测试应用内购买。</strong> <br><br>使你能够测试应用内购买代码,无需将应用放在应用商店中。</td>
<td align="left">使用<strong>应用内计费沙盒</strong>进行测试。</td>
<td align="left"><strong>沙盒测试人员帐户</strong>用于进行测试。</td>
<td align="left">只需使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.store.currentappsimulator">CurrentAppSimulator</a></strong> 类代替 CurrentApp 即可测试应用内购买。<br/><br/></td>
</tr>
<tr class="even">
<td align="left"><strong>试用版。</strong> <br><br>使你能够轻松地限制内容或删除基于应用试用版的广告。</td>
<td align="left">Google Play <strong>不对应用试用版提供正式支持</strong>。 通过创建应用内购买并在确认该购买成功后采用相应的代码路径,即可获得试用版或删除广告。</td>
<td align="left">App Store <strong>不对应用试用版提供正式支持</strong>。 通过创建应用内购买并在确认该购买成功后采用相应的代码路径,即可获得试用版或删除广告。</td>
<td align="left">在你将应用提交到应用商店时使用<strong><a href="https://docs.microsoft.com/windows/uwp/publish/set-app-pricing-and-availability">“免费试用版”选项</a></strong>,可提供应用的免费试用版。 然后,你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.store.licenseinformation.istrial">LicenseInformation.IsTrial</a></strong> 来检查应用的试用状态,并相应地显示不同的代码路径。 你可以注册 <a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.store.licenseinformation.licensechanged">LicenseChanged 事件</a>,以便用户在应用运行的同时更改试用版状态后收到通知。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/monetize/exclude-or-limit-features-in-a-trial-version-of-your-app">排除或限制的试用版中的功能</a></td>
</tr>
</tbody>
</table>
<h2 id="adapting-to-multiple-platforms">适应多个平台</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>自适应 UI: 灵活的布局。</strong> <br><br>采用灵活的高度和宽度支持不同的屏幕大小。</td>
<td align="left">使用 LinearLayout 对象中的 <strong>wrap_content</strong> 和 <strong>match_parent</strong> 值,或使用 RelativeLayout 对象进行对齐,即可实现灵活的布局。</td>
<td align="left">使用带有通用情节提要的<strong>自适应模型</strong>、利用带有<strong>约束</strong>和<strong>特征</strong>的<strong>自动布局</strong>(如应用于视图控制器的 horizontalSizeClass 和 displayScale),也可实现灵活的布局。</td>
<td align="left">你可以使用<strong>布局属性</strong>和<strong>面板</strong>并结合固定和动态大小调整,创建流动布局。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/layouts-with-xaml">定义与 XAML 的布局属性和面板的布局</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/screen-sizes-and-breakpoints-for-responsive-design">响应式设计 101</a></td>
</tr>
<tr class="even">
<td align="left"><strong>自适应 UI: 定制的布局。</strong> <br><br>使用单独的有针对性的布局支持不同的屏幕大小。</td>
<td align="left">使用<strong>配置限定符</strong>(如<strong>小</strong>、<strong>大</strong>、<strong>LDPI</strong> 和 <strong>HDPI</strong>),针对资源目录中的不同屏幕配置提供备用布局文件可允许你根据不同大小和密度的屏幕来定制自定义布局。</td>
<td align="left">定义一个<strong>单独的 iPhone 和 iPad 情节提要</strong>,以便针对跨平台应用中的不同设备系列定制布局。</td>
<td align="left">你可以通过为每个设备系列定义<strong>不同的 XAML 标记文件</strong>来生成定制的布局。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/layouts-with-xaml">定义与 XAML 的定制布局的布局</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>自适应 UI: 响应式布局。</strong> <br><br>响应屏幕大小的更改(如旋转),或窗口大小的更改。</td>
<td align="left">结合使用灵活布局和 <strong>LinearLayout</strong> 与 <strong>RelativeLayout</strong>,或为不同的方向提供备用布局文件来启用响应式布局。</td>
<td align="left">当视图的<strong>大小</strong>或<strong>特征</strong>发生更改时,将应用在情节提要中指定的<strong>约束</strong>。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.visualstate">VisualState</a></strong>、<strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.visualstatemanager">VisualStateManager</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.adaptivetrigger">AdaptiveTrigger</a></strong> 轻松地在运行时重排、重新定位、调整大小、展示或替换部分 UI,以响应窗口大小更改。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/layouts-with-xaml">定义与 XAML 的可视状态和状态触发器的布局</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/layout/screen-sizes-and-breakpoints-for-responsive-design">响应式设计 101</a></td>
</tr>
<tr class="even">
<td align="left"><strong>支持不同的设备功能。</strong> <br><br>利用高级硬件功能,同时仍支持没有这些功能的设备。</td>
<td align="left">使用 <strong>PackageManager.hasSystemFeature</strong> 在运行时对设备功能进行测试,使你可以决定是否可以运行硬件特定代码。</td>
<td align="left">你不可以在运行时执行<strong>单个检查</strong>来对设备功能进行测试,以特定方法测试每项功能,以便确定是否可以运行硬件特定代码。</td>
<td align="left">你可以将<strong>平台扩展 SDK</strong> 添加到程序包,以将在不同设备系列(包括手机、台式机和 IoT)中找到的其他功能作为目标。 你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.foundation.metadata.apiinformation">ApiInformation API</a></strong> 对在运行时出现的类型和成员进行测试,并且仅当这些类型和成员存在时才能调用它们。</td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>支持不同的设备功能。</strong> <br><br>利用高级硬件功能,同时仍支持没有这些功能的设备。</td>
<td align="left">可以将 <strong>Android 支持库</strong> 与你的应用打包在一起,以使某些较新的 API 可用于采用较旧版本的 Android 的 API。 可以在运行时使用 <strong>Build.Version.SDK_INT</strong> 完成对 API 级别的测试。</td>
<td align="left">标准运行时检查用于确定 API 是否可用,例如使用 <strong>class</strong> 方法来检查类是否存在,使用 <strong>respondsToSelector:</strong> 来检查有关类的方法。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.foundation.metadata.apiinformation.isapicontractpresent">ApiInformation.IsApiContractPresent</a></strong> 来确定是否存在带有指定主次编号的 API 合约。 你也可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.foundation.metadata.apiinformation">ApiInformation API</a></strong> 对在运行时出现的类型和成员进行测试,并且仅当这些类型和成员存在时才能调用它们。</td>
</tr>
</tbody>
</table>
<h2 id="notifications">通知</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>磁贴和徽章。</strong> <br><br>在主屏幕上向用户显示更新。</td>
<td align="left"><strong>应用小组件</strong>是应用程序中的视图,可以嵌入主屏幕并且可以接收定期更新。 Android 中<strong>没有锁屏提醒系统</strong>。 也没有等同的磁贴系统。</td>
<td align="left">iOS 中的<strong>小组件</strong>出现在通知中心中,并作为<strong>应用扩展</strong>实现。 你还可以向图标中添加<strong>锁屏提醒</strong>,并加上可在响应本地或远程通知时发生更改的编号。 没有磁贴系统。</td>
<td align="left">应用的<strong>磁贴</strong>可以固定到“开始”屏幕,并通过字形和编号来显示你选择的文本、图像和<strong>锁屏提醒</strong>。 你可以通过推送通知或按预定义计划从应用更新磁贴的内容。 磁贴具有自适应性,并且可以根据它们显示的位置进行更改。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-creating-tiles">创建磁贴</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-create-adaptive-tiles">创建自适应磁贴</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-choosing-a-notification-delivery-method">选择通知传递方法</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-creating-tiles">磁贴和徽章准则</a></td>
</tr>
<tr class="even">
<td align="left"><strong>显示通知。</strong> <br><br>可以显示的通知类型。</td>
<td align="left">通知可以在<strong>通知区域</strong>和<strong>通知箱</strong>中显示,<strong>警告通知</strong>会在一个小浮动窗口中显示通知。 通过定义 <strong>PendingIntent</strong>,通知可以向自身添加操作。</td>
<td align="left">弹出通知会以<strong>横幅</strong>或<strong>警报</strong>形式显示。 你可以将自定义操作按钮添加到使用 <strong>UIMutableUserNotificationAction</strong> 定义的<strong>可操作通知</strong>。</td>
<td align="left">你可以创建自适应的弹出通知,称为 <strong>Toast 通知</strong>。 你可以使用可视内容、<strong>操作</strong>(可以是按钮或输入和音频)在 XML 中定义 Toast。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-adaptive-interactive-toasts">自适应和交互式 Toast 通知</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-choosing-a-notification-delivery-method">选择通知传递方法</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-badges-notifications">Toast 通知准则</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>计划本地通知。</strong> <br><br>在计划时间由应用发送的本地通知。</td>
<td align="left">通知和操作可使用 <strong>NotificationCompat.Builder</strong> 进行定义,并且可以使用 <strong>AlarmManager</strong> 和 <strong>BroadcastReceiver</strong> 在应用内进行计划和处理。</td>
<td align="left">使用创建本地通知<strong>UILocalNotification</strong>,并为其安排<b>UILocalNotification.scheduleLocalNotification:<strong>。 |您可以计划 toast 通知使用</strong> <a href="https://docs.microsoft.com/uwp/api/Windows.UI.Notifications.ScheduledToastNotification">ScheduledToastNotification</a><strong>。可以从你的应用使用发送磁贴通知</strong> <a href="https://docs.microsoft.com/uwp/api/Windows.UI.Notifications.TileNotification">TileNotification 类</a><strong>,或计划包含的磁贴通知<a href="https://docs.microsoft.com/uwp/api/Windows.UI.Notifications.ScheduledTileNotification">ScheduledTileNotification</a>。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-adaptive-interactive-toasts">自适应和交互式 Toast 通知</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-sending-a-local-tile-notification">将本地磁贴通知发送</a>| |</strong>发送推送通知。</b> 从推送通知服务器发送并可以选择在应用内处理的通知。</td>
<td align="left"><strong>Google 云消息</strong>提供对 Android 的推送通知支持。</td>
</tr>
</tbody>
</table>
<h2 id="media-capture-and-rendering">媒体捕获和呈现</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>捕获媒体。</strong> <br><br>录制音频和视觉内容。</td>
<td align="left">使用<strong>意图</strong>(如 MediaStore.ACTION_VIDEO_CAPTURE)允许使用现有的相机应用捕获媒体。 使用 <strong>android.hardware.camera2</strong> 或<strong>相机</strong>库可以实现自定义相机接口。 <strong>MediaRecorder</strong> API 可以用于捕获音频。</td>
<td align="left"><strong>UIImagePickerController</strong> 允许通过系统 UI 捕获视频和照片。 <strong>AVFoundation</strong> 类(如 <strong>AVCaptureSession</strong>)支持直接访问相机。 <br/><strong>AVAudioRecorder</strong> 类支持音频录制。</td>
<td align="left">你可以结合使用内置的相机 UI 与 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Media.Capture.CameraCaptureUI">CameraCaptureUI 类</a></strong>来捕获照片和视频。 你可以在较低的级别上与相机进行交互,并使用 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Media.Capture">Windows.Media.Capture</a></strong> 中的类(如 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Media.Capture.MediaCapture">MediaCapture API</a></strong>)捕获音频。 <br/><br/><a href="https://docs.microsoft.com/windows/uwp/audio-video-camera/capture-photos-and-video-with-cameracaptureui">捕获照片和视频使用 CameraCaptureUI</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/audio-video-camera/capture-photos-and-video-with-mediacapture">捕获照片和视频 MediaCapture</a></td>
</tr>
<tr class="even">
<td align="left"><strong>媒体的播放。</strong> <br><br>播放音频和视频文件。</td>
<td align="left"><strong>MediaPlayer</strong> 和 <strong>AudioManager</strong> 类用于播放音频和视频文件。</td>
<td align="left"><strong>AVKit framework</strong>、<strong>AVAudioPlayer</strong> 和 <strong>Media Player Framework</strong> 用于播放音频和视频文件。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.Media.Core.MediaSource">MediaSource 类</a></strong>、<strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.mediaelement">MediaElement</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/windows.media.playback.mediaplayer">MediaPlayer</a></strong> 类,从源(如本地和远程文件)播放音频和视频。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/audio-video-camera/media-playback-with-mediasource">使用 MediaSource 媒体播放</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>编辑媒体。</strong> <br><br>从现有录制文件合成新的媒体文件,并应用特效。</td>
<td align="left">低级别的类(如 <strong>MediaCodec</strong>、<strong>MediaMuxer</strong> 和 <strong>android.media.effect</strong>)可用于内容编辑。</td>
<td align="left"><strong>AV Foundation</strong> 框架中的类(如 <strong>AVMutableComposition</strong>、<strong>AVMutableVideoComposition</strong> 和 <strong>AVMutableAudioMix</strong>)可用于内容编辑。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.media.editing">Windows.Media.Editing</a></strong> API(如 <strong><a href="https://docs.microsoft.com/uwp/api/windows.media.editing.mediacomposition">MediaComposition</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/windows.media.editing.mediaclip">MediaClip</a></strong>)从音频和视频文件创建媒体合成。 你可以添加视频和图像覆盖、合并视频剪辑、添加背景音频以及应用音频和视频效果。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/audio-video-camera/media-compositions-and-editing">媒体合成和编辑</a></td>
</tr>
</tbody>
</table>
<h2 id="sensors">传感器</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>传感器。</strong> <br><br>检测设备移动、位置和环境属性。</td>
<td align="left"><strong>传感器框架</strong>用于访问带有类(如 <strong>SensorManager</strong> 和 <strong>SensorEvent</strong>)的硬件和软件传感器。</td>
<td align="left"><strong>核心运动框架</strong>用于访问原始和经过处理的传感器数据。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.devices.sensors">Windows.Devices.Sensors</a></strong> 中的类来访问传感器读数以及从传感器接收到新读取数据时触发的事件。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/devices-sensors/sensors">传感器</a></td>
</tr>
</tbody>
</table>
<h2 id="location-and-mapping">位置和映射</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>位置。</strong> <br><br>查找设备的<strong>当前</strong>位置并跟踪<strong>位置变动</strong>。</td>
<td align="left">Google Play 服务位置 API 使用 <strong>getLastLocation</strong> 和 <strong>requestLocationUpdates</strong> 方法,通过<strong>融合的位置提供程序</strong>提供对<strong>最后已知位置</strong>的高级别访问权限。 在 Android 库中,低级别访问权限通过 <strong>LocationManager</strong> 提供。</td>
<td align="left"><strong>核心位置</strong> <strong>CLLocationManager</strong>类用于监视设备的位置<strong>startUpdatingLocation</strong>标准位置服务和<strong>startMonitoringSignificantLocationChanges</strong>有关<strong>重大改变</strong>位置服务。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.devices.geolocation">Windows.Devices.Geolocation</a></strong> 中的类跟踪设备位置。 对于一次性读取,使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.devices.geolocation.geolocator.getgeopositionasync">Geolocator.GetGeopositionAsync</a></strong>。 使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.devices.geolocation.geolocator.positionchanged">Geolocator.PositionChanged</a></strong> 来获取定期使用计时器的位置,或者收到位置变动通知。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/maps-and-location/get-location">获取用户位置</a></td>
</tr>
<tr class="even">
<td align="left"><strong>显示地图。</strong> <br><br>显示<strong>交互式内置地图</strong>并添加<strong>目标点</strong>。</td>
<td align="left"><strong>Google 地图 Android API</strong> 中的 <strong>GoogleMap</strong>、<strong>MapFragment</strong> 和 <strong>MapView</strong> 类允许地图嵌入在应用中。 可以使用<strong>标记</strong>和可自定义的 <strong>Marker</strong> 类显示目标点。</td>
<td align="left">使用 <strong>MapKit 框架</strong>中的 <strong>MKMapView</strong> 类将地图嵌入 iOS 应用中。 可以使用对象类(如 <strong>MKPointAnnotation</strong>)和视图类(如 <strong>MKPinAnnotationView</strong>)向应用添加<strong>注释</strong>,以显示目标点。</td>
<td align="left">你可以使用内置的 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.maps.mapcontrol">MapControl</a></strong> XAML 控件(提供 2D、3D 和街景视图)将地图嵌入应用中。 你可以使用类(如 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.maps.mapicon">MapIcon</a></strong>、<strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.maps.mappolygon">MapPolygon</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.controls.maps.mappolyline">MapPolyline</a></strong>)通过图钉、图像或形状添加目标点。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/maps-and-location/display-maps">使用 2D、3D 和街景视图显示地图</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/maps-and-location/display-poi">在地图上显示目标点 (POI)</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>地理围栏。</strong> <br><br>监视进入和离开特定地理区域。</td>
<td align="left">使用 Google Play Services SDK 中的<strong>定位服务</strong>监视地理围栏。</td>
<td align="left">使用 <strong>CLCircularRegion</strong> 类监视区域,使用 <strong>CLLocationManager.startMonitoringForRegion:</strong> 注册区域。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.devices.geolocation.geofencing.geofence">Geofence</a></strong> 类创建地理围栏,并定义<strong>监视状态</strong>(如进入或离开某个区域)。 使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.devices.geolocation.geofencing.geofencemonitor">GeofenceMonitor 类</a></strong>处理前台地理围栏事件,后台地理围栏事件要使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.background.locationtrigger">LocationTrigger 后台类</a></strong>处理。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/maps-and-location/set-up-a-geofence">设置地理围栏</a></td>
</tr>
<tr class="even">
<td align="left"><strong>地理编码和反向地理编码。</strong> <br><br>将地址转换为地理位置(地理编码),将地理位置转换为地址(反向地理编码)。<br/></td>
<td align="left"><strong>Geocoder</strong> 类用于地理编码和反向地理编码。</td>
<td align="left"><strong>CLGeocoder</strong> 类用于地理编码。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps">Windows.Services.Maps</a></strong> 中的 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps.maplocationfinder">MapLocationFinder 类</a></strong>执行地理编码。 对于地理编码,使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps.maplocationfinder.findlocationsasync">FindLocationsAsync</a></strong>,而对于反向地理编码,使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps.maplocationfinder.findlocationsatasync">FindLocationsAtAsync</a></strong>。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/maps-and-location/geocoding">执行地理编码和反向地理编码</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>路由和方向。</strong> <br><br>提供两个地理位置之间的路线、距离和方向。</td>
<td align="left">Google 提供的 Web 服务 <strong>Google 地图路线 API</strong> 可以在 Android 上使用,即使没有提供 SDK。</td>
<td align="left">地图工具包提供 <strong>MKDirections</strong> API,可用于获取有关路线和方向的信息。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps">Windows.Services.Maps</a></strong> 中的 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps.maproutefinder">MapRouteFinder</a></strong> 类,请求步行或驾车路线。 路线会作为 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps.maproute">MapRoute</a></strong> 实例返回,并轻松地在 MapControl 上显示。 方向会在 <strong><a href="https://docs.microsoft.com/uwp/api/windows.services.maps.maproutemaneuver">MapRouteManeuver</a></strong> 对象内部返回。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/maps-and-location/routes-and-directions">在地图上显示的路由和方向</a></td>
</tr>
</tbody>
</table>
<h2 id="app-to-app-communication">应用到应用的通信</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>调用另一个应用。</strong> <br><br>启动另一个应用,并且可以选择共享数据(如链接、文本、照片、视频和文件)。</td>
<td align="left">可使用<strong>隐式意图</strong>启动另一个应用,方法是定义<strong>意图</strong>中的<strong>操作</strong>和可选数据,并使用 <strong>startActivityForResult</strong> 对其进行调用。<br/></td>
<td align="left"><strong>应用扩展</strong>可用于向另一个应用提供对应用数据的访问权限。 <strong>URL 方案</strong>使 URL 可以传递到另一个应用。</td>
<td align="left">你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.system.launcher.launchuriasync">Launcher.LaunchUriAsync</a></strong> 启动另一个已注册 URI 的应用,或使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.system.launcher.launchuriforresultsasync">Launcher.LaunchUriForResultsAsync</a></strong> 针对结果进行启动,并从启动的应用重新获取数据。 你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/windows.system.launcher.launchfileasync">Launcher.LaunchFileAsync</a></strong> 将文件传递到另一个应用进行处理。<br/><br/>你可以使用<strong>共享合约</strong>在应用之间轻松地共享数据。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/launch-default-app">启动 URI 的默认应用</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/how-to-launch-an-app-for-results">针对结果启动应用</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/launch-the-default-app-for-a-file">启动文件的默认应用</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/app-to-app/share-data">共享数据</a></td>
</tr>
<tr class="even">
<td align="left"><strong>使应用能够调用。</strong> <br><br>允许应用响应来自另一个应用的请求。</td>
<td align="left">应用向<strong>意图筛选器</strong>注册<strong>意图处理活动</strong>,以响应来自另一个应用的隐式意图。</td>
<td align="left">将<strong>应用扩展</strong>打包可使数据与其他应用共享。 应用可以使用 Info.plist 中的 <strong>CFBundleURLTypes</strong> 项注册<strong>自定义 URL 方案</strong>。</td>
<td align="left">通过在程序包清单中注册一项<strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.activation.activationkind#Protocol">协议</a></strong>并更新 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.application.onactivated">Application.OnActivated</a></strong> 事件处理程序,(可选)从而返回结果,你可以将应用注册为 <strong>URI 方案名称</strong>的默认处理程序。 同样,也可以通过在程序包清单中添加一项声明并处理 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.application.onfileactivated">Application.OnFileActivated</a></strong> 事件,将应用注册为特定文件类型的默认处理程序。<br/><br/>你可以通过在清单中将应用注册为共享目标并处理 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.application.onsharetargetactivated">Application.OnShareTargetActivated</a></strong> 事件来处理共享合约请求。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/how-to-launch-an-app-for-results">针对结果启动应用</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/launch-resume/handle-file-activation">处理文件激活</a><br/><br/><a href="https://docs.microsoft.com/windows/uwp/app-to-app/receive-data">接收数据</a></td>
</tr>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>复制并粘贴。</strong> <br><br>在应用之间复制和粘贴文本及其他内容。</td>
<td align="left">借助 <strong>ClipboardManager</strong> 和 <strong>ClipData</strong> 类,可以使用<strong>剪贴板框架</strong>实现复制和粘贴。</td>
<td align="left">可以使用 <strong>UIPasteboard</strong>、<strong>UIMenuController</strong> 和 <strong>UIResponderStandardEditActions</strong> 实现复制和粘贴。</td>
<td align="left">许多默认 XAML 控件已经支持复制和粘贴。 你可以使用 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.ApplicationModel.DataTransfer">Windows.ApplicationModel.DataTransfer</a></strong> 中的 <strong><a href="https://docs.microsoft.com/uwp/api/windows.applicationmodel.datatransfer.datapackage">DataPackage</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/Windows.ApplicationModel.DataTransfer.Clipboard">Clipboard</a></strong> 类,自行实现复制和粘贴。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/app-to-app/copy-and-paste">复制和粘贴</a></td>
</tr>
<tr class="even">
<td align="left"><strong>拖放。</strong> <br><br>在应用之间拖放内容。</td>
<td align="left">拖放可通过使用 <strong>Android 拖/放框架</strong>在单个应用程序内部实现。</td>
<td align="left">iOS 不提供任何高级别的拖放 API。</td>
<td align="left">通过在应用中实现拖放,可以启用应用到应用、桌面到应用以及应用到桌面的拖放功能。 你可以借助 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.uielement.allowdrop">AllowDrop</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.uielement.candrag">CanDrag</a></strong> 属性以及 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.uielement.dragover">DragOver</a></strong> 和 <strong><a href="https://docs.microsoft.com/uwp/api/windows.ui.xaml.uielement.drop">Drop</a></strong> 事件,在 UIElement 类中实现拖放支持。<br/><br/><a href="https://docs.microsoft.com/windows/uwp/app-to-app/drag-and-drop">拖放</a></td>
</tr>
</tbody>
</table>
<h2 id="software-design">软件设计</h2>
<table style="width:100%">
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="header">
<th align="left"><strong>一般概念</strong></th>
<th align="left"><strong>Android</strong></th>
<th align="left"><strong>iOS</strong></th>
<th align="left"><strong>Windows 10 UWP</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd" style="background-color: #f2f2f2">
<td align="left"><strong>软件设计模式。</strong> <br><br>针对平台推荐的或适用于平台的模式。</td>
<td align="left">尽管 Beta 版“数据绑定框架”支持广泛使用 <strong>Model-View-ViewModel (MVVM)</strong> 模式,但并没有针对 Android 开发推荐或提供任何正式模式。 许多第三方文章和框架推荐使用 <strong>Model-View-Presenter (MVP)</strong> 和 <strong>MVVM</strong> 方法。</td>
<td align="left"><strong>Model-View-Controller (MVC)</strong> 是与 iOS 一起使用的常见模式,并且已集成到平台中。</td>
<td align="left">在针对 UWP 进行生成时,不要局限于某一特定模式。<br/><br/>你可以使用内置的<a href="https://docs.microsoft.com/windows/uwp/data-binding/index">数据绑定</a>模式以确保彻底分离数据和 UI 问题,并避免对随后会更新属性值的 UI 事件处理程序进行编码。<br/><br/>你可以通过利用第三方 MVVM 库(如 <a href="https://archive.codeplex.com/?p=mvvmlight">MVVM 光工具包</a>),或者滚动自己的 MVVM 库并保持逻辑退出代码隐藏来扩展数据绑定,以遵循 <strong>Model-View-ViewModel (MVVM)</strong> 模式。<br/><br/><a href="https://docs.microsoft.com/previous-versions/msp-n-p/hh848246(v=pandp.10)">MVVM 模式</a><br/><br/><a href="https://github.com/Windows-XAML/Template10/wiki">模板 10 Visual Studio 项目模板</a></td>
</tr>
</tbody>
</table>
| 91.982063 | 1,057 | 0.74129 | yue_Hant | 0.539609 |
db98496b697d969f81372b9c91cbb2f03f48135c | 6,070 | md | Markdown | README.md | Houssein-Khafaja-ehealthOntario/Android-DHDR-FHIR | c5afac7da7a25bdd37ee50122a32bc8d198d5f27 | [
"MIT"
] | 2 | 2019-03-23T20:01:09.000Z | 2021-10-02T06:45:29.000Z | README.md | Houssein-Khafaja-ehealthOntario/Android-DHDR-FHIR | c5afac7da7a25bdd37ee50122a32bc8d198d5f27 | [
"MIT"
] | null | null | null | README.md | Houssein-Khafaja-ehealthOntario/Android-DHDR-FHIR | c5afac7da7a25bdd37ee50122a32bc8d198d5f27 | [
"MIT"
] | null | null | null | # DHDR-FHIR Android Sample
This is an Android application prototype that makes use of the HL7 HAPI FHIR 3.3.0 Library to connect to [Innovation Lab's Digital Health Drug Repository (DHDR)](https://www.innovation-lab.ca/digital-health-drug-repository-dhdr). It also connects to [Innovation Lab's Provincial Client Registry (PCR) v3](https://www.innovation-lab.ca/Provincial-Client-Registry).
## Table of Contents
- [Android Features Used](#android-features-used)
- [Getting Started](#getting-started)
- [**Prerequisites**](#prerequisites)
- [**Setting up the Dev Environment**](#setting-up-the-dev-environment)
- [Downloading and installing Android Studio](#downloading-and-installing-android-studio)
- [Importing the DHDR-FHIR project into Android Studio](#importing-the-dhdr-fhir-project-into-android-studio)
- [Setting up your debugging environment](#setting-up-your-debugging-environment)
- [Intel Systems - Installing HAXM](#intel-systems---installing-haxm)
- [Important Notes For Developers](#important-notes-for-developers)
- [Authors](#authors)
- [License](#license)
- [Acknowledgments](#acknowledgments)
## Android Features Used
These are the features that were used to put together this project:
- Multiple Activities
- Using intents and extending the Parcelable interface to move data
- List views and custom listview adapters (and with custom XML layouts)
- Most layouts use the ConstraintLayout (Potrait and Landscape)
- Extending the AsyncTask class to execute network operations (DHDR and PCR)
- Uses the ViewHolder pattern for better UI performance
- Uses built-in HTTP libraries in Android Java to query PCR
- Displaying Custom Dialogs (popups) for showing progress bars and error messages
- Uses DatePickerDialog so that users can enter dates as query filters. Date manipulation with Date, SimpleDateFormat and Calendar objects
- Uses SQLiteOpenHelper to implement a basic local database.
## Getting Started
These instructions will get you a copy of the project up and running on your Android Studio's emulator or on your real Android device.
### **Prerequisites**
```
- Android Studio (v3.x)
- Intel systems may be required to install HAXM
- This Git Android Project
- HAPI FHIR Android Library, plus base and structures libraries (included in git project)
- Joda Time Library (included in git project)
```
### **Setting up the Dev Environment**
#### Downloading and installing Android Studio
First, [download the latest version of Android Studio](https://developer.android.com/studio/).
The installation process is straightforward, however if you run into any issues, [follow the official installation instructions provided](https://developer.android.com/studio/install).
#### Importing the DHDR-FHIR project into Android Studio
After cloning or downloading this Git project, go to:
1. File -> Open in Android Studio's menu bar.
2. Find and select the project that you just cloned/downloaded and click "OK".
#### Setting up your debugging environment
Once you have installed Android Studio and you've imported the Android Studio project, you will then need to decide on how you plan on running/debugging your application. There are two ways of doing this:
1. [Run the app on your real Android device over USB](https://developer.android.com/studio/run/device).
2. Run the app in an emulator. This can either be a third-party emulator you find online or it can be [Android Studio's built-in emulator](https://developer.android.com/studio/run/emulator).
**Note:** If you're using an emulator on Android Studio, you first need to create a virtual device image via the [AVD manager](https://developer.android.com/studio/run/managing-avds).
#### Intel Systems - Installing HAXM
If you need or want Intel's hardware acceleration software to speed up your Android emulation on Android Studio, then [follow these instructions](https://developer.android.com/studio/run/emulator-acceleration). This is highly recommended for developers running Intel CPUs.
## Important Notes For Developers
- Ensure that you replace the string literal: "your unique identifier" with your actual Innovation Lab Unique Identifier in two places: DHDRService.java and PCRService.java. You will need to sign up on [Innovation Lab](https://www.innovation-lab.ca/register/).
- Ensure that you have the proper permissions given to your applicaiton by including the following code in your Android Manifest .xml. If you do not include these permissions, your app wont be able to execute network operations.
- E.G:
```xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xx.xxx.xxxxx.dhdr_fhirprototype">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
```
- You also need to include a few more objects in your build.gradle (Module:app) **android {...} block**
- You might need to change "JavaVersion.VERSION_1_8" to your version of Java
```
android {
...
...
...
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
```
<br/>
---
## Authors
**Houssein Khafaja** - *eHealth Ontario co-op* - [eHealth Ontario](https://www.ehealthontario.on.ca/en/)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
* Dawne Pierce - *Mohawk College MEDIC* - for provding [FHIR North Java Sample Code](https://www.innovation-lab.ca/repository/ViewRepository?id=1911d245-5c6c-4156-bd7d-2f0701d6ce28) ([Github source](https://github.com/EHO-Innovation-Lab/FHIRNorthJava))
* Antoaneta Stoyanova for lending her time to answer my questions - *eHealth Ontario DHDR Architect* - [eHealth Ontario](https://www.ehealthontario.on.ca/en/)
* Yulia Shtrachman and Igor Sirkovich - *MOHLTC* - [MOHLTC Website](http://www.health.gov.on.ca/en/)
| 56.728972 | 363 | 0.760791 | eng_Latn | 0.922067 |
db98d27ab4aa3bbe149432bc0ca356df2f0b2e5f | 3,095 | md | Markdown | prod/README.md | dzenanz/miqa | de045ff5d0c0ef8d2ccdfd8138457ffc045499c2 | [
"Apache-2.0"
] | 29 | 2019-01-23T20:14:03.000Z | 2022-03-24T01:07:10.000Z | prod/README.md | dzenanz/miqa | de045ff5d0c0ef8d2ccdfd8138457ffc045499c2 | [
"Apache-2.0"
] | 373 | 2019-07-31T01:26:21.000Z | 2022-03-31T16:27:55.000Z | prod/README.md | dzenanz/miqa | de045ff5d0c0ef8d2ccdfd8138457ffc045499c2 | [
"Apache-2.0"
] | 16 | 2019-08-08T19:27:56.000Z | 2022-03-30T20:05:42.000Z | # Production Deployment
This directory contains everything required to deploy MIQA in production using docker-compose.
# Instructions
All of these commands should be run from the `prod` directory.
### Setup the configuration variables
Run:
`cp .env.template .env`
Open the `.env` file and make changes to the variables in the top section.
* `DJANGO_EMAIL_URL` must be of the form `submission://username:[email protected]:port`. See the [documentation](https://github.com/migonzalvar/dj-email-url#supported-backends) for details with encoding special characters.
You can also specify those variables explicitly in your local shell environment instead of editing the file. `docker-compose` will check for local shell values before defaulting to the values in `.env`.
### Build the docker image
```
docker-compose build
```
### Apply the DB migrations
Until you do this, the postgres DB is completely empty.
This will not populate any data, only set up tables.
```
docker-compose run --rm django ./manage.py migrate
```
### Create a superuser to administer the server
**IMPORTANT**: Set both the Username and Email to the same valid email address.
Admin logins will break if you do not.
```
docker-compose run --rm django ./manage.py createsuperuser
```
### Run the server
```
docker-compose up
```
### Set up OAuth Application
The app should now be running and accessible in your browser.
However, you still need to set up the OAuth Application before you can log in through the web client.
For this example, we will assume you are setting up `https://miqa.com/miqa2/`.
Set up the application by running:
```
docker-compose run --rm django ./manage.py makeclient --username [email protected] --uri https://miqa.com/miqa2/
```
If you have problems logging in, you can reconfigure the OAuth Application from the admin console:
* In a browser, log in to the admin console at `https://miqa.com/admin` using the credentials you made earlier (email/password).
* Click on Django OAuth Toolkit > Applications.
* Click `miqa-client`.
### Set up default project
Although there are plans to support multiple projects, currently the web client only supports one.
This project must still be created manually:
```
docker-compose run --rm django ./manage.py populate --username [email protected] --csv /path/to/your/import.csv
```
This command will also attempt to import from the specified CSV file.
If the CSV file is invalid, it will fail and throw an error message.
However, the default project was still created, so there is no need to rerun the command.
You will be able to reconfigure and retry the import through the web UI once that is set up.
### Test login
* Log out of the admin console.
* Go to `https://miqa.com/miqa2/`. You should be redirected to a log in page.
* Log in using the credentials you made earlier. You should get a prompt that an email was sent to verify your account.
* Check your email and click the link to verify your account.
* Log in again. You should now be logged in to the app.
### Import experiments
* Under the Experiments tab, click Import.
| 38.6875 | 228 | 0.758643 | eng_Latn | 0.995963 |
db9912e9cfcf2d945d8846fec412183d58187e23 | 1,790 | md | Markdown | docs/framework/unmanaged-api/hosting/idebuggerthreadcontrol-startblockingfordebugger-method.md | zabereznikova/docs.de-de | 5f18370cd709e5f6208aaf5cf371f161df422563 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/unmanaged-api/hosting/idebuggerthreadcontrol-startblockingfordebugger-method.md | zabereznikova/docs.de-de | 5f18370cd709e5f6208aaf5cf371f161df422563 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/framework/unmanaged-api/hosting/idebuggerthreadcontrol-startblockingfordebugger-method.md | zabereznikova/docs.de-de | 5f18370cd709e5f6208aaf5cf371f161df422563 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | ---
title: IDebuggerThreadControl::StartBlockingForDebugger-Methode
ms.date: 03/30/2017
api_name:
- IDebuggerThreadControl.StartBlockingForDebugger
api_location:
- mscoree.dll
api_type:
- COM
f1_keywords:
- StartBlockingForDebugger
helpviewer_keywords:
- IDebuggerThreadControl::StartBlockingForDebugger method [.NET Framework hosting]
- StartBlockingForDebugger method [.NET Framework hosting]
ms.assetid: 5c8f11b4-35d3-4c39-9bbd-58b896ba5ba6
topic_type:
- apiref
ms.openlocfilehash: 1e0cb52a6b9f03209256e5398415b4ec632fb5e5
ms.sourcegitcommit: d8020797a6657d0fbbdff362b80300815f682f94
ms.translationtype: MT
ms.contentlocale: de-DE
ms.lasthandoff: 11/24/2020
ms.locfileid: "95705504"
---
# <a name="idebuggerthreadcontrolstartblockingfordebugger-method"></a>IDebuggerThreadControl::StartBlockingForDebugger-Methode
Benachrichtigt den Host, dass die debuggingdienste damit beginnen, alle Threads zu blockieren.
## <a name="syntax"></a>Syntax
```cpp
HRESULT StartBlockingForDebugger (
[in] DWORD dwUnused
);
```
## <a name="parameters"></a>Parameter
`dwUnused`
[in] Reserviert für zukünftige Verwendung.
## <a name="remarks"></a>Hinweise
Die- `StartBlockingForDebugger` Methode kann in einem Lauf Zeit Thread aufgerufen werden.
## <a name="requirements"></a>Requirements (Anforderungen)
**Plattformen:** Informationen finden Sie unter [Systemanforderungen](../../get-started/system-requirements.md).
**Header:** Mscoree. h
**Bibliothek:** Als Ressource in MSCorEE.dll enthalten
**.NET Framework Versionen:**[!INCLUDE[net_current_v20plus](../../../../includes/net-current-v20plus-md.md)]
## <a name="see-also"></a>Weitere Informationen
- [IDebuggerThreadControl-Schnittstelle](idebuggerthreadcontrol-interface.md)
| 30.338983 | 126 | 0.764246 | deu_Latn | 0.317503 |
db993041b5554c06c97a366d0f66ced953a93d9c | 708 | md | Markdown | notes.md | ZyElite/sketch | 5ace388197989c0d5b9a3d711dc44ce9b11de582 | [
"Apache-2.0"
] | 1,168 | 2017-07-07T06:25:29.000Z | 2022-03-23T04:20:57.000Z | notes.md | yuanyuanjing/sketch | ef1ea112912b125b7f065476ec8802857aac1fe0 | [
"Apache-2.0"
] | 123 | 2017-07-18T03:35:33.000Z | 2022-03-31T07:08:49.000Z | notes.md | yuanyuanjing/sketch | ef1ea112912b125b7f065476ec8802857aac1fe0 | [
"Apache-2.0"
] | 146 | 2017-07-09T06:28:27.000Z | 2022-01-17T00:57:14.000Z | 图片缩放以及大图功能点:
>* 与父View之间触摸事件的冲突,滑动到边缘时,不拦截事件
>* 缩放时超过最大或最小缩放比例时要依然可以缩放,并且要模拟拉橡皮筋的感觉
>* 读取图片碎片时要再细分成一个一个的小块去读取,因为用户在缓慢滑动的过程中,部分区域是一直显示的,没有必要再读一遍
>* 横向和竖向均要支持显示滑动进度,这样用户能大概明白图片有多高多宽
>* 支持两级缩放
图片的三级缩放比例
>* 第一级要显示图片的全貌
>* 第二级要让较小的一边充满屏幕,然后用户在一个方向上滑动即可查看全部图片
>* 第三级要以图片原始宽高一比一显示,这样用户能看到最清晰的图片
>* 一级缩放跟二级缩放比例非常接近时就用一级的两倍作为二级
>* 如果三级还没有二级的两倍大,那么就用二级的两倍作为三级缩放倍数
大图功能开启条件
>* 只有没有完整显示的图片才能使用大图功能
>* 只有jpg、png、webp格式的图片才能使用大图功能
DiskLruCache踩坑记:
>* edit()的时候执行了flush,及时的把操作记录保存到了本地,但是commit()和abort()的时候没有执行flush(),导致最后一个缓存的commit()记录不能及时的保存到本地,
如果这时候强行杀死的APP,那么最后一个缓存有没有commit记录导致被认为是脏数据而不能使用
>* deleteContents(File)方法在清空一个目录时,如果获取不到其子文件,就直接抛运行时异常了,这样太严苛了
>* 在执行remove(String)方法删除一个缓存时,如果缓存文件已经不存在了就会抛出运行时异常,这样太严苛了
| 28.32 | 99 | 0.84887 | yue_Hant | 0.540757 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.