Custom Views for the Rest of Us
1Custom Views for the Rest of Us — Jacob Rice jacob.rice.cpp@gmail.com 2🎉🎆🎊 using namespace std::views; for (int i : iota(2) | filter(even) | transform(square)) std::cout << i << ' '; 1 AlgorithmThatSwaps(T& t1, T& t2) 2 { 3 // Algorithm stuff... 4 5 // More algorithm 6 } 7 Calls the custom version, if it exists (same for begin and end): 78std::ranges::iter_swap std::ranges::iter_move (P2387) New type: std::ranges::range_adaptor_closure. Ensure all closure objects inherit from this. Custom closure objects can then use it, too. 120namespace detail { template concept can_cons 0 码力 | 187 页 | 13.25 MB | 5 月前3Oracle VM VirtualBox 5.2.40 User Manual
8 Advanced display configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 9.8.1 Custom VESA resolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 205 9.8.2 Configuring the maximum Configuring the BIOS DMI information . . . . . . . . . . . . . . . . . . . . . . . 212 9.13 Configuring the custom ACPI table . . . . . . . . . . . . . . . . . . . . . . . . . 213 9.14 Fine-tuning timers and time are physically present on your host. – USB device support. VirtualBox implements a virtual USB controller and allows you to connect arbitrary USB devices to your virtual machines without having to install0 码力 | 387 页 | 4.27 MB | 6 月前3Oracle VM VirtualBox 5.2.12 User Manual
8 Advanced display configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 9.8.1 Custom VESA resolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 204 9.8.2 Configuring the maximum Configuring the BIOS DMI information . . . . . . . . . . . . . . . . . . . . . . . 211 9.13 Configuring the custom ACPI table . . . . . . . . . . . . . . . . . . . . . . . . . 212 9.14 Fine-tuning timers and time are physically present on your host. – USB device support. VirtualBox implements a virtual USB controller and allows you to connect arbitrary USB devices to your virtual machines without having to install0 码力 | 380 页 | 4.23 MB | 6 月前3Oracle VM VirtualBox 4.2.32 User Manual
7 Advanced display configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 9.7.1 Custom VESA resolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 160 9.7.2 Configuring the maximum OEM strings (type 11) . . . . . . . . . . . . . . . . . . . . . . . . . 170 9.14 Configuring the custom ACPI table . . . . . . . . . . . . . . . . . . . . . . . . . 170 9.15 Fine-tuning timers and time are physically present on your host. – USB device support. VirtualBox implements a virtual USB controller and allows you to connect arbitrary USB devices to your virtual machines without having to install0 码力 | 348 页 | 5.93 MB | 6 月前3Oracle VM VirtualBox 4.3.36 User Manual
8 Advanced display configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 9.8.1 Custom VESA resolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 170 9.8.2 Configuring the maximum OEM strings (type 11) . . . . . . . . . . . . . . . . . . . . . . . . . 178 9.13 Configuring the custom ACPI table . . . . . . . . . . . . . . . . . . . . . . . . . 178 9.14 Fine-tuning timers and time are physically present on your host. – USB device support. VirtualBox implements a virtual USB controller and allows you to connect arbitrary USB devices to your virtual machines without having to install0 码力 | 380 页 | 3.79 MB | 6 月前3Oracle VM VirtualBox 4.1.40 User Manual
7 Advanced display configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 9.7.1 Custom VESA resolutions . . . . . . . . . . . . . . . . . . . . . . . . . . 151 9.7.2 Configuring the maximum are physically present on your host. – USB device support. VirtualBox implements a virtual USB controller and allows you to connect arbitrary USB devices to your virtual machines without having to install cards, virtual serial and parallel ports and an Input/Output Advanced Pro- grammable Interrupt Controller (I/O APIC), which is found in many modern PC sys- tems. This eases cloning of PC images from real0 码力 | 310 页 | 4.87 MB | 6 月前3Operator Pattern 用 Go 扩展 Kubernetes 的最佳实践
域的复杂有状态应用程序。 给出了用 TPR + controller- runtime 早期版本的 sample: etcd operator K8s 1.9 版本发布,CRD进入 beta 阶段并正式取代 TPR; controller-runtime 加入 K8s 社 区并正式发布; 自此,CRD + controller-runtime 逐渐成为开发 operator Application; Operator = CRD + control loop, i.e, Declaretive API + Automation; kubebuilder + controller-runtime + helm Operator Capability Levels Installation of the workload • Operator deploys an the user leveraging the status block of the Custom Resource Configuration of the workload • Operator provides configuration via the spec section of the Custom Resource • Operator reconciles configuration0 码力 | 21 页 | 3.06 MB | 9 月前302 TiDB Operator 架构与实现 付业成
Operator Pattern - Custom Resource & Controller Desired State Actual State Compare & Make Changes 扩展 Kubernetes 的几种方式 PingCAP.com Common ways to extend Kubernetes - Custom Resource - TidbCluster Backup/Restore - Custom Controller - Scheduler Extender (optional) - Admission Webhook (optional) - …Scheduler framework, Aggregated APIServer PingCAP.com Custom Resource PingCAP.com Custom Controller Desired may change or deny it. TiDB Operator 实现 PingCAP.com TiDB Operator Implementation - The tidb-controller-manager - Initialization - Watch objects (Tidb Cluster CR) - Reconcilation - on change of watched0 码力 | 47 页 | 1.73 MB | 6 月前3Best practices for building Kubernetes Operators
llers-overview-b6ec086c1fbControllers ● Controller tracks at least one resource type ● It’s a common approach to manage only one resource type per controller ● Controllers reconciliation loop/control ● Built-in controller examples: ○ ReplicaSert ○ Deployment ○ StatefulSet ○ JobOperators ● Concept was introduced in 2016 by the CoreOS ● Operators are software extensions that use custom resources comparison to validating webhooks ● Allows to compare values/sets/objects from the whole manifest ● Custom error messages https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/280 码力 | 36 页 | 2.19 MB | 5 月前3Oracle VM VirtualBox 4.1.40 Programming Guide and Reference
event queue checks either based on periodical timer events delivered to the main thread, or by using custom platform messages to notify the main thread when events are available. See the VBoxSDL and Qt (VirtualBox) IUSBDevice IConsole::USBDevices[] Collection of USB devices currently attached to the virtual USB controller. Note: The collection is empty if the machine is not running. 5.12.1.9 remoteUSBDevices (read-only) UUID of the host USB device to attach. Attaches a host USB device with the given UUID to the USB controller of the virtual machine. The device needs to be in one of the following states: Busy, Available0 码力 | 306 页 | 1.92 MB | 6 月前3
共 244 条
- 1
- 2
- 3
- 4
- 5
- 6
- 25