text
stringlengths
1
22.8M
```ruby require "rubocops/extend/formula" module RuboCop module Cop module FormulaAudit # This cop checks for various miscellaneous Homebrew coding styles. class Lines < FormulaCop def audit_formula(_node, _class_node, _parent_class_node, _body_node) [:automake, :ant, :autoconf, :emacs, :expat, :libtool, :mysql, :perl, :postgresql, :python, :python3, :rbenv, :ruby].each do |dependency| next unless depends_on?(dependency) problem ":#{dependency} is deprecated. Usage should be \"#{dependency}\"." end { apr: "apr-util", fortran: "gcc", gpg: "gnupg", hg: "mercurial", mpi: "open-mpi", python2: "python" }.each do |requirement, dependency| next unless depends_on?(requirement) problem ":#{requirement} is deprecated. Usage should be \"#{dependency}\"." end problem ":tex is deprecated." if depends_on?(:tex) end end class ClassInheritance < FormulaCop def audit_formula(_node, class_node, parent_class_node, _body_node) begin_pos = start_column(parent_class_node) end_pos = end_column(class_node) return unless begin_pos-end_pos != 3 problem "Use a space in class inheritance: " \ "class #{@formula_name.capitalize} < #{class_name(parent_class_node)}" end end class Comments < FormulaCop def audit_formula(_node, _class_node, _parent_class_node, _body_node) audit_comments do |comment| [ "# PLEASE REMOVE", "# Documentation:", "# if this fails, try separate make/make install steps", "# The URL of the archive", "## Naming --", "# if your formula requires any X11/XQuartz components", "# if your formula fails when building in parallel", "# Remove unrecognized options if warned by configure", '# system "cmake', ].each do |template_comment| next unless comment.include?(template_comment) problem "Please remove default template comments" break end end audit_comments do |comment| # Commented-out depends_on next unless comment =~ /#\s*depends_on\s+(.+)\s*$/ problem "Commented-out dependency #{Regexp.last_match(1)}" end end end class AssertStatements < FormulaCop def audit_formula(_node, _class_node, _parent_class_node, body_node) find_every_method_call_by_name(body_node, :assert).each do |method| if method_called_ever?(method, :include?) && !method_called_ever?(method, :!) problem "Use `assert_match` instead of `assert ...include?`" end if method_called_ever?(method, :exist?) && !method_called_ever?(method, :!) problem "Use `assert_predicate <path_to_file>, :exist?` instead of `#{method.source}`" end if method_called_ever?(method, :exist?) && method_called_ever?(method, :!) problem "Use `refute_predicate <path_to_file>, :exist?` instead of `#{method.source}`" end if method_called_ever?(method, :executable?) && !method_called_ever?(method, :!) problem "Use `assert_predicate <path_to_file>, :executable?` instead of `#{method.source}`" end end end end class OptionDeclarations < FormulaCop def audit_formula(_node, _class_node, _parent_class_node, body_node) if find_method_def(body_node, :options) problem "Use new-style option definitions" end find_instance_method_call(body_node, :build, :without?) do |method| next unless unless_modifier?(method.parent) correct = method.source.gsub("out?", "?") problem "Use if #{correct} instead of unless #{method.source}" end find_instance_method_call(body_node, :build, :with?) do |method| next unless unless_modifier?(method.parent) correct = method.source.gsub("?", "out?") problem "Use if #{correct} instead of unless #{method.source}" end find_instance_method_call(body_node, :build, :with?) do |method| next unless expression_negated?(method) problem "Don't negate 'build.with?': use 'build.without?'" end find_instance_method_call(body_node, :build, :without?) do |method| next unless expression_negated?(method) problem "Don't negate 'build.without?': use 'build.with?'" end find_instance_method_call(body_node, :build, :without?) do |method| arg = parameters(method).first next unless match = regex_match_group(arg, /^-?-?without-(.*)/) problem "Don't duplicate 'without': " \ "Use `build.without? \"#{match[1]}\"` to check for \"--without-#{match[1]}\"" end find_instance_method_call(body_node, :build, :with?) do |method| arg = parameters(method).first next unless match = regex_match_group(arg, /^-?-?with-(.*)/) problem "Don't duplicate 'with': Use `build.with? \"#{match[1]}\"` to check for \"--with-#{match[1]}\"" end find_instance_method_call(body_node, :build, :include?) do |method| arg = parameters(method).first next unless match = regex_match_group(arg, /^with(out)?-(.*)/) problem "Use build.with#{match[1]}? \"#{match[2]}\" instead of " \ "build.include? 'with#{match[1]}-#{match[2]}'" end find_instance_method_call(body_node, :build, :include?) do |method| arg = parameters(method).first next unless match = regex_match_group(arg, /^\-\-(.*)$/) problem "Reference '#{match[1]}' without dashes" end end def unless_modifier?(node) return false unless node.if_type? node.modifier_form? && node.unless? end end class Miscellaneous < FormulaCop def audit_formula(_node, _class_node, _parent_class_node, body_node) # FileUtils is included in Formula # encfs modifies a file with this name, so check for some leading characters find_instance_method_call(body_node, "FileUtils", nil) do |method_node| problem "Don't need 'FileUtils.' before #{method_node.method_name}" end # Check for long inreplace block vars find_all_blocks(body_node, :inreplace) do |node| block_arg = node.arguments.children.first next unless block_arg.source.size > 1 problem "\"inreplace <filenames> do |s|\" is preferred over \"|#{block_arg.source}|\"." end [:rebuild, :version_scheme].each do |method_name| find_method_with_args(body_node, method_name, 0) do problem "'#{method_name} 0' should be removed" end end [:mac?, :linux?].each do |method_name| next if formula_tap != "homebrew-core" || file_path&.include?("linuxbrew") find_instance_method_call(body_node, "OS", method_name) do |check| problem "Don't use #{check.source}; Homebrew/core only supports macOS" end end find_instance_call(body_node, "ARGV") do |method_node| next if [:debug?, :verbose?, :value].index(method_node.method_name) problem "Use build instead of ARGV to check options" end find_instance_method_call(body_node, :man, :+) do |method| next unless match = regex_match_group(parameters(method).first, /^man[1-8]$/) problem "\"#{method.source}\" should be \"#{match[0]}\"" end # Avoid hard-coding compilers find_every_method_call_by_name(body_node, :system).each do |method| param = parameters(method).first if match = regex_match_group(param, %r{^(/usr/bin/)?(gcc|llvm-gcc|clang)\s?}) problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{match[2]}\"" elsif match = regex_match_group(param, %r{^(/usr/bin/)?((g|llvm-g|clang)\+\+)\s?}) problem "Use \"\#{ENV.cxx}\" instead of hard-coding \"#{match[2]}\"" end end find_instance_method_call(body_node, "ENV", :[]=) do |method| param = parameters(method)[1] if match = regex_match_group(param, %r{^(/usr/bin/)?(gcc|llvm-gcc|clang)\s?}) problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{match[2]}\"" elsif match = regex_match_group(param, %r{^(/usr/bin/)?((g|llvm-g|clang)\+\+)\s?}) problem "Use \"\#{ENV.cxx}\" instead of hard-coding \"#{match[2]}\"" end end # Prefer formula path shortcuts in strings formula_path_strings(body_node, :share) do |p| next unless match = regex_match_group(p, %r{^(/(man))/?}) problem "\"\#{share}#{match[1]}\" should be \"\#{#{match[2]}}\"" end formula_path_strings(body_node, :prefix) do |p| if match = regex_match_group(p, %r{^(/share/(info|man))$}) problem "\"\#\{prefix}#{match[1]}\" should be \"\#{#{match[2]}}\"" end if match = regex_match_group(p, %r{^((/share/man/)(man[1-8]))}) problem "\"\#\{prefix}#{match[1]}\" should be \"\#{#{match[3]}}\"" end if match = regex_match_group(p, %r{^(/(bin|include|libexec|lib|sbin|share|Frameworks))}i) problem "\"\#\{prefix}#{match[1]}\" should be \"\#{#{match[2].downcase}}\"" end end find_every_method_call_by_name(body_node, :depends_on).each do |method| key, value = destructure_hash(parameters(method).first) next if key.nil? || value.nil? next unless match = regex_match_group(value, /^(lua|perl|python|ruby)(\d*)/) problem "#{match[1]} modules should be vendored rather than use deprecated #{method.source}`" end find_every_method_call_by_name(body_node, :system).each do |method| next unless match = regex_match_group(parameters(method).first, /^(env|export)(\s+)?/) problem "Use ENV instead of invoking '#{match[1]}' to modify the environment" end find_every_method_call_by_name(body_node, :depends_on).each do |method| param = parameters(method).first dep, option_child_nodes = hash_dep(param) next if dep.nil? || option_child_nodes.empty? option_child_nodes.each do |option| find_strings(option).each do |dependency| next unless match = regex_match_group(dependency, /(with(out)?-\w+|c\+\+11)/) problem "Dependency #{string_content(dep)} should not use option #{match[0]}" end end end find_instance_method_call(body_node, :version, :==) do |method| next unless parameters_passed?(method, "HEAD") problem "Use 'build.head?' instead of inspecting 'version'" end find_instance_method_call(body_node, "ARGV", :include?) do |method| param = parameters(method).first next unless match = regex_match_group(param, /^--(HEAD|devel)/) problem "Use \"if build.#{match[1].downcase}?\" instead" end find_const(body_node, "MACOS_VERSION") do problem "Use MacOS.version instead of MACOS_VERSION" end find_const(body_node, "MACOS_FULL_VERSION") do problem "Use MacOS.full_version instead of MACOS_FULL_VERSION" end conditional_dependencies(body_node) do |node, method, param, dep_node| dep = string_content(dep_node) if node.if? if (method == :include? && regex_match_group(param, /^with-#{dep}$/)) || (method == :with? && regex_match_group(param, /^#{dep}$/)) offending_node(dep_node.parent) problem "Replace #{node.source} with #{dep_node.parent.source} => :optional" end elsif node.unless? if (method == :include? && regex_match_group(param, /^without-#{dep}$/)) || (method == :without? && regex_match_group(param, /^#{dep}$/)) offending_node(dep_node.parent) problem "Replace #{node.source} with #{dep_node.parent.source} => :recommended" end end end find_method_with_args(body_node, :fails_with, :llvm) do problem "'fails_with :llvm' is now a no-op so should be removed" end find_method_with_args(body_node, :needs, :openmp) do problem "'needs :openmp' should be replaced with 'depends_on \"gcc\"'" end find_method_with_args(body_node, :system, /^(otool|install_name_tool|lipo)/) do problem "Use ruby-macho instead of calling #{@offensive_node.source}" end find_every_method_call_by_name(body_node, :system).each do |method_node| # Skip Kibana: npm cache edge (see formula for more details) next if @formula_name =~ /^kibana(@\d[\d.]*)?$/ first_param, second_param = parameters(method_node) next if !node_equals?(first_param, "npm") || !node_equals?(second_param, "install") offending_node(method_node) problem "Use Language::Node for npm install args" unless languageNodeModule?(method_node) end if find_method_def(body_node, :test) problem "Use new-style test definitions (test do)" end find_method_with_args(body_node, :skip_clean, :all) do problem "`skip_clean :all` is deprecated; brew no longer strips symbols. " \ "Pass explicit paths to prevent Homebrew from removing empty folders." end if find_method_def(@processed_source.ast) problem "Define method #{method_name(@offensive_node)} in the class body, not at the top-level" end find_instance_method_call(body_node, :build, :universal?) do next if @formula_name == "wine" problem "macOS has been 64-bit only since 10.6 so build.universal? is deprecated." end find_instance_method_call(body_node, "ENV", :universal_binary) do next if @formula_name == "wine" problem "macOS has been 64-bit only since 10.6 so ENV.universal_binary is deprecated." end find_instance_method_call(body_node, "ENV", :x11) do problem 'Use "depends_on :x11" instead of "ENV.x11"' end find_every_method_call_by_name(body_node, :depends_on).each do |method| next unless method_called?(method, :new) problem "`depends_on` can take requirement classes instead of instances" end os = [:leopard?, :snow_leopard?, :lion?, :mountain_lion?] os.each do |version| find_instance_method_call(body_node, "MacOS", version) do |method| problem "\"#{method.source}\" is deprecated, use a comparison to MacOS.version instead" end end find_instance_method_call(body_node, "Dir", :[]) do |method| next unless parameters(method).size == 1 path = parameters(method).first next unless path.str_type? next unless match = regex_match_group(path, /^[^\*{},]+$/) problem "Dir([\"#{string_content(path)}\"]) is unnecessary; just use \"#{match[0]}\"" end fileutils_methods = Regexp.new( FileUtils.singleton_methods(false) .map { |m| "(?-mix:^" + Regexp.escape(m) + "$)" } .join("|"), ) find_every_method_call_by_name(body_node, :system).each do |method| param = parameters(method).first next unless match = regex_match_group(param, fileutils_methods) problem "Use the `#{match}` Ruby method instead of `#{method.source}`" end end def modifier?(node) return false unless node.if_type? node.modifier_form? end def_node_search :conditional_dependencies, <<~EOS {$(if (send (send nil? :build) ${:include? :with? :without?} $(str _)) (send nil? :depends_on $({str sym} _)) nil?) $(if (send (send nil? :build) ${:include? :with? :without?} $(str _)) nil? (send nil? :depends_on $({str sym} _)))} EOS def_node_matcher :hash_dep, <<~EOS (hash (pair $(str _) $...)) EOS def_node_matcher :destructure_hash, <<~EOS (hash (pair $(str _) $(sym _))) EOS def_node_search :formula_path_strings, <<~EOS {(dstr (begin (send nil? %1)) $(str _ )) (dstr _ (begin (send nil? %1)) $(str _ ))} EOS # Node Pattern search for Language::Node def_node_search :languageNodeModule?, <<~EOS (const (const nil? :Language) :Node) EOS end end end end ```
```javascript import { flushSync } from 'svelte'; import { test } from '../../test'; // path_to_url export default test({ test({ assert, target, component }) { let inputs = target.querySelectorAll('input'); assert.equal(inputs[0].checked, true); assert.equal(inputs[1].checked, false); assert.equal(inputs[2].checked, false); component.moveDown(0); flushSync(); component.moveDown(1); flushSync(); assert.htmlEqual( target.innerHTML, ` <div class="item"> b <label><input name="current" type="radio" value="b"> current</label> </div> <div class="item"> c <label><input name="current" type="radio" value="c"> current</label> </div> <div class="item"> a <label><input name="current" type="radio" value="a"> current</label> </div> ` ); // after shifting order, should still keep the correct radio checked assert.equal(inputs[0].checked, false); assert.equal(inputs[1].checked, false); assert.equal(inputs[2].checked, true); component.current = 'b'; flushSync(); assert.equal(inputs[0].checked, true); assert.equal(inputs[1].checked, false); assert.equal(inputs[2].checked, false); component.moveDown(1); flushSync(); // after shifting order, should still keep the correct radio checked inputs = target.querySelectorAll('input'); assert.equal(inputs[0].checked, true); assert.equal(inputs[1].checked, false); assert.equal(inputs[2].checked, false); } }); ```
```c /* $OpenBSD: vnconfig.c,v 1.13 2023/05/14 18:34:02 krw Exp $ */ /* * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * the Systems Programming Group of the University of Utah Computer * Science Department. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. e */ #include <sys/param.h> /* DEV_BSIZE */ #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/disklabel.h> #include <dev/vndioctl.h> #include <blf.h> #include <err.h> #include <errno.h> #include <fcntl.h> #include <readpassphrase.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <limits.h> #include <util.h> #define DEFAULT_VND "vnd0" #define VND_CONFIG 1 #define VND_UNCONFIG 2 #define VND_GETINFO 3 int verbose = 0; __dead void usage(void); int config(char *, char *, struct disklabel *, char *, size_t); int unconfig(char *); int getinfo(const char *, int *availp); char *get_pkcs_key(char *, char *); int main(int argc, char **argv) { int ch, rv, action, opt_k = 0, opt_K = 0, opt_l = 0, opt_u = 0; char *key = NULL, *rounds = NULL, *saltopt = NULL; char *file, *vnd; size_t keylen = 0; extern char *__progname; struct disklabel *dp = NULL; action = VND_CONFIG; while ((ch = getopt(argc, argv, "kK:lo:S:t:uv")) != -1) { switch (ch) { case 'k': opt_k = 1; break; case 'K': opt_K = 1; rounds = optarg; break; case 'l': opt_l = 1; break; case 'S': saltopt = optarg; break; case 't': dp = getdiskbyname(optarg); if (dp == NULL) errx(1, "unknown disk type: %s", optarg); break; case 'u': opt_u = 1; break; case 'v': verbose = 1; break; default: usage(); /* NOTREACHED */ } } argc -= optind; argv += optind; if (opt_l + opt_u > 1) errx(1, "-l and -u are mutually exclusive options"); if (opt_l) action = VND_GETINFO; else if (opt_u) action = VND_UNCONFIG; if (saltopt && (!opt_K)) errx(1, "-S only makes sense when used with -K"); if (action == VND_CONFIG) { if (argc == 1) { file = argv[0]; vnd = NULL; } else if (argc == 2) { vnd = argv[0]; file = argv[1]; } else usage(); if (opt_k || opt_K) fprintf(stderr, "WARNING: Consider using softraid crypto.\n"); if (opt_k) { if (opt_K) errx(1, "-k and -K are mutually exclusive"); key = getpass("Encryption key: "); if (key == NULL || (keylen = strlen(key)) == 0) errx(1, "Need an encryption key"); } else if (opt_K) { key = get_pkcs_key(rounds, saltopt); keylen = BLF_MAXUTILIZED; } rv = config(file, vnd, dp, key, keylen); } else if (action == VND_UNCONFIG && argc == 1) rv = unconfig(argv[0]); else if (action == VND_GETINFO) rv = getinfo(argc ? argv[0] : NULL, NULL); else usage(); exit(rv); } char * get_pkcs_key(char *arg, char *saltopt) { char passphrase[128] = {'\0'}; char saltbuf[128] = {'\0'}, saltfilebuf[PATH_MAX]; char *key = NULL; char *saltfile; const char *errstr; int rounds; rounds = strtonum(arg, 1000, INT_MAX, &errstr); if (errstr) err(1, "rounds: %s", errstr); if (readpassphrase("Encryption key: ", passphrase, sizeof(passphrase), RPP_REQUIRE_TTY) == NULL) errx(1, "Unable to read passphrase"); if (saltopt) saltfile = saltopt; else { printf("Salt file: "); fflush(stdout); saltfile = fgets(saltfilebuf, sizeof(saltfilebuf), stdin); if (saltfile) saltfile[strcspn(saltfile, "\n")] = '\0'; } if (!saltfile || saltfile[0] == '\0') warnx("Skipping salt file, insecure"); else { int fd; fd = open(saltfile, O_RDONLY); if (fd == -1) { int *s; fprintf(stderr, "Salt file not found, attempting to " "create one\n"); fd = open(saltfile, O_RDWR|O_CREAT|O_EXCL, 0600); if (fd == -1) err(1, "Unable to create salt file: '%s'", saltfile); for (s = (int *)saltbuf; s < (int *)(saltbuf + sizeof(saltbuf)); s++) *s = arc4random(); if (write(fd, saltbuf, sizeof(saltbuf)) != sizeof(saltbuf)) err(1, "Unable to write salt file: '%s'", saltfile); fprintf(stderr, "Salt file created as '%s'\n", saltfile); } else { if (read(fd, saltbuf, sizeof(saltbuf)) != sizeof(saltbuf)) err(1, "Unable to read salt file: '%s'", saltfile); } close(fd); } if ((key = calloc(1, BLF_MAXUTILIZED)) == NULL) err(1, NULL); if (pkcs5_pbkdf2(passphrase, sizeof(passphrase), saltbuf, sizeof (saltbuf), key, BLF_MAXUTILIZED, rounds)) errx(1, "pkcs5_pbkdf2 failed"); explicit_bzero(passphrase, sizeof(passphrase)); return (key); } int getinfo(const char *vname, int *availp) { int vd, print_all = 0; struct vnd_user vnu; if (vname == NULL) { vname = DEFAULT_VND; print_all = 1; } vd = opendev(vname, O_RDONLY, OPENDEV_PART, NULL); if (vd == -1) err(1, "open: %s", vname); vnu.vnu_unit = -1; query: if (ioctl(vd, VNDIOCGET, &vnu) == -1) { if (print_all && errno == ENXIO && vnu.vnu_unit > 0) goto end; err(1, "ioctl: %s", vname); } if (availp) { if (!vnu.vnu_ino) { *availp = vnu.vnu_unit; close(vd); return (0); } vnu.vnu_unit++; goto query; } fprintf(stdout, "vnd%d: ", vnu.vnu_unit); if (!vnu.vnu_ino) fprintf(stdout, "not in use\n"); else fprintf(stdout, "covering %s on %s, inode %llu\n", vnu.vnu_file, devname(vnu.vnu_dev, S_IFBLK), (unsigned long long)vnu.vnu_ino); if (print_all) { vnu.vnu_unit++; goto query; } end: close(vd); if (availp) return (-1); return (0); } int config(char *file, char *dev, struct disklabel *dp, char *key, size_t keylen) { struct vnd_ioctl vndio; char *rdev; int fd, rv = -1; int unit, print_dev = 0; if (dev == NULL) { if (getinfo(NULL, &unit) == -1) err(1, "no devices available"); print_dev = 1; asprintf(&dev, "vnd%d", unit); } if ((fd = opendev(dev, O_RDONLY, OPENDEV_PART, &rdev)) == -1) { err(4, "%s", rdev); goto out; } memset(&vndio, 0, sizeof vndio); vndio.vnd_file = file; vndio.vnd_type = (dp && dp->d_type) ? dp->d_type : DTYPE_VND; vndio.vnd_secsize = (dp && dp->d_secsize) ? dp->d_secsize : DEV_BSIZE; vndio.vnd_nsectors = (dp && dp->d_nsectors) ? dp->d_nsectors : 100; vndio.vnd_ntracks = (dp && dp->d_ntracks) ? dp->d_ntracks : 1; vndio.vnd_key = (u_char *)key; vndio.vnd_keylen = keylen; /* * Configure the device */ rv = ioctl(fd, VNDIOCSET, &vndio); if (rv) warn("VNDIOCSET"); else { if (print_dev) printf("%s\n", dev); if (verbose) fprintf(stderr, "%s: %llu bytes on %s\n", dev, vndio.vnd_size, file); } close(fd); fflush(stdout); out: if (key) explicit_bzero(key, keylen); explicit_bzero(&vndio.vnd_keylen, sizeof vndio.vnd_keylen); return (rv == -1); } int unconfig(char *vnd) { struct vnd_ioctl vndio; int fd, rv = -1; char *rdev; if ((fd = opendev(vnd, O_RDONLY, OPENDEV_PART, &rdev)) == -1) err(4, "%s", rdev); memset(&vndio, 0, sizeof vndio); vndio.vnd_file = vnd; /* * Clear (un-configure) the device */ rv = ioctl(fd, VNDIOCCLR, &vndio); if (rv) warn("VNDIOCCLR"); else if (verbose) fprintf(stderr, "%s: cleared\n", vnd); close(fd); fflush(stdout); return (rv == -1); } __dead void usage(void) { fprintf(stderr, "usage: vnconfig [-v] [-k | -K rounds [-S saltfile]] " "[-t disktype] [vnd_dev] image\n" " vnconfig -l [vnd_dev]\n" " vnconfig -u [-v] vnd_dev\n"); exit(1); } ```
```python from typing import List import PIL.Image import torch from torch.nn.functional import conv2d from torchvision import tv_tensors from torchvision.transforms import _functional_pil as _FP from torchvision.transforms._functional_tensor import _max_value from torchvision.utils import _log_api_usage_once from ._misc import _num_value_bits, to_dtype_image from ._type_conversion import pil_to_tensor, to_pil_image from ._utils import _get_kernel, _register_kernel_internal def rgb_to_grayscale(inpt: torch.Tensor, num_output_channels: int = 1) -> torch.Tensor: """See :class:`~torchvision.transforms.v2.Grayscale` for details.""" if torch.jit.is_scripting(): return rgb_to_grayscale_image(inpt, num_output_channels=num_output_channels) _log_api_usage_once(rgb_to_grayscale) kernel = _get_kernel(rgb_to_grayscale, type(inpt)) return kernel(inpt, num_output_channels=num_output_channels) # `to_grayscale` actually predates `rgb_to_grayscale` in v1, but only handles PIL images. Since `rgb_to_grayscale` is a # superset in terms of functionality and has the same signature, we alias here to avoid disruption. to_grayscale = rgb_to_grayscale def _rgb_to_grayscale_image( image: torch.Tensor, num_output_channels: int = 1, preserve_dtype: bool = True ) -> torch.Tensor: # TODO: Maybe move the validation that num_output_channels is 1 or 3 to this function instead of callers. if image.shape[-3] == 1 and num_output_channels == 1: return image.clone() if image.shape[-3] == 1 and num_output_channels == 3: s = [1] * len(image.shape) s[-3] = 3 return image.repeat(s) r, g, b = image.unbind(dim=-3) l_img = r.mul(0.2989).add_(g, alpha=0.587).add_(b, alpha=0.114) l_img = l_img.unsqueeze(dim=-3) if preserve_dtype: l_img = l_img.to(image.dtype) if num_output_channels == 3: l_img = l_img.expand(image.shape) return l_img @_register_kernel_internal(rgb_to_grayscale, torch.Tensor) @_register_kernel_internal(rgb_to_grayscale, tv_tensors.Image) def rgb_to_grayscale_image(image: torch.Tensor, num_output_channels: int = 1) -> torch.Tensor: if num_output_channels not in (1, 3): raise ValueError(f"num_output_channels must be 1 or 3, got {num_output_channels}.") return _rgb_to_grayscale_image(image, num_output_channels=num_output_channels, preserve_dtype=True) @_register_kernel_internal(rgb_to_grayscale, PIL.Image.Image) def _rgb_to_grayscale_image_pil(image: PIL.Image.Image, num_output_channels: int = 1) -> PIL.Image.Image: if num_output_channels not in (1, 3): raise ValueError(f"num_output_channels must be 1 or 3, got {num_output_channels}.") return _FP.to_grayscale(image, num_output_channels=num_output_channels) def grayscale_to_rgb(inpt: torch.Tensor) -> torch.Tensor: """See :class:`~torchvision.transforms.v2.GrayscaleToRgb` for details.""" if torch.jit.is_scripting(): return grayscale_to_rgb_image(inpt) _log_api_usage_once(grayscale_to_rgb) kernel = _get_kernel(grayscale_to_rgb, type(inpt)) return kernel(inpt) @_register_kernel_internal(grayscale_to_rgb, torch.Tensor) @_register_kernel_internal(grayscale_to_rgb, tv_tensors.Image) def grayscale_to_rgb_image(image: torch.Tensor) -> torch.Tensor: if image.shape[-3] >= 3: # Image already has RGB channels. We don't need to do anything. return image # rgb_to_grayscale can be used to add channels so we reuse that function. return _rgb_to_grayscale_image(image, num_output_channels=3, preserve_dtype=True) @_register_kernel_internal(grayscale_to_rgb, PIL.Image.Image) def grayscale_to_rgb_image_pil(image: PIL.Image.Image) -> PIL.Image.Image: return image.convert(mode="RGB") def _blend(image1: torch.Tensor, image2: torch.Tensor, ratio: float) -> torch.Tensor: ratio = float(ratio) fp = image1.is_floating_point() bound = _max_value(image1.dtype) output = image1.mul(ratio).add_(image2, alpha=(1.0 - ratio)).clamp_(0, bound) return output if fp else output.to(image1.dtype) def adjust_brightness(inpt: torch.Tensor, brightness_factor: float) -> torch.Tensor: """Adjust brightness.""" if torch.jit.is_scripting(): return adjust_brightness_image(inpt, brightness_factor=brightness_factor) _log_api_usage_once(adjust_brightness) kernel = _get_kernel(adjust_brightness, type(inpt)) return kernel(inpt, brightness_factor=brightness_factor) @_register_kernel_internal(adjust_brightness, torch.Tensor) @_register_kernel_internal(adjust_brightness, tv_tensors.Image) def adjust_brightness_image(image: torch.Tensor, brightness_factor: float) -> torch.Tensor: if brightness_factor < 0: raise ValueError(f"brightness_factor ({brightness_factor}) is not non-negative.") c = image.shape[-3] if c not in [1, 3]: raise TypeError(f"Input image tensor permitted channel values are 1 or 3, but found {c}") fp = image.is_floating_point() bound = _max_value(image.dtype) output = image.mul(brightness_factor).clamp_(0, bound) return output if fp else output.to(image.dtype) @_register_kernel_internal(adjust_brightness, PIL.Image.Image) def _adjust_brightness_image_pil(image: PIL.Image.Image, brightness_factor: float) -> PIL.Image.Image: return _FP.adjust_brightness(image, brightness_factor=brightness_factor) @_register_kernel_internal(adjust_brightness, tv_tensors.Video) def adjust_brightness_video(video: torch.Tensor, brightness_factor: float) -> torch.Tensor: return adjust_brightness_image(video, brightness_factor=brightness_factor) def adjust_saturation(inpt: torch.Tensor, saturation_factor: float) -> torch.Tensor: """Adjust saturation.""" if torch.jit.is_scripting(): return adjust_saturation_image(inpt, saturation_factor=saturation_factor) _log_api_usage_once(adjust_saturation) kernel = _get_kernel(adjust_saturation, type(inpt)) return kernel(inpt, saturation_factor=saturation_factor) @_register_kernel_internal(adjust_saturation, torch.Tensor) @_register_kernel_internal(adjust_saturation, tv_tensors.Image) def adjust_saturation_image(image: torch.Tensor, saturation_factor: float) -> torch.Tensor: if saturation_factor < 0: raise ValueError(f"saturation_factor ({saturation_factor}) is not non-negative.") c = image.shape[-3] if c not in [1, 3]: raise TypeError(f"Input image tensor permitted channel values are 1 or 3, but found {c}") if c == 1: # Match PIL behaviour return image grayscale_image = _rgb_to_grayscale_image(image, num_output_channels=1, preserve_dtype=False) if not image.is_floating_point(): grayscale_image = grayscale_image.floor_() return _blend(image, grayscale_image, saturation_factor) _adjust_saturation_image_pil = _register_kernel_internal(adjust_saturation, PIL.Image.Image)(_FP.adjust_saturation) @_register_kernel_internal(adjust_saturation, tv_tensors.Video) def adjust_saturation_video(video: torch.Tensor, saturation_factor: float) -> torch.Tensor: return adjust_saturation_image(video, saturation_factor=saturation_factor) def adjust_contrast(inpt: torch.Tensor, contrast_factor: float) -> torch.Tensor: """See :class:`~torchvision.transforms.RandomAutocontrast`""" if torch.jit.is_scripting(): return adjust_contrast_image(inpt, contrast_factor=contrast_factor) _log_api_usage_once(adjust_contrast) kernel = _get_kernel(adjust_contrast, type(inpt)) return kernel(inpt, contrast_factor=contrast_factor) @_register_kernel_internal(adjust_contrast, torch.Tensor) @_register_kernel_internal(adjust_contrast, tv_tensors.Image) def adjust_contrast_image(image: torch.Tensor, contrast_factor: float) -> torch.Tensor: if contrast_factor < 0: raise ValueError(f"contrast_factor ({contrast_factor}) is not non-negative.") c = image.shape[-3] if c not in [1, 3]: raise TypeError(f"Input image tensor permitted channel values are 1 or 3, but found {c}") fp = image.is_floating_point() if c == 3: grayscale_image = _rgb_to_grayscale_image(image, num_output_channels=1, preserve_dtype=False) if not fp: grayscale_image = grayscale_image.floor_() else: grayscale_image = image if fp else image.to(torch.float32) mean = torch.mean(grayscale_image, dim=(-3, -2, -1), keepdim=True) return _blend(image, mean, contrast_factor) _adjust_contrast_image_pil = _register_kernel_internal(adjust_contrast, PIL.Image.Image)(_FP.adjust_contrast) @_register_kernel_internal(adjust_contrast, tv_tensors.Video) def adjust_contrast_video(video: torch.Tensor, contrast_factor: float) -> torch.Tensor: return adjust_contrast_image(video, contrast_factor=contrast_factor) def adjust_sharpness(inpt: torch.Tensor, sharpness_factor: float) -> torch.Tensor: """See :class:`~torchvision.transforms.RandomAdjustSharpness`""" if torch.jit.is_scripting(): return adjust_sharpness_image(inpt, sharpness_factor=sharpness_factor) _log_api_usage_once(adjust_sharpness) kernel = _get_kernel(adjust_sharpness, type(inpt)) return kernel(inpt, sharpness_factor=sharpness_factor) @_register_kernel_internal(adjust_sharpness, torch.Tensor) @_register_kernel_internal(adjust_sharpness, tv_tensors.Image) def adjust_sharpness_image(image: torch.Tensor, sharpness_factor: float) -> torch.Tensor: num_channels, height, width = image.shape[-3:] if num_channels not in (1, 3): raise TypeError(f"Input image tensor can have 1 or 3 channels, but found {num_channels}") if sharpness_factor < 0: raise ValueError(f"sharpness_factor ({sharpness_factor}) is not non-negative.") if image.numel() == 0 or height <= 2 or width <= 2: return image bound = _max_value(image.dtype) fp = image.is_floating_point() shape = image.shape if image.ndim > 4: image = image.reshape(-1, num_channels, height, width) needs_unsquash = True else: needs_unsquash = False # The following is a normalized 3x3 kernel with 1s in the edges and a 5 in the middle. kernel_dtype = image.dtype if fp else torch.float32 a, b = 1.0 / 13.0, 5.0 / 13.0 kernel = torch.tensor([[a, a, a], [a, b, a], [a, a, a]], dtype=kernel_dtype, device=image.device) kernel = kernel.expand(num_channels, 1, 3, 3) # We copy and cast at the same time to avoid modifications on the original data output = image.to(dtype=kernel_dtype, copy=True) blurred_degenerate = conv2d(output, kernel, groups=num_channels) if not fp: # it is better to round before cast blurred_degenerate = blurred_degenerate.round_() # Create a view on the underlying output while pointing at the same data. We do this to avoid indexing twice. view = output[..., 1:-1, 1:-1] # We speed up blending by minimizing flops and doing in-place. The 2 blend options are mathematically equivalent: # x+(1-r)*(y-x) = x + (1-r)*y - (1-r)*x = x*r + y*(1-r) view.add_(blurred_degenerate.sub_(view), alpha=(1.0 - sharpness_factor)) # The actual data of output have been modified by the above. We only need to clamp and cast now. output = output.clamp_(0, bound) if not fp: output = output.to(image.dtype) if needs_unsquash: output = output.reshape(shape) return output _adjust_sharpness_image_pil = _register_kernel_internal(adjust_sharpness, PIL.Image.Image)(_FP.adjust_sharpness) @_register_kernel_internal(adjust_sharpness, tv_tensors.Video) def adjust_sharpness_video(video: torch.Tensor, sharpness_factor: float) -> torch.Tensor: return adjust_sharpness_image(video, sharpness_factor=sharpness_factor) def adjust_hue(inpt: torch.Tensor, hue_factor: float) -> torch.Tensor: """Adjust hue""" if torch.jit.is_scripting(): return adjust_hue_image(inpt, hue_factor=hue_factor) _log_api_usage_once(adjust_hue) kernel = _get_kernel(adjust_hue, type(inpt)) return kernel(inpt, hue_factor=hue_factor) def _rgb_to_hsv(image: torch.Tensor) -> torch.Tensor: r, g, _ = image.unbind(dim=-3) # Implementation is based on # path_to_url#L330 minc, maxc = torch.aminmax(image, dim=-3) # The algorithm erases S and H channel where `maxc = minc`. This avoids NaN # from happening in the results, because # + S channel has division by `maxc`, which is zero only if `maxc = minc` # + H channel has division by `(maxc - minc)`. # # Instead of overwriting NaN afterwards, we just prevent it from occurring so # we don't need to deal with it in case we save the NaN in a buffer in # backprop, if it is ever supported, but it doesn't hurt to do so. eqc = maxc == minc channels_range = maxc - minc # Since `eqc => channels_range = 0`, replacing denominator with 1 when `eqc` is fine. ones = torch.ones_like(maxc) s = channels_range / torch.where(eqc, ones, maxc) # Note that `eqc => maxc = minc = r = g = b`. So the following calculation # of `h` would reduce to `bc - gc + 2 + rc - bc + 4 + rc - bc = 6` so it # would not matter what values `rc`, `gc`, and `bc` have here, and thus # replacing denominator with 1 when `eqc` is fine. channels_range_divisor = torch.where(eqc, ones, channels_range).unsqueeze_(dim=-3) rc, gc, bc = ((maxc.unsqueeze(dim=-3) - image) / channels_range_divisor).unbind(dim=-3) mask_maxc_neq_r = maxc != r mask_maxc_eq_g = maxc == g hg = rc.add(2.0).sub_(bc).mul_(mask_maxc_eq_g & mask_maxc_neq_r) hr = bc.sub_(gc).mul_(~mask_maxc_neq_r) hb = gc.add_(4.0).sub_(rc).mul_(mask_maxc_neq_r.logical_and_(mask_maxc_eq_g.logical_not_())) h = hr.add_(hg).add_(hb) h = h.mul_(1.0 / 6.0).add_(1.0).fmod_(1.0) return torch.stack((h, s, maxc), dim=-3) def _hsv_to_rgb(img: torch.Tensor) -> torch.Tensor: h, s, v = img.unbind(dim=-3) h6 = h.mul(6) i = torch.floor(h6) f = h6.sub_(i) i = i.to(dtype=torch.int32) sxf = s * f one_minus_s = 1.0 - s q = (1.0 - sxf).mul_(v).clamp_(0.0, 1.0) t = sxf.add_(one_minus_s).mul_(v).clamp_(0.0, 1.0) p = one_minus_s.mul_(v).clamp_(0.0, 1.0) i.remainder_(6) vpqt = torch.stack((v, p, q, t), dim=-3) # vpqt -> rgb mapping based on i select = torch.tensor([[0, 2, 1, 1, 3, 0], [3, 0, 0, 2, 1, 1], [1, 1, 3, 0, 0, 2]], dtype=torch.long) select = select.to(device=img.device, non_blocking=True) select = select[:, i] if select.ndim > 3: # if input.shape is (B, ..., C, H, W) then # select.shape is (C, B, ..., H, W) # thus we move C axis to get (B, ..., C, H, W) select = select.moveaxis(0, -3) return vpqt.gather(-3, select) @_register_kernel_internal(adjust_hue, torch.Tensor) @_register_kernel_internal(adjust_hue, tv_tensors.Image) def adjust_hue_image(image: torch.Tensor, hue_factor: float) -> torch.Tensor: if not (-0.5 <= hue_factor <= 0.5): raise ValueError(f"hue_factor ({hue_factor}) is not in [-0.5, 0.5].") c = image.shape[-3] if c not in [1, 3]: raise TypeError(f"Input image tensor permitted channel values are 1 or 3, but found {c}") if c == 1: # Match PIL behaviour return image if image.numel() == 0: # exit earlier on empty images return image orig_dtype = image.dtype image = to_dtype_image(image, torch.float32, scale=True) image = _rgb_to_hsv(image) h, s, v = image.unbind(dim=-3) h.add_(hue_factor).remainder_(1.0) image = torch.stack((h, s, v), dim=-3) image_hue_adj = _hsv_to_rgb(image) return to_dtype_image(image_hue_adj, orig_dtype, scale=True) _adjust_hue_image_pil = _register_kernel_internal(adjust_hue, PIL.Image.Image)(_FP.adjust_hue) @_register_kernel_internal(adjust_hue, tv_tensors.Video) def adjust_hue_video(video: torch.Tensor, hue_factor: float) -> torch.Tensor: return adjust_hue_image(video, hue_factor=hue_factor) def adjust_gamma(inpt: torch.Tensor, gamma: float, gain: float = 1) -> torch.Tensor: """Adjust gamma.""" if torch.jit.is_scripting(): return adjust_gamma_image(inpt, gamma=gamma, gain=gain) _log_api_usage_once(adjust_gamma) kernel = _get_kernel(adjust_gamma, type(inpt)) return kernel(inpt, gamma=gamma, gain=gain) @_register_kernel_internal(adjust_gamma, torch.Tensor) @_register_kernel_internal(adjust_gamma, tv_tensors.Image) def adjust_gamma_image(image: torch.Tensor, gamma: float, gain: float = 1.0) -> torch.Tensor: if gamma < 0: raise ValueError("Gamma should be a non-negative real number") # The input image is either assumed to be at [0, 1] scale (if float) or is converted to that scale (if integer). # Since the gamma is non-negative, the output remains at [0, 1] scale. if not torch.is_floating_point(image): output = to_dtype_image(image, torch.float32, scale=True).pow_(gamma) else: output = image.pow(gamma) if gain != 1.0: # The clamp operation is needed only if multiplication is performed. It's only when gain != 1, that the scale # of the output can go beyond [0, 1]. output = output.mul_(gain).clamp_(0.0, 1.0) return to_dtype_image(output, image.dtype, scale=True) _adjust_gamma_image_pil = _register_kernel_internal(adjust_gamma, PIL.Image.Image)(_FP.adjust_gamma) @_register_kernel_internal(adjust_gamma, tv_tensors.Video) def adjust_gamma_video(video: torch.Tensor, gamma: float, gain: float = 1) -> torch.Tensor: return adjust_gamma_image(video, gamma=gamma, gain=gain) def posterize(inpt: torch.Tensor, bits: int) -> torch.Tensor: """See :class:`~torchvision.transforms.v2.RandomPosterize` for details.""" if torch.jit.is_scripting(): return posterize_image(inpt, bits=bits) _log_api_usage_once(posterize) kernel = _get_kernel(posterize, type(inpt)) return kernel(inpt, bits=bits) @_register_kernel_internal(posterize, torch.Tensor) @_register_kernel_internal(posterize, tv_tensors.Image) def posterize_image(image: torch.Tensor, bits: int) -> torch.Tensor: if image.is_floating_point(): levels = 1 << bits return image.mul(levels).floor_().clamp_(0, levels - 1).mul_(1.0 / levels) else: num_value_bits = _num_value_bits(image.dtype) if bits >= num_value_bits: return image mask = ((1 << bits) - 1) << (num_value_bits - bits) return image & mask _posterize_image_pil = _register_kernel_internal(posterize, PIL.Image.Image)(_FP.posterize) @_register_kernel_internal(posterize, tv_tensors.Video) def posterize_video(video: torch.Tensor, bits: int) -> torch.Tensor: return posterize_image(video, bits=bits) def solarize(inpt: torch.Tensor, threshold: float) -> torch.Tensor: """See :class:`~torchvision.transforms.v2.RandomSolarize` for details.""" if torch.jit.is_scripting(): return solarize_image(inpt, threshold=threshold) _log_api_usage_once(solarize) kernel = _get_kernel(solarize, type(inpt)) return kernel(inpt, threshold=threshold) @_register_kernel_internal(solarize, torch.Tensor) @_register_kernel_internal(solarize, tv_tensors.Image) def solarize_image(image: torch.Tensor, threshold: float) -> torch.Tensor: if threshold > _max_value(image.dtype): raise TypeError(f"Threshold should be less or equal the maximum value of the dtype, but got {threshold}") return torch.where(image >= threshold, invert_image(image), image) _solarize_image_pil = _register_kernel_internal(solarize, PIL.Image.Image)(_FP.solarize) @_register_kernel_internal(solarize, tv_tensors.Video) def solarize_video(video: torch.Tensor, threshold: float) -> torch.Tensor: return solarize_image(video, threshold=threshold) def autocontrast(inpt: torch.Tensor) -> torch.Tensor: """See :class:`~torchvision.transforms.v2.RandomAutocontrast` for details.""" if torch.jit.is_scripting(): return autocontrast_image(inpt) _log_api_usage_once(autocontrast) kernel = _get_kernel(autocontrast, type(inpt)) return kernel(inpt) @_register_kernel_internal(autocontrast, torch.Tensor) @_register_kernel_internal(autocontrast, tv_tensors.Image) def autocontrast_image(image: torch.Tensor) -> torch.Tensor: c = image.shape[-3] if c not in [1, 3]: raise TypeError(f"Input image tensor permitted channel values are 1 or 3, but found {c}") if image.numel() == 0: # exit earlier on empty images return image bound = _max_value(image.dtype) fp = image.is_floating_point() float_image = image if fp else image.to(torch.float32) minimum = float_image.amin(dim=(-2, -1), keepdim=True) maximum = float_image.amax(dim=(-2, -1), keepdim=True) eq_idxs = maximum == minimum inv_scale = maximum.sub_(minimum).mul_(1.0 / bound) minimum[eq_idxs] = 0.0 inv_scale[eq_idxs] = 1.0 if fp: diff = float_image.sub(minimum) else: diff = float_image.sub_(minimum) return diff.div_(inv_scale).clamp_(0, bound).to(image.dtype) _autocontrast_image_pil = _register_kernel_internal(autocontrast, PIL.Image.Image)(_FP.autocontrast) @_register_kernel_internal(autocontrast, tv_tensors.Video) def autocontrast_video(video: torch.Tensor) -> torch.Tensor: return autocontrast_image(video) def equalize(inpt: torch.Tensor) -> torch.Tensor: """See :class:`~torchvision.transforms.v2.RandomEqualize` for details.""" if torch.jit.is_scripting(): return equalize_image(inpt) _log_api_usage_once(equalize) kernel = _get_kernel(equalize, type(inpt)) return kernel(inpt) @_register_kernel_internal(equalize, torch.Tensor) @_register_kernel_internal(equalize, tv_tensors.Image) def equalize_image(image: torch.Tensor) -> torch.Tensor: if image.numel() == 0: return image # 1. The algorithm below can easily be extended to support arbitrary integer dtypes. However, the histogram that # would be needed to computed will have at least `torch.iinfo(dtype).max + 1` values. That is perfectly fine for # `torch.int8`, `torch.uint8`, and `torch.int16`, at least questionable for `torch.int32` and completely # unfeasible for `torch.int64`. # 2. Floating point inputs need to be binned for this algorithm. Apart from converting them to an integer dtype, we # could also use PyTorch's builtin histogram functionality. However, that has its own set of issues: in addition # to being slow in general, PyTorch's implementation also doesn't support batches. In total, that makes it slower # and more complicated to implement than a simple conversion and a fast histogram implementation for integers. # Since we need to convert in most cases anyway and out of the acceptable dtypes mentioned in 1. `torch.uint8` is # by far the most common, we choose it as base. output_dtype = image.dtype image = to_dtype_image(image, torch.uint8, scale=True) # The histogram is computed by using the flattened image as index. For example, a pixel value of 127 in the image # corresponds to adding 1 to index 127 in the histogram. batch_shape = image.shape[:-2] flat_image = image.flatten(start_dim=-2).to(torch.long) hist = flat_image.new_zeros(batch_shape + (256,), dtype=torch.int32) hist.scatter_add_(dim=-1, index=flat_image, src=hist.new_ones(1).expand_as(flat_image)) cum_hist = hist.cumsum(dim=-1) # The simplest form of lookup-table (LUT) that also achieves histogram equalization is # `lut = cum_hist / flat_image.shape[-1] * 255` # However, PIL uses a more elaborate scheme: # path_to_url#L368-L385 # `lut = ((cum_hist + num_non_max_pixels // (2 * 255)) // num_non_max_pixels) * 255` # The last non-zero element in the histogram is the first element in the cumulative histogram with the maximum # value. Thus, the "max" in `num_non_max_pixels` does not refer to 255 as the maximum value of uint8 images, but # rather the maximum value in the image, which might be or not be 255. index = cum_hist.argmax(dim=-1) num_non_max_pixels = flat_image.shape[-1] - hist.gather(dim=-1, index=index.unsqueeze_(-1)) # This is performance optimization that saves us one multiplication later. With this, the LUT computation simplifies # to `lut = (cum_hist + step // 2) // step` and thus saving the final multiplication by 255 while keeping the # division count the same. PIL uses the variable name `step` for this, so we keep that for easier comparison. step = num_non_max_pixels.div_(255, rounding_mode="floor") # Although it looks like we could return early if we find `step == 0` like PIL does, that is unfortunately not as # easy due to our support for batched images. We can only return early if `(step == 0).all()` holds. If it doesn't, # we have to go through the computation below anyway. Since `step == 0` is an edge case anyway, it makes no sense to # pay the runtime cost for checking it every time. valid_equalization = step.ne(0).unsqueeze_(-1) # `lut[k]` is computed with `cum_hist[k-1]` with `lut[0] == (step // 2) // step == 0`. Thus, we perform the # computation only for `lut[1:]` with `cum_hist[:-1]` and add `lut[0] == 0` afterwards. cum_hist = cum_hist[..., :-1] ( cum_hist.add_(step // 2) # We need the `clamp_`(min=1) call here to avoid zero division since they fail for integer dtypes. This has no # effect on the returned result of this kernel since images inside the batch with `step == 0` are returned as is # instead of equalized version. .div_(step.clamp_(min=1), rounding_mode="floor") # We need the `clamp_` call here since PILs LUT computation scheme can produce values outside the valid value # range of uint8 images .clamp_(0, 255) ) lut = cum_hist.to(torch.uint8) lut = torch.cat([lut.new_zeros(1).expand(batch_shape + (1,)), lut], dim=-1) equalized_image = lut.gather(dim=-1, index=flat_image).view_as(image) output = torch.where(valid_equalization, equalized_image, image) return to_dtype_image(output, output_dtype, scale=True) _equalize_image_pil = _register_kernel_internal(equalize, PIL.Image.Image)(_FP.equalize) @_register_kernel_internal(equalize, tv_tensors.Video) def equalize_video(video: torch.Tensor) -> torch.Tensor: return equalize_image(video) def invert(inpt: torch.Tensor) -> torch.Tensor: """See :func:`~torchvision.transforms.v2.RandomInvert`.""" if torch.jit.is_scripting(): return invert_image(inpt) _log_api_usage_once(invert) kernel = _get_kernel(invert, type(inpt)) return kernel(inpt) @_register_kernel_internal(invert, torch.Tensor) @_register_kernel_internal(invert, tv_tensors.Image) def invert_image(image: torch.Tensor) -> torch.Tensor: if image.is_floating_point(): return 1.0 - image elif image.dtype == torch.uint8: return image.bitwise_not() else: # signed integer dtypes # We can't use `Tensor.bitwise_not` here, since we want to retain the leading zero bit that encodes the sign return image.bitwise_xor((1 << _num_value_bits(image.dtype)) - 1) _invert_image_pil = _register_kernel_internal(invert, PIL.Image.Image)(_FP.invert) @_register_kernel_internal(invert, tv_tensors.Video) def invert_video(video: torch.Tensor) -> torch.Tensor: return invert_image(video) def permute_channels(inpt: torch.Tensor, permutation: List[int]) -> torch.Tensor: """Permute the channels of the input according to the given permutation. This function supports plain :class:`~torch.Tensor`'s, :class:`PIL.Image.Image`'s, and :class:`torchvision.tv_tensors.Image` and :class:`torchvision.tv_tensors.Video`. Example: >>> rgb_image = torch.rand(3, 256, 256) >>> bgr_image = F.permute_channels(rgb_image, permutation=[2, 1, 0]) Args: permutation (List[int]): Valid permutation of the input channel indices. The index of the element determines the channel index in the input and the value determines the channel index in the output. For example, ``permutation=[2, 0 , 1]`` - takes ``npt[..., 0, :, :]`` and puts it at ``output[..., 2, :, :]``, - takes ``npt[..., 1, :, :]`` and puts it at ``output[..., 0, :, :]``, and - takes ``npt[..., 2, :, :]`` and puts it at ``output[..., 1, :, :]``. Raises: ValueError: If ``len(permutation)`` doesn't match the number of channels in the input. """ if torch.jit.is_scripting(): return permute_channels_image(inpt, permutation=permutation) _log_api_usage_once(permute_channels) kernel = _get_kernel(permute_channels, type(inpt)) return kernel(inpt, permutation=permutation) @_register_kernel_internal(permute_channels, torch.Tensor) @_register_kernel_internal(permute_channels, tv_tensors.Image) def permute_channels_image(image: torch.Tensor, permutation: List[int]) -> torch.Tensor: shape = image.shape num_channels, height, width = shape[-3:] if len(permutation) != num_channels: raise ValueError( f"Length of permutation does not match number of channels: " f"{len(permutation)} != {num_channels}" ) if image.numel() == 0: return image image = image.reshape(-1, num_channels, height, width) image = image[:, permutation, :, :] return image.reshape(shape) @_register_kernel_internal(permute_channels, PIL.Image.Image) def _permute_channels_image_pil(image: PIL.Image.Image, permutation: List[int]) -> PIL.Image.Image: return to_pil_image(permute_channels_image(pil_to_tensor(image), permutation=permutation)) @_register_kernel_internal(permute_channels, tv_tensors.Video) def permute_channels_video(video: torch.Tensor, permutation: List[int]) -> torch.Tensor: return permute_channels_image(video, permutation=permutation) ```
Abdeslam Ouaddou (; born 1 November 1978) is a Moroccan former professional footballer who played as a centre-back or defensive midfielder. He also holds the French nationality. Club career Ouaddou was born in Alnif, Morocco. He started his footballing career quite late, at the age of 21. In the summer of 2001, Ouaddou was signed by newly promoted Premier League club Fulham for £2 million, on a four-year contract. However, Ouaddou did not settle in England and spent the last two years of his contract on loan at Rennes, before joining the French club permanently once his contract expired. In summer 2006, Ouaddou signed for Olympiacos. After disappointing appearances with the team, he was relegated to the bench. On 7 December 2006, he asked Olympiacos to release him free because he felt homesick and had some family problems. The club's directors agreed and Ouaddou will return to France. On 1 January 2007, the opening day of the January transfer window, Ouaddou joined Valenciennes FC on a free transfer. After one season with the club however, he transferred to AS Nancy for a fee of £150,000. He was voted the club's best signing for the 2008–09 campaign. On 30 June 2010, Ouaddou left Nancy after a dispute with the Ligue 1 outfit. He had a deal until 2012 but left after the club decided to sack him for gross misconduct, while the player wanted to cancel his contract. In 2010, he played for Al-Duhail SC in the Qatar Stars League, eventually winning the league championship. It was announced on 8 August 2011, that Qatar SC had signed him for a two-year deal. He commented on the move, stating "I'm more than pleased to have extended my stay in the Qatar Stars League and move to another big club". In 2013, he criticized employment conditions in Qatar, stating "When you work in Qatar you belong to someone. You are not free. You are a slave." In November 2012, he left Qatar SC. On 1 January 2013, he signed a contract with his first professional club AS Nancy to close his career, but two weeks later he announced that he retired from professional football. International career Between 2000 and 2009, Ouaddou made 58 appearances for the Morocco national team scoring three goals. International goals Scores and results list Morocco's goal tally first, score column indicates score after each Ouaddou goal. Honours Fulham UEFA Intertoto Cup: 2002 Morocco Africa Cup of Nations runner-up: 2004 References External links Abdeslam Ouaddou's profile, stats & pics 1978 births Living people People from Errachidia Men's association football defenders Men's association football midfielders Men's association football utility players Moroccan men's footballers French men's footballers Morocco men's international footballers Moroccan expatriate men's footballers 2002 African Cup of Nations players 2004 African Cup of Nations players 2006 Africa Cup of Nations players 2008 Africa Cup of Nations players Valenciennes FC players Olympiacos F.C. players Fulham F.C. players AS Nancy Lorraine players Stade Rennais F.C. players Ligue 1 players Premier League players Super League Greece players Expatriate men's footballers in Greece Expatriate men's footballers in France Expatriate men's footballers in England Expatriate men's footballers in Qatar Moroccan expatriate sportspeople in England Moroccan expatriate sportspeople in France Moroccan expatriate sportspeople in Greece Moroccan expatriate sportspeople in Qatar Footballers at the 2000 Summer Olympics Olympic footballers for Morocco Al-Duhail SC players Qatar Stars League players
```shell Clear the terminal instantly Random password generator `else` statements using the `||` operator Sequential execution using the `;` statement separator Keep useful commands in your shell history with tags ```
Ray Bobrownicki (born 3 March 1984) is an athlete who competed for Scotland in the High Jump at the 2014 Commonwealth Games in Glasgow, placing ninth in the final with a performance of 2.21 metres. His personal best of 2.28 metres, achieved in 2014, ranks him twelfth on the all-time British list. See also Athletics at the 2014 Commonwealth Games – Men's high jump 2014 Commonwealth rankings in athletics References External links Ray Bobrownicki profile at thepowerof10.info Living people 1984 births Scottish male high jumpers Commonwealth Games competitors for Scotland Athletes (track and field) at the 2014 Commonwealth Games
```python # -*- coding: utf-8 -*- # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. import datetime ZERO = datetime.timedelta(0) class UTC(datetime.tzinfo): def utcoffset(self, dt): return ZERO def tzname(self, dt): return "UTC" def dst(self, dt): return ZERO utc = UTC() def timestamp_now(): utc_now = datetime.datetime.now(utc) return utc_now.strftime('%Y-%m-%dT%H:%M:%SZ') # e.g. 2015-05-19T20:32:12Z ```
Chandata is a genus of moths of the family Noctuidae. Species Chandata aglaja (Kishida & Yoshimoto, 1978) Chandata bella (Butler, 1881) Chandata c-nigrum Yoshimoto, 1982 Chandata partita Moore, 1882 Chandata taiwana Yoshimoto, 1982 Chandata tridentata Yoshimoto, 1982 References Chandata at Markku Savela's Lepidoptera and Some Other Life Forms Natural History Museum Lepidoptera genus database Hadeninae
Southern Cross Media Group Limited, doing business as Southern Cross Austereo, is an Australian media company which operates broadcast radio and television stations. It is the largest radio broadcaster in Australia, operating 86 radio stations, and has a reach into every state and territory. The company is headquartered in South Melbourne. It was founded in 2004 as a subsidiary of Macquarie Bank for the purpose of acquiring regional radio stations, before expanding into television broadcasting in 2007 with the acquisition of Southern Cross Broadcasting. It also operates the LISTNR platform in Australia. History 2004–05: RG Capital & DMG Regional Radio acquisitions On 3 June 2004, Macquarie Bank announced it would acquire RG Capital Radio for $173 million, gaining control of 36 radio stations in New South Wales, Queensland, Victoria and Tasmania. The Federal Court of Australia approved the acquisition in August 2004, with the stations to be operated through the company's Regional Media Limited subsidiary, trading as Macquarie Regional RadioWorks. The acquisition was finalised on 1 September 2004. On 3 September 2004, Macquarie Bank announced its acquisition of DMG Radio Australia's regional radio assets. The $193.5 million deal included 57 regional stations, with DMG retaining Hot 91.1 Sunshine Coast and Star 104.5 Gosford alongside its metropolitan assets. This increased Regional Media's reach into South Australia and Western Australia, initially controlling 93 radio stations and becoming the largest commercial radio network in Australia. However, as the Broadcasting Services Act 1992 prevents companies from controlling more than two commercial radio stations in a regional market, Regional Media was required to divest radio stations in Albury, Cairns, Mackay, Rockhampton/Gladstone and Townsville. On 1 September 2005, 2AY Albury was acquired by Ace Radio, while six stations in the remaining five markets were sold to Prime Television. On 17 November 2005 the company was restructured into a triple-stapled structure consisting of an Australian-based private company and trust, and an additional private company based in Bermuda. Macquarie Media Group was in turn publicly listed on the Australian Securities Exchange, but with majority control retained by Macquarie Bank. In December, Macquarie Bank announced an AU$1.19 billion deal to acquire a 40% stake in Taiwanese cable television provider Taiwan Broadband Communications from equity firm The Carlyle Group, 60% of which would be financed by Macquarie Media Group. In March 2008, the company divested its stake to the Macquarie Korea Opportunities Fund in a $400 million deal. 2006–08: American Consolidated Media & Southern Cross acquisitions By 2006, Macquarie Regional RadioWorks was increasingly networking news and programming on its 86 radio stations from a series of hubs in Bendigo, Bunbury, the Gold Coast and Townsville. This was criticised by a number of politicians, including Nationals MPs Paul Neville and Barnaby Joyce. In response, the Minister for Communications Helen Coonan introduced the Broadcasting Services Amendment (Media Ownership) Act 2006, including requiring each commercial radio licence to produce 4.5 hours of 'locally significant' content each business day commencing from 1 January 2008. This was later relaxed to 3 hours for most stations, with exemptions for smaller stations. In November 2006, Macquarie Media Group purchased a 13.8% stake in Southern Cross Broadcasting, acquiring 10 million shares for AU$195 million. On 25 January 2007, the company's interests expanded into the United States, with the acquisition of newspaper publisher American Consolidated Media for US$80 million (AU$102 million). On 3 July 2007, Macquarie Media Group announced a takeover bid of Southern Cross Broadcasting, offering AU$17.41 per share for a total value of $1.35 billion. Under the deal, Macquarie would assume Southern Cross Broadcasting's regional television assets – Southern Cross Television, affiliated with the Seven Network; Southern Cross Ten, affiliated with Network Ten; and Tasmanian Digital Television, a joint-venture with WIN Corporation. Its remaining assets, including metropolitan radio stations, Satellite Music Australia and Southern Star Group, were to be onsold to Fairfax Media for AU$520 million. In return, Macquarie would acquire nine regional radio stations from Fairfax – three in Queensland: 4BU and Hitz FM Bundaberg and River 94.9 Ipswich; and six in South Australia: 5AU and Magic 105.9 Port Augusta, 5CC and Magic 89.9 Port Lincoln, and 5RM and Magic 93.1 Renmark. The Australian Communications & Media Authority gave prior approval to the deal, with the caveat that 12 radio stations currently controlled by Macquarie would be sold pursuant to the Broadcasting Services Act 1992. On 17 October, the Australian Competition & Consumer Commission approved the deal, but ruled that the deal for Fairfax to sell nine radio stations to Macquarie would result in a "substantial lessening of competition". On 5 November, Macquarie Media Group acquired Southern Cross Broadcasting, selling its non-television assets to Fairfax Media the following day. On 12 December, both parties abandoned negotiations for the South Australian and Queensland radio stations. On 14 March 2008, Macquarie divested 18 radio stations for AU$34.5 million. Nine Tasmanian stations were sold to Grant Broadcasters, with four Queensland stations sold to Smart Radio. 4AM Atherton was bought by Coastal Broadcasters Pty Ltd, owners of 4KZ and Kool FM Innisfail, while 3GG Gippsland and 4GC and Hot FM Charters Towers were sold to Resonate Broadcasting, a new entity formed by Austereo executives Guy Dobson and Rex Morris. While only one of Macquarie's two stations in Young, New South Wales were required to be sold, both 2LF and Star FM were sold to Broadcast Operations Group. Following the Southern Cross Broadcasting acquisition, Macquarie's regional radio and television business commenced trading as Macquarie Southern Cross Media. 2009–10: Restructure In August 2009, Macquarie Media Group posted a loss of $84.6 million in 2008-09, compared with a $273 million profit in the previous financial year. Despite lower revenue, the Group's Australian assets delivered a profit of $123.4 million, but ACM significant losses In December 2009, MMG security holders voted in favour of a conversion from a triple-stapled structure to a single ASX-listed company. MMG was renamed Southern Cross Media Group with former RG Capital Radio CEO Rhys Holleran as the Chief Executive Officer. Austereo The company was founded by Paul Thompson, and when commercial FM broadcasting was introduced into Australia it acquired the licence for metropolitan Adelaide, South Australia; SAFM commenced transmission in September 1980. The next station to join the network was FOX FM in Melbourne, Victoria in 1986, eventually to be followed by 2Day FM in Sydney, New South Wales and 4BK in Brisbane, Queensland for which the company was successful in converting to the FM band in 1990. Austereo also purchased AM radio station 6IX in Perth, Western Australia with the intention of converting the station to FM. 6IX, which had been re-launched by Austereo as The Eagle 1080 AM, was consequently sold off after being outbid for either of the two new FM licences by rivals 6KY and 6PM, which Austereo now own. 1995 saw a monopolistic arrangement take place whereby Village Roadshow purchased the Hoyts owned Triple M network, and Triple M in turn merged with Austereo to form a single umbrella company. The merger was part of a single deal that was unpopular due to the fierce rivalry between the two radio networks, and the fact that Village Roadshow and Hoyts were also direct competitors in the film industry. Merger In March 2011, Southern Cross Media launched an A$714 million takeover bid of national radio broadcaster, the Austereo Group. On 6 April 2011 shareholders of the Austereo Group accepted the takeover bid, giving SCM a more than 90% share in the company. Southern Cross Media and Austereo merged in July 2011 to form Southern Cross Austereo. Post-merger 2010s Starting from 7 November 2011, Southern Cross Austereo slowly rolled out 9Gem, 9Go!, 7two, 7mate and One as digital channels across the GTS/BKN areas. On 23 August 2012, Guy Dobson (director of metro radio) was announced as Chief Officer of Content for the Southern Cross Austereo network, working across radio and television. Southern Cross Austereo began broadcasting a datacast channel, TVSN, already carried by Network 10, in December 2012 on LCN 54 in Southern Cross Ten markets, on LCN 64 in Tasmania and on LCN 74 in Darwin. Southern Cross Austereo began broadcasting its own datacast channel, Aspire TV on 21 May 2013 on LCN 56 in Southern Cross Ten markets, on LCN 66 in Tasmania and on LCN 76 in Darwin. On 7 December 2013, Southern Cross Austereo switched GDS/BDN to a feed of NWS Adelaide. In October 2014, Southern Cross Austereo announced it would relaunch SAFM in Adelaide as Hit 107, with a staggered Hit Network-wide relaunch announced in December. On 14 January 2015, the network was relaunched as Today's Hit Network, with the relaunch extending to Canberra in January 2016. Sea FM Hobart was relaunched as Hit100.9 in February, with the remaining network stations adopting the Hit Network branding as part of a national brand consolidation in December. Southern Cross began broadcasting Racing.com on 29 August 2015, the same day the channel was officially launched, in Seven-affiliated markets on LCN 68 in Tasmania, Broken Hill and the Spencer Gulf and on LCN 78 in Darwin. On 29 April 2016, Southern Cross Austereo announced that it had signed a five-year affiliation deal with Nine Entertainment Co., owner of the Nine Network, for almost $500 million, taking the place of WIN Television as the primary regional Nine affiliate. On 1 July 2016, Southern Cross switched its primary affiliation from Network Ten to the Nine Network and Nine's metropolitan branding was introduced across Southern Cross' television assets in Queensland, Southern NSW and Victoria, joining its existing Nine affiliate station in Spencer Gulf, SA and Broken Hill, NSW. Southern Cross' Northern NSW station, NRN, was not part of the deal as the Nine-owned NBN Television already operated in the region. Upon the affiliation change, the channel listing for Southern Cross Austereo's Nine-affiliated stations was reshuffled with Nine on channel 5 and 51, 9HD on channels 50, 9Gem on channel 52 in standard definition, 9Go! on channel 53, 9Life on channel 54 and Aspire TV on channel 56. GDS/BDN Spencer Gulf/Broken Hill remained unchanged with Nine on channel 8, 9Gem on channel 80 and 9Go! on channel 88. As a result TVSN stopped broadcasting in the Nine-affiliated markets and was replaced with a To Be Advised slide until being replaced with Yesshop on 1 August 2016. Due to the need to import and install the required equipment, Southern Cross Austereo originally stated that it would not immediately offer Nine's digital services 9HD and 9Life upon the transition; the broadcaster stated that they planned to begin transmitting them by mid-August—a delay which would have caused the third match of the 2016 State of Origin series on 13 July to not be transmitted in high definition in the affected regions—which includes parts of the New South Wales and Queensland regions who play the series. However, on 24 June 2016, Southern Cross Austereo announced that it had been "working tirelessly to get HD to air as quickly as possible", and 9HD became available from launch day on channel 50. The same approach also prompted 9Life to return early on 17 July 2016. Southern Cross Austereo announced on 25 July 2016 that it would broadcast the New Zealand-based home shopping channel Yesshop as a datacast service, on their stations. The channel became available on 1 August 2016 in Queensland, Southern NSW, ACT and Victoria on LCN 55; Northern NSW, Spencer Gulf and Broken Hill on LCN 54; Tasmania on LCN 64 and Darwin on LCN 74. However, Yesshop's owner (Yes Retail) made the decision to cease trading on 29 September 2016 citing lack of funds to pay wages and the company's current losses of approximately 20 million dollars. Employees were terminated the same day, and the channels were removed on Freeview later that day. In November 2016, Southern Cross Austereo signed a long-term contract with PodcastOne to launch a localised version of the online podcast service, rebranded as PodcastOne Australia. The service launched sometime in early 2017. In December 2016, Southern Cross Austereo lodged a planning application with the ACT Government to demolish the CTC studios, administration and playout facility to make way for a residential development. The proposed studio campus demolition comes just over a year after WIN Television closed its Canberra studios at Kingston, moving its offices to the industrial suburb of Fyshwick. The trend of vast television estates making way for residential developments has been seen in Sydney, Melbourne and Perth. In 2009 however, a planned redevelopment of the original ATV studios at Nunawading in Melbourne was cancelled due to a slump in property prices. In March 2017, Southern Cross Austereo announced that it would be launching a high definition simulcast of its main Seven-affiliated channel, Southern Cross HD in Tasmania on digital channel 60, in time for the first match of the 2017 AFL season later that month. Although SCHD launched in Tasmania on 22 March 2017 (whilst downgrading 7mate to standard definition on digital channel 63), it only began broadcasting Channel 7 programming in native high definition from 19 June 2018. Following months of negotiations, Southern Cross Austereo finalised an agreement on 28 March 2017 to sell their Ten-affiliated Northern NSW station, NRN, to WIN Television for a total of $55 million, with the sale taking effect on 31 May 2017. Due to operational logistics, WIN did not commence broadcasting their identity to the NRN market until 1 September 2017. This sale relieved Southern Cross of their only sole Ten-affiliated station, with their remaining Ten affiliate, SGS/SCN operating in the Spencer Gulf/Broken Hill region where Southern Cross holds monopoly ownership of all three network affiliates. On 17 July 2017, Southern Cross Austereo launched American religious channel SonLife Broadcasting Network (SBN), owned by evangelist Jimmy Swaggart, as a datacast service. The channel is broadcast in regional Queensland, Southern NSW & ACT, and regional Victoria on channel 55 as well as Spencer Gulf in South Australia, and Broken Hill in New South Wales on channel 54. Despite this, SBN never launched in Northern NSW, because NRN was already owned by WIN at the time. The above list is via Southern Cross' 10-affiliated and then Nine-affiliated stations, and in Tasmania on channel 64 and Darwin on channel 74 via Southern Cross' Seven affiliate stations. From 1 July 2018, all local branding was phased out on all of Southern Cross Austereo's Seven-affiliated stations in favour of a generic Seven Network branding. Though news services offered by Southern Cross were also scheduled to be rebranded as Seven News on this date, the rebrand was delayed until further notice, citing concerns from Seven about using their news brand but not under their editorial control. In September 2018, Southern Cross Austereo announced it would transfer its Canberra-based broadcast playout to NPC Media, a joint venture between the Nine and Seven Networks. CTC, via Southern Cross Austereo, would move remaining employees to a leased office facility in Canberra. The changes were expected to be completed by 30 June 2020. On 30 September 2018, Southern Cross Austereo launched 9Life, in Tasmania, via TDT, and in the Spencer Gulf and Broken Hill regions, via GDS/BDN. Southern Cross Austereo launched 7HD in Darwin on 26 November 2018. On 3 December 2018, the Tasmanian station's news bulletin changed its title to Nightly News, followed on 14 January 2019 by GTS/BKN's bulletin. Around the same time, studio production for the Spencer Gulf edition of Nightly News was relocated from Southern Cross' Canberra headquarters to TNT's Hobart studio. Southern Cross Austereo launched a refreshed logo on 1 July 2019. 2020s In March 2020, Southern Cross Austereo launched 7HD, 9HD and 10 HD, in the Spencer Gulf/Broken Hill areas, via the stations GTS/BKN, GDS/BDN, and SGS/SCN, as well as making 7mate, 9Gem, and 10 Bold all SD channels, to accommodate the aforementioned HD channels. This is the list of the changes that happened on 19 March 2020: 7HD launched on LCN 60, 7mate moved to LCN 63 from LCN 60 and became a SD channel, the main Seven channel became available on both LCN 6 and 61, 10 HD became available on LCN 50, 10 Peach moved to LCN 53 from LCN 55, 10 Bold moved to LCN 52 from LCN 50 and became a SD channel, and the main 10 channel became available on both LCN 5 and 51. Southern Cross Austereo's Nine channel changes occurred sometime in late March 2020, here is the list of changes that happened to GDS/BDN in March 2020: 9HD became available on LCN 80, the main Nine channel became available on both LCNs 8 and 81, 9Go! moved to LCN 83 from LCN 88, and 9Gem moved to LCN 82 from LCN 80 and it became a SD channel. In March and April 2020, Southern Cross Austereo outsourced their television play out to NPC Media. On 27 July 2020, Southern Cross Austereo relaunched the Hit Network, adopting a new logo and "pop-based" music format in an attempt to target a 30–54 year old audience. In addition, Hit 105 Brisbane and Hit 107 Adelaide reverted to their heritage brands B105 and SAFM respectively. On 20 August 2020, Southern Cross Austereo announced the network would introduce statewide networked breakfast programs in New South Wales, Queensland and Victoria, replacing 19 local shows. In August 2020, demolition of the entire CTC and Southern Cross Austereo studio site at Watson was completed to make way for a housing development. The demolition marked the end of 46 years as Canberra's home of television and Australia's first colour television station. On 1 December 2020, Southern Cross Austereo switched the affiliation of Mix 94.5 in Perth from the Triple M network to the Hit Network, with Hit92.9 relaunching as 92.9 Triple M. On 18 February 2021, PodcastOne Australia was rebranded as LiSTNR. On 12 March 2021, Nine announced that it would return to WIN Television as its regional affiliate in most markets beginning on 1 July 2021, in a deal that would last at least seven years. This has ended SCA's five-year agreement with the Nine Network. On 25 June 2021, SCA and Network 10 announced a two-year affiliation deal in regional Queensland, Southern NSW and regional Victoria, which introduced 10 Shake into regional areas for the very first time and it broadcasts on Channel 54, as well as Sky News Regional which launched on 1 August 2021 and it broadcasts on Channel 56. On SCA's 10 stations, Aspire TV ceased to broadcast on 31 July 2021, to accommodate Sky News Regional. On 16 August 2022, SCA converted 7two, 7mate, 10 Bold, and 10 Peach, from the MPEG-2 format to the MPEG-4 format in the Tasmania market. SCA extended the affiliation deal with 10 to 31 December 2023, on 27 June 2023. SCA began broadcasting 10's datacast channel, Gecko, on 1 July 2023, on LCN 57, in Southern NSW, the ACT, Regional Victoria, Regional Queensland, Broken Hill, and Spencer Gulf, and on LCN 67 in Tasmania. Proposed acquisition by ARN Media On 18 October 2023, ARN Media alongside private equity firm Anchorage Capital Partners made a non-binding indicative offer to acquire 100% of the fully diluted share capital of the company. This comes after ARN acquired a 14.8% stake in SCA in June. Brands Television Southern Cross Seven, sole affiliates of the Seven Network. These stations primarily brand themselves as "Channel Seven", following the Seven Network's generic branding. Southern Cross Nine, sole affiliates of the Nine Network. These stations primarily brand themselves as "Channel Nine" in the Spencer Gulf and Broken Hill, following the Nine Network's generic branding. Southern Cross 10, sole affiliates of Network 10. These stations brand themselves only as "Channel 10", following the Network 10's generic branding. Radio The format of each station is defined by one of two common formats: Hit Network – plays adult hit music from the 1980s, 1990s, 2000s, 2010s and today targeted at those aged between 25 and 54 years old using various Hit Network brands in metropolitan and regional areas Triple M Network – talkback and rock music format targeted at adults over 39, mainly on the AM and heritage FM stations Agreements were reached between Southern Cross Austereo, DMG and Prime Television to ensure that existing brand names owned by DMG Radio in regional markets could continue to be used by both Southern Cross Austereo and Prime. Programming Radio Southern Cross Austereo produces its own networked programming across both brands, which include: Some of its stations picked up the Continuous Call Team when Broadcast Operations Group could not resolve broadcast rights issues with 2GB and the National Rugby League. The most notable was Triple M Newcastle, who also picked up rights to cover games of the Newcastle Knights. Television news SCA produces regional television news services for its stations affiliated with the Seven Network and Network 10. Full evening news programs air in Tasmania and previously the Spencer Gulf and Broken Hill region with short updates airing in remote Central and Eastern Australia, Darwin, Southern NSW & ACT, Victoria, Queensland and Tasmania. On 3 December 2018, the Tasmanian station's news bulletin changed its title to Nightly News, followed on 14 January 2019 by GTS/BKN's bulletin. Around the same time, studio production for the Spencer Gulf edition of Nightly News was relocated from Southern Cross' Canberra headquarters to TNT's Hobart studio. In 2019, Southern Cross Austereo shifted the Spencer Gulf and Broken Hill bulletin to 7two at 7:00 pm rather than airing on the main channel. In May 2021, SCA reached a content agreement with Sky News Australia, under which it would distribute the new free-to-air Sky News Regional beginning 1 August 2021. The service is a de facto replacement for the Sky News on WIN service that it previously distributed. Following the switch back to Network 10 affiliation on 1 July 2021, Southern Cross returned to producing local news updates on their 10 stations after a five-year absence. The updates carry the 10 News First branding and are produced out of the networks Launceston (QLD updates) and Hobart (Southern NSW and VIC updates) studios. The Southern NSW and Canberra updates are presented by Ruby Cairns, the Regional Queensland updates are presented by Daniel Pizarro, and the Regional Victoria updates are presented by Kasey Wilkins. The updates, which typically don't include any corresponding news footage or soundbites, are researched, produced and presented by a single journalist. Fill-in presenters include Will Boddy, Rebecca Gaitaneris, Philippa Christian and Madeline Kerr. On 13 April 2023, Southern Cross Austereo cancelled the GTS/BKN bulletin, effective immediately. It is believed that some staff were not informed that the program would be aired for the last time that night until after it went to air. It ends over 50 years of news operations for the Spencer Gulf and Broken Hill regions, and leaves viewers with no local television news service. Longtime Tasmania updates presenter Alex Sykes left Southern Cross Austereo on 2 May 2023. Madeline Kerr currently presents the updates for Tasmania. Assets Radio Queensland New South Wales 1. Translators for 2BDR on 90.1 MHz in Omeo and 96.5 MHz in Corryong. There is also a translator for 2AAY in Corryong on 95.7 MHz. 2. Translators on 100.7 MHz (2PQQ) and 102.3 MHz (2ROX) in Port Macquarie. Australian Capital Territory Victoria 1. Re-transmitter at 97.9 MHz FM in Traralgon. Tasmania South Australia Western Australia 1. 6TZ also re-transmitted via 1134 kHz AM in Collie (6CI, now listed by the Australian Communications & Media Authority under 6TZ), and 756 kHz AM in Busselton and the Margaret River region. Television New South Wales and the Australian Capital Territory BDN – Nine Network affiliate, Broken Hill¹ BKN – Seven, Broken Hill¹ CTC – 10 Southern New South Wales/ACT SCN – 10 Broken Hill¹ Northern Territory and Remote Areas of Eastern Australia Central Digital Television (CDT) – 10 Central (jointly owned with Imparja Television Pty Ltd)² DTD – 10 Darwin (jointly owner with the Nine Network)² QQQ – Seven Central Australia TND – Seven Darwin Queensland IDQ – 10 Central Mount Isa (jointly owned with Imparja Television Pty Ltd)² ITQ – Seven Mount Isa TNQ – 10 Queensland South Australia GDS – Nine Network affiliate, Spencer Gulf¹ GTS – Seven, Spencer Gulf¹ SGS – 10, Spencer Gulf¹ Victoria GLV/BCV – 10 Victoria Tasmania TDT – Tasmanian Digital Television (jointly owned with WIN Television)² TNT – Seven Tasmania 1. Southern Cross has a monopoly on commercial television in this market. The services other than GTS and BKN are retransmissions from Adelaide with local advertising. 2. This station was launched as a digital-only service, co-owned by the two existing commercial broadcasters in the market. Digital radio Southern Cross Austereo broadcasts a number of digital only radio stations, including: Santa Radio (seasonal), first launched for Christmas 2020, billed as a partnership between SCA and North Pole communications playing festive songs picked by Santa and his elves Buddha Hits, "pop, electronica and acoustic vibes with a café music feel" Oldskool 80s Hits, up-tempo, sing-along format of mainstream 1980 hits RnB Fridays, hip-hop and RnB Dance Hits, dance tunes Oldskool 90s Hits, pop nostalgia, focused around the 1990s Kids Hits, kids' music and overnight lullabies SoundCloud Radio, up and coming and independent artists, in partnership with SoundCloud Triple M 90s, 1990s rock music Triple M Classic Rock, late 1960s and 1970s Triple M Hard 'N' Heavy, metal and hard rock Triple M Country, country music from the 1990s to now Triple M Soft Rock, soft rock In 2021 Southern Cross Austereo announced it has invested in content discovery company Sonnant, to add metadata to their digital content Internet radio Southern Cross Austereo broadcasts a number of internet radio stations on the LiSTNR platform. The launch of LiSTNR in February 2021 consisted of 15 music stations initially, with plans to add more stations and shows in the future. Podcasts They also own and operate the PodcastOne application and hold the rights to all of its podcasts. Advertising sales As well as advertising sales for all their own assets they were also in charge of this for the Nine owned and operated NBN TV before the advertising sales were sold to WIN and then Nine Entertainment Former owned and operated stations Due to conditions placed upon the takeover of DMG Radio's regional stations in 2005, Macquarie Southern Cross Media had to sell these stations to other parties: To Prime Media Group (with most stations being rebranded as "Zinc"): 4CA, Cairns Sea FM and Mix-FM, Townsville 4MK, Mackay 4RO, Rockhampton 4CC, Rockhampton/Gladstone To Ace Radio: 2AY, Albury-Wodonga Further, due to conditions triggered by the purchase of the assets of Southern Cross Broadcasting, Macquarie Media Group was required to sell further stations to meet further diversity requirements at the time; the transactions to satisfy this being completed on 2008-03-14: To Grant Broadcasters: Launceston, Tasmania: 7LA (1098 kHz AM) Burnie, Tasmania: 7BU "Heart 558" (558 kHz AM), 7SEA "Sea FM" (101.7 MHz FM) Scottsdale, Tasmania: 7SD "Heart 540" (540 kHz AM), 7RGS "Sea FM" (99.7 MHz FM) Devonport, Tasmania: 7AD "Heart 900" (900 kHz AM), 7DDD "Sea FM" (107.7 MHz FM) Queenstown, Tasmania: 7XS "West Coast 7XS" (837 kHz AM), 7AUS "Aus FM" (92.1 MHz FM) To Resonate Broadcasting: Warragul, Victoria: 3GG (531 kHz AM) Charters Towers, Queensland: 4GC (828 kHz AM), 4CHT "Hot FM" (95.9 MHz FM) To Smart Radio/Pinecam Pty Ltd (owners of the 4VL licence in Charleville, Queensland): Emerald, Queensland: 4HI (1143 kHz AM) Kingaroy, Queensland: 4SB "Heart 1071" (1071 kHz AM) Mount Isa, Queensland: 4LM (666 kHz AM) Roma, Queensland: 4ZR (1476 kHz AM) To Broadcast Operations Group: Young, New South Wales: 2LF (1350 kHz AM), 2LFF "Star FM" (93.9 MHz FM) To Coastal Broadcasters Pty Ltd (owners of the 4KZ licence in Innisfail, Queensland): Atherton, Queensland: 4AM (558 kHz AM) Southern Cross Austereo was made to sell 91.9 Sea FM and 92.7 Mix FM on the Sunshine Coast, due to the larger than allowed overlap between the stations' licence area and that of Brisbane. In 2013, the two stations were sold to Eon Broadcasting. Controversies Ownership and control On 16 February 2006, the Australian Communications & Media Authority commenced an investigation into the ownership of radio stations by Elmie Investments, owned by Stuart Simpson. The investigation revealed that Macquarie Regional RadioWorks had funded $9 million of Simpson's $10 million acquisition of five radio stations from AMI Radio. The radio stations in question – EasyMix Ten-71 Bendigo and EasyMix 1467 Mildura in Victoria, 4EL Cairns and 4AA Mackay in Queensland and, in Western Australia, Easy Mix 621 Bunbury – were located in markets where RadioWorks already controlled two commercial radio licences, and in November 2007 the company was found to be in breach of sections 54 and 56 of the Broadcasting Services Act 1992. The stations had been divested from Elmie Investments before the conclusion of the investigation. Kyle & Jackie O child rape victim incident In 2009, 2Day FM were ordered to provide increased protection for children after a 14-year-old girl was attached to a lie detector on the Kyle and Jackie O Show and pressured into discussing her sex life live on air. The radio show host, Kyle Sandilands, encouraged both the girl and her mother to discuss whether she was sexually active, to which the girl responded: "I've already told you the story of this and don't look at me and smile because it's not funny. Oh, okay. I got raped when I was 12 years old." To which Kyle replied: "Right. And is that, is that the only experience you've had?" Summer 30 royal hoax call incident As part of a hoax call to the King Edward VII's Hospital Sister Agnes treating the wife of Prince William for acute morning sickness in the critical first trimester of pregnancy, 2Day DJs – Mike Christian and Mel Greig – purported to be the Queen and the Prince of Wales. An experienced 46-year-old nurse, Jacintha Saldanha, took the call. During the call, she and colleagues were conned into revealing sensitive details regarding the patient's condition. The nurse was found dead the following morning in a suspected suicide at the hospital where she worked. There is some disagreement over the legality of the incident, with the hospital expressing concern that the incident may have broken the law and Rhys Holleran, the chief executive of 2Day FM's parent company Southern Cross Austereo, stating he was confident that was not the case. At a Federal Court hearing it became known that Australian media watchdog Australian Communications & Media Authority (ACMA) had prepared a confidential, preliminary report saying that the Radio Royal hoax 'broke law'. 2Day FM acted illegally by airing the phone call without consent. See also RadioWorks American RadioWorks References External links Southern Cross Austereo Australian radio networks Southern Cross Media Group Companies based in Melbourne Mass media companies established in 2011 Australian companies established in 2011 Companies listed on the Australian Securities Exchange
The Hae Hae Te Moana River is a river in the Canterbury region of New Zealand. It originates in the Four Peaks Range of the Southern Alps, with a North Branch and South Branch merging to the north of Pleasant Valley. The river runs south-east to join the Waihi River near Winchester. The combined river is called the Temuka River, which flows past Temuka to join the Opihi River shortly before it runs into the Canterbury Bight. See also List of rivers of New Zealand References Land Information New Zealand - Search for Place Names Rivers of Canterbury, New Zealand Rivers of New Zealand
```vue <template lang="pug"> .c-profile-fields(v-if="fields") .field(v-for="field of fields") a.link(v-if="field.type === 'link'", :href="field.value", :title="field.label", target="_blank") .mdi.mdi-link-variant(:class="`mdi-${field.network}`") span {{ getLinkLabel(field) }} template(v-else) .label {{ field.label }} .value {{ field.value }} </template> <script> import { mapState } from 'vuex' const NETWORK_LABEL_GENERATORS = { twitter: { regex: /twitter\.com\/(.*?)\/*$/, generateLabel: (match) => `@${match[1]}` }, linkedin: { regex: /linkedin\.com\/in\/(.*?)\/*$/ }, github: { regex: /github\.com\/(.*)/ }, facebook: { regex: /facebook\.com\/(.*)/ }, instagram: { regex: /instagram\.com\/(.*)/ } } export default { props: { user: Object }, data() { return { } }, computed: { ...mapState(['world']), fields() { if (!this.user.profile?.fields) return return this.world?.profile_fields .map(field => ({...field, value: this.user.profile.fields[field.id]})) .filter(field => !!field.value) }, }, methods: { getLinkLabel(field) { const generator = NETWORK_LABEL_GENERATORS[field.network] if (!generator) return field.value const match = field.value.match(generator.regex) if (!match) return field.value return generator.generateLabel?.(match) || match[1] } } } </script> <style lang="stylus"> .c-profile-fields display: flex flex-direction: column .field flex: none display: flex flex-direction: column margin: 4px max-width: 420px .label color: $clr-secondary-text-light font-weight: 500 font-size: 12px .value margin: 2px 0 0 8px a.link display: flex align-items: center .mdi font-size: 24px margin-right: 4px // hack specificity to create fallback icon for things not in mdi :where(.c-profile-fields a.link .mdi)::before content: "\F0339" </style> ```
Azarov (; masculine) or Azarova (; feminine) is a Russian surname. Variants of this surname include Azarin/Azarina (/) and Ozarovsky/Ozarovskaya (/). It is derived from the given name Azary. People with the last name Mykola Azarov (b. 1947), Ukrainian politician, 14th Prime Minister of Ukraine Nadezhda Azarova (b. 1983), Belarusian chess player Sergei Azarov (b. 1983), Belarusian chess player Svitlana Azarova (b. 1976), Ukrainian/Dutch composer of contemporary classical music Tatyana Azarova (b. 1985), Kazakhstani athlete Vasili Azarov, Russian footballer Vladimir Azarov (b. 1994), Russian association football player Yelena Azarova (b. 1973), Russian synchronized swimmer Fictional characters Shurochka Azarova, cavalry maiden in the 1962 Soviet musical Hussar Ballad Nina Azarova, character from Netflix series The OA Toponyms Azarova, a village in Boshinsky Rural Administrative Okrug of Karachevsky District in Bryansk Oblast, Russia; See also Azarovo, several rural localities in Russia References Notes Sources Ю. А. Федосюк (Yu. A. Fedosyuk). "Русские фамилии: популярный этимологический словарь" (Russian Last Names: a Popular Etymological Dictionary). Москва, 2006. Russian-language surnames
Naḥal Sorek (; ), also Soreq, is one of the largest, most important drainage basins in the Judean Hills. It is mentioned in the Book of Judges 16:4 of the Bible as the border between the ancient Philistines and the Tribe of Dan of the ancient Israelites. It is known in Arabic as Wadi es-Sarār, sometimes spelled Surar, and by various names along different segments, such as Wadi Qalunya near Motza, Wadi al-Tahuna, and Nahr Rubin further downstream. Etymology Folk etymology mentioned in the Midrash (Numbers Rabbah 9) states that the sorek is a "fruitless tree" (the word means "empty" in Hebrew), implying a moral lesson and metaphor suggesting that Samson's involvement in his affair with Delilah was eventually "fruitless". Etymology suggests that "sorek" means "special vine" and refers to the grapes and wines grown in the area. In the Bible Nahal Sorek was the place where Delilah lived, and Samson came to meet her for the first time. It was also the place she enticed him to tell her the secret of his strength, and where he was eventually captured by the Philistines: Land property along the river In 1921, lands that bounded Nahal Sorek () which passed to the south of Artuf were designated as "Mara land," meaning, pasture land reserved primarily for the use of the adjoining villages. Road and railway In the 19th century, Nahal Sorek served as an important connection between the two major cities in the area, Jaffa and Jerusalem. Because railways at the time were reliant on water sources, several surveyors who planned the first railway in the Middle East, the Jaffa–Jerusalem line, decided to use Nahal Sorek as the main route for the line. The line was inaugurated in 1892, following Nahal Sorek until its junction with the Valley of Rephaim, after which it follows the Valley of Rephaim into Jerusalem. While the Tel Aviv-to-Jerusalem high-speed railway line is designed to avoid the Nahal Sorek route and shorten the line, the older railway along Nahal Sorek has been refurbished and remains in use. It connects the country's two largest cities and its main international airport, running in a westerly-easterly direction between Tel Aviv, Ben Gurion International Airport, Lod, Ramla, Beit Shemesh and Jerusalem. However, today the rail line mainly serves as a scenic route used by tourists. Several small water reservoirs exist along its route, notably near Tal Shahar and Yesodot. Waterfalls are located on several of its tributaries, including Ayanot Dekalim in Beit Shemesh, Ein Sifla on Nahal HaMe'ara, and others. Nature Reserve The Nahal Sorek Nature Reserve, first declared in 1965, and since expanded, spans over 11000 dunams, from the Avshalom Cave Nature Reserve near Beit Shemesh, to moshav Nes Harim. Desalination plants Near the mouth of the Sorek River are two large seawater desalination plants, Palmachim and Sorek, the latter being, when used at full capacity, the largest of its kind in the world (as of 2013). Gallery See also Nahal Sorek Regional Council, administrative district in central Israel situated along Sorek Valley Soreq Nuclear Research Center, a research and development institute Timnah, Philistine city mentioned in the Bible, identified with Tel Batash in the Sorek Valley Zorah, biblical town in Judah, identified with a site overlooking the Sorek Valley References Hebrew Bible rivers Rivers of Israel Geography of Israel
```shell #!/usr/bin/env bash # Tags: long, no-object-storage # Because parallel parts removal disabled for s3 storage # NOTE: this done as not .sql since we need to Ordinary database # (to account threads in query_log for DROP TABLE query) # and we can do it compatible with parallel run only in .sh # (via $CLICKHOUSE_DATABASE) # Creation of a database with Ordinary engine emits a warning. CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL=fatal CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CUR_DIR"/../shell_config.sh # The number of threads removing data parts should be between 1 and 129. # Because max_parts_cleaning_thread_pool_size is 128 by default $CLICKHOUSE_CLIENT --allow_deprecated_database_ordinary=1 -nm -q "create database ordinary_$CLICKHOUSE_DATABASE engine=Ordinary" # MergeTree $CLICKHOUSE_CLIENT -nm -q """ use ordinary_$CLICKHOUSE_DATABASE; drop table if exists data_01810; create table data_01810 (key Int) Engine=MergeTree() order by key partition by key%100 settings concurrent_part_removal_threshold=99, min_bytes_for_wide_part=0; insert into data_01810 select * from numbers(100); drop table data_01810 settings log_queries=1; system flush logs; -- sometimes the same thread can be used to remove part, due to ThreadPool, -- hence we cannot compare strictly. select throwIf(not(length(thread_ids) between 1 and 129)) from system.query_log where event_date >= yesterday() and current_database = currentDatabase() and query = 'drop table data_01810 settings log_queries=1;' and type = 'QueryFinish' format Null; """ # ReplicatedMergeTree $CLICKHOUSE_CLIENT -nm -q """ use ordinary_$CLICKHOUSE_DATABASE; drop table if exists rep_data_01810; create table rep_data_01810 (key Int) Engine=ReplicatedMergeTree('/clickhouse/tables/$CLICKHOUSE_TEST_ZOOKEEPER_PREFIX/rep_data_01810', '1') order by key partition by key%100 settings concurrent_part_removal_threshold=99, min_bytes_for_wide_part=0; SET insert_keeper_max_retries=1000; SET insert_keeper_retry_max_backoff_ms=10; insert into rep_data_01810 select * from numbers(100); drop table rep_data_01810 settings log_queries=1; system flush logs; -- sometimes the same thread can be used to remove part, due to ThreadPool, -- hence we cannot compare strictly. select throwIf(not(length(thread_ids) between 1 and 129)) from system.query_log where event_date >= yesterday() and current_database = currentDatabase() and query = 'drop table rep_data_01810 settings log_queries=1;' and type = 'QueryFinish' format Null; """ $CLICKHOUSE_CLIENT -nm -q "drop database ordinary_$CLICKHOUSE_DATABASE" ```
Stefano Zamagni (born 4 January 1943) is an Italian economist. Born in Rimini, Zamagni is Professor of Economics at the University of Bologna. Zamagni is also a fellow of the Human Development and Capability Association and President of the Pontifical Academy of Social Sciences. Selected bibliography Books Chapters in books Zamagni, Stefano (2005), “Happiness and individualism: a very difficult union” in L. Bruni e P. Porta (eds.), Economics and Happiness, Oxford, Oxford University Press, 2005, pp. 303–334. Zamagni, Stefano (2006), “The ethical anchoring of Corporate Social responsibility”, in L. Zsolnai (eds.), Interdisciplinary Yearbook of Business Ethics, Vol. I, 2006, pp. 31–51. Journal articles References External links Profile: Stefano Zamagni University of Bologna, Italy Profile: Stefano Zamagni Johns Hopkins University Profile: Stefano Zamagni Bologna Institute for Policy Research, Italy Profile: Stefano Zamagni Pontifical Academy of Social Sciences 1943 births Living people Johns Hopkins University faculty Italian economists Alumni of the University of Oxford Members of the Pontifical Academy of Social Sciences Knights of St. Gregory the Great
```smalltalk using System; using System.IO; using NUnit.Framework; using Xamarin.Tests; using Xamarin.Utils; namespace Xamarin.MacDev.Tasks { [TestFixture ("iPhone")] [TestFixture ("iPhoneSimulator")] public class WatchKit2 : ExtensionTestBase { public WatchKit2 (string platform) : base (platform) { } [Test] public void BasicTest () { Configuration.IgnoreIfIgnoredPlatform (ApplePlatform.WatchOS); Configuration.AssertLegacyXamarinAvailable (); // Investigate whether this test should be ported to .NET BuildExtension ("MyWatchApp2", "MyWatchKit2Extension"); } public override string TargetFrameworkIdentifier { get { return "Xamarin.WatchOS"; } } } } ```
Phenatoma precursor is an extinct species of sea snail, a marine gastropod mollusk in the family Borsoniidae. Description Distribution This extinct marine species was endemic to New Zealand References Powell, Arthur William Baden. The New Zealand Recent and Fossil Mollusca of the Family Turridae: With General Notes on Turrid Nomenclature and Systematics. No. 2. Unity Press limited, printers, 1942. Maxwell, P.A. (2009). Cenozoic Mollusca. pp 232–254 in Gordon, D.P. (ed.) New Zealand inventory of biodiversity. Volume one. Kingdom Animalia: Radiata, Lophotrochozoa, Deuterostomia. Canterbury University Press, Christchurch. precursor Gastropods of New Zealand
The Cass River is a river in the Thumb region of the U.S. state of Michigan. It drains large portions of Sanilac and Tuscola counties and smaller portions of Genesee, Huron, Lapeer, and Saginaw counties. It flows into the Shiawassee River in the Shiawassee National Wildlife Refuge at less than a mile from where the Shiawassee merges with the Tittabawassee River to form the Saginaw River southwest of the city of Saginaw. The Saginaw River is a tributary of Lake Huron. The Cass River flows through or very near Bridgeport, Frankenmuth, Tuscola, Vassar, Caro, and Cass City. The main branch of the Cass River is formed by the confluence of the North and South branches at , just south of Cass City. The Middle Branch joins the South Branch at in Evergreen Township in Sanilac County. The Middle Branch rises in Elmer Township in Sanilac County. The South Branch rises in Flynn Township, Sanilac County near the boundary with Lapeer County. The North Branch rises in the confluence of several drains northeast of Ubly in Huron County. The headwaters of the South Fork of the North Branch are drains in the south of Paris Township in southeast Huron County. The South Fork of the North Branch is formed by the confluence of drains in Minden Township in north central Sanilac County. The South Fork flows into the North Branch at in Greenleaf Township, Michigan in Sanilac County. References Rivers of Michigan Rivers of Huron County, Michigan Rivers of Saginaw County, Michigan Rivers of Sanilac County, Michigan Rivers of Tuscola County, Michigan Tributaries of Lake Huron
```shell Finding file with regexes Extracting `tar` files to a specific directory Preserving permissions and structure with `rsync` Using `touch` to alter files modification time Deleting non-empty directories ```
```c++ /******************************************************************************* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *******************************************************************************/ #include <cmath> #include <fstream> #include <iostream> #include <map> #include <numeric> #include <queue> #include <sstream> #include <stdexcept> #include "deserialize.hpp" namespace graph { using namespace dnnl::graph; using namespace dnnl::impl::graph; void deserialized_attr::load(utils::json::json_reader_t *reader) { reader->begin_object(); std::string key_entry; std::string value_entry; reader->next_object_item(&key_entry); if (key_entry != "type") return; reader->read<std::string>(&type_); if (type_ == "string") { reader->next_object_item(&value_entry); if (value_entry == "value") { reader->read<std::string>(&str_value_); } } else if (type_ == "bool") { reader->next_object_item(&value_entry); if (value_entry == "value") { reader->read<bool>(&bool_value_); } } else if (type_ == "s64") { reader->next_object_item(&value_entry); if (value_entry == "value") { reader->read<int64_t>(&s64_value_); } } else if (type_ == "s64[]") { reader->next_object_item(&value_entry); if (value_entry == "value") { reader->read<std::vector<int64_t>>(&s64_vector_); } } else if (type_ == "f32") { reader->next_object_item(&value_entry); if (value_entry == "value") { reader->read<float>(&f32_value_); } } else if (type_ == "f32[]") { reader->next_object_item(&value_entry); if (value_entry == "value") { reader->read<std::vector<float>>(&f32_vector_); } } reader->next_object_item(&value_entry); } logical_tensor::data_type deserialized_lt::get_data_type() const { if (data_type_ == "f32") { return logical_tensor::data_type::f32; } else if (data_type_ == "f16") { return logical_tensor::data_type::f16; } else if (data_type_ == "s8") { return logical_tensor::data_type::s8; } else if (data_type_ == "u8") { return logical_tensor::data_type::u8; } else if (data_type_ == "bf16") { return logical_tensor::data_type::bf16; } else if (data_type_ == "s32") { return logical_tensor::data_type::s32; } else if (data_type_ == "boolean") { return logical_tensor::data_type::boolean; } else if (data_type_ == "f8_e5m2") { return logical_tensor::data_type::f8_e5m2; } else if (data_type_ == "f8_e4m3") { return logical_tensor::data_type::f8_e4m3; } else { return logical_tensor::data_type::undef; } } logical_tensor::property_type deserialized_lt::get_property_type() const { if (property_type_ == "constant") { return logical_tensor::property_type::constant; } else if (property_type_ == "variable") { return logical_tensor::property_type::variable; } else { return logical_tensor::property_type::undef; } } logical_tensor deserialized_lt::create() const { if (layout_type_ == "any") { return logical_tensor(id_, get_data_type(), shape_, logical_tensor::layout_type::any, get_property_type()); } else { return logical_tensor( id_, get_data_type(), shape_, stride_, get_property_type()); } } void deserialized_lt::load(utils::json::json_reader_t *reader) { utils::json::read_helper_t helper; helper.declare_field("id", &id_); helper.declare_field("dtype", &data_type_); helper.declare_field("shape", &shape_); helper.declare_field("stride", &stride_); helper.declare_field("layout_type", &layout_type_); helper.declare_field("property_type", &property_type_); helper.read_fields(reader); } void deserialized_op::load(utils::json::json_reader_t *reader) { utils::json::read_helper_t helper; helper.declare_field("id", &id_); helper.declare_field("name", &name_); helper.declare_field("kind", &kind_); helper.declare_field("attrs", &attrs_); helper.declare_field("inputs", &in_lts_); helper.declare_field("outputs", &out_lts_); helper.read_fields(reader); } op deserialized_op::create() const { op aop(id_, opstr2kind(kind_), name_); for (auto it = attrs_.begin(); it != attrs_.end(); ++it) { const auto &attr = attrstr2kind(it->first); const auto &attr_value = it->second; const auto &type = attr_value.type_; if (type == "string") { const auto value = attr_value.str_value_; aop.set_attr(attr, value); } else if (type == "bool") { const auto value = attr_value.bool_value_; aop.set_attr(attr, value); } else if (type == "s64") { const auto value = attr_value.s64_value_; aop.set_attr(attr, value); } else if (type == "s64[]") { const auto value = attr_value.s64_vector_; aop.set_attr(attr, value); } else if (type == "f32") { const auto value = attr_value.f32_value_; aop.set_attr(attr, value); } else if (type == "f32[]") { const auto value = attr_value.f32_vector_; aop.set_attr(attr, value); } } for (const auto &lt : in_lts_) { aop.add_input(lt.create()); } for (const auto &lt : out_lts_) { aop.add_output(lt.create()); } return aop; } bool deserialized_op::get_attr_string( std::string &attr, const std::string &attr_name) const { auto it = attrs_.find(attr_name); if (it == attrs_.end()) return false; return attr = it->second.str_value_, true; } bool deserialized_op::get_attr_bool( bool &attr, const std::string &attr_name) const { auto it = attrs_.find(attr_name); if (it == attrs_.end()) return false; return attr = it->second.bool_value_, true; } bool deserialized_op::get_attr_f32( float &attr, const std::string &attr_name) const { auto it = attrs_.find(attr_name); if (it == attrs_.end()) return false; return attr = it->second.f32_value_, true; } bool deserialized_op::get_attr_s64( int64_t &attr, const std::string &attr_name) const { auto it = attrs_.find(attr_name); if (it == attrs_.end()) return false; return attr = it->second.s64_value_, true; } bool deserialized_op::get_attr_f32_vector( std::vector<float> &attr, const std::string &attr_name) const { auto it = attrs_.find(attr_name); if (it == attrs_.end()) return false; return attr = it->second.f32_vector_, true; } bool deserialized_op::get_attr_s64_vector( std::vector<int64_t> &attr, const std::string &attr_name) const { auto it = attrs_.find(attr_name); if (it == attrs_.end()) return false; return attr = it->second.s64_vector_, true; } bool deserialized_op::has_NXC_format() const { std::string data_format; if (get_attr_string(data_format, "data_format")) { return data_format == "NXC"; } else { // these op has default data format nxc, as data_format is optional // attribute, if not found, use default data format: nxc static const std::unordered_set<std::string> op_has_dflt_nxc_attr { "AvgPool", "AvgPoolBackward", "BatchNormForwardTraining", "BatchNormInference", "BatchNormTrainingBackward", "BiasAdd", "BiasAddBackward", "Convolution", "ConvolutionBackwardData", "ConvolutionBackwardWeights", "ConvTranspose", "ConvTransposeBackwardData", "ConvTransposeBackwardWeights", "Interpolate", "InterpolateBackward", "MaxPool", "MaxPoolBackward", "PReLU", "PReLUBackward"}; return op_has_dflt_nxc_attr.find(name_) != op_has_dflt_nxc_attr.end(); } } logical_tensor::dims deserialized_op::get_NCX_shape( size_t idx, bool input) const { auto src_dims = input ? in_lts_.at(idx).shape_ : out_lts_.at(idx).shape_; if (has_NXC_format()) { change_format_to_ncx(src_dims); } return src_dims; } void deserialized_graph::load(const std::string &pass_config_json) { std::ifstream fs(pass_config_json.c_str()); utils::json::json_reader_t read(&fs); utils::json::read_helper_t helper; helper.declare_field("graph", &ops_); helper.declare_field("version", &version_); helper.declare_field("engine_kind", &engine_kind_); helper.declare_field("fpmath_mode", &fpmath_mode_); helper.declare_field("input_ports", &input_ports_); helper.declare_field("output_ports", &output_ports_); helper.read_fields(&read); if (ops_.empty()) { BENCHDNN_PRINT( 0, "Error: Graph %s is empty.\n", pass_config_json.c_str()); SAFE_V(FAIL); } // Original graph int8 cases come with close-to-real-world values of scales. // They are typically f32 random real numbers which doesn't help to validate // correctness due to rounding issues in lower precision data types. // To work around potential rounding, the code below rounds scales from the // case to the nearest pow2 value. E.g. 0.2438485 -> 0.25. // Note: it must be done before `ops` are put into `ops_map`. for (auto &aop : ops_) { if (aop.kind_ != "Dequantize" && aop.kind_ != "Quantize") continue; const auto it_attr_scales = aop.attrs_.find("scales"); const bool has_scales = it_attr_scales != aop.attrs_.end(); if (!has_scales) continue; auto &f32_vector = it_attr_scales->second.f32_vector_; for (size_t i = 0; i < f32_vector.size(); i++) { const int64_t p = static_cast<int64_t>(std::ceil(std::log2(f32_vector[i]))); const float new_scale = p >= 0 ? (1LL << p) : (1.f / (1LL << -p)); f32_vector[i] = new_scale; } } std::map<size_t, size_t> deg; // record indegree for each op std::map<size_t, deserialized_op> ops_map; // op_id -> op for (const auto &aop : ops_) { ops_map[aop.id_] = aop; deg[aop.id_] = 0; for (const auto &lt : aop.in_lts_) { in_lt_2_ops_[lt.id_].push_back(aop); } for (const auto &lt : aop.out_lts_) { out_lt_2_op_[lt.id_] = aop; // collect graph internal and output tensors memory layout std::string mtag = strides2memory_tag(lt.shape_.size(), lt.stride_, false); lt_2_mtag_[lt.id_] = mtag; } } for (const auto &item : in_lt_2_ops_) { // count indegree for each op // do not count an input if it is an external one since it does not // contain an output. if (out_lt_2_op_.find(item.first) != out_lt_2_op_.end()) { for (const auto &aop : item.second) { deg[aop.id_]++; } } } ops_.clear(); for (const auto &item : deg) { if (item.second == 0) { ops_.push_back(ops_map[item.first]); } } for (size_t idx = 0; idx < ops_.size(); idx++) { const auto &op = ops_[idx]; // for each output id of the op, find the ops with the same input id // check the input for (const auto &out : op.out_lts_) { for (const auto &aop : in_lt_2_ops_[out.id_]) { deg[aop.id_]--; if (deg[aop.id_] == 0) { ops_.push_back(ops_map[aop.id_]); } } } } if (ops_map.size() != ops_.size()) { BENCHDNN_PRINT(0, "FAIL: the graph %s is not a DAG.\n", pass_config_json.c_str()); SAFE_V(FAIL); } for (const auto &in_lt : in_lt_2_ops_) { if (out_lt_2_op_.find(in_lt.first) != out_lt_2_op_.end()) continue; const auto &aop = in_lt_2_ops_[in_lt.first][0]; for (const auto &lt : aop.in_lts_) { if (lt.id_ != in_lt.first) continue; graph_tensors_.emplace(in_lt.first, lt.shape_); // collect graph input tensors memory layout std::string mtag = strides2memory_tag(lt.shape_.size(), lt.stride_, false); lt_2_mtag_[lt.id_] = mtag; } } for (const auto &graph_in : graph_tensors_) { if (check_tensor_with_mb(graph_in.first)) { graph_inputs_with_mb_.push_back(graph_in.first); } } // at this very stage, put all graph_tensors_ id to input_ports_ if // even if input_ports_ is not empty for (const auto &item : graph_tensors_) { input_ports_.emplace_back(item.first); } } // Prints the lt in the plain string format: `(id):dt:shape`. std::ostream &operator<<(std::ostream &s, const deserialized_lt &dlt) { s << "(" << dlt.id_ << "):" << dlt.data_type_ << ":" << lt_dims2str(dlt.shape_); return s; } std::string deserialized_lt::get_string() const { std::stringstream ss; ss << *this; return ss.str(); } // Prints the op in the plain string format: // {(id) OpKind} // In: { lt0, lt1, ... } // Out: { lt0, lt1, ... } // Attrs: { Scales: { val0, ... } } // <-- if any available. std::ostream &operator<<(std::ostream &s, const deserialized_op &dop) { s << "{(" << dop.id_ << ") " << dop.kind_ << "}\n"; s << " In: { "; for (size_t i = 0; i < dop.in_lts_.size(); i++) { s << dop.in_lts_[i]; if (i != dop.in_lts_.size() - 1) s << ","; s << " "; } s << "}\n"; s << " Out: { "; for (size_t i = 0; i < dop.out_lts_.size(); i++) { s << dop.out_lts_[i]; if (i != dop.out_lts_.size() - 1) s << ","; s << " "; } s << "}\n"; const auto it_attr_scales = dop.attrs_.find("scales"); const bool has_scales = it_attr_scales != dop.attrs_.end(); if (has_scales) { s << " Attrs: { "; const auto &scales_v = it_attr_scales->second.f32_vector_; const auto size = scales_v.size(); std::string size_str = " (" + std::to_string(size) + ")"; s << "Scales" << (size > 1 ? size_str : "") << ": { "; for (size_t i = 0; i < size; i++) { s << scales_v[i]; if (i != size - 1) s << ","; s << " "; } s << "} "; // Scales s << "}\n"; // Attrs } return s; } std::string deserialized_op::get_string() const { std::stringstream ss; ss << *this; return ss.str(); } std::ostream &operator<<(std::ostream &s, const deserialized_graph &dg) { for (const auto &op : dg.ops_) { s << op; } return s; } std::string deserialized_graph::get_string() const { std::stringstream ss; ss << *this; return ss.str(); } dnnl::graph::graph deserialized_graph::to_graph( dnnl::fpmath_mode fpmath_mode) const { const auto &engine = get_graph_engine(); dnnl::graph::graph g(engine.get_kind(), fpmath_mode); for (const auto &aop : ops_) { try { g.add_op(aop.create()); } catch (const dnnl::error &e) { BENCHDNN_PRINT(0, "Error: Adding op %s failed: %s\n", aop.name_.c_str(), e.message); SAFE_V(FAIL); } } return g; } const deserialized_op &deserialized_graph::get_op(size_t id) const { for (const auto &op : ops_) { if (op.id_ == id) return op; } assert(!"Given id was not found in the deserialized graph."); static deserialized_op dummy; return dummy; } const deserialized_op &deserialized_graph::get_op_by_out_lt( size_t out_lt_id) const { for_(const auto &op : ops_) for (const auto &out_lt : op.out_lts_) { if (out_lt.id_ == out_lt_id) return op; } static deserialized_op dummy; return dummy; } const deserialized_op &deserialized_graph::get_op_by_in_lt( size_t in_lt_id) const { for_(const auto &op : ops_) for (const auto &in_lt : op.in_lts_) { if (in_lt.id_ == in_lt_id) return op; } static deserialized_op dummy; return dummy; } bool deserialized_graph::check_tensor_with_mb(size_t tensor_id) const { if (in_lt_2_ops_.find(tensor_id) == in_lt_2_ops_.end()) return true; for (const auto &aop : in_lt_2_ops_.at(tensor_id)) { // those unsupport op need rewrite dst_shape / weight_shape also if (std::find(unsupport_mb_rewrite_ops_.begin(), unsupport_mb_rewrite_ops_.end(), aop.kind_) != unsupport_mb_rewrite_ops_.end()) { return false; // bwd ops have multiple inputs with mb } else if (std::find(bwd_ops_.begin(), bwd_ops_.end(), aop.kind_) != bwd_ops_.end()) { if (tensor_id == aop.in_lts_[0].id_ || tensor_id == aop.in_lts_[1].id_) { check_tensor_with_mb(aop.out_lts_[0].id_); // deal with LayerNormBackward } else if (aop.kind_ == "LayerNormBackward" && ((tensor_id == aop.in_lts_[2].id_ && aop.in_lts_[2].shape_[0] == aop.in_lts_[0].shape_[0]) || (tensor_id == aop.in_lts_[3].id_ && aop.in_lts_[3].shape_[0] == aop.in_lts_[0].shape_[0]))) { check_tensor_with_mb(aop.out_lts_[0].id_); } else { return false; } // binary ops need consider rank of 2 inputs } else if (std::find(binary_ops_.begin(), binary_ops_.end(), aop.kind_) != binary_ops_.end()) { size_t max_rank_id = aop.in_lts_[0].shape_.size() >= aop.in_lts_[1].shape_.size() ? aop.in_lts_[0].id_ : aop.in_lts_[1].id_; if ((aop.in_lts_[0].shape_.size() == aop.in_lts_[1].shape_.size() && aop.in_lts_[1].shape_[0] != 1) || tensor_id == max_rank_id) { check_tensor_with_mb(aop.out_lts_[0].id_); } else { return false; } // prelu input1 may has same shape with input0 } else if (aop.kind_ == "PReLU" && tensor_id == aop.in_lts_[1].id_) { if (aop.in_lts_[0].shape_.size() == aop.in_lts_[1].shape_.size()) { check_tensor_with_mb(aop.out_lts_[0].id_); } else { return false; } // apply mb for all inputs of concat } else if (aop.kind_ != "Concat" && tensor_id != aop.in_lts_[0].id_) { return false; // check consumer ops recursively } else if (aop.kind_ == "End") { return true; } else { return check_tensor_with_mb(aop.out_lts_[0].id_); } } return true; } } // namespace graph ```
```javascript (function ($) { $.extend($.summernote.lang, { 'ru-RU': { font: { bold: '', italic: '', underline: '', clear: ' ', height: ' ', name: '', strikethrough: '', subscript: ' ', superscript: ' ', size: ' ' }, image: { image: '', insert: ' ', resizeFull: ' ', resizeHalf: ' 50%', resizeQuarter: ' 25%', floatLeft: ' ', floatRight: ' ', floatNone: ' -', shapeRounded: ': ', shapeCircle: ': ', shapeThumbnail: ': ', shapeNone: ': ', dragImageHere: ' ', dropImage: ' ', selectFromFiles: ' ', url: 'URL ', remove: ' ' }, video: { video: '', videoLink: ' ', insert: ' ', url: 'URL ', providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion Youku)' }, link: { link: '', insert: ' ', unlink: ' ', edit: '', textToDisplay: ' ', url: 'URL ', openInNewWindow: ' ' }, table: { table: '' }, hr: { insert: ' ' }, style: { style: '', normal: '', blockquote: '', pre: '', h1: ' 1', h2: ' 2', h3: ' 3', h4: ' 4', h5: ' 5', h6: ' 6' }, lists: { unordered: ' ', ordered: ' ' }, options: { help: '', fullscreen: ' ', codeview: ' ' }, paragraph: { paragraph: '', outdent: ' ', indent: ' ', left: ' ', center: ' ', right: ' ', justify: ' ' }, color: { recent: ' ', more: ' ', background: ' ', foreground: ' ', transparent: '', setTransparent: ' ', reset: '', resetToDefault: ' ' }, shortcut: { shortcuts: ' ', close: '', textFormatting: ' ', action: '', paragraphFormatting: ' ', documentStyle: ' ', extraKeys: ' ' }, history: { undo: '', redo: '' } } }); })(jQuery); ```
Finland participated at the 2018 Summer Youth Olympics in Buenos Aires, Argentina from 6 October to 18 October 2018. Athletics Boys Track & road events Field events Girls Track & road events Field events Diving Girls Team Golf Individual Team Gymnastics Artistic Finland qualified one gymnast based on its performance at the 2018 European Junior Championship. Individual Qualification Individual Finals Rhythmic Finland qualified one rhythmic gymnast based on its performance at the European qualification event. Girls' rhythmic individual all-around – 1 quota Multidiscipline Judo Individual Team Shooting Finland qualified one sport shooter based on its performance at the 2017 European Championships. Individual Team Swimming Boyss Girls Mixed Table tennis Singles Team References 2018 in Finnish sport Nations at the 2018 Summer Youth Olympics Finland at the Youth Olympics
Khon Kaen railway station is a railway station located in Nai Mueang Subdistrict, Khon Kaen City, Khon Kaen. It is a class 1 railway station located from Bangkok railway station. The station opened on April 1, 1933, as part of the Northeastern Line Nakhon Ratchasima–Khon Kaen section. On June 24, 1941, the line extended to Udon Thani. The station was rebuilt as the first elevated station of Northeastern region in 2019, with the Thanon Chira Junction–Khon Kaen double-track railway project. Train services As of November 2021, 6 trains serve Khon Kaen railway station. Outbound Inbound Gallery References Railway stations in Thailand Railway stations opened in 1934 1934 establishments in Siam Railway stations in Thailand opened in the 1930s
Kudunuru is a small village in Cherla mandal of Khammam district in Andhra Pradesh. The Godavari river is very near to the village. References Villages in Khammam district
```c++ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. path_to_url #include "xfa/fxfa/cxfa_ffexclgroup.h" #include "xfa/fxfa/cxfa_ffapp.h" #include "xfa/fxfa/cxfa_ffdoc.h" #include "xfa/fxfa/cxfa_ffpageview.h" #include "xfa/fxfa/cxfa_ffwidget.h" CXFA_FFExclGroup::CXFA_FFExclGroup(CXFA_Node* pNode) : CXFA_FFWidget(pNode) {} CXFA_FFExclGroup::~CXFA_FFExclGroup() {} void CXFA_FFExclGroup::RenderWidget(CXFA_Graphics* pGS, const CFX_Matrix& matrix, uint32_t dwStatus) { if (!IsMatchVisibleStatus(dwStatus)) return; CFX_Matrix mtRotate = GetRotateMatrix(); mtRotate.Concat(matrix); CXFA_FFWidget::RenderWidget(pGS, mtRotate, dwStatus); } ```
The Devil's Punch Bowl is a visitor attraction and biological Site of Special Scientific Interest situated just to the east of the village of Hindhead in the English county of Surrey. It is part of the Wealden Heaths Phase II Special Protection Area. The Punch Bowl is a large natural amphitheatre and is the source of many stories about the area. The London to Portsmouth road (the A3) skirted the rim of the site before the Hindhead Tunnel was built in 2011. The land is now owned and maintained by the National Trust as part of the "Hindhead Commons and the Devil's Punch Bowl" property. The highest point of the rim of the bowl is Gibbet Hill, which is above sea level and commands a panoramic view that includes, on a clear day, the skyline of London some away. The Devil's Punch Bowl was featured on the 2005 TV programme Seven Natural Wonders as one of the wonders of the South. Etymology The name Devil's Punch Bowl dates from at least 1768, the year that John Rocque's map of the area was published. This was 18 years before the murder of the unknown sailor on Gibbet Hill, so this event was clearly not the origin of the name. Prior to 1768, it was marked as "ye Bottom" on a map by John Ogilby dated 1675. The northern end of the Bowl is known as Highcombe Bottom which exists in different variants: Hackombe Bottom, Hacham Bottom, and Hackham Bottom. Natural history The soil in this part of Surrey has two layers — an upper layer of sandstone, with clay beneath. This deep depression is believed to be the result of erosion caused by spring water beneath the sandstone, causing the upper level to collapse. With its steep sides, the Devil's Punch Bowl has become a natural nature reserve, filled with heathland, streams and woodland. The site has abundant wildlife. Most woodland species can be seen easily - including lesser spotted woodpecker and common redstart. It has been known for the wood warbler, a rare summer visitor, but the last documented sighting was in 2009. Local legends Local legend has colourful theories as to its creation. According to one story, the Devil became so irritated by all the churches being built in Sussex during the Middle Ages that he decided to dig a channel from the English Channel through the South Downs and flood the area. As he began digging, he threw up huge lumps of earth, each of which became a local landmark — such as Chanctonbury Ring, Cissbury Ring and Mount Caburn. He got as far as the village of Poynings (an area known as the Devil's Dyke) when he was disturbed by a cock crowing. (One version of this story claims that it was the prayers of St Dunstan that made all the local cocks crow earlier than usual.) The devil assumed that dawn was about to break and leapt into Surrey, creating the Devil's Punch Bowl where he landed. Another story goes that, in his spare time, he hurled lumps of earth at the god Thor to annoy him. The hollow out of which he scooped the earth became the Punch Bowl. The local village of Thursley means Thor's place. An alternative version of this story says that Thor threw the earth at the Devil, who was annoying Thor by jumping across the Devil's Jumps. Development and protected status The beauty of the area and the diversity of nature it attracts that has gained the Devil's Punch Bowl the title of a Site of Special Scientific Interest. This status has recently helped save the Devil's Punch Bowl from above-ground redevelopment of the A3, which was needed to relieve traffic congestion in the area, as this section of the A3 was single-carriageway. The National Trust co-operated with developers Balfour Beatty who designed the twin-bore Hindhead Tunnel, running underneath the surrounding area. The tunnel preserves not only the area from the road widening originally proposed but also removes the heavy traffic congestion which previously affected this section of the A3 in peak hours. The parking and cafe are provided by the National Trust. The old A3 road, apart from a small stub to the National Trust cafe, and small private lane to the site of the youth hostel, has been removed and the land reinstated. The Hindhead youth hostel, run by the Youth Hostel Association, used to be located inside the bowl but closed in 2015. In fiction Punch Bowl Farm, at the northern end of the Devil's Punch Bowl, was the home of children's novelist Monica Edwards from 1947 until 1998. In her books she renamed the farm Punchbowl Farm. In Charles Dickens' novel Nicholas Nickleby, Nicholas and Smike visit the Devil's Punch Bowl on their journey to Portsmouth. The third novel in the Horatio Hornblower series, Flying Colours by C.S. Forester, makes a one-line reference to the Devil's Punch Bowl in chapter eighteen as Hornblower is returning to London: "Even the marvellous beauty of the Devil's Punch Bowl was lost on Hornblower as they drove past it." The "Devil's Punch-Bowl in Surrey" is briefly mentioned in The Shining Pyramid, a short story by Arthur Machen, and in "The Manhood of Edward Robinson", the fifth story in Agatha Christie's The Listerdale Mystery and Other Stories. The area is the setting for Sabine Baring-Gould's novel The Broom-squire. Legacy Project A lottery award from the Heritage Lottery Fund was made in 2012 for a project with young people from schools in the area, celebrating the landscape. Several sculptures marked the completion in early 2013 and a carving from a 3-tonne block of Portland stone by Jon Edgar now sits on the spine of the former A3 near the visitor centre. See also Cheesefoot Head Devil's Dyke, Sussex Devil's Jumps, Churt Hindhead Tunnel List of Sites of Special Scientific Interest in Surrey River Lyd, Devon Lydford Gorge, Devil's Cauldron References External links Hindhead Commons and the Devil's Punch Bowl A3 Hindhead Tunnel — Mott MacDonald Project Page Highways Agency — A3 Hindhead Improvement National Trust properties in Surrey Geography of Surrey Parks and open spaces in Surrey Sites of Special Scientific Interest in Surrey Surrey folklore Special Protection Areas in England
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="path_to_url" xmlns:activiti="path_to_url" targetNamespace="Examples"> <signal id="shipOrderSignal" name="alert" /> <process id="signalProcess"> <startEvent id="theStart" /> <sequenceFlow id="flow1" sourceRef="theStart" targetRef="fork" /> <parallelGateway id="fork" /> <sequenceFlow sourceRef="fork" targetRef="receivePayment" /> <sequenceFlow sourceRef="fork" targetRef="shipOrder" /> <receiveTask id="receivePayment" name="Receive Payment" /> <sequenceFlow sourceRef="receivePayment" targetRef="join" /> <intermediateCatchEvent id="shipOrder" name="On Alert"> <!-- signal event definition --> <signalEventDefinition signalRef="shipOrderSignal" /> </intermediateCatchEvent> <sequenceFlow sourceRef="shipOrder" targetRef="join" /> <parallelGateway id="join" /> <sequenceFlow sourceRef="join" targetRef="archiveOrder" /> <userTask id="archiveOrder" name="Archive Order" /> <sequenceFlow sourceRef="archiveOrder" targetRef="theEnd" /> <endEvent id="theEnd" /> </process> </definitions> ```
The Hillman Imp is a small economy car that was made by the Rootes Group and its successor Chrysler Europe from 1963 until 1976. Revealed on 3 May 1963, after much advance publicity, it was the first British mass-produced car with the engine block and cylinder head cast in aluminium. Being a direct competitor to the BMC's Mini, it used a space-saving rear-engine, rear-wheel-drive layout to allow as much luggage and passenger capacity as possible in both the rear and the front of the car. It used a unique opening rear hatch to allow luggage to be put into the back seat rest. It was the first mass-produced British car with the engine in the back and the first to use a diaphragm spring clutch. The baulk-ring synchromesh unit for the transaxle compensated for the speeds of gear and shaft before engagement, from which the Mini had suffered during its early production years. It incorporated many design features which were uncommon. Among them were a folding rear bench seat, automatic choke which was rare on compact cars outside the United States until the 1970s, and gauges for temperature, voltage and oil pressure which have been largely omitted since the 1950s in favour of emergency lights. This unorthodox small/light car was designed for the Rootes Group by Michael Parkes (who later became a Formula One driver) and Tim Fry. It was manufactured at the purpose-built Linwood plant in Scotland. As well as the Hillman marque, there was a series of variations, including an estate car (the Husky), a van and a coupé. Between August 12 and 14, 1964, a Sunbeam Imp sports sedan (ZT-86-20) completed the First American Rodding Magazine sanctioned endurance run and broke a world record in the process, previously set by Erwin George “Cannonball” Baker in 1933, driving from New York City, to Los Angeles, California, covering 3,011 miles in 48 hours, 9 minutes, 54 seconds at an average speed of 63.7 mph. The Imp gained a reputation as a successful rally car when Rosemary Smith won the Tulip Rally in 1965. That led the Rootes Group to produce a special rally conversion of the Imp under both the Hillman and Singer marques, known as the Imp Rallye. In 1966, after winning the Coupe des Dames, Smith was disqualified under a controversial ruling regarding the headlamps of her Imp. The Imp was also successful in touring car racing when Bill McGovern won the British Saloon Car Championship in 1970, 1971 and 1972. Considered ahead of its time, the Imp nevertheless suffered from reliability problems, which harmed its reputation and led to the Rootes Group being taken over by Chrysler Europe in 1967. The Imp continued in production until 1976, selling just under half a million units in 13 years. Design and development Known internally within the Rootes Groups as the APEX project, the Imp came about because of the fuel shortage caused by the Suez Crisis in 1956. Petrol was rationed in the UK, sales of the heavy cars for which Rootes was known had dramatically slumped, and there was a huge market for small economical cars with low fuel usage. The BMC's Mini had already taken advantage of the opportunity, with production starting in 1959. Although the project officially began in 1955, the market for small cars was soon recognised and it was evident that the project would evolve into Rootes' first small, economical car. Seeing an opportunity, Mike Parkes and Tim Fry offered to design the car: "Well, Mike Parkes and I were very good friends. So we went to the director of engineering, B. B. Winter, and said to him we could design you just the car we want. And he said: 'Alright, get on with it then!'". The early stages of development presented "The Slug", which had clear similarities to a bubble car. However, the Rootes design board were not satisfied with this approach, and ordered the design team to press forward. That led to the next stage of the Slug, which appeared more utilitarian with appropriate styling. Extensive road testing was carried out in Norway in winter conditions, East Africa in the height of summer and in Arctic conditions in Canada by a small team led by Ken Sharpe (Chief Development Engineer, Ryton) sources [Henshaw, page 32] [Mowat-Brown, page 22] Rootes did previously look at building a small car twice, even if both ultimately contributed little to the development of the Imp. The first being the 1938–1939 Little Jim prototype, which featured a conventional front-engined rear-wheel drive layout equipped with a 750cc water-cooled engine followed later by the post-war rear-engined 1949 Little Jimmy prototype by Craig Miller that would make use of a Volkswagen-based twin-cylinder engine. It was originally envisaged by Rootes the 742cc Coventry Climax FWMA based engine would be available in three sizes, 800cc, 875cc and 998cc. However it was not to be as through a combination of engineering production costs, Apex’s increased weight and size, together with experimental dry-liner 998cc engines being unreliable, resulted in only the 875cc engine being standardized at the cost of imposing a constraint on the Imp as a one-capacity car that competitors like the Mini did not experience. One alternative solution considered before being dropped was to develop a new taller block giving the engine a longer stroke whilst retaining the 875cc engine's dry-liners, however this would have been an expensive procedure and would have only been worth the investment had the Imp been a success. A few long-stroke engines were built and evaluated, the work not completely going to waste as they would go on many years later to be bored out up to 1150cc and used to great in effect in competition by the likes of Paul Emery, Andy Dawson, Ian Carter and others. The later 998cc engines in the Rallye Imps meanwhile would on the other hand make use of expensive wet-lines and were not really intended for road use, rather only for competition and further tuning. It was later discovered the largest reliable limit the 875cc engine would tolerate was 948cc, however in the absence of more development neither the 948cc engine nor the envisaged 928cc engine were used, the latter originally being proposed as early as the mid-1960s for a projected Mark III Imp that became a victim of Chrysler’s cost-cutting before it reappeared years later in the Chrysler Sunbeam. Mark I Imp: 1963–1965 The Hillman Imp was officially announced on 2 May 1963, when HRH Duke of Edinburgh was invited to open the factory in Linwood. After the opening, he then drove a silver Imp to Glasgow Airport. One of the first Imps produced is currently on display at the Glasgow Museum of Transport. Another early example from 1963 is at the National Motor Museum, Beaulieu, with the registration 1400 SC. Before and after its announcement, the Imp garnered significant attention from the motoring press. In 1962, the Small Car & Mini Owner magazine published an article titled "Enter the AJAX!", particularly noting the all-aluminium water-cooled rear engine. The same year, the Daily Express published an article titled "It's the new 'baby'", calling it "the first baby car ever built by the Rootes Group". In June 1963, the Motor Sport magazine commented on the press' reaction to the Imp who strongly favoured the Imp in terms of its engine, gearbox and competitive price; at launch, the standard model cost £508 1s 3d, while the deluxe version was £532 4s 7d. The name "Imp" was originally the name of an engine produced by Ailsa Craig Ltd., a manufacturer of marine engines. In 1962 the company was acquired by Warsop Fram Group, and all of Ailsa Craig Ltd's assets were up for sale. The Warsop Fram Group traded the Imp name to the Rootes Group in exchange for a new Humber Super Snipe motor car. The namesake was to emphasize its small-size, and to help it sell as the obvious competitor for the Mini. The water-cooled four-cylinder power unit was based on the Coventry Climax FWMA fire pump engine, featuring an all-aluminium alloy overhead camshaft, combined with a full-synchromesh aluminium transaxle. This combination was very advanced at the time. Sir Alec Issigonis, designer of the BMC's Mini, had recently described the fitting of synchromesh on all forward gears as "impossible". Besides the engine's unique design, it was canted at a 45° angle to keep the center of gravity low and optimise road-holding. As reported in tests such as The Practical Car and Driver, rear-engined cars generally suffer from oversteer handling characteristics to some extent, and to counteract that as much as possible, the Imp has a semi-trailing arm independent rear suspension system. The relatively costly and sophisticated solution, atypical for small-car design at the time, was insisted upon by its designers after lengthy testing of a Chevrolet Corvair with swing axles. To attain balanced handling, the Imp actually used swing axle geometry at the front, but that initially led to too much understeer, and the camber was later reduced by lowering the pivot points. Gradually increasing in popularity in the UK, Mark I sales in 1963 were estimated at 33,000, and increased to 50,142 in 1964. However, Imp sales decreased in 1965 to 42,663. Reliability problems had quickly surfaced, mainly due to poor cooling of the rear engine, and the public image of the car was becoming negative. That was extremely worrying for the Rootes Group who were trying to compete with the Mini, production of which totalled 1,190,000 during the 1960s. The Mark I was introduced as a 2-door saloon, which appeared in two models; the Basic and De Luxe. In October 1964, a luxury edition was introduced, known as the Singer Chamois. Mark II Imp: 1965–1968 Following the initial problems that affected the Mark I, the Rootes Group decided to re-introduce the Imp with significant changes both mechanically and cosmetically. The Mk I Imps had a pneumatic throttle linkage and an automatic choke, both of which were replaced by more conventional items on the Mk II. The Mk II also had improved front suspension geometry, and several trim and detail changes. Although the car was constantly improved over its production life, there was no single change as significant as those in 1965. Among the changes were an added water pump, cylinder head with larger ports and valves, and 'Mark II' emblems on the side of the doors. Mark III Imp: 1968–1976 The Imp was never officially badged nor referred to as the "Mark III". However, changes were made to the range when the Rootes Group was fully acquired by Chrysler Europe, and so that version is sometimes referred to as the "Chrysler Imp". After Rootes Group's acquisition by Chrysler in 1968, the entire range was revised, except for the Stiletto. The instrument panel and steering wheel were redesigned. The large speedometer previously positioned behind the steering wheel was replaced by a horizontal row of four circular dials/displays of varying detail and complexity, according to the model involved. The right-hand dial, the speedometer, was now to one side of the driver's normal sightline, while one multi-functional stalk on the right side of the steering column replaced the two control stalks that had been directly behind the steering wheel, one on each side. The earlier Imp had been praised for the good ergonomic quality of its dash-board/fascia, and its replacement reflected similar trends in other new and modified UK vehicles at a time of "production rationalization". The more modern arrangement on the Imp was seen by some as a missed opportunity. Variants and "badge engineering" Over the life of the car, Rootes (and later Chrysler UK) produced four body styles. The original saloon was introduced in May 1963 and ran through to the end of production in 1976. It has an opening rear window, making it effectively a hatchback. The opening rear window is intended to make it easier to load the small luggage area behind the fold-down rear seat. The fold-down nature of the rear seat was itself unusual in small car design at the time, being more often associated with larger upmarket estate cars. In 1965 a van badged as the "Commer Imp" was introduced. A coupe, the Imp Californian, was introduced in 1967 at the same time as the van's pressings were used to create an estate car, badged "Hillman Husky". Several estate car prototypes using the saloon body with extended rooflines were tried, but never offered to the public. Instead, buyers choosing the estate had to settle for a van-derived car with somewhat unusual styling. Both the van and estate ceased production in 1970. In an attempt to interest a wider public when sales figures fell well short of the intended 100,000 cars per annum, several badge-engineered derivatives, such as the luxury Singer Chamois (launched October 1964), and the Sunbeam Sport (launched October 1966), with a more powerful twin-carburettor engine, were offered with varying degrees of success. For marketing reasons the Singer variants were sold as Sunbeams in many export markets, even before May 1970 when the Singer marque was discontinued altogether by Chrysler UK. In some markets, such as France, the "Sunbeam" name was used on all British Rootes products, including the Imp and the Husky. The coupe bodyshell is similar to the standard body but features a more shallow-raked windscreen and rear window which, unlike that on the standard bodied cars, can not be opened. The attempt at a more sporty design did not translate into better acceleration or top speed figures and the aerodynamics of the standard saloon are actually slightly better. The new body style made its first appearance at the Paris Motor Show in October 1967, with the introduction of the sporting Sunbeam Stiletto. The coupe body had also appeared, with less powerful engines, in the Hillman Imp Californian announced in January 1967 and the more luxurious Singer Chamois coupe. Linwood plant The Imp was a massive and expensive leap of faith for Rootes. The company did not have recent experience building small cars, even though it started off as a car builder by offering the then small Hillman Minx back in 1931. However, the Minx had since grown larger and was well established as a medium-size family car by the time the Imp was introduced. For the Imp, Rootes pioneered the use of an aluminium engine in a mass-production car. This process proved to be more complicated than simply substituting an aluminium design for a familiar and well-understood cast-iron design. Rootes had to build a new, computerised assembly plant on the outskirts of Paisley, in Linwood, in which to assemble the Imp. The UK Government Regional Assistance policy provided financial grants to the Rootes Group to bring approximately 6,000 jobs to the area. Linwood had become an area of significant unemployment because of redundancies in the declining shipbuilding industry on the nearby River Clyde. The investment also included an advanced die-casting plant to manufacture the aluminium engine casings, and a stake in a brand new Pressed Steel Company motor pressings works, which manufactured all the new car's body panels. The location of the plant led to significant logistical issues for the manufacturing process. Linwood was over away from Rootes' main factory at Ryton-on-Dunsmore, but the engine castings made in Linwood had to be sent to Ryton to be machined and assembled, then sent back up to be put on the cars — a round trip. This was addressed by a complex schedule of trains shifting completed cars and raw castings south, and trains loaded with engine- gearbox assemblies and many other Ryton-sourced goods running north. To aid with balancing the logistical costs of this operation, body pressings for the Hillman Avenger were also made at Linwood, but transported south to Ryton on the component trains. This schedule remained in operation for the duration of Linwood Imp production. The local West of Scotland workforce, recruited mainly from the shipbuilding industry, did not bring the distinct skills necessary for motor vehicle assembly, and Imp build quality and reliability suffered accordingly. However, industrial relations were also an issue in production. Industrial disputes and strike action became a regular occurrence, as was the case in many parts of British industry in the 1960s and 1970s. Marketing Initially, the Imp was seen by Rootes as a potential second car for families with the means to acquire one. In this incarnation, it was a somewhat revolutionary, high-quality small car, with some above average features. Later the concept evolved into a kind of ultra-economy car with some cheaply and poorly executed, design features as a utilitarian vehicle, like some of the Eastern European marques of the time like Škoda, and later Lada, which were relatively low-cost economy cars, popular with British consumers. At one point the basic Hillman Imp was the cheapest new car on the British market, which increased low sales figures for a time. Popularity The initial problems damaged the Imp's reputation and popularity trailed off, with half of all production being from the first three years. It still sold thanks to its competitive price, distinctive styling, and cheap running costs, but sales never lived up to expectations for what had become a very competent small car. Another problem that contributed to the reputation for poor reliability was the lack of understanding of the maintenance needs of alloy engines by owners and the motor trade in the 1960s. Regular failures of the Giubo couplings also occurred. It was overshadowed in popularity by the Mini. Rootes, Chrysler and end of production The company's huge investment in both the Imp and the Linwood production plant was to be a significant part of the demise of the Rootes Group. The Imp's commercial failure added to the major losses suffered by Rootes, although the main reasons for these losses were unresolved industrial unrest and the effects of the link with the Chrysler Corporation of the USA. The link was initiated by Lord (William) Rootes in 1964 as a partnership, but he died in October of that year and by 1967 the company had been acquired by Chrysler, to become part of Chrysler Europe. A year later, ahead of the 1968 London Motor Show, the recommended retail prices of most Imp models were reduced for the domestic market by more than four per cent, despite the general price inflation affecting the UK. Chrysler stewardship was blamed by some for the demise of the Imp in March 1976, after fewer than 441,000 had been built, but the entire Chrysler Europe operation was not a success and two years later it became part of Peugeot. The Imp was one of Britain's longest-running production cars with a 13-year run, despite lower sales in its later years. Its place in the Chrysler UK range was taken the following year by the Chrysler Sunbeam, a three-door hatchback based on the Avenger rear-wheel drive underpinnings. Both cars continued to be produced at the Linwood plant until it closed in 1981, after just 18 years in use. The Ryton assembly plant continued in operation until December 2006, when production of the Peugeot 206 was switched to Slovakia. Production Approximately half a million, half of this number coming in the first three years of production. The Imp used a derivative of the Climax FWMA engine whereas the Lotus cars used an FWMC engine which had an entirely different cylinder head. Overseas assembly Unassembled cars were exported for assembly in Australia, Costa Rica, Ireland, Malaysia, Malta, New Zealand, Philippines, Portugal, South Africa, Uruguay, and Venezuela. New Zealand cars were assembled as Hillmans by Chrysler/Hillman importer Todd Motors for several years from about 1964. The model returned, this time as a four-headlamp Sunbeam with the newer dashboard. Production of the Imp stopped in 1970 because Todd Motors required the Imp assembly line to build the Hillman Avenger. Todd Motors only had two final assembly lines at Petone, so the Avenger and the Hunter shared one line and the larger Chrysler Valiant was built on the other. Imps were assembled by Rootes Australia in their Port Melbourne factory from 1964. The following models were produced: PM Imp — Available in Standard trim only. Produced from 1964 to 1965. Built from UK Mk I Imp CKD kits. In 1965 a Super Imp was released (refer to photo of white car with red flash above) and featured improvements due to the issues with the Mk1 and these were to carry over to the IMP II. PA Imp — Badged as "IMP II". Available in Standard or Super trim. Sold from February 1966– March 1968, it was still based on UK Mk I CKD kits. PB Imp — Badged as "IMP III". Also available in Standard or Super trim. Produced from 1968 to around 1970. Further improvements made over the PA Imp, early cars were still based on UK Mk I CKD kits, but as these were depleted, UK Mk II CKD kits were used. The very last batch of IMP IIIs may have used the CKD Imp Sport body shell only. Later IMP IIIs also used the UK Mk II engine. Hillman GT — built from Sunbeam Imp Sport CKD kits. Produced from 1967 to the end of 1968. Hillman Sonic/Stiletto — convertible model produced for Chrysler Australia by Eiffel Tower Motors of Dandenong. Imp variants Hillman Imp Mark I (1963–1965) Hillman Imp de Luxe Mark I and Mark II (1963–68) Hillman Super Imp (1965–1974) Hillman Imp (1968–1976) Hillman GT (1967–?) developed by Chrysler Australia from the Singer Chamois Sport, it was never badged nor officially referred to as the "Hillman Imp GT" Hillman Imp Californian (1967–1970) coupé and fastback saloon versions Hillman Husky (1967–1970) estate version of the Imp Commer Imp Van (1965–1968) Hillman Imp Van (1968–1970) Hillman Imp Caledonian (limited edition model with additional accessories and available in Super and De luxe models) Singer Chamois Mark I, Mark II, (1964–1970) Singer Chamois Rallye (1965–68?) (rally conversion with unique instrument panel, luxury features and increased engine size of 998cc) Singer Chamois Sport, and Coupé (1967–1970) Sunbeam Imp Sport (1966–1970) Sunbeam Sport (1970–1976) Sunbeam Chamois (export markets outside of UK only) Sunbeam Stiletto (1967–1972) Sunbeam Californian Sunbeam Imp Basic (North America) Sunbeam Imp De Luxe Mark I and Mark II (North America) Cars using Imp mechanicals Beach Mk4 Bond 875 & variants BS Nymph Clan Crusader Concept Centaur GT Davrian Ginetta Cars G15 Siva Llama Imps in motorsport The engine proved flexible and very easy to tune. It was an overhead camshaft design, which permitted better air flow than a standard OHV engine. As with all engine heads, it could also be flowed and ported to allow better airflow at high engine speeds. Useful improvements in power could be gained by replacing the standard silencer (muffler) with one that impeded the exhaust gas flow less and with better carburettors. However, in adapting the design to suit modern mass-production methods, Rootes had left the engine more fragile than the Coventry Climax model from which it had been derived. The Imp enjoyed modest success in both club and international rallying. Rootes introduced a homologation special called the Rally Imp in 1964. It featured many modifications over the standard model, the most important of which was an engine enlarged to 998 cc. Notable successes for this model include the 1965 Tulip Rally in which the works Imps of Rosemary Smith and "Tiny" Lewis finished first and second overall. Imps were also successful racing cars. The privateer team of George Bevan dominated the British Saloon Car Championship (later known as the British Touring Car Championship) in the early 1970s. Driven by Bill McGovern, the Bevan Sunbeam Imp won the championship in 1970, 1971 and 1972 with limited factory support. In UK club racing the Imp variants became highly successful in the under 1000 cc Special Saloon category. Notable exponents of the Imp in racing include Ian Forrest, Harry Simpson, Ricky Gauld, John Homewood, Roger Nathan, Gerry Birrell, Ray Payne and Chris Barter. To this day Imps still compete on historic rallies in the UK, with the Vokes' car often making it onto the podium in the HRCR Clubmans Rally Championship. The Imp was also successfully raced and rallied in other parts of the world, notably Asia, where drivers including Andrew Bryson and Pardaman Singh regularly won saloon car categories into the 1980s. The 998 cc Imp engine was also used in three-wheeled racing sidecars in the 1970s and 1980s. Exhaust systems were naturally constructed on a one-off basis. The engines often sporting the Twin Weber twin-choke setup. A number of sidecar crews raced Imp-equipped outfits at the Isle of Man TT races, best placement being Roy Hanks in eleventh place in the 1976 TT 1000cc Sidecar. Imp-engined outfits are still regularly championed in classic racing. Andy Chesman won the 1972 World Hydroplane championship using an Imp engine. He bought Imp specialist company Greetham Engineering and designed a wedge head to increase the 998 cc engine to 125 bhp with twin 40DCOE Weber carburetors. He also fitted a spacer on top of the wet block to accommodate longer cylinder liners, increasing capacity to 1220 cc. At the BP-sponsored Windermere records week in October 1972, he raised the R1 Class water speed record to . He was killed in 1998 in a power-boat accident, still holding the record. References Further reading Morgan, Tim (May 2017). Hillman Imp: The Essential Buyers Guide. Veloce Publishing. External links The story of the Imp The Imp Club The Hillman Imp and its badge engineered cousins Andys Hillman Imp home page — all about Hillman Imps and their Imp engine derivatives How Margaret Thatcher's polices brought the curtain down on the Linwood car plant ... — a news story about the 50th anniversary of the Imp and the eventual closure of the Linwood assembly plant Imp Cars powered by rear-mounted 4-cylinder engines Rally cars Touring cars Cars introduced in 1963 Commer vehicles Sunbeam vehicles Singer vehicles 1970s cars Coupés
```javascript /* your_sha256_hash-------------- * * # D3.js - custom diagram colors * * Venn diagram demo with custom color options * * Version: 1.0 * Latest update: August 1, 2015 * * your_sha256_hash------------ */ $(function () { // Data set // ------------------------------ // Circles var sets = [ {label: 'SE', size: 28}, {label: 'Treat', size: 35}, {label: 'Anti-CCP', size: 108}, {label: 'DAS28', size: 106} ]; // Overlaps var overlaps = [ {sets: [0,1], size: 1}, {sets: [0,2], size: 1}, {sets: [0,3], size: 14}, {sets: [1,2], size: 6}, {sets: [1,3], size: 0}, {sets: [2,3], size: 1}, {sets: [0,2,3], size: 1}, {sets: [0,1,2], size: 0}, {sets: [0,1,3], size: 0}, {sets: [1,2,3], size: 0}, {sets: [0,1,2,3], size: 0} ]; // Initialize chart // ------------------------------ // Define colors var colours = d3.scale.category10(); // Draw diagram var diagram = venn.drawD3Diagram(d3.select("#d3-venn-colors"), venn.venn(sets, overlaps), 350, 350); // Style circles diagram.circles .style("fill-opacity", .7) .style("stroke-opacity", 0) .style("fill", function(d,i) { return colours(i); }) .style("stroke", function(d,i) { return colours(i); }); // Style text diagram.text .style("fill", "white") .style("font-weight", "500"); }); ```
```java package com.ctrip.xpipe.redis.integratedtest.console.consoleapi.util; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * @author liuyi * * Sep 9, 2016 */ public abstract class AbstractExecutorPool { protected ExecutorService fixedThreadPool; public AbstractExecutorPool() { init(); } public void addThread(final String apiName) { fixedThreadPool.execute(new Runnable() { public void run() { test(); } }); } private void init() { fixedThreadPool = Executors.newFixedThreadPool(getPoolSize()); } abstract protected void test(); abstract protected int getPoolSize(); } ```
The Prevention of Nuclear War Agreement was created to reduce the danger of nuclear war between the United States and the Union of Soviet Socialist Republics. The agreement was signed at the Washington Summit, on June 22, 1973. The United States and the U.S.S.R. agreed to reduce the threat of a nuclear war and establish a policy to restrain hostility. In reality, the agreement had little impact, with Henry Kissinger doubting whether it was "worth the effort" and describing the outcome as only "marginally useful". History The agreement was initially presented to US Secretary of State Henry Kissinger on his 1972 visit to Moscow by the Soviets. Kissinger described the initial draft as "a dangerous, Soviet maneuverer to lure us into renouncing the use of nuclear weapons, on which the free world's defence after all depended ... Given the Soviet superiority in conventional weapons, such a move would demoralise our allies and deeply disquiet China, who would see it as a sign of the much dreaded U.S.-Soviet collusion ... It was strong stuff. We were being asked to dismantle the military strategy of NATO and at the same time to proclaim a virtual U.S.-Soviet military alliance designed to isolate or impose our will on China or any other country with nuclear aspirations." With the help of British diplomat Thomas Brimelow, Kissinger presented a counterproposal which he described as "180 degrees removed from his (Brezhnev's) original design. In short, in over a year of negotiation we had transformed the original Soviet proposal of an unconditional renunciation of the use of nuclear weapons against each other into a somewhat banal statement that our objective was peace, applying as well to allies and third countries and premised on restrained international conduct, especially the avoidance of the use or the threat of force". Unlike the original Soviet proposal, which Kissinger considered entirely unacceptable, the agreed text provided "marginally useful" accommodations to the United States, not specifically in the realm of preventing nuclear war but in Kissinger's specialist subject of geopolitical realpolitik: in his estimation it would make "it impossible for the Soviets to turn on either NATO or the Middle East without violating the agreement. And it even gave us a kind of legal framework for resisting a Soviet attack on China." Nevertheless, Kissinger doubted whether the agreement was "worth the effort." Article AGREEMENT BETWEEN THE UNITED STATES OF AMERICA AND THE UNION OF SOVIET SOCIALIST REPUBLICS ON THE PREVENTION OF NUCLEAR WAR Signed at Washington June 22, 1973 Entered into force June 22, 1973 The United States of America and the Union of Soviet Socialist Republics, hereinafter referred to as the Parties, Guided by the objectives of strengthening world peace and international security, Conscious that nuclear war would have devastating consequences for mankind, Proceeding from the desire to bring about conditions in which the danger of an outbreak of nuclear war anywhere in the world would be reduced and ultimately eliminated, Proceeding from their obligations under the Charter of the United Nations regarding the maintenance of peace, refraining from the threat or use of force, and the avoidance of war, and in conformity with the agreements to which either Party has subscribed, Proceeding from the Basic Principles of Relations between the United States of America and the Union of Soviet Socialist Republics signed in Moscow on May 29, 1972, Reaffirming that the development of relations between the United States of America and the Union of Soviet Socialist Republics is not directed against other countries and their interests, Have agreed as follows: Article I The United States and the Soviet Union agree that an objective of their policies is to remove the danger of nuclear war and of the use of nuclear weapons. Accordingly, the Parties agree that they will act in such a manner as to prevent the development of situations capable of causing a dangerous exacerbation of their relations, as to avoid military confrontations, and as to exclude the outbreak of nuclear war between them and between either of the Parties and other countries. Article II The Parties agree, in accordance with Article I and to realize the objective stated in that Article, to proceed from the premise that each Party will refrain from the threat or use of force against the other Party, against the allies of the other Party and against other countries, in circumstances which may endanger international peace and security. The Parties agree that they will be guided by these considerations in the formulation of their foreign policies and in their actions in the field of international relations. Article III The Parties undertake to develop their relations with each other and with other countries in a way consistent with the purposes of this Agreement. Article IV If at any time relations between the Parties or between either Party and other countries appear to involve the risk of a nuclear conflict, or if relations between countries not parties to this Agreement appear to involve the risk of nuclear war between the United States of America and the Union of Soviet Socialist Republics or between either Party and other countries, the United States and the Soviet Union, acting in accordance with the provisions of this Agreement, shall immediately enter into urgent consultations with each other and make every effort to avert this risk. Article V Each Party shall be free to inform the Security Council of the United Nations, the Secretary General of the United Nations and the Governments of allied or other countries of the progress and outcome of consultations initiated in accordance with Article IV of this Agreement. Article VI Nothing in this Agreement shall affect or impair: (a) the inherent right of individual or collective self-defense as envisaged by Article 51 of the Charter of the United Nations,* (b) the provisions of the Charter of the United Nations, including those relating to the maintenance or restoration of international peace and security, and (c) the obligations undertaken by either Party towards its allies or other countries in treaties, agreements, and other appropriate documents. Article VII This Agreement shall be of unlimited duration. Article VIII This Agreement shall enter into force upon signature. DONE at Washington on June 22, 1973, in two copies, each in the English and Russian languages, both texts being equally authentic. FOR THE UNITED STATES OF AMERICA: RICHARD NIXON President of the United States of America FOR THE UNION OF SOVIET SOCIALIST REPUBLICS: L.I. BREZHNEV General Secretary of the Central Committee, CPSU TS 993; 59 Stat. 1044. It was viewed as a preliminary step toward preventing the outbreak of nuclear war or military conflict by adopting an attitude of international cooperation. Together with the Basic Principles Agreement and the Strategic Arms Limitation Talks (SALT), it represented an attempt to establish 'rules' for superpower competition during the Cold War. The bilateral agreement with multilateral implications outlines the general conduct of both countries and toward third world countries. The Parties agreed that in a situation which threatened to escalate into direct nuclear confrontation, whether it be directly or by proxy in the Third World, to urgently consult with each other. The agreement basically covers two main areas: It outlines the general conduct of both countries toward each other and toward third countries regarding the avoidance of nuclear war. In this respect it is a bilateral agreement with multilateral implications. The Parties agreed that in a situation in which the two great nuclear countries find themselves in a nuclear confrontation or in which, either as a result of their policies toward each other or as the result of developments elsewhere in the world, there is a danger of a nuclear confrontation between them or any other country, they are committed to consult with each other in order to avoid this risk. -U.S. State Department, Agreement Between The United States of America and The Union of Soviet Socialist Republics on the Prevention of Nuclear War Breakdown of Articles Article I The United States and the Soviet Union agree in principle that an agreement must be reached to limit the fear and danger of nuclear war. Article II In regards to Article I, the United States and Soviet Union will observe and abide by current foreign policies. Additionally, both countries will refrain from using force against each other or their allies. Article III Another purpose of this agreement is to keep relations open between the United States, Soviet Union, and their allies. Article IV In the case of nuclear threats or force being escalated by any and all parties involved in this agreement, and those not, the United States and Soviet Union will immediately meet to try to resolve any issues and avoid nuclear conflict by any means necessary. Article V In any case of nuclear escalation, either side involved has total freedom to alert the Security Council of the United Nations, along with the Secretary General of the United Nations. As well as, any and all governments involved to the outcome of the negotiations as mentioned in Article IV. Article VI Anything discussed and agreed upon in this agreement will not affect or limit Article 51 of the charter of the United Nations, provisions of the charter of the United Nations, that discuss international peace and security, as well as, other treaties, agreements, and documents by either party previously with its allies. Article VII There is an unlimited lifetime of this agreement. Article VIII Once signed by both parties, the agreement will be in immediate effect. See also Cold War (1962-1991) Cuban Missile Crisis Nuclear warfare Atomic Age Deterrence theory Doomsday clock Doomsday event Essentials of Post–Cold War Deterrence International Court of Justice advisory opinion on the Legality of the Threat or Use of Nuclear Weapons Leonid Brezhnev No first use policy Nuclear holocaust Nuclear War (card game) Nuclear weapons in popular culture Strategic Arms Limitation Talks (SALT) Strategic Defense Initiative Weapon of mass destruction World War III Risks to civilization, humans and planet Earth Causes of hypothetical future disasters Citations "Prevention of Nuclear War Agreement". Federation of American Scientists. Accessed February 9, 2010. References External links Text of the Treaty Cold War treaties Soviet Union–United States treaties 1973 in the Soviet Union June 1973 events in the United States Treaties concluded in 1973 Treaties entered into force in 1973 Arms control treaties
Atlanta is an unincorporated community located in San Joaquin County, California. Its elevation is 62 ft (19 m) and is located at . Atlanta was established and named in 1866 when Atlanta, Georgia native Lee Wilson arrived at the locale and built a saloon and store. A blacksmith shop was established at the same time by the Averill brothers. The original center of Atlanta was located at Due Road – named after the ranch established by Danish-born Esper Hansen Due that is still in operation today – southeast of today's center. The time of the community's founding corresponds to the transition from ranching to farming in the area, especially the growing of wheat. Though, Hereford cattle were raised in Atlanta until the middle of the 20th century. Dairy cattle are still prevalent in the area as well. Today, the area is still largely agricultural, and consists of almond, walnut, olive, and cherry orchards. Wine grapes, specifically zinfandel and syrah, are also still grown. Wine bottled from the region, specifically red wine, is dark and rich, sharing many of the positive qualities of the wine from neighboring Lodi. Littlejohns Creek cuts through the northern part of Atlanta, and demarcates a change in soil content. On the north side, the ground is heavy and red, due to iron content. This is typically referred to as 'Stockon Adobe.' On the south side of the creek, there is sandy soil proliferated by 'hard pan.' This 'Fresno Loam' is more apt for high-drainage crops like almonds. This stretch goes far south into bordering Ripon, known as one of the 'almond capitals of the world.' From Atlanta, looking east one can see the Sierra Nevada mountain ranges, including Pyramid Peak in Tahoe and parts of Yosemite National Park. Looking west, one sees Mount Diablo and Mount Hamilton, site of the Lick Observatory. The community lies on the historic French Camp Road which runs southeast from Stockton. The road has been in existence since before the 1849 Gold Rush, and was served by the Fisher Stage Lines. It was an early favored route from Stockton along the east side of the San Joaquin Valley, leading to the Heath & Emory's Ferry crossing of the Stanislaus River just east of the present-day town of Oakdale. The road originally began at the head of the French Camp Slough just outside of Stockton which, during winter and spring flooding, was the only way to access Stockton, via ferry. The road itself traversed a section of sandy soil along a high ground route, and so kept well-drained, in contrast to the seas of mud encountered along other nearby roads during the rainy season. Atlanta today mainly falls within the Ripon and Escalon school districts. The Zinc House About two miles southeast of Atlanta, at what today is the intersection of Wagener Road and State Route 120, just a block or two east of where French Camp Road meets the same highway, is the site of the historic (and long gone) Zinc House, which marked one of the original nuclei of activity in the vicinity before Atlanta was founded. The Zinc House, owned and managed by the Wagner family, was a stage stop for the Fisher Stage Lines and included a restaurant. The place was named for an original structure that had been constructed entirely of galvanized metal (iron or steel), shipped in pieces around Cape Horn to San Francisco and transported to the site where it was assembled. A public school in Atlanta was later named for the Zinc House: the Zinc House School. Many of the early pioneers and settlers of the area around Atlanta are buried in the small Atlanta Cemetery, located at the Five Corners at the intersection of Lone Tree, Jack Tone, and French Camp roads. References Unincorporated communities in California Unincorporated communities in San Joaquin County, California
The Shoaib Akhtar Stadium, formerly known as Khan Research Laboratories Ground, is a multi-use stadium in Rawalpindi, Pakistan. At first named after the Pakistan nuclear enrichment facility Khan Research Laboratories, it was renamed Shoaib Akhtar Stadium in honour of the former Pakistani fast bowler in March 2021. The stadium has a capacity of 8,000 spectators. It is currently used mostly for football matches, on club level by KRL FC of the Pakistan Premier League. It was also used for first-class cricket and List A cricket matches as the home venue for the Khan Research Laboratories cricket team. In September 2019, the Pakistan Cricket Board named it as one of the venues to host matches in the 2019–20 Quaid-e-Azam Trophy. See also List of cricket grounds in Pakistan References Football venues in Pakistan
```java package tlc2.tool; import java.io.IOException; import tlc2.TLCGlobals; import tlc2.output.EC; import tlc2.output.StatePrinter; import tlc2.tool.fp.FPSet; import tlc2.tool.fp.FPSetConfiguration; import tlc2.tool.fp.FPSetFactory; import tlc2.tool.queue.DiskStateQueue; import tlc2.util.NoopStateWriter; import util.ToolIO; /** * CheckImpl is intended to be used with a simulation-based * verification engine. It checks whether the states generated * during simulation are legal based on the abstract view of a * formal model. It also records coverage information on the * (partial) state space TLC is creating, and subsequently uses that * information to guide the simulation engine to corner cases that * are hard to get. **/ public abstract class CheckImpl extends ModelChecker { private static int TraceDuration = 30000; /** * @param fpMemSize : This parameter added by Yuan Yu on 6 Apr 2010 * because same parameter was added to the ModelChecker constructor. */ public CheckImpl(ITool tool, String metadir, boolean deadlock, int depth, String fromChkpt, final FPSetConfiguration fpSetConfig) throws IOException { // SZ Feb 20, 2009: patched due to changes to ModelCheker super(tool, metadir, new NoopStateWriter(), deadlock, fromChkpt, fpSetConfig, System.currentTimeMillis()); // no name resolver and no specobj this.depth = depth; this.curState = null; this.coverSet = FPSetFactory.getFPSet(); this.coverSet.init(TLCGlobals.getNumWorkers(), this.metadir, tool.getRootName()+"_cs"); this.stateEnum = null; } /** * theFPSet contains the states in the partial state space created by * running TLC2. coverSet contains the states obtained by calls to * getState. trace is the union of theFPSet and coverSet. An uncovered * state is a state that is in theFPSet-coverSet. */ private int depth; // the depth of the state space //private long stateCnt; // the number of states // SZ: never private FPSet coverSet; // the set of covered states private TLCState curState; // the current state private TLCTrace.Enumerator stateEnum; // the enumerator for reachable state private long lastTraceTime; // the time the last trace was generated /** * The main task of initialization is to create a sufficiently large * (probably partial) state space. The argument depth is the * depth of the (partial) state space we want to create. */ public final void init() throws Throwable { boolean recovered = this.recover(); if (!recovered) { this.checkAssumptions(); // SZ Feb 23, 2009: added ignore cancel flag this.doInit(false); } ToolIO.out.println("Creating a partial state space of depth " + this.depth + " ... "); final int result = this.runTLC(this.depth); if (result != EC.NO_ERROR) { ToolIO.out.println("\nExit: failed to create the partial state space."); System.exit(EC.ExitStatus.errorConstantToExitStatus(result)); } ToolIO.out.println("completed."); this.lastTraceTime = System.currentTimeMillis(); this.stateEnum = this.trace.elements(); } /* Reset the internal state of CheckImpl. */ public final void reset() throws IOException { this.curState = null; this.stateEnum.reset(-1); } /** * Creates a (partial) state space with the state st as the root and * depth as the depth. */ public final void makeStateSpace(TLCState st, int depth) throws Exception { int depth1= this.trace.getLevel(st.uid) + depth; this.theStateQueue = new DiskStateQueue(this.metadir); this.theStateQueue.enqueue(st); final int result = this.runTLC(depth1); if (result != EC.NO_ERROR) { System.exit(EC.ExitStatus.errorConstantToExitStatus(result)); } } /** * This method gets a new state from the external world. * It returns null if there is nothing available. */ public abstract TLCState getState(); /* This method exports a trace to the external world. */ public abstract void exportTrace(TLCStateInfo[] trace) throws IOException; /* Returns true iff s1 is reachable from s0 (s0 -+-> s1). */ public final boolean checkReachability(TLCState s0, TLCState s1) { Action next = this.tool.getNextStateSpec(); if (!this.tool.isValid(next, s0, s1)) { ToolIO.out.println("The following transition is illegal: "); StatePrinter.printStandaloneErrorState(s0); StatePrinter.printStandaloneErrorState(s1); return false; } int cnt = this.tool.getImpliedActions().length; for (int i = 0; i < cnt; i++) { if (!this.tool.isValid(this.tool.getImpliedActions()[i], s0, s1)) { ToolIO.out.println("Error: Action property " + this.tool.getImpliedActNames()[i] + " is violated."); StatePrinter.printStandaloneErrorState(s0); StatePrinter.printStandaloneErrorState(s1); return false; } } return true; } /** * Returns true iff the state satisfies all the invariant properties. * It also records the state if it is not seen before. */ public final boolean checkState(TLCState state) throws IOException { // Record the state in coverSet and theFPSet: long fp = state.fingerPrint(); boolean seen = this.coverSet.put(fp); if (!seen) { if (!this.theFPSet.contains(fp)) { state.uid = this.trace.writeState(this.curState, fp); // Check invariant properties of the state: int cnt = this.tool.getInvariants().length; for (int j = 0; j < cnt; j++) { if (!this.tool.isValid(this.tool.getInvariants()[j], state)) { // We get here because of invariant violation: ToolIO.out.println("Error: Invariant " + this.tool.getInvNames()[j] + " is violated. The behavior up to this point is:"); return false; } } } } return true; } /** * Generate a trace ending with an uncovered state. Returns * null if there is no more uncovered state in the current * state space. */ public final TLCStateInfo[] generateNewTrace() throws IOException { long pos = -1; while ((pos = this.stateEnum.nextPos()) != -1) { long fp = this.stateEnum.nextFP(); if (!this.coverSet.contains(fp)) { return this.trace.getTrace(pos, true); } } return null; } /** * The main method to check a trace. It gets the states in a * trace by calling the getState method. For each new state * obtained by getState, checkTrace checks if it satisfies all * the invariant properties and if the transition is legal. */ public final void checkTrace() throws IOException { this.curState = this.getState(); if (this.curState == null) return; this.checkState(this.curState); while (true) { // Get the next state: TLCState state = this.getState(); if (state == null) break; this.checkState(state); this.checkReachability(this.curState, state); this.curState = state; } } public final void export() throws IOException { // Check if we need a trace: long curTime = System.currentTimeMillis(); if (curTime - this.lastTraceTime > TraceDuration) { TLCStateInfo[] states = this.generateNewTrace(); if (states != null) { this.exportTrace(states); } this.lastTraceTime = curTime; } } } ```
Eusebio Ramos Morales (born December 15, 1952) is a Puerto Rican born American prelate of the Roman Catholic Church. He has been serving as bishop for the Diocese of Caguas in Puerto Rico since 2017. He previously served as bishop of the Diocese of Fajardo-Humacao in Puerto Rico from 2008 to 2017 Biography Early life Eusebio Ramos Morales was on December 15, 1952, in Maunabo, Puerto Rico. He studied philosophy and theology in Bayamón Central University in Bayamón, Puerto Richo. He then attended St. Vincent de Paul Regional Seminary in Boynton Beach, Florida and the Pontifical Gregorian University in Rome. Ramos Morales was ordained to the priesthood for the Diocese of Caguas on June 3, 1983, by Bishop Enrique Hernández Rivera. Bishop of Fajardo-Humacao Ramos Morales was appointed by Pope Benedict XVI as the first bishop of the new Diocese of Fajardo-Humacao on March 11, 2008. He was consecrated and installed by Archbishop Roberto González Nieves on May 31, 2008. Bishops Rubén González Medina and Józef Wesołowski served as his co-consecrators. Bishop of Caguas On February 2, 2017, Pope Francis appointed Ramos Morales as bishop of the Diocese of Caguas. On February 26, 2017, he was installed as bishop. See also Catholic Church hierarchy Catholic Church in the United States Historical list of the Catholic bishops of Puerto Rico List of Catholic bishops of the United States Lists of patriarchs, archbishops, and bishops References External links Roman Catholic Diocese of Caguas (Official Site in Spanish) Episcopal succession 1952 births Living people Pontifical Gregorian University alumni People from Maunabo, Puerto Rico St. Vincent de Paul Regional Seminary alumni Bishops appointed by Pope Benedict XVI 21st-century Roman Catholic bishops in Puerto Rico Puerto Rican Roman Catholic bishops Roman Catholic bishops of Caguas Roman Catholic bishops of Fajardo–Humacao
Streamline Moderne is an international style of Art Deco architecture and design that emerged in the 1930s. Inspired by aerodynamic design, it emphasized curving forms, long horizontal lines, and sometimes nautical elements. In industrial design, it was used in railroad locomotives, telephones, toasters, buses, appliances, and other devices to give the impression of sleekness and modernity. In France, it was called the style paquebot, or "ocean liner style", and was influenced by the design of the luxury ocean liner SS Normandie, launched in 1932. Influences and origins As the Great Depression of the 1930s progressed, Americans saw a new aspect of Art Deco, i.e., streamlining, a concept first conceived by industrial designers who stripped Art Deco design of its ornament in favor of the aerodynamic pure-line concept of motion and speed developed from scientific thinking. The cylindrical forms and long horizontal windowing in architecture may also have been influenced by constructivism, and by the New Objectivity artists, a movement connected to the German Werkbund. Examples of this style include the 1923 Mossehaus, the reconstruction of the corner of a Berlin office building in 1923 by Erich Mendelsohn and Richard Neutra. The Streamline Moderne was sometimes a reflection of austere economic times; sharp angles were replaced with simple, aerodynamic curves, and ornament was replaced with smooth concrete and glass. The style was the first to incorporate electric light into architectural structure. In the first-class dining room of the SS Normandie, fitted out 1933–35, twelve tall pillars of Lalique glass, and 38 columns lit from within illuminated the room. The Strand Palace Hotel foyer (1930), preserved from demolition by the Victoria and Albert Museum during 1969, was one of the first uses of internally lit architectural glass, and coincidentally was the first Moderne interior preserved in a museum. Architecture Streamline Moderne appeared most often in buildings related to transportation and movement, such as bus and train stations, airport terminals, roadside cafes, and port buildings. It had characteristics common with modern architecture, including a horizontal orientation, rounded corners, the use of glass brick walls or porthole windows, flat roofs, chrome-plated hardware, and horizontal grooves or lines in the walls. They were frequently white or in subdued pastel colors. An example of this style is the Aquatic Park Bathhouse in the Aquatic Park Historic District, in San Francisco. Built beginning in 1936 by the Works Progress Administration, it features the distinctive horizontal lines, classic rounded corners railing and windows of the style, resembling the elements of ship. The interior preserves much of the original decoration and detail, including murals by artist and color theoretician Hilaire Hiler. The architects were William Mooser Jr. and William Mooser III. It is now the administrative center of Aquatic Park Historic District. The Normandie Hotel in San Juan, Puerto Rico, which opened during 1942, is built in the stylized shape of the ocean liner SS Normandie, and displays the ship's original sign. The Sterling Streamliner Diners in New England were diners designed like streamlined trains. Although Streamline Moderne houses are less common than streamline commercial buildings, residences do exist. The Lydecker House in Los Angeles, built by Howard Lydecker, is an example of Streamline Moderne design in residential architecture. In tract development, elements of the style were sometimes used as a variation in postwar row housing in San Francisco's Sunset District. "Paquebot" style In France, the style was called Paquebot, meaning ocean liner. The French version was inspired by the launch of the ocean liner Normandie in 1935, which featured an Art Deco dining room with columns of Lalique crystal. Buildings using variants of the style appeared in Belgium and in Paris, notably in a building at 3 boulevard Victor in the 15th arrondissement, by the architect Pierre Patout. He was one of the founders of the Art Deco style. He designed the entrance to the Pavilion of a Collector at the 1925 Exposition of Decorative Arts, the birthplace of the style. He was also the designer of the interiors of three ocean liners, the Ile-de-France (1926), the L'Atlantique (1930), and the Normandie (1935). Patout's building on Avenue Victor lacked the curving lines of the American version of the style, but it had a narrow "bow" at one end, where the site was narrow, long balconies like the decks of a ship, and a row of projections like smokestacks on the roof. Another 1935 Paris apartment building at 1 Avenue Paul Doumer in the 16th arrondissement had a series of terraces modelled after the decks of an ocean liner. The Flagey Building was built on the Place Flagey in Ixelles (Brussels), Belgium, in 1938, in the paquebot style, and has been nicknamed "Packet Boat" or "paquebot". It was designed by , and selected as the winning design in an architectural competition to create a building to house the former headquarters of the Belgian National Institute of Radio Broadcasting (INR/NIR). The building was extensively renovated, and in 2002, it reopened as a cultural centre known as Le Flagey. Automobiles The defining event for streamline moderne design in the United States was the 1933–34 Chicago World's Fair, which introduced the style to the general public. The new automobiles adapted the smooth lines of ocean liners and airships, giving the impression of efficiency, dynamism, and speed. The grills and windshields tilted backwards, cars sat lower and wider, and they featured smooth curves and horizontal speed lines. Examples include the 1934 Chrysler Airflow and the 1934 Studebaker Land Cruiser. The cars also featured new materials, including bakelite plastic, formica, Vitrolight opaque glass, stainless steel, and enamel, which gave the appearance of newness and sleekness. Other later examples include the 1950 Nash Ambassador "Airflyte" sedan with its distinctive low fender lines, as well as Hudson's postwar cars, such as the Commodore, that "were distinctive streamliners—ponderous, massive automobiles with a style all their own". Planes, boats and trains Streamlining became a widespread design practice for aircraft, railroad locomotives, and ships. Industrial design Streamline style can be contrasted with functionalism, which was a leading design style in Europe at the same time. One reason for the simple designs in functionalism was to lower the production costs of the items, making them affordable to the large European working class. Streamlining and functionalism represent two different schools in modernistic industrial design. Other notable examples 1923 Mossehaus, Berlin. Reconstruction by Erich Mendelsohn and Richard Neutra 1926: Long Beach Airport Main Terminal, Long Beach, California 1928: Lockheed Vega, designed by John Knudsen Northrop, a six-passenger, single-engine aircraft used by Amelia Earhart 1928: Doctor's Building in Kyiv, Ukraine 1928–1930: Canada Permanent Trust Building in Toronto 1930: Strand Palace Hotel, London; foyer designed by Oliver Percy Bernard 1930–1934: Broadway Mansions, Shanghai, designed by B. Flazer of Palmer and Turner 1931: The Eaton's Seventh Floor in Toronto, Ontario, Canada, designed by Jacques Carlu, in the former Eaton's department store 1931: Napier, New Zealand, rebuilt in Art Deco and Streamline Moderne styles after a major earthquake 1931–1932: Plärrer Automat, Nuremberg, Bavaria, Germany by later Nazi-collaborate architect Walter Brugmann 1931–1933: Hamilton GO Centre, Hamilton, Ontario, Canada by Alfred T. Fellheimer 1931–1944: Serralves House, Porto, Portugal, designed by José Marques da Silva 1932: Edifício Columbus, São Paulo, Brazil (demolished 1971) 1932: Arnos Grove Tube Station, London, England, designed by Charles Holden 1933: Casa della Gioventù del Littorio, Rome, designed by Luigi Moretti 1933: Ty Kodak building in Quimper, France, designed by Olier Mordrel 1933: Southgate tube station, London 1933: Burnham Beeches in Sherbrooke, Victoria, Australia. Harry Norris architect 1933: Merle Norman Building, Santa Monica, California See also History of Santa Monica, California 1933: Midland Hotel, Morecambe, England 1933: Edificio Lapido, Montevideo, Uruguay 1933–1940: Interior of Chicago's Museum of Science and Industry, designed by Alfred Shaw 1934: Pioneer Zephyr, the first of Edward G. Budd's streamlined stainless-steel locomotives 1934: Tatra 77, the first mass-market streamline automotive design 1934: Chrysler Airflow, the second mass-market streamline automotive design 1934: Hotel Shangri-La in Santa Monica, California 1934: Edifício Nicolau Schiesser, São Paulo, Brazil (demolished 2014) 1935: Ford Building in Balboa Park, San Diego, California 1935: The De La Warr Pavilion, Bexhill-on-Sea, England 1935: Pan-Pacific Auditorium, Los Angeles 1935: Edificio Internacional de Capitalización, Mexico City, Mexico 1935: The Hindenburg, Zeppelin passenger accommodations 1935: The interior of Lansdowne House on Berkeley Square in Mayfair, London 1935: The Hamilton Hydro-Electric System Building, Hamilton, Ontario, Canada 1935: MV Kalakala, the world's first streamlined ferry 1935: Technologist's Building in Kyiv, Ukraine 1935–1938: Former Belgian National Institute of Radio Broadcasting (known as the Maison de la Radio) on Eugène Flagey Square in Ixelles (Brussels), by Joseph Diongre 1935–1956: High Tower Court, Hollywood Heights, Los Angeles 1936: Lasipalatsi, in Helsinki, Finland, functionalist office building and now a cultural and media center 1936: Florin Court, on Charterhouse Square in London, built by Guy Morgan and Partners 1936: Campana Factory, historic factory in Batavia, Illinois 1936: Edifício Guarani, São Paulo, Brazil 1936: Nordic Theater, Marquette, Michigan 1936: Alkira House, Melbourne 1937: Earls Court Exhibition Centre, London 1937: Earl's Court tube station, London, facing the Earls Court Exhibition frontage 1937: Blytheville Greyhound Bus Station in Blytheville, Arkansas 1937: Regent Court, residential apartments on Bradfield Road, Hillsborough, Sheffield 1937: Malloch Building, residential apartments at 1360 Montgomery Street in San Francisco 1937: B B Chemical Company, in Cambridge, Massachusetts, built by Coolidge, Shepley, Bulfinch & Abbott 1937: Belgium Pavilion, at the Exposition Internationale, Paris 1937: TAV Studios (Brenemen's Restaurant), Hollywood 1937: Dudley Zoo, Dudley, UK 1937: Hecht Company Warehouse in Washington, D.C. 1937: Minerva (or Metro) Theatre and the Minerva Building, Potts Point, New South Wales, Australia 1937: Bather's Building in the Aquatic Park Historic District, now the San Francisco Maritime National Historical Park Maritime Museum 1937: Barnum Hall (High School auditorium), Santa Monica, California 1937: J.W. Knapp Company Building (department store) Lansing, Michigan 1937: Wan Chai Market, Wan Chai, Hong Kong 1937: River Oaks Shopping Center, Houston 1937: Toronto Stock Exchange Building, mix of Art Deco and Streamline Moderne 1937: Pittsburgh Plate Glass Enamel Plant, in Milwaukee, Wisconsin, by Alexander C. Eschweiler 1937: Old Greyhound Bus Station (Jackson, Mississippi) 1937: Gramercy Theatre, New York City 1937: Gdynia Maritime University in Poland, by Bohdan Damięcki 1938: Esslinger Building in San Juan Capistrano, California 1938: Fife Ice Arena in Kirkcaldy, United Kingdom 1938: Mark Keppel High School, Alhambra, California 1938: Greyhound Bus Terminal (Evansville, Indiana) 1938: 20th Century Limited, New York City 1938: Jones Dog & Cat Hospital, West Hollywood, California, by Wurdeman & Beckett (remodel of 1928 original construction) 1938: Greyhound Bus Depot (Columbia, South Carolina) 1938: Marine Court, St Leonards, East Sussex, England 1939: Bartlesville High School, Bartlesville, Oklahoma 1939: First Church of Deliverance in Chicago, Illinois 1939: Marine Air Terminal, LaGuardia Airport, New York City 1939: Road Island Diner, Oakley, Utah 1939: Albion Hotel, South Beach, Miami Beach, Florida 1939: New York World's Fair 1939: Boots Court Motel in Carthage, Missouri 1939: Cardozo Hotel, Ocean Drive, South Beach, Miami Beach, Florida 1939: Daily Express Building, Manchester, England 1939: East Finchley tube station, London, England 1939: Appleby Lodge, Manchester, England 1940: Gabel Kuro jukebox designed by Brooks Stevens 1940: Ann Arbor Bus Depot, Michigan 1940: Jai Alai Building, Taft Avenue Manila, Philippines (demolished 2000) 1940: Hollywood Palladium, Los Angeles, California 1940: Las Vegas Union Pacific Station, Las Vegas, Nevada 1940: Rivoli Cinemas, 200 Camberwell Road Hawthorn East, Melbourne, Australia 1940: Pacaembu Stadium, São Paulo, Brazil 1941: Avalon Hotel, Ocean Drive, South Beach, Miami Beach, Florida 1942: Coral Court Motel in Marlborough, Missouri 1942: Normandie Hotel in San Juan, Puerto Rico 1942: Mercantile National Bank Building in Dallas, Texas 1942: Musick Memorial Radio Station in Auckland, New Zealand 1943: Edifício Trussardi in São Paulo, Brazil 1944: Huntridge Theater, Las Vegas, Nevada 1945: Muscats Motors, Gżira, Malta 1945: Ressano Garcia Railway Station, Mozambique 1946: Gerry Building, Los Angeles, California 1946: Canada Dry Bottling Plant, Silver Spring, Maryland 1946: Broadway Theatre, Saskatoon, Saskatchewan, Canada 1949: Sault Memorial Gardens, Sault Ste. Marie, Ontario 1949: Beacon Lodge, Victoria, British Columbia, Canada 1951: Federal Reserve Bank Building, Seattle, Washington 1954: Poitiers Theater designed by Edouard Lardillier 1955: Eight Forty One (former Prudential Life Insurance Building), Jacksonville, Florida, designed by KBJ Architects 1957: Edinburgh Place Ferry Pier (Star Ferry Pier, Central), Hong Kong (demolished 2006) 1957: Tsim Sha Tsui Ferry Pier, Hong Kong 1965: Hung Hom Ferry Pier, Hong Kong 1968: Wan Chai Pier, Hong Kong (demolished 2014) In motion pictures Tanks, aircraft and buildings in William Cameron Menzies's 1936 movie Things to Come The buildings in Frank Capra's 1937 movie Lost Horizon, designed by Stephen Goosson The design of the "Emerald City" in the 1939 movie The Wizard of Oz The main character's helmet and rocket pack in the 1991 movie The Rocketeer The High Tower apartments, featured in the 1973 film The Long Goodbye and 1991 film Dead Again The Malloch Apartment Building at 1360 Montgomery St, San Francisco that serves as apartment for Lauren Bacall's character in Dark Passage See also Century of Progress Chicago's second World's Fair (1933–34) Constructivist architecture Exposition Internationale des Arts et Techniques dans la Vie Moderne (1937) (1937 Paris Exposition) Googie architecture PWA Moderne – a Moderne style in the United States completed between 1933 and 1944 as part of relief projects sponsored by the Public Works Administration (PWA) and the Works Progress Administration (WPA) Raygun Gothic Streamliner References Bibliography Streamliners Streamline Moderne 20th-century architectural styles
```yaml bg: activemodel: attributes: assembly: area_id: assembly_type: assembly_type_other: ```
The red-legged partridge (Alectoris rufa) is a gamebird in the pheasant family Phasianidae of the order Galliformes, gallinaceous birds. It is sometimes known as French partridge, to distinguish it from the English or grey partridge. The genus name is from Ancient Greek alektoris a farmyard chicken, and rufa is Latin for red or rufous. It is a rotund bird, with a light brown back, grey breast and buff belly. The face is white with a black gorget. It has rufous-streaked flanks and red legs. When disturbed, it prefers to run rather than fly, but if necessary it flies a short distance on rounded wings. This is a seed-eating species, but the young in particular take insects as an essential protein supply. The call is a three-syllable ka-chu-chu. Habitat This partridge breeds naturally in southwestern Europe (France, Iberia and northwest Italy). It has become naturalised in flat areas of England and Wales, where it was introduced as a game species, and has been seen breeding as far north as Sutherland. It is replaced in southeastern Europe by the very similar rock partridge (Alectoris graeca). It is a non-migratory terrestrial species, which forms flocks outside the breeding season. This species breeds on dry lowlands, such as farmland and open stony areas, laying its eggs in a ground nest. They have been known to cohabit with wild rabbits. Taxonomy Subspecies There are three recognized subspecies: A. r. hispanica (Seoane, 1894) - northern and western Iberian Peninsula. A. r. intercedens (Brehm, 1857) - eastern and southern Iberian Peninsula and Balearic Islands. A. r. rufa (Linnaeus, 1758) - nominate - France, northwest Italy, Elba and Corsica. Description Adult red-legged partridges are sandy-brown above, pinkish-buff on the belly, and pale grey on the breast, with a prominent gorget of black streaking, bold rufous and black flank-bars, a cream throat, pink legs, and a red bill and eye ring. The crown and upper nape of adult red-legged partridge are a warm pinkish-brown; the fore crown and lateral edges of the crown are pale blue-grey, and the bird has a narrow off-white supercilium running from above the lores to the sides of the lower nape. The lores have a solid bar of black feathering above a patch of pinkish-red skin. This black colouration continues behind the eye, where it broadens, and then extends down around the throat-patch to meet the upper edge of the gorget. There is a patch of pale buff-brown feathering on the ear-coverts, adjoining the black. The eye is surrounded by a bright red eye-ring. The chin and upper throat are creamy-white, and are bordered behind and below by a solid black gorget. The black colour continues down onto the lower throat as a patch of broad triangular black streaks on a pale sandy-grey background. Similar, but narrower, black streaks are present on a pale blue-grey background on the upper neck-sides, while the lower neck-sides are warm pinkish-brown. The breast is pale blue-grey, and the belly pinkish-buff. The flanks are marked with bold bright rufous-brown bars, typically between eight and ten; each bar has a narrow black leading edge, the background colour is off-white in front of each bar, and pale grey behind. The upper parts are plain, unmarked dark sandy-grey. The uppertail-coverts are similar in colour, and contrast with the pinkish-rufous tail-feathers. The bill is bright red, the iris is medium brown, and the legs are pinkish-red. Cultivation and consumption Red-legged partridge are bred for shooting, and sold and eaten as game. Great Britain The natural range of the red-legged partridge is France, Spain and Portugal. However, it was introduced from France to Great Britain in the 18th century, and has since become an important gamebird there. As it is a mediterranean species, it thrives in hot, dry areas with sandy soil. The ability to breed two clutches simultaneously has led to it being extensively reared in captivity, and released for shooting. The breeding of chukars (Alectoris chukar) and red-legged/chukar hybrids is prohibited, due to its impact on wild populations of red-legs. The red-legged partridge is believed to be in decline across its range. New Zealand Many red-legged partridges are kept and bred in captivity in New Zealand aviaries where the population is considered secure at the moment. These particular birds are all descendants from one of the last attempts at introducing the species to the wild by the (Auckland) Acclimatisation Society. A consignment of 1500 eggs was sent from the United Kingdom in July 1980. However, the boxes were delayed by two days and had evidently over-heated en route. There was further delay in getting the eggs through customs and quarantine clearance. By the time they reached Massey University (which had been invested in to take on the project), hopes were not high and only 135 chicks were hatched. Two further consignments totaling 638 eggs were sent mid-1981. From these only 53 chicks hatched. The plan was to rear these birds and put them through six breeding cycles in two years using controlled lighting and thus establish a substantial breeding nucleus. The programme at Massey was soon terminated and all the birds dispersed to other breeders, primarily the game farm at Te Ahoha which had already produced some young, but some were also given to the Wildlife Service. At the end of the 1983 breeding season, the population had increased to 940 birds. The current actual status of wild, self-sustaining red-legged partridges in New Zealand is questionable. Back-yard agriculturalists and gamebird breeders/preserves hold most of the population. Some zoos and farm-parks exhibit this species. It is not frequently eaten by the public. Similar species is the chukar partridge which is not allowed to be kept in captivity and has been naturalized in the South Island as an upland game bird since the 1930s. The chukar partridge's population has been in decline since the late 1980s. Other introduced gamebirds are bobwhite quail, brown quail, California quail, guinea fowl, blue peafowl, wild turkey, and pheasant. Major management efforts are made for the more valued of these species, such as bobwhites and pheasants. References External links Ageing and sexing (PDF; 4.3 MB) by Javier Blasco-Zumeta & Gerd-Michael Heinze red-legged partridge Birds of Europe red-legged partridge Game birds Taxa named by Carl Linnaeus
```html <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>BOOST_&lt;level&gt;_PREDICATE</title> <link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../../index.html" title="Boost.Test"> <link rel="up" href="../testing_tool_ref.html" title="Reference API for writing tests"> <link rel="prev" href="assertion_boost_level_ne.html" title="BOOST_&lt;level&gt;_NE"> <link rel="next" href="assertion_boost_level_no_throw.html" title="BOOST_&lt;level&gt;_NO_THROW"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="path_to_url">People</a></td> <td align="center"><a href="path_to_url">FAQ</a></td> <td align="center"><a href="../../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="assertion_boost_level_ne.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../testing_tool_ref.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="assertion_boost_level_no_throw.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="boost_test.utf_reference.testing_tool_ref.assertion_boost_level_predicate"></a><a class="link" href="assertion_boost_level_predicate.html" title="BOOST_&lt;level&gt;_PREDICATE"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special">&lt;</span><span class="identifier">level</span><span class="special">&gt;</span><span class="identifier">_PREDICATE</span></code></a> </h4></div></div></div> <pre class="programlisting"><span class="identifier">BOOST_WARN_PREDICATE</span><span class="special">(</span><span class="identifier">predicate</span><span class="special">,</span> <span class="identifier">arguments_list</span><span class="special">);</span> <span class="identifier">BOOST_CHECK_PREDICATE</span><span class="special">(</span><span class="identifier">predicate</span><span class="special">,</span> <span class="identifier">arguments_list</span><span class="special">);</span> <span class="identifier">BOOST_REQUIRE_PREDICATE</span><span class="special">(</span><span class="identifier">predicate</span><span class="special">,</span> <span class="identifier">arguments_list</span><span class="special">);</span> </pre> <p> These are generic tools used to validate an arbitrary supplied predicate functor (there is a compile time limit on predicate arity defined by the configurable macro <code class="computeroutput"><span class="identifier">BOOST_TEST_MAX_PREDICATE_ARITY</span></code>). To validate zero arity predicate use <a class="link" href="assertion_boost_level.html" title="BOOST_&lt;level&gt;"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special">&lt;</span><span class="identifier">level</span><span class="special">&gt;</span></code></a> tools. In other cases prefer theses tools. The advantage of these tools is that they show arguments values in case of predicate failure. </p> <p> The first parameter is the predicate itself. The second parameter is the list of predicate arguments each wrapped in round brackets (<code class="computeroutput"><span class="identifier">BOOST_PP</span></code> sequence format). </p> <h6> <a name="boost_test.utf_reference.testing_tool_ref.assertion_boost_level_predicate.h0"></a> <span class="phrase"><a name="boost_test.utf_reference.testing_tool_ref.assertion_boost_level_predicate.example_descr"></a></span><a class="link" href="assertion_boost_level_predicate.html#boost_test.utf_reference.testing_tool_ref.assertion_boost_level_predicate.example_descr">Example: BOOST_&lt;level&gt;_PREDICATE usage</a> </h6> <div class="informaltable"><table class="table"> <colgroup><col></colgroup> <thead><tr><th> <p> Code </p> </th></tr></thead> <tbody><tr><td> <pre xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="preprocessor">#define</span> <span class="identifier">BOOST_TEST_MODULE</span> <span class="identifier">example</span> <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">test</span><span class="special">/</span><span class="identifier">included</span><span class="special">/</span><span class="identifier">unit_test</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span> <span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">unit_test</span><span class="special">;</span> <span class="keyword">bool</span> <span class="identifier">moo</span><span class="special">(</span> <span class="keyword">int</span> <span class="identifier">arg1</span><span class="special">,</span> <span class="keyword">int</span> <span class="identifier">arg2</span><span class="special">,</span> <span class="keyword">int</span> <span class="identifier">mod</span> <span class="special">)</span> <span class="special">{</span> <span class="keyword">return</span> <span class="special">((</span><span class="identifier">arg1</span><span class="special">+</span><span class="identifier">arg2</span><span class="special">)</span> <span class="special">%</span> <span class="identifier">mod</span><span class="special">)</span> <span class="special">==</span> <span class="number">0</span><span class="special">;</span> <span class="special">}</span> <span class="identifier">BOOST_AUTO_TEST_CASE</span><span class="special">(</span> <span class="identifier">test</span> <span class="special">)</span> <span class="special">{</span> <span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">17</span><span class="special">;</span> <span class="keyword">int</span> <span class="identifier">j</span> <span class="special">=</span> <span class="number">15</span><span class="special">;</span> <span class="identifier">unit_test_log</span><span class="special">.</span><span class="identifier">set_threshold_level</span><span class="special">(</span> <span class="identifier">log_warnings</span> <span class="special">);</span> <span class="identifier">BOOST_WARN</span><span class="special">(</span> <span class="identifier">moo</span><span class="special">(</span> <span class="number">12</span><span class="special">,</span><span class="identifier">i</span><span class="special">,</span><span class="identifier">j</span> <span class="special">)</span> <span class="special">);</span> <span class="identifier">BOOST_WARN_PREDICATE</span><span class="special">(</span> <span class="identifier">moo</span><span class="special">,</span> <span class="special">(</span><span class="number">12</span><span class="special">)(</span><span class="identifier">i</span><span class="special">)(</span><span class="identifier">j</span><span class="special">)</span> <span class="special">);</span> <span class="special">}</span> </pre> </td></tr></tbody> </table></div> <div class="informaltable"><table class="table"> <colgroup><col></colgroup> <thead><tr><th> <p> Output </p> </th></tr></thead> <tbody><tr><td> <pre xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="special">&gt;</span> <span class="identifier">example</span> <span class="identifier">Running</span> <span class="number">1</span> <span class="identifier">test</span> <span class="keyword">case</span><span class="special">...</span> <span class="identifier">test</span><span class="special">.</span><span class="identifier">cpp</span><span class="special">(</span><span class="number">14</span><span class="special">):</span> <span class="identifier">warning</span> <span class="identifier">in</span> <span class="string">"test"</span><span class="special">:</span> <span class="identifier">condition</span> <span class="identifier">moo</span><span class="special">(</span> <span class="number">12</span><span class="special">,</span><span class="identifier">i</span><span class="special">,</span><span class="identifier">j</span> <span class="special">)</span> <span class="identifier">is</span> <span class="keyword">not</span> <span class="identifier">satisfied</span> <span class="identifier">test</span><span class="special">.</span><span class="identifier">cpp</span><span class="special">(</span><span class="number">15</span><span class="special">):</span> <span class="identifier">warning</span> <span class="identifier">in</span> <span class="string">"test"</span><span class="special">:</span> <span class="identifier">condition</span> <span class="identifier">moo</span><span class="special">(</span> <span class="number">12</span><span class="special">,</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">j</span> <span class="special">)</span> <span class="identifier">is</span> <span class="keyword">not</span> <span class="identifier">satisfied</span> <span class="keyword">for</span> <span class="special">(</span> <span class="number">12</span><span class="special">,</span> <span class="number">17</span><span class="special">,</span> <span class="number">15</span> <span class="special">)</span> <span class="special">***</span> <span class="identifier">No</span> <span class="identifier">errors</span> <span class="identifier">detected</span> </pre> </td></tr></tbody> </table></div> <div class="note"><table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/src/images/note.png"></td> <th align="left">Note</th> </tr> <tr><td align="left" valign="top"><p> Note difference in error log from <a class="link" href="assertion_boost_level.html" title="BOOST_&lt;level&gt;"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special">&lt;</span><span class="identifier">level</span><span class="special">&gt;</span></code></a> </p></td></tr> </table></div> <p> See also: </p> <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"> <a class="link" href="assertion_boost_level.html" title="BOOST_&lt;level&gt;"><code class="computeroutput"><span class="identifier">BOOST_</span><span class="special">&lt;</span><span class="identifier">level</span><span class="special">&gt;</span></code></a> </li></ul></div> </div> <table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="assertion_boost_level_ne.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../testing_tool_ref.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="assertion_boost_level_no_throw.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> ```
English musician George Ezra has released three studio albums, two extended plays, fifteen singles and thirteen music videos. After releasing two EPs, Did You Hear the Rain? in October 2013 and Cassy O' in March 2014, Ezra rose to prominence with the release of his hit single "Budapest", which reached the top ten in numerous countries around the world, reaching number one in Austria, New Zealand and the Czech Republic. Ezra's debut studio album Wanted on Voyage, which was released on 30 June 2014, reached number one in the UK and the top ten in seven other countries, including Australia. It was the third best-selling album of 2014 in the UK. The album also peaked at number 19 on the Billboard 200 charts in the United States. Ezra released six singles from the album: "Did You Hear the Rain?", "Budapest", "Cassy O'", "Blame It on Me", "Listen to the Man" and "Barcelona". Zane Lowe, then a BBC Radio 1 DJ, called him "one of the most compelling and powerful new vocalists around." Ezra's second studio album, Staying at Tamara's, which was released on 23 March 2018 by Columbia Records, reached number one in the UK and the top ten in seven other countries, including Australia. It was accompanied by five singles: "Don't Matter Now", "Paradise", "Shotgun", "Pretty Shining People" and "Hold My Girl". "Paradise" reached number two on the UK Singles Chart. In June 2018, Ezra gained his first UK number-one single with "Shotgun". In late 2021, Ezra released "Come on Home for Christmas" as an Amazon exclusive. Ezra's third studio album Gold Rush Kid was released on 10 June 2022. Four singles from the album have been released: "Anyone for You (Tiger Lily)" in January 2022, "Green Green Grass" in April 2022, "Dance All Over Me" in September 2022 and "Sweetest Human Being Alive" in January 2023. Albums Extended plays Singles Promotional singles Other charted and certified songs Music videos Notes References External links Ezra, George Folk music discographies
```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="path_to_url" android:shape="rectangle"> <solid android:color="@android:color/holo_blue_light"/> </shape> ```
Stephen Griew (1928 – 2 October 2010) was the third President of Athabasca University He was born in London, and also served at University of Toronto and Murdoch University. References Presidents of Athabasca University Academic staff of the University of Toronto 1928 births 2010 deaths
Sanin Muminović (born 2 November 1990) is a Croatian professional footballer who most recently played as a defender for Austrian Regionalliga club Stripfing. Career Muminović started his senior career with Orijent. After that, he played for Pomorac 1921, Krka, Zavrč, Valdres, and Novigrad. In 2017, Muminović signed with Slovenian PrvaLiga club Aluminij, where he made 36 appearances and scored one goal. On 10 August 2020, he joined Austrian club Horn. On 31 January 2021, Muminović signed a contract with Bosnian Premier League club Krupa. He made his official debut for the club on 27 February 2021, in a league game against Zrinjski Mostar. References External links The Croat returned from Iraq and stepped up the biggest surprise of the 1st SNL Sanin Muminović: "The best goal of my career!" Sanin Muminović: I have never been in my career Sanin Muminović, football player from Novigrad: With a few reinforcements, we could fight for the top of the Second League We will be even better when the championship starts 1990 births Living people People from Srebrenica Sportspeople from Vlasenica Region Men's association football defenders Bosnia and Herzegovina men's footballers HNK Orijent players NK Pomorac 1921 players NK Krka players NK Zavrč players NK Novigrad players NK Aluminij players Al-Quwa Al-Jawiya players SV Horn players FK Krupa players First Football League (Croatia) players Slovenian PrvaLiga players Norwegian Third Division players 2. Liga (Austria) players Premier League of Bosnia and Herzegovina players Bosnia and Herzegovina expatriate men's footballers Expatriate men's footballers in Croatia Bosnia and Herzegovina expatriate sportspeople in Croatia Expatriate men's footballers in Slovenia Bosnia and Herzegovina expatriate sportspeople in Slovenia Expatriate men's footballers in Norway Bosnia and Herzegovina expatriate sportspeople in Norway Expatriate men's footballers in Iraq Expatriate men's footballers in Austria Bosnia and Herzegovina expatriate sportspeople in Austria
Millwood is a rural locality in the Toowoomba Region, Queensland, Australia. In the Millwood had a population of 23 people. History The name Millwood was coined by local farmer, Tom Twidale, by combining Mill from Millmerran and wood from Inglewood as the locality lay between those two towns. Millwood Provisional School opened on 23 October 1944. In January 1960 it became Millwood State School. It closed on 25 June 1965. In the Millwood had a population of 23 people. Road infrastructure The Millmerran–Inglewood Road (State Route 82) runs through from north-east to south. References Toowoomba Region Localities in Queensland
```javascript // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This benchmark is based on the six-speed benchmark build output. new BenchmarkSuite( "ES6", [1000], [new Benchmark("ES6", false, false, 0, ES6, Setup)] ); var map; function Setup() { map = new Map(); for (var i = 0; i < 500; i++) { map.set(i + "", i); } } function ES6() { return map.get("499") === 499; } ```
```objective-c // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #pragma once #include "paddle/phi/core/dense_tensor.h" namespace phi { template <typename T, typename Context> void GammainccGradKernel(const Context& dev_ctx, const DenseTensor& x, const DenseTensor& y, const DenseTensor& d_out, DenseTensor* d_y); } // namespace phi ```
Alpheus Forest Haymond (born near Fairmont, Marion County, in what was then the state of Virginia, December 15, 1823; died December 15, 1893) was a lawyer, politician, and justice of the Supreme Court of Appeals of West Virginia from 1872 to the beginning of 1883. Haymond was the son of Thomas Haymond, a lawyer and one-term U.S. Congressman. After attending an academy in Morgantown and spending a few terms at the College of William & Mary, he studied law with Edgar C. Wilson and was admitted to the bar in 1842 at the age of 19. In 1853 and 1857 he was elected to represent Marion County in the Virginia House of Delegates. He was a delegate to the Virginia Secession Convention of 1861 and voted against secession, but followed his father into the service of the Confederate army, serving as a field commissary in Early's Brigade. Following the war he formed a law partnership with Aretas B. Fleming, who was later governor. Haymond's right to practice law was restored by a special act of the legislature in 1868, and Congress restored his right to hold office. In 1872 he was elected to the convention tasked with revising the West Virginia Constitution. In the election which enacted the constitution he was elected as a Democrat to the Supreme Court of Appeals. He was re-elected in 1876, but resigned January 1, 1883 to return to private practice. Haymond married Maria Boggess (1828–1918); they had many children. Their son William Stanley Haymond (1852–1928) became a lawyer and was elected to the 14th Circuit Court in West Virginia, serving from 1913 to 1921. Another son, Thomas S. Haymond (1869–1954), was a coal company executive influential in the development of Letcher County, Kentucky; the settlement of Haymond there is named after him. References West Virginia lawyers Democratic Party members of the West Virginia House of Delegates Justices of the Supreme Court of Appeals of West Virginia 1823 births 1893 deaths 19th-century American politicians 19th-century American judges 19th-century American lawyers People from Marion County, West Virginia Democratic Party members of the Virginia House of Delegates
```cmake function(install_autopoint) # variables for configuring autopoint.in set(PACKAGE "gettext-tools") set(ARCHIVE_VERSION "${VERSION}") set(ARCHIVE_FORMAT "dirgz") set(bindir [[${prefix}/tools/gettext/bin]]) set(datadir [[${datarootdir}]]) set(exec_prefix [[${prefix}]]) set(PATH_SEPARATOR ":") set(RELOCATABLE "yes") file(STRINGS "${SOURCE_PATH}/gettext-tools/configure" VERSIONS_FROM_CONFIGURE REGEX "^ *(ARCHIVE_VERSION|VERSION)=.*$" ) foreach(LINE IN LISTS VERSIONS_FROM_CONFIGURE) if(LINE MATCHES "^ *(ARCHIVE_VERSION|VERSION)='?([0-9.]+)'?$") set(${CMAKE_MATCH_1} "${CMAKE_MATCH_2}") endif() endforeach() set(WORKING_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}") file(MAKE_DIRECTORY "${WORKING_DIR}") # autopoint script configure_file("${SOURCE_PATH}/gettext-tools/misc/autopoint.in" "${WORKING_DIR}/autopoint" @ONLY) # data tarball if(CMAKE_HOST_WIN32) vcpkg_acquire_msys(MSYS_ROOT PACKAGES gzip) vcpkg_add_to_path("${MSYS_ROOT}/usr/bin") endif() file(COPY "${SOURCE_PATH}/gettext-tools/misc/archive.dir.tar" DESTINATION "${WORKING_DIR}") vcpkg_execute_required_process( COMMAND gzip -f archive.dir.tar WORKING_DIRECTORY "${WORKING_DIR}" LOGNAME gzip-${TARGET_TRIPLET} ) # installation file(INSTALL "${WORKING_DIR}/autopoint" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin" FILE_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) file(INSTALL "${WORKING_DIR}/archive.dir.tar.gz" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gettext/gettext") endfunction() ```
```javascript import { test } from '../../test'; export default test({ async test({ assert, component }) { const { foo, p } = component; /** @type {string[]} */ const values = []; Object.defineProperty(p.childNodes[0], 'nodeValue', { set(value) { values.push('' + value); } }); await foo.double(); assert.deepEqual(values, ['6']); } }); ```
```xml import * as React from "react"; import styles from "./ModernCharts.module.scss"; import { IModernChartsProps } from "../IModernChartsWebPartProps"; import { MChart } from "../IModernChartsWebPartProps"; import "chart.js"; import { Doughnut } from "react-chartjs-2"; import { Line } from "react-chartjs-2"; import { Pie } from "react-chartjs-2"; import { Bar } from "react-chartjs-2"; import { HorizontalBar } from "react-chartjs-2"; import { Radar } from "react-chartjs-2"; import { Polar } from "react-chartjs-2"; import ChartOptions from "../ChartOptions"; import { DocumentCard, DocumentCardTitle, DocumentCardLocation, DocumentCardPreview, IDocumentCardPreviewProps, } from "office-ui-fabric-react/lib/DocumentCard"; export default class ModernCharts extends React.Component< IModernChartsProps, {} > { public render(): JSX.Element { const charts: JSX.Element[] = this.props.charts.map( (chart: MChart, i: number) => { return ( <DocumentCard onClickHref="#" className={ styles.docContainer + " ms-Grid-col ms-u-sm12 ms-u-md12 ms-u-lg" + chart.config.size } key={chart.key} > <div className={styles.chartCard}> {this.chart( ChartOptions.Data(chart), ChartOptions.Options(), chart.config.type )} </div> <DocumentCardLocation location={chart.config.description} /> <DocumentCardTitle title={chart.config.title} /> </DocumentCard> ); } ); return ( <div className={styles.chartjs + " ms-Grid"}> <div className={"ms-Grid-row"}>{charts}</div> <div style={{ clear: "both" }} /> </div> ); } public chart(data: Object, options: Object, type: string) { var tChart: any; switch (type) { case "doughnut": tChart = <Doughnut data={data} options={options} />; return tChart; case "line": return ( <Line data={data} options={options} legend={{ display: false }} /> ); case "pie": tChart = <Pie data={data} options={options} />; return tChart; case "bar": tChart = ( <Bar data={data} options={options} legend={{ display: false }} /> ); return tChart; case "horizontalbar": tChart = ( <HorizontalBar data={data} options={options} legend={{ display: false }} /> ); return tChart; case "radar": tChart = ( <Radar data={data} options={options} legend={{ display: false }} /> ); return tChart; case "polar": tChart = <Polar data={data} options={options} />; return tChart; default: tChart = <Line data={data} options={options} />; return tChart; } } } ```
Kyocera Kona is a line of low cost cellular phones manufactured by Kyocera Communications, Inc. It was one of a range of low cost and contract free phones available in the US during 2013. Kyocera Kona flip phones use NetFront web browser. It's also available on Sprint's network with a two year contract. References Kona
```xml import {ControllerMiddlewares} from "../decorators/controller.js"; import {TokenProvider} from "../interfaces/TokenProvider.js"; import {Provider} from "./Provider.js"; import {ProviderType} from "./ProviderType.js"; export class ControllerProvider<T = any> extends Provider<T> { public tokenRouter: string; constructor(provide: TokenProvider, options: Partial<Provider> = {}) { super(provide, options); this.type = ProviderType.CONTROLLER; } /** * * @returns {any[]} */ get middlewares(): ControllerMiddlewares { return Object.assign( { use: [], useAfter: [], useBefore: [] }, this.store.get("middlewares", {}) ); } /** * * @param middlewares */ set middlewares(middlewares: ControllerMiddlewares) { const mdlwrs = this.middlewares; const concat = (key: string, a: any, b: any) => (a[key] = a[key].concat(b[key])); Object.keys(middlewares).forEach((key: string) => { concat(key, mdlwrs, middlewares); }); this.store.set("middlewares", mdlwrs); } } ```
```go package mocks import ( "github.com/aws/amazon-ssm-agent/common/identity/credentialproviders" "github.com/stretchr/testify/mock" ) var ( MockAvailabilityZone = "us-east-1a" MockAvailabilityZoneId = "use1-az2" MockCredentials = credentialproviders.GetRemoteCreds() MockIdentityType = "EC2" MockInstanceID = "i-123123123" MockInstanceType = "someInstanceType" MockIsIdentityEnvironment = true MockRegion = "us-east-1" MockServiceDomain = "amazonaws.com" MockShortInstanceID = "i-123123123" ) func NewDefaultMockAgentIdentity() *IAgentIdentity { agentIdentity := IAgentIdentity{} agentIdentity.On("AvailabilityZone").Return(MockAvailabilityZone, nil) agentIdentity.On("AvailabilityZoneId").Return(MockAvailabilityZoneId, nil) agentIdentity.On("Credentials").Return(MockCredentials, nil) agentIdentity.On("IdentityType").Return(MockIdentityType, nil) agentIdentity.On("InstanceID").Return(MockInstanceID, nil) agentIdentity.On("InstanceType").Return(MockInstanceType, nil) agentIdentity.On("IsIdentityEnvironment").Return(MockIsIdentityEnvironment) agentIdentity.On("Region").Return(MockRegion, nil) agentIdentity.On("ServiceDomain").Return(MockServiceDomain, nil) agentIdentity.On("ShortInstanceID").Return(MockShortInstanceID, nil) agentIdentity.On("GetServiceEndpoint", mock.AnythingOfType("string")).Return(func(service string) string { return service + "." + MockRegion + "." + MockServiceDomain }) return &agentIdentity } func NewMockAgentIdentity(instanceID, region, availabilityZone, instanceType, identityType string) *IAgentIdentity { agentIdentity := IAgentIdentity{} agentIdentity.On("AvailabilityZone").Return(availabilityZone, nil) agentIdentity.On("Credentials").Return(MockCredentials, nil) agentIdentity.On("IdentityType").Return(identityType, nil) agentIdentity.On("InstanceID").Return(instanceID, nil) agentIdentity.On("InstanceType").Return(instanceType, nil) agentIdentity.On("IsIdentityEnvironment").Return(true) agentIdentity.On("Region").Return(region, nil) agentIdentity.On("ServiceDomain").Return("amazonaws.com", nil) agentIdentity.On("ShortInstanceID").Return(instanceID, nil) return &agentIdentity } ```
```html <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>basic_socket_acceptor::message_out_of_band</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor"> <link rel="prev" href="message_flags.html" title="basic_socket_acceptor::message_flags"> <link rel="next" href="message_peek.html" title="basic_socket_acceptor::message_peek"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <td align="center"><a href="../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="path_to_url">People</a></td> <td align="center"><a href="path_to_url">FAQ</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="message_flags.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="message_peek.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="boost_asio.reference.basic_socket_acceptor.message_out_of_band"></a><a class="link" href="message_out_of_band.html" title="basic_socket_acceptor::message_out_of_band">basic_socket_acceptor::message_out_of_band</a> </h4></div></div></div> <p> <span class="emphasis"><em>Inherited from socket_base.</em></span> </p> <p> <a class="indexterm" name="boost_asio.indexterm.basic_socket_acceptor.message_out_of_band"></a> Process out-of-band data. </p> <pre class="programlisting">static const int message_out_of_band = implementation_defined; </pre> </div> <table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="message_flags.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="message_peek.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> ```
is a NES/Famicom platform video game, published by IGS in 1991. Gameplay The player controls a yellow armadillo with a red hat named Billy the Shell. Between levels, the player moves around on a map screen, similar to Super Mario Bros. 3. The map screen consists of many small squares, which the player can "capture" one at a time, after which they're crossed out and can be moved across freely. There are also some larger squares with pictures on them, and if the player is on them, they can choose to begin an action stage, which has to be cleared before the player can pass it. There is also another character moving around on the map screen, and if the player is on the same space as them, they can start a boss battle, which has to be cleared to move onto the next world. The player can walk around and jump, and roll into a ball. While rolled up in ball form, the player can roll and bounce around. Control in this form can be slippery, but it is the only way to attack enemies. Also, while rolled up in a ball, the player can bounce higher (by holding the Jump button) than ordinary jumps would allow. There is also a two player mode. Two players (player one has a red hat, player two has green) take turns moving around on the same map and playing the stages when they reach them. If the boss is defeated, both players will move on to the next world. A bonus life is awarded every 30,000 points. There were plans for Armadillo to be released in North America, as well as a sequel, but both were cancelled. A sequel called Armadillo Gaiden was also in the making for the Nintendo Game Boy, however it instead got relicensed and sold as Ultraman Ball. Among some NES enthusiasts familiar with unlicensed bootleg game cartridges, this game is also known as Super Mario IV, in which the armadillo's character sprites have been edited to look like Super Mario. References External links 1991 video games Fortyfive games Information Global Service games Japan-exclusive video games Nintendo Entertainment System games Nintendo Entertainment System-only games Platformers Video games developed in Japan Multiplayer and single-player video games Fictional armadillos
Nature Reviews Drug Discovery is a monthly peer-reviewed review journal published by Nature Portfolio. It was established in 2002 and covers drug discovery and development. The editor-in-chief is Peter Kirkpatrick. According to the Journal Citation Reports, the journal has a 2021 impact factor of 112.288, ranking it 1st out of 158 journals in the category "Biotechnology & Applied Microbiology" and 1st out of 279 journals in the category "Pharmacology & Pharmacy". Reviews are commissioned to specialists and supplemented with glossary explanations for non-specialist readers and illustrated with figures drawn by Nature's in-house art editors. Besides reviews, the journal publishes analysis articles based on existing datasets (e.g. metaanalysis), progress articles that focus on outstanding issues, and perspective articles—typically opinions or historical pieces. See also Nature Biotechnology Annual Review of Pharmacology and Toxicology Pharmacological Reviews References External links Pharmacology journals Nature Research academic journals English-language journals Monthly journals Academic journals established in 2002 Review journals
Ņikita Jevpalovs (born 9 September 1994) is a Latvian professional ice hockey forward currently playing for the Boxers de Bordeaux in the Ligue Magnus (FRA). Playing career Jevpavlos spent his junior career between Canada and Latvia, mostly playing in the Quebec Major Junior Hockey League with Blainville-Boisbriand Armada. Undrafted, on January 1, 2015, he was signed by San Jose Sharks to a two-year entry-level agreement. In his rookie professional season in 2015–16, Jevpavlovs was reassigned by the Sharks between the ECHL and AHL playing for the Allen Americans and San Jose Barracuda. In the following 2016–17 season, he exclusively played with the Barracuda, notching a professional high 13 goals and 21 points in 65 games. At the expiration of his contract with the Sharks, Jevpalovs was not tendered a qualifying offer and returned to Latvia to play for Dinamo Riga of the Kontinental Hockey League on July 4, 2017. He made his KHL debut in the 2017–18 season opening match against Avangard Omsk, and scored his first goal on 31 August in a defeat to Spartak Moscow. He completed the season scoring just 5 goals and 8 points in 46 games. As a free agent, Jevpalovs opted for a return to North America, agreeing to a one-year AHL contract with the Laval Rocket, affiliate to the Montreal Canadiens on July 1, 2018. After scoring a career-high 25 points in the AHL, Jevpalovs signed a subsequent one-year, one-way contract with Laval. Following his second season with the Laval Rocket and with the COVID-19 pandemic delaying the 2020–21 North American season, Jevpalovs opted to remain in Europe by signing a one-year contract with Austrian outfit, the Dornbirn Bulldogs, on 1 September 2020. International play Jevpavlos represented Latvia on junior level. He was selected by Bob Hartley for 2018 world championships roster. He made his WC debut on opening game against Norway. Career statistics Regular season and playoffs International References External links 1994 births Living people Allen Americans players Blainville-Boisbriand Armada players Boxers de Bordeaux players Dinamo Riga players Dornbirn Bulldogs players Laval Rocket players Latvian ice hockey forwards HK Riga players San Jose Barracuda players Ice hockey people from Riga
```sqlpl USE product; CREATE TABLE many_permutations1 ( a char(10), b char(10) CHARACTER SET latin1, c char(10) COLLATE latin1_swedish_ci, d char(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci, e char(10) COLLATE latin1_general_ci, f char(10) CHARACTER SET utf8mb4, g char(10) COLLATE utf8mb4_general_ci ) DEFAULT CHARSET=latin1; CREATE TABLE many_permutations2 ( a char(10), b char(10) CHARACTER SET latin1, c char(10) COLLATE latin1_swedish_ci, d char(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci, e char(10) COLLATE latin1_general_ci, f char(10) CHARACTER SET utf8mb4, g char(10) COLLATE utf8mb4_general_ci ) DEFAULT CHARSET=latin1 COLLATE latin1_general_ci; CREATE TABLE many_permutations3 ( a char(10), b char(10) CHARACTER SET latin1, c char(10) COLLATE latin1_swedish_ci, d char(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci, e char(10) COLLATE utf8_general_ci, f char(10) CHARACTER SET utf8mb3, g char(10) COLLATE utf8_unicode_ci ) DEFAULT CHARSET=utf8; CREATE TABLE many_permutations4 ( a char(10), b char(10) CHARACTER SET latin1, c char(10) COLLATE latin1_swedish_ci, d char(10) CHARACTER SET latin1 COLLATE latin1_swedish_ci, e char(10) COLLATE utf8_general_ci, f char(10) CHARACTER SET utf8mb3, g char(10) COLLATE utf8_unicode_ci ) DEFAULT CHARSET=utf8mb3 COLLATE utf8_unicode_ci; ```
Carlos Alberto Ospina Hernández (born 10 September 1982 in Nechí) is a Colombian former professional cyclist. Major results 2008 3rd Overall Cinturón a Mallorca 2009 1st Prologue (TTT) Vuelta a Colombia 2010 1st Time trial, National Road Championships 2011 2nd Road race, National Road Championships 2013 1st Time trial, National Road Championships 2014 3rd Tobago Cycling Classic References External links 1982 births Living people Colombian male cyclists South American Games bronze medalists for Argentina South American Games medalists in cycling Competitors at the 2010 South American Games Cyclists from Antioquia Department Competitors at the 2010 Central American and Caribbean Games 21st-century Colombian people
Griff Barnett (born Manley Griffith, November 12, 1884 – January 12, 1958) was an American actor. Barnett was born in Blue Ridge, Texas in 1884. In the early 20th century, Barnett was a member of the Mack-Hillard stock theater company in Wichita, Kansas. He also worked with stock theater companies in the Chicago area. He played the role of the Rexall family druggist in commercials on The Phil Harris-Alice Faye Show on radio in the late 1940s and early 1950s. He also appeared in numerous films from the 1930s through the 1950s, including To Each His Own (1946), Apartment for Peggy (1948), and Pinky (1949). He frequently played doctors or lawyers. In 1954, he appeared in episode 131 of the TV series, The Lone Ranger. Barnett died of pneumonia and heart trouble at home in El Monte, California, on January 12, 1958, aged 73. He is buried in Rose Hills Memorial Park in Whittier, California. Selected filmography The Lone Ranger (1938, Serial) - Rancher (uncredited) Santa Fe Stampede (1938) - Townsman Henry Jones (uncredited) The Lone Ranger Rides Again (1939, Serial) - E.B. Tully (Ch. 6) (uncredited) Those High Grey Walls (1939) - Prison Tailor (uncredited) The Shadow (1940, Serial) - Stephen Prescott (uncredited) Frontier Vengeance (1940) - Joel Hunter Arizona (1940) - Sam Hughes The Lady from Cheyenne (1941) - Cork Supporter (uncredited) Bachelor Daddy (1941) - Bailiff (uncredited) Gangs of Sonora (1941) - Man on Stagecoach (uncredited) Outlaws of Cherokee Trail (1941) - Jury Foreman (uncredited) Death Valley Outlaws (1941) - Train Agent (uncredited) A Missouri Outlaw (1941) - Man with Ward (uncredited) Dick Tracy vs. Crime, Inc. (1941, Serial) - Plant Watchman (uncredited) Stardust on the Sage (1942) - Larkin (uncredited) The Sombrero Kid (1942) - Townsman (uncredited) Shadows on the Sage (1942) - Steve Jackson The Story of Dr. Wassell (1944) - 'Janssen' Passenger (uncredited) Wilson (1944) - Reporter (uncredited) Strange Holiday (1945) - Regan To Each His Own (1946) - Daniel Norris Without Reservations (1946) - Train Conductor (uncredited) Danger Woman (1946) - Dr. George Carey Duel in the Sun (1946) - The Bordertown Jailer (uncredited) The Arnelo Affair (1947) - Mr. Adams (uncredited) Suddenly It's Spring (1947) - Conductor on Train (uncredited) The Michigan Kid (1947) - Prentiss Dawson The Millerson Case (1947) - Doc Sam Millerson Possessed (1947) - Coroner Stepchild (1947) - Burns Gunfighters (1947) - Mr. Banner The Son of Rusty (1947) - Judge (uncredited) Unconquered (1947) - Brother Andrews - of Pennsylvania Wild Harvest (1947) - Rankin Magic Town (1947) - Henry - Stringer's Office (uncredited) Cass Timberlane (1947) - Herman, the Butler The Gangster (1947) - Dorothy's Father (uncredited) Daisy Kenyon (1947) - Will Thompson (uncredited) The Tender Years (1948) - Sen. Cooper Arch of Triumph (1948) - Fernand (uncredited) Saigon (1948) - Surgeon Fury at Furnace Creek (1948) - Appleby Fighting Father Dunne (1948) - Governor Tap Roots (1948) - Dr. MacIntosh The Walls of Jericho (1948) - Judge Hutto For the Love of Mary (1948) - Timothy Peppertree Apartment for Peggy (1948) - Dr. Philip Conway Criss Cross (1949) - Pop Mother Is a Freshman (1949) - Dean Gillingham The Doolins of Oklahoma (1949) - Deacon Burton The Fountainhead (1949) - Judge (uncredited) Any Number Can Play (1949) - Police Desk Sergeant (uncredited) Pinky (1949) - Dr. Joseph 'Doc Joe' McGill Holiday Affair (1949) - Mr. Ennis No Man of Her Own (1950) - Dr. Parker Sierra (1950) - Dr. Hank Robbins Customs Agent (1950) - Charles McGraw Peggy (1950) - Dr. Philip Wilcox Convicted (1950) - Mr. Hufford (uncredited) When I Grow Up (1951) - Dr. Bailey Home Town Story (1951) - Uncle Cliff Two of a Kind (1951) - William McIntyre Passage West (1951) - Papa Emil Ludwig Cattle Drive (1951) - Conductor O'Hara Scandal Sheet (1952) - Judge Elroy Hacker The Treasure of Lost Canyon (1952) - Judge Wade The Marrying Kind (1952) - Charley The Sellout (1952) - J.R. Morrison The Duel at Silver Creek (1952) - Dan 'Pop' Muzik (uncredited) Angel Face (1953) - The Judge The Court-Martial of Billy Mitchell (1955) - George Carlson (uncredited) The Spirit of St. Louis (1957) - Dad (Farmer) (uncredited) (final film role) References External links 1884 births 1958 deaths 20th-century American male actors People from El Monte, California Male actors from Texas Burials at Rose Hills Memorial Park American male radio actors American male film actors American male stage actors People from Collin County, Texas
```javascript // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --allow-natives-syntax --opt --no-always-opt --deopt-every-n-times=6 // Check that stress deopt count resets correctly // Function with two deopt points function f(x) { return x + 1; } %PrepareFunctionForOptimization(f); f(1); %OptimizeFunctionOnNextCall(f); // stress_deopt_count == 6 f(1); assertOptimized(f, undefined, undefined, false); // stress_deopt_count == 4 f(1); assertOptimized(f, undefined, undefined, false); // stress_deopt_count == 2 f(1); // deopt & counter reset assertUnoptimized(f, undefined, undefined, false); // stress_deopt_count == 6 %PrepareFunctionForOptimization(f); %OptimizeFunctionOnNextCall(f); f(1); assertOptimized(f, undefined, undefined, false); // stress_deopt_count == 4 f(1); assertOptimized(f, undefined, undefined, false); // stress_deopt_count == 2 f(1); // deopt & counter reset assertUnoptimized(f, undefined, undefined, false); ```
```shell #!/usr/bin/env bash # <xbar.title>Church of England Liturgical Calendar</xbar.title> # <xbar.version>v1.0</xbar.version> # <xbar.author>Christian Selvaratnam</xbar.author> # <xbar.author.github>cselvaratnam</xbar.author.github> # <xbar.desc>Displays the title of the church season or festival of the day and the Collect of the Day from the Church of England website.</xbar.desc> # <xbar.image>path_to_url # <xbar.dependencies>bash</xbar.dependencies> # <xbar.abouturl>path_to_url # Collect the front page of the Church of England website web=$(curl -f -s -S path_to_url # Extract the season/festival title from the Prayer for the Day full_title=$(echo $web | sed 's/.*<div class="textfill-footer">.*<small>\(.*\)<\/small>.*/\1/') # Make short version of the title short_title=$(echo $full_title | sed -e 's/^The //' -e 's/Blessed Virgin Mary/BVM/' -e 's/ (.*$//' -e 's/,.*//') # Extract the Collect of the Day and reformat collect=$(echo $web | sed -e 's/.*<div class="textfill-footer">.*<p>\(.*\)<\/p>.*/\1/' -e 's/<br \/>/\\r/g' -e 's/\\r /\\r/g') printf "%s\n" "$short_title" echo "---" printf "%s\n" "$full_title" printf "%s\n" "$collect" echo "Refresh | refresh=true" ```
```c# @* For more information on enabling MVC for empty projects, visit path_to_url *@ @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Hello world from RazorClassLibrary1</title> </head> <body> <h1>RazorClassLibrary1 - About</h1> <h2>Hello world from: RazorClassLibrary1/Areas/MyFeature/Views/About/Index.cshtml</h2> </body> </html> ```
in fashion refers to the any use of elements in fashion, especially in American and European fashion. Since the 17th century, Chinese arts and aesthetic were sources of inspiration to European artists, creators, and fashion designers when goods from oriental countries were widely seen for the first time in Western Europe. Western was also often mixed with other exotic elements which were not all indigenous to China. Throughout its history, in fashion was sometimes a display of cultural appreciation; but at times, it was also associated with exoticism, Orientalism, cultural appropriation, Western imperialism, and colonialism, and eroticism. History Pre-17th century Luxury goods had been entering European countries from China since the ancient times. The early contacts of Europeans with China had also directly influenced their fashion. Silk from China, as well as textiles from India and Turkey were extremely popular among the European royalty. The art of sericulture itself originated in China and was introduced in the West to the Byzantine Empire. The secret of sericulture was eventually smuggled out of China in the 6th century by the Byzantine empire, which then became an important component of the Byzantine industry and allowed the Byzantine empire to gain monopoly of silk in Europe. From the eleventh century, the art of sericulture was spread to Italy and to Southern France. However, the import of raw silk from China continued to remain significant. During the Italian Renaissance period (14th to 17th century), imperial China was seen as a refined civilization which was equal to Europe except for religion and as very advanced in terms of science, technology, architecture, and culture; as such, Italian elites would dress in Chinese fashion to show off their wealth. These Chinese influences in fashion were illusions created by Italian craftsmen who had started to produce in Lucca and had appropriated Chinese cultural symbols, such as the lotus flowers, pomegranates, peonies, florets, phoenixes and dragons. Chinese silk which was manufactured in China to fit European taste continued to be imported in Europe; this import increased even more in the late 17th century as direct maritime trade was established between China and Europe. The introduction of items, such as painted silk, pearls, and umbrellas, from China were also sped up in the 1400s through the sea routes. In the 16th century, Chinese brocades were exported from China to Europe to make the vestments of priests in Roman Catholic cathedrals.According to British records dating to the late 19th century, gold foil was the ordinary form of precious metal which was used in embroidery and was a Chinese invention wherein Chinese people invented the process of laying a thin gold leaf on paper before rolling it around a silk thread. Chinese gold thread technology were later introduced the West and adopted by Italian weavers in their goldwork. 17th to 18th century The 17th to 18th centuries, Western fashion was greatly enriched by the various items which were imported from the East which led to the introduction of new patterns and new possibilities in Western dress and was immediately imitated by mills found in England and France. As China was considered as the greatest empire in the 17th and 18th century, China and became in vogue in Europe; in this period, however, was the result of a conscious attempt in making "oriental culture" acceptable to the taste of Europeans. 17th century In the 17th century, Chinese luxury items, such as Chinese textiles and porcelain, were introduced in Italian port cities, Portugal, England, and Holland; these items were what Europeans used to informed themselves about the customs and cultures of the East. Imported porcelain from China depicted how clothing was worn in China while Imported Chinese textiles led to fascination in Europe due to the technical skills found in the weaving, hand-painting, and needlework of Chinese silk. Chinese textiles were readily tailored into Western-style garments. The large amounts of imported Chinese patterned silk textiles in the Western-sphere also influenced the Europeans' perception of Chinese designs; this became known as . , however, was the result of the European's misunderstandings of authentic Chinese art and life. Not only did Europe imported Chinese textiles, but they also imitated Chinese textiles. Moreover, import of textiles from Asia by the East India companies in the late 17th and early 18th centuries influenced European designs creating a "bizarre style" as designs and motifs were blended into strange and familiar motifs and was influenced by and . 18th century In the 18th century, China was tremendously popular in France, leading to what was referred as the "Oriental Renaissance" by Edgar Quinet in 1848. From this period and throughout the 19th century, was especially celebrated in France, and the origin of most Chinese-inspired fashion was French during this period. French Chinese fashion, which involved the wearing of petticoats with frills, was also introduced in England where it became fashionable among British women; it is however unknown if British women were aware that they were wearing French Chinese fashion. This craze for China was also shared by England which also showed an obsession for Chinese culture objects in the 18th century. was also a popular theme in masquerade balls, and King Gustav III of Sweden was even dressed in Chinese robes by the Swedish royal family at some point in his lifetime when they were at the summer palace in Drottningholm. The craze for however started to wane in England in the second half of the eighteenth century and further receded in Europe during the 19th century. 19th century As a result of Europe being at the wake of industrialization, and due to Europeans' perception that Chinese civilization was almost outdated following the first and the second Opium Wars lead to the decrease of popularity in Europe. However, this period was marked by an era of universal colonial exchanges and exposure to various categories found in Orient, such as textiles (e.g. silk) from China and Chinese dress elements (e.g. the precursor of the cheongsam). Many items were looted from China and brought back to Europe during this period. The Old Summer Palace, known as () in Chinese, in particular, which was sacked by Anglo-French forces in 1860s gained the "mythical status as a source of Chinese objects in the West". From the looting of the Old Summer Palace, the French not only looted the imperial treasures, but also forced open the imperial warehouses stealing shiploads of clothing, jewellery, hats, and rolls of fabrics, amongst many other items. Looted items from the Old Summer Palace also flooded the markets of Britain; a cap which was said to have belonged to the Chinese emperor was presented to Queen Victoria, along with a pekingese dog, which became known as Looty. In Europe, these looted items were sometimes cut into a western-style clothing. At the end of the 19th century, British fashion had incorporated key elements from the construction design of Chinese clothing, including the use of wide sleeves and side closure. However, their passion of the British for had vanished. On the other hand, the 19th century was when was fully developed in America as a kind of "aesthetic colonialism" associating China with exoticism and fantasy, perceiving it as "a fantastic, uncivilized nation"; the upper classes, especially those in New England and the Middle Colonies, imitated e fashion; following their independence from Britain, they eventually ventured to China where they directly imported Chinese items. The late 1800s was thus marked with Westerner's fascination to the Far East, especially China and Japan, including in Canada. In the 1850s, there was a deliberate and self-conscious usage of Chinese materials and symbols in the design of dresses. Floral medallions, for example, were used on dresses as they were characteristics of China. A second wave of looted items from the suppression of the Boxer uprising (1899–1901) also made its way to Britain. During the suppression of the Boxer Uprising, many places were looted including many pawnshops in Beijing were looted. Clothing items by far were the largest-volume trade in these pawnshops, but they also had other items of value, such as jewellery, watches, furniture, rickshaws, and musical instrument; these items were personal items of Beijing commoners who had exchange their personal items for a small sum of money and intended to redeem their items later when they would be in better financial times. Wearing Chinese clothing at home in the West was not deemed as being done out of frivolity or fancy, but was itself an imperial act which signified having worldly knowledge. 20th century In the early 20th century, European and fashion designers would use China and other countries outside of the Eurocentric-fashion world to seek inspiration; Vogue Magazine also acknowledged that China had contributed to the aesthetic inspiration to global fashion. Chinese motifs regrew popular in European fashion during this period. China and the Chinese people also supplied the materials and aesthetics to American fashion and influenced global fashion; however, they remained perceived as being fashion-less and did not fit the criteria of modern status. For example, in the early 1900s, Vogue magazine encouraged people to buy beautifully embroidered Chinese garments made of high quality silk in Chinatowns, which were sold as cheap items in America; however, many of these items were actually looted items from Beijing during the suppression of the Boxer Uprising. From the 1910s in the United Kingdoms, Chinese robes, which were perceived as being only suitable as a fancy or luxurious dress or a source of embroidery pieces, started to be worn by British women as a form of loose coats. 1920s to 1930s The 1920s was marked by the return of a great craze for . Genuine embroidered Chinese jackets and coats were worn as evening wear. The loose fitting cut of British women garments in the 1920s also reflects the influence of Chinese clothing. The cheongsam was created in the 1920s and was turned into a high-style evening wear when it was appropriated by the West. By the 1930s, the cheongsam was associated with Chinese dress and was used in Hollywood movies as the identifying clothing of Chinese women. When worn by Asian Hollywood stars, such as Anna May Wong, the sexualized version cheongsam was turned into a symbol of the exotic and erotic nightlife in Shanghai. 1940s to end of 20th century In the mid-20th century, influenced the designs of great designers and/or couturiers, such as Christian Dior and Yves Saint-Laurent. On 23 February 1981, Princess Diana wore a red coloured silk, midi Chinese skirt known as when she posed with Prince Charles at Clarence House prior to their official engagement announcement. This Chinese skirt was in the Qing dynasty style and was embroidered with chrysanthemum embroidery motifs. and had a red waistband. The use of auspicious red colour was in line with Chinese wedding tradition; however, the skirt was not considered fully auspicious according to Chinese beliefs as it lacked a white waistband instead of a red one. A with white waistband was usually worn by Chinese bride to symbolize: "to grow old together", which Princess Diana lacked; and thus, Princess Diana's was did not conform to the () and was instead considered (), a sign of bad omen. 21st century fashion continues to appears in the work of fashion designers and directive creators of luxury brands in the 21st century. For instances, appeared have been a key seasonal influence to Louis Vuitton Spring/ Summer 2011 collections; for example, with the use of brisé fan by Marc Jacobs, etc. The Valentino Fall/Winter 2015–2016 depicted the use of colourful Chinese motifs, such as lion's heads, flowers, plants, in the embroidery work on their clothing and handbags, which were described as "reinterpretations of symbols representing human qualities and spiritual values" by the Magazine Vogue. Designers Some famous fashion designers and/or creative directors, who are known to have adopted or incorporated aesthetics at some point in their fashion collection, include Mariano Fortuny, the Callot Soeurs who were known for their usage of Chinese silks, Chinese-style embroideries, had Orientalism as their favourite theme, Jean Paquin, Paul Poiret, Jeanne Lanvin, Christian Dior, Yves Saint-Laurent, Alexander McQueen, John Galliano, Tom Ford, and Maria Grazia Chiuri. continues to appears in fashion creation in present-days. Luxury fashion brands such as, Louis Vuitton, Dior, and Chanel, etc., were also inspired by Chinese art and aesthetics, these influences are sometimes reflected in their creation of colours and the patterns found on their fabrics. Christian Dior Christian Dior, who had never travelled to China, especially celebrated Chinese aesthetics since the 1947; Chinese aesthetics in his design collections were influenced by Chinese overcoats and have been inspired by the "exotic" () home decor of his childhood; throughout the 1960s, Dior used various cultural references to China, such as Chinese calligraphy, the silhouette of the cheongsam, and the Tang dynasty blue and white porcelain in various of his collections. Yves Saint-Laurent Like Christian Dior, Yves Saint-Laurent was very inspired by Chinese culture although he never visited China; this is also reflected in his 1977's collection "": Sources of fashion inspiration Chinese auspicious ornaments and textile The most visible form of is through the appropriation of Chinese decorative (and auspicious) motifs and styles. During the Italian Renaissance, Italian craftsmen appropriated Chinese cultural and auspicious symbols, such as the lotus flowers, pomegranates, peonies, florets, phoenixes and dragons in their textiles which were then used in fashionable dressmaking for the wealthy Italian social class. Chinese motifs also grew in popularity in European fashion in the 20th century. Textile obtained through imperialistic appropriation Dragon robes (and python robes) of the Qing dynasty were highly regulated by the Qing dynasty's Sumptuary laws and court and the workshops and storehouses were managed by the Qing Imperial Household Department. They were also typically bestowed by the Qing dynasty court to important people within the Qing Empire boundaries, such as Mongolia and Tibet as diplomatic gifts, who were allowed to cut and adapt to fit their own customs. In fashion of the early 20th century, the dragon robes (and python robes) were at times cut and converted into Western-style attire, such as banyan and waistcoat; however, the direct alterations of Chinese garments for the use of Westerners are sometimes regarded as "imperialistic appropriation". Some of these adapted dragon robe clothing were possibly fabric rolls and/or clothing looted from the Old Summer Palace contrary to what museum donors sometimes wish explain about their origins. During the Opium wars, the use of Chinese dragons robes by Europeans in the late Victorian Europe were sometimes used to mock Chinese masculinity; for example, George Smith in the painting The Rightful Heir, exhibited in 1874 in the Royal Academy, would paint the villain found in the painting wearing a Chinese dragon robe tied with a belt around the waist with slippers on his feet. In similar instances, Liberty in 1898 offered evening capes which were advertised as being made of "Mandarin robes" (i.e. Qing dynasty court dress); however, these capes were actually made of Han Chinese women's traditional skirts. In 1981, Blue and white porcelain The combination of blue and white colour is one of the most popular colour palette combination in history and originated from Asian ceramics of the 9th century. Chinese blue and white porcelain, which was developed since the Tang dynasty and fully matured in Yuan dynasty, and are one of the most nationalistic arts of China, often appears in modern fashion shows. This colour palette found in ceramics later spread in Europe and influenced the Delftware in the 16th century and Willow pattern created by British manufacturers in the later 18th century; the 18th century was also the era when printed fabrics such as blue and white Toile de Jouy gained popularity and inspired fashion designers to use the blue and white as a prominent colour palette in the coming year. It was thus adopted in fashion designs of garments and shoes of famous fashion designers, such as Christian Dior, Valentino, Dr Martens. Some modern fashion designers, such as Roberto Cavalli, Guo Pei, were also directly inspired by Chinese blue and white porcelain. Adoption of Chinese garments, clothing elements, and construction British fashion had incorporated key elements from the construction design of Chinese clothing, including the use of wide sleeves and side closure; these designs were then adapted to meet the aesthetic tastes of Europeans. Chinese fashion also influenced various designs and styles of . The design of wrap-style closure or neckline, known as () in China, in European garments was the results of the heavy influences of Orientalism which was popular in the 19th century. Chinese jackets with wrap closure also influenced American fashion in the early 1900s; an example of such jacket is the (#4777), which appeared in American women's magazine, The Delineator, in 1901. In volume 57, The Delineator described it as being "Ladies' Chinese dressing" or as a "Lounging sack", and as having "a strong suggestion of the Orient". The was designed to be loose-fitting, a wrap closure on the left side (known as in China) which closes with satin ribbon ties; it also featured deep side vents, which was considered as being a "novel effect", and was trimmed with a single band creating a fancy outline. The of Volume 57 (#4777) reappeared in Volume 58 of The Delineator along with another Chinese-style inspired wrap top (#3920), one of which closed on the right side (known as in China) with a single ribbon. The Ladies' Chinese dressing sac #3920 appeared at least a year earlier and was published in Volume 56 of The Delineator of 1900. In the 1910s, Euro-American women showed women in Chinese robes used as loose evening coats over dresses. Among the items which were advertised by Vogue in its 15 December 1911 publication, there was the , which composed of the a type of Chinese jackets, and the Qing dynasty-style , a traditional skirt of the Han Chinese. There was also a fashion trend for day-wear jackets and coats to be cut in styles which would suggest various Chinese items as was published the Ladies’ Home Journal in June 1913. According to the Ladies’ Home Journal of June 1913, volume 30, issue 6: Garments displayed from The Chinese Summer Dress published in the Ladies’ Home Journal of June 1913, volume 30, issue 6, show influences of the Qing dynasty mandarin court gown, especially the (a mandarin court dress with a mandarin square badge), the , , , , (a short waist-length overskirt), (collar in Qing dynasty court dress), and (Manchu women dresses), and , as well as traditional Chinese embroideries, and traditional Chinese , , Mandarin collars, etc. There are also photographic evidences of Chinese robes being used outside its wearer's home as fashion items with little or no adaption from the 1920s. The loosening of women's fashion found in the 1920s loose-fitting fashion, especially the disappearance of nipped-in corset, appears to have also been influenced by the loose lines and roomy armholes of the traditional Chinese robes and jackets along with other factors, such as the experience of freedoms of elite women at that time, the sportswear-designs of Chanel, and the garment designs by Paul Poiret who designed Middle-Eastern inspired garments. Cheongsam The cheongsam was created in the 1920s and was originally a symbol of women emancipation in China; when it was appropriated by the West, it was turned into a high-style evening wear. In the 21st century, some evening dresses designed by Tom Ford showed the influences of the sexualized version cheongsam in terms of cut and the imperial five-clawed Chinese dragon robes in terms of use of colour (e.g. imperial yellow) and Chinese motifs (such as , , and the Twelve Ornaments), as well as the Manchu's horsehoof cuffs. Chinese shawls Chinese shawls were popular among European elite style leaders in the early 20th century. However, in a report dating to 1921 written by Vogue, it was referred as Spanish shawls, and readers were informed that these shawls were imported from Venice, Spain, Persia, and the Philippines, while omitting the initial Chinese importation of these shawls when earlier importers of Chinese goods and other travellers to China were key sources for these shawls twenty years prior to the publication of the report. The Spanish shawls, also known as Manila shawls and mantón de Manila, have become traditional accessory for women in Spain and Latin America and is also a crucial feature in Flamenco dance costume. The term Manila shawl itself is a misnomer, which appeared when the America-European people got confused concerning the origins and provenance of the shawl, thus leading to a misattribution to the Philippines. These shawls of Chinese origins then became identified with Spanish ladies. The Chinese shawls were manufactured in Guangdong province, China and were then introduced in Mexico and Spain from the seaport of Manila, which was where goods from Asia (including various forms of items manufactured in Guangdong) could be exported to Mexico and Europe. These shawls became a popular fashion accessory for women in Spain and Latin America after the year 1821. The demand for these Chinese shawls grew so much that it led to an increase in production from Chinese factories; and simultaneously, local embroiderers from Spain started to embroider their own. Despite the emerging local production in Spain, a large amount of Manila shawls continued to be manufactured in China for the sole purpose of the export market. The popularity of these shawls (which were actually still being produced in China) in the 19th century Europe eventually resulted in the adoption of the Chinese shawls in the traditional Spanish clothing attire. With time and through various form cultural exchanges with other cultures, the Spanish shawls developed into its current style through the exposure and interaction of different cultures. Chinese shoes Chinese shoes have influenced the design of European slippers with turned-up toes and with small low heels of the late 1880s. In the early 20th century, Chinese slippers, which were manufactured in China for American trade, were exported and sold in American stores; however, the fine grade Chinese slippers were never sold to Chinese people in America instead they were sold to American women as boudoir shoes.On the other hand, local Chinese shoe companies in America would mainly sell shoes to Chinese people. Controversies Lack of fashion myth, Western Imperialism, and Orientalism Though Chinese fashions had a global influence, the Chinese themselves were still perceived as being fashion-less when they did not fit the criteria of fashionable modernity. Europeans had visited imperial China since the 1500s at the times of the Ming dynasty and the difference of fashion was one of the first thing that they noticed. "Clothing never changed in China" became a myth constructed by early European writers and foreign sojourners who visited Imperial China but lacked knowledge on Chinese fashion of the previous decades. European writers at least since the 18th century, such as Jean-Baptiste Du Halde, Fernand Braudel, had held opinions that China had a static fashion. However, the descriptions of Chinese fashion by Europeans from the 16th to the 18th centuries were mainly based on their perceptions of the Chinese clothing that they saw, instead of describing Chinese garments itself. In the 18th century, Jean-Baptiste Du Halde, for example, had identified fashion as being a key difference between Europe and ancient China is the lack of changing fashion in China in his publications:Du Halde's claims of the static fashion of China was later circulated along with his publications and consolidated the belief that Chinese people dressed in fashion-less robes in the imagination of the Europeans. Ironically, Du Halde actually never went to Imperial China; however, to strengthen the veracity of his claims, Du Halde paired these images of engravings of Chinese with exhaustive descriptions of Chinese customs and relied on the accounts of other Jesuit missionaries. Similar accounts continued to appear at different point of time. Western Imperialism also often accompanied Orientalism, and European imperialism was especially at its highest in the 19th century. In the 19th century time, Europeans described China in binary opposition to Europe, describing China as "lacking in fashion" among many other things, while Europeans deliberately placed themselves in a superior position when they would compare themselves to the Chinese as well as to other countries in Asia:Works by Europeans writers which were influenced by Orientalist ideas would depict China as lacking fashion and by extension construct China as a static and unchanging nation. Compared to the Chinese, the Europeans would therefore describe themselves as "not superstitious, backwards, unhygienic, effeminate, or slavish". Foot binding, in particular, fuelled the imaginations of the Europeans and the Americans who perceived China as being "a mysterious, exotic, and barbaric Orient" where bound feet of the Chinese women became a representative of the "Chinese barbarity" and as signs of women oppression. Similar ideas were also applied to other countries in the East Asia, in India, and Middle East, where the perceived lack of fashion were associated with offensive remarks on the Asian social and political systems: Accusation of cultural appropriation and plagiarism 2022 Mamianqun and new Dior skirt from fall 2022 collection: In July 2022, Dior first was accused of cultural appropriation and design plagiarism of the traditional Han Chinese skirt, . Dior was accused of cultural appropriation for a second time in July 2022 for due to its usage of pattern print which looks like the (), into its 2022 autumn and winter ready-to-wear collection and has been introduced as being Dior's signature motif which was inspired by Christian Dior's wall murals. The is a traditional Chinese painting theme which belong to the Chinese scholar-artist style in Chinese painting and originated in the Tang dynasty. Related content Korea: Chinese influences on Korean clothing Japan: Kimono, Ryusou See also Fashion Chinese clothing: Hanfu, Qizhuang, cheongsam Major historical events in Chinese fashion history: Tifayifu; Hanfu Movement Gallery Notes References Fashion aesthetics Cultural trends History of clothing Fashion
Hasamba (or Chasamba, , an acronym for חבורת סוד מוחלט בהחלט; Havurat Sod Muchlat Behechlet; lit. "The Absolutely Absolute Secret Group") is a series of children's adventure novels written by Yigal Mossinson. The stories are a chronicle of the heroic exploits of a group of children from Tel Aviv as they assist the underground Haganah in its struggle for Israeli statehood against the British. Subsequent books revolve around assisting the security forces, including the IDF, against Israel's external and internal enemies. It became the most popular series of pocket books ever written in Israel (over a million copies sold), and part of the Israeli culture. Plot summary A group of girls and boys set up a secret society called "Hasamba"; their adventures take place, first during the British Mandate and the struggle for statehood of Israel, and then as they battle their country's enemies: infiltrators, spies, criminals and other offenders. The group has taken active part in the wars of Israel during the period the series has been written (until 1994). Though suspenseful, the writing is entertaining, with humor, as well as with related science, history, and trivia information, provided by knowledgeable participating characters. It emphasizes kindness, good behavior, loyalty, friendship, dedication, courage, and love to Israel. Yaron Zahavi (the handsome guy) and his deputy, Tamar (the pretty girl), are the first leaders of Hasamba. In later books (where they are supposed to be much older) they are replaced by the younger Yoav Tzur and his deputy, Rachel. The other heroes are replaced as well. Years later Yaron and Tamar get married, and their son Uri joins Hasamba in book number 25. In the books they face dangerous and smart enemies. They fight them, occasionally become captives, but outsmart the enemies and get free, sometimes with help of allies, and finally win. Though not always with a happy end: Two of the first-generation heroes, Eliahu Hermon and Refael Kaduri die, sacrificing their lives for important causes. Their secret meeting place is a real location in Tel Aviv, known as "The Electric Cave", which upon returning from a long stay abroad, the author discovered to be destroyed for the sake of building the Tel Aviv Hilton Hotel. High-tech inventions, sometimes preceding the technology available when written about, plays role in the stories. This includes the Electric cave, an intelligent robot, "Zagloba," that helps the group in some adventures, a laser rifle, and more (Yigal Mossinson himself was the inventor of patents). Characters The main character, the handsome leader Yaron Zahavi, was inspired by Yaron London, now a well known Israeli journalist, and the son of a famous Israeli actor, and the other characters, like "Tamar", "Fat Ehud", "Skinny Uzi", or "Menashe the Yemeni" and others, were created based on the children of Kibbutz Na'an (and to whom the books were dedicated: "To the children of Na'an, the yellow (blond), the black, and the red-headed"), where the author, Yigal Mossinson, lived from 1938 to 1950. Also the enemies are people with names and characters, like the antisemitic British police detective sergeant Jack Smith aka the "Red beetle", the dangerous thief Elimelech Zurkin, and the ruthless mercenary-saboteur Nazi Von-Bilov. History and spin-offs The series, by Yigal Mossinson, was first published in 1950 and was extremely popular (over a million copies sold in Israel; "national acclaim"), and a model for many children at that time for courage and conduct. The first book, about the group establishment and their initial adventures during the British mandate in Israel was Hasamba – Havurat sod muchlat be hechlet (Hasamba – The Absolutely Absolute Secret Group). Tens of books followed, adventures in the young State of Israel (established in 1948) and in later times, a total of 44 Hasamba books written until the author died in 1994. Mossinson started to write Hasamba after his elder son, Ido, asked him to write for him new Tarzan books. Mossinson preferred to write original books. His son Ido died in 1973 in the Yom Kippur War. Some of the books were made into films: In 1971 the book (number 5) Hasamba Ve-Na'arei hahefker (Hasamba and the deserted youths). In 1985 the book (number 3) Hasamba Ve-Shodedey Ha-Susim (Hasamba and the horse robbers). Plays and musicals: In 1998 a theatrical musical composed by Yaron Kafkafi (Hasamba) was produced. Hasamba has been also produces as a play by the Orna Porat Theater for Children and Youth and is being played in many places in Israel. TV series: In October 2010 Israeli TV channels Hot 3 and Arutz HaYeladim started airing a 17 episodes series called "Hasamba 3G" which depicts the story of the group when they are elderly, aged 70, and featuring series of many famous players, including Oded Kotler who plays Yaron Zehavi as an adult, while Yaron London (whom as a teenager inspired Yigal Mossinson when he created the character of Yaron Zehavi) – in a cameo role as prime minister of Israel. Other milestones: In 2004 an Israeli stamp for Hasamba was issued in a group of stamps depicting most popular early Israeli youth adventure books. New printings of the books in a paperback format (the first were hardcover; same pages and drawings) continue to appear. References 20th-century Israeli novels Israeli novels adapted into films Novels adapted into plays Novels adapted into television shows 1950 children's books 1950 novels Children's books set in Israel Children's books set in the 20th century Children's books about war Novels first published in serial form
Christina of Saxony (born Torgau, 25 December 1461 – died Odense, 8 December 1521), was Queen of Denmark, Norway and Sweden as the wife of King John. Life Early life Christina was engaged to John, King of Denmark, Norway and Sweden, in 1477. The year after, she traveled from Saxony to Warnemunde, where she was met by a Danish retinue who brought her Copenhagen Castle, where she was married to John on 6 September 1478. The wedding is described as magnificent, with possessions of a knights and the bride, dressed in gold embroidered red, travelling in a carriage of gold. In 1481, she became queen of Denmark. She was however not crowned until 1483, when John had become king of Norway also. On 18 May 1483, she and John were crowned king and queen of Denmark in the Frue Kirke in Copenhagen. During the first twenty years of her marriage, there is not much information about Christina, and she seems to have lived a life devoted to her family. She was the mother of Christian II, Franciscus, Knud and Elizabeth, who later married Joachim I Nestor, Elector of Brandenburg, and (probably) also of Jacob the Dacian. The royal couple did not live much in Copenhagen, but preferred to travel between the royal castles in Funen, as Nykobing Castle was reportedly the favorite residence of Christina. There is nothing to indicate that she ever involved herself in politics during her life in Denmark as its queen. Christina is described as pious, and was said to weep every time she was unable to attend mass. In 1497, she and John founded the St. Clare's Monastery, Copenhagen. Sweden In 1497, John was elected king of Sweden. Two years later, Christina followed him to Sweden, and on 4 February 1499, they were crowned king and queen of Sweden in Uppsala. She accompanied John on his second visit to Sweden in 1500, and his third in January 1501. During the 1501 visit, John entered into his love affair with one of her ladies-in-waiting, Edel Jernskjæg, which attracted a scandal and caused a de facto termination of her marriage. The stay in the Swedish capital was dominated by the king's suspicions toward the Swedes, who were known to be hostile to the Kalmar Union; when the queen announced that she intended to attend mass at the Storkyrkan in the city, the king refused to allow her until she begged him crying, and when the queen and her ladies-in-waiting were observed to return with a crowd of Swedes, the king's guards aimed fire at them in the belief that they had taken the queen hostage, when in fact they had just wished to escort her back to the castle as a way of honoring her. When the War of Deposition against King Hans and Dano-Swedish War (1501–1512) took place later that same year, John left Sweden for Denmark in August 1501 in the company of Edel Jernskjæg. He left Christina, who was at that time too ill to travel, in charge of the garrison of the Castle of Tre Kronor in Stockholm as regent and as moral support for his followers. From September 1501 until 6 May 1502, Queen Christina was besieged by the Swedish rebels. This was one of the hardest sieges known during the Kalmar Union, during which a garrison of 1000 men was reduced to 70 out of plague and starvation. On 9 May 1502, Queen Christina surrendered to the Swedish Regent Sten Sture the Elder. According to the peace settlement, was to be kept at a convent in Stockholm until she could travel back to Denmark. When she surrendered her position, she turned herself over to lady Ingeborg Tott, who met her at the castle and followed her to a convent. She was kept first at the Black Friars' Monastery of Stockholm and then at the Grey Friar's Abbey, Stockholm. However, the treaty was broken by Sten Sture: when John had a ship sent to Stockholm to collect her, the regent had her taken from Stockholm to the Vadstena Abbey in a form of captivity. In October 1503, she was finally released and escorted to the Danish border by Sten Sture, where she was met by her son Christian in Halmstad. Later life In 1504, she made a pilgrimage to Wilsnack and Sternberg in Brandenburg, where she also met her daughter Elizabeth. Upon her return to Denmark, she founded convents for Poor Clares in Copenhagen and Odense. From her return to Denmark after her release onward, Queen Christina lived the rest of her life separated from King John. She had her own separate court, headed by Anne Meinstrup, and resided on her dower lands at Næsbyhoved Slot and in Odense with her son Frans. She hosted a grand court with many guests, but the visits from the king was almost non existent. Christina was interested in art and music and acted as the benefactor of musicians, writers and painters. She commissioned the famous altar piece of Claus Berg, who depicted the royal Danish family and was placed in the Odense cathedral, as well as the literary work of the priest Michael of Odense. She was a critical Catholic, who wished for a reformation of the Catholic church, and the benefactor of the order of Saint Clare and Saint Francis, and supported Laurids Brandsen, who worked to reform the discipline of the Danish convents. She was also known for her philanthropy. In 1513, she was widowed. Christina of Saxony died on 8 December 1521, aged 59. Issue Christina and John had five or six children: References Dansk Kvindebiografisk Leksikon (in Danish) Dansk biografisk Lexikon / III. Bind. Brandt - Clavus |- |- 1461 births 1521 deaths 15th-century Danish women 15th-century Swedish women 15th-century Danish people 16th-century Danish women 16th-century Swedish women 16th-century Danish people Danish royal consorts Norwegian royal consorts Christina 1497 Burials at St. Canute's Cathedral House of Wettin People from Torgau Regents of Sweden Women in 16th-century warfare Women in war in Sweden Royal reburials Queen mothers
```yaml --- auth: # A private key used for signing jwt tokens # Easily generate one by running # $ openssl genrsa -out jwt.pem 2048 jwtPrivateKey: | -----BEGIN RSA PRIVATE KEY----- YOUR-KEY-HERE -----END RSA PRIVATE KEY----- # The public key used for verifying the signature # Generate one by running # $ openssl rsa -in jwt.pem -pubout -out jwt.pub jwtPublicKey: | -----BEGIN PUBLIC KEY----- YOUR-KEY-HERE -----END PUBLIC KEY----- jwtQueueServicePublicKey: | -----BEGIN PUBLIC KEY----- YOUR-KEY-HERE -----END PUBLIC KEY----- # A password used for encrypting session data. # **Needs to be minimum 32 characters** cookiePassword: WOW-ANOTHER-INSECURE-PASSWORD!!! # A password used for encrypting stored pipeline secrets and user Oauth token. # **Needs to be minimum 32 characters** encryptionPassword: WOW-ANOTHER-MORE-INSECURE-PASSWORD!!! # A password used for hashing user/pipeline access tokens. # **Needs to be minimum 32 characters** hashingPassword: WOW-ANOTHER-MORE-INSECURE-PASSWORD!!! # A flag to set if the server is running over https. # Used as a flag for the OAuth flow https: false # A flag to set if you want guests to browse your pipelines allowGuestAccess: false # Deprecated. Instead, use allowList which is more secure. # List of users able to authenticate against the system # if empty, it allows everyone # Values should follow '{scmDisplayName:scmUsername}' format # Ex: ['github:john', 'bitbucket:john'] whitelist: [] # list of users able to authenticate against the system # if empty, it allows everyone # Values should follow '{scmDisplayName:scmUsername:scmUserId}' format # Ex: ['github:john:12345', 'bitbucket:john:{98fsa1ba-0b91-4e3c-95ee-55899e933b0}'] allowList: [] # Deprecated. Instead, use sdAdmins which is more secure. # List of users who should be given screwdriver admin privileges # Values should follow '{scmDisplayName:scmUsername}' format # Ex: ['github:john', 'bitbucket:john'] admins: [] # List of users who should be given screwdriver admin privileges # Values should follow '{scmDisplayName:scmUsername:scmUserId}' format # Ex: ['github:john:12345', 'bitbucket:john:{98fsa1ba-0b91-4e3c-95ee-55899e933b0}'] sdAdmins: [] # When set to true # - grant admin privileges to the users listed in 'sdAdmins' # - only authenticate the users listed in 'allowList' # When set to false, performs # - grant admin privileges to the users listed in 'admins' # - only authenticate the users listed in 'whitelist' authCheckById: true # Default session timeout (in minutes) sessionTimeout: 120 # SameSite Cookie Option sameSite: Strict # cookie path to access the cookie, set to '/' path: / shutdown: terminationGracePeriod: TERMINATION_GRACE_PERIOD httpd: # Port to listen on port: 80 # Host to listen on (set to localhost to only accept connections from this machine) host: 0.0.0.0 # Externally routable URI (usually your load balancer or CNAME) uri: path_to_url # SSL Support tls: false # If you want SSL, you can easily add it by replacing `tls: false` with an object that # provides the options required by `tls.createServer` # path_to_url#tls_tls_createserver_options_secureconnectionlistener # key: | # PRIVATE KEY HERE # cert: | # YOUR CERT HERE datastore: plugin: sequelize ddlSyncEnabled: "true" sequelize: # Type of server to talk to dialect: sqlite # More arguments here: # path_to_url ssl: false pool: {} retry: {} buildMetricsEnabled: "false" # readOnly datastore config # readOnly: {} executor: # Default executor plugin: k8s k8s: enabled: true options: kubernetes: # The host or IP of the kubernetes cluster host: kubernetes.default # The jwt token used for authenticating kubernetes requests # Loaded from /var/run/secrets/kubernetes.io/serviceaccount/token by default # Resources for build pod resources: # Number of cpu cores cpu: micro: "0.5" low: 2 high: 6 # Memory in GB memory: micro: 1 low: 2 high: 12 # Default build timeout for all builds in this cluster (in minutes) buildTimeout: 90 # Default max build timeout (in minutes) maxBuildTimeout: 120 # k8s node selectors for appropriate pod scheduling nodeSelectors: {} preferredNodeSelectors: {} # support for kata-containers-as-a-runtimeclass runtimeClass: "" # Launcher image to use launchImage: screwdrivercd/launcher # Container tags to use launchVersion: stable # nomad: # enabled: true # options: # nomad: # # The host or IP of the nomad cluster # host: nomad.default/v1/jobs # resources: # cpu: # high: 200 # memory: # high: 2000 # # Container tags to use # launchVersion: stable docker: enabled: true options: # Dockerode configuration path_to_url#getting-started docker: {} # Container tags to use launchVersion: stable k8s-vm: enabled: true options: # Configuration of Docker kubernetes: # The host or IP of the kubernetes cluster host: kubernetes.default # The jwt token used for authenticating kubernetes requests # Loaded from /var/run/secrets/kubernetes.io/serviceaccount/token by default # Resources for build pod resources: # Number of cpu cores cpu: micro: 1 low: 2 high: 6 # Memory in GB memory: micro: 1 low: 2 high: 12 # Default build timeout for all builds in this cluster (in minutes) buildTimeout: 90 # Default max build timeout (in minutes) maxBuildTimeout: 120 # k8s node selectors for appropriate pod scheduling nodeSelectors: {} preferredNodeSelectors: {} # Launcher image to use launchImage: screwdrivercd/launcher # Launcher container tag to use launchVersion: stable # jenkins: # options: # # Configuration of Jenkins # jenkins: # host: jenkins.default # port: 8080 # username: screwdriver # password: "WOW-AN-EVEN-MORE-INSECURE-PASSWORD!!!!" # # Default build timeout (in minutes) # buildTimeout: 90 # # Default max build timeout (in minutes) # maxBuildTimeout: 120 queue: enabled: true options: # redis or redisCluster(beta) connectionType: redis # Configuration of the redis instance containing resque redisConnection: host: "127.0.0.1" port: 9999 options: password: "THIS-IS-A-PASSWORD" tls: false database: 0 redisClusterConnection: hosts: [] options: password: a-secure-password tls: false slotsRefreshTimeout: 1000 queueWebhook: # Enabled events from webhook queue or not enabled: false scms: {} # github: # plugin: github # config: # # The client id used for OAuth with github. Look up GitHub OAuth for details # # path_to_url # oauthClientId: YOU-PROBABLY-WANT-SOMETHING-HERE # # The client secret used for OAuth with github # oauthClientSecret: AGAIN-SOMETHING-HERE-IS-USEFUL # # You can also configure for use with GitHub enterprise # # gheHost: github.screwdriver.cd # # The username and email used for checkout with github # username: sd-buildbot # email: dev-null@screwdriver.cd # # Token for writing PR comments in Github, needs public_repo scope # commentUserToken: A-BOT-GITHUB-PERSONAL-ACCESS-TOKEN # # Secret to add to GitHub webhooks so that we can validate them # secret: SUPER-SECRET-SIGNING-THING # # Whether it supports private repo: boolean value. # # If true, it will ask for read and write access to public and private repos # # path_to_url#scopes # privateRepo: false # bitbucket: # plugin: bitbucket # config: # oauthClientId: YOUR-BITBUCKET-OAUTH-CLIENT-ID # oauthClientSecret: YOUR-BITBUCKET-OAUTH-CLIENT-SECRET # # The username and email used for checkout with bitbucket # username: sd-buildbot # email: dev-null@screwdriver.cd # gitlab: # plugin: gitlab # config: # oauthClientId: YOUR-GITLAB-OAUTH-CLIENT-ID # oauthClientSecret: YOUR-GITLAB-OAUTH-CLIENT-SECRET # # If you have on-premise gitlab, you can specify that here # # gitlabHost: mygitlab.com # # gitlabProtocol: https # # The username and email used for checkout with gitlab # username: sd-buildbot # # email: dev-null@screwdriver.cd # # read-only scm config, default false # readOnly: # # set true to enable read-only scm mode # enabled: false # # headless username # username: headless-user # # headless access token # accessToken: headlesstoken # # SCM clone type (https or ssh) # cloneType: https webhooks: # Obtains the SCM token for a given user. If a user does not have a valid SCM token registered with Screwdriver, it will use this user's token instead. username: sd-buildbot # Ignore commits made by these users ignoreCommitsBy: [] # Restrict PR: all, none, branch, or fork restrictPR: none # Chain PR: true or false chainPR: false # Upper limit on incoming uploads to builds maxBytes: 1048576 # 1MB coverage: default: true # plugin: sonar # sonar: # sdApiUrl: path_to_url # sonarHost: path_to_url # adminToken: your-sonar-admin-token # sdUiUrl: path_to_url # sonarEnterprise: false # sonarGitAppName: "Screwdriver Sonar PR Checks" multiBuildCluster: # Enabled multi build cluster feature or not enabled: false unzipArtifacts: # Enabled unzip artifacts feature or not enabled: false bookends: # Plugins for build setup default: setup: - scm - screwdriver-cache-bookend teardown: - screwdriver-artifact-bookend - screwdriver-coverage-bookend - screwdriver-cache-bookend notifications: options: # Throw error when validation fails (default true); otherwise show warning throwValidationErr: true # # Email notification when a build finishes # email: # host: email-host # port: email-port # from: email-address-to-send-from # username: optional-username # password: optional-password # # Slack notification when build finishes # slack: # # default workspace key # defaultWorkspace: workspace1 # # Objects with slack token # workspaces: # # These keys are used in notification setting on screwdriver.yaml # # ex) # # settings: # # slack: # # channels: # # - test-channel-1 # # - workspace1:test-channel-2 # # - workspace2:test-channel-1 # workspace1: # token: your-slack-bot-token1 # workspace2: # token: your-slack-bot-token2 ecosystem: # Externally routable URL for the User Interface ui: path_to_url # Externally routable URL for the Artifact Store store: path_to_url # Externally routable URL for the Queue Service queue: path_to_url # Badge service (needs to add a status and color) badges: path_to_url{{subject}}-{{status}}-{{color}}.svg # Default registry to pull build containers from. Uses Docker Hub if nothing/empty string is provided dockerRegistry: "" # Extra origins allowed to do CORS to API allowCors: [] # build cache strategies: s3, disk, with s3 as default option to store cache cache: strategy: "s3" path: "/" compress: false md5check: false max_size_mb: 0 max_go_threads: 10000 # environment release information release: mode: stable cookieName: release cookieValue: stable cookieTimeout: 2 # in minutes headerName: release headerValue: stable # Logging preferences log: audit: # set true to enable audit logs for all API calls enabled: false # add target scope tokens(pipeline, build, temporal, admin, guest, user) scope: [] # default cluster environment variables to inject into builds build: environment: SD_VERSION: 4 rateLimit: # set true to enable rate limiting on auth token enabled: false # max request limit on auth token per duration, default: 300 (1 rps) limit: 300 # limit duration in milliseconds, default: 300000 (5 mins) duration: 300000 redisLock: # set true to enable redis lock enabled: false options: # maximum retry limit to obtain lock retryCount: 200 # the expected clock drift driftFactor: 0.01 # the time in milliseconds between retry attempts retryDelay: 500 # the maximum time in milliseconds randomly added to retries retryJitter: 200 # the maximum time in milliseconds living of a key that has a timeout ttl: 20000 # redis or redisCluster(beta) connectionType: redis # Configuration of the redis instance redisConnection: host: "127.0.0.1" port: 9999 options: password: "THIS-IS-A-PASSWORD" tls: false database: 0 redisClusterConnection: hosts: [] options: password: "THIS-IS-A-PASSWORD" tls: false slotsRefreshTimeout: 1000 ```
Kevin R. Gallagher is a guitarist who plays both the electric guitar and the classical guitar. As a classical guitarist, he has received top honors at some of the most prestigious guitar competitions in the world, including the 1993 Guitar Foundation of America, the 1994 American String Teachers Association, the 1993 Artists International Competition, and 1997 Francisco Tárrega Guitar Competition in Spain. As an electric guitarist, he is known for transcribing violin music for electric guitar and for founding the avant-rock ensemble Electric Kompany. He has also produced, in cooperation with John Zorn, a music festival titled "Full Force: The New Rock Complexity" that showcases bands that have combined styles such as classical, rock, jazz, and metal. He has produced a CD for Naxos Records titled "Guitar Recital - Music from the Renaissance and Baroque," a duo CD with Antigoni Goni titled "Evocacion," and an EP featuring his work on solo electric guitar and with Electric Kompany. Background Gallagher began his musical training with rock guitar, but soon became interested in jazz and classical. He went to study with Benjamin Verdery at Wisconsin Conservatory of Music and Sharon Isbin at the Juilliard School. After winning several major competitions and performing in Spain, Germany, Sweden, Greece, Turkey, Brazil, and England, Gallagher once again became interested in the electric guitar. "Through the 90's I only owned and performed classical guitar. In 1998 I just got the sudden urge to walk into a music shop and try their Les Pauls. I hadn't touched an electric in years. I fell in love with one and bought it on the spot. All the electric guitar techniques I knew came back instantly and my classical technique opened up many more possibilities than I had ever had before." Gallagher now performs solo music on electric guitar by composers such as Steve Reich and Rob Haskins. With Electric Kompany, he has arranged music by Jacob ter Veldhuis, Marc Mellits, and commissioned music for the quartet. "Performing on classical guitar and electric guitar is very different,' says Gallagher, "but there are similarities in my approach. Sound and color is very important to me. With both styles, I choose sounds depending on the piece and the mood I'm trying to convey. Articulation, dynamics and rhythm are also approached in the same way. Musically, I think my head is the same. Technically, there are a lot of differences. Using a pick is the obvious one, but the electric guitar also requires more string muting to keep the sound under control. There is also the pickup selector, tone controls and the endless variety of programmable effects I can use. So, I have similar musical ideas, but I'm using a different palette to convey them." Competition Honors Guitar Foundation of America (1993) American String Teachers Association (1994) Artists International Competition (1993) Francisco Tárrega Guitar Competition (1997) Discography Guitar Recital - Music from the Renaissance and Baroque (Naxos Records) Evocacion (Willow Shade) New Interpretations (Willow Shade) Music from the Avant-Pop (EP) References http://guitar69.com/index.htm Dickenson, J. Andrew: "Electric Counterpoint", Urban Guitar, July 2006 External links Official site of Kevin R. Gallagher Interview with Kevin Gallagher, Urban Guitar Video Interview with Kevin Gallagher, Classical Guitar Blog "Interview 06.24.09: Kevin Gallagher," Guitar Theory in Depth "Kevin R. Gallagher," Three Chords and the Truth American classical guitarists American male guitarists Juilliard School alumni Living people Year of birth missing (living people) Wisconsin Conservatory of Music alumni Place of birth missing (living people)
```python #!/usr/bin/env python2.7 # Amazon FPGA Hardware Development Kit # # # located at # # path_to_url # # or in the "license" file accompanying this file. This file is distributed on # an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or ''' Pytest module: Call using ```pytest test_gen_dcp.py``` See TESTING.md for details. ''' from __future__ import print_function import glob import os from os.path import basename, dirname, realpath import pytest import re import subprocess import sys import traceback try: import aws_fpga_utils import aws_fpga_test_utils from aws_fpga_test_utils.AwsFpgaTestBase import AwsFpgaTestBase except ImportError as e: traceback.print_tb(sys.exc_info()[2]) print("error: {}\nMake sure to source hdk_setup.sh".format(sys.exc_info()[1])) sys.exit(1) logger = aws_fpga_utils.get_logger(__name__) class TestGenDcp(AwsFpgaTestBase): ''' Pytest test class. NOTE: Cannot have an __init__ method. Test all example CLs with different strategies and clock recipes. ''' ADD_XILINX_VERSION = True @classmethod def setup_class(cls): ''' Do any setup required for tests. ''' AwsFpgaTestBase.setup_class(cls, __file__) AwsFpgaTestBase.assert_hdk_setup() cls.set_allowed_warnings() return @classmethod def set_allowed_warnings(cls): cls.allowed_warnings = ( (('.*',), r'^WARNING: \[Constraints 18-838\] Failed to create SRL placer macro for cell SH/SH/MGT_TOP.*'), (('.*',), r'^WARNING: \[Shape Builder 18-838\] Failed to create SRL placer macro for cell WRAPPER_INST/SH/SH/MGT_TOP.*'), (('.*',), r'^WARNING: \[Common 17-576\] \'fanout_opt\' is deprecated.*'), (('.*',), r'^CRITICAL WARNING: \[Place 30-823\] Failed to process clock nets that should have matching clock routes\. Reason: Found incompatible user defined or fixed clock roots for related clocks \'CL/SH_DDR/ddr_cores\.DDR4'), (('.*',), r'^CRITICAL WARNING: \[Constraints 18-850\] Failed to place register with ASYNC_REG property shape that starts with register SH/SH/MGT_TOP/SH_ILA_0/inst/ila_core_inst/u_ila_reset_ctrl/asyncrounous_transfer\.arm_in_transfer_inst/dout_reg0_reg\. '), (('.*',), r'^CRITICAL WARNING: \[Constraints 18-850\] Failed to place register with ASYNC_REG property shape that starts with register SH/SH/MGT_TOP/SH_ILA_0/inst/ila_core_inst/capture_qual_ctrl_2_reg\[0\]\. '), (('.*',), r'^CRITICAL WARNING: \[Constraints 18-850\] Failed to place register with ASYNC_REG property shape that starts with register SH/SH/MGT_TOP/SH_ILA_0/inst/ila_core_inst/en_adv_trigger_2_reg\. '), (('.*',), r'^CRITICAL WARNING: \[Shape Builder 18-850\] Failed to place register with ASYNC_REG property shape that starts with register WRAPPER_INST/SH/SH/MGT_TOP.*'), (('.*',), r'^CRITICAL WARNING: \[Vivado 12-1433\] Expecting a non-empty list of cells to be added to the pblock\. Please verify the correctness of the <cells> argument. \[/home/centos/src/project_data/workspace/test_develop_manual/hdk/cl/examples/cl_dram_dma/build/constraints/cl_pnr_user\.xdc:15'), (('.*',), r'^CRITICAL WARNING: \[filemgmt 20-1741\] File \'axi_register_slice_v2_1_vl_rfs.v\'.*'), (('.*',), r'^CRITICAL WARNING: \[filemgmt 20-1741\] File \'blk_mem_gen_v8_3_vhsyn_rfs.vhd\'.*'), (('.*',), r'^CRITICAL WARNING: \[filemgmt 20-1741\] File \'fifo_generator_v13_1_vhsyn_rfs.vhd\'.*'), (('.*',), r'^CRITICAL WARNING: \[Opt 31-430\].*'), (('.*',), r'WARNING: \[Vivado 12-3731\].*'), (('.*',), r'WARNING: \[Constraints 18-619\] A clock with name \'CLK_300M_DIMM._DP\'.*'), (('.*',), r'WARNING: \[Constraints 18-5648\] .*'), (('.*',), r'WARNING: \[Constraints 18-4434\] Global Clock Buffer \'static_sh.*'), (('.*',), r'WARNING: \[Vivado_Tcl 4-391\] The following IPs are missing output products for Implementation target. These output products could be required for synthesis, please generate the output products using the generate_target or synth_ip command before running synth_design.*'), (('.*',), r'WARNING: \[DRC RPBF-3\] IO port buffering.*'), (('.*',), r'WARNING: \[Place 46-14\] The placer has determined that this design is highly congested and may have difficulty routing. Run report_design_analysis -congestion for a detailed report\.'), (('.*',), r'WARNING: \[BD 41-1661\] .*'), (('.*',), r'WARNING: \[Vivado 12-584\] No ports matched \'tck\''), (('.*',), r'WARNING: \[Vivado 12-830\] No fanout objects found for'), (('.*',), r'WARNING: \[Place 30-640\] Place Check.*'), (('.*',), r'WARNING: \[BD 41-2180\] Resetting the memory initialization file.*'), (('.*',), r'WARNING: \[Synth 8-689\] .*'), (('.*',), r'WARNING: \[Synth 8-6896\] .*'), (('.*',), r'WARNING: \[Synth 8-7023\] .*'), (('.*',), r'CRITICAL WARNING: \[DRC HDPR-113\] Check for INOUT ports in RP: Reconfigurable module WRAPPER_INST/SH contains an INOUT port named .*'), (('.*',), r'WARNING: \[Synth 8-7071\] .*'), (('.*',), r'WARNING: \[Synth 8-7129\] .*'), (('.*',), r'WARNING: \[Route 35-3387\] .*'), (('.*',), r'WARNING: \[Synth 8-6779\] .*'), (('.*',), r'WARNING: \[Synth 8-7080\] .*'), (('cl_sde_*',), r'WARNING: \[Vivado 12-180\] No cells matched .*'), (('cl_sde_*',), r'WARNING: \[Vivado 12-1008\] No clocks found for command.*'), (('cl_sde_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] .*'), (('cl_sde_*',), r'^CRITICAL WARNING: \[Constraints 18-952\] .*'), (('cl_sde_*',), r'^CRITICAL WARNING: \[Vivado 12-1039\] .*'), (('cl_sde_*',), r'^CRITICAL WARNING: \[Vivado 12-1433\] .*'), (('cl_sde.*',), r'WARNING: \[Synth 8-6057\] Memory.*'), (('cl_dram_dma_A1_B2_C0_2_(CONGESTION|BASIC)',), r'^CRITICAL WARNING: \[Route 35-39\] The design did not meet timing requirements'), (('cl_dram_dma_A1_B2_C0_2_(CONGESTION|TIMING)',), r'WARNING: \[Vivado 12-180\] No cells matched \'CL/CL_DMA_PCIS_SLV/CL_TST_DDR_B/CL_TST/sync_rst_n_reg\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_microblaze_I_0\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_rst_0_0\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_ilmb_0\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_dlmb_0\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_iomodule_0_0\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'ddr4_core_microblaze_mcs\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'ddr4_core\''), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'axi_clock_converter_0\''), (('cl_dram_dma_*',), r'WARNING: \[Synth 8-6104\] Input port \'size\' has an internal driver .*'), (('cl_dram_dma_*',), r'WARNING: \[Synth 8-6104\] Input port \'value\' has an internal driver .*'), (('cl_dram_dma_*',), r'WARNING: \[Vivado 12-180\] No cells matched .*'), (('cl_dram_dma_*',), r'WARNING: \[Vivado 12-1008\] No clocks found for command.*'), (('.*',), r'WARNING: \[Memdata 28-146\] Could not find a netlist instance for the specified SCOPED_TO_REF value of: ddr4_core'), (('.*',), r'WARNING: \[Memdata 28-146\] Could not find a netlist instance for the specified SCOPED_TO_REF value of: bd_bf3f'), (('cl_dram_dma_*',), r'WARNING: \[Place 46-14\] The placer has determined'), (('cl_dram_dma_*',), r'WARNING: \[Synth 8-5856\]*'), (('cl_dram_dma_*',), r'WARNING: \[Physopt 32-894\].*'), (('cl_dram_dma_*',), r'CRITICAL WARNING: \[Vivado 12-1433\] Expecting a non-empty list of cells to be added to the pblock.*'), (('cl_hello_world_vhdl_A.*',), r'WARNING: \[Memdata 28-146\] Could not find a netlist instance for the specified SCOPED_TO_REF value of: ddr4_core'), (('cl_hello_world_vhdl_A.*',), r'WARNING: \[Memdata 28-146\] Could not find a netlist instance for the specified SCOPED_TO_REF value of: bd_bf3f'), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_microblaze_I_0\''), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_rst_0_0\''), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_ilmb_0\''), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_dlmb_0\''), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'bd_bf3f_iomodule_0_0\''), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'ddr4_core_microblaze_mcs\''), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'ddr4_core\''), (('cl_hello_world_vhdl_A.*',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'axi_clock_converter_0\''), (('cl_uram_example_A._B._C._[2-4]',), r'WARNING: \[Designutils 20-262\] Invalid BRAM Mode CASC\. Setting it to the default mode RAMB18\.'), (('cl_uram_example.*',), r'WARNING: \[xilinx\.com:ip:blk_mem_gen:8\.[3-4]-1\] /blk_mem_gen_\d Block Memory Generator IP is configured to use UltraRAM, but UltraRAM does not support Memory Initialization.*'), (('cl_uram_example_A._B._C._[2-4]',), r'WARNING: \[Synth 8-2507\] parameter declaration becomes local in flop_ccf with formal parameter declaration list'), (('cl_uram_example_A._B._C._[2-4]',), r'WARNING: \[Synth 8-5790\] Small sized RAM gen_wr_a\.gen_word_narrow\.mem_reg will be implemented using URAM because of explicit ram_style = \"ultra\" attribute'), (('cl_uram_example.*',), r'WARNING: \[Synth 8-6057\] Memory.*'), (('cl_uram_example.*',), r'WARNING: \[Vivado 12-180\] No cells matched .*'), (('cl_uram_example_A._B._C._[2-4]',), r'WARNING: \[Vivado 12-180\] No cells matched \'CL/vled_q_reg\*\'\.'), (('cl_uram_example_A._B._C._[2-4]',), r'WARNING: \[Vivado 12-1421\] No ChipScope debug cores matched \'\''), (('cl_uram_example_A._B._C._[2-4]',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'ila_0\''), (('cl_uram_example_A._B._C._[2-4]',), r'CRITICAL WARNING: \[Designutils 20-1280\] Could not find module \'ila_vio_counter\''), (('cl_uram_example_A._B._C._[2-4]',), r'CRITICAL WARNING: \[Designutils 20-1281\] Could not find module \'vio_0\''), ) cls.allowed_warnings_regexps = [] for allowed_warning_spec in cls.allowed_warnings: option_tag_regexps = [] for option_tag in allowed_warning_spec[0]: option_tag_regexps.append(re.compile(option_tag)) cls.allowed_warnings_regexps.append((option_tag_regexps, re.compile(allowed_warning_spec[1]))) cls.allowed_timing_violations = [ re.compile(r'cl_dram_dma_A1_B2_C0_2_(CONGESTION|BASIC)'), ] def filter_warnings(self, cl, option_tag, warnings): option_tag = cl + "_" + option_tag # Get reg_exps that match the option tag filters = [] for allowed_warnings_regexp_spec in self.allowed_warnings_regexps: for option_tag_regexp in allowed_warnings_regexp_spec[0]: if option_tag_regexp.match(option_tag): filters.append(allowed_warnings_regexp_spec[1]) if len(filters) == 0: return warnings filtered_warnings = [] for warning in warnings: matched = False for filter in filters: if filter.match(warning): matched = True break if not matched: filtered_warnings.append(warning) return filtered_warnings def allow_timing_violations(self, cl, option_tag): option_tag = cl + "_" + option_tag for reg_exp in self.allowed_timing_violations: if reg_exp.match(option_tag): return True return False def assert_non_zero_file(self, filter): filenames = glob.glob(filter) assert len(filenames) > 0, "No {} file found in {}".format(filter, os.getcwd()) assert len(filenames) == 1, "More than 1 {} file found: {}\n{}".format(filter, len(filenames), "\n".join(filenames)) filename = filenames[0] assert os.stat(filename).st_size != 0, "{} is 0 size".format(filename) return filename def check_build(self, cl, clock_recipes, option_tag): cl_dir = self.get_cl_dir(cl) checkpoints_dir = os.path.join(cl_dir, 'build/checkpoints') to_aws_dir = self.get_cl_to_aws_dir(cl) scripts_dir = self.get_cl_scripts_dir(cl) reports_dir = os.path.join(cl_dir, 'build/reports') assert os.path.exists(to_aws_dir), "The checkpoints/to_aws directory does not exist: {}".format(to_aws_dir) logger.info("Checking that a non zero size ltx file exists in {}".format(checkpoints_dir)) ltx_file = self.assert_non_zero_file(os.path.join(checkpoints_dir, '*.ltx')) logger.info("ltx file: {}".format(ltx_file)) logger.info("Checking that a non zero size manifest file exists in {}".format(to_aws_dir)) manifest_file = self.assert_non_zero_file(os.path.join(to_aws_dir, '*.manifest.txt')) logger.info("manifest file: {}".format(manifest_file)) logger.info("Checking that a non zero size dcp file exists in {}".format(to_aws_dir)) dcp = self.assert_non_zero_file(os.path.join(to_aws_dir, '*.dcp')) logger.info("dcp: {}".format(dcp)) logger.info("Checking that a non zero size tar file exists in {}".format(to_aws_dir)) tarball = self.assert_non_zero_file(os.path.join(to_aws_dir, '*.tar')) logger.info("tarball: {}".format(tarball)) logger.info("Checking that a dcp exists in the tar file") (rc, stdout_lines, stderr_lines) = self.run_cmd("/usr/bin/tar tvf {} \'*.dcp\'".format(tarball)) assert rc == 0, "Did not find dcp in {}".format(tarball) logger.info("Checking that a manifest exists in the tar file") (rc, stdout_lines, stderr_lines) = self.run_cmd("/usr/bin/tar tvf {} \'*.manifest.txt\'".format(tarball)) assert rc == 0, "Did not find manifest in {}".format(tarball) # Use last_log symlink to grab logname logger.debug("Looking for last_log in {}".format(scripts_dir)) assert os.path.exists("last_log"), "Could not find the log file: {}/last_log".format(scripts_dir) # Check the number of warnings (rc, stdout_lines, stderr_lines) = self.run_cmd("grep \"^WARNING\" last_log", check=False) if rc == 0: warnings = stdout_lines[:-1] # Last line is a blank line else: warnings = [] num_warnings = len(warnings) logger.info("Saw {} warnings in log file".format(num_warnings)) filtered_warnings = self.filter_warnings(cl, option_tag, warnings) num_warnings = len(filtered_warnings) logger.info("Saw {} filtered warnings in log file:\n{}".format(num_warnings, "\n".join(filtered_warnings))) # Check the number of critical warnings (rc, stdout_lines, stderr_lines) = self.run_cmd("grep \"^CRITICAL WARNING\" last_log", check=False) if rc == 0: critical_warnings = stdout_lines[:-1] # Last line is a blank line else: critical_warnings = [] num_critical_warnings = len(critical_warnings) logger.info("Saw {} critical warnings in log file".format(num_critical_warnings)) filtered_critical_warnings = self.filter_warnings(cl, option_tag, critical_warnings) num_critical_warnings = len(filtered_critical_warnings) logger.info("Saw {} filtered critical warnings in log file:\n{}".format(num_critical_warnings, "\n".join(filtered_critical_warnings))) assert not (num_warnings or num_critical_warnings), "Unexpected warnings" # Check if there are any setup/hold-time violations (rc, stdout_lines, stderr_lines) = self.run_cmd( "grep \"The design did not meet timing requirements.\" last_log", check=False) if rc == 0: NUM_TIMING_VIOLATIONS = len(stdout_lines) - 1 else: NUM_TIMING_VIOLATIONS = 0 logger.info("{} timing violations".format(NUM_TIMING_VIOLATIONS)) if self.allow_timing_violations(cl, option_tag): logger.info("Timing violations ignored for this configuration") NUM_TIMING_VIOLATIONS = 0 assert NUM_TIMING_VIOLATIONS == 0, "{} timing violations found. Design may not be functional:\n{}".format( NUM_TIMING_VIOLATIONS, "\n".join(stdout_lines)) # Check clock recipes timing_report = self.assert_non_zero_file(os.path.join(reports_dir, '*.SH_CL_final_timing_summary.rpt')) logger.info("Checking clock frequencies in {}".format(timing_report)) for clock_group in sorted(clock_recipes): recipe = clock_recipes[clock_group] for clock_name in self.DCP_CLOCK_RECIPES[clock_group]['clock_names']: (rc, stdout_lines, stderr_lines) = self.run_cmd("grep -m 1 {} {}".format(clock_name, timing_report)) assert rc == 0, "Couldn't find {} in {}".format(clock_name, timing_report) fields = stdout_lines[0].split() act_freq = float(fields[4]) exp_freq = float(self.DCP_CLOCK_RECIPES[clock_group]['recipes'][recipe][clock_name]) assert act_freq == exp_freq, "{} frequency miscompare: act={} exp={}\n{}".format(clock_name, act_freq, exp_freq, stdout_lines[0]) logger.info("{} : {}".format(clock_name, act_freq)) return tarball def base_test(self, cl, xilinxVersion, build_strategy='DEFAULT', clock_recipe_a='A0', clock_recipe_b='B0', clock_recipe_c='C0', uram_option='2'): assert build_strategy in self.DCP_BUILD_STRATEGIES assert clock_recipe_a in self.DCP_CLOCK_RECIPES['A']['recipes'] assert clock_recipe_b in self.DCP_CLOCK_RECIPES['B']['recipes'] assert clock_recipe_c in self.DCP_CLOCK_RECIPES['C']['recipes'] assert uram_option in self.DCP_URAM_OPTIONS cl_dir = self.get_cl_dir(cl) logger.info("Setting CL_DIR={}".format(cl_dir)) os.environ['CL_DIR'] = cl_dir assert os.path.exists(cl_dir), logger.error("CL_DIR={} does not exist".format(cl_dir)) # Clean up all previous DCP generations cl_dir = self.get_cl_dir(cl) checkpoints_dir = os.path.join(cl_dir, 'build/checkpoints') to_aws_dir = self.get_cl_to_aws_dir(cl) scripts_dir = self.get_cl_scripts_dir(cl) reports_dir = os.path.join(cl_dir, 'build/reports') os.system("rm -rf {}/*".format(to_aws_dir)) os.system("rm -f {}/*".format(checkpoints_dir)) os.system("rm -rf {}/*".format(reports_dir)) os.system("rm -f {}/*.log".format(scripts_dir)) logger.info("Scripts dir is {}".format(scripts_dir)) cwd = os.getcwd() os.chdir(scripts_dir) option_tag = "{}_{}_{}_{}_{}".format(clock_recipe_a, clock_recipe_b, clock_recipe_c, uram_option, build_strategy) (rc, stdout_lines, stderr_lines) = self.run_cmd( "./aws_build_dcp_from_cl.sh -foreground -strategy {} -clock_recipe_a {} -clock_recipe_b {} -clock_recipe_c {} -uram_option {}".format( build_strategy, clock_recipe_a, clock_recipe_b, clock_recipe_c, uram_option)) assert rc == 0, "DCP build failed." logger.info("DCP Generation Finished") tarball = self.check_build(cl, {'A': clock_recipe_a, 'B': clock_recipe_b, 'C': clock_recipe_c}, option_tag) # Upload the DCP tarball to S3. dcp_key = os.path.join(self.get_cl_s3_dcp_tag(cl, option_tag, xilinxVersion), basename(tarball)) self.s3_client().upload_file(tarball, self.s3_bucket, dcp_key) return @pytest.mark.parametrize("build_strategy", AwsFpgaTestBase.DCP_BUILD_STRATEGIES) @pytest.mark.parametrize("clock_recipe_c", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['C']['recipes'].keys())) @pytest.mark.parametrize("clock_recipe_b", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['B']['recipes'].keys())) @pytest.mark.parametrize("clock_recipe_a", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['A']['recipes'].keys())) def test_cl_dram_dma(self, xilinxVersion, build_strategy, clock_recipe_a, clock_recipe_b, clock_recipe_c): cl = 'cl_dram_dma' self.base_test(cl, xilinxVersion, build_strategy, clock_recipe_a, clock_recipe_b, clock_recipe_c) @pytest.mark.parametrize("build_strategy", AwsFpgaTestBase.DCP_BUILD_STRATEGIES) @pytest.mark.parametrize("clock_recipe_c", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['C']['recipes'].keys())) @pytest.mark.parametrize("clock_recipe_b", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['B']['recipes'].keys())) @pytest.mark.parametrize("clock_recipe_a", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['A']['recipes'].keys())) def test_cl_hello_world(self, xilinxVersion, build_strategy, clock_recipe_a, clock_recipe_b, clock_recipe_c): cl = 'cl_hello_world' self.base_test(cl, xilinxVersion, build_strategy, clock_recipe_a, clock_recipe_b, clock_recipe_c) def test_cl_hello_world_vhdl(self, xilinxVersion): cl = 'cl_hello_world_vhdl' self.base_test(cl, xilinxVersion) @pytest.mark.parametrize("uram_option", AwsFpgaTestBase.DCP_URAM_OPTIONS) def test_cl_uram_example(self, xilinxVersion, uram_option): cl = 'cl_uram_example' logger.info("uram_option={}".format(uram_option)) self.base_test(cl, xilinxVersion, clock_recipe_a='A0', uram_option=uram_option) @pytest.mark.parametrize("build_strategy", AwsFpgaTestBase.DCP_BUILD_STRATEGIES) @pytest.mark.parametrize("clock_recipe_c", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['C']['recipes'].keys())) @pytest.mark.parametrize("clock_recipe_b", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['B']['recipes'].keys())) @pytest.mark.parametrize("clock_recipe_a", sorted(AwsFpgaTestBase.DCP_CLOCK_RECIPES['A']['recipes'].keys())) def test_cl_sde(self, xilinxVersion, build_strategy, clock_recipe_a, clock_recipe_b, clock_recipe_c): cl = 'cl_sde' self.base_test(cl, xilinxVersion, build_strategy, clock_recipe_a, clock_recipe_b, clock_recipe_c) ```
State University of Land Use Planning (Russian: Государственный университет по землеустройству), formerly Moscow State University of Land Management , State University of Farming, is one of the oldest universities in Russia. History The history of the university began on 27 May 1779 when a Decree of the Governing Senate established a land survey school. The school was founded by Sergey Ivanovich Rozhnov. In 1819, the land survey school was renamed the Konstantinovoye Land Survey School, and in 1835 it was renamed again as the Constantine Land Institute. In 1849 the Konstantinovsky land surveying institute received the right of a first-rate university and was transferred to the position of a military institution that existed before 1867. During the period from 1835 to 1917, the Institute trained more than 2,000 specialists, including approximately 1,500 surveying engineers. In 1945 the Moscow Land Management Institute was renamed the Moscow Institute of Land Use Engineers (MIIS). The Presidium of the Supreme Soviet of the USSR for the merits in the training of highly qualified personnel for agriculture, a significant contribution to the development of science and practice of land management and in connection with the 200th anniversary of the founding of the Moscow Institute of Land Use Engineers was awarded the Order of the Red Banner of Labour. In accordance with the Resolution of the Council of Ministers of the RSFSR of 18 January 1991, No. 30 "On the Republican Program for Land Reform in the Territory of the RSFSR" and Order No. 193 of 24 March 1992 on the Ministry of Agriculture of the Russian Federation, University for Land Management with the training of specialists in land law, land management, soil science, geobotany, geodesy, architecture and planning of villages. Structure Faculty of Architectural Faculty of Urban Cadastre Faculty of Land Management Faculty of Real Estate Cadastre Faculty of Legal Institute for Advanced Studies Military Department Museum The museum is located in the building of the State Unitary Enterprise, built in 1930–1935. Until 1935. References External links Official website Universities in Moscow Agricultural universities and colleges in Russia
David J. Gunkel (born September 9, 1962) is an American academic and Presidential Teaching Professor of Communication Studies at Northern Illinois University. He teaches courses in web design and programming, information and communication technology (ICT), and cyberculture. His research and publications examine the philosophical assumptions and ethical consequences of ICT. He has served as the managing editor of the International Journal of Žižek Studies. Gunkel has published research and provided media commentary on the topics of machine ethics, the digital divide, telematic technologies, new media, Slavoj Žižek Studies, as well as various aspects of internet culture and cyberculture. His most widely cited material comes from three books, Hacking Cyberspace (2001), which examines the metaphors applied to new technologies, and how those metaphors inform, shape, and drive the implementation of the technology in question; Thinking Otherwise: Philosophy, Communication, Technology (2007), which investigates the unique quandaries, complications, and possibilities introduced by a form of 'otherness' that veils, through technology, the identity of the 'Other'; and The Machine Question: Critical Perspectives on AI, Robots and Ethics (2012) which examines whether and to what extent intelligent and autonomous machines of our own making can be considered to have legitimate moral responsibilities and any legitimate claim to moral consideration. This book won "best book of the year" from the National Communication Association's (NCA) Communication Ethics Division. Another piece on print culture and the transition to an electronic medium and culture titled What's the Matter with Books? has been cited in numerous articles on print culture and the digital revolution. And an article on remix titled Rethinking the Digital Remix: Mash-ups and the Metaphysics of Sound Recording has been subsequently referenced in books and articles on remix culture and mashups. Gunkel has just completed his fourth book, Heidegger and Media (Polity, 2014), which he wrote in collaboration with Paul A. Taylor of the University of Leeds (UK). He has a PhD in philosophy from DePaul University (1996), where he wrote a dissertation on G.W.F. Hegel and an MA from Loyola University, Chicago. His BA was completed at the University of Wisconsin, Madison, where he earned a double major in philosophy and communication. He is married with one son. Formed a rock group with Abe Glazer named 'Too Much Education', first album with same name released 1988. Recorded and mixed at Saw Mill studios Chicago, IL. Bibliography References External links Personal and Professional site " Žižek Studies Home International Communications Association Newsletter American male writers Mass media theorists Living people Northern Illinois University faculty Loyola University Chicago alumni DePaul University alumni University of Wisconsin–Madison alumni 1962 births
A solar tuki is a rechargeable solar lighting system that is being implemented in Nepal to replace kerosene lamps commonly used by villagers. It includes two lamps that have white LED lights powered by an individual solar panel. In 2004, Engineers Anil Chitrakar and Babu Raj Shrestha collaborated with their respective organizations, Environmental Camps for Conservation Awareness and Centre for Renewable Energy, to produce, distribute, and further the development of the solar tuki in Nepal. Their organizations sell the solar tuki systems, including solar panel, for $28 U.S. dollars, and the individual lamp is sold for $11. Components The typical solar tuki unit includes a 3 watt solar panel that charges a battery(NiMH or Li-ion) connected to two 0.4 watt white LED lamps. In addition to being used as a lamp the solar tuki also has the capability to power a radio, and charge a mobile phone. An added feature that can be utilized is a chlorinator, which is used to treat water. The charging time of the lamps vary by how long the solar panel is kept in the sun, and the strength of the sunlight on a given day. Anil Chitrakar, co founder and developer of solar tukis, claims that the lamp can work for up to ten hours when charged in the sun all day long. Development The research and development of the Solar Tuki was supported by the Swedish International Development Cooperation Agency and help from the Asian Institute of Technology. It was developed from May 1999 until the final model of the Solar Tuki was completed in December 2003. The organizations that advocated the growth of the solar tuki in Nepal are the Centre for Renewable Energy (CRE) and Environmental Camps for Conservation Awareness (ECCA). These two organizations have worked together since the establishment of the solar tuki program in 2004. The advancement of ECCA's and CRE's efforts in Nepal were funded primarily by the multiple awards and competitions that have been endowed by several environmentally aware agencies. These endowments have been allocated by the Global Environment Facility, who donated $50,00, and the World Bank Development Marketplace Award, which granted ECCA another $92,00. ECCA's involvement Environmental Camps for Conservation has been the leader in influencing the availability of the solar tuki in Nepal. They have influenced other organizations, like CRE, to work together to provide the cheapest solar tuki to distribute to poor Nepalis. Since the solar tuki project's formation, there have been over 130,000 solar tuki lamps distributed throughout Nepal. Marketing ECCA created a micro financing system in order to reach even the poorest individuals. The system allows people to pay $2.30 per month for two years. This pricing includes a 5-year warranty and services to repair the lantern if damaged. They have set up the market to encourage outside entrepreneurs to compete in the distribution of solar tuki's. ECCA did this purposefully to make cheaper solar tuki units available from competitors, while lowering their sales in Nepal. ECCA has service centers in Kathmandu and Eastern Nepal to help local entrepreneurs learn how to build solar tukis and give advice on business aspects of starting an energy enterprise, such as natural resource management. Over 13 local manufacturers take part in constructing and selling the solar tuki in different areas of Nepal. Community centers To further help the poorer villages, ECCA has set up community charging stations. These charging centers allow the community members to charge their lamp units from one large 36-50 watt photovoltaic solar panel. One 50 watt solar panel can charge up to 40 lamps at once. The idea behind these community charging stations is that villagers will only have to pay the $11 for the lamp, instead of $28 for the lamp and solar panel. They have also set up buildings called service centers. Service centers serve as a place where villagers can go to have maintenance and replacements done to their tukis. ECCA trains individuals on repairing the solar lamps so that help can always be available at the service centers. Manufacturers provide the service centers with spare parts for repairs. Impact The solar tuki was created to be used as a tool to improve the quality of life for the Nepali people. Its various functions has helped the people in many aspects of their lives. Criticisms of the solar tuki have been on the cost of the technology. Even with maximum efforts to reduce costs, the price is still considered high for poverty stricken villages. Some villagers do not see it necessary to invest in the solar tuki if they already own a source of light (kerosene lamp). Health and economic benefits With the solar tuki replacing the traditional kerosene lamps, the health of individuals has improved due to the lack of smoke produced. Previously, soot from the kerosene lamps had caused eye irritation and coughing. Fire safety has also improved due to the lack of a flame inside households. With the absence of kerosene in the solar tuki, villagers save considerable amounts of time which they would spend acquiring fuel. Monthly expenses which would be spent on fuel are also saved, allowing villagers to allocate their earnings toward other necessities. The introduction of the solar tuki market has strengthened the economy of rural Nepal. Employment opportunities became available as businesses began manufacturing and distributing tuki's. Educational benefits The brightness of the LED bulbs illuminates small areas better than the kerosene lamp, which helps people with tasks such as cooking and studying at night. Some schools in Nepal give students a solar tuki lamp unit in order for them to study at night. This requires the students to come back to school in order to charge their tukis, which has increased student attendance. The ability to power a small radio from the solar panel provides unlimited use, without worrying about electricity costs. Therefore, villagers can have access to important information and be updated about current events. References Solar-powered devices
The Reckoning is a 1969 British drama film released by Columbia Pictures directed by Jack Gold and starring Nicol Williamson, Ann Bell, Rachel Roberts and Zena Walker. It was based on the 1967 novel The Harp that Once by Patrick Hall and features music by Malcolm Arnold. The film was shot at Shepperton Studios and on location around London and Liverpool. The film's sets were designed by the art director Ray Simm. Produced during 1969, the film was released on the 8 January the following year. Plot Michael "Mick" Marler has risen through the ranks at a large British company. Despite his polish, Mick comes from a working-class background, and has worked hard to fit into the world in which he and his social-climbing wife Rosemary live. His marriage consists of animalistic lovemaking between traded insults and long silences. One morning, while Mick is trying to save his boss, Hazlitt, from mistakes and sagging sales, he convinces him to persuade the company to make computers, something they had rejected. After Hazlitt agrees, Rosemary calls to say that Mick's father, John Joe, is dying. Mick wants to leave, but is coerced by Hazlitt into completing a report. Mick remains a tough, but sentimental, Irish Liverpudlian and drives his Jaguar to his childhood neighbourhood. On entering his father's bedroom, he is shattered to discover that John Joe has died and further disturbed to find dark bruises on his father's face and body. After questioning his mother, his sister, the priest and Dr. Carolan, the family physician, Mick visits the Irish social hall to speak with Cocky Burke, his father's best friend. Cocky says that John Joe, a popular amateur balladeer, had a heart attack after English "Teddy boys" started a fight because he was singing an Irish rebel song, then punched and kicked him. Mick asks Cocky to tell the police, but Cocky, who distrusts the authorities, tells Mick to avenge his father. Angered by Rosemary's reluctance to attend the funeral, Mick returns to the hall but is spirited away by Joyce, Dr. Carolan's nurse, when police break up a fight. Joyce is unsatisfied by her husband. They go to Mick's old house and make love. In the morning, Joyce has gone but left her address. Returning to London, Mick and Hazlitt have a successful board meeting, after which Mick goes home and propositions Rosemary. When she instead tells him she is giving a planned party, he angrily goes drinking. Hours later, Mick stumbles back home, where he makes a scene and punches Sir Miles Bishton, one of his directors. Everyone, including Rosemary, leaves after Mick rants about doing dirty work for English gentlemen. The next day, Hazlitt suspends him and predicts his dismissal when company head Moyle returns from a trip. At home, Rosemary resists Mick's advances, packs and leaves. Hearing that the magistrate has ruled John Joe's death accidental, Mick again drives to Liverpool. Instead of his mother's, Mick checks into an obscure hotel, then borrows a local company car, parking it near his hotel. Leaving his Jaguar at the hotel entrance, he tells the manager he has a headache and plans to sleep. The manager gives Mick an analgesic and says his car is safe. After dark, Mick sneaks out to the smaller car and drives to the hall. Soon Jones, the "Teddy" identified as John Joe's attacker, arrives, prompting Mick to savagely beat him with a pipe, despite his pleas for mercy. When Mick checks out in the morning, the manager says that the police asked where he was last night, but she assured them he had been in his room. Mick drives toward Joyce's address but seeing her with children, drives away. Saying goodbye, his mother tells him the police had been there and softly says "You're a bad lad." Bidding farewell affectionately, Mick says that he always was. Driving home, Mick thinks of Hilda, Hazlitt's secretary, who likes him. He visits, seduces her and cajoles her into revealing damaging information about Hazlitt. When Moyle summons Mick, Mick appears reluctant to criticise Hazlitt, but then says that Hazlitt had persistently stolen ideas from underlings and blamed them for his errors. Remembering that men Hazlitt has dismissed have been successful elsewhere, Moyle says he is replacing him with Mick. Moyle assumes that Mick will want to keep Hilda, but Mick says she is untrustworthy. During a celebratory drink, Moyle sympathises about Rosemary leaving: when Mick says she will not return, Moyle assures him she will. Subsequently, as a reconciled Mick and Rosemary are on a motorway, he recklessly speeds past a barrier and narrowly misses hitting an oncoming truck. Exhilarated, Mick says, "If I can get away with that, I can get away with anything." Cast Production Filming locations included Seacombe, Wallasey, Birkenhead and the dockland Four Bridges, Liverpool and London. A collection of location stills and corresponding contemporary photographs is hosted at reelstreets.com. References Bibliography Goble, Alan. The Complete Index to Literary Sources in Film. Walter de Gruyter, 1999. Jackson, Paul R.W. The Life and Music of Sir Malcolm Arnold: The Brilliant and the Dark. Routledge, 2019. 1970 drama films 1970 films British drama films British films about revenge Columbia Pictures films Films about businesspeople Films based on British novels Films directed by Jack Gold Films scored by Malcolm Arnold Films set in Liverpool Films set in London Films shot at Shepperton Studios Films shot in London 1970s English-language films 1970s British films
```go package ctxwatch import ( "context" "sync" ) // ContextWatcher watches a context and performs an action when the context is canceled. It can watch one context at a // time. type ContextWatcher struct { onCancel func() onUnwatchAfterCancel func() unwatchChan chan struct{} lock sync.Mutex watchInProgress bool onCancelWasCalled bool } // NewContextWatcher returns a ContextWatcher. onCancel will be called when a watched context is canceled. // OnUnwatchAfterCancel will be called when Unwatch is called and the watched context had already been canceled and // onCancel called. func NewContextWatcher(onCancel func(), onUnwatchAfterCancel func()) *ContextWatcher { cw := &ContextWatcher{ onCancel: onCancel, onUnwatchAfterCancel: onUnwatchAfterCancel, unwatchChan: make(chan struct{}), } return cw } // Watch starts watching ctx. If ctx is canceled then the onCancel function passed to NewContextWatcher will be called. func (cw *ContextWatcher) Watch(ctx context.Context) { cw.lock.Lock() defer cw.lock.Unlock() if cw.watchInProgress { panic("Watch already in progress") } cw.onCancelWasCalled = false if ctx.Done() != nil { cw.watchInProgress = true go func() { select { case <-ctx.Done(): cw.onCancel() cw.onCancelWasCalled = true <-cw.unwatchChan case <-cw.unwatchChan: } }() } else { cw.watchInProgress = false } } // Unwatch stops watching the previously watched context. If the onCancel function passed to NewContextWatcher was // called then onUnwatchAfterCancel will also be called. func (cw *ContextWatcher) Unwatch() { cw.lock.Lock() defer cw.lock.Unlock() if cw.watchInProgress { cw.unwatchChan <- struct{}{} if cw.onCancelWasCalled { cw.onUnwatchAfterCancel() } cw.watchInProgress = false } } ```
```objective-c // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // The LazyInstance<Type, Traits> class manages a single instance of Type, // which will be lazily created on the first time it's accessed. This class is // useful for places you would normally use a function-level static, but you // need to have guaranteed thread-safety. The Type constructor will only ever // be called once, even if two threads are racing to create the object. Get() // and Pointer() will always return the same, completely initialized instance. // // LazyInstance is completely thread safe, assuming that you create it safely. // The class was designed to be POD initialized, so it shouldn't require a // static constructor. It really only makes sense to declare a LazyInstance as // a global variable using the LAZY_INSTANCE_INITIALIZER initializer. // // LazyInstance is similar to Singleton, except it does not have the singleton // property. You can have multiple LazyInstance's of the same type, and each // will manage a unique instance. It also preallocates the space for Type, as // to avoid allocating the Type instance on the heap. This may help with the // performance of creating the instance, and reducing heap fragmentation. This // requires that Type be a complete type so we can determine the size. See // notes for advanced users below for more explanations. // // Example usage: // static LazyInstance<MyClass>::type my_instance = LAZY_INSTANCE_INITIALIZER; // void SomeMethod() { // my_instance.Get().SomeMethod(); // MyClass::SomeMethod() // // MyClass* ptr = my_instance.Pointer(); // ptr->DoDoDo(); // MyClass::DoDoDo // } // // Additionally you can override the way your instance is constructed by // providing your own trait: // Example usage: // struct MyCreateTrait { // static void Construct(void* allocated_ptr) { // new (allocated_ptr) MyClass(/* extra parameters... */); // } // }; // static LazyInstance<MyClass, MyCreateTrait>::type my_instance = // LAZY_INSTANCE_INITIALIZER; // // WARNINGS: // - This implementation of LazyInstance IS THREAD-SAFE by default. See // SingleThreadInitOnceTrait if you don't care about thread safety. // - Lazy initialization comes with a cost. Make sure that you don't use it on // critical path. Consider adding your initialization code to a function // which is explicitly called once. // // Notes for advanced users: // LazyInstance can actually be used in two different ways: // // - "Static mode" which is the default mode since it is the most efficient // (no extra heap allocation). In this mode, the instance is statically // allocated (stored in the global data section at compile time). // The macro LAZY_STATIC_INSTANCE_INITIALIZER (= LAZY_INSTANCE_INITIALIZER) // must be used to initialize static lazy instances. // // - "Dynamic mode". In this mode, the instance is dynamically allocated and // constructed (using new) by default. This mode is useful if you have to // deal with some code already allocating the instance for you (e.g. // OS::Mutex() which returns a new private OS-dependent subclass of Mutex). // The macro LAZY_DYNAMIC_INSTANCE_INITIALIZER must be used to initialize // dynamic lazy instances. #ifndef V8_BASE_LAZY_INSTANCE_H_ #define V8_BASE_LAZY_INSTANCE_H_ #include "src/base/macros.h" #include "src/base/once.h" namespace v8 { namespace base { #define LAZY_STATIC_INSTANCE_INITIALIZER { V8_ONCE_INIT, { {} } } #define LAZY_DYNAMIC_INSTANCE_INITIALIZER { V8_ONCE_INIT, 0 } // Default to static mode. #define LAZY_INSTANCE_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER template <typename T> struct LeakyInstanceTrait { static void Destroy(T* /* instance */) {} }; // Traits that define how an instance is allocated and accessed. template <typename T> struct StaticallyAllocatedInstanceTrait { // 16-byte alignment fallback to be on the safe side here. struct V8_ALIGNAS(T, 16) StorageType { char x[sizeof(T)]; }; STATIC_ASSERT(V8_ALIGNOF(StorageType) >= V8_ALIGNOF(T)); static T* MutableInstance(StorageType* storage) { return reinterpret_cast<T*>(storage); } template <typename ConstructTrait> static void InitStorageUsingTrait(StorageType* storage) { ConstructTrait::Construct(storage); } }; template <typename T> struct DynamicallyAllocatedInstanceTrait { typedef T* StorageType; static T* MutableInstance(StorageType* storage) { return *storage; } template <typename CreateTrait> static void InitStorageUsingTrait(StorageType* storage) { *storage = CreateTrait::Create(); } }; template <typename T> struct DefaultConstructTrait { // Constructs the provided object which was already allocated. static void Construct(void* allocated_ptr) { new (allocated_ptr) T(); } }; template <typename T> struct DefaultCreateTrait { static T* Create() { return new T(); } }; struct ThreadSafeInitOnceTrait { template <typename Function, typename Storage> static void Init(OnceType* once, Function function, Storage storage) { CallOnce(once, function, storage); } }; // Initialization trait for users who don't care about thread-safety. struct SingleThreadInitOnceTrait { template <typename Function, typename Storage> static void Init(OnceType* once, Function function, Storage storage) { if (*once == ONCE_STATE_UNINITIALIZED) { function(storage); *once = ONCE_STATE_DONE; } } }; // TODO(pliard): Handle instances destruction (using global destructors). template <typename T, typename AllocationTrait, typename CreateTrait, typename InitOnceTrait, typename DestroyTrait /* not used yet. */> struct LazyInstanceImpl { public: typedef typename AllocationTrait::StorageType StorageType; private: static void InitInstance(void* storage) { AllocationTrait::template InitStorageUsingTrait<CreateTrait>( static_cast<StorageType*>(storage)); } void Init() const { InitOnceTrait::Init(&once_, &InitInstance, static_cast<void*>(&storage_)); } public: T* Pointer() { Init(); return AllocationTrait::MutableInstance(&storage_); } const T& Get() const { Init(); return *AllocationTrait::MutableInstance(&storage_); } mutable OnceType once_; // Note that the previous field, OnceType, is an AtomicWord which guarantees // 4-byte alignment of the storage field below. If compiling with GCC (>4.2), // the LAZY_ALIGN macro above will guarantee correctness for any alignment. mutable StorageType storage_; }; template <typename T, typename CreateTrait = DefaultConstructTrait<T>, typename InitOnceTrait = ThreadSafeInitOnceTrait, typename DestroyTrait = LeakyInstanceTrait<T> > struct LazyStaticInstance { typedef LazyInstanceImpl<T, StaticallyAllocatedInstanceTrait<T>, CreateTrait, InitOnceTrait, DestroyTrait> type; }; template <typename T, typename CreateTrait = DefaultConstructTrait<T>, typename InitOnceTrait = ThreadSafeInitOnceTrait, typename DestroyTrait = LeakyInstanceTrait<T> > struct LazyInstance { // A LazyInstance is a LazyStaticInstance. typedef typename LazyStaticInstance<T, CreateTrait, InitOnceTrait, DestroyTrait>::type type; }; template <typename T, typename CreateTrait = DefaultCreateTrait<T>, typename InitOnceTrait = ThreadSafeInitOnceTrait, typename DestroyTrait = LeakyInstanceTrait<T> > struct LazyDynamicInstance { typedef LazyInstanceImpl<T, DynamicallyAllocatedInstanceTrait<T>, CreateTrait, InitOnceTrait, DestroyTrait> type; }; } // namespace base } // namespace v8 #endif // V8_BASE_LAZY_INSTANCE_H_ ```
Sawnie Robertson Aldredge (November 13, 1890 – May 13, 1949), attorney and judge, was mayor of Dallas from 1921 to 1923. Biography Aldredge was born November 13, 1890, in Dallas, Texas, to Judge George Nathan Aldredge and Betty Warren Hearne. He married Mary Ellen Batts, daughter of Judge Robert Lynn Batts and Harriet Fiquet Boak on January 14, 1915, in Austin, Texas. They had two children: Sawnie R. Aldredge, Jr. and Mary Lynn Aldredge. Aldredge's niece, Gertrude Aldredge Shelburne, was an early women's rights and birth control activist in Dallas. He attended Southwestern University, Cornell University and University of Texas School of Law. He was admitted to the Texas bar in 1914. He was associated with Thompson, Knight, Baker & Harris; Allen & Flanary, which eventually became Aldredge, Shults & Madden. During the First World War, he was stationed at Kelly Field, Texas, and St. Maixent Field, France. He ran for mayor with the support of the Citizens' Association, defeating William E. Talbot, nominee of the Democratic party and the Independent Voters' League. Trinity Heights was annexed to the city of Dallas during his administration. This was the largest single addition to the city since Oak Cliff was annexed in 1904. He sought to annex Highland Park to the city and to establish a municipal golf course. He did not run for a second term. Sawnie R. Aldredge died May 13, 1949, in Dallas, Texas, and was interred at Hillcrest Mausoleum, Dallas, Texas. References Mayors of Dallas Texas Democrats Southwestern University alumni Cornell University alumni University of Texas School of Law alumni United States Army personnel of World War I 1890 births 1949 deaths 20th-century American politicians
EPRO may refer to: ePRO, or Electronic patient-reported outcome EPRO, or Extreme Risk Protection Order
Hammersmith South was a borough constituency in the Metropolitan Borough of Hammersmith in west London. It returned one Member of Parliament (MP) to the House of Commons of the Parliament of the United Kingdom, elected by the first-past-the-post system. The constituency was created when the Hammersmith constituency was divided for the 1918 general election. It was abolished for the 1955 general election. Boundaries 1918–1950: The Metropolitan Borough of Hammersmith wards numbers one, two and three. 1950–1955: The Metropolitan Borough of Hammersmith wards of Addison, Broadway, Brook Green, Grove, Olympia, Ravenscourt, and St Stephen's. Members of Parliament Election results Elections in the 1910s Elections in the 1920s Elections in the 1930s Elections in the 1940s Elections in the 1950s References Parliamentary constituencies in London (historic) Constituencies of the Parliament of the United Kingdom established in 1918 Constituencies of the Parliament of the United Kingdom disestablished in 1955 Politics of the London Borough of Hammersmith and Fulham
Taju Akay (21 January 1962 – 19 May 2006), known professionally as Tee Jay, was a Ghanaian-born British boxer. After fighting for Ghana at the 1984 Olympic Games he turned professional and went on to become British cruiserweight champion. Career Born in Accra, Ghana in 1962, Akay settled with his family in Paddington London in the 1970s where he boxed out of the All Stars Boxing and Youth Club, which his father—former professional Isola Akay had started. He represented Ghana at the 1984 Summer Olympics at light-heavyweight, losing to Evander Holyfield in the first stage of the competition. He turned pro in 1985, and was unbeaten in his first five fights. In October 1986 he faced Andy Straughn for the British cruiserweight title vacated by Sammy Reeson, losing on points. He got another shot at the title in May 1987, this time stopping defending champion Roy Smith in the first round to take the title. Three further victories in 1987 set him up for a challenge for Glenn McCrory's Commonwealth title. The two met in January 1988 with both the British and Commonwealth titles at stake; McCrory won on points. When McCrory vacated the British title later that year, Akay and Straughn met in November to contest it; Straughn again took a narrow points decision. Akay won his next six fights and in May 1991 got another chance to win the British and Commonwealth titles when he faced Derek Angol at the Royal Albert Hall. Angol stopped Akay in the third round to retain the titles. This proved to be Akay's final fight. Taju Akay died in May 2006 after suffering a heart attack. References External links Career record at boxrec.com 1962 births 2006 deaths Boxers from Accra Ghanaian male boxers English male boxers Boxers from Greater London Cruiserweight boxers Boxers at the 1984 Summer Olympics Olympic boxers for Ghana Ghanaian emigrants to England Sportspeople from Paddington
```xml const CloudSlashIcon = ({ className }: { className?: string }) => ( <svg viewBox="0 0 16 16" className={className} xmlns="path_to_url" fill="none"> <path fill="currentColor" fillRule="evenodd" d="M2.647 2.945a.5.5 0 1 1 .707-.707l1.43 1.431A3.998 3.998 0 0 1 10.464 5H11a4 4 0 0 1 2.35 7.239l.408.409a.5.5 0 0 1-.707.707L2.647 2.944Zm9.983 8.574A3 3 0 0 0 11 6H9.888L9.6 5.5A2.998 2.998 0 0 0 5.51 4.396l7.12 7.124Z" clipRule="evenodd" /> <path fill="currentColor" d="m4.204 5.911-.755-.755A3.983 3.983 0 0 0 3 7v.17A3.001 3.001 0 0 0 4 13h7c.094 0 .187-.003.28-.01l-.99-.99H4a2 2 0 0 1-.667-3.886L4 7.878V7c0-.384.072-.751.204-1.089Z" /> </svg> ) export default CloudSlashIcon ```
```xml <?xml version="1.0" encoding="UTF-8" ?> <ContentPage xmlns="path_to_url" xmlns:x="path_to_url" x:Class="Xamarin.Forms.Controls.GalleryPages.RefreshViewGalleries.RefreshLayoutGallery" Title="Layout (Pull To Refresh)"> <ContentPage.Resources> <ResourceDictionary> <DataTemplate x:Key="RefreshItemTemplate"> <Grid HeightRequest="100" WidthRequest="100"> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <BoxView Grid.Row="0" Color="{Binding Color}"/> <Label Grid.Row="1" Text="{Binding Name}"/> </Grid> </DataTemplate> </ResourceDictionary> </ContentPage.Resources> <ContentPage.Content> <RefreshView IsRefreshing="{Binding IsRefreshing}" RefreshColor="Red" Command="{Binding RefreshCommand}" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> <StackLayout Padding="6"> <Label FontSize="Medium" FontAttributes="Bold" Text="The Content of a RefreshView must be a scrollable control, such as ScrollView, CollectionView, ListView, etc."/> <Label FontSize="Small" Text="Setting the Content to a control like Grid will result in undefined behavior."/> </StackLayout> </RefreshView> </ContentPage.Content> </ContentPage> ```
Lieutenant-Colonel Aubrey John "A.J." O'Brien (5 December 1870 – 31 August 1930) was an officer in the British Indian Army and a writer on India. Education O'Brien's father was Edward O'Brien of the Bengal Civil Service. Aubrey O'Brien was educated at Dover College and at Sandhurst. Military career He served three and a half years in the Loyal North Lancashire Regiment, and one and a half years in the 110th Maratha Light Infantry before spending 29 years in the Punjab Commission. Judicial career He also remained the district judge as a Lieutenant at Bannu (then part of British India, now in Pakistan). On 9 November 1901 he was promoted to the rank of captain and appointed as the 1st Deputy Commissioner of the newly formed Mianwali District (then part of British India, now in Pakistan). He served Mianwali not once but three times, the second time in 1906 and the third time in 1914. However he was promoted to the rank of major during his third tenure at Mianwali. Awards and honours O'Brien was made CIE in 1906 and CBE in 1919. Death He died in Kensington, aged 59, from undisclosed causes and was interred at Brompton Cemetery, London. Selected works Female infanticide in the Punjab, Folklore 19:3 (1908), pp. 261–75 Mianwali Folklore Notes, Folklore 22:1 (1911), pp. 73–77 The Mohammedan Saints of the Western Punjab, The Journal of the Royal Anthropological Institute of Great Britain and Ireland 41 (1911), pp. 509–520 (with Reginald Bolster) Cupid and Cartridges (Sketches of Sport in the Punjab), 1911 (with Reginald Bolster) Bahawalpur: Transformation of an Indian State, The Times, 4 November 1926 References 1870 births 1930 deaths British Indian Army officers British non-fiction writers Burials at Brompton Cemetery Commanders of the Order of the British Empire Companions of the Order of the Indian Empire Loyal Regiment officers Mianwali District Military personnel from Kensington British male writers Male non-fiction writers Writers from British India British people in colonial India
```ruby # -*- encoding: utf-8 -*- # frozen_string_literal: false require_relative '../../spec_helper' # Examples taken from path_to_url#Norm_Forms describe "String#unicode_normalize" do before :each do @accented_f = "\u1e9b\u0323" @angstrom = "\u212b" @ohm = "\u2126" end it "normalizes code points in the string according to the form that is specified" do @accented_f.unicode_normalize(:nfc).should == "\u1e9b\u0323" @accented_f.unicode_normalize(:nfd).should == "\u017f\u0323\u0307" @accented_f.unicode_normalize(:nfkc).should == "\u1e69" @accented_f.unicode_normalize(:nfkd).should == "\u0073\u0323\u0307" end it "defaults to the nfc normalization form if no forms are specified" do @accented_f.unicode_normalize.should == "\u1e9b\u0323" @angstrom.unicode_normalize.should == "\u00c5" @ohm.unicode_normalize.should == "\u03a9" end # path_to_url#6 context "returns normalized form of string by default" do it "03D3 () GREEK UPSILON WITH ACUTE AND HOOK SYMBOL" do "\u03D3".unicode_normalize(:nfc).should == "\u03D3" "\u03D3".unicode_normalize(:nfd).should == "\u03D2\u0301" "\u03D3".unicode_normalize(:nfkc).should == "\u038E" "\u03D3".unicode_normalize(:nfkd).should == "\u03A5\u0301" end it "03D4 () GREEK UPSILON WITH DIAERESIS AND HOOK SYMBOL" do "\u03D4".unicode_normalize(:nfc).should == "\u03D4" "\u03D4".unicode_normalize(:nfd).should == "\u03D2\u0308" "\u03D4".unicode_normalize(:nfkc).should == "\u03AB" "\u03D4".unicode_normalize(:nfkd).should == "\u03A5\u0308" end it "1E9B () LATIN SMALL LETTER LONG S WITH DOT ABOVE" do "\u1E9B".unicode_normalize(:nfc).should == "\u1E9B" "\u1E9B".unicode_normalize(:nfd).should == "\u017F\u0307" "\u1E9B".unicode_normalize(:nfkc).should == "\u1E61" "\u1E9B".unicode_normalize(:nfkd).should == "\u0073\u0307" end end it "raises an Encoding::CompatibilityError if string is not in an unicode encoding" do -> do [0xE0].pack('C').force_encoding("ISO-8859-1").unicode_normalize(:nfd) end.should raise_error(Encoding::CompatibilityError) end it "raises an ArgumentError if the specified form is invalid" do -> { @angstrom.unicode_normalize(:invalid_form) }.should raise_error(ArgumentError) end end describe "String#unicode_normalize!" do it "normalizes code points and modifies the receiving string" do angstrom = "\u212b" angstrom.unicode_normalize! angstrom.should == "\u00c5" angstrom.should_not == "\u212b" end it "modifies original string (nfc)" do str = "a\u0300" str.unicode_normalize!(:nfc) str.should_not == "a\u0300" str.should == "" end it "modifies self in place (nfd)" do str = "\u00E0" str.unicode_normalize!(:nfd) str.should_not == "\u00E0" str.should == "a\u0300" end it "modifies self in place (nfkc)" do str = "\u1E9B\u0323" str.unicode_normalize!(:nfkc) str.should_not == "\u1E9B\u0323" str.should == "\u1E69" end it "modifies self in place (nfkd)" do str = "\u1E9B\u0323" str.unicode_normalize!(:nfkd) str.should_not == "\u1E9B\u0323" str.should == "s\u0323\u0307" end it "raises an Encoding::CompatibilityError if the string is not in an unicode encoding" do -> { [0xE0].pack('C').force_encoding("ISO-8859-1").unicode_normalize! }.should raise_error(Encoding::CompatibilityError) end it "raises an ArgumentError if the specified form is invalid" do ohm = "\u2126" -> { ohm.unicode_normalize!(:invalid_form) }.should raise_error(ArgumentError) end end ```
John Herbert Norton Fitzpatrick (18 August 1946 – 21 December 2020) was a Scottish footballer who played variously as a wing half, forward and full-back for English club Manchester United. He joined the Manchester United ground staff as a 15-year-old and made his way up through the club's ranks before complications from a knee injury forced him to retire from playing at the age of 26. Following retirement from professional football at an early age, and having moved back to his home City of Aberdeen, John carried on his involvement in professional football in the Scottish Highland Football League where he took up Club management rolls with Buckie Thistle FC, and subsequently with Huntly FC. Career Born in Aberdeen, Fitzpatrick started his football career with a local youth club, Thistle Lads' Club, before being spotted by Manchester United scouts in September 1961. He was invited to Old Trafford for trials, but before the move to Manchester, he asked to play one last match for his old club; during the match he broke his leg, which delayed him signing apprentice forms with Manchester United until July 1962. In the meantime, he worked as a member of the club's ground staff. He turned professional in September 1963. After being part of the team that won the FA Youth Cup in April 1964, which also included John Aston, David Sadler and George Best, Fitzpatrick made his professional debut at the age of 18 in February 1965, filling in for the injured Nobby Stiles at left-half in a 1–0 away defeat to Sunderland. On 16 October 1965, he became Manchester United's first ever substitute in a Football League match, coming on for Denis Law in a 5–1 away defeat against Tottenham Hotspur. He made only sporadic appearances over the next two seasons, exclusively as a wing-half, where his opportunities were limited by the appearances of Stiles and Pat Crerand. The 1967–68 season saw him make more regular appearances in a variety of positions, including in the forward line, but it was not until February 1969 that he found his ultimate position as a right-sided full-back, filling in for the injured Shay Brennan. His season came to a slightly premature end, when he was sent off in the first leg of the European Cup semi-final against Milan, following which he had to have a police escort to the changing rooms. The incident resulted in Fitzpatrick receiving an eight-week suspension. Fitzpatrick retained his place in the side at the start of the 1969–70 season, but an injury gained against Tottenham on 22 November 1969 ruled him out for the next four months. He recovered to play in the last seven matches of the season, and after the departure of Brennan to become player–manager at Waterford United, he missed only seven league matches in 1970–71. He made only one appearance in 1971–72, after a recurrence of the knee cartilage problem he had experienced two years earlier, which subsequently required four operations to correct. Although he was able to return for the start of the 1972–73 season, he lasted just six matches in the first team and another two in the reserves before retiring on medical advice, bringing to an end a career in which he made nearly 150 appearances, and scored 10 goals. In recognition of his nine years of service to the club, Manchester United presented Fitzpatrick with a cheque for £20,000, as well as organising a cabaret dinner in his honour, which raised a further £1,000. When John moved back to Aberdeen, he took on Club management rolls in the Scottish Highland Football League with Buckie Thistle FC, and subsequently with Huntly FC. Statistics Later life After retiring, he returned to his home town of Aberdeen, where he went into business as a wine importer. He died in December 2020 at the age of 74. References Footnotes Bibliography External links Profile at StretfordEnd.co.uk 1946 births 2020 deaths Footballers from Aberdeen Scottish men's footballers Manchester United F.C. players English Football League players Men's association football defenders Men's association football midfielders
Mujibor Rahman is a Bangladeshi cricketer. He made his List A debut for Victoria Sporting Club in the 2016–17 Dhaka Premier Division Cricket League on 11 May 2017. References External links Year of birth missing (living people) Living people Bangladeshi cricketers Victoria Sporting Club cricketers Place of birth missing (living people)
Greenbush is a census-designated place (CDP) in Accomack County, Virginia, United States. Per the 2020 census, the population was 224. Hills Farm was added to the National Register of Historic Places in 2008. Geography It lies at an elevation of 43 feet. Demographics 2020 census References Virginia Trend Report 2: State and Complete Places (Sub-state 2010 Census Data) Census-designated places in Accomack County, Virginia Census-designated places in Virginia
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var isObject = require( '@stdlib/assert/is-plain-object' ); var format = require( '@stdlib/string/format' ); var assign = require( '@stdlib/object/assign' ); var Stream = require( './main.js' ); // MAIN // /** * Creates a reusable debug stream factory. * * @param {Options} [options] - stream options * @param {boolean} [options.objectMode=false] - specifies whether the stream should operate in object mode * @param {NonNegativeNumber} [options.highWaterMark] - specifies the `Buffer` level for when `write()` starts returning `false` * @param {boolean} [options.allowHalfOpen=false] - specifies whether the stream should remain open even if one side ends * @param {boolean} [options.readableObjectMode=false] - specifies whether the readable side should be in object mode * @throws {TypeError} options argument must be an object * @returns {Function} debug stream factory * * @example * var opts = { * 'objectMode': true, * 'highWaterMark': 64 * }; * * var factory = streamFactory( opts ); * * // Assign each stream to a separate debug namespace... * var streams = []; * var i; * for ( i = 0; i < 10; i++ ) { * streams.push( factory( 'stream '+i ) ); * } */ function streamFactory( options ) { var opts; if ( arguments.length ) { if ( !isObject( options ) ) { throw new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) ); } opts = assign( {}, options ); } else { opts = {}; } return debugStream; /** * Creates a transform stream for debugging stream pipelines. * * @private * @param {string} name - debug namespace * @param {Callback} [clbk] - callback to invoke upon receiving data * @throws {TypeError} must provide valid options * @throws {TypeError} must provide a valid callback argument * @returns {DebugStream} debug stream */ function debugStream( name, clbk ) { opts.name = name; if ( arguments.length > 1 ) { return new Stream( opts, clbk ); } return new Stream( opts ); } } // EXPORTS // module.exports = streamFactory; ```
```go package repo import ( "context" "fmt" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/perm" "code.gitea.io/gitea/models/unit" user_model "code.gitea.io/gitea/models/user" "code.gitea.io/gitea/modules/timeutil" "xorm.io/builder" ) // Collaboration represent the relation between an individual and a repository. type Collaboration struct { ID int64 `xorm:"pk autoincr"` RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"` UserID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"` Mode perm.AccessMode `xorm:"DEFAULT 2 NOT NULL"` CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"` UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"` } func init() { db.RegisterModel(new(Collaboration)) } // Collaborator represents a user with collaboration details. type Collaborator struct { *user_model.User Collaboration *Collaboration } type FindCollaborationOptions struct { db.ListOptions RepoID int64 RepoOwnerID int64 CollaboratorID int64 } func (opts *FindCollaborationOptions) ToConds() builder.Cond { cond := builder.NewCond() if opts.RepoID != 0 { cond = cond.And(builder.Eq{"collaboration.repo_id": opts.RepoID}) } if opts.RepoOwnerID != 0 { cond = cond.And(builder.Eq{"repository.owner_id": opts.RepoOwnerID}) } if opts.CollaboratorID != 0 { cond = cond.And(builder.Eq{"collaboration.user_id": opts.CollaboratorID}) } return cond } func (opts *FindCollaborationOptions) ToJoins() []db.JoinFunc { if opts.RepoOwnerID != 0 { return []db.JoinFunc{ func(e db.Engine) error { e.Join("INNER", "repository", "repository.id = collaboration.repo_id") return nil }, } } return nil } // GetCollaborators returns the collaborators for a repository func GetCollaborators(ctx context.Context, opts *FindCollaborationOptions) ([]*Collaborator, int64, error) { collaborations, total, err := db.FindAndCount[Collaboration](ctx, opts) if err != nil { return nil, 0, fmt.Errorf("db.FindAndCount[Collaboration]: %w", err) } collaborators := make([]*Collaborator, 0, len(collaborations)) userIDs := make([]int64, 0, len(collaborations)) for _, c := range collaborations { userIDs = append(userIDs, c.UserID) } usersMap := make(map[int64]*user_model.User) if err := db.GetEngine(ctx).In("id", userIDs).Find(&usersMap); err != nil { return nil, 0, fmt.Errorf("Find users map by user ids: %w", err) } for _, c := range collaborations { u := usersMap[c.UserID] if u == nil { u = user_model.NewGhostUser() } collaborators = append(collaborators, &Collaborator{ User: u, Collaboration: c, }) } return collaborators, total, nil } // GetCollaboration get collaboration for a repository id with a user id func GetCollaboration(ctx context.Context, repoID, uid int64) (*Collaboration, error) { collaboration := &Collaboration{ RepoID: repoID, UserID: uid, } has, err := db.GetEngine(ctx).Get(collaboration) if !has { collaboration = nil } return collaboration, err } // IsCollaborator check if a user is a collaborator of a repository func IsCollaborator(ctx context.Context, repoID, userID int64) (bool, error) { return db.GetEngine(ctx).Get(&Collaboration{RepoID: repoID, UserID: userID}) } // ChangeCollaborationAccessMode sets new access mode for the collaboration. func ChangeCollaborationAccessMode(ctx context.Context, repo *Repository, uid int64, mode perm.AccessMode) error { // Discard invalid input if mode <= perm.AccessModeNone || mode > perm.AccessModeOwner { return nil } return db.WithTx(ctx, func(ctx context.Context) error { e := db.GetEngine(ctx) collaboration := &Collaboration{ RepoID: repo.ID, UserID: uid, } has, err := e.Get(collaboration) if err != nil { return fmt.Errorf("get collaboration: %w", err) } else if !has { return nil } if collaboration.Mode == mode { return nil } collaboration.Mode = mode if _, err = e. ID(collaboration.ID). Cols("mode"). Update(collaboration); err != nil { return fmt.Errorf("update collaboration: %w", err) } else if _, err = e.Exec("UPDATE access SET mode = ? WHERE user_id = ? AND repo_id = ?", mode, uid, repo.ID); err != nil { return fmt.Errorf("update access table: %w", err) } return nil }) } // IsOwnerMemberCollaborator checks if a provided user is the owner, a collaborator or a member of a team in a repository func IsOwnerMemberCollaborator(ctx context.Context, repo *Repository, userID int64) (bool, error) { if repo.OwnerID == userID { return true, nil } teamMember, err := db.GetEngine(ctx).Join("INNER", "team_repo", "team_repo.team_id = team_user.team_id"). Join("INNER", "team_unit", "team_unit.team_id = team_user.team_id"). Where("team_repo.repo_id = ?", repo.ID). And("team_unit.`type` = ?", unit.TypeCode). And("team_user.uid = ?", userID).Table("team_user").Exist() if err != nil { return false, err } if teamMember { return true, nil } return db.GetEngine(ctx).Get(&Collaboration{RepoID: repo.ID, UserID: userID}) } ```
```html <html lang="en"> <head> <title>Errno Values - Debugging with GDB</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="Debugging with GDB"> <meta name="generator" content="makeinfo 4.8"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Constants.html#Constants" title="Constants"> <link rel="prev" href="mode_005ft-Values.html#mode_005ft-Values" title="mode_t Values"> <link rel="next" href="Lseek-Flags.html#Lseek-Flags" title="Lseek Flags"> <link href="path_to_url" rel="generator-home" title="Texinfo Homepage"> <!-- Permission is granted to copy, distribute and/or modify this document any later version published by the Free Software Foundation; with the Invariant Sections being ``Free Software'' and ``Free Software Needs Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,'' and with the Back-Cover Texts as in (a) below. (a) The FSF's Back-Cover Text is: ``You are free to copy and modify this GNU Manual. Buying copies from GNU Press supports the FSF in developing GNU and promoting software freedom.'' --> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <p> <a name="Errno-Values"></a> Next:&nbsp;<a rel="next" accesskey="n" href="Lseek-Flags.html#Lseek-Flags">Lseek Flags</a>, Previous:&nbsp;<a rel="previous" accesskey="p" href="mode_005ft-Values.html#mode_005ft-Values">mode_t Values</a>, Up:&nbsp;<a rel="up" accesskey="u" href="Constants.html#Constants">Constants</a> <hr> </div> <h5 class="unnumberedsubsubsec">Errno Values</h5> <p><a name="index-errno-values_002c-in-file_002di_002fo-protocol-3484"></a> All values are given in decimal representation. <pre class="smallexample"> EPERM 1 ENOENT 2 EINTR 4 EBADF 9 EACCES 13 EFAULT 14 EBUSY 16 EEXIST 17 ENODEV 19 ENOTDIR 20 EISDIR 21 EINVAL 22 ENFILE 23 EMFILE 24 EFBIG 27 ENOSPC 28 ESPIPE 29 EROFS 30 ENAMETOOLONG 91 EUNKNOWN 9999 </pre> <p><code>EUNKNOWN</code> is used as a fallback error value if a host system returns any error value not in the list of supported error numbers. </body></html> ```
```c /***************************************************************************** All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Intel Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ***************************************************************************** * Contents: Native high-level C interface to LAPACK function clagge * Author: Intel Corporation *****************************************************************************/ #include "lapacke_utils.h" lapack_int API_SUFFIX(LAPACKE_clagge)( int matrix_layout, lapack_int m, lapack_int n, lapack_int kl, lapack_int ku, const float* d, lapack_complex_float* a, lapack_int lda, lapack_int* iseed ) { lapack_int info = 0; lapack_complex_float* work = NULL; if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) { API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_clagge", -1 ); return -1; } #ifndef LAPACK_DISABLE_NAN_CHECK if( LAPACKE_get_nancheck() ) { /* Optionally check input matrices for NaNs */ if( API_SUFFIX(LAPACKE_s_nancheck)( MIN(m,n), d, 1 ) ) { return -6; } } #endif /* Allocate memory for working array(s) */ work = (lapack_complex_float*) LAPACKE_malloc( sizeof(lapack_complex_float) * MAX(1,m+n) ); if( work == NULL ) { info = LAPACK_WORK_MEMORY_ERROR; goto exit_level_0; } /* Call middle-level interface */ info = API_SUFFIX(LAPACKE_clagge_work)( matrix_layout, m, n, kl, ku, d, a, lda, iseed, work ); /* Release memory and exit */ LAPACKE_free( work ); exit_level_0: if( info == LAPACK_WORK_MEMORY_ERROR ) { API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_clagge", info ); } return info; } ```
```python # Generated by Django 4.0 on 2023-06-10 07:10 import json from django.db import migrations, models def migrate_json_field(apps, schema_editor): UserSocialAuth = apps.get_model("social_django", "UserSocialAuth") Partial = apps.get_model("social_django", "Partial") db_alias = schema_editor.connection.alias to_be_updated = [] for auth in ( UserSocialAuth.objects.using(db_alias).exclude(extra_data='""').iterator() ): old_value = auth.extra_data if isinstance(old_value, str): try: old_value = json.loads(old_value) except json.JSONDecodeError as error: print(f"Failed to migrate extra_data {old_value}: {error}") auth.extra_data_new = old_value to_be_updated.append(auth) if len(to_be_updated) >= 1000: UserSocialAuth.objects.bulk_update(to_be_updated, ["extra_data_new"]) to_be_updated.clear() if to_be_updated: UserSocialAuth.objects.bulk_update(to_be_updated, ["extra_data_new"]) to_be_updated.clear() for auth in Partial.objects.using(db_alias).all(): old_value = auth.data if isinstance(old_value, str): try: old_value = json.loads(old_value) except json.JSONDecodeError as error: print(f"Failed to migrate data {old_value}: {error}") auth.data_new = old_value auth.save(update_fields=["data_new"]) def migrate_json_field_backwards(apps, schema_editor): UserSocialAuth = apps.get_model("social_django", "UserSocialAuth") Partial = apps.get_model("social_django", "Partial") db_alias = schema_editor.connection.alias to_be_updated = [] is_text_field = isinstance( UserSocialAuth._meta.get_field("extra_data"), models.TextField, ) for auth in UserSocialAuth.objects.using(db_alias).iterator(): new_value = auth.extra_data_new if is_text_field: new_value = json.dumps(new_value) auth.extra_data = new_value to_be_updated.append(auth) if len(to_be_updated) >= 1000: UserSocialAuth.objects.bulk_update(to_be_updated, ["extra_data"]) to_be_updated.clear() if to_be_updated: UserSocialAuth.objects.bulk_update(to_be_updated, ["extra_data"]) to_be_updated.clear() is_text_field = issubclass( Partial._meta.get_field("data"), models.TextField, ) for auth in Partial.objects.using(db_alias).all(): new_value = auth.data_new if is_text_field: new_value = json.dumps(new_value) auth.data = new_value auth.save(update_fields=["data"]) class Migration(migrations.Migration): dependencies = [ ("social_django", "0012_usersocialauth_extra_data_new"), ] operations = [ migrations.RunPython( migrate_json_field, migrate_json_field_backwards, elidable=True ), ] ```
```java /* * * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.taobao.luaview.extend.animation.bouncing_entrances; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.view.View; import com.taobao.luaview.extend.animation.BaseViewAnimatorDecoration; public class BounceInRightAnimatorDecoration extends BaseViewAnimatorDecoration { @Override protected void prepare(AnimatorSet animatorSet, View target) { animatorSet.playTogether( ObjectAnimator.ofFloat(target, "translationX", target.getMeasuredWidth() + target.getWidth(), -30, 10, 0), ObjectAnimator.ofFloat(target, "alpha", 0, 1, 1, 1) ); } } ```
Sir Richard Morgan SL PC (died May 1556) was a Welsh lawyer, judge and politician of the mid-Tudor period. After achieving prominence as a lawyer in the reign of Henry VIII, he became recorder of Gloucester and also Member (MP) of the Parliament of England for Gloucester in the three parliaments of 1545, 1547 and March 1553. He was a notable Catholic supporter of Mary, who made him Chief Justice of the Common Pleas. However, he was soon removed from office and died in mysterious circumstances, apparently suffering from some form of mental disorder. Background and early life Richard Morgan was the son of Philip ap Morgan, also known as Philip ap Morgan Watkin, of Llanfair Cilgoed, just west of the village of Cross Ash in Monmouthshire. Maud Philpot, daughter of Tomlyn Philpot of Blackbrook, a hamlet to the east of Cross Ash. Richard Morgan was the second son: his elder brother Dafydd was to predecease his parents without issue. Richard had a younger brother, John Philip Morgan, who was also a Member of Parliament in the reign of Mary. Their family was of the lowest stratum of the landed gentry and Richard turned to the Law to improve his prospects. Morgan's lineage led back through the Turberville family, to Sir Payn de Turberville, one of the legendary Twelve Knights of Glamorgan, the Norman conquerors of south-east Wales. In the 13th century, this junior branch of the Turbervilles adopted the standard Welsh patronymic system of naming. Richard Morgan's father maintained this, generally calling himself Philip ap Morgan, while Richard's grandfather was Morgan ab Watkin. Richard broke with this system completely, adopting Morgan as a surname in the English fashion. (John still used his father's name as a second name, and was also known as Jenkin ap Philip.) The change of names reflected momentous changes that came to Wales in Richard Morgan's lifetime. Hitherto, the feudal lordships established by the Normans still had a reality, especially in Monmouthshire, where the authority of the Council of Wales and the Marches, based at Ludlow in Shropshire, was often ignored. Henry VIII and his ministers tightened up central control in every way, establishing Princess Mary at Ludlow. Under the Laws in Wales Acts 1535–1542, Wales was formally made part of single state with England. It was shired on the English pattern, and Monmouthshire, uniquely, was made part of the English assize system. Boroughs were incorporated and representatives returned to the Westminster parliament. This opened up new paths of promotion and enrichment to ambitious and educated men. Richard Morgan was admitted to Lincoln's Inn on 31 July 1524. Despite a minor reputation for wildness, he quickly seems to have shown talent as a lawyer. He was called to the bar in 1528. Legal and judicial career Morgan moved into private practice in London. By the late 1530s he was retained by Arthur Plantagenet, 1st Viscount Lisle, the Lord Deputy of Calais. Lisle's subsequent arrest and imprisonment, on suspicion of treason, led to his voluminous correspondence being seized, fortuitously preserving records of his dealings with Morgan. He was successfully dividing his time between private practice, his involvement with Lincoln's Inn and politics in Monmouthshire. The duties he undertook at his Inn were considerable and onerous. He was auditor in 1534-7, in 1538-9, when he was also butler, and in 1541-2. He was Autumn Reader for the first time in 1542, lecturing on the action of Replevin, unusually using two texts as his source. In 1544-5 he was keeper of the Black Book, which records the proceedings of the governing council. He gave his second reading in 1549 on the Statute of Marlborough. Meanwhile, Morgan had become sufficiently prominent in his own county to be appointed Custos rotulorum – keeper of the county's records and its senior civil officer. This appointment seems to have occurred around 1543 and lasted to the end of his life. In June 1546 he was called to the order of Serjeant-at-law by Henry VIII, but was not formally appointed until February 1547 due to the death of Henry. By this point he was Recorder of Gloucester, which he represented in Parliament between 1545 and 1553: the appointment probably dates back to 1544. He was also retained by the Duchy of Lancaster, which had large estates in Monmouthshire. However, as a Roman Catholic, Morgan's progress was not so assured under the Protestant regime of Edward VI. He was sent to Fleet Prison on 24 March 1551 for hearing Mass at the chapel of Princess Mary He submitted to the Privy Council and was released on 4 May with a warning. Nevertheless, he was an active parliamentarian throughout Edward's reign and his legal acumen ensured he was entrusted with important investigative work and drafting. After the death of Edward VI Morgan joined Mary and her supporters at Kenninghall Castle in Norfolk, in a successful act of resistance to the installation of Lady Jane Grey as queen by the Protestant faction of John Dudley, 1st Duke of Northumberland. He was rewarded for his loyalty by being made a Privy Councillor on 16 August 1553, Chief Justice of the Common Pleas on 23 August and finally by being knighted on 2 October. He took part in the November proceedings against Lady Jane Grey. He became mentally incapacitated at some point in 1555 and was removed from office in October of that year. According to John Foxe and Raphael Holinshed his breakdown was a result of Lady Jane Grey's fate. Political career Parliament of 1545 Morgan was elected to the parliament of 1545, the last of Henry VIII's reign, by two constituencies. Gloucester's indenture or electoral return was dated 6 January and placed Morgan first in order of precedence over Thomas Bell, the former mayor. However, Monmouth Boroughs returned Morgan on 14 January. This was a new constituency, returning only one member, and it had held its first election only in 1542. It included the borough of Monmouth itself, as well as the Monmouthshire "outboroughs" of Abergavenny, Caerleon, Chepstow, Newport and Usk. Thomas Kynnyllyn, who was elected in 1542, was still involved in a protracted legal action to get the outboroughs to pay his wages, as they were legally obliged to do, although it was not clear what say they had had in his election. The Duchy of Lancaster owned the manor and borough of Monmouth and exercised great influence over the election, although the burgesses entitled to vote were numerous. Morgan was certainly known to the duchy and favoured by its officials, although it is not known whether he was already retained by it. At Gloucester, it was customary to send the recorder to parliament as one of the MPs. It is not certain whether or not Morgan was yet the city's recorder: the first evidence of his appointment dates from as late as January 1547. However, Thomas Lane, the previous recorder died on 2 December 1544 – the day after the parliament was summoned and a month before the elections. Lane had also belonged to Lincoln's Inn may have introduced Morgan to the corporation. So it is possible that he had been appointed, at least informally, before the election, and that he was returned ex officio. Gloucester was the larger and more prestigious constituency, having prospered and become more sophisticated under the leadership of Bell, an immensely wealthy Milliner. Certainly Morgan sat for Gloucester in the two subsequent parliaments. Most authorities assume that he did so in 1545, but this is not certain. Parliament of 1547 Morgan was returned to the first parliament of Edward VI's reign, this time second in order of precedence to Bell, who had recently been knighted. Morgan was increasingly active in this parliament, his legal skills used in reviewing and redrafting proposed legislation. In the second session of the parliament, during 1548-9, he was given responsibility for the bill for fee farms of cities and towns. This was an important part of the monarchy's legislative programme, proposing to release fee farms for three years: Gloucester's had been fixed at £60 in 1489. In the last session, in 1552, he and Robert Broke were given a bill for leases to scrutinise. However, in this session Morgan seems to have established himself as a useful man in cases touching the status and privileges of Parliament itself. He was also given responsibility for handling an important complaint of Sir Robert Brandling, a member for Newcastle upon Tyne. On their way to parliament, Brandling and his retinue were attacked at Topcliffe in Yorkshire by Sir John Widdrington's men, assisted by Ralph Ellerker. The circumstances turned this from a minor episode in a personal feud into a case of parliamentary privilege. Brandling complained to parliament on 15 February and it became Morgan's responsibility to ensure the culprits were brought before parliament. He drew up the necessary warrants and the initiator of the brawl, Henry Widdrington, was committed to the Tower of London. In the case of William Ward, a Lancaster MP, it was the member himself whose actions required investigation. Ward had taken out an action for breach of privilege on his own account, obtaining a writ from Chancery without consulting the House of Commons. The House passed the matter to a committee of Morgan and three other members: Sir Robert Bowes, Sir Nicholas Hare and Sir John Mason. The outcome is unknown. Finally, he was one of three members deputed to handle the replacement of Thomas Curtys, deceased member for the City of London, whose replacement was John Blundell. Morgan was one of those deputed to the redraft the Treason Act 1551 to make it illegal to say that the king "is an heretic, schismatic, infidel or usurper of the crown." The notes made by him and other members were submitted to the House on 14 March 1552. Parliament of March 1553 In the final months of Edward VI's reign, Morgan was commissioned by Parliament, along with his fellow Catholic, Robert Broke, to investigate the Maidstone election scandal. The town had been granted a charter of incorporation in 1549. An election was held for the parliament of March 1553 and MPs sent to Westminster. However, the right of the borough to elect representatives was challenged, as there was no explicit recognition of the right to representation in the charter. The issue was complicated by the developing succession crisis, in which John Dudley, 1st Duke of Northumberland, apparently with the king's support, manoeuvred for Lady Jane Grey, his own daughter-in-law, to be nominated Edward's successor. Maidstone was in the Protestant heartland of Kent: Thomas Wyatt was lord of the manor and the returning officer was Sir John Guildford, the High Sheriff of Kent who was a cousin of Dudley's wife One of the MPs elected was a relative of both Dudley and Jane Grey. Faced with possible malpractice by the Protestant court faction, the House ordered Morgan and Broke to "peruse the charter of Maidstone ... whether they may have burgesses in this House; and in the meantime the burgesses there to be absent out of this House till it be fully ordered." The result of the investigation is not known but can be guessed, as Maidstone's right to representation was not established until 1558, after Queen Elizabeth succeeded her Catholic sister, Mary. This was Morgan's last parliament. His appointment as chief justice by Mary took him away from his recordership and made him, in any case ineligible for the House of Commons, as he was called by a writ of assistance to serve in the House of Lords in the parliaments of October 1553 and April 1554. Religious beliefs Morgan's detention in Fleet prison makes clear that he was not merely a religious conservative but a committed Catholic. The group around Mary was a particularly strong redoubt of the Catholic faith and Morgan must have known it would be under constant surveillance. However, he continued to represent Gloucester, increasingly a Protestant stronghold, apparently without difficulty. His professionalism as a lawyer made him useful to any regime and this helps explain the brevity of his incarceration. His religious commitment was certainly not affected by imprisonment. His first will, dated 18 July 1552, was made three months after the passing of the second Act of Uniformity of Edward VI's reign, which prohibited attendance at services not covered by the Book of Common Prayer. In direct contravention of the Act, he asked for a Catholic burial and for "the sacraments of the true and Catholic Church to be ministered unto me according to the just and true institutions of the same." His commitment included adherence to every aspect of the Marian Counter-Reformation. He attended in person the burning of John Hooper, the Bishop of Gloucester and Worcester on 9 February 1555, which took place in Gloucester – not an essential responsibility of his office. According to John Foxe, Morgan was particularly vindictive towards Hooper at his deprivation. He must have encountered Hooper many times in the course of his work at Gloucester. Afterwardes iudge Morgan began to rayle at maister Hooper, a longe tyme, with manye opprobrious and foule woordes, of his doyng at Gloucester, in punishing of men, and sayde: there was neuer suche a tyraunt as he was. Death The circumstances surrounding Morgan's death are not entirely clear. The Elizabethan sources were certain that he was punished for his antipathy toward the Protestant faith, in particular his condemnation of Lady Jane Grey. Foxe reports: Touching the condemnation of this lady Iane, here is to be noted, that the Iudge morgan who gaue the sentence of condemnation against her, shortly after hee had condemned her, fell mad, and in hys rauing cryed out continually to haue the Lady Iane taken away from him, and so ended hys lyfe. The story was repeated, almost verbatim, in Holinshed's Chronicles and became the accepted explanation of his sudden fall from power and influence. In fact, Morgan was removed from office in October 1555, which was almost two years after the trial of Jane Grey. There is no evidence he ever wavered in his Catholic militancy: his second will, made some time after he became chief justice of the common pleas, still demanded a Catholic burial. Probably Morgan was suspended because of a condition that was believed to affect his judgement or ability to practise as a judge, but the idea that he was driven mad by remorse is likely to be largely invention. It is certain, however, that Morgan and his wife were detained around this time by John Philip, his brother. In November, the Privy Council ordered the younger Morgan to release his brother and sister-in-law, remarking that he had already been ordered to do so previously, although it is not clear whether he ever complied. In his own will, dated 8 August 1557, John Philip makes clear that he and Richard had been involved in property deals together and that Richard's wife was refusing to release to him land that Richard had paid for and he was offering to redeem. This probably has something to do with his detention of the couple. There is little doubt that the brothers had always been on good terms to this point. Richard Morgan died most likely in late May 1556 and was buried on 2 June at St Magnus-the-Martyr, his local parish church in the City of London. The funeral was recorded by Henry Machyn, a London merchant tailor whose diary gives detailed accounts of funerals because he frequently supplied the cloth and fittings. The ij day of June was bered at sant Magnus at London bryge ser Recherd Morgayn knyght, a juge and on of the preve consell unto the nobull quen Mare, with a harold of armes bayryng ys cott armur, and with a standard and a penon of armes and elmett, sword, and targatt; and iiij dosen of skochyons, and ij whytt branchys and xij torchys and iiij gret tapurs, and xxiiij pore men in mantyll ffrysse gownes, and mony in blake; and master chansseler of London dyd pryche. Morgan's last will provided for his younger sons, John and Polydore, to share the lease of Grosmont, which Morgan held from the duchy of Lancaster. Thomas, his heir, was to receive all his other leases of lands in Monmouthshire, including his share of the family home at Ynysgynwraidd/Skenfrith. His wife was given use of the London house, although the reversion was to Polydore. His books were divided among his sons. He ordered a ring of fine gold to be made for Anne, the wife of John Philip Morgan. This reiterated his first will, which said it was for kindness shown him during an illness – possibly an earlier bout of the complaint that finally overwhelmed him. Family Morgan married Mary Bailey or Bayly, daughter of Sir Robert Bailey of the Whitecastle lordship, Monmouthshire. She survived Morgan and later married William Brayne of Littledean, Gloucestershire. At least seven children of Morgan and Mary Bailey are known, with three sons surviving to inherit property from Morgan. Thomas Morgan, the heir, who married Mary Pryce of the Priory, Aberhonddu/Brecon John Morgan, who married Mary Worrall of English Bicknor, Gloucestershire Polydore Morgan Gilbert Morgan, who probably predeceased his parents Elsbeth "Besse" Morgan, who married one Higgs of London Anne Morgan, who married Thomas Quayne of Norfolk Mary Morgan References 1556 deaths Chief Justices of the Common Pleas Knights Bachelor Members of Lincoln's Inn English MPs 1545–1547 English MPs 1547–1552 English MPs 1553 (Edward VI) Members of the Parliament of England (pre-1707) for Gloucester Serjeants-at-law (England) People from Monmouthshire Members of the Privy Council of England 16th-century Welsh judges Inmates of Fleet Prison Year of birth unknown 16th-century English lawyers 16th-century Welsh politicians
```html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Jasmine Spec Runner v2.4.1</title> <link rel="shortcut icon" type="image/png" href="./jasmine-2.4.1/jasmine_favicon.png"> <link rel="stylesheet" href="./jasmine-2.4.1/jasmine.css"> <script src="./jasmine-2.4.1/jasmine.js"></script> <script src="./jasmine-2.4.1/jasmine-html.js"></script> <script src="./jasmine-2.4.1/boot.js"></script> <script src="./traceLog.js"></script> <script> (function() { 'use strict'; describe('control running', function() { it('initialized first', function() { expect(traceLog.log.length).toBe(0); }); it('add() 1 after enabled', function() { traceLog.enabled = true; traceLog.add('a'); expect(traceLog.log.length).toBe(1); expect(traceLog.log).toEqual(['a']); }); it('add() 2', function() { traceLog.add('b'); expect(traceLog.log.length).toBe(2); expect(traceLog.log).toEqual(['a', 'b']); }); it('control clear()', function() { traceLog.clear(); expect(traceLog.log.length).toBe(0); }); it('add() 3', function() { traceLog.add('c'); expect(traceLog.log.length).toBe(1); expect(traceLog.log).toEqual(['c']); }); it('add() 4', function() { traceLog.add('d'); expect(traceLog.log.length).toBe(2); expect(traceLog.log).toEqual(['c', 'd']); }); it('disabled', function() { traceLog.enabled = false; expect(traceLog.log.length).toBe(2); expect(traceLog.log).toEqual(['c', 'd']); }); it('add() 5', function() { traceLog.add('e'); expect(traceLog.log.length).toBe(2); expect(traceLog.log).toEqual(['c', 'd']); }); it('add() 6', function() { traceLog.add('f'); expect(traceLog.log.length).toBe(2); expect(traceLog.log).toEqual(['c', 'd']); }); }); describe('getMessage', function() { beforeAll(function() { traceLog.enabled = true; traceLog.clear(); }); it('\'a\'', function() { traceLog.add('a'); expect(traceLog.log[traceLog.log.length - 1]).toBe('a'); }); it('\'foo=%s\', \'bar\'', function() { traceLog.add('foo=%s', 'bar'); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=bar'); }); it('\'foo=%i\', 5', function() { traceLog.add('foo=%i', 5); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=5'); }); it('\'foo=%o\', {a: 1, b: 2}', function() { traceLog.add('foo=%o', {a: 1, b: 2}); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=[object Object]'); }); it('\'foo=%s\', 5', function() { traceLog.add('foo=%s', 5); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=5'); }); it('\'foo=%i\', \'6bar\'', function() { traceLog.add('foo=%i', '6bar'); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=6'); }); it('\'foo=%i\', true', function() { traceLog.add('foo=%i', true); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=1'); }); it('\'foo=%s\', \'bar\', 5', function() { traceLog.add('foo=%s', 'bar', 5); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=bar 5'); }); it('\'foo=%s\', \'bar\', 5, 6', function() { traceLog.add('foo=%s', 'bar', 5, 6); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=bar 5 6'); }); it('\'foo=%s,DROP%_\', \'bar\', 5', function() { traceLog.add('foo=%s,DROP%_', 'bar', 5); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=bar,DROP'); }); it('\'foo=%s,DROP%_\', \'bar\', 5, 6', function() { traceLog.add('foo=%s,DROP%_', 'bar', 5, 6); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=bar,DROP 6'); }); it('\'foo=%s,DROP%_%_\', \'bar\', 5, 6', function() { traceLog.add('foo=%s,DROP%_%_', 'bar', 5, 6); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo=bar,DROP'); }); it('\'foo1=%s,foo2=%s,foo3=%s,ETC\', \'bar\', 5', function() { traceLog.add('foo1=%s,foo2=%s,foo3=%s,ETC', 'bar', 5); expect(traceLog.log[traceLog.log.length - 1]).toBe('foo1=bar,foo2=5,foo3=,ETC'); }); }); describe('tags', function() { beforeEach(function() { traceLog.clear(); }); it('single tag', function() { traceLog.add('a'); traceLog.add('b'); traceLog.add('c'); traceLog.add('<tag-A>'); traceLog.add('d'); traceLog.add('e'); traceLog.add('f'); traceLog.add('</tag-A>'); traceLog.add('g'); traceLog.add('h'); traceLog.add('i'); expect(traceLog.log.length).toBe(11); expect(traceLog.log).toEqual(['a', 'b', 'c', '<tag-A>', 'd', 'e', 'f', '</tag-A>', 'g', 'h', 'i']); expect(traceLog.getTaggedLog('tag-A').length).toBe(3); expect(traceLog.getTaggedLog('tag-A')).toEqual(['d', 'e', 'f']); expect(traceLog.getTaggedLog('tag-B') == null).toBe(true); }); it('multiple tags', function() { traceLog.add('a'); traceLog.add('b'); traceLog.add('<tag-A>'); traceLog.add('c'); traceLog.add('d'); traceLog.add('</tag-A>'); traceLog.add('e'); traceLog.add('f'); traceLog.add('<tag-B>'); traceLog.add('g'); traceLog.add('h'); traceLog.add('</tag-B>'); traceLog.add('i'); expect(traceLog.log.length).toBe(13); expect(traceLog.log).toEqual(['a', 'b', '<tag-A>', 'c', 'd', '</tag-A>', 'e', 'f', '<tag-B>', 'g', 'h', '</tag-B>', 'i']); expect(traceLog.getTaggedLog('tag-A').length).toBe(2); expect(traceLog.getTaggedLog('tag-A')).toEqual(['c', 'd']); expect(traceLog.getTaggedLog('tag-B').length).toBe(2); expect(traceLog.getTaggedLog('tag-B')).toEqual(['g', 'h']); expect(traceLog.getTaggedLog('tag-C') == null).toBe(true); }); it('nested tags 1', function() { traceLog.add('a'); traceLog.add('b'); traceLog.add('<tag-A>'); traceLog.add('c'); traceLog.add('d'); traceLog.add('<tag-B>'); traceLog.add('e'); traceLog.add('f'); traceLog.add('g'); traceLog.add('</tag-B>'); traceLog.add('h'); traceLog.add('</tag-A>'); traceLog.add('i'); expect(traceLog.getTaggedLog('tag-A').length).toBe(3); expect(traceLog.getTaggedLog('tag-A')).toEqual(['c', 'd', 'h']); expect(traceLog.getTaggedLog('tag-B').length).toBe(3); expect(traceLog.getTaggedLog('tag-B')).toEqual(['e', 'f', 'g']); }); it('nested tags 2', function() { traceLog.add('a'); traceLog.add('<tag-A>'); traceLog.add('b'); traceLog.add('<tag-B>'); traceLog.add('c'); traceLog.add('d'); traceLog.add('<tag-C>'); traceLog.add('e'); traceLog.add('</tag-C>'); traceLog.add('f'); traceLog.add('g'); traceLog.add('</tag-B>'); traceLog.add('h'); traceLog.add('</tag-A>'); traceLog.add('i'); expect(traceLog.getTaggedLog('tag-A').length).toBe(2); expect(traceLog.getTaggedLog('tag-A')).toEqual(['b', 'h']); expect(traceLog.getTaggedLog('tag-B').length).toBe(4); expect(traceLog.getTaggedLog('tag-B')).toEqual(['c', 'd', 'f', 'g']); expect(traceLog.getTaggedLog('tag-C').length).toBe(1); expect(traceLog.getTaggedLog('tag-C')).toEqual(['e']); }); it('nested tags skip 1', function() { traceLog.add('a'); traceLog.add('<tag-A>'); traceLog.add('b'); traceLog.add('<tag-B>'); traceLog.add('c'); traceLog.add('d'); traceLog.add('<tag-C>'); traceLog.add('e'); traceLog.add('</tag-B>'); // skip traceLog.add('f'); traceLog.add('g'); traceLog.add('h'); traceLog.add('</tag-A>'); traceLog.add('i'); expect(traceLog.getTaggedLog('tag-A').length).toBe(4); expect(traceLog.getTaggedLog('tag-A')).toEqual(['b', 'f', 'g', 'h']); expect(traceLog.getTaggedLog('tag-B').length).toBe(2); expect(traceLog.getTaggedLog('tag-B')).toEqual(['c', 'd']); expect(traceLog.getTaggedLog('tag-C').length).toBe(1); expect(traceLog.getTaggedLog('tag-C')).toEqual(['e']); }); it('nested tags skip 2', function() { traceLog.add('a'); traceLog.add('<tag-A>'); traceLog.add('b'); traceLog.add('<tag-B>'); traceLog.add('c'); traceLog.add('d'); traceLog.add('<tag-C>'); traceLog.add('e'); traceLog.add('</tag-A>'); // skip traceLog.add('f'); traceLog.add('g'); traceLog.add('h'); traceLog.add('i'); expect(traceLog.getTaggedLog('tag-A').length).toBe(1); expect(traceLog.getTaggedLog('tag-A')).toEqual(['b']); expect(traceLog.getTaggedLog('tag-B').length).toBe(2); expect(traceLog.getTaggedLog('tag-B')).toEqual(['c', 'd']); expect(traceLog.getTaggedLog('tag-C').length).toBe(1); expect(traceLog.getTaggedLog('tag-C')).toEqual(['e']); }); it('nested tags skip fails', function() { traceLog.add('a'); traceLog.add('<tag-A>'); traceLog.add('b'); traceLog.add('<tag-B>'); traceLog.add('c'); traceLog.add('d'); traceLog.add('<tag-C>'); traceLog.add('e'); expect(traceLog.getTaggedLog('tag-A').length).toBe(1); expect(traceLog.getTaggedLog('tag-A')).toEqual(['b']); expect(traceLog.getTaggedLog('tag-B').length).toBe(2); expect(traceLog.getTaggedLog('tag-B')).toEqual(['c', 'd']); expect(traceLog.getTaggedLog('tag-C').length).toBe(1); expect(traceLog.getTaggedLog('tag-C')).toEqual(['e']); expect(function() { traceLog.add('</tag-D>'); // invalid }).toThrow(); }); }); })(); </script> </head> <body> </body> </html> ```
The Cathedral of Saints Peter and Paul, Constanța (), located at 25 Arhiepiscopiei Street, Constanța, Romania, is the seat of the Romanian Orthodox Archbishop of Tomis, as well as a monastery. Situated between Ovid Square and the Black Sea in front of the Archbishop's Palace, it was built on the city's peninsular zone in 1883-1885 following plans by architects Alexandru Orăscu and Carol Benesch and, for the interior, Ion Mincu. The cornerstone was laid on 4 September 1883, during the reign of Iosif Gheorghian, Metropolitan of All Romania. The church was consecrated on 22 May 1895. The building served as a parish church until 1923, when the Diocese of Constanța was established. In that year it became a cathedral, serving as such until 3 August 1941, when its altar and iconostasis, along with icons and paintings, were partly destroyed by aerial bombardment during World War II. It was restored after the war, from 1946 to 1951. Patriarch Justinian Marina and Bishop Chesarie Păunescu re-consecrated it on 14 January 1951; at that time, Păunescu's seat was moved from Constanța to Galați and the building once again became a parish church. Exterior repairs took place from 1957 to 1959. When the diocese at Galați became an archdiocese on 9 November 1975, a vicar bishop began serving at Constanța, returning the church to the status of cathedral, once again becoming an archdiocesan cathedral when the Tomis Archdiocese was revived in 1990. The cathedral, in Greco-Roman style, of pressed brick, has a wide facade and a 35 m tower. Among the sculpted works are the oak iconostasis and choir, as well as candelabras and candle stands (made of a bronze-brass alloy), also designed by Mincu and executed in Paris. The frescoes were done by two Bucharest painters between September 1959 and November 1965. That month, when they were finished, Bishop Păunescu consecrated the church once again. The relics of Saint Panteleimon, donated in 1931, along with part of the relics of Saints Auxentius of Bithynia and Simeon Stylites, are kept inside. Also present are an icon of the Virgin Mary, said to be wonder-working, and the relics of Saints Epictetus and Astion, discovered in August 2001. On 1 December 2001, the latter were deposited in the cathedral, which on that date acquired the additional function of monastery; since that time, liturgies have been held according to monastic rites. The Archbishop's Palace, begun in 1925, is located beside the cathedral, to the west. The cornerstone was laid by Patriarch Miron Cristea together with Bishops Grigorie Comșa of Arad and Ilarie Puiu of Hotin; Ilarie Teodorescu was then Bishop of Constanța. Notes External links Romanian Orthodox cathedrals in Romania Romanian Orthodox monasteries of Dobruja Churches completed in 1885 19th-century Eastern Orthodox church buildings Buildings and structures in Constanța Tourist attractions in Constanța County Historic monuments in Constanța County
```javascript Function constructor vs. function declaration vs. function expression Functions can be declared after use Method chaining Easily generate a random `HEX` color Check if a document is done loading ```
"Page One" is a song by Australian singer songwriter Katie Noonan and the Captains. It was released on 19 February 2010 and is included on the album Emperor's Box. "Page One" was a wedding present to Captain’s keyboardist Stu and his wife Ashlie. A music video was released to promote the song. Track listings "Page One" (Don Walker, Cameron Deyell, Katie Noonan) "Time" (Noonan) "Radar" (Andy Stochansky, Declan Kelly, Stu Hunter, Cameron Deyell, Katie Noonan) "Jóga" (Björk Gudmundsdottir, Sigurjon B. Sigurdsson) "Page One" (Walker, Deyell, Noonan) Tracks 3 to 5 are recorded live at Electric Avenue. Charts References External links 2010 songs 2010 singles Sony Music Australia singles Songs written by Don Walker (musician) Songs written by Katie Noonan
```c++ //===-- PdbSymUid.cpp -----------------------------------------------------===// // // See path_to_url for license information. // //===your_sha256_hash------===// #include "PdbSymUid.h" using namespace lldb_private; using namespace lldb_private::npdb; using namespace llvm::codeview; namespace { struct GenericIdRepr { uint64_t tag : 4; uint64_t data : 60; }; struct CompilandIdRepr { uint64_t tag : 4; uint64_t modi : 16; uint64_t unused : 44; }; struct CompilandSymIdRepr { uint64_t tag : 4; uint64_t modi : 16; uint64_t offset : 32; uint64_t unused : 12; }; struct GlobalSymIdRepr { uint64_t tag : 4; uint64_t offset : 32; uint64_t pub : 1; uint64_t unused : 27; }; struct TypeSymIdRepr { uint64_t tag : 4; uint64_t index : 32; uint64_t ipi : 1; uint64_t unused : 27; }; struct FieldListMemberIdRepr { uint64_t tag : 4; uint64_t index : 32; uint64_t offset : 16; uint64_t unused : 12; }; static_assert(sizeof(CompilandIdRepr) == 8, "Invalid structure size!"); static_assert(sizeof(CompilandSymIdRepr) == 8, "Invalid structure size!"); static_assert(sizeof(GlobalSymIdRepr) == 8, "Invalid structure size!"); static_assert(sizeof(TypeSymIdRepr) == 8, "Invalid structure size!"); static_assert(sizeof(FieldListMemberIdRepr) == 8, "Invalid structure size!"); } // namespace template <typename OutT, typename InT> static OutT repr_cast(const InT &value) { OutT result; ::memcpy(&result, &value, sizeof(value)); return result; } PdbSymUid::PdbSymUid(const PdbCompilandId &cid) { CompilandIdRepr repr; ::memset(&repr, 0, sizeof(repr)); repr.modi = cid.modi; repr.tag = static_cast<uint64_t>(PdbSymUidKind::Compiland); m_repr = repr_cast<uint64_t>(repr); } PdbSymUid::PdbSymUid(const PdbCompilandSymId &csid) { CompilandSymIdRepr repr; ::memset(&repr, 0, sizeof(repr)); repr.modi = csid.modi; repr.offset = csid.offset; repr.tag = static_cast<uint64_t>(PdbSymUidKind::CompilandSym); m_repr = repr_cast<uint64_t>(repr); } PdbSymUid::PdbSymUid(const PdbGlobalSymId &gsid) { GlobalSymIdRepr repr; ::memset(&repr, 0, sizeof(repr)); repr.pub = gsid.is_public; repr.offset = gsid.offset; repr.tag = static_cast<uint64_t>(PdbSymUidKind::GlobalSym); m_repr = repr_cast<uint64_t>(repr); } PdbSymUid::PdbSymUid(const PdbTypeSymId &tsid) { TypeSymIdRepr repr; ::memset(&repr, 0, sizeof(repr)); repr.index = tsid.index.getIndex(); repr.ipi = tsid.is_ipi; repr.tag = static_cast<uint64_t>(PdbSymUidKind::Type); m_repr = repr_cast<uint64_t>(repr); } PdbSymUid::PdbSymUid(const PdbFieldListMemberId &flmid) { FieldListMemberIdRepr repr; ::memset(&repr, 0, sizeof(repr)); repr.index = flmid.index.getIndex(); repr.offset = flmid.offset; repr.tag = static_cast<uint64_t>(PdbSymUidKind::FieldListMember); m_repr = repr_cast<uint64_t>(repr); } PdbSymUidKind PdbSymUid::kind() const { GenericIdRepr generic = repr_cast<GenericIdRepr>(m_repr); return static_cast<PdbSymUidKind>(generic.tag); } PdbCompilandId PdbSymUid::asCompiland() const { assert(kind() == PdbSymUidKind::Compiland); auto repr = repr_cast<CompilandIdRepr>(m_repr); PdbCompilandId result; result.modi = repr.modi; return result; } PdbCompilandSymId PdbSymUid::asCompilandSym() const { assert(kind() == PdbSymUidKind::CompilandSym); auto repr = repr_cast<CompilandSymIdRepr>(m_repr); PdbCompilandSymId result; result.modi = repr.modi; result.offset = repr.offset; return result; } PdbGlobalSymId PdbSymUid::asGlobalSym() const { assert(kind() == PdbSymUidKind::GlobalSym || kind() == PdbSymUidKind::PublicSym); auto repr = repr_cast<GlobalSymIdRepr>(m_repr); PdbGlobalSymId result; result.is_public = repr.pub; result.offset = repr.offset; return result; } PdbTypeSymId PdbSymUid::asTypeSym() const { assert(kind() == PdbSymUidKind::Type); auto repr = repr_cast<TypeSymIdRepr>(m_repr); PdbTypeSymId result; result.index.setIndex(repr.index); result.is_ipi = repr.ipi; return result; } PdbFieldListMemberId PdbSymUid::asFieldListMember() const { assert(kind() == PdbSymUidKind::FieldListMember); auto repr = repr_cast<FieldListMemberIdRepr>(m_repr); PdbFieldListMemberId result; result.index.setIndex(repr.index); result.offset = repr.offset; return result; } ```
```yaml # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # [START gke_manifests_helloweb_ingress_tls_ingress_helloweb] apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: helloweb labels: app: hello annotations: kubernetes.io/ingress.allow-http: "false" # disable HTTP spec: tls: - secretName: yourdomain-tls defaultBackend: service: name: helloweb-backend port: number: 443 # [END gke_manifests_helloweb_ingress_tls_ingress_helloweb] --- # [START gke_manifests_helloweb_ingress_tls_service_helloweb_backend] apiVersion: v1 kind: Service metadata: name: helloweb-backend labels: app: hello annotations: # Use app-protocols annotation with your ports[0].name: # - "HTTPS": Encrypts traffic between the load balancer and your app. Your # app does not have to present a valid TLS cert, you can use # self-signed certs as in this hello-app-tls example. # - "HTTP2": If the backend app supports http2 (hello-app-tls does), use # this to have the load balancer proxy traffic using http2. This # also incudes the "HTTPS" option implicity and provides TLS # between the load balancer and your app. service.alpha.kubernetes.io/app-protocols: '{"helloweb-tls":"HTTPS"}' spec: type: NodePort selector: app: hello tier: web ports: - name: helloweb-tls # port name must match the value in the annotation port: 443 targetPort: 8443 # [END gke_manifests_helloweb_ingress_tls_service_helloweb_backend] --- ```