text
stringlengths 1
22.8M
|
|---|
```c++
/* Boost.Flyweight example of custom factory.
*
* (See accompanying file LICENSE_1_0.txt or copy at
* path_to_url
*
* See path_to_url for library home page.
*/
/* We include the default components of Boost.Flyweight except the factory,
* which will be provided by ourselves.
*/
#include <boost/flyweight/flyweight.hpp>
#include <boost/flyweight/factory_tag.hpp>
#include <boost/flyweight/static_holder.hpp>
#include <boost/flyweight/simple_locking.hpp>
#include <boost/flyweight/refcounted.hpp>
#include <boost/tokenizer.hpp>
#include <functional>
#include <iostream>
#include <set>
using namespace boost::flyweights;
/* custom factory based on std::set with some logging capabilities */
/* Entry is the type of the stored objects. Value is the type
* on which flyweight operates, that is, the T in flyweoght<T>. It
* is guaranteed that Entry implicitly converts to const Value&.
* The factory class could accept other template arguments (for
* instance, a comparison predicate for the values), we leave it like
* that for simplicity.
*/
template<typename Entry,typename Key>
class verbose_factory_class
{
/* Entry store. Since Entry is implicitly convertible to const Key&,
* we can directly use std::less<Key> as the comparer for std::set.
*/
typedef std::set<Entry,std::less<Key> > store_type;
store_type store;
public:
typedef typename store_type::iterator handle_type;
handle_type insert(const Entry& x)
{
/* locate equivalent entry or insert otherwise */
std::pair<handle_type, bool> p=store.insert(x);
if(p.second){ /* new entry */
std::cout<<"new: "<<(const Key&)x<<std::endl;
}
else{ /* existing entry */
std::cout<<"hit: "<<(const Key&)x<<std::endl;
}
return p.first;
}
void erase(handle_type h)
{
std::cout<<"del: "<<(const Key&)*h<<std::endl;
store.erase(h);
}
const Entry& entry(handle_type h)
{
return *h; /* handle_type is an iterator */
}
};
/* Specifier for verbose_factory_class. The simplest way to tag
* this struct as a factory specifier, so that flyweight<> accepts it
* as such, is by deriving from boost::flyweights::factory_marker.
* See the documentation for info on alternative tagging methods.
*/
struct verbose_factory: factory_marker
{
template<typename Entry,typename Key>
struct apply
{
typedef verbose_factory_class<Entry,Key> type;
} ;
};
/* ready to use it */
typedef flyweight<std::string,verbose_factory> fw_string;
int main()
{
typedef boost::tokenizer<boost::char_separator<char> > text_tokenizer;
std::string text=
"I celebrate myself, and sing myself, "
"And what I assume you shall assume, "
"For every atom belonging to me as good belongs to you. "
"I loafe and invite my soul, "
"I lean and loafe at my ease observing a spear of summer grass. "
"My tongue, every atom of my blood, form'd from this soil, this air, "
"Born here of parents born here from parents the same, and their "
" parents the same, "
"I, now thirty-seven years old in perfect health begin, "
"Hoping to cease not till death.";
std::vector<fw_string> v;
text_tokenizer tok(text,boost::char_separator<char>(" \t\n.,;:!?'\"-"));
for(text_tokenizer::iterator it=tok.begin();it!=tok.end();){
v.push_back(fw_string(*it++));
}
return 0;
}
```
|
Ilex macrocarpa is a species of flowering plant in the holly family Aquifoliaceae, native to central and southern China, and Vietnam. A deciduous tree typically tall, it is found in a wide variety of temperate habitats, including roadsides, from above sea level. It differs from other hollies by its large black fruit. It is used as a street tree in Hefei, China.
Subtaxa
The following varieties are accepted:
Ilex macrocarpa var. longipedunculata – southern China
Ilex macrocarpa var. macrocarpa – entire range
Ilex macrocarpa var. reevesiae – central China
References
macrocarpa
Flora of North-Central China
Flora of South-Central China
Flora of Southeast China
Flora of Vietnam
Plants described in 1888
|
```xml
import type { Compiler } from 'webpack';
import { sources } from 'webpack';
interface File {
name: string;
data: string | Buffer;
}
export default class WriteWebpackPlugin {
constructor(private files: File[]) {}
apply(compiler: Compiler) {
compiler.hooks.thisCompilation.tap('WriteWebpackPlugin', (compilation) => {
compilation.hooks.processAssets.tap(
{
name: 'WriteWebpackPlugin',
stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL,
},
() => {
for (const file of this.files) {
compilation.emitAsset(file.name, new sources.RawSource(file.data));
}
}
);
});
}
}
```
|
Diaphania meridialis is a moth in the family Crambidae. It was described by Hiroshi Yamanaka in 1972. It is found in Taiwan.
References
Moths described in 1972
Diaphania
|
Acalyptris gielisi is a moth of the family Nepticulidae. It was described by Van Nieukerken in 2010. It is known from the United Arab Emirates.
The wingspan is 4.2 mm for males and 4.5 mm for females. Adults have been recorded in April.
References
Nepticulidae
Endemic fauna of the United Arab Emirates
Moths of Asia
Moths described in 2010
|
```javascript
/**
* See path_to_url
*
* To print the full config from the React Native CLI, run
* `react-native config`.
*/
module.exports = {
/**
* See path_to_url
*
* Currently, we only use this to blacklist some native-code
* libraries, per-platform, that we don't want to be linked with
* "autolinking".
*
* For more about "autolinking", see
* path_to_url
*/
dependencies: {
'react-native-vector-icons': {
platforms: {
// We're using a setup that doesn't involve linking
// `VectorIconsPackage` on Android.
android: null,
},
},
},
};
```
|
```objective-c
/**
* @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.
*/
/*
* The following is auto-generated. Do not manually edit. See scripts/loops.js.
*/
#ifndef STDLIB_NDARRAY_BASE_NULLARY_Z_AS_S_H
#define STDLIB_NDARRAY_BASE_NULLARY_Z_AS_S_H
#include "stdlib/ndarray/ctor.h"
#include <stdint.h>
/*
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Applies a nullary callback and assigns results to elements in an output ndarray.
*/
int8_t stdlib_ndarray_z_as_s( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a zero-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_0d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a one-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_1d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a two-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_2d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a two-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_2d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a three-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_3d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a three-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_3d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a four-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_4d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a four-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_4d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a five-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_5d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a five-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_5d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a six-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_6d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a six-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_6d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a seven-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_7d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a seven-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_7d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in an eight-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_8d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in an eight-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_8d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a nine-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_9d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a nine-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_9d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a ten-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_10d( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in a ten-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_10d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a nullary callback and assigns results to elements in an n-dimensional output ndarray.
*/
int8_t stdlib_ndarray_z_as_s_nd( struct ndarray *arrays[], void *fcn );
#ifdef __cplusplus
}
#endif
#endif // !STDLIB_NDARRAY_BASE_NULLARY_Z_AS_S_H
```
|
```c++
/*=============================================================================
path_to_url
Use, modification and distribution is subject to the Boost Software
path_to_url
=============================================================================*/
#include <iostream>
#include <boost/detail/lightweight_test.hpp>
#include <boost/spirit/include/classic_core.hpp>
using namespace BOOST_SPIRIT_CLASSIC_NS;
///////////////////////////////////////////////////////////////////////////////
//
// Sub Rules tests
//
///////////////////////////////////////////////////////////////////////////////
void
subrules_tests()
{
subrule<0> start;
subrule<1> a;
subrule<2> b;
subrule<3> c;
parse_info<char const*> pi;
pi = parse("abcabcacb",
(
start = *(a | b | c),
a = ch_p('a'),
b = ch_p('b'),
c = ch_p('c')
)
);
BOOST_TEST(pi.hit);
BOOST_TEST(pi.full);
BOOST_TEST(pi.length == 9);
BOOST_TEST(*pi.stop == 0);
pi = parse("aaaabababaaabbb",
(
start = (a | b) >> (start | b),
a = ch_p('a'),
b = ch_p('b')
)
);
BOOST_TEST(pi.hit);
BOOST_TEST(pi.full);
BOOST_TEST(pi.length == 15);
BOOST_TEST(*pi.stop == 0);
pi = parse("aaaabababaaabba",
(
start = (a | b) >> (start | b),
a = ch_p('a'),
b = ch_p('b')
)
);
BOOST_TEST(pi.hit);
BOOST_TEST(!pi.full);
BOOST_TEST(pi.length == 14);
pi = parse("aaaabababaaabbb",
// single subrule test
start = (ch_p('a') | 'b') >> (start | 'b')
);
BOOST_TEST(pi.hit);
BOOST_TEST(pi.full);
BOOST_TEST(pi.length == 15);
BOOST_TEST(*pi.stop == 0);
}
///////////////////////////////////////////////////////////////////////////////
//
// Main
//
///////////////////////////////////////////////////////////////////////////////
int
main()
{
subrules_tests();
return boost::report_errors();
}
```
|
```javascript
//
// 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.
//
// THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
description('Tests for ES6 class syntax containing semicolon in the class body');
shouldThrow("class A { foo;() { } }", "'SyntaxError: Unexpected token ;'");
shouldThrow("class A { foo() ; { } }", "'SyntaxError: Unexpected token ;'");
shouldThrow("class A { get ; foo() { } }", "'SyntaxError: Unexpected token ;'");
shouldThrow("class A { get foo;() { } }", "'SyntaxError: Unexpected token ;'");
shouldThrow("class A { get foo() ; { } }", "'SyntaxError: Unexpected token ;'");
shouldThrow("class A { set ; foo(x) { } }", "'SyntaxError: Unexpected token ;'");
shouldThrow("class A { set foo;(x) { } }", "'SyntaxError: Unexpected token ;'");
shouldThrow("class A { set foo(x) ; { } }", "'SyntaxError: Unexpected token ;'");
shouldNotThrow("class A { ; }");
shouldNotThrow("class A { foo() { } ; }");
shouldNotThrow("class A { get foo() { } ; }");
shouldNotThrow("class A { set foo(x) { } ; }");
shouldNotThrow("class A { static foo() { } ; }");
shouldNotThrow("class A { static get foo() { } ; }");
shouldNotThrow("class A { static set foo(x) { } ; }");
shouldNotThrow("class A { ; foo() { } }");
shouldNotThrow("class A { ; get foo() { } }");
shouldNotThrow("class A { ; set foo(x) { } }");
shouldNotThrow("class A { ; static foo() { } }");
shouldNotThrow("class A { ; static get foo() { } }");
shouldNotThrow("class A { ; static set foo(x) { } }");
shouldNotThrow("class A { foo() { } ; foo() {} }");
shouldNotThrow("class A { foo() { } ; get foo() {} }");
shouldNotThrow("class A { foo() { } ; set foo(x) {} }");
shouldNotThrow("class A { foo() { } ; static foo() {} }");
shouldNotThrow("class A { foo() { } ; static get foo() {} }");
shouldNotThrow("class A { foo() { } ; static set foo(x) {} }");
shouldNotThrow("class A { get foo() { } ; foo() {} }");
shouldNotThrow("class A { get foo() { } ; get foo() {} }");
shouldNotThrow("class A { get foo() { } ; set foo(x) {} }");
shouldNotThrow("class A { get foo() { } ; static foo() {} }");
shouldNotThrow("class A { get foo() { } ; static get foo() {} }");
shouldNotThrow("class A { get foo() { } ; static set foo(x) {} }");
shouldNotThrow("class A { set foo(x) { } ; foo() {} }");
shouldNotThrow("class A { set foo(x) { } ; get foo() {} }");
shouldNotThrow("class A { set foo(x) { } ; set foo(x) {} }");
shouldNotThrow("class A { set foo(x) { } ; static foo() {} }");
shouldNotThrow("class A { set foo(x) { } ; static get foo() {} }");
shouldNotThrow("class A { set foo(x) { } ; static set foo(x) {} }");
shouldNotThrow("class A { static foo() { } ; foo() {} }");
shouldNotThrow("class A { static foo() { } ; get foo() {} }");
shouldNotThrow("class A { static foo() { } ; set foo(x) {} }");
shouldNotThrow("class A { static foo() { } ; static foo() {} }");
shouldNotThrow("class A { static foo() { } ; static get foo() {} }");
shouldNotThrow("class A { static foo() { } ; static set foo(x) {} }");
shouldNotThrow("class A { static get foo() { } ; foo() {} }");
shouldNotThrow("class A { static get foo() { } ; get foo() {} }");
shouldNotThrow("class A { static get foo() { } ; set foo(x) {} }");
shouldNotThrow("class A { static get foo() { } ; static foo() {} }");
shouldNotThrow("class A { static get foo() { } ; static get foo() {} }");
shouldNotThrow("class A { static get foo() { } ; static set foo(x) {} }");
shouldNotThrow("class A { static set foo(x) { } ; foo() {} }");
shouldNotThrow("class A { static set foo(x) { } ; get foo() {} }");
shouldNotThrow("class A { static set foo(x) { } ; set foo(x) {} }");
shouldNotThrow("class A { static set foo(x) { } ; static foo() {} }");
shouldNotThrow("class A { static set foo(x) { } ; static get foo() {} }");
shouldNotThrow("class A { static set foo(x) { } ; static set foo(x) {} }");
var successfullyParsed = true;
```
|
```css
/*
* =========================================================
* =========================================================
* ColorPicker
* =========================================================
* =========================================================
*
*/
.inlet_clicker {
z-index: 10;
}
.inlet_slider {
opacity: 0.85;
z-index: 10;
width: 24%;
display: block;
border-radius: 3px;
height: 14px;
box-shadow: inset 0px 0px 5px 0px rgba(4, 4, 4, 0.5);
background-color: #d6d6d6;
background-image: linear-gradient(to top, #d6d6d6, #ebebeb);
}
.inlet_slider:hover {
opacity: 0.98;
}
.inlet_slider .range {
width: 100%;
height: 100%;
outline: none;
margin-top: 0px;
margin-left: 0px;
border-radius: 3px;
}
.inlet_slider input[type="range"] {
-webkit-appearance: none;
}
@-moz-document url-prefix() {
.inlet_slider input[type="range"] {
position: absolute;
}
}
.inlet_slider input::-moz-range-track {
background: none;
border: none;
outline: none;
}
.inlet_slider input::-webkit-slider-thumb {
cursor: col-resize;
-webkit-appearance: none;
width: 12px;
height: 12px;
border-radius: 6px;
border: 1px solid black;
background-color: red;
box-shadow: 0px 0px 3px 0px rgba(4, 4, 4, 0.4);
background-color: #424242;
background-color: crimson;
background-image: linear-gradient(to top, #424242, #212121);
}
/*
* =========================================================
* =========================================================
* ColorPicker
* =========================================================
* =========================================================
*
*/
.ColorPicker {
/*
border: 1px solid rgba(0,0,0,0.5);
border-radius: 6px;
background: #0d0d0d;
background: -webkit-gradient(linear, left top, left bottom, from(#333), color-stop(0.1, #111), to(#000000));
box-shadow: 2px 2px 5px 2px rgba(0,0,0,0.35);
color:#AAA;
*/
text-shadow: 1px 1px 1px #000;
color: #050505;
cursor: default;
display: block;
font-family: 'arial', helvetica, sans-serif;
font-size: 20px;
padding: 7px 8px 20px;
position: absolute;
top: 100px;
left: 700px;
width: 229px;
z-index: 100;
border-radius: 3px;
box-shadow: inset 0px 0px 5px 0px rgba(4, 4, 4, 0.5);
background-color: rgba(214, 214, 215, 0.85);
/*
background-image: linear-gradient(to top, rgb(214, 214, 214), rgb(235, 235, 235));
*/
}
.ColorPicker br {
clear: both;
margin: 0;
padding: 0;
}
.ColorPicker input.hexInput:hover,
.ColorPicker input.hexInput:focus {
color: #aa1212;
}
.ColorPicker input.hexInput {
transition-property: color;
transition-duration: .5s;
background: none;
border: 0;
margin: 0;
font-family: courier,monospace;
font-size: 20px;
position: relative;
top: -2px;
float: left;
color: #050505;
cursor: text;
}
.ColorPicker div.hexBox {
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 2px;
background: #FFF;
float: left;
font-size: 1px;
height: 20px;
margin: 0 5px 0 2px;
width: 20px;
cursor: pointer;
}
.ColorPicker div.hexBox div {
width: inherit;
height: inherit;
}
.ColorPicker div.hexClose {
display: none;
/*
-webkit-transition-property: color, text-shadow;
-webkit-transition-duration: .5s;
position: relative;
top: -1px;
left: -1px;
color:#FFF;
cursor:pointer;
float:right;
padding: 0 5px;
margin:0 4px 3px;
user-select:none;
-webkit-user-select: none;
*/
}
.ColorPicker div.hexClose:hover {
text-shadow: 0 0 20px #fff;
color: #FF1100;
}
```
|
```shell
./../../../bin/ring ../../codegen/parsec.ring opengl33.cf ring_opengl33.c ring_opengl33.rh
```
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\FirebaseHosting;
class FirebasehostingEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirebasehostingEmpty::class, 'Google_Service_FirebaseHosting_FirebasehostingEmpty');
```
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/win/direct_manipulation.h"
#include "base/win/windows_version.h"
namespace gfx {
namespace win {
// static
scoped_ptr<DirectManipulationHelper>
DirectManipulationHelper::CreateInstance()
{
scoped_ptr<DirectManipulationHelper> instance;
if (base::win::GetVersion() >= base::win::VERSION_WIN10)
instance.reset(new DirectManipulationHelper);
return instance;
}
DirectManipulationHelper::DirectManipulationHelper() { }
DirectManipulationHelper::~DirectManipulationHelper() { }
void DirectManipulationHelper::Initialize(HWND window)
{
DCHECK(::IsWindow(window));
// TODO(ananta)
// Remove the CHECK statements here and below and replace them with logs
// when this code stabilizes.
HRESULT hr = manager_.CreateInstance(CLSID_DirectManipulationManager,
nullptr, CLSCTX_INPROC_SERVER);
CHECK(SUCCEEDED(hr));
hr = compositor_.CreateInstance(CLSID_DCompManipulationCompositor,
nullptr, CLSCTX_INPROC_SERVER);
CHECK(SUCCEEDED(hr));
hr = manager_->GetUpdateManager(IID_PPV_ARGS(update_manager_.Receive()));
CHECK(SUCCEEDED(hr));
hr = compositor_->SetUpdateManager(update_manager_.get());
CHECK(SUCCEEDED(hr));
hr = frame_info_.QueryFrom(compositor_.get());
CHECK(SUCCEEDED(hr));
hr = manager_->CreateViewport(frame_info_.get(), window,
IID_PPV_ARGS(view_port_outer_.Receive()));
CHECK(SUCCEEDED(hr));
//
// Enable the desired configuration for each viewport.
//
DIRECTMANIPULATION_CONFIGURATION configuration = DIRECTMANIPULATION_CONFIGURATION_INTERACTION
| DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_X
| DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_Y
| DIRECTMANIPULATION_CONFIGURATION_TRANSLATION_INERTIA
| DIRECTMANIPULATION_CONFIGURATION_RAILS_X
| DIRECTMANIPULATION_CONFIGURATION_RAILS_Y
| DIRECTMANIPULATION_CONFIGURATION_SCALING
| DIRECTMANIPULATION_CONFIGURATION_SCALING_INERTIA;
hr = view_port_outer_->ActivateConfiguration(configuration);
CHECK(SUCCEEDED(hr));
}
void DirectManipulationHelper::SetBounds(const gfx::Rect& bounds)
{
base::win::ScopedComPtr<IDirectManipulationPrimaryContent>
primary_content_outer;
HRESULT hr = view_port_outer_->GetPrimaryContent(
IID_PPV_ARGS(primary_content_outer.Receive()));
CHECK(SUCCEEDED(hr));
base::win::ScopedComPtr<IDirectManipulationContent> content_outer;
hr = content_outer.QueryFrom(primary_content_outer.get());
CHECK(SUCCEEDED(hr));
RECT rect = bounds.ToRECT();
hr = view_port_outer_->SetViewportRect(&rect);
CHECK(SUCCEEDED(hr));
hr = content_outer->SetContentRect(&rect);
CHECK(SUCCEEDED(hr));
}
void DirectManipulationHelper::Activate(HWND window)
{
DCHECK(::IsWindow(window));
manager_->Activate(window);
}
void DirectManipulationHelper::Deactivate(HWND window)
{
DCHECK(::IsWindow(window));
manager_->Deactivate(window);
}
void DirectManipulationHelper::HandleMouseWheel(HWND window, UINT message,
WPARAM w_param, LPARAM l_param)
{
MSG msg = { window, message, w_param, l_param };
HRESULT hr = view_port_outer_->SetContact(DIRECTMANIPULATION_MOUSEFOCUS);
if (SUCCEEDED(hr)) {
BOOL handled = FALSE;
manager_->ProcessInput(&msg, &handled);
view_port_outer_->ReleaseContact(DIRECTMANIPULATION_MOUSEFOCUS);
}
}
} // namespace win.
} // namespace gfx.
```
|
```xml
import type { ReactNode } from 'react';
import { c } from 'ttag';
import { Spotlight, useAccountSpotlights } from '@proton/components';
import type { APP_NAMES } from '@proton/shared/lib/constants';
import { APPS, PASS_APP_NAME } from '@proton/shared/lib/constants';
import spotlightAddUsers from './spotlight-add-users.svg';
import spotlightVault from './spotlight-vault.svg';
interface SetupOrgSpotlightProps {
children: ReactNode;
app: APP_NAMES;
}
export const SetupOrgSpotlight = ({ children, app }: SetupOrgSpotlightProps) => {
const {
passOnboardingSpotlights: { setupOrgSpotlight },
} = useAccountSpotlights();
if (app !== APPS.PROTONPASS) {
return children;
}
return (
<Spotlight
content={
<div className="flex flex-nowrap">
<div className="shrink-0 mr-4">
<img src={spotlightAddUsers} className="w-custom" style={{ '--w-custom': '4em' }} alt="" />
</div>
<span>
<div className="text-bold mb-1">
{c('Pass B2B onboarding spotlight').t`Set up your organization`}
</div>
<p className="m-0">
{c('Pass B2B onboarding spotlight')
.t`Start adding users to give them access to ${PASS_APP_NAME}.`}
</p>
</span>
</div>
}
show={setupOrgSpotlight.isOpen}
onClose={setupOrgSpotlight.close}
originalPlacement="right"
className="z-up"
>
{children}
</Spotlight>
);
};
interface StartUsingPassSpotlightProps {
children: ReactNode;
app: APP_NAMES;
}
export const StartUsingPassSpotlight = ({ children, app }: StartUsingPassSpotlightProps) => {
const {
passOnboardingSpotlights: { startUsingPassSpotlight },
} = useAccountSpotlights();
if (app !== APPS.PROTONPASS) {
return children;
}
return (
<Spotlight
content={
<div className="flex flex-nowrap">
<div className="shrink-0 mr-4">
<img src={spotlightVault} className="w-custom" style={{ '--w-custom': '4em' }} alt="" />
</div>
<span>
<div className="text-bold mb-1">
{c('Pass B2B onboarding spotlight').t`Start using ${PASS_APP_NAME}`}
</div>
<p className="m-0">
{c('Pass B2B onboarding spotlight')
.t`Go to your vault to manage your passwords, aliases, and more.`}
</p>
</span>
</div>
}
show={startUsingPassSpotlight.isOpen}
onClose={startUsingPassSpotlight.close}
originalPlacement="right"
className="z-up"
>
{children}
</Spotlight>
);
};
```
|
Lake Dallas High School is a public high school located in the city of Corinth, Texas. It is classified as a 5A school by the UIL. It is part of the Lake Dallas Independent School District located in central Denton County. In 2015, the school was rated "Met Standard" by the Texas Education Agency.
It includes all of Lake Dallas, almost all of the town of Hickory Creek, and sections of Corinth and Shady Shores.
Athletics
The Lake Dallas Falcons compete in these sports
Volleyball, Cross Country, Football, Basketball, Powerlifting, Soccer, Golf, Tennis, Track, Baseball & Softball
Basketball Team: In 1991 the boys varsity team made the "Elite 8" in the UIL 3A playoffs.
Baseball Team: In 2016 reached the state quarter-finals “Elite 8” in the UIL 5A playoffs.
In 2019 reached the “Sweet 16” in the UIL 5A playoffs.
Football Team: In 2015 reached the state semi-finals “Final Four” in the UIL 5A playoffs.
State titles
One Act Play
1998(3A)
Notable people
Daryl Williams (American football) (2010), NFL player (offensive line) drafted in the 4th round Carolina Panthers. Currently plays for the Buffalo Bills (University of Oklahoma Sooners)
James Franklin (Canadian football)
CFL currently playing (quarterback) for Toronto Argonauts. (University of Missouri)
Josh Jackson (American football) currently defensive cornerback for the NFL Green Bay Packers. (University of Iowa)
Dusty Dvoracek (American Football) University of Oklahoma, Chicago Bears. Current commentator for ESPN College Football
Josiah Tauaefa (American Football) currently linebacker for the NFL New York Giants (University of Texas-San Antonio)
References
External links
Lake Dallas ISD website
Public high schools in Texas
High schools in Denton County, Texas
|
```python
import pytest
class TestEnscript:
@pytest.mark.complete("enscript --", require_cmd=True)
def test_1(self, completion):
assert completion
```
|
The Khotta are a Sunni Muslim community that resides and lives in the Indian state of West Bengal.
History
The Khotta Muslim community trace their origins to some of the Pathan Muslim families who came and settled during the reign of Nawab Alivardi Khan from Bihar and Uttar Pradesh. Some of the Khotta community trace their origins particularly to the districts of Darbhanga and Muzaffarpur in the Bihar state. The common surnames among them are mainly Khan, Pathan, Mir, Mirza etc. Besides these titles Sheikh, Mallick etc. are also present. Their presence in Bengal dates back several decades and they are mentioned in 20th-century writer Sarat Chandra Chattopadhyay's Srikanta novel.
Geographic distribution
They mainly inhabit in Kaliachak I & II, Harishandrapur, Ratua and Manikchak blocks in the district of Malda and Farakka, Samserganj, Raghunathganj and Suti blocks in the district of Murshidabad. They are also found scattered in parts of Birbhum, Medinipur and Hooghly.
Culture
The people of Khotta Muslim community usually live in groups in a neighborhood or village. There a few families together form 'Samaj' or 'Dash'. The head of the society is called 'Sardar'. Besides these, there are two positions in the society called 'Maral' and 'Chharidar'. The society or people of Dash are responsible for performing all the ceremonies related to birth, marriage and death. In addition, these people of Samaj also handle family and land disputes locally.
The Khotta Muslim people are endogamous people in general but in recent times marriages happen outside their clans also. They have their own Lok sangeet, funeral rites, marriages etc. having traits and features peculiar to their community only. They have special food habits such as kadoka gillabhat, gurbhatta, chinaka gillabhat, palo etc.
Language
The Khotta Muslim people speak Khotta Bhasha in their homes. The language, which is sort of a dialect, is an admixture of Hindi, Urdu and Bengali. But they all are bilingual and speak & learn Bengali, as Khotta Bhasha has no written form. At present the language has only an intra community conversational status. Their medium of education is now Bengali.
Present circumstances
The total population of Khotta Muslim people is about 10 lakhs in the State of West Bengal. The traditional occupation of the community is cultivation. But they have to fall back on the job of small farmers, land labourers, migrant labourers etc. for their livelihood.
References
People from West Bengal
Muslim communities of India
|
Executive Order 9981 was issued on July 26, 1948, by President Harry S. Truman. This executive order abolished discrimination "on the basis of race, color, religion or national origin" in the United States Armed Forces. The Order led to the re-integration of the services during the Korean War (1950–1953). It was a crucial event in the post-World War II civil rights movement and a major achievement of Truman's presidency. Executive Order 9981 was passed primarily due to an attack on Isaac Woodard Jr. who was an American soldier and African-American World War II veteran. On February 12, 1946, hours after being honorably discharged from the United States Army, he was attacked while still in uniform by South Carolina police as he was taking a bus home. The attack left Woodard completely and permanently blind. President Harry S. Truman ordered a federal investigation.
Truman subsequently established a national interracial commission, made a historic speech to the NAACP and the nation in June 1947 in which he described civil rights as a moral priority, submitted a civil rights bill to Congress in February 1948, and issued Executive Orders 9980 and 9981 on June 26, 1948, desegregating the armed forces and the federal government.
Before Executive Order 9981
Black Americans in the military worked under different rules that delayed their entry into combat. They had to wait four years before they could begin combat training while a white American would begin training within months of being qualified. The Air Corps was deliberately delaying the training of African Americans even though it needed more manpower (Survey and Recommendations). The Women's Army Corps (WAC) reenlistment program was open to black women, but overseas assignments were not.
Black soldiers who were stationed in Britain during World War II learned that the US military attempted to impose Jim Crow segregation on them even though Britain did not practice the racism which was practiced in the US. According to author Anthony Burgess, when pub owners in Bamber Bridge were told to segregate their facilities by the US military, they installed signs that read "Black Troops Only". One soldier commented: "One thing I noticed here and which I don’t like is the fact that the English don’t draw any color line. The English must be pretty ignorant. I can’t see how a white girl could associate with a negro."
In a 1945 survey which was conducted among 250 white officers and sergeants who had a colored platoon assigned to their company, the following results were collected: 77% of both officers and sergeants said that they had become more favorable towards black soldiers after a black platoon was assigned to their company (no cases were found in which someone said that their attitude towards blacks had turned less favorable), 84% of officers and 81% of sergeants thought that the black soldiers had performed very well in combat, only 5% of officers and only 4% of sergeants thought that black infantry soldiers were not as good as white infantry soldiers, and 73% of officers and 60% of sergeants thought that black soldiers and white soldiers got along very well when they were together. According to this particular survey there are no reasonable grounds for racial segregation in the armed forces.
Attempts to end discrimination
In 1947, civil rights activist A. Philip Randolph, along with colleague Grant Reynolds, renewed efforts to end discrimination in the military, forming the Committee Against Jim Crow in Military Service and Training, later renamed the League for Non-Violent Civil Disobedience Against Military Segregation.
Truman's Order expanded on Executive Order 8802 by establishing equality of treatment and opportunity in the military for people of all races, religions, or national origins.
The order:
It is hereby declared to be the policy of the President that there shall be equality of treatment and opportunity for all persons in the armed services without regard to race, color, religion or national origin. This policy shall be put into effect as rapidly as possible, having due regard to the time required to effectuate any necessary changes without impairing efficiency or morale.
The order also established a committee to investigate and make recommendations to the civilian leadership of the military to implement the policy.
The order eliminated Montford Point as a segregated Marine boot camp. It became a satellite facility of Camp Lejeune.
Most of the actual enforcement of the order was accomplished by President Dwight D. Eisenhower's administration (1953–1961), including the desegregation of military schools, hospitals, and bases. The last of the all-black units in the United States military was abolished in September 1954.
Kenneth Claiborne Royall, Secretary of the Army since 1947, was forced into retirement in April 1949 for continuing to refuse to desegregate the army nearly a year after President Truman's Order.
Fifteen years after Truman's order, on July 26, 1963, Secretary of Defense Robert McNamara issued Directive 5120.36 encouraging military commanders to employ their financial resources against facilities used by soldiers or their families that discriminated based upon sex or race.
In contravention to Truman's executive order, the United States complied with a non-public request from the Icelandic government not to station black soldiers on the US base in Keflavík, Iceland. The United States complied with the Icelandic request until the 1970s and 1980s when black soldiers began to be stationed in Iceland.
References
Further reading
Gardner, Michael R. Harry Truman and civil rights (SIU Press, 2002) online
Gropman, Alan L. The Air Force Integrates, 1949–1964 (Office of Air Force History, 1986) online
Rottinghaus, Brandon, and Adam L. Warber. "Unilateral orders as constituency outreach: executive orders, proclamations, and the public presidency." Presidential Studies Quarterly 45.2 (2015): 289–309.
Taylor, Jon E. Freedom to Serve: Truman, Civil Rights, and Executive Order 9981 (Routledge, 2013)
Warber, Adam L., Yu Ouyang, and Richard W. Waterman. "Landmark executive orders: Presidential leadership through unilateral action." Presidential Studies Quarterly 48.1 (2018): 110–126.
External links
Full text of Executive Order 9981 from the Harry S. Truman Presidential Library and Museum
Integration of the Armed Forces, 1940–1965 (Defense Studies Series) by Morris J. MacGregor Jr., from the United States Army Center of Military History
Blacks Must Wage Two Wars:' The Freeman Field Uprising & WWII Desegregation", Indiana Historical Bureau
"Fighting Together in Korea"—episode of the BBC World Service's radio program The Documentary concerning the effects of Executive Order 9981
1948 in American law
1948 in the United States
20th-century military history of the United States
African-American history between emancipation and the civil rights movement
African-American history of the United States military
9981
History of civil rights in the United States
|
Muzik was a British music magazine.
Muzik may also refer to:
"Muzik", a song by 4minute
"Muzik", song from the 2002 rap EP L.A. Confidential Presents: Knoc-turn'al
Muzik FM (formerly Radio Muzik), Malaysia's first FM radio station
Mike Paradinas (born 1971), British musician known under the name "μ-Ziq"
Jiří Mužík (born 1976), Czech hurdler
Muzik night club in Toronto's Horticulture Building
TRT Müzik, a Turkish television channel
See also
Music
|
J'son (born Jason Tyrel Thomas; May 14, 1980) is an American R&B singer who was signed to Hollywood Records in the 1990s with three charting hits on the US Billboard Hot 100. He also scored two top 5 singles in New Zealand.
Career
J'son grew up in South Central Los Angeles singing on the street corner for tips after school. He started singing at the age of eight in an attempt to gain his mother's attention, which is when his singing abilities were recognized. At the age of 13 J'son met Minetta D. Gammage who then introduced him to her business partner David Esterson, who helped get a record deal with Hollywood Records.
In 1995 J'son released his first single "Take A Look". The song peaked at #74 on the Billboard Hot 100, #26 on Billboard's Rhythmic Top 40 chart, #38 on Billboard's Hot Dance Music Club Play chart and #54 on Billboard's Hot R&B Singles chart. "Take A Look" was also a big hit in New Zealand in 1996, peaking at #2 and spending 10 non-consecutive weeks in the top 10. His second single "I'll Never Stop Loving You" peaked at #62 on the Billboard Hot 100, #38 on Billboard's Rhythmic Top 40 chart, and #57 on Billboard's Hot R&B Singles chart. It was also another major success for J'son in New Zealand, debuting at #8, and climbing to a peak of #4 in June 1996, giving J'son his second consecutive top five hit in the country. The song appeared on the "First Kid" movie soundtrack and it was covered by Britney Spears, appearing as the B-side to her single "(You Drive Me) Crazy". J'son's self-titled debut album was released on February 27, 1996 and peaked at #44 on Billboard's Heatseekers Albums chart. His song "Say That You're Ready" appeared on the Eddie movie soundtrack in 1996. A song titled "Down and Dirty was featured The 6th Man movie soundtrack in 1997.
In 1998, he released the single "I Should Cheat On You", the lead single from his sophomore album. The song peaked at #48 on Billboard's Hot R&B Singles chart, #72 on the Billboard Hot 100 and stayed on the chart for 13 weeks. Unfortunately due to the lackluster sells of the single, his second album was shelved. After leaving Hollywood records he joined the R&B boy band 3rd Storee (also known as Chapter 4) and released one album with them in 2002. Aside from music, J'son has done some acting, commercials, voice-overs and he appears in the movie “Honey” starring Jessica Alba.
After the group disbanded, J'Son reemerged in 2011 for brief moment appearing under a new stage name Jay Sonic in a new music video titled "Spazz Out", Directed by Nick Lovell and Cinematography by Matthew Griffith. In 2012 he made an on-air radio broadcast participating in a R&B cipher on Generation Bizzle Radio on their GenerationBizzleTV YouTube Channel, the vocal acts featured actress and singer Porscha Coleman along with artists Kolby Cordell, Tonez P & Jay Sonic.
Discography
Albums
J'Son (1996)
Singles
Soundtracks
"I'll Never Stop Loving You" - First Kid Soundtrack (Walt Disney Pictures)
"Say That You're Ready" - Eddie Soundtrack (Buena Vista Pictures)
"Down and Dirty" - The 6th Man Soundtrack (Touchstone Pictures)
Unreleased Tracks
"Truly Wait" - (Producer's Cut, Recorded before his official sign with Hollywood Records)
"Baby Don't Run Away" - (Producer's Cut, Recorded before his official sign with Hollywood Records)
"Spazz Out" - (2011 single and music video under the new stage name "Jay Sonic")
See also
Jason (name)
J-Son
References
American contemporary R&B singers
Living people
Place of birth missing (living people)
1980 births
21st-century American singers
|
Andraegoidus laticollis is a species of beetle in the family Cerambycidae. It was described by Tippmann in 1953.
References
Trachyderini
Beetles described in 1953
|
Sendamangalam block is a revenue block in the Namakkal district of Tamil Nadu, India. It has a total of 14 panchayat villages.
It is part of the Senthamangalam (state assembly constituency).
References
Revenue blocks of Namakkal district
|
```java
/*
* FindBugs - Find Bugs in Java programs
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*
* You should have received a copy of the GNU Lesser General Public
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package edu.umd.cs.findbugs.workflow;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.Date;
import java.util.Enumeration;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import edu.umd.cs.findbugs.FindBugs;
import edu.umd.cs.findbugs.charsets.UTF8;
import edu.umd.cs.findbugs.charsets.UserTextFile;
import edu.umd.cs.findbugs.config.CommandLine;
import edu.umd.cs.findbugs.util.ClassName;
import edu.umd.cs.findbugs.util.DualKeyHashMap;
import edu.umd.cs.findbugs.util.Util;
/**
* @author William Pugh
*/
public class CountClassVersions {
public static List<String> readFromStandardInput() throws IOException {
return readFrom(UserTextFile.reader(System.in));
}
public static List<String> readFrom(Reader r) throws IOException {
BufferedReader in = new BufferedReader(r);
List<String> lst = new LinkedList<>();
while (true) {
String s = in.readLine();
if (s == null) {
return lst;
}
lst.add(s);
}
}
static class CountClassVersionsCommandLine extends CommandLine {
public String prefix = "";
public String inputFileList;
long maxAge = Long.MIN_VALUE;
CountClassVersionsCommandLine() {
addOption("-maxAge", "days", "maximum age in days (ignore jar files older than this");
addOption("-inputFileList", "filename", "text file containing names of jar files");
addOption("-prefix", "class name prefix", "prefix of class names that should be analyzed e.g., edu.umd.cs.)");
}
@Override
protected void handleOption(String option, String optionExtraPart) throws IOException {
throw new IllegalArgumentException("Unknown option : " + option);
}
@Override
protected void handleOptionWithArgument(String option, String argument) throws IOException {
if ("-prefix".equals(option)) {
prefix = argument;
} else if ("-inputFileList".equals(option)) {
inputFileList = argument;
} else if ("-maxAge".equals(option)) {
maxAge = System.currentTimeMillis() - (24 * 60 * 60 * 1000L) * Integer.parseInt(argument);
} else {
throw new IllegalArgumentException("Unknown option : " + option);
}
}
}
public static void main(String args[]) throws Exception {
FindBugs.setNoAnalysis();
CountClassVersionsCommandLine commandLine = new CountClassVersionsCommandLine();
int argCount = commandLine.parse(args, 0, Integer.MAX_VALUE, "Usage: " + CountClassVersions.class.getName()
+ " [options] [<jarFile>+] ");
List<String> fileList;
if (commandLine.inputFileList != null) {
fileList = readFrom(UTF8.fileReader(commandLine.inputFileList));
} else if (argCount == args.length) {
fileList = readFromStandardInput();
} else {
fileList = Arrays.asList(args).subList(argCount, args.length - 1);
}
byte buffer[] = new byte[8192];
MessageDigest digest = Util.getMD5Digest();
DualKeyHashMap<String, String, String> map = new DualKeyHashMap<>();
for (String fInName : fileList) {
File f = new File(fInName);
if (f.lastModified() < commandLine.maxAge) {
System.err.println("Skipping " + fInName + ", too old (" + new Date(f.lastModified()) + ")");
continue;
}
System.err.println("Opening " + f);
try (ZipFile zipInputFile = new ZipFile(f)) {
for (Enumeration<? extends ZipEntry> e = zipInputFile.entries(); e.hasMoreElements();) {
ZipEntry ze = e.nextElement();
if (ze == null) {
break;
}
if (ze.isDirectory()) {
continue;
}
String name = ze.getName();
if (!name.endsWith(".class")) {
continue;
}
if (!ClassName.toDottedClassName(name).startsWith(commandLine.prefix)) {
continue;
}
InputStream zipIn = zipInputFile.getInputStream(ze);
while (true) {
int bytesRead = zipIn.read(buffer);
if (bytesRead < 0) {
break;
}
digest.update(buffer, 0, bytesRead);
}
String hash = new BigInteger(1, digest.digest()).toString(16);
map.put(name, hash, fInName);
}
} catch (IOException e) {
e.printStackTrace();
continue;
}
}
for (String s : map.keySet()) {
Map<String, String> values = map.get(s);
if (values.size() > 1) {
System.out.println(values.size() + "\t" + s + "\t" + values.values());
}
}
}
}
```
|
Requiem sharks are sharks of the family Carcharhinidae in the order Carcharhiniformes. They are migratory, live-bearing sharks of warm seas (sometimes of brackish or fresh water) and include such species as the bull shark, lemon shark, spinner shark, blacknose shark, blacktip shark, grey reef shark, blacktip reef shark, silky shark, dusky shark, blue shark, copper shark, oceanic whitetip shark, and whitetip reef shark.
Family members have the usual carcharhiniform characteristics. Their eyes are round, and one or two gill slits fall over the pectoral fin base. Most species are viviparous, the young being born fully developed. They vary widely in size, from as small as adult length in the Australian sharpnose shark, up to adult length in the oceanic whitetip shark. Scientists assume that the size and shape of their pectoral fins have the right dimensions to minimize transport cost. Requiem sharks tend to live in more tropical areas, but tend to migrate. Females release a chemical in the ocean in order to let the males know they are ready to mate. Typical mating time for these sharks is around spring to autumn.
Requiem sharks are among the top five species involved in shark attacks on humans; however, due to the difficulty in identifying individual species, a degree of inaccuracy exists in attack records.
Etymology
The common name requiem shark may be related to the French word for shark, requin, which is itself of disputed etymology. One derivation of the latter is from Latin requiem ("rest"), which would thereby create a cyclic etymology (requiem-requin-requiem), but other sources derive it from the Old French verb reschignier ("to grimace while baring teeth").
The scientific name Carcharhinidae was first proposed in 1896 by D.S. Jordan and B.W. Evermann as a subfamily of Galeidae (now replaced by "Carcharhinidae"). The term is derived from Greek (karcharos, sharp or jagged), and ῥί̄νη (rhinē, rasp); both elements describe the jagged, rasp-like skin. Rasp-like skin is typical of shark skin in general, and is not diagnostic to Carcharhinidae.
Evolutionary history
The oldest member of the family is Archaeogaleus lengadocensis from the Early Cretaceous (Valanginian) of France. Only a handful of records of the group are known from prior to the beginning of the Cenozoic. Modern carcharinid sharks have extensively diversified in coral reef habitats.
Hunting strategies
Requiem sharks are extraordinarily fast and effective hunters. Their elongated, torpedo-shaped bodies make them quick and agile swimmers, so they can easily attack any prey. They have a range of food sources depending on their location and species that includes bony fish, squids, octopuses, lobsters, turtles, marine mammals, seabirds, other sharks and rays. They are often considered the "garbage cans" of the seas because they will eat almost anything, even non-food items like trash. They are migratory hunters that follow their food source across entire oceans. They tend to be most active at night time, where their impressive eyesight can help them sneak up on unsuspecting prey. Most requiem sharks hunt alone, however some species like the whitetip reef sharks and lemon sharks are cooperative feeders and will hunt in packs through coordinated, timed attacks against their prey.
Classification
The 59 species of requiem shark are grouped into 11 genera:
Genus Scoliodon J. P. Müller & Henle, 1838
Scoliodon laticaudus J. P. Müller & Henle, 1838 (spadenose shark)
Scoliodon macrorhynchos Bleeker, 1852 (Pacific spadenose shark)
Genus Carcharhinus Blainville, 1816
Carcharhinus acronotus Poey, 1860 (blacknose shark)
Carcharhinus albimarginatus Rüppell, 1837 (silvertip shark)
Carcharhinus altimus S. Springer, 1950 (bignose shark)
Carcharhinus amblyrhynchoides Whitley, 1934 (graceful shark)
Carcharhinus amblyrhynchos Bleeker, 1856 (grey reef shark)
Carcharhinus amboinensis J. P. Müller & Henle, 1839 (pigeye shark)
Carcharhinus borneensis Bleeker, 1858 (Borneo shark)
Carcharhinus brachyurus Günther, 1870 (copper shark)
Carcharhinus brevipinna J. P. Müller & Henle, 1839 (spinner shark)
Carcharhinus cautus Whitley, 1945 (nervous shark)
Carcharhinus cerdale C. H. Gilbert, 1898 (Pacific smalltail shark)
Carcharhinus coatesi Whitley, 1939 (Coates's shark)
Carcharhinus dussumieri J. P. Müller & Henle, 1839 (whitecheek shark)
Carcharhinus falciformis J. P. Müller & Henle, 1839 (silky shark)
Carcharhinus fitzroyensis Whitley, 1943 (creek whaler)
Carcharhinus galapagensis Snodgrass & Heller, 1905 (Galapagos shark)
Carcharhinus hemiodon J. P. Müller & Henle, 1839 (Pondicherry shark)
Carcharhinus humani W. T. White & Weigmann, 2014 (Human's whaler shark)
Carcharhinus isodon J. P. Müller & Henle, 1839 (finetooth shark)
Carcharhinus leiodon Garrick, 1985 (smoothtooth blacktip shark)
Carcharhinus leucas J. P. Müller & Henle, 1839 (bull shark)
Carcharhinus limbatus J. P. Müller & Henle, 1839 (blacktip shark)
Carcharhinus longimanus Poey, 1861 (oceanic whitetip shark)
Carcharhinus macloti J. P. Müller & Henle, 1839 (hardnose shark)
Carcharhinus melanopterus Quoy & Gaimard, 1824 (blacktip reef shark)
Carcharhinus obscurus Lesueur, 1818 (dusky shark)
Carcharhinus perezi Poey, 1876 (Caribbean reef shark)
Carcharhinus plumbeus Nardo, 1827 (sandbar shark)
Carcharhinus porosus Ranzani, 1839 (smalltail shark)
Carcharhinus sealei Pietschmann, 1913 (blackspot shark)
Carcharhinus signatus Poey, 1868 (night shark)
Carcharhinus sorrah J. P. Müller & Henle, 1839 (spot-tail shark)
Carcharhinus tilstoni Whitley, 1950 (Australian blacktip shark)
†Carcharhinus tingae
Carcharhinus tjutjot Bleeker, 1852 (Indonesian whaler shark)
Carcharhinus obsolerus White, Kyne, and Harris, 2019 (lost shark)
Genus Glyphis Agassiz, 1843
Glyphis gangeticus (J. P. Müller & Henle, 1839) (Ganges shark)
Glyphis garricki Compagno, W. T. White & Last, 2008 (northern river shark)
Glyphis glyphis (J. P. Müller & Henle, 1839) (speartooth shark)
Glyphis sp. not yet described (Mukah river shark)
Genus Lamiopsis Gill, 1862
Lamiopsis temminckii (J. P. Müller & Henle, 1839) (broadfin shark)
Lamiopsis tephrodes (Fowler, 1905) (Borneo broadfin shark)
Genus Nasolamia Compagno & Garrick, 1983
Nasolamia velox (Gilbert, 1898) (whitenose shark)
Genus Negaprion Whitley, 1940
Negaprion acutidens (Rüppell, 1837) (sicklefin lemon shark)
Negaprion brevirostris (Poey, 1868) (lemon shark)
†Negaprion eurybathrodon (Blake, 1862)
Genus Prionace Cantor, 1849
Prionace glauca (Linnaeus, 1758) (blue shark)
Genus Rhizoprionodon Whitley, 1929
Rhizoprionodon acutus (Rüppell, 1837) (milk shark)
Rhizoprionodon lalandii (J. P. Müller & Henle, 1839) (Brazilian sharpnose shark)
Rhizoprionodon longurio (D. S. Jordan & Gilbert, 1882) (Pacific sharpnose shark)
Rhizoprionodon oligolinx V. G. Springer, 1964 (grey sharpnose shark)
Rhizoprionodon porosus (Poey, 1861) (Caribbean sharpnose shark)
Rhizoprionodon taylori (Ogilby, 1915) (Australian sharpnose shark)
Rhizoprionodon terraenovae (J. Richardson, 1836) (Atlantic sharpnose shark)
Genus Loxodon J. P. Müller & Henle, 1838
Loxodon macrorhinus (J. P. Müller & Henle, 1839) (sliteye shark)
Genus Isogomphodon Gill, 1862
Isogomphodon oxyrhynchus (J. P. Müller & Henle, 1839) (daggernose shark)
Genus Triaenodon J. P. Müller & Henle, 1837
Triaenodon obesus (Rüppell, 1837) (whitetip reef shark)
† = extinct
See also
Shark meat
References
External links
Requiem Shark Photo Gallery (Bahamas)
Elasmo-research
International Shark Attack File
Taxa named by David Starr Jordan
Taxa named by Barton Warren Evermann
Extant Valanginian first appearances
|
```forth
*> \brief \b ZLAUNHR_COL_GETRFNP2
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* path_to_url
*
*> \htmlonly
*> Download ZLAUNHR_COL_GETRFNP2 + dependencies
*> <a href="path_to_url">
*> [TGZ]</a>
*> <a href="path_to_url">
*> [ZIP]</a>
*> <a href="path_to_url">
*> [TXT]</a>
*> \endhtmlonly
*
* Definition:
* ===========
*
* RECURSIVE SUBROUTINE ZLAUNHR_COL_GETRFNP2( M, N, A, LDA, D, INFO )
*
* .. Scalar Arguments ..
* INTEGER INFO, LDA, M, N
* ..
* .. Array Arguments ..
* COMPLEX*16 A( LDA, * ), D( * )
* ..
*
*
*> \par Purpose:
* =============
*>
*> \verbatim
*>
*> ZLAUNHR_COL_GETRFNP2 computes the modified LU factorization without
*> pivoting of a complex general M-by-N matrix A. The factorization has
*> the form:
*>
*> A - S = L * U,
*>
*> where:
*> S is a m-by-n diagonal sign matrix with the diagonal D, so that
*> D(i) = S(i,i), 1 <= i <= min(M,N). The diagonal D is constructed
*> as D(i)=-SIGN(A(i,i)), where A(i,i) is the value after performing
*> i-1 steps of Gaussian elimination. This means that the diagonal
*> element at each step of "modified" Gaussian elimination is at
*> least one in absolute value (so that division-by-zero not
*> possible during the division by the diagonal element);
*>
*> L is a M-by-N lower triangular matrix with unit diagonal elements
*> (lower trapezoidal if M > N);
*>
*> and U is a M-by-N upper triangular matrix
*> (upper trapezoidal if M < N).
*>
*> This routine is an auxiliary routine used in the Householder
*> reconstruction routine ZUNHR_COL. In ZUNHR_COL, this routine is
*> applied to an M-by-N matrix A with orthonormal columns, where each
*> element is bounded by one in absolute value. With the choice of
*> the matrix S above, one can show that the diagonal element at each
*> step of Gaussian elimination is the largest (in absolute value) in
*> the column on or below the diagonal, so that no pivoting is required
*> for numerical stability [1].
*>
*> For more details on the Householder reconstruction algorithm,
*> including the modified LU factorization, see [1].
*>
*> This is the recursive version of the LU factorization algorithm.
*> Denote A - S by B. The algorithm divides the matrix B into four
*> submatrices:
*>
*> [ B11 | B12 ] where B11 is n1 by n1,
*> B = [ -----|----- ] B21 is (m-n1) by n1,
*> [ B21 | B22 ] B12 is n1 by n2,
*> B22 is (m-n1) by n2,
*> with n1 = min(m,n)/2, n2 = n-n1.
*>
*>
*> The subroutine calls itself to factor B11, solves for B21,
*> solves for B12, updates B22, then calls itself to factor B22.
*>
*> For more details on the recursive LU algorithm, see [2].
*>
*> ZLAUNHR_COL_GETRFNP2 is called to factorize a block by the blocked
*> routine ZLAUNHR_COL_GETRFNP, which uses blocked code calling
*> Level 3 BLAS to update the submatrix. However, ZLAUNHR_COL_GETRFNP2
*> is self-sufficient and can be used without ZLAUNHR_COL_GETRFNP.
*>
*> [1] "Reconstructing Householder vectors from tall-skinny QR",
*> G. Ballard, J. Demmel, L. Grigori, M. Jacquelin, H.D. Nguyen,
*> E. Solomonik, J. Parallel Distrib. Comput.,
*> vol. 85, pp. 3-31, 2015.
*>
*> [2] "Recursion leads to automatic variable blocking for dense linear
*> algebra algorithms", F. Gustavson, IBM J. of Res. and Dev.,
*> vol. 41, no. 6, pp. 737-755, 1997.
*> \endverbatim
*
* Arguments:
* ==========
*
*> \param[in] M
*> \verbatim
*> M is INTEGER
*> The number of rows of the matrix A. M >= 0.
*> \endverbatim
*>
*> \param[in] N
*> \verbatim
*> N is INTEGER
*> The number of columns of the matrix A. N >= 0.
*> \endverbatim
*>
*> \param[in,out] A
*> \verbatim
*> A is COMPLEX*16 array, dimension (LDA,N)
*> On entry, the M-by-N matrix to be factored.
*> On exit, the factors L and U from the factorization
*> A-S=L*U; the unit diagonal elements of L are not stored.
*> \endverbatim
*>
*> \param[in] LDA
*> \verbatim
*> LDA is INTEGER
*> The leading dimension of the array A. LDA >= max(1,M).
*> \endverbatim
*>
*> \param[out] D
*> \verbatim
*> D is COMPLEX*16 array, dimension min(M,N)
*> The diagonal elements of the diagonal M-by-N sign matrix S,
*> D(i) = S(i,i), where 1 <= i <= min(M,N). The elements can be
*> only ( +1.0, 0.0 ) or (-1.0, 0.0 ).
*> \endverbatim
*>
*> \param[out] INFO
*> \verbatim
*> INFO is INTEGER
*> = 0: successful exit
*> < 0: if INFO = -i, the i-th argument had an illegal value
*> \endverbatim
*>
* Authors:
* ========
*
*> \author Univ. of Tennessee
*> \author Univ. of California Berkeley
*> \author Univ. of Colorado Denver
*> \author NAG Ltd.
*
*> \ingroup launhr_col_getrfnp2
*
*> \par Contributors:
* ==================
*>
*> \verbatim
*>
*> November 2019, Igor Kozachenko,
*> Computer Science Division,
*> University of California, Berkeley
*>
*> \endverbatim
*
* =====================================================================
RECURSIVE SUBROUTINE ZLAUNHR_COL_GETRFNP2( M, N, A, LDA, D,
$ INFO )
IMPLICIT NONE
*
* -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, --
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
*
* .. Scalar Arguments ..
INTEGER INFO, LDA, M, N
* ..
* .. Array Arguments ..
COMPLEX*16 A( LDA, * ), D( * )
* ..
*
* =====================================================================
*
* .. Parameters ..
DOUBLE PRECISION ONE
PARAMETER ( ONE = 1.0D+0 )
COMPLEX*16 CONE
PARAMETER ( CONE = ( 1.0D+0, 0.0D+0 ) )
* ..
* .. Local Scalars ..
DOUBLE PRECISION SFMIN
INTEGER I, IINFO, N1, N2
COMPLEX*16 Z
* ..
* .. External Functions ..
DOUBLE PRECISION DLAMCH
EXTERNAL DLAMCH
* ..
* .. External Subroutines ..
EXTERNAL ZGEMM, ZSCAL, ZTRSM, XERBLA
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, DBLE, DCMPLX, DIMAG, DSIGN, MAX, MIN
* ..
* .. Statement Functions ..
DOUBLE PRECISION CABS1
* ..
* .. Statement Function definitions ..
CABS1( Z ) = ABS( DBLE( Z ) ) + ABS( DIMAG( Z ) )
* ..
* .. Executable Statements ..
*
* Test the input parameters
*
INFO = 0
IF( M.LT.0 ) THEN
INFO = -1
ELSE IF( N.LT.0 ) THEN
INFO = -2
ELSE IF( LDA.LT.MAX( 1, M ) ) THEN
INFO = -4
END IF
IF( INFO.NE.0 ) THEN
CALL XERBLA( 'ZLAUNHR_COL_GETRFNP2', -INFO )
RETURN
END IF
*
* Quick return if possible
*
IF( MIN( M, N ).EQ.0 )
$ RETURN
IF ( M.EQ.1 ) THEN
*
* One row case, (also recursion termination case),
* use unblocked code
*
* Transfer the sign
*
D( 1 ) = DCMPLX( -DSIGN( ONE, DBLE( A( 1, 1 ) ) ) )
*
* Construct the row of U
*
A( 1, 1 ) = A( 1, 1 ) - D( 1 )
*
ELSE IF( N.EQ.1 ) THEN
*
* One column case, (also recursion termination case),
* use unblocked code
*
* Transfer the sign
*
D( 1 ) = DCMPLX( -DSIGN( ONE, DBLE( A( 1, 1 ) ) ) )
*
* Construct the row of U
*
A( 1, 1 ) = A( 1, 1 ) - D( 1 )
*
* Scale the elements 2:M of the column
*
* Determine machine safe minimum
*
SFMIN = DLAMCH('S')
*
* Construct the subdiagonal elements of L
*
IF( CABS1( A( 1, 1 ) ) .GE. SFMIN ) THEN
CALL ZSCAL( M-1, CONE / A( 1, 1 ), A( 2, 1 ), 1 )
ELSE
DO I = 2, M
A( I, 1 ) = A( I, 1 ) / A( 1, 1 )
END DO
END IF
*
ELSE
*
* Divide the matrix B into four submatrices
*
N1 = MIN( M, N ) / 2
N2 = N-N1
*
* Factor B11, recursive call
*
CALL ZLAUNHR_COL_GETRFNP2( N1, N1, A, LDA, D, IINFO )
*
* Solve for B21
*
CALL ZTRSM( 'R', 'U', 'N', 'N', M-N1, N1, CONE, A, LDA,
$ A( N1+1, 1 ), LDA )
*
* Solve for B12
*
CALL ZTRSM( 'L', 'L', 'N', 'U', N1, N2, CONE, A, LDA,
$ A( 1, N1+1 ), LDA )
*
* Update B22, i.e. compute the Schur complement
* B22 := B22 - B21*B12
*
CALL ZGEMM( 'N', 'N', M-N1, N2, N1, -CONE, A( N1+1, 1 ),
$ LDA,
$ A( 1, N1+1 ), LDA, CONE, A( N1+1, N1+1 ), LDA )
*
* Factor B22, recursive call
*
CALL ZLAUNHR_COL_GETRFNP2( M-N1, N2, A( N1+1, N1+1 ), LDA,
$ D( N1+1 ), IINFO )
*
END IF
RETURN
*
* End of ZLAUNHR_COL_GETRFNP2
*
END
```
|
The deepbody bitterling or Itasenpara bitterling (''Acheilognathus longipinnis') is a species of freshwater fish in the family of Cyprinidae. It is endemic to central and southern Japan. It grows to a maximum length of 8.0 cm.
References
Acheilognathus
Fish described in 1905
Freshwater fish of Japan
Taxonomy articles created by Polbot
|
```javascript
import { Observable } from 'rx';
import { push } from 'react-router-redux';
import types from './types';
import { getMouse } from './utils';
import { makeToast, updatePoints } from '../../../redux/actions';
import { hikeCompleted, goToNextHike } from './actions';
import { postJSON$ } from '../../../../utils/ajax-stream';
import { getCurrentHike } from './selectors';
function handleAnswer(getState, dispatch, next, action) {
const {
e,
answer,
userAnswer,
info,
threshold
} = action.payload;
const state = getState();
const { id, name, challengeType, tests } = getCurrentHike(state);
const {
app: { isSignedIn },
hikesApp: {
currentQuestion,
delta = [ 0, 0 ]
}
} = state;
let finalAnswer;
// drag answer, compute response
if (typeof userAnswer === 'undefined') {
const [positionX] = getMouse(e, delta);
// question released under threshold
if (Math.abs(positionX) < threshold) {
return next(action);
}
if (positionX >= threshold) {
finalAnswer = true;
}
if (positionX <= -threshold) {
finalAnswer = false;
}
} else {
finalAnswer = userAnswer;
}
// incorrect question
if (answer !== finalAnswer) {
if (info) {
dispatch(makeToast({
title: 'Hint',
message: info,
type: 'info'
}));
}
return Observable
.just({ type: types.endShake })
.delay(500)
.startWith({ type: types.startShake })
.doOnNext(dispatch);
}
if (tests[currentQuestion]) {
return Observable
.just({ type: types.goToNextQuestion })
.delay(300)
.startWith({ type: types.primeNextQuestion })
.doOnNext(dispatch);
}
let updateUser$;
if (isSignedIn) {
const body = { id, name, challengeType: +challengeType };
updateUser$ = postJSON$('/completed-challenge', body)
// if post fails, will retry once
.retry(3)
.flatMap(({ alreadyCompleted, points }) => {
return Observable.of(
makeToast({
message:
'Challenge saved.' +
(alreadyCompleted ? '' : ' First time Completed!'),
title: 'Saved',
type: 'info'
}),
updatePoints(points),
);
})
.catch(error => {
return Observable.just({
type: 'app.error',
error
});
});
} else {
updateUser$ = Observable.empty();
}
const challengeCompleted$ = Observable.of(
goToNextHike(),
makeToast({
title: 'Congratulations!',
message: 'Hike completed.' + (isSignedIn ? ' Saving...' : ''),
type: 'success'
})
);
return Observable.merge(challengeCompleted$, updateUser$)
.delay(300)
.startWith(hikeCompleted(finalAnswer))
.catch(error => Observable.just({
type: 'error',
error
}))
// end with action so we know it is ok to transition
.doOnCompleted(() => dispatch({ type: types.transitionHike }))
.doOnNext(dispatch);
}
export default () => ({ getState, dispatch }) => next => {
return function answerSaga(action) {
if (action.type === types.answerQuestion) {
return handleAnswer(getState, dispatch, next, action);
}
// let goToNextQuestion hit reducers first
const result = next(action);
if (action.type === types.transitionHike) {
const { hikesApp: { currentHike } } = getState();
// if no next hike currentHike will equal '' which is falsy
if (currentHike) {
dispatch(push(`/videos/${currentHike}`));
} else {
dispatch(push('/map'));
}
}
return result;
};
};
```
|
San Blas is an electoral parish Parish (administrative division) (parroquia electorale urban) or district of Quito. The parish was established as a result of the October 2004 political elections when the city was divided into 19 urban electoral parishes.
References
External links
San Blas Church
Parishes of Quito Canton
|
Naomi Flores (1921-2013) (code name Looter) was active in the resistance to the Japanese occupation of the Philippines in World War II. Flores was a member of the "Miss U Spy Ring." Working clandestinely and at great risk to herself, she delivered life-saving supplies and messages to American and Filipino prisoners of war in prison camps. She later married an American and moved to the United States. She was honored by the United States with a Medal of Freedom in 1948.
Early life
According to her daughter, Flores was born in Baguio, Philippines. She was an orphan and was raised in the household of a retired American Army officer, William E. Dosser. She was an Igorot, the Indigenous peoples in the mountains of Luzon Island. When Japan invaded the Philippines in December 1941, Flores was a 20-year old hairdresser in a beauty salon in Manila.
Camp O'Donnell
In May 1942, Flores met Margaret "Peggy" Utinsky at the beauty salon. Utinsky was an American citizen who had avoided detention by the Japanese occupiers by claiming to be Lithuanian. Utinsky and Flores had a common interest in gathering supplies to help American and Filipino POWs imprisoned in Camp O'Donnell, located about north of Manila. Flores moved into Utinsky's apartment and became, in Utinsky's words, her "right-hand man." In June, Utinsky and Flores journeyed together to Capas, the nearest town to the POW camp and delivered clothing, medicine, and money to the Red Cross for the POWs. Flores ability to get donations and collect supplies earned her the code name of "Looter." With a half-American, half-Filipina woman named Evangeline Neibert ("Sassy Susie"), Flores returned to O'Donnell several times. In addition to supplies, the two women smuggled medicine, messages, and money into the camp and received messages from the POWS inside. However, O'Donnell was soon closed and the POWs were moved to Cabanatuan camp.
Arrested by the Japanese
A friend asked Flores to hide two American soldiers who had not been captured by the Japanese. Utinsky and Flores hid them at the beauty parlor where Flores had previously worked. An informant told the Japanese about the soldiers and they raided the beauty parlor, captured the two soldiers, and let it be known that they were searching for Flores. Utinsky persuaded Flores to surrender to the Japanese and claim that she did not know the two men were Americans but had only hired them to guard the beauty parlor. During a day-long interrogation, Flores was slapped around, but released. She realized, however, that she was under suspicion and got permission from the Filipino authorities to move out of Manila to Cabanatuan on the pretext that she was needed to take care of a sick aunt, "Mrs. Bell." The city of Cabanatuan was near the POW camp. Neibert took charge of moving goods from Manila to Cabanatuan. Flores was not sorry to leave the apartment she shared with Utinsky. Utinsky had become increasingly irascible and leadership of Miss U shifted toward a Spaniard named Ramon Amusategui and his Filipina wife, Lorenza.
Flores rarely visited Manila after her first arrest, but, on a visit in August 1943, she was arrested again by the Japanese and questioned for three hours. Her forged identification documents were accepted as genuine; the Japanese apparently thought they had detained the wrong woman and released her, but security was tightening and her work was becoming more dangerous. Among others of the Miss U ring, Utinsky was arrested in September 1943, badly beaten, and released in November. In December Ramon Amusategui ordered deliveries of survival packages of food and money to the Cabanatuan POWs to be halted temporarily because of the Japanese crackdown. Amusategui and his wife, Lorenza, were later arrested by the Japanese. Ramon Amusategui died or was executed while imprisoned.
Cabanatuan
At its peak, Cabanatuan camp held 8,000 American soldiers, making it the largest POW camp in the Philippines. This number dropped significantly as nearly one-third died from the hardships of the camp and as soldiers were shipped to other areas to work in slave labor camps. The Japanese captors provided inadequate food and medical care to the POWs.
In 1943 and 1944, now living in Cabanatuan, Flores dressed as a peasant woman and set up a fruit and vegetable stand near where American POWs worked daily in the rice paddies. The POWs on occasion were allowed to buy bananas and peanuts in the market (POWs were paid a small wage for their labor by the Japanese) and Flores found intermediaries among the POWs to deliver messages to the American camp doctor, Colonel James W. Duckworth, the chaplain, Captain Frank L. Tiffany, and Colonel Edward Mack. She set up a supply line with POWs smuggling food, medicine, clothing, and money into the camp and messages out of the camp to Flores. Other women in the market joined her in the smuggling operation. They hid things in the oxcarts that carried sacks of rice into the camp every day. Flores also persuaded the rice merchants doing business with the Japanese and the POWs to help her. With contributions of money from Filipinos in Manila, Flores subsidized the merchants so that they could sell items to POWs at cheaper prices and in greater quantity. She cashed personal checks for POWs and arranged loans with a promise that they would pay back the loans at the end of the war. Her efforts, and those of many other Filipinos, to get additional food and other supplies into the camp made a life or death difference for POWs. Filipinos also sent many gifts to POWs.
Flores lived in "Mrs. Bell's" house in sight of the rice fields where POWs worked every day. On 3 May 1944, in a prearranged signal, Flores ran a hand through her hair to tell a POW contact, a cart driver named Fred Threatt, that she had a package for him. The signal told him that she had buried something in a place known to both of them beneath a tree. Threatt was caught by the Japanese as he uncovered a buried package of medicine. The arrest of Threatt and other cart drivers shut down the smuggling operation. Flores knew that she was in immediate danger of arrest and fled, taking refuge in a friend's house in the city. She stayed hidden for a month and then made her way into the mountains where she joined Lt. Colonel Bernard Anderson's guerillas for the rest of the war.
Legacy
A.V.H. Hartendorp in his 2-volume history, The Japanese Occupation of the Philippines, credits Naomi Flores with being the catalyst for the Miss U Spy Ring. Two Americans with whom she worked, Peggy Utinsky and Claire Phillips, returned to the United States and achieved fame from books they wrote and movies about their experiences as heroes of the Filipino resistance. Flores was given a job by the Red Cross in Manila. She married an American, John J. Jackson, and moved to San Francisco with him. The couple had four children. In 1948, she was awarded the Medal of Freedom. Her daughter said that she died in 2013. A documentary titled "Looter" was made in 2019 about Flores' exploits during World War II.
Notes
References
Recipients of the Medal of Freedom
1921 births
2013 deaths
Philippine resistance against Japan
World War II Philippine resistance members
Igorot people
People from Baguio
|
Tears We Cannot Stop: A Sermon to White America is a 2017 non-fiction book by Michael Eric Dyson.
Overview
A look into the state of race relations in the United States, delivered as "a hard-hitting sermon on the racial divide, directed specifically to a white congregation."
The book grapples with the social construct of "whiteness" and challenges the readers to "reject the willful denial of history and to live fully in the complicated present with all of the discomfort it brings." Dyson's 'sermon' addresses "five dysfunctional ways that those regarded as white respond when confronted with the reality that whiteness is simultaneously artificial and powerful," as well as "dysfunctional ways that black people sometimes respond to white racism."
Dyson argues that if we are to make real racial progress we must face difficult truths, including being honest about how black grievance has been ignored, dismissed or discounted.
References
External links
Macmillan.com
2017 non-fiction books
English-language books
Books about race and ethnicity
Race in the United States
African-American literature
Works about White Americans
St. Martin's Press books
|
ATRACO FC was a football club from Kigali in Rwanda. It won the Rwandan Premier League in 2008. It was the club of the Association of Transport Companies, which had been dissolved in 2011. The 2009/10 season was the last played by the team, which finished in second place.
Honours
Domestic competitions
Rwandan Premier League: 1
2008
Rwandan Cup: 1
2009
International
Kagame Interclub Cup: 1
2009
Performance in CAF competitions
CAF Champions League: 1 appearance
2009 – Preliminary Round
CAF Confederation Cup: 2 appearances
2007 – First Round of 16
2010 – Preliminary Round
References
Sport in Kigali
Football clubs in Rwanda
|
Ulysses John Lupien Sr. (December 12, 1883 – August 15, 1965) was an American businessman and government official who served as Massachusetts director of civil service and city manager of Lowell, Massachusetts.
Early life
Lupien was born in Cochituate, a neighborhood in Wayland, Massachusetts. His parents were of French Canadian descent and were brought to the United States from Canada when they were infants. He was named "Ulysses" because of his grandfather's admiration for President Ulysses S. Grant. He began working at the age of 14, shoeing mules at the Metropolitan Water Works. After about six months, he was given a job swinging a sledgehammer and was later promoted to a pick and shovel crew. He later worked in construction as a concrete mixer and as a shoe packer for a shoe manufacturing company. Lupien also played semipro baseball while working and attending school.
After graduating from Wayland High School, Lupien attended Harvard College. He worked his way through school as a tutor. While at Harvard, Lupien was unable to play for the school's varsity athletic teams due to his status as a semipro baseball player. He graduated from Harvard in 1906.
After graduating, Lupien worked at the General Electric plant in Lynn, Massachusetts. During World War I, he was in charge of construction at the Bethlehem Sparrows Point Shipyard in Sparrows Point, Maryland. Lupien later worked as a teacher and athletic coach at the Lowell Textile Institute. Courses taught by Lupien included electrical engineering and physics. While he was at the Institute, Lupien also acted as a contractor on the school's construction projects, which included additions to the school and installing a power plant.
Business career
Lupien left the Institute to enter the business world. His first job was as director of industrial relations at Cheney Brothers in Manchester, Connecticut. In 1933, he returned to Massachusetts as the director of public relations for Pacific Mills in Lawrence, Massachusetts. His duties as public relations director included passing on the qualifications of job applicants, which were then divided into between 200 and 250 types of work.
Director of civil service
In 1939, Lupien was appointed to a five-year term as the state director of civil service. The position was created by a revision in the state law which replaced the three-person civil service board with a five-person commission consisting of members of both political parties and a civil service director chosen by the board and approved by the Governor. His duties consisted of appointing examiners, setting up classifications, and judging appeals.
Lupien's appointment was heralded as an end to favoritism in civil service hiring. Lupien considered himself to be a political independent, as he had never voted a straight party line in his life, and his only political experience was on the Chelmsford, Massachusetts school committee more than two decades earlier. He sought to eliminate the practice of job selling in the state civil service and pledged to hire the best person, regardless of race, religion, or political affiliation. He was praised for breathing new life into the civil service system, but was also involved in a number of controversies involving the hiring and firing of employees. One such controversy involved the Lowell School Committee voting to bypass Lupien's recommendation for the position of school attendance officer, a disabled veteran who had scored a 72 on the civil service test, in favor of a woman who had earned a higher score (90), as the committee had asked only for a list of female candidates (the school system already had a male attendance officer and wanted a female officer as there was a majority of female students). He was also criticized by Boston City Councilor Charles I. Taylor for usurping the power of the chief executives of the cities in towns by serving as the final authority on whether or not municipalities needed additional temporary help.
After his term ended, Lupien returned to Pacific Mills as the consulting director of public relations.
Lowell city manager
On November 29, 1952, the Lowell City Council voted five to four to appoint Lupien to the position of city manager. Lupien was elected over City Solicitor P. Harold Ready on the 10th ballot at a special meeting called days before incumbent city manager John J. Flannery was to retire due to ill health. Lupien was sworn in by the city clerk soon after the vote was taken. In September 1953, the Lowell retirement board ruled that Lupien, who would turn 70 in December, must quit by December 31 of that year, citing a provision in the retirement law dealing with employees who began their initial employment with the city after the age of 60. On November 10, 1953, the City Council voted five to three to remove Lupien from office in order to give the next city manager plenty of time to prepare the city's budget for the following year.
After his firing, Lupien campaigned to get his job back. Four city councilors strongly supported him and were ready to rehire him if a fifth councilor was willing to join them. He remained involved in Lowell politics by delivering a weekly "State of the Nation" radio address. On July 24, 1954, Lupien announced his candidacy for the Massachusetts Senate seat in the 1st Middlesex District, which included his hometown of Chelmsford as well as most of Lowell. He faced incumbent Senator Paul A. Achin and former Lowell City Council candidate Joseph N. Herbert. According to Fred A. Simmonds of The Boston Daily Globe, Lupien's candidacy was viewed by some as a test of strength in his effort to return to Lowell politics. Lupien finished second in the primary with 2731 (36%) votes to Achin's 4099 (54%).
Personal life and death
Lupien lived on a small farm in Chelmsford from 1939 until his death. He had four sons, Ulysses John "Tony" Lupien Jr., an athletic standout at Harvard who played professional baseball for the Boston Red Sox, Philadelphia Phillies, Chicago White Sox, and in the Pacific Coast League, Albert J. Lupien, captain of the 1932 Harvard Crimson football team, Theodore A. Lupien, also a varsity athlete at Harvard, and Frank U. Lupien. His great-grandson is wrestler John Cena, and his great-granddaughter is computer scientist Natalie Enright Jerger.
Lupien died on August 15, 1965, at the Willow Nursing Home in Lowell. He was 81 years old.
References
External links
1883 births
1965 deaths
American people of French-Canadian descent
Businesspeople in textiles
City managers of Lowell, Massachusetts
Harvard College alumni
Lowell Textile Millmen football coaches
People from Chelmsford, Massachusetts
People from Wayland, Massachusetts
|
```xml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:local="clr-namespace:Xamarin.Forms.Controls.GalleryPages.CollectionViewGalleries;assembly=Xamarin.Forms.Controls"
x:Class="Xamarin.Forms.Controls.GalleryPages.CollectionViewGalleries.DataTemplateSelectorGallery">
<ContentPage.Resources>
<ResourceDictionary>
<DataTemplate x:Key="DefaultTemplate">
<Grid HeightRequest="50">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Image Source="coffee.png" AutomationId="weekday"/>
<Label Grid.Row="1" Text="{Binding Date, StringFormat='{}{0:dddd}'}"></Label>
</Grid>
</DataTemplate>
<DataTemplate x:Key="WeekendTemplate">
<Grid HeightRequest="50">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Image Source="oasis.jpg" AutomationId="weekend"/>
<Label Grid.Row="1" Text="It's the weekend! Woot!"></Label>
</Grid>
</DataTemplate>
<DataTemplate x:Key="EmptyTemplate">
<StackLayout>
<Label Text="{Binding ., StringFormat='({0}) does not match any day of the week.'}"></Label>
</StackLayout>
</DataTemplate>
<DataTemplate x:Key="SymbolsTemplate">
<StackLayout BackgroundColor="Red">
<Label Text="{Binding ., StringFormat='({0}) _definitely_ does not match any day of the week.'}"></Label>
</StackLayout>
</DataTemplate>
<local:WeekendSelector x:Key="WeekendSelector"
DefaultTemplate="{StaticResource DefaultTemplate}"
FridayTemplate="{StaticResource WeekendTemplate}" />
<local:SearchTermSelector x:Key="SearchTermSelector"
DefaultTemplate="{StaticResource EmptyTemplate}"
SymbolsTemplate="{StaticResource SymbolsTemplate}" />
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content>
<StackLayout>
<SearchBar x:Name="SearchBar" Placeholder="Day of Week Filter" />
<CollectionView x:Name="CollectionView" ItemTemplate="{StaticResource WeekendSelector}"
EmptyViewTemplate="{StaticResource SearchTermSelector}"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
```
|
The 58th Regiment Massachusetts Volunteer Infantry was an infantry regiment that served in the Union Army during the American Civil War. It was one of the four Massachusetts "Veteran Regiments" raised in the winter of 1863–64. Recruits of these regiments were required to have served at least nine months in a prior unit. The regiment was attached to the IX Corps of the Army of the Potomac and took part in Lieutenant General Ulysses S. Grant's Overland Campaign in the spring of 1864. They were in heavy combat during the campaign, suffering casualties during engagements which included the Battle of the Wilderness, Spotsylvania Courthouse, and the Battle of the Crater. They were also involved in several assaults during the Siege of Petersburg.
Service
Organized at Reedville April 25, 1864. Moved to Alexandria, Va., April 28-30. Attached to 1st Brigade, 2nd Division, 9th Army Corps, Army of the Potomac, to July, 1865.
Detailed History
The 58th Regiment Mass. Vol. Inf. the Third Veteran Regiment, was organized at Readville, Mass., the first eight companies being mustered into the service between Jan. 14 and April 18, 1864. The conditions of enlistment were the same as those in the other veteran regiments. The regiment, consisting at this time of only eight companies, the organization of Companies "I" and "K" not having yet been completed, left the State April 28, 1864, under the command of Lieut. Col. John C. Whiton, formerly lieutenant colonel of the 43rd Regiment Mass. Volunteer Militia , and reached Alexandria, Va., Saturday, April 30. Here it took train May 2 for Bristoe Station, arriving that evening. At Bristoe it was assigned to Bliss' (1st) Brigade, Potter's (2nd) Division, Burnside's (9th) Corps, the 36th Massachusetts being in the same brigade. On May 4 the forward movement of the Army of the Potomac and of the 9th Corps began. That night the 58th reached a position near the Rappahannock River and there bivouacked. The following day it crossed this river and marched to and crossed the Rapidan at Germanna Ford, the sounds of the battle which began that day continually increasing as they advanced. On the forenoon of May 6 the 2nd and 3rd Divisions of the 9th Corps went into action in the woods south of the Wilderness Tavern, attempting to close the gap between the right of the 2nd and the left of the 5th Corps. In the afternoon, on the banks of a swampy ravine, the 58th was heavily engaged, losing seven killed, 23 wounded, and four missing. Following the flank movement to Spotsylvania, on the 12th of May the regiment joined in an assault on Hill's Corps, meeting stubborn resistance, and losing 13 killed, 90 wounded, and two missing. Among the killed were Captain Harley and Adjutant Ogden. In further skirmishing near Spotsylvania the regiment lost three killed and six wounded. At the North Anna River, May 24, the 58th was not heavily engaged, and in the fighting near the Totopotomoy about the last of the month but slight loss was suffered by the regiment. On the morning of June 3, 1864, the 9th Corps being on the right, near Bethesda Church, the 58th joined in the general assault, losing 18 killed and 67 wounded. Among the dead were Maj. Barnabas Ewer, Capt. Charles M. Upham, and Capt. Thomas McFarland. From this time until the 12th the regiment lost two killed, 12 wounded, and 16 missing. While the Cold Harbor operations were in progress, the regiment was joined by its ninth company, " I ", the muster in of which was not completed until May 13. Crossing the James River, June 15, on the 17th the 58th joined in the assault on the lines east of Petersburg, losing two killed, 22 wounded, and one missing. Between this time and July 30 it was engaged in trench duty, losing five killed and nine wounded. On July 30 came the Battle of the "Crater" near Petersburg. The tunnel under the salient had been made by soldiers of the 48th Pennsylvania which was in the same brigade with the 58th Massachusetts. The 58th was one of the regiments which charged into the "Crater" and beyond it, but was later driven back, losing Lieutenant Granet and four men killed, 30 wounded, and 84 prisoners. After this fight it remained in the trenches until the latter part of September. At Poplar Grove Church, south of Petersburg, the regiment was engaged Sept. 30, losing a large number of prisoners, the entire loss being two killed, 10 wounded, and 99 captured. Only about a dozen members of the command escaped. The winter of 1864-65 was spent by the 58th in Fort Meikle, and was without notable event. Its members were augmented by the return of convalescents, the arrival of recruits, and finally, on Feb. 20, 1865, by the arrival of Co. "K", the organization and muster of which had not been completed until Jan. 26, 1865. The 58th joined in the general assault on Petersburg, April 2, 1865, making a lodgment in the Confederate works just west of Fort Mahone, and losing five killed, 17 wounded, and 14 prisoners. After the fall of Petersburg, April 3, the regiment proceeded along the Southside Railroad as far as Burkeville Junction, being at this place at the time of the surrender of Lee. From here it moved to Farmville, where it remained ten days guarding the railroad. On April 20 it began its return march to City Point, arriving on the 24th. Embarking on the 26th, it reached Washington two days later. Here it was occupied in guard and camp duty until July 15, participating meanwhile in the Grand Review of the Army of the Potomac, May 23. The regiment was mustered out July 14, and on the following day took transportation for home. Arriving at Readville, July 18, on the 26th its members were paid off and discharged.
Casualties
The regiment lost 139 men killed in action and mortally wounded as well as 156 who died of disease for a total of 295 men who died during service.
See also
List of Massachusetts Civil War units
Massachusetts in the Civil War
Notes
References
External links
The Civil War in the East: 58th Massachusetts
The Siege of Petersburg Online: 58th Massachusetts Infantry
NPS, Battle Unit Details: 58th Regiment, Massachusetts Infantry
Civil War Index: 58th Massachusetts Infantry in the Civil War
Units and formations of the Union Army from Massachusetts
1864 establishments in Massachusetts
Military units and formations established in 1864
Military units and formations disestablished in 1865
|
Namissiguima is a department or commune of Yatenga Province in northern Burkina Faso. Its capital lies at the town of Namissiguima.
Towns and villages
Loungue
References
Departments of Burkina Faso
Yatenga Province
|
Didam may refer to:
People
Musa Didam (1933–2018), former District Head of the Fantswam (Kafanchan Kewaye)
Wilhelm Schneider-Didam (1869–1923), German portrait painter
Places
Didam, town in the Netherlands
Didam railway station, located in Didam, Netherlands
Didam Open, was a darts tournament in Didam, Netherlands
|
```c
typedef unsigned long int st;
typedef unsigned long long dt;
typedef union
{
dt d;
struct
{
st h, l;
}
s;
} t_be;
typedef union
{
dt d;
struct
{
st l, h;
}
s;
} t_le;
#define df(f, t) \
int \
f (t afh, t bfh) \
{ \
t hh; \
t hp, lp, dp, m; \
st ad, bd; \
int s; \
s = 0; \
ad = afh.s.h - afh.s.l; \
bd = bfh.s.l - bfh.s.h; \
if (bd > bfh.s.l) \
{ \
bd = -bd; \
s = ~s; \
} \
lp.d = (dt) afh.s.l * bfh.s.l; \
hp.d = (dt) afh.s.h * bfh.s.h; \
dp.d = (dt) ad *bd; \
dp.d ^= s; \
hh.d = hp.d + hp.s.h + lp.s.h + dp.s.h; \
m.d = (dt) lp.s.h + hp.s.l + lp.s.l + dp.s.l; \
return hh.s.l + m.s.l; \
}
df(f_le, t_le)
df(f_be, t_be)
main ()
{
t_be x;
x.s.h = 0x10000000U;
x.s.l = 0xe0000000U;
if (x.d == 0x10000000e0000000ULL
&& f_be ((t_be) 0x100000000ULL, (t_be) 0x100000000ULL) != -1)
abort ();
if (x.d == 0xe000000010000000ULL
&& f_le ((t_le) 0x100000000ULL, (t_le) 0x100000000ULL) != -1)
abort ();
exit (0);
}
```
|
```xml
export type MeasuredValues = 'actualTime' | 'renderComponentTime' | 'componentCount';
export type ProfilerMeasure = { [key in MeasuredValues]: number } & {
exampleIndex: number;
phase: string;
startTime: number;
commitTime: number;
componentCount: number;
renderComponentTime: number;
};
export type ProfilerMeasureCycle = Record<string, ProfilerMeasure>;
export type PerExamplePerfMeasures = Record<string, Record<MeasuredValues, ReducedMeasures>>;
export type ReducedMeasures = {
avg: number;
median: number;
min: number;
max: number;
values: {
exampleIndex: number;
value: number;
}[];
};
```
|
```xml
/*
* @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.
*/
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { Collection } from '@stdlib/types/array';
import { typedndarray } from '@stdlib/types/ndarray';
/**
* Callback invoked for each array element.
*
* @returns result
*/
type Nullary<U, V> = ( this: V ) => U;
/**
* Callback invoked for each array element.
*
* @param value - array element
* @returns result
*/
type Unary<T, U, V> = ( this: V, value: T ) => U;
/**
* Callback invoked for each array element.
*
* @param value - array element
* @param index - element index
* @returns result
*/
type Binary<T, U, V> = ( this: V, value: T, index: number ) => U;
/**
* Callback invoked for each array element.
*
* @param value - array element
* @param index - element index
* @param arr - array
* @returns result
*/
type Ternary<T, U, V> = ( this: V, value: T, index: number, arr: typedndarray<T> ) => U;
/**
* Callback invoked for each array element.
*
* @param value - array element
* @param index - element index
* @param arr - array
* @returns result
*/
type ArrayTernary<T, U, V> = ( this: V, value: T, index: number, arr: Collection<T> ) => U;
/**
* Callback invoked for each array element.
*
* @param value - array element
* @param index - element index
* @param arr - array
* @returns result
*/
type Callback<T, U, V> = Nullary<U, V> | Unary<T, U, V> | Binary<T, U, V> | Ternary<T, U, V>;
/**
* Callback invoked for each array element.
*
* @param value - array element
* @param index - element index
* @param arr - array
* @returns result
*/
type ArrayCallback<T, U, V> = Nullary<U, V> | Unary<T, U, V> | Binary<T, U, V> | ArrayTernary<T, U, V>;
/**
* Interface describing the main export.
*/
interface Routine {
// NOTE: signature order matters here, as an ndarray is an array-like object...
/**
* Applies a function to each element in an array and assigns the result to an element in a new array.
*
* ## Notes
*
* - The applied function is provided the following arguments:
*
* - **value**: array element.
* - **index**: element index.
* - **arr**: input array.
*
* @param arr - input array
* @param fcn - function to apply
* @param thisArg - input function context
* @returns output array
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
* var array = require( '@stdlib/ndarray/array' );
*
* var opts = {
* 'dtype': 'generic'
* };
* var arr = array( [ [ -1, -2, -3 ], [ -4, -5, -6 ] ], opts );
*
* var out = map( arr, naryFunction( abs, 1 ) );
* // returns <ndarray>
*
* var data = out.data;
* // returns [ 1, 2, 3, 4, 5, 6 ]
*/
<T = unknown, U = unknown, V = unknown>( arr: typedndarray<T>, fcn: Callback<T, U, V>, thisArg?: ThisParameterType<Callback<T, U, V>> ): typedndarray<U>;
/**
* Applies a function to each element in an array and assigns the result to an element in a new array.
*
* ## Notes
*
* - The applied function is provided the following arguments:
*
* - **value**: array element.
* - **index**: element index.
* - **arr**: input array.
*
* @param arr - input array
* @param fcn - function to apply
* @param thisArg - input function context
* @returns output array
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
*
* var arr = [ -1, -2, -3, -4, -5, -6 ];
*
* var out = map( arr, naryFunction( abs, 1 ) );
* // returns [ 1, 2, 3, 4, 5, 6 ]
*/
<T = unknown, U = unknown, V = unknown>( arr: Collection<T>, fcn: ArrayCallback<T, U, V>, thisArg?: ThisParameterType<ArrayCallback<T, U, V>> ): Array<U>;
/**
* Applies a function to each element in an array and assigns the result to an element in an output array.
*
* ## Notes
*
* - The applied function is provided the following arguments:
*
* - **value**: array element.
* - **index**: element index.
* - **arr**: input array.
*
* @param arr - input array
* @param out - output array
* @param fcn - function to apply
* @param thisArg - input function context
* @returns output array
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
* var array = require( '@stdlib/ndarray/array' );
*
* var opts = {
* 'dtype': 'generic',
* 'shape': [ 2, 3 ]
* };
* var arr = array( [ [ -1, -2, -3 ], [ -4, -5, -6 ] ], opts );
* var out = array( opts );
*
* map.assign( arr, out, naryFunction( abs, 1 ) );
*
* var data = out.data;
* // returns [ 1, 2, 3, 4, 5, 6 ]
*/
assign<T = unknown, U = unknown, V = unknown>( arr: typedndarray<T>, out: typedndarray<U>, fcn: Callback<T, U, V>, thisArg?: ThisParameterType<Callback<T, U, V>> ): typedndarray<U>;
/**
* Applies a function to each element in an array and assigns the result to an element in an output array.
*
* ## Notes
*
* - The applied function is provided the following arguments:
*
* - **value**: array element.
* - **index**: element index.
* - **arr**: input array.
*
* @param arr - input array
* @param out - output array
* @param fcn - function to apply
* @param thisArg - input function context
* @returns output array
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
*
* var arr = [ -1, -2, -3, -4, -5, -6 ];
* var out = [ 0, 0, 0, 0, 0, 0 ];
*
* map.assign( arr, out, naryFunction( abs, 1 ) );
*
* console.log( out );
* // => [ 1, 2, 3, 4, 5, 6 ]
*/
assign<T = unknown, U = unknown, V = unknown>( arr: Collection<T>, out: Collection<U>, fcn: ArrayCallback<T, U, V>, thisArg?: ThisParameterType<Callback<T, U, V>> ): Collection<U>;
}
/**
* Applies a function to each element in an array and assigns the result to an element in a new array.
*
* ## Notes
*
* - The applied function is provided the following arguments:
*
* - **value**: array element.
* - **index**: element index.
* - **arr**: input array.
*
* @param arr - input array
* @param fcn - function to apply
* @param thisArg - input function context
* @returns output array
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
*
* var arr = [ -1, -2, -3, -4, -5, -6 ];
*
* var out = map( arr, naryFunction( abs, 1 ) );
* // returns [ 1, 2, 3, 4, 5, 6 ]
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
* var array = require( '@stdlib/ndarray/array' );
*
* var opts = {
* 'dtype': 'generic'
* };
* var arr = array( [ [ -1, -2, -3 ], [ -4, -5, -6 ] ], opts );
*
* var out = map( arr, naryFunction( abs, 1 ) );
* // returns <ndarray>
*
* var data = out.data;
* // returns [ 1, 2, 3, 4, 5, 6 ]
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
*
* var arr = [ -1, -2, -3, -4, -5, -6 ];
* var out = [ 0, 0, 0, 0, 0, 0 ];
*
* map.assign( arr, out, naryFunction( abs, 1 ) );
*
* console.log( out );
* // => [ 1, 2, 3, 4, 5, 6 ]
*
* @example
* var naryFunction = require( '@stdlib/utils/nary-function' );
* var abs = require( '@stdlib/math/base/special/abs' );
* var array = require( '@stdlib/ndarray/array' );
*
* var opts = {
* 'dtype': 'generic',
* 'shape': [ 2, 3 ]
* };
* var arr = array( [ [ -1, -2, -3 ], [ -4, -5, -6 ] ], opts );
* var out = array( opts );
*
* map.assign( arr, out, naryFunction( abs, 1 ) );
*
* var data = out.data;
* // returns [ 1, 2, 3, 4, 5, 6 ]
*/
declare var map: Routine;
// EXPORTS //
export = map;
```
|
Bungu may refer to:
Languages
Bungu language, a Bantu language spoken by the Bungu people in Tanzania
Bongo language, a Nilo-Saharan language spoken in South Sudan
People
Vuyani Bungu (born 1967), a South African boxer
Bungu Nkwenkwe, husband of Xhosa prophetess Nontetha Nkwenkwe
Places
Bungu County, a county of Jubek State in Sudan
Bungu, a village in Bogoro, Bauchi State, Nigeria
Bungu, a ward in Korogwe District, Tanzania
Bungu, a village in Rufiji District, Tanzania
Bungu Owiny, ruins of the Jo k'Owiny Luo peoples near Lake Kanyaboli, Kenya
Vungu, a historic kingdom on the Congo River, also spelled Bungu
Other uses
Bungu people, of Tanzania
Poso bungu, a species of fish
Ceratotheca sesamoides or false sesame, known as bungu in Nigeria
Hagoromo Bungu, a Japanese office supply company
See also
Bungus (disambiguation)
|
Timothy Field Allen ( – ) was an American physician and botanist.
Timothy Field Allen was born on in Westminster, Vermont. He graduated A. B. at Amherst College in 1858, and subsequently received the degree of A. M. from the same institution. He graduated M. D. in 1861 at the University of the City of New York and in the same year commenced practice at Brooklyn, N. Y. In 1862 he was an acting assistant surgeon in the United States Army, and in the following year established himself in New York City, which remained the field of his labors for nearly forty years. Becoming associated professionally with Dr. Carroll Dunham, he early adopted homeopathy, and soon rose to a prominent position among homeopathic practitioners.
In 1865 he received the degree of M.D. from the Homeopathic (Hahnemann) Medical College, of Philadelphia; two years later he became professor of materia medica in the New York Homeopathic College, and from 1882 was its dean. For many years he was surgeon to the New York Ophthalmic Hospital, and was largely instrumental in the establishment of the Laura Franklin Free Hospital for Children and the Flower Hospital, in New York City. He was one of the editors of the New York Journal of Homeopathy, 1873–75, and later edited an Encyclopedia of Pure Materia Medica in ten volumes, 1875–79; he was also the author of A Handbook of Materia Medica and Homeopathic Therapeutics, published at Philadelphia in 1879.
Early in his career he became a botanical enthusiast, and maintained his interest in this branch of scientific study in spite of his arduous professional work. He was one of the founders and curator of the Torrey Botanical Club; indeed, he is commonly credited with having been the first to suggest the organization of the Club under the name of New York Botanical Club, now one of the strongest scientific societies of New York City. He was the first to occupy the office of vice-president in the Club, and was re-elected annually until his death nearly thirty years later. Most of his contributions to botanical periodical literature appeared in the Bulletin of the Torrey Botanical Club, although there were several in other magazines, notably one in the American Naturalist for May, 1882.
As a scientist, Allen was best known for his work upon the Characeae. This difficult group of algae has attracted but few botanists, and for many years he was almost the only American student of these plants. His most important printed contribution to this subject was "The Characeae of America," issued in parts from 1888 to 1896. His "Contributions to Japanese Characeae," first printed in instalments in the Bulletin of the Torrey Botanical Club from 1894 to 1898, also appeared separately in pamphlet form. Both of these works were illustrated by beautiful plates by Evelyn Hunter Nordhoff. By correspondence, by exchange, by purchase, and by paying the expenses of collectors in North America, South America, and Japan, Allen brought together one of the finest accumulations of specimens and books relating to the Characeae in existence; all these he presented to the New York Botanical Garden the year before his death, when failing health made it impossible for him to study them further. His botanical work was by no means confined entirely to the Characeae; several species of plants, named in his honor, bear witness to the breadth of his interest in botany, as the grass Danthonia Alleni, Austin; Erigonum Alleni, S. Watson; Kneiffia Alleni (Button), Small.
Dr. Allen married, June 3, 1862, Julia Bissell, of Litchfield, Connecticut. They had six children, one of whom became a physician in New York City.
Timothy Field Allen died on 5 December 1902 in New York City.
References
Created via preloaddraft
1837 births
1902 deaths
American botanists
|
```java
package wangdaye.com.geometricweather.weather.services;
import android.content.Context;
import androidx.annotation.NonNull;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import io.reactivex.Observable;
import io.reactivex.disposables.CompositeDisposable;
import wangdaye.com.geometricweather.common.basic.models.Location;
import wangdaye.com.geometricweather.common.rxjava.BaseObserver;
import wangdaye.com.geometricweather.common.rxjava.ObserverContainer;
import wangdaye.com.geometricweather.common.rxjava.SchedulerTransformer;
import wangdaye.com.geometricweather.settings.SettingsManager;
import wangdaye.com.geometricweather.weather.apis.OwmApi;
import wangdaye.com.geometricweather.weather.converters.OwmResultConverter;
import wangdaye.com.geometricweather.weather.json.owm.OwmAirPollutionResult;
import wangdaye.com.geometricweather.weather.json.owm.OwmLocationResult;
import wangdaye.com.geometricweather.weather.json.owm.OwmOneCallResult;
/**
* Owm weather service.
*/
public class OwmWeatherService extends WeatherService {
private final OwmApi mApi;
private final CompositeDisposable mCompositeDisposable;
private static class EmptyAqiResult extends OwmAirPollutionResult {
}
@Inject
public OwmWeatherService(OwmApi api, CompositeDisposable disposable) {
mApi = api;
mCompositeDisposable = disposable;
}
@Override
public void requestWeather(Context context, Location location, @NonNull RequestWeatherCallback callback) {
String languageCode = SettingsManager.getInstance(context).getLanguage().getCode();
Observable<OwmOneCallResult> oneCall = mApi.getOneCall(
SettingsManager.getInstance(context).getProviderOwmKey(), location.getLatitude(), location.getLongitude(), "metric", languageCode);
Observable<OwmAirPollutionResult> airPollutionCurrent = mApi.getAirPollutionCurrent(
SettingsManager.getInstance(context).getProviderOwmKey(), location.getLatitude(), location.getLongitude()
).onExceptionResumeNext(
Observable.create(emitter -> emitter.onNext(new EmptyAqiResult()))
);
Observable<OwmAirPollutionResult> airPollutionForecast = mApi.getAirPollutionForecast(
SettingsManager.getInstance(context).getProviderOwmKey(), location.getLatitude(), location.getLongitude()
).onExceptionResumeNext(
Observable.create(emitter -> emitter.onNext(new EmptyAqiResult()))
);
Observable.zip(oneCall, airPollutionCurrent, airPollutionForecast,
(owmOneCallResult, owmAirPollutionCurrentResult, owmAirPollutionForecastResult) -> OwmResultConverter.convert(
context,
location,
owmOneCallResult,
owmAirPollutionCurrentResult instanceof EmptyAqiResult ? null : owmAirPollutionCurrentResult,
owmAirPollutionForecastResult instanceof EmptyAqiResult ? null : owmAirPollutionForecastResult
)
).compose(SchedulerTransformer.create())
.subscribe(new ObserverContainer<>(mCompositeDisposable, new BaseObserver<WeatherResultWrapper>() {
@Override
public void onSucceed(WeatherResultWrapper wrapper) {
if (wrapper.result != null) {
callback.requestWeatherSuccess(
Location.copy(location, wrapper.result)
);
} else {
onFailed();
}
}
@Override
public void onFailed() {
callback.requestWeatherFailed(location);
}
}));
}
@Override
@NonNull
public List<Location> requestLocation(Context context, String query) {
List<OwmLocationResult> resultList = null;
try {
resultList = mApi.callWeatherLocation(SettingsManager.getInstance(context).getProviderOwmKey(), query).execute().body();
} catch (IOException e) {
e.printStackTrace();
}
String zipCode = query.matches("[a-zA-Z0-9]*") ? query : null;
List<Location> locationList = new ArrayList<>();
if (resultList != null && resultList.size() != 0) {
for (OwmLocationResult r : resultList) {
locationList.add(OwmResultConverter.convert(null, r, zipCode));
}
}
return locationList;
}
@Override
public void requestLocation(Context context, Location location,
@NonNull RequestLocationCallback callback) {
mApi.getWeatherLocationByGeoPosition(
SettingsManager.getInstance(context).getProviderOwmKey(), location.getLatitude(), location.getLongitude()
).compose(SchedulerTransformer.create())
.subscribe(new ObserverContainer<>(mCompositeDisposable, new BaseObserver<List<OwmLocationResult>>() {
@Override
public void onSucceed(List<OwmLocationResult> owmLocationResultList) {
if (owmLocationResultList != null && !owmLocationResultList.isEmpty()) {
List<Location> locationList = new ArrayList<>();
locationList.add(OwmResultConverter.convert(location, owmLocationResultList.get(0), null));
callback.requestLocationSuccess(
location.getLatitude() + "," + location.getLongitude(), locationList);
} else {
onFailed();
}
}
@Override
public void onFailed() {
callback.requestLocationFailed(
location.getLatitude() + "," + location.getLongitude());
}
}));
}
public void requestLocation(Context context, String query,
@NonNull RequestLocationCallback callback) {
String zipCode = query.matches("[a-zA-Z0-9]") ? query : null;
mApi.getWeatherLocation(SettingsManager.getInstance(context).getProviderOwmKey(), query)
.compose(SchedulerTransformer.create())
.subscribe(new ObserverContainer<>(mCompositeDisposable, new BaseObserver<List<OwmLocationResult>>() {
@Override
public void onSucceed(List<OwmLocationResult> owmLocationResults) {
if (owmLocationResults != null && owmLocationResults.size() != 0) {
List<Location> locationList = new ArrayList<>();
for (OwmLocationResult r : owmLocationResults) {
locationList.add(OwmResultConverter.convert(null, r, zipCode));
}
callback.requestLocationSuccess(query, locationList);
} else {
callback.requestLocationFailed(query);
}
}
@Override
public void onFailed() {
callback.requestLocationFailed(query);
}
}));
}
@Override
public void cancel() {
mCompositeDisposable.clear();
}
}
```
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\CloudRetail;
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRetailV2betaRemoveLocalInventoriesResponse::class, your_sha256_hashentoriesResponse');
```
|
William Dell Perley (February 6, 1838 – July 15, 1909) was a farmer and politician from western Canada.
William had an extensive political career, he ran at least twice for the House of Commons of Canada in Sunbury electoral district as a Conservative being defeated both times in 1878 and 1882 in hotly contested and very close elections.
He moved out west to the Regina area in the Northwest Territories and ran for the Legislative Assembly of Northwest Territories in the brand new Qu'Appelle electoral district in the 1885 Northwest Territories election and won the second of two seats in the district.
He resigned his territorial seat two years prior to running in the 1887 Canadian federal election when he won one of the first Northwest Territories seats in the House of Commons of Canada.
Perley served in the House of Commons for a year before being appointed to the Senate of Canada on the advice of John A. Macdonald. He served as a Senator for the Northwest Territories, and then the province of Saskatchewan after it was created in 1905.
He died while still in office in 1909.
His son, Ernest Perley, would also become a parliamentarian.
External links
Members of the Legislative Assembly of the Northwest Territories
Members of the House of Commons of Canada from the Northwest Territories
Canadian senators from the Northwest Territories
1838 births
1909 deaths
|
Prince Louis Thomas of Savoy (; Italian: Luigi Tommaso di Savoia; 15 December 1657 – 14 August 1702) was a Count of Soissons and Prince of Savoy. He was killed as Feldzeugmeister of the Imperial Army at the Siege of Landau at the start of the War of the Spanish Succession.
Biography
Louis Thomas was the eldest son of Eugene Maurice, Count of Soissons and Olympia Mancini, as well as the oldest brother of Prince Eugene of Savoy. He married Uranie de La Cropte de Beauvais, whom Saint-Simon had once described as "radiant as the glorious morn". His daughter Princess Maria Anna Victoria of Savoy eventually inherited Eugene's estate. His maternal cousins included the Duke of Vendôme as well as the Duke of Bouillon and Louis Henri de La Tour d'Auvergne. His paternal cousins included Victor Amadeus I, Prince of Carignano and Louis William, Margrave of Baden-Baden.
After the death of his father and the flight of his mother to Brussels due to her involvement in the notorious Poison affair, Louis Thomas and Urania were charged, along with his paternal grandmother, with the rearing of his younger brothers. Eugene was never to forget the couple's loving surrogate parentage.
Louis Thomas obtained a commission as an officer in the French Army, but Louis XIV had amorous designs on his wife. Urania, however, spurned the king's romantic advances. Angered, Louis dismissed Louis Thomas from the army, and, when Louis Thomas sought a position abroad, terminated his pension and dues. In 1699, all but bankrupt, Louis Thomas sought the aid of his younger brother, Eugene, in Vienna. With Eugene's help, he obtained a commission in the Austrian Imperial Army.
On 18 August Louis was killed by a French bomb at the Siege of Landau at the onset of the War of the Spanish Succession.
Issue
Princess Maria Anna Victoria of Savoy (1683–1763), Mademoiselle de Soissons; married Prince Joseph of Saxe-Hildburghausen, Duke in Saxony, son of Ernest, Duke of Saxe-Hildburghausen; had no issue.
Prince Louis Thomas of Savoy (1685–1695)
Princess Thérèse Anne Louise of Savoy (1686–1736); never married and had no issue.
Prince Emmanuel Thomas of Savoy (1687–1729); succeeded as Count of Soissons. He married Princess Maria Theresia of Liechtenstein and had issue.
Prince Maurice of Savoy (1690–1710)
Prince Eugene of Savoy (1692–1712)
Ancestry
References
1657 births
1702 deaths
Louis Thomas
Counts of Soissons
Italian military personnel
Burials at the Basilica of Superga
Candidates for the Polish elective throne
Place of birth unknown
Dukes of Carignan
|
```javascript
import React from 'react';
import * as styles from './styled';
function Home() {
return (
<section>
<p className={styles.paragraphClass}>
Welcome to the <strong>React Server Starter-kyt</strong>. This starter kyt should serve as
the base for an server-rendered React app.
</p>
<p className={styles.paragraphClass}>
Check out the Tools section for an outline of the libraries that are used in this
Starter-kyt.
</p>
</section>
);
}
export default Home;
```
|
```c
/*
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at your option, one of the above-listed licenses.
*/
#include <assert.h>
#include <getopt.h>
#include <stdio.h>
#include <string.h>
#include "config.h"
#include "data.h"
#include "method.h"
static int g_max_name_len = 0;
/** Check if a name contains a comma or is too long. */
static int is_name_bad(char const* name) {
if (name == NULL)
return 1;
int const len = strlen(name);
if (len > g_max_name_len)
g_max_name_len = len;
for (; *name != '\0'; ++name)
if (*name == ',')
return 1;
return 0;
}
/** Check if any of the names contain a comma. */
static int are_names_bad() {
for (size_t method = 0; methods[method] != NULL; ++method)
if (is_name_bad(methods[method]->name)) {
fprintf(stderr, "method name %s is bad\n", methods[method]->name);
return 1;
}
for (size_t datum = 0; data[datum] != NULL; ++datum)
if (is_name_bad(data[datum]->name)) {
fprintf(stderr, "data name %s is bad\n", data[datum]->name);
return 1;
}
for (size_t config = 0; configs[config] != NULL; ++config)
if (is_name_bad(configs[config]->name)) {
fprintf(stderr, "config name %s is bad\n", configs[config]->name);
return 1;
}
return 0;
}
/**
* Option parsing using getopt.
* When you add a new option update: long_options, long_extras, and
* short_options.
*/
/** Option variables filled by parse_args. */
static char const* g_output = NULL;
static char const* g_diff = NULL;
static char const* g_cache = NULL;
static char const* g_zstdcli = NULL;
static char const* g_config = NULL;
static char const* g_data = NULL;
static char const* g_method = NULL;
typedef enum {
required_option,
optional_option,
help_option,
} option_type;
/**
* Extra state that we need to keep per-option that we can't store in getopt.
*/
struct option_extra {
int id; /**< The short option name, used as an id. */
char const* help; /**< The help message. */
option_type opt_type; /**< The option type: required, optional, or help. */
char const** value; /**< The value to set or NULL if no_argument. */
};
/** The options. */
static struct option long_options[] = {
{"cache", required_argument, NULL, 'c'},
{"output", required_argument, NULL, 'o'},
{"zstd", required_argument, NULL, 'z'},
{"config", required_argument, NULL, 128},
{"data", required_argument, NULL, 129},
{"method", required_argument, NULL, 130},
{"diff", required_argument, NULL, 'd'},
{"help", no_argument, NULL, 'h'},
};
static size_t const nargs = sizeof(long_options) / sizeof(long_options[0]);
/** The extra info for the options. Must be in the same order as the options. */
static struct option_extra long_extras[] = {
{'c', "the cache directory", required_option, &g_cache},
{'o', "write the results here", required_option, &g_output},
{'z', "zstd cli tool", required_option, &g_zstdcli},
{128, "use this config", optional_option, &g_config},
{129, "use this data", optional_option, &g_data},
{130, "use this method", optional_option, &g_method},
{'d', "compare the results to this file", optional_option, &g_diff},
{'h', "display this message", help_option, NULL},
};
/** The short options. Must correspond to the options. */
static char const short_options[] = "c:d:ho:z:";
/** Return the help string for the option type. */
static char const* required_message(option_type opt_type) {
switch (opt_type) {
case required_option:
return "[required]";
case optional_option:
return "[optional]";
case help_option:
return "";
default:
assert(0);
return NULL;
}
}
/** Print the help for the program. */
static void print_help(void) {
fprintf(stderr, "regression test runner\n");
size_t const nargs = sizeof(long_options) / sizeof(long_options[0]);
for (size_t i = 0; i < nargs; ++i) {
if (long_options[i].val < 128) {
/* Long / short - help [option type] */
fprintf(
stderr,
"--%s / -%c \t- %s %s\n",
long_options[i].name,
long_options[i].val,
long_extras[i].help,
required_message(long_extras[i].opt_type));
} else {
/* Short / long - help [option type] */
fprintf(
stderr,
"--%s \t- %s %s\n",
long_options[i].name,
long_extras[i].help,
required_message(long_extras[i].opt_type));
}
}
}
/** Parse the arguments. Teturn 0 on success. Print help on failure. */
static int parse_args(int argc, char** argv) {
int option_index = 0;
int c;
while (1) {
c = getopt_long(argc, argv, short_options, long_options, &option_index);
if (c == -1)
break;
int found = 0;
for (size_t i = 0; i < nargs; ++i) {
if (c == long_extras[i].id && long_extras[i].value != NULL) {
*long_extras[i].value = optarg;
found = 1;
break;
}
}
if (found)
continue;
switch (c) {
case 'h':
case '?':
default:
print_help();
return 1;
}
}
int bad = 0;
for (size_t i = 0; i < nargs; ++i) {
if (long_extras[i].opt_type != required_option)
continue;
if (long_extras[i].value == NULL)
continue;
if (*long_extras[i].value != NULL)
continue;
fprintf(
stderr,
"--%s is a required argument but is not set\n",
long_options[i].name);
bad = 1;
}
if (bad) {
fprintf(stderr, "\n");
print_help();
return 1;
}
return 0;
}
/** Helper macro to print to stderr and a file. */
#define tprintf(file, ...) \
do { \
fprintf(file, __VA_ARGS__); \
fprintf(stderr, __VA_ARGS__); \
} while (0)
/** Helper macro to flush stderr and a file. */
#define tflush(file) \
do { \
fflush(file); \
fflush(stderr); \
} while (0)
void tprint_names(
FILE* results,
char const* data_name,
char const* config_name,
char const* method_name) {
int const data_padding = g_max_name_len - strlen(data_name);
int const config_padding = g_max_name_len - strlen(config_name);
int const method_padding = g_max_name_len - strlen(method_name);
tprintf(
results,
"%s, %*s%s, %*s%s, %*s",
data_name,
data_padding,
"",
config_name,
config_padding,
"",
method_name,
method_padding,
"");
}
/**
* Run all the regression tests and record the results table to results and
* stderr progressively.
*/
static int run_all(FILE* results) {
tprint_names(results, "Data", "Config", "Method");
tprintf(results, "Total compressed size\n");
for (size_t method = 0; methods[method] != NULL; ++method) {
if (g_method != NULL && strcmp(methods[method]->name, g_method))
continue;
for (size_t datum = 0; data[datum] != NULL; ++datum) {
if (g_data != NULL && strcmp(data[datum]->name, g_data))
continue;
/* Create the state common to all configs */
method_state_t* state = methods[method]->create(data[datum]);
for (size_t config = 0; configs[config] != NULL; ++config) {
if (g_config != NULL && strcmp(configs[config]->name, g_config))
continue;
if (config_skip_data(configs[config], data[datum]))
continue;
/* Print the result for the (method, data, config) tuple. */
result_t const result =
methods[method]->compress(state, configs[config]);
if (result_is_skip(result))
continue;
tprint_names(
results,
data[datum]->name,
configs[config]->name,
methods[method]->name);
if (result_is_error(result)) {
tprintf(results, "%s\n", result_get_error_string(result));
} else {
tprintf(
results,
"%llu\n",
(unsigned long long)result_get_data(result).total_size);
}
tflush(results);
}
methods[method]->destroy(state);
}
}
return 0;
}
/** memcmp() the old results file and the new results file. */
static int diff_results(char const* actual_file, char const* expected_file) {
data_buffer_t const actual = data_buffer_read(actual_file);
data_buffer_t const expected = data_buffer_read(expected_file);
int ret = 1;
if (actual.data == NULL) {
fprintf(stderr, "failed to open results '%s' for diff\n", actual_file);
goto out;
}
if (expected.data == NULL) {
fprintf(
stderr,
"failed to open previous results '%s' for diff\n",
expected_file);
goto out;
}
ret = data_buffer_compare(actual, expected);
if (ret != 0) {
fprintf(
stderr,
"actual results '%s' does not match expected results '%s'\n",
actual_file,
expected_file);
} else {
fprintf(stderr, "actual results match expected results\n");
}
out:
data_buffer_free(actual);
data_buffer_free(expected);
return ret;
}
int main(int argc, char** argv) {
/* Parse args and validate modules. */
int ret = parse_args(argc, argv);
if (ret != 0)
return ret;
if (are_names_bad())
return 1;
/* Initialize modules. */
method_set_zstdcli(g_zstdcli);
ret = data_init(g_cache);
if (ret != 0) {
fprintf(stderr, "data_init() failed with error=%s\n", strerror(ret));
return 1;
}
/* Run the regression tests. */
ret = 1;
FILE* results = fopen(g_output, "w");
if (results == NULL) {
fprintf(stderr, "Failed to open the output file\n");
goto out;
}
ret = run_all(results);
fclose(results);
if (ret != 0)
goto out;
if (g_diff)
/* Diff the new results with the previous results. */
ret = diff_results(g_output, g_diff);
out:
data_finish();
return ret;
}
```
|
Ernest Stires (December 17, 1925 – May 4, 2008) was an American composer, musician, and mentor. His jazz-based classical music has been performed both throughout the United States and abroad.
Stires was born in Alexandria, Virginia, to a family of musicians. His maternal grandparents were the mezzo-soprano Louise Homer and the American art song composer Sidney Homer, while his cousin was the composer Samuel Barber. His paternal grandparents were Bishop Ernest Milmore Stires and Sarah Stires. He was educated first at the Episcopal High School in Alexandria and then at Harvard and Dartmouth, finally graduating from Trinity College in Connecticut. After service as a U.S. Navy pilot in World War II, Stires worked as a television advertising executive, first for NBC in California and then later for CBS in Boston. Although he had begun improvising jazz on the piano while still a small child, he did not devote himself to music as a career until 1962 when he studied composition with Nicolas Slonimsky and Francis Judd Cooke.
Ernie has three children: Sarah Stires, Ernie Stires, and Elizabeth Stires, all of whom share his love of music.
He moved to Vermont in 1967 where he was an administrator for the Vermont Symphony Orchestra and the Chamber Music Conference and Composers' Forum of the East and one of the founding members of the Consortium of Vermont Composers. He also worked as a volunteer teaching basic music theory and composition to young musicians in his community. Amongst his students were Trey Anastasio, a member of the band Phish, film composer/guitarist John Kasiewicz, composer/sound-artist Rama Gottfried, and Jamie Masefield of the Jazz Mandolin Project. Stires' electric guitar concerto, Chat Rooms, was written expressly for Anastasio who premiered it in 2001 with the Vermont Youth Orchestra under Troy Peters, an event covered on national television. In 2004, his violin concerto was premiered at Carnegie Hall in New York in a performance by the Vermont Youth Orchestra with Ruotao Mao, first violinist of the Amabile Quartet, as the soloist.
Ernie Stires died in Vermont on May 4, 2008, at the age of 82.
References
Shane Handler, The Jazz Mandolin Project Does The Jungle Tango, Glide Magazine, April 6, 2003
Scott Bernstein, In Memory of Ernie Stires (1925-2008), Hidden Track on Glide Magazine, May 9, 2008.
External links
Ernie Stires Tribute Page
Audio interview with Ernie Stires, National Public Radio, Weekend Edition Sunday, December 20, 1998
1925 births
2008 deaths
Harvard University alumni
Dartmouth College alumni
20th-century classical composers
American male classical composers
American classical composers
United States Navy pilots of World War II
20th-century American composers
20th-century American male musicians
|
Woman Talk is a live album by jazz vocalist Carmen McRae featuring tracks recorded at the Village Gate in New York in November 1965 and originally released on the Mainstream label the following year. The second half of the concert came out in 1968 as "Live" & Wailing. The whole recording was compiled on a double LP in 1973 under the title Alive!.
Reception
Allmusic awarded the album 3 stars and states "All in all, a very satisfying set from a singer who may not be quite up to the level of Billie Holiday, Ella Fitzgerald, and Sarah Vaughan, but who is certainly close enough to be numbered among the vocal jazz elite".
Track listing
"Sometimes I'm Happy" (Vincent Youmans, Irving Caesar, Clifford Grey) - 3:27
"Don't Explain" (Arthur Herzog, Jr., Billie Holiday) - 4:15
"Woman Talk" (John Scott, Caryl Brahms) - 4:51
"Kick Off Your Shoes" (Cy Coleman, Murray Grand) - 2:16
"The Shadow of Your Smile" (Johnny Mandel, Paul Francis Webster) - 3:53
"The Sweetest Sounds" (Richard Rodgers) - 2:03
"Where Would You Be Without Me?" (Anthony Newley, Leslie Bricusse) - 2:34
"Feeling Good" (Newley, Bricusse) - 4:33
"Run, Run, Run" (Russ Freeman, J. Reisner) - 2:30
"No More" (Tutti Camarata, Bob Russell) - 3:19
"Look at That Face" (Bricusse, Newley) - 5:02
"I Wish I Were in Love Again" (Rodgers, Lorenz Hart) - 1:33
Personnel
Carmen McRae - vocal
Ray Beckenstein - flute
Norman Simmons - piano
Jo Puma - guitar
Paul Breslin - double bass
Frank Severino - drums
Jose Mangual - bongos
References
1966 live albums
Carmen McRae live albums
Mainstream Records live albums
Albums recorded at the Village Gate
|
Vyron or Vyronas may refer to:
The Greek name for George Gordon Byron, 6th Baron Byron
Vyronas, a suburb of Athens, Greece, named after Lord Byron
Vyron (given name)
See also
|
The 1921 College Football All-Southern Team consists of American football players selected to the College Football All-Southern Teams selected by various organizations for the 1921 Southern Intercollegiate Athletic Association football season. This was the last year before many schools left the Southern Intercollegiate Athletic Association (SIAA) for the Southern Conference (SoCon).
Centre posted the SIAA's best record and upset Harvard 6–0. Georgia Tech was also undefeated in conference play, as were Georgia and Vanderbilt, the latter two posting one tie against the other. Vanderbilt was the only one to remain undefeated overall, and were selected as a national champion retroactively by selector Clyde Berryman.
Composite eleven
The composite All-Southern eleven awarded gold badges and formed by 30 sports writers culled by the Atlanta Constitution and Atlanta Journal included:
Red Barron, halfback for Georgia Tech, also an All-Southern baseball player who played pro ball with the Boston Braves. He later coached high school football. Sam Murray, who played later for Georgia Tech as a substitute fullback, was asked about a certain strong runner in the 1930s, "He's good. But if I were playing again, I would have one wish – never to see bearing down upon me a more fearsome picture of power than Judy Harlan blocking for Red Barron."
Noah Caton, center for Auburn, died just a year later due to complications from an appendicitis operation.
Bum Day, center for Georgia. Not a single point was scored all year through Georgia's line, and over two years (1920 and 1921) Georgia did not lose to a single southern opponent. In 1918, as a player for Georgia Tech, Day was the first Southern player selected first-team All-American by Walter Camp.
Goat Hale, quarterback for Mississippi College, inducted into the College Football Hall of Fame in 1963. Got the nickname "Goat" in high school when he battered through the line, scoring a touchdown, and ran past the end zone until his head hit a wooden building, loosening several planks.
Judy Harlan, fullback for Georgia Tech, a senior captain and third-team All-American.
Bo McMillin, quarterback for Centre College, unanimous selection, inaugural inductee into the College Football Hall of Fame in 1951. He led Centre over defending national champion Harvard 6–0 in what is widely considered one of the greatest upsets in college football history. In 1919, he was the second southern player selected first-team All-American by Walter Camp.
Owen Reynolds, end for Georgia, played for the New York Giants in their inaugural season of 1925.
Artie Pew, tackle for Georgia. He was also the team's kicker as well as a basketball player.
Red Roberts, end for Centre, this year the fifth southern player selected first-team All-American by Walter Camp. Roberts was a unanimous selection for the Associated Press Southeast Area All-Time football team 1869–1919 era. Later coached the Waynesburg Yellow Jackets.
Albert Staton, tackle for Georgia Tech, the starting end on the all-time Heisman era team.
Puss Whelchel, guard for Georgia, captain-elect and third-team All-American.
Composite overview
Bo McMillin was the only unanimous choice for the composite selection. Caton and Staton were picked out of the ties due to having the most votes at multiple positions.
All-Southerns of 1921
Ends
Owen Reynolds, Georgia (C, D, BD, JLR, MM, BCL, CEB, SM, MB, ED, GAB, MCK, EH, S, KS, CM, JS, FW, DH, TU)
Red Roberts, Centre (C, D, BD [as t], JLR, MM, BCL, CEB, SM, MB, ED, GAB, MCK. EH, ER, BB, S, KS [as t], CM [as t], JS, DH, TU)
Lynn Bomar, Vanderbilt (College Football Hall of Fame) (JLR [as t], MM [as t], SM [as t])
Bill James, Centre (BD, CM)
John Staton, Georgia Tech (BB)
Graham Vowell, Tennessee (KS)
Rodney Ollinger, Auburn (FW, DH [as hb])
Tom Ryan, Vanderbilt
Tackles
Artie Pew, Georgia (C, BCL, CEB, MB, ED, GAB, MCK, S, JS, FW, DH)
Al Staton, Georgia Tech (C, D, SM, MB, ED, ER [as e])
Fletcher Skidmore, Sewanee (C, JLR [as g], MM, SM, MCK, EH, ER, BB, TU)
Joe Bennett, Georgia (C, D, S, KS, DH)
Ben Cregor, Centre (BD, SM [as g], CM)
Pink Wade, Vanderbilt (CEB, EH, ER, BB)
Pos Elam, Vanderbilt (GAB)
Tot McCullough, Vanderbilt (FW)
Summers, VMI (VMI)
Guards
Puss Whelchel, Georgia (C, JLR, BCL, CEB, MB, ED, GAB, S, KS, JS, FW, TU)
Noah Caton, Auburn (C, D [as c], BD, BCL [as t], MM, CEB, ED, MCK, EH, ER, BB, CM, JS [as t])
Oscar Davis, Georgia Tech (C, D, BCL, MB, S, KS, TU)
Tootie Perry, Florida (C, JLR [as t], GAB, JS)
Charles Lindsay, Tennessee (MCK, ER, BB)
Noisy Grisham, Auburn (FW)
Thurston Anthony, Georgia (DH)
George M. Chinn, Centre (DH)
Centers
Bum Day, Georgia (C, D [as g], BD [as g], JLR, MM [as g], BCL, CEB, SM, MB, ED, GAB, MCK, EH [as g], ER, BB, CM [as g], JS, FW, DH, TU)
Ed Kubale, Centre (BD, CM)
Alf Sharpe, Vanderbilt (MM)
Eddie Reed, Tulane (EH)
Kenneth Grizzard, Tennessee (S, KS)
Quarterbacks
Bo McMillin*†, Centre (College Football Hall of Fame) (C, D, BD, JLR, MM, BCL, CEB, SM, MB, ED, GAB, MCK, EH, ER, BB, S, KS, CM, JS, FW, DH, TU)
Halfbacks
Red Barron, Georgia Tech (C, D, BD, JLR, MM, BCL, CEB, SM, MB, ED, GAB, EH, ER, BB, S, KS, CM, JS, FW, DH)
Goat Hale, Mississippi College (College Football Hall of Fame) (C, BD, JLR, MM, BCL, CEB, SM [as fb], MCK, EH, BB, KS, FW, TU)
Herb Covington, Centre (SM, MCK, S [as fb])
Jim Tom Reynolds, Georgia (ER, JS)
Dode Phillips, Erskine (S, TU)
Milton McManaway, Furman (ED)
Terry Snoddy, Centre (CM)
Fullbacks
Judy Harlan, fullback, Georgia Tech (C, D, BD, JLR, MM, BCL, CEB, MB, ED, GAB, BB, CM, FW, TU)
Ed Sherling, Auburn (D [as hb], MB [as hb], MCK, EH, ER, JS, DH)
Roe Campbell, Tennessee (GAB [as hb], KS)
Key
Bold = Composite selection
* = Consensus All-American
† = Unanimous selection
C = Received votes for a composite All-SIAA eleven selected by 30 sports writers and culled by the Atlanta Constitution and Atlanta Journal. Each of the composite eleven selected were presented with gold football badges.
D = selected by Mike Donahue, coach at Auburn University.
BD = selected by Bruce Dudley, sporting editor of the Louisville Herald.
JLR = selected by J. L. Ray of the Nashville Banner.
MM = selected by Marvin McCarthy of the Birmingham Age-Herald.
BCL = selected by B. C. Lumpkin of the Athens Daily News.
CEB = selected by C. E. Baker of the Macon Telegraph.
SM = selected by Sam H. McMeekin of the Courier-Journal.
MB = selected by Morgan Blake of the Atlanta Journal.
ED = selected by Ed Danforth of the Atlanta Georgian.
GAB = selected by George A. Butler of the Chattanooga News.
MCK = selected by William McG. Keefe of the Times-Picayune.
EH = selected by Ed Hebert of the Times-Picayune.
ER = selected by Eddie Reed, captain of the Tulane eleven.
BB = selected by Bill Brennan, associate coach at Tulane.
S = selected by coach Herman Stegeman of the University of Georgia.
KS = selected by the Knoxville Sentinel
CM = selected by coach Charley Moran of Centre College.
JS = selected by John Snell of the Enquirer-Sun.
FW = selected by Fuzzy Woodruff.
DH = selected by Dunbar Hair of the Augusta Chronicle.
TU = selected by the Times-Union.
See also
1921 College Football All-America Team
References
1921 Southern Intercollegiate Athletic Association football season
College Football All-Southern Teams
|
Craugastor palenque is a species of frogs in the family Craugastoridae.
It is found in Guatemala and Mexico.
Its natural habitats are subtropical or tropical moist lowland forests and rivers.
It is threatened by habitat loss.
References
palenque
Amphibians described in 2000
Taxonomy articles created by Polbot
|
Hans-Gunnar Liljenwall (born 9 July 1941) is a former Swedish modern pentathlete who caused the disqualification of the Swedish team at the 1968 Summer Olympics for alcohol use.
Career
Liljenwall was the first athlete to be disqualified at the Olympics for drug use, following the introduction of anti-doping regulations by the International Olympic Committee in 1967. Liljenwall reportedly had "two beers" to calm his nerves before the pistol shooting event. The Swedish team eventually had to return their bronze medals.
Alcohol was not on the list of restricted substances released by the International Olympic Committee for the 1968 Summer Olympics.
Liljenwall also participated in the 1964 and 1972 Olympics. In 1964 he finished 11th individually and fourth with the team, and in 1972 he placed 25th and fifth, respectively.
See also
List of sportspeople sanctioned for doping offences
References
1941 births
Living people
Swedish male modern pentathletes
Swedish sportspeople in doping cases
Olympic modern pentathletes for Sweden
Modern pentathletes at the 1964 Summer Olympics
Modern pentathletes at the 1968 Summer Olympics
Modern pentathletes at the 1972 Summer Olympics
Competitors stripped of Summer Olympics medals
World Modern Pentathlon Championships medalists
Doping cases in modern pentathlon
Sportspeople from Jönköping
|
Fepuleai Ameperosa Roma (born ~1977) is a Samoan judge. He has been a judge of the Supreme Court of Samoa since 15 January 2020.
Fepuleai graduated from the University of the South Pacific law school in 1998. After working for the Inland Revenue Department and Samoa National Provident Fund he became a staff solicitor at Sapolu and Lussick, where he was mentored by Luamanuvao Katalaina Sapolu. He then established his own firm, and worked as a defence counsel. In 2014 he became the youngest judge ever appointed to the District Court of Samoa. He has also sat on the Land and Titles Court of Samoa. In January 2020 he was appointed to the Supreme Court of Samoa.
References
Living people
Samoan judges
Samoan lawyers
University of the South Pacific alumni
Year of birth missing (living people)
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.graalvm.visualvm.lib.charts.axis;
/**
*
* @author Jiri Sedlacek
*/
public class TimeMark extends LongMark {
private final String format;
public TimeMark(long value, int position, String format) {
super(value, position);
this.format = format;
}
public String getFormat() {
return format;
}
}
```
|
Hlomla Dandala (born 22 September 1974) is a South African actor, television presenter, and director.
He is best known for his roles as Derek Nyathi in Isidingo (1998–2001), title character Jacob Makhubu in Jacob's Cross (since 2007), and host of the reality dating show All You Need Is Love from 2002 to 2003. He starred in the drama series Rockville as Gomorrah, the main antagonist of the third season, and e.tv's prime time soap opera, Scandal! as Kingsley Siseko Langa from 2016 until 2019.
As of 2018, Dandala stars in The River across Sindi Dlathu (who plays Lindiwe) as her husband, Commissioner Zweli Dikana. Dandala is the son of Mvume Dandala and has a sister Gqibelo. He speaks five languages: Afrikaans, English, Xhosa, Sesotho and Zulu.
Filmography
Television
Reality
Channel O (1995 - 1998)
All You Need Is Love (2000)
Series
Isidingo (as Derek Nyathi, season 1-4)
Rockville (as Gomorrah, season 3)
Jacob's Cross (as Jacob Makhubu, later Jacob Abayomi; since season 1)
All You Need Is Love (host; 2002–2003)
Interrogation Room
Tsha Tsha (as Lungi, season 4)
Gaz'lam (as Coltrane, seasons 3-4)
Scout's Safari
Zero Tolerance (second season, as Majola Tindleni)
Jozi-H (as Dr. Sipho Ramthalile)
Scandal! Which he also directed before (as Kingsley Siseko Langa)
The River (as Zweli Dikana, season 1 - 5)
The Republic (as Deputy President)
Justice Served ( as Azania Maqoma )
Miniseries
Land of Thirst (as Khanyiso Phalo)
The Triangle (2005)
Madiba (2017)
Film
Fools (1997)
Red Dust (2004)
Lord of War (2005)
Coup! (made for TV, 2006)
Sniper Reloaded (2011)
Winnie (2011) - Oliver Tambo
Contract with Yvonne Okoro and Joseph Benjamin.
Honeymoon Hotel (2014) with Beverly Naza and Martha Ankhoma.
Momentum (as Mr. Madison)
Happiness Is a Four Letter Word (2016) with Chris Attoh.
References
External links
1974 births
Living people
People from Mdantsane
Xhosa people
South African male television actors
South African male film actors
|
Robert Fogle Milliken (August 25, 1926 – January 3, 2007) was a reliever and spot starter in Major League Baseball who played for the Brooklyn Dodgers (1953–54). Milliken batted and threw right-handed. He was born in Majorsville, West Virginia.
Milliken pitched in the minor leagues with Fort Worth (1948–49) and Montreal (1950) before joining the military from 1951 to 1952. After being discharged, he helped the Brooklyn Dodgers to clinch the 1953 National League pennant with an 8–4 mark, 65 strikeouts, 117 innings, and a 3.37 ERA in 37 appearances, including 10 starts. He faced the New York Yankees in the World Series of that year and pitched two innings of shutout relief. In 1954 he went 5–2 with two saves in 24 games, three as a starter, as he recorded a 4.02 ERA in a league where the pitchers averaged 4.07. After that, he suffered arm problems and did not return to the major leagues.
From 1955 to 1956 Milliken divided his playing time between Fort Worth and Montreal. Following his playing retirement, he returned to the majors as a batting practice pitcher (1963–1964) and bullpen and pitching coach with the St. Louis Cardinals (1965–70, 1976). He is given credit in the SABR biography of Jim Willoughby for straightening out his delivery in 1975, while Milliken served as the Redbirds' minor-league pitching instructor and Willoughby was with the Triple-A Tulsa Oilers. Later, he was a St. Louis scout.
In 61 major league appearances, Milliken posted a 13–6 record with a 3.59 ERA, four saves, and 90 strikeouts in 180 innings, including 13 starts and three complete games.
Milliken died in Clearwater, Florida, at the age of 80. According to his obituary, he had spent 58 years in baseball.
See also
List of St. Louis Cardinals coaches
References
External links
Baseball Almanac
Historic Baseball
1926 births
2007 deaths
Atlanta Crackers players
Baseball players from West Virginia
Brooklyn Dodgers players
Danville Dodgers players
Fort Worth Cats players
Macon Dodgers players
Major League Baseball bullpen coaches
Major League Baseball pitchers
Major League Baseball pitching coaches
Memphis Chickasaws players
Montreal Royals players
People from Marshall County, West Virginia
Portsmouth-Norfolk Tides players
Rochester Red Wings players
St. Louis Cardinals coaches
St. Louis Cardinals scouts
St. Paul Saints (AA) players
Spokane Indians players
|
The Longwood Medical and Academic Area (also known as Longwood Medical Area, LMA, or simply Longwood) is a medical campus in Boston, Massachusetts. Flanking Longwood Avenue, LMA is adjacent to the Fenway–Kenmore, Audubon Circle, and Mission Hill neighborhoods, as well as the town of Brookline.
It is most strongly associated with Harvard Medical School, the Harvard T.H. Chan School of Public Health, the Harvard School of Dental Medicine, and other medical facilities such as Harvard's teaching hospitals, but prominent non-Harvard institutions are located there as well. Long known as a global center of research, institutions in the Longwood Medical Area secured over $1.2 billion in NIH funds alone, in FY 2018 which exceeds funding received by 44 states.
Hospitals and research institutions
Beth Israel Deaconess Medical Center
Boston Children's Hospital
Brigham and Women's Hospital
Dana–Farber Cancer Institute
Joslin Diabetes Center
Massachusetts Mental Health Center
New England Baptist Hospital
Wyss Institute for Biologically Inspired Engineering
Schools and colleges
Boston Latin School
Emmanuel College
Harvard Medical School
Harvard School of Dental Medicine
Harvard T.H. Chan School of Public Health
Massachusetts College of Art and Design
Massachusetts College of Pharmacy and Health Sciences
Simmons University
Wentworth Institute of Technology
Boston University Wheelock College of Education & Human Development
Winsor School
Transportation
LMA is served by two subway stations at opposite ends of Longwood Avenue:
"Longwood" (on the MBTA Green Line's "D" branch) and
"Longwood Medical Area" (on the "E" branch).
Several public bus routes serve the area and commuter rail service is available at nearby Ruggles Station. MASCO offers shuttle buses (generally for affiliated personnel only) around the Longwood Medical Area and between Harvard's Cambridge Campus and the Medical Campus (M2). The M2 shuttle is free for passengers holding a Harvard ID.
Energy
LMA receives electrical power, cooling, and heating from a trigeneration (CCHP) facility, the Medical Area Total Energy Plant (MATEP).
References
External links
Medical Academic and Scientific Community Organization
The Diaries of John Hull, Mint-master and Treasurer of the Colony of Massachusetts Bay
Academic enclaves
Biomedical districts
Harvard Medical School
Laboratories in the United States
Medical districts
Neighborhoods in Boston
|
Pir Lujeh (, also Romanized as Pīr Lūjeh; also known as Parichah and Paricheh) is a village in Abbas-e Sharqi Rural District, Tekmeh Dash District, Bostanabad County, East Azerbaijan Province, Iran. As of the 2006 census, its population was 114 people in 23 families.
References
Populated places in Bostanabad County
|
A punching machine is a machine tool for punching and embossing flat sheet-materials to produce form-features needed as mechanical element and/or to extend static stability of a sheet section.
CNC punching
Punch presses are developed for high flexibility and efficient processing of metal stampings. The main areas of application are for small and medium runs. Those machines are typically equipped with a linear die carrier (tool carrier) and quick change tools. Today the method is used where the application of lasers are inefficient or technically impractical. CNC is the abbreviation of Computer Numerically Controlled.
Principle of operation
After programming the work pieces and entering length of bars the control automatically calculates the maximum number of pieces to be punched (for example, 18 pieces of a bar of 6000 mm). Once the desired number of work pieces is entered, the bar is pushed toward the stop. The machine is fully automated once the production process is launched.
The third CNC axis always moves the cylinder exactly over the tool, which keeps the wear on the bearings and tools to a minimum. All pieces are sent down a slat conveyor and are pushed sideways on a table. Any scrap is carried to the end of the conveyor and dropped into a bin. Different workpieces can be produced within one work cycle to optimize production.
Programming
Programming is done on a PC equipped with appropriate software that can be part of the machine or a connected external workstation. For generating a new program engineering data can be imported or pasted per mouse and keyboard. Through a graphic and menu-driven user interface previous CNC programming skills are not required. All the punches in a work piece are shown on the screen making programming mistakes easily detected. Ideally each program is stored in one database, so it is easy to recover them by search and sort functions. When selecting a new piece, all the necessary tooling changes are displayed. Before transferring it to the control unit the software scans each program for possible collisions. This eliminates most handling errors.
Tool change system
The linear tool carrier (y-axis) has several stations that hold the punching tools and one cutting tool. Especially for flexibility and efficient processing are set up times a crucial cost factor. Downtimes should be reduced to a minimum. Therefore, recent tool systems are designed for fast and convenient change of punches and dies. They are equipped with a special plug-in system for a quick and easy change of tools.
There is no need to screw anything together. The punch and die plate are adjusted to each other automatically punches and dies can be changed rapidly meaning less machine downtime.
Networking with the whole production line
A lot of organizational effort and interface management is saved, if the CNC punch press is connected to the previous and subsequent process. For a connection to other machines and external workstations corporate interfaces have to be established.
One software for programming subsequent production steps at once
Using a standard industrial PC a variety of machines can be easily networked with among each other
shared database for easy integration into existing workflow system and backup at an external server
import production data from other systems or from construction programs (e.g. DXF files)
Integration of further production steps
Besides punching, machines of the high-end class can be equipped with special functions. For example:
Automatic labelling and marking of work pieces
Chipless thread forming by electric driven quick change tools
Automatic infeeding system - loading of the machine
Embossing digits and characters
Coining nubs
See also
Turret punch
Punch press
References
W. Hellwig, M. Kolbe: Spanlose Fertigung Stanzen: Integrierte Fertigung komplexer Präzisions-Stanzteile. Vieweg+Teubner Verlag, 10. edition, June, 2012,
Machine tools
Metalworking tools
Press tools
|
Commer () is a commune in the Mayenne department in north-western France.
See also
Communes of the Mayenne department
References
Communes of Mayenne
|
The Turkey Cafe is a building with a flamboyant Modern Style (British Art Nouveau style) facade in Granby Street, Leicester, England. It was built in 1900 and is now a Grade II listed building, once again used as a café. The facade puns on two meanings of "turkey", with a vaguely Eastern exotic style of architecture and three large turkey birds on the facade, one sculpted on each side of the ground floor shopfront and another forming a large coloured panel of Royal Doulton tiles right at the top.
History
The site of the Turkey Cafe was owned by James Wesley, a grocer and confectioner, from 1877 to 1899. Wesley sold the site to architect Arthur Wakerley, a well-known Leicester architect who was also a prominent supporter of the Temperance Movement. Upon completion he leased it to John Winn, who owned a number of other cafes in Manchester and the Oriental Cafe in Leicester. The offices of Wakerley's architectural practice were above Winn's Oriental Cafe, making it easy to negotiate a deal regarding the construction and occupancy of a new cafe on Granby Street. Wakerley approached the Royal Doulton Company for help constructing his design for the new "Turkey Cafe".
The style of the Turkey Cafe reflected what was popular at that time, which was the new trend of art nouveau. The building created a sense of stability by visually implying a pyramid structure. This was done by having seven arches on the ground floor and then decreasing the number of arches on each level. The pyramid is completed with a single turkey located at the top of the building. The building was coloured blue, green, and buff, which allowed any onlooker to fully appreciate the shapes and curves of the building's designs. The facade was constructed using tiles, hollow blocks, and a type of white architectural terracotta called carraraware. The Doultons actually developed carraraware in 1888, which is a matt-glazed stoneware. The carraware tiles of this frontage were handmade by William Neatby, a ceramic artist who worked for the Doultons. In addition to these features, art nouveau can be found in the decorations etched into the front window, as well as the red and green art nouveau designs of the rear tea room windows.
The Turkey Cafe was opened in September 1901 and was later renumbered 24 Granby Street. As a tea room, the cafe was popular with women. Not only was it a respectable venue for gathering, but it provided a convenient meeting place to discuss the progress of women's rights. However, the cafe was not designed with only women in mind. Located in the back of the cafe was the Smoke Room. This room with its dark interior provided a place for men to gather and converse as well. The popularity of the cafe rose so high that in 1911 Winn expanded into the building next door, which used to be William Wheeler Kendall's "Umbrella Manufacturer and Can Stick Merchant." This change allowed Winn to expand the restaurant and storage space, and add a billiard room.
Further renovations were made in 1927 when Winn decided to modernise the entrance, making the front appear more art deco than art nouveau. Wakerley allowed the changes, as long as Winn restored the shop to its original appearance once the lease was done. Unfortunately, when Winn's family sold the Turkey Cafe to Brucciani Bakers Ltd. in 1963, no restoration actually occurred. Under the Brucciani family, the Turkey cafe became a coffee and ice-cream shop. The reputation of the cafe as a location for woman to gather continued, and in 1966, the cafe had a "Ladies Only" room. After the Sex Discrimination Act 1975 came into law, they could no longer prohibit men from entering. In 1968, the cafe was once again renovated. The result was a mixture of old and new. The original interior tiled walls were panelled over, a tiled mural of a turkey was added, and smaller windows were inserted.
The Turkey Cafe underwent yet another renovation process after Rayner Opticians Ltd. purchased the property in 1982. The interior was altered greatly to accommodate the new business that it would house, and curved windows were added to the above stories. However, the etched glass windows on the ground floor and the front arch were kept and restored to their original condition. Rayners tracked down the Hathernware Ceramics Ltd. of Loughborough who was the only firm experienced in using the terra cotta material needed for restoration. The opticians were also fortunate enough to have the original architectural drawings and a 1910 photograph, which architects Sawday and Moffat had in their archives. Rayners then commissioned Deardon Briggs Designs Ltd. to follow these plans for the restoration process and creation of reproductions. In the end, the restoration of the exterior cost over £30,000, with Leicester City Council contributing £5,000.
For two decades the building served as an optician's office, but in 2014 the building was returned to its original purpose as a cafe during the day and a cocktail bar at night. Now called 1901 - The Turkey Cafe representing the year the building was constructed and many original features have been exposed and restored. rep. The building has also been listed as a grade two building for its art nouveau style architecture, making it clear that the building is of architectural and historic special interest. To the people of Leicester, the building certainly is worth preserving and does have an interesting history. The building has served as a cafe, restaurant, meeting place, ice-cream parlour, and unexpectedly an office for opticians. While numerous buildings were destroyed during and after the World Wars, including all of Winn's other cafes, the Turkey Cafe has remained. Now, the building has come full circle, standing restored in its original appearance and serving as a cafe.
Gallery of details
Notes
References
Farquhar, Jean, and Skinner, Joan, The history and architecture of the Turkey Café, Sedgebrook, 1987
"Story": "The Turkey Cafe", in The Story Of Leicester, on Leicester City Council website
"The Turkey Cafe, Leicester," , on Midlands Heritage website, 2011
Further reading
Taylor, M. (1997) The Quality of Leicester, Leicester: Leicester City Council.
External links
Art Nouveau architecture in England
Buildings and structures in Leicester
Coffeehouses and cafés in the United Kingdom
Commercial buildings completed in 1900
Art Nouveau restaurants
|
Gracie Perry Watson (July 10, 1882 – April 22, 1889) was an American folk figure who became the subject of a notable statue by John Walz which has become a tourist attraction at Bonaventure Cemetery in Savannah, Georgia.
Early life
Watson was born in 1882, the only child of W. J. Watson and Frances Waterman, who went on to run the now-demolished Pulaski House Hotel, which stood in Johnson Square in Savannah, Georgia, and was where Gracie grew up. They also ran the old DeSoto Hotel on Liberty Street. W. J. was also a city alderman between 1895 and 1897 and 1901 to 1903.
Death
Watson died in 1889, aged six, from "blood poisoning superinduced by a severe attack of pneumonia," having fallen ill a few days after Easter. W. J. Watson commissioned a sculpture of his daughter from local artist John Walz, who created it from a photograph. The life-size marble sculpture, which was completed in 1890 and commonly referred to as Little Gracie Watson, was placed at her grave in Savannah's Bonaventure Cemetery. The monument is one of the only funerary monuments in Georgia sculpted in someone's exact likeness.
The grave became a tourist draw, which resulted in it being surrounded by a gated fence in 1999. The grave has been called "one of the most visited sites in Bonaventure Cemetery". Tours visit her grave to mark her birthday each year.
Her parents are buried elsewhere, having moved back to their native northeastern United States a few years later: her father in Fairview Cemetery in Wardsboro, Vermont, and her mother in Albany Rural Cemetery in Menands, New York.
References
History of Savannah, Georgia
1882 births
1889 deaths
People from Savannah, Georgia
Deaths from pneumonia in Georgia (U.S. state)
People from Charleston, South Carolina
|
Lafitte may refer to:
Lafitte (surname)
Lafitte, Louisiana
Jean Lafitte, Louisiana
Lafitte, Tarn-et-Garonne, a commune in southern France
Lafitte Greenway, a trail for pedestrians and bicycles in New Orleans, Louisiana
Lafitte Projects, in the 6th Ward of New Orleans, Louisiana
Lafitte's Blacksmith Shop in the French Quarter of New Orleans
Jean Lafitte National Historical Park and Preserve, includes several regions in south Louisiana
See also
Château Lafite Rothschild, a French winemaker
Laffitte (disambiguation)
|
The 1965 United States Road Racing Championship season was the third season of the Sports Car Club of America's United States Road Racing Championship. It began April 11, 1965, and ended September 5, 1965, after nine races. Separate races for sportscars and GTs were held at two rounds, while seven rounds were combined races. George Follmer won the season championship driving in the Under-2 Liter class.
Schedule
Season results
Overall winner in bold.
External links
World Sports Racing Prototypes: USRRC 1965
World Sports Racing Prototypes: USRRC GT 1965
Racing Sports Cars: USRRC archive
United States Road Racing Championship
United States Road Racing Championship
|
Philippe Lab (born 13 July 1941) is a Swiss weightlifter. He competed in the men's lightweight event at the 1964 Summer Olympics.
References
1941 births
Living people
Swiss male weightlifters
Olympic weightlifters for Switzerland
Weightlifters at the 1964 Summer Olympics
Place of birth missing (living people)
|
```xml
// Global state (used for theming)
import { AppState } from './app.global';
// Providers
import { ToastService } from '../providers/util/toast.service';
import { AlertService } from '../providers/util/alert.service';
import { CameraProvider } from '../providers/util/camera.provider';
import { NativeGoogleMapsProvider } from '../providers/native-google-maps/native-google-maps';
// Ionic native providers
import { CardIO } from '@ionic-native/card-io';
import { BarcodeScanner } from '@ionic-native/barcode-scanner';
import { Camera } from '@ionic-native/camera';
import { Diagnostic } from '@ionic-native/diagnostic';
import { Geolocation } from '@ionic-native/geolocation';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { GoogleMaps } from '@ionic-native/google-maps';
// Directives
import { SlidingDrawer } from '../components/sliding-drawer/sliding-drawer';
import { Autosize } from '../components/autosize/autosize';
// Modules
import { SwingModule } from 'angular2-swing';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
export const MODULES = [
SwingModule,
BrowserModule,
HttpClientModule,
];
export const PROVIDERS = [
AlertService,
ToastService,
AppState,
CameraProvider,
NativeGoogleMapsProvider,
// Ionic native specific providers
BarcodeScanner,
Camera,
Diagnostic,
Geolocation,
CardIO,
StatusBar,
SplashScreen,
GoogleMaps,
];
export const DIRECTIVES = [
SlidingDrawer,
Autosize,
];
```
|
Stomatella esperanzae is a species of sea snail, a marine gastropod mollusk in the family Trochidae, the top snails.
Distribution
This species occurs in the Pacific Ocean off Easter Island.
References
External links
To USNM Invertebrate Zoology Mollusca Collection
To World Register of Marine Species
esperanzae
Gastropods described in 1980
|
Hypsas (Ὕψας) is the classical name of two rivers in Sicily:
The San Leone (river), also known as the Sant'Anna or Drago, near Agrigento (in antiquity Akragas)
The Belice, near the ancient city of Selinus, on the banks of which stood the ancient city of Inycum.
|
Ernando Rodrigues Lopes (born 17 April 1988 in Formosa), simply known as Ernando, is a former Brazilian footballer who plays as a centre back.
Career
Ernando made professional debut for Goiás in a 2–2 away draw against Botafogo in the Campeonato Brasileiro on 19 November 2006. He scored his first professional goal in a 3–0 away win over the same club on 30 September of the following year.
Honours
Goiás
Campeonato Goiano: 2006, 2009, 2012, 2013
Campeonato Brasileiro Série B: 2012
Internacional
Campeonato Gaúcho: 2014, 2015, 2016
Recopa Gaúcha: 2017
Bahia
Campeonato Baiano: 2019
References
External links
1988 births
Living people
Footballers from Goiás
Brazilian men's footballers
Men's association football defenders
Campeonato Brasileiro Série A players
Campeonato Brasileiro Série B players
Goiás Esporte Clube players
Sport Club Internacional players
Sport Club do Recife players
Esporte Clube Bahia players
CR Vasco da Gama players
|
Vexillum sculptile, common name the carved mitre, is a species of small sea snail, marine gastropod mollusk in the family Costellariidae, the ribbed miters.
Description
The length of the shell attains 17 mm.
(Original description) The elongated shell is somewhat cylindrical and a little recurved at the base. The sutures of the spire are rather impressed. The shell is longitudinally closely ridged with beautiful shining riblets. The interstices transversely strongly latticed. The decussating cancellations are so regularly
disposed, with the white stramineous and fuscous zoned spiral bands that they can serve to characterize the species.
The shell is whitish, faintly spotted with pale brown. The lower portion of the body whorl is pale brown, whitish at the base. The columella is five-plaited.
Distribution
This species occurs in the Persian Gulf; also off the Philippines, Indonesia and the Maldives; in the East China Sea; off the Fiji Islands, New Caledonia and Australia (Queensland).
References
Smith, E.A. 1876. A list of marine shells, chiefly from the Solomon Islands, with descriptions of several new species. Journal of the Linnean Society of London, Zoology 12: 535–562, pl. 30
Smith, E.A. 1903. Marine Mollusca. (pp. 589-630, pls. XXXV-XXXVI) in Gardiner, J.S. (ed.). The Fauna and Geography of the Maldive and Laccadive Archipelagoes, being the account of work carried on and of the collections made by an expedition during the years 1899 and 1900. Cambridge : University Press Vol. II(Part II) pp. 589–698, pls. XXXV-XLVIII).
Hedley, C. 1908. Studies on Australian Mollusca. Part 10. Proceedings of the Linnean Society of New South Wales 33: 456–489
Schepman, M.M. 1911. The Prosobranchia of the Siboga Expedition. Part 4: Rhachiglossa. pp. 247-364, pls 18-24 in Weber, M. (ed.). Siboga Expeditie. Monograph 49.
Ray, H.C. 1954. Mitres of Indian waters (Mollusca, Gastropoda, Family Mitiridae). Memoirs of the Indian Museum 14(1): 1-72
Cernohorsky, W.O. 1970. Systematics of the families Mitridae & Volutomitridae (Mollusca: Gastropoda). Bulletin of the Auckland Institute and Museum. Auckland, New Zealand 8: 1-190
Cernohorsky, W.O. 1978. Tropical Pacific marine shells. Sydney : Pacific Publications 352 pp., 68 pls.
Salisbury, R.A. 1999. Costellariidae of the World, Pt. 1. Of Sea and Shore 22(3): 124-136
Wilson, B. 1994. Australian marine shells. Prosobranch gastropods. Kallaroo, WA : Odyssey Publishing Vol. 2 370 pp.
Guillot de Suduiraut, E. 2000. Contribution à la connaissance de quelques gastéropides mitriformes e l'archipel des Philippines (Gastropoda: Prosobranchia: Mitridae & Costellariidae). Xenophora. Association française de conchyliologie 89: 8-12
External links
Gould, A.A. 1850. Shells collected by the United States Exploring Expedition under the command of Charles Wilkes. Proceedings of the Boston Society of Natural History 3: 169-172
sculptile
Gastropods described in 1845
|
is a baseball game released on the NES. It was released in 1989 in Japan and in 1990 in North America.
Gameplay
In the game, there are four leagues available. The first two contain only normal teams, the third contains only ultra teams, and the fourth allows a player to create their own league from any mixture of normal and ultra teams. A player can either control a normal baseball team or an ultra baseball team with super hitting and pitching plays to boost their chances of winning.
Each Ultra play uses a certain number of points. Ultra points are limited and when they are all used up no more ultra plays can be performed. There are also some Ultra Upgrades, for outfielders and batters. These cost more points to assign, but become intrinsic effects, and do not cost points to use.
Within Baseball Simulator 1.000, there is an exhibition mode, a regular season mode, and a team edit mode that allows the player to make his own players to form a customized baseball team.
A magic number appears during the regular season, telling the leading team how many victories they have to make until they are assured the pennant.
A season can be 5, 30, 60, 120, or 165 games. Out of the 18 possible teams, only six teams can be used in a division/league during the season. However, there are no playoffs for the top two teams. Whoever wins the division is the champion.
Baseball Simulator series
These baseball titles included some form of "Super League" where pitchers and batters would have special abilities.
Baseball Simulator 1.000 (1989, NES), also known as Choujin Ultra Baseball
Super Baseball Simulator 1.000 (1991, Super NES), also known as Super Ultra Baseball
Ultra Baseball Jitsumeiban (1992, SNES), NPB licensed.
Super Ultra Baseball 2 (1994, SNES)
Ultra Baseball Jitsumeiban 2 (1994, SNES), NPB licensed.
Ultra Baseball Jitsumeiban 3 (1995, SNES), NPB licensed.
Other
Choujin Ultra Baseball Action Card Battle (2014, 3DS), card-based game
Reception
Electronic Gaming Monthly awarded it "Best Sports-Themed Video Game" in their 1989 awards issue, giving it "top honors ... [for] taking liberty with the sport itself". 1up.com listed it as one of the "hidden gems" of the NES, calling it one of the best baseball games for the system.
References
External links
Choujin - Ultra Baseball at SuperFamicom.org
1989 video games
Culture Brain games
Nintendo Entertainment System games
Nintendo Entertainment System-only games
Multiplayer and single-player video games
Video games developed in Japan
Virtual Console games for Wii U
|
A constitutional referendum was held in South Korea on 17 December 1962. The new constitution was approved by 80.6% of voters, with a turnout of 85.3%.
Results
References
1962 referendums
1962 elections in South Korea
Constitutional referendums in South Korea
|
Lionsbridge Football Club, or Lionsbridge FC, is an American soccer club based on the Virginia Peninsula, which comprises the cities of Newport News, Hampton, Poquoson, and York and James City counties. The club was founded in 2017, and play in USL League Two. The club's colors are blue, black and white, and the club is named for the Lions Bridge, the iconic Peninsula landmark that has stood along the James River and in the Mariners' Museum Park since 1923. The team plays its home games at TowneBank Stadium on the campus of Christopher Newport University.
Background
The original founders include Mike Vest, Kevin Joyce, and Dan Chenoweth, all of whom are Virginia Peninsula residents. Lionsbridge FC announced its launch on June 9, 2017 via a social media release. At the time of the team's announcement, the club invited fans to help determine its crest via a fan vote on social media. More than 600 people voted and the team unveiled the winning design in July 2017. The crest integrates four identifying features of the Virginia Peninsula - the Lions Bridge, the team's location and launch year, the James and York Rivers, and the region's importance as a hub of the United States military.
Lionsbridge FC announced its league affiliation (Premier Development League) and TowneBank Stadium (then known as Pomoco Stadium) agreement (with Christopher Newport University) during a press conference on November 14, 2017.
The team named Chris Whalley as its first head coach on February 14, 2018.
Notable former players
2018-19 Ivan Militar - Academy Director for El Paso Locomotive in USL Championship.
2018 Tom Devitt – Gateshead FC, Blythe United, Stranraer FC, Hebburn Town
2018 Josh Spencer – Hinckley A.F.C.
2018 Joe Rice – Richmond Kickers, New England Revolution II, Loudoun United FC, Detroit City FC.
2018 Fortia Munts – Valentine Eleebana Phoenix (Australia), Unio Esportiva Vic
2018, 2020-21 Simon Fitch – Richmond Kickers
2019 JP Scearce – Union Omaha
2019 Adrian Rebollar - Monterey Bay FC in USL Championship.
2019-20 Rich Dearle - Eltham Redbacks in Australia.
2019 Oscar Ramsay – Charlotte Independence, North Shore United
2019 Luke Brown – Hitchin Town FC, Stowmarket Town FC
2019 Rene White – Real Salt Lake of MLS
2019 Thibaut Jacquel – FC Dallas of MLS and CS Fola Esch in Luxembourg.
2020 Alex Touche – New Mexico United of USL Championship and Union Omaha of USL League One.
2021 Matthew Bentley – MLS Draft Pick of Minnesota United, Dover Athletic and Richmond Kickers in USL League One.
Year by year
Honors
USL League Two Best Regular Season Record Champions: 2022
USL League Two Eastern Conference Champions: 2023
USL League Two Chesapeake Division Champions: 2022, 2023
USL League Two Franchise of the Year: 2019
USL League Two Eastern Conference Attendance Leaders: 2018, 2022
USL League Two Southern Conference Attendance Leaders: 2019, 2020, 2021
Jersey sponsors
Lionsbridge FC's inaugural season sponsors included Chick-fil-A (Official Jersey Sponsor), Riverside Health System (Official Sports Medicine Provider), Planet Fitness (Official Health Club), Nike (Official Apparel Supplier) and Financial Security Group.
References
Soccer clubs in Virginia
2017 establishments in Virginia
Association football clubs established in 2017
Sports in Newport News, Virginia
|
Stephen Harrod Buhner was an American herbalist and writer. He was a key figure in promoting chronic Lyme disease.
Buhner's protocols for herbal medicine have also been marketed by alternative practitioners as a cure for Covid-19. One of these received a written warning from the FDA in 2020 for making such claims.
Books
References
External links
Official website
1952 births
2022 deaths
Herbalists
American writers
Lyme disease researchers
Place of birth missing
|
```python
# -*- coding: utf-8 -*-
# qqbot
# plugins qqbot.plugins.schedrestart
# fresh-restart pluginsConf
# "pluginsConf" : {"qqbot.plugins.schedrestart": "8:00"}
from qqbot import QQBotSched as qqbotsched
from qqbot.utf8logger import INFO
class g(object):
pass
def onPlug(bot):
g.t = bot.conf.pluginsConf.get(__name__, '8:00')
g.hour, g.minute = g.t.split(':')
@qqbotsched(hour=g.hour, minute=g.minute)
def schedRestart(_bot):
_bot.FreshRestart()
INFO(' %s ', g.t)
def onUnplug(bot):
INFO(' %s ', g.t)
```
|
The 1937 Cincinnati Reds season was a season in American baseball. The team finished eighth and last in the National League with a record of 56–98, 40 games behind the New York Giants.
Offseason
On December 2, 1936, the Reds purchased catcher Spud Davis and infielder Charlie Gelbert from the St. Louis Cardinals. Davis played in 112 games with the Cardinals during the 1936 season, hitting .273 with four home runs and 59 RBI. Gelbert hit .229 with three home runs and 27 RBI in 93 games during the 1936 season.
Just over two weeks later, on December 19, Cincinnati sold pitcher Lee Stine to the New York Yankees. Stine appeared in 40 games with the Reds during the 1936 season, including 12 starts. He posted a 3–8 record with a 5.03 ERA in 121.2 innings pitched in his only season with the club.
On January 6, 1937, Cincinnati sold infielder Tommy Thevenow to the New York Giants. Thevenow hit .234 with 36 RBI in 106 games in his lone season with the team.
Just prior to the beginning of the regular season, Cincinnati made a couple of moves. On April 16, the Reds sold outfielder Jack Rothrock to the Philadelphia Athletics. Rothrock, who was acquired by the Reds in August 1936, did not appear in a game with the team. Three days later, Cincinnati sold left fielder Babe Herman to the Detroit Tigers. In 119 games during the 1936 season, Herman hit for a .279 batting average with 13 home runs and 71 RBI.
Regular season
The Reds opened the 1937 season at home against the St. Louis Cardinals on April 20, as the Cardinals, led by a 10 inning shutout pitching performance by Dizzy Dean defeated the Reds 2–0 in front of 34,374 fans.
Cincinnati struggled in their first 10 games of the season, posting a 1–9 record and quickly falling into the basement of the National League. The Reds snapped out of their early struggles, winning their next four games, including a wild 21–10 win over the Philadelphia Phillies on May 9.
On May 12, Cincinnati purchased first baseman Buck Jordan from the Boston Bees. Jordan had appeared in only eight games with the Bees at the time of the transaction, batting .250. In 1936, Jordan hit .323 with three home runs and 66 RBI in 138 games with Boston.
Cincinnati continued to struggled throughout the month of May, as at the end of the month, the team had a record of 11–25, remaining in last place, 12.5 games behind the National League leading Pittsburgh Pirates.
On June 6, the club purchased pitcher Jumbo Brown from the New York Yankees. Brown did not play in any games with the Yankees, as he was playing with their AA club, the Newark Bears of the International League. In 1936, Brown had a 1–4 record with a 5.91 ERA in 20 games with the Yankees.
Cincinnati put together a solid 13–8 record in their first 21 games during June, as the club moved into sixth place in the National League with a 24–33 record. The club then dropped their next five games, falling back into a tie for last place, with a 24–38 record, 14 games behind the pennant leading Chicago Cubs.
The Reds made a number of moves on July 3, as they sold pitcher Jumbo Brown and leftfielder Phil Weintraub to the New York Giants. Cincinnati also purchased pitcher Joe Cascarella from the Washington Senators. Cascarella had a 0–5 record with a 8.07 ERA in 32.1 innings pitched over ten games.
The team earned a record of 12–14 in July, as their record sat at 36–52 at the end of the month. Cincinnati sat in seventh place in the eight team league, 21 games behind the Chicago Cubs for first place.
The Reds purchased centerfielder Kiddo Davis from the New York Giants on August 4. Davis hit .263 with nine RBI in 56 games with the Giants. Later in the month, on August 20, Cincinnati purchased Dusty Cooke from the Boston Red Sox. Cooke hit .345 with 18 home runs in 151 games with the Minneapolis Millers of the International League.
Cincinnati struggled to a 10–17 record during the month of August, as the club dropped back into last place with a 46–69 record at the end of the month, 24.5 games behind the pennant leading Chicago Cubs and one game behind the Brooklyn Dodgers for seventh place.
On September 1, the Reds purchased third baseman Charlie English from the New York Yankees. English played with the Yankees AA club, the Kansas City Blues of the American Association. In 154 games, English hit .327 with 44 doubles and 15 triples. Three days later, the Reds made another purchase from the Yankees, as the acquired pitcher Ted Kleinhans. Kleinhans earned a 15–9 record with a 4.03 ERA in 37 games with the Blues during the 1937 season. Kleinhans had previously pitched for Cincinnati in 1934, as he earned a 2–6 record with a 5.74 ERA in 24 games.
Cincinnati continued to struggle in September. Following a doubleheader, in which the Reds split the two games with the St. Louis Cardinals on September 12, the club relieved Chuck Dressen from his duties as manager. Dressen finished the season with a 51–78 record. Overall, in four seasons with the team, Dressen earned a 214–282 record. His replacement for the rest of the season was Bobby Wallace. Wallace, who was generally recognized as the top shortstop in the American League during his tenure with the St. Louis Browns from 1902–11, had previous managing experience, as he was a player-manager with the Browns from 1911–12, where he earned a 57–134 record.
Under Wallace, the Reds limped to a 5–20 record, including finishing the regular season on a 14 game losing streak. Overall, Cincinnati finished the season with a 56–98 record, finishing in last place in the National League, 40 games behind the pennant winning New York Giants.
Offensively, catcher Ernie Lombardi led the Reds with a .334 batting average, as he added nine home runs and 59 RBI in 120 games. Second baseman Alex Kampouris hit .249 with a team-high 17 home runs and 71 RBI in 146 games. Rightfielder Ival Goodman led the team with 150 hits, as he batted .273 with 12 home runs and 55 RBI in 147 games, as well as tying for the team lead with 10 stolen bases. Outfielder Kiki Cuyler hit .271 with 32 RBI, as well as tying Goodman with a team high 10 stolen bases.
On the pitching staff, Lee Grissom emerged as the ace of the team. Grissom earned a 12–17 record with a 3.26 ERA in 50 games, as he led the club with 14 complete games, 149 strikeouts, and 223.2 innings pitched. Paul Derringer was 10–14 with a 4.04 ERA in 43 games, which included 12 complete games. Despite a record of 4–13, Gene Schott led the Reds with a team best ERA of 2.97 in 37 games.
The Reds 56–98 was the worst record by the club since the 1934 season, in which the club earned a 52–99 record. The club won 18 fewer games than they did in 1936, when Cincinnati earned a 74–80 record. This marked the sixth consecutive season in which the club had finished with a record under .500. Attendance dropped to 411,221, which was 55,124 fewer fans than the 1936 season, and the lowest season attendance since the 1934 season.
Season standings
Record vs. opponents
Roster
Player stats
Batting
Starters by position
Note: Pos = Position; G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in
Other batters
Note: G = Games played; AB = At bats; H = Hits; Avg. = Batting average; HR = Home runs; RBI = Runs batted in
Pitchers batting data included in above table.
Pitching
Starting pitchers
Note: G = Games pitched; IP = Innings pitched; W = Wins; L = Losses; ERA = Earned run average; SO = Strikeouts
Other pitchers
Note: G = Games pitched; IP = Innings pitched; W = Wins; L = Losses; ERA = Earned run average; SO = Strikeouts
Relief pitchers
Note: G = Games pitched; W = Wins; L = Losses; SV = Saves; ERA = Earned run average; SO = Strikeouts
Farm system
References
External links
1937 Cincinnati Reds season at Baseball Reference
Cincinnati Reds seasons
Cincinnati Reds season
Cincinnati Reds
|
```java
/*
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.horcrux.svg;
import android.graphics.Rect;
import android.util.SparseArray;
import androidx.annotation.NonNull;
import com.facebook.common.logging.FLog;
import com.facebook.react.bridge.Dynamic;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.common.ReactConstants;
import com.facebook.react.uimanager.PixelUtil;
import com.facebook.react.uimanager.PointerEvents;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.ViewManagerDelegate;
import com.facebook.react.uimanager.ViewProps;
import com.facebook.react.uimanager.annotations.ReactProp;
import com.facebook.react.viewmanagers.RNSVGSvgViewAndroidManagerDelegate;
import com.facebook.react.viewmanagers.RNSVGSvgViewAndroidManagerInterface;
import com.facebook.react.views.view.ReactViewGroup;
import com.facebook.react.views.view.ReactViewManager;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Locale;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* ViewManager for RNSVGSvgView React views. Renders as a {@link SvgView} and handles invalidating
* the native view on view updates happening in the underlying tree.
*/
class SvgViewManager extends ReactViewManager
implements RNSVGSvgViewAndroidManagerInterface<SvgView> {
public static final String REACT_CLASS = "RNSVGSvgViewAndroid";
private static final SparseArray<SvgView> mTagToSvgView = new SparseArray<>();
private static final SparseArray<Runnable> mTagToRunnable = new SparseArray<>();
private final ViewManagerDelegate<SvgView> mDelegate;
protected ViewManagerDelegate getDelegate() {
return mDelegate;
}
public SvgViewManager() {
mDelegate = new RNSVGSvgViewAndroidManagerDelegate(this);
}
static void setSvgView(int tag, SvgView svg) {
mTagToSvgView.put(tag, svg);
Runnable task = mTagToRunnable.get(tag);
if (task != null) {
task.run();
mTagToRunnable.delete(tag);
}
}
static void runWhenViewIsAvailable(int tag, Runnable task) {
mTagToRunnable.put(tag, task);
}
static @Nullable SvgView getSvgViewByTag(int tag) {
return mTagToSvgView.get(tag);
}
@Nonnull
@Override
public String getName() {
return REACT_CLASS;
}
@Nonnull
@Override
public ReactViewGroup createViewInstance(ThemedReactContext reactContext) {
return new SvgView(reactContext);
}
@Override
public void updateExtraData(ReactViewGroup root, Object extraData) {
super.updateExtraData(root, extraData);
root.invalidate();
}
@Override
public void onDropViewInstance(@Nonnull ReactViewGroup view) {
super.onDropViewInstance(view);
mTagToSvgView.remove(view.getId());
}
@Override
public boolean needsCustomLayoutForChildren() {
return true;
}
@ReactProp(name = "tintColor", customType = "Color")
@Override
public void setTintColor(SvgView node, Integer tintColor) {
node.setTintColor(tintColor);
}
@ReactProp(name = "color", customType = "Color")
@Override
public void setColor(SvgView node, Integer color) {
node.setTintColor(color);
}
@ReactProp(name = "minX")
@Override
public void setMinX(SvgView node, float minX) {
node.setMinX(minX);
}
@ReactProp(name = "minY")
@Override
public void setMinY(SvgView node, float minY) {
node.setMinY(minY);
}
@ReactProp(name = "vbWidth")
@Override
public void setVbWidth(SvgView node, float vbWidth) {
node.setVbWidth(vbWidth);
}
@ReactProp(name = "vbHeight")
@Override
public void setVbHeight(SvgView node, float vbHeight) {
node.setVbHeight(vbHeight);
}
@ReactProp(name = "bbWidth")
public void setBbWidth(SvgView node, Dynamic bbWidth) {
node.setBbWidth(bbWidth);
}
@ReactProp(name = "bbHeight")
public void setBbHeight(SvgView node, Dynamic bbHeight) {
node.setBbHeight(bbHeight);
}
@ReactProp(name = "align")
@Override
public void setAlign(SvgView node, String align) {
node.setAlign(align);
}
@ReactProp(name = "meetOrSlice")
@Override
public void setMeetOrSlice(SvgView node, int meetOrSlice) {
node.setMeetOrSlice(meetOrSlice);
}
@ReactProp(name = ViewProps.POINTER_EVENTS)
public void setPointerEvents(SvgView view, @Nullable String pointerEventsStr) {
try {
Class<?> superclass = view.getClass().getSuperclass();
if (superclass != null) {
Method method = superclass.getDeclaredMethod("setPointerEvents", PointerEvents.class);
method.setAccessible(true);
method.invoke(
view, PointerEvents.valueOf(pointerEventsStr.toUpperCase(Locale.US).replace("-", "_")));
}
} catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
e.printStackTrace();
}
}
@Override
public void setHasTVPreferredFocus(SvgView view, boolean value) {
super.setTVPreferredFocus(view, value);
}
@Override
public void setBorderTopEndRadius(SvgView view, float value) {
super.setBorderRadius(view, 6, value);
}
@Override
public void setBorderBottomStartRadius(SvgView view, float value) {
super.setBorderRadius(view, 7, value);
}
@Override
public void setBorderBottomColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 4, value);
}
@Override
public void setNextFocusDown(SvgView view, int value) {
super.nextFocusDown(view, value);
}
@Override
public void setBorderRightColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 2, value);
}
@Override
public void setNextFocusRight(SvgView view, int value) {
super.nextFocusRight(view, value);
}
@Override
public void setBorderLeftColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 1, value);
}
@Override
public void setBorderColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 0, value);
}
@Override
public void setRemoveClippedSubviews(SvgView view, boolean value) {
super.setRemoveClippedSubviews(view, value);
}
@Override
public void setNextFocusForward(SvgView view, int value) {
super.nextFocusForward(view, value);
}
@Override
public void setNextFocusUp(SvgView view, int value) {
super.nextFocusUp(view, value);
}
@Override
public void setAccessible(SvgView view, boolean value) {
super.setAccessible(view, value);
}
@Override
public void setBorderStartColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 5, value);
}
@Override
public void setBorderBottomEndRadius(SvgView view, float value) {
super.setBorderRadius(view, 8, value);
}
@Override
public void setBorderEndColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 6, value);
}
@Override
public void setFocusable(SvgView view, boolean value) {
super.setFocusable(view, value);
}
@Override
public void setNativeBackgroundAndroid(SvgView view, @Nullable ReadableMap value) {
super.setNativeBackground(view, value);
}
@Override
public void setBorderTopStartRadius(SvgView view, float value) {
super.setBorderRadius(view, 5, value);
}
@Override
public void setNativeForegroundAndroid(SvgView view, @Nullable ReadableMap value) {
super.setNativeForeground(view, value);
}
@Override
public void setBackfaceVisibility(SvgView view, @Nullable String value) {
super.setBackfaceVisibility(view, value);
}
@Override
public void setBorderStyle(SvgView view, @Nullable String value) {
super.setBorderStyle(view, value);
}
@Override
public void setNeedsOffscreenAlphaCompositing(SvgView view, boolean value) {
super.setNeedsOffscreenAlphaCompositing(view, value);
}
@Override
public void setHitSlop(SvgView view, Dynamic hitSlop) {
// we don't call super here since its signature changed in RN 0.69 and we want backwards
// compatibility
switch (hitSlop.getType()) {
case Map:
ReadableMap hitSlopMap = hitSlop.asMap();
view.setHitSlopRect(
new Rect(
hitSlopMap.hasKey("left")
? (int) PixelUtil.toPixelFromDIP(hitSlopMap.getDouble("left"))
: 0,
hitSlopMap.hasKey("top")
? (int) PixelUtil.toPixelFromDIP(hitSlopMap.getDouble("top"))
: 0,
hitSlopMap.hasKey("right")
? (int) PixelUtil.toPixelFromDIP(hitSlopMap.getDouble("right"))
: 0,
hitSlopMap.hasKey("bottom")
? (int) PixelUtil.toPixelFromDIP(hitSlopMap.getDouble("bottom"))
: 0));
break;
case Number:
int hitSlopValue = (int) PixelUtil.toPixelFromDIP(hitSlop.asDouble());
view.setHitSlopRect(new Rect(hitSlopValue, hitSlopValue, hitSlopValue, hitSlopValue));
break;
default:
FLog.w(ReactConstants.TAG, "Invalid type for 'hitSlop' value " + hitSlop.getType());
/* falls through */
case Null:
view.setHitSlopRect(null);
break;
}
}
@Override
public void setBorderTopColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 3, value);
}
@Override
public void setNextFocusLeft(SvgView view, int value) {
super.nextFocusLeft(view, value);
}
@Override
public void setBorderBlockColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 9, value);
}
@Override
public void setBorderBlockEndColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 10, value);
}
@Override
public void setBorderBlockStartColor(SvgView view, @Nullable Integer value) {
super.setBorderColor(view, 11, value);
}
@Override
public void setBorderRadius(SvgView view, double value) {
super.setBorderRadius(view, 0, (float) value);
}
@Override
public void setBorderTopLeftRadius(SvgView view, double value) {
super.setBorderRadius(view, 1, (float) value);
}
@Override
public void setBorderTopRightRadius(SvgView view, double value) {
super.setBorderRadius(view, 2, (float) value);
}
@Override
public void setBorderBottomRightRadius(SvgView view, double value) {
super.setBorderRadius(view, 3, (float) value);
}
@Override
public void setBorderBottomLeftRadius(SvgView view, double value) {
super.setBorderRadius(view, 4, (float) value);
}
@Override
public void setBorderEndEndRadius(SvgView view, double value) {
super.setBorderRadius(view, 9, (float) value);
}
@Override
public void setBorderEndStartRadius(SvgView view, double value) {
super.setBorderRadius(view, 10, (float) value);
}
@Override
public void setBorderStartEndRadius(SvgView view, double value) {
super.setBorderRadius(view, 11, (float) value);
}
@Override
public void setBorderStartStartRadius(SvgView view, double value) {
super.setBorderRadius(view, 12, (float) value);
}
@Override
public void setTransformProperty(
@NonNull ReactViewGroup view,
@androidx.annotation.Nullable ReadableArray transforms,
@androidx.annotation.Nullable ReadableArray transformOrigin) {
super.setTransformProperty(view, transforms, transformOrigin);
((SvgView) view).setTransformProperty();
}
}
```
|
```ruby
# frozen_string_literal: true
module Decidim
module Budgets
# This cell renders the budgets list of a Budget component
class BudgetsListCell < BaseCell
AVAILABLE_ORDERS = %w(random highest_cost lowest_cost).freeze
include Decidim::CellsPaginateHelper
include Decidim::OrdersHelper
include Decidim::Orderable
include Cell::ViewModel::Partial
alias current_workflow model
delegate :allowed, :budgets, :highlighted, :voted, to: :current_workflow
delegate :voting_open?, :voting_finished?, to: :controller
def show
return unless budgets
render
end
def main_list = render
private
def highlighted?
current_user && highlighted.any?
end
def voted?
current_user && voted.any?
end
def finished?
return unless budgets.any?
current_user && (allowed - voted).none?
end
def i18n_scope
"decidim.budgets.budgets_list"
end
def budget_paginate
@budget_paginate ||= Kaminari.paginate_array(budgets).page(params[:page]).per(10)
end
def reordered_highlighted_budgets
return highlighted if highlighted.length < 2
reorder(budgets.where(id: highlighted.map(&:id)))
end
def reorder(budgets)
case order
when "highest_cost"
budgets.order(total_budget: :desc)
when "lowest_cost"
budgets.order(total_budget: :asc)
when "random"
budgets.order_randomly(random_seed)
else
budgets
end
end
def available_orders = AVAILABLE_ORDERS
end
end
end
```
|
```yaml
apiVersion: release-notes/v2
kind: bug-fix
area: istioctl
releaseNotes:
- |
**Fixed** the `istioctl experimental revision list` `REQD-COMPONENTS` column data being incomplete and general output format.
```
|
Rajni Tiwari (born 27 July 1973) is an Indian politician, a Minister of State in the Government of Uttar Pradesh and a member of the 18th Legislative Assembly. She represents the Shahabad constituency and is a member of the Bhartiya Janta Party.
Early life and education
Tiwari was born on 27 July 1973 to Krishna Prasad Agnihotri in Bilgram in Hardoi district. She graduated with a Bachelor of Arts from Arya Kanya Degree College, Hardoi, Kanpur University. Tiwari is an agriculturalist and businesswoman by profession.
Personal life
Tiwari was married to Upendra Tiwari, with whom she has a son and a daughter. Upendra Tiwari was an MLA from Bilgram constituency. He died in 2007 which left the Bilgram constituency seat vacant. Tiwari was elected as an MLA in the 2008 by-polls.
Positions held
See also
Government of Uttar Pradesh
Sixteenth Legislative Assembly of Uttar Pradesh
Fifteenth Legislative Assembly of Uttar Pradesh
Uttar Pradesh Legislative Assembly
Bhartiya Janta Party
References
1973 births
Living people
Women in Uttar Pradesh politics
Bharatiya Janata Party politicians from Uttar Pradesh
Uttar Pradesh MLAs 2017–2022
21st-century Indian women politicians
21st-century Indian politicians
Uttar Pradesh MLAs 2022–2027
|
```html
{% extends "!layout.html" %}
<!-- prettier-ignore -->
{%- block extrahead -%}
{% include 'extrahead.html' %}
{{ super() }}
{% endblock %}
{% block body %}
<div class="main-content">
<div class="centered-heading">
<h1>Welcome to Ray</h1>
<p>
An open source framework to build and scale your ML and Python
applications easily
</p>
</div>
<div class="heading-buttons">
<a href="{{ pathto('ray-overview/getting-started') }}">
<div class="header-button">
<i class="ri-play-line"></i>
<span>Get started with Ray</span>
</div>
</a>
<a href="{{ pathto('ray-overview/installation') }}">
<div class="header-button">
<i class="ri-install-line"></i>
<span>Install Ray</span>
</div>
</a>
<a href="{{ pathto('ray-overview/examples') }}">
<div class="header-button">
<i class="ri-code-block"></i>
<span>Ray Example Gallery</span>
</div>
</a>
</div>
<div class="clicky-tab-widget">
<h3>Scale with Ray</h3>
<div class="clicky-tab-side-by-side">
<div class="nav flex-column nav-pills" id="v-pills-tab">
<a class="nav-link active" id="v-pills-batch-tab">Batch inference</a>
<a class="nav-link" id="v-pills-training-tab">Model training</a>
<a class="nav-link" id="v-pills-tuning-tab">Hyperparameter tuning</a>
<a class="nav-link" id="v-pills-serving-tab">Model serving</a>
<a class="nav-link" id="v-pills-rl-tab">Reinforcement learning</a>
</div>
<div class="tab-area">
<div class="tab-content" id="v-pills-tabContent">
<!-- prettier-ignore -->
<div class="tab-pane fade show active no-copybutton" id="v-pills-data">
{{ pygments_highlight_python('''
from typing import Dict
import numpy as np
import ray
# Step 1: Create a Ray Dataset from in-memory Numpy arrays.
ds = ray.data.from_numpy(np.asarray(["Complete this", "for me"]))
# Step 2: Define a Predictor class for inference.
class HuggingFacePredictor:
def __init__(self):
from transformers import pipeline
# Initialize a pre-trained GPT2 Huggingface pipeline.
self.model = pipeline("text-generation", model="gpt2")
# Logic for inference on 1 batch of data.
def __call__(self, batch: Dict[str, np.ndarray]) -> Dict[str, list]:
# Get the predictions from the input batch.
predictions = self.model(
list(batch["data"]), max_length=20, num_return_sequences=1)
# `predictions` is a list of length-one lists. For example:
# [[{"generated_text": "output_1"}], ..., [{"generated_text": "output_2"}]]
# Modify the output to get it into the following format instead:
# ["output_1", "output_2"]
batch["output"] = [sequences[0]["generated_text"] for sequences in predictions]
return batch
# Use 2 parallel actors for inference. Each actor predicts on a
# different partition of data.
scale = ray.data.ActorPoolStrategy(size=2)
# Step 3: Map the Predictor over the Dataset to get predictions.
predictions = ds.map_batches(HuggingFacePredictor, compute=scale)
# Step 4: Show one prediction output.
predictions.show(limit=1)
''') }}
<div class="tab-pane-links">
<a href="{{ pathto('data/data') }}" target="_blank">Learn more about Ray Data</a>
<a href="{{ pathto('data/examples') }}" target="_blank">Examples</a>
</div>
</div>
<!-- prettier-ignore -->
<div class="tab-pane fade no-copybutton" id="v-pills-training">
{{ pygments_highlight_python('''
from ray.train import ScalingConfig
from ray.train.torch import TorchTrainer
# Step 1: Set up PyTorch model training as you normally would.
def train_func():
model = ...
train_dataset = ...
for epoch in range(num_epochs):
... # model training logic
# Step 2: Set up Ray\'s PyTorch Trainer to run on 32 GPUs.
trainer = TorchTrainer(
train_loop_per_worker=train_func,
scaling_config=ScalingConfig(num_workers=32, use_gpu=True),
datasets={"train": train_dataset},
)
# Step 3: Run distributed model training on 32 GPUs.
result = trainer.fit()
''') }}
<div class="tab-pane-links">
<a href="{{ pathto('train/train') }}" target="_blank">Learn more about Ray Train</a>
<a href="{{ pathto('train/examples') }}" target="_blank">Examples</a>
</div>
</div>
<!-- prettier-ignore -->
<div class="tab-pane fade no-copybutton" id="v-pills-tuning">
{{ pygments_highlight_python('''
from ray import tune
from ray.train import ScalingConfig
from ray.train.lightgbm import LightGBMTrainer
train_dataset, eval_dataset = ...
# Step 1: Set up Ray\'s LightGBM Trainer to train on 64 CPUs.
trainer = LightGBMTrainer(
...
scaling_config=ScalingConfig(num_workers=64),
datasets={"train": train_dataset, "eval": eval_dataset},
)
# Step 2: Set up Ray Tuner to run 1000 trials.
tuner = tune.Tuner(
trainer=trainer,
param_space=hyper_param_space,
tune_config=tune.TuneConfig(num_samples=1000),
)
# Step 3: Run distributed HPO with 1000 trials; each trial runs on 64 CPUs.
result_grid = tuner.fit()
''') }}
<div class="tab-pane-links">
<a href="{{ pathto('tune/index') }}" target="_blank">Learn more about Ray Tune</a>
<a href="{{ pathto('tune/examples/index') }}" target="_blank">Examples</a>
</div>
</div>
<!-- prettier-ignore -->
<div class="tab-pane fade no-copybutton" id="v-pills-serving">
{{ pygments_highlight_python('''
from io import BytesIO
from fastapi import FastAPI
from fastapi.responses import Response
import torch
from ray import serve
from ray.serve.handle import DeploymentHandle
app = FastAPI()
@serve.deployment(num_replicas=1)
@serve.ingress(app)
class APIIngress:
def __init__(self, diffusion_model_handle: DeploymentHandle) -> None:
self.handle = diffusion_model_handle
@app.get(
"/imagine",
responses={200: {"content": {"image/png": {}}}},
response_class=Response,
)
async def generate(self, prompt: str, img_size: int = 512):
assert len(prompt), "prompt parameter cannot be empty"
image = await self.handle.generate.remote(prompt, img_size=img_size)
file_stream = BytesIO()
image.save(file_stream, "PNG")
return Response(content=file_stream.getvalue(), media_type="image/png")
@serve.deployment(
ray_actor_options={"num_gpus": 1},
autoscaling_config={"min_replicas": 0, "max_replicas": 2},
)
class StableDiffusionV2:
def __init__(self):
from diffusers import EulerDiscreteScheduler, StableDiffusionPipeline
model_id = "stabilityai/stable-diffusion-2"
scheduler = EulerDiscreteScheduler.from_pretrained(
model_id, subfolder="scheduler"
)
self.pipe = StableDiffusionPipeline.from_pretrained(
model_id, scheduler=scheduler, revision="fp16", torch_dtype=torch.float16
)
self.pipe = self.pipe.to("cuda")
def generate(self, prompt: str, img_size: int = 512):
assert len(prompt), "prompt parameter cannot be empty"
with torch.autocast("cuda"):
image = self.pipe(prompt, height=img_size, width=img_size).images[0]
return image
entrypoint = APIIngress.bind(StableDiffusionV2.bind())
''') }}
<div class="tab-pane-links">
<a href="{{ pathto('serve/index') }}" target="_blank">Learn more about Ray Serve</a>
<a href="{{ pathto('serve/examples') }}" target="_blank">Examples</a>
</div>
</div>
<!-- prettier-ignore -->
<div class="tab-pane fade no-copybutton" id="v-pills-rl">
{{ pygments_highlight_python('''
from ray.rllib.algorithms.ppo import PPOConfig
# Step 1: Configure PPO to run 64 parallel workers to collect samples from the env.
ppo_config = (
PPOConfig()
.environment(env="Taxi-v3")
.rollouts(num_rollout_workers=64)
.framework("torch")
.training(model=rnn_lage)
)
# Step 2: Build the PPO algorithm.
ppo_algo = ppo_config.build()
# Step 3: Train and evaluate PPO.
for _ in range(5):
print(ppo_algo.train())
ppo_algo.evaluate()
''') }}
<div class="tab-pane-links">
<a href="{{ pathto('rllib/index') }}" target="_blank">Learn more about Ray RLlib</a>
<a href="{{ pathto('rllib/rllib-examples') }}" target="_blank">Examples</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-area">
<h3>Beyond the basics</h3>
<div class="card-row">
<div class="link-card">
<div class="link-card-icon-label">
<div class="card-icon">
<svg
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="path_to_url"
>
<g clip-path="url(#clip0_129_1153)">
<path
d="M28 7H4C3.44772 7 3 7.44772 3 8V11C3 11.5523 3.44772 12 4 12H28C28.5523 12 29 11.5523 29 11V8C29 7.44772 28.5523 7 28 7Z"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M27 12V24C27 24.2652 26.8946 24.5196 26.7071 24.7071C26.5196 24.8946 26.2652 25 26 25H6C5.73478 25 5.48043 24.8946 5.29289 24.7071C5.10536 24.5196 5 24.2652 5 24V12"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M13 17H19"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</g>
<defs>
<clipPath id="clip0_129_1153">
<rect width="32" height="32" fill="white" />
</clipPath>
</defs>
</svg>
</div>
<h4>Ray Libraries</h4>
</div>
<div class="card-text-area">
<p>
Scale the entire ML pipeline from data ingest to model serving with
high-level Python APIs that integrate with popular ecosystem
frameworks.
</p>
<a
href="{{ pathto('ray-overview/getting-started') }}"
target="_blank"
>
Learn more
</a>
</div>
</div>
<div class="link-card">
<div class="link-card-icon-label">
<div class="card-icon">
<svg
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="path_to_url"
>
<g clip-path="url(#clip0_129_1163)">
<path
d="M13.0003 15.8675C12.2009 14.4208 11.8692 12.762 12.0509 11.1192C12.2325 9.47632 12.9185 7.93006 14.0147 6.69294C15.1108 5.45582 16.5632 4.58859 18.1722 4.21046C19.7812 3.83233 21.4679 3.96186 23.0003 4.58125L18.0003 10L18.7078 13.2925L22.0003 14L27.4191 9C28.0385 10.5324 28.168 12.2191 27.7899 13.8281C27.4117 15.4371 26.5445 16.8895 25.3074 17.9857C24.0703 19.0818 22.524 19.7678 20.8811 19.9495C19.2383 20.1311 17.5795 19.7994 16.1328 19L9.12532 27.125C8.56174 27.6886 7.79735 28.0052 7.00032 28.0052C6.20329 28.0052 5.43891 27.6886 4.87532 27.125C4.31174 26.5614 3.99512 25.797 3.99512 25C3.99512 24.203 4.31174 23.4386 4.87532 22.875L13.0003 15.8675Z"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</g>
<defs>
<clipPath id="clip0_129_1163">
<rect width="32" height="32" fill="white" />
</clipPath>
</defs>
</svg>
</div>
<h4>Ray Core</h4>
</div>
<div class="card-text-area">
<p>
Scale generic Python code with simple, foundational primitives that
enable a high degree of control for building distributed
applications or custom platforms.
</p>
<a href="{{ pathto('ray-core/walkthrough') }}" target="_blank">
Learn more
</a>
</div>
</div>
<div class="link-card">
<div class="link-card-icon-label">
<div class="card-icon">
<svg
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="path_to_url"
>
<g clip-path="url(#clip0_129_1171)">
<path
d="M14 23H4C3.46957 23 2.96086 22.7893 2.58579 22.4142C2.21071 22.0391 2 21.5304 2 21V12C2 11.4696 2.21071 10.9609 2.58579 10.5858C2.96086 10.2107 3.46957 10 4 10H14"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M14 27H8"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M26 9H22"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M26 13H22"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M29 5H19C18.4477 5 18 5.44772 18 6V26C18 26.5523 18.4477 27 19 27H29C29.5523 27 30 26.5523 30 26V6C30 5.44772 29.5523 5 29 5Z"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M11 23V27"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
id="link-card-icon-filled"
d="M24 24C24.8284 24 25.5 23.3284 25.5 22.5C25.5 21.6716 24.8284 21 24 21C23.1716 21 22.5 21.6716 22.5 22.5C22.5 23.3284 23.1716 24 24 24Z"
/>
</g>
<defs>
<clipPath id="clip0_129_1171">
<rect width="32" height="32" fill="white" />
</clipPath>
</defs>
</svg>
</div>
<h4>Ray Clusters</h4>
</div>
<div class="card-text-area">
<p>
Deploy a Ray cluster on AWS, GCP, Azure, or Kubernetes
to seamlessly scale workloads for production.
</p>
<a href="{{ pathto('cluster/getting-started') }}" target="_blank">
Learn more
</a>
</div>
</div>
</div>
</div>
<div class="links-grid-wrapper">
<h3>Getting involved</h3>
<div class="links-grid">
<b>Join the community</b>
<b>Get support</b>
<b>Contribute to Ray</b>
<a
class="community-box"
href="path_to_url"
target="_blank"
>
<i class="ri-team-line"></i>
<p>Attend community events</p>
</a>
<a
class="community-box"
href="path_to_url"
target="_blank"
>
<i class="ri-slack-line"></i>
<p>Find community on Slack</p>
</a>
<a
class="community-box"
href="./ray-contribute/getting-involved.html"
target="_blank"
>
<i class="ri-send-plane-2-line"></i>
<p>Contributor's guide</p>
</a>
<a
class="community-box"
href="path_to_url"
target="_blank"
>
<i class="ri-send-plane-2-line"></i>
<p>Subscribe to the newsletter</p>
</a>
<a class="community-box" href="path_to_url" target="_blank">
<i class="ri-chat-4-line"></i>
<p>Ask questions on the forum</p>
</a>
<a
class="community-box"
href="path_to_url"
target="_blank"
>
<i class="ri-github-line"></i>
<p>Create pull requests</p>
</a>
<a
class="community-box"
href="path_to_url"
target="_blank"
>
<i class="ri-twitter-line"></i>
<p>Follow us on Twitter</p>
</a>
<a
class="community-box"
href="path_to_url"
target="_blank"
>
<i class="ri-github-line"></i>
<p>Open an issue</p>
</a>
</div>
</div>
</div>
{{ super() }} {% endblock %}
```
|
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<parent>
<groupId>face2face</groupId>
<artifactId>face2face</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>protobuf</groupId>
<artifactId>protobuf</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>thirdparty</groupId>
<artifactId>thirdparty</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
```
|
```lua
w,h = System:screenSize();
player = AudioPlayer("path_to_url");
--player = AudioPlayer("path_to_url");
button = Button();
button:title("");
button:frame(0,100,w,40);
button:backgroundColor(0xff,1);
button:callback( function()
if( player ) then
player:play();
end
end)
player:play();
```
|
```c
/*
*
*/
#include "esp_log.h"
#include "unity.h"
#include "param_test.h"
void test_serializer(const param_group_t *param_group, const ptest_func_t* test_func)
{
ESP_LOGI("test", "run test: %s", param_group->name);
//in this test case, we want to make two devices as similar as possible, so use the same context
void *context = NULL;
test_func->pre_test(&context);
void *pset = param_group->param_group;
for (int i = param_group->pset_num; i > 0; i--) {
if (test_func->def_param) {
test_func->def_param(pset);
}
test_func->loop(pset, context);
pset += param_group->pset_size;
}
test_func->post_test(context);
free(context);
context = NULL;
}
```
|
Piccaninnie Ponds Conservation Park, formerly the Piccaninnie Ponds National Park, is a protected area of located in southeastern South Australia near Mount Gambier.
Description
The Piccaninnie Ponds Conservation Park is located in the south-east of South Australia in the gazetted locality of Wye on the continental coastline overlooking Discovery Bay about southeast of the state capital of Adelaide and south-east of the city of Mount Gambier.
The conservation park conserves a wetland fed by freshwater springs in a karst landscape.
It is close to the border with Victoria and is part of the Discovery Bay to Piccaninnie Ponds Important Bird Area, identified by BirdLife International as being of global significance for several bird species. It is a listed Ramsar site. The park contains a walking track through coastal woodland to a viewing platform overlooking the wetlands.
Recreational diving
Piccaninnie Ponds is a popular site for both snorkelling and cave diving. In 1964–1965, prior to its proclamation as a national park in 1969, underwater explorer Valerie Taylor described the ponds as "one of the most beautiful sights in Australia" and said that the crystal clear water gave her a feeling of unhindered flight. It contains three main features of interest to cave divers. The ‘First Pond’ is an open depression about deep with a silt floor and vegetated fringe supporting much aquatic life. The ‘Chasm’ is a sinkhole with a depth of over , and the ‘Cathedral’ is an enclosed area with limestone formations and a depth of about . Underwater visibility is excellent and may exceed . Snorkelling and cave diving at Piccaninnie Ponds is by permit only.
Accidents
Several divers have died while exploring the caves beneath Piccaninnie Ponds, in 1972, 1974 and 1984.
Flora and fauna
The pond contains various species of native plants, freshwater fish, eels and shrimp.
See also
References
Further reading
Horne, P.; (1985), CDAA Research Group Report No. 3: Piccaninnie Ponds Mapping Project, November 1984 – April 1985 () OCLC: 27574762.
Horne, P; and Harris, R.; (2009), Piccaninnie Ponds Collaborative Research Project: Exploration and General Research Activities, May/June 2008 and Oct/Nov 2009 (with South Australian Department of Water, Land and Biodiversity Conservation (DWLBC) and the South Australian Department for Environment and Heritage (DEH)).
External links
Piccaninnie Ponds Conservation Park official webpage
Ponds Conservation Park Diving and Snorkelling Guidelines (PDF download)
Piccaninnie Ponds Conservation Park webpage on protected planet
Conservation parks of South Australia
Protected areas established in 1969
1969 establishments in Australia
Limestone Coast
Sinkholes of Australia
Underwater diving sites in Australia
Ramsar sites in Australia
|
The Tower of Calanca () is a Genoese tower located in the commune of Olmeto on the west coast of Corsica.
The tower was built in the second half of the 16th century. It was one of a series of coastal defences constructed by the Republic of Genoa between 1530 and 1620 to stem the attacks by Barbary pirates.
See also
List of Genoese towers in Corsica
References
Towers in Corsica
Buildings and structures in Corse-du-Sud
Tourist attractions in Corse-du-Sud
|
The Danube Expressway or Galați–Brăila Expressway () is an expressway under construction in the south-eastern part of Romania, that will probably be labelled as the DEx6. It will link the cities of Galați and Brăila, be long and serve as an alternative to the existing two-lane DN22B () road.
Under construction as of 2021, the expressway is being built by the Romanian company Spedition UMB with scheduled opening in 2024, costing 371 million lei. It is part of the series of major infrastructure projects planned within the proposed Danube metropolitan area, which includes a bridge over the Danube river in Brăila.
See also
Roads in Romania
Transport in Romania
References
Proposed roads in Romania
Expressways in Romania
|
```c
/* $OpenBSD: m_post.c,v 1.8 2023/10/17 09:52:10 nicm Exp $ */
/****************************************************************************
* *
* 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, distribute with modifications, 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 ABOVE 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. *
* *
* Except as contained in this notice, the name(s) of the above copyright *
* holders shall not be used in advertising or otherwise to promote the *
* sale, use or other dealings in this Software without prior written *
* authorization. *
****************************************************************************/
/****************************************************************************
* Author: Juergen Pfeifer, 1995,1997 *
****************************************************************************/
/***************************************************************************
* Module m_post *
* Write or erase menus from associated subwindows *
***************************************************************************/
#include "menu.priv.h"
MODULE_ID("$Id: m_post.c,v 1.8 2023/10/17 09:52:10 nicm Exp $")
/*your_sha256_hash-----------
| Facility : libnmenu
| Function : void _nc_Post_Item(MENU *menu, ITEM *item)
|
| Description : Draw the item in the menus window at the current
| window position
|
| Return Values : -
+your_sha256_hash----------*/
MENU_EXPORT(void)
_nc_Post_Item(const MENU *menu, const ITEM *item)
{
int i;
chtype ch;
int item_x, item_y;
int count = 0;
bool isfore = FALSE, isback = FALSE, isgrey = FALSE;
int name_len;
assert(menu->win);
getyx(menu->win, item_y, item_x);
/* We need a marker iff
- it is a onevalued menu and it is the current item
- or it has a selection value
*/
wattron(menu->win, (int)menu->back);
if (item->value || (item == menu->curitem))
{
if (menu->marklen)
{
/* In a multi selection menu we use the fore attribute
for a selected marker that is not the current one.
This improves visualization of the menu, because now
always the 'normal' marker denotes the current
item. */
if (!(menu->opt & O_ONEVALUE) && item->value && item != menu->curitem)
{
wattron(menu->win, (int)menu->fore);
isfore = TRUE;
}
waddstr(menu->win, menu->mark);
if (isfore)
{
wattron(menu->win, (int)menu->fore);
isfore = FALSE;
}
}
}
else /* otherwise we have to wipe out the marker area */
for (ch = ' ', i = menu->marklen; i > 0; i--)
waddch(menu->win, ch);
wattroff(menu->win, (int)menu->back);
count += menu->marklen;
/* First we have to calculate the attribute depending on selectability
and selection status
*/
if (!(item->opt & O_SELECTABLE))
{
wattron(menu->win, (int)menu->grey);
isgrey = TRUE;
}
else
{
if (item->value || item == menu->curitem)
{
wattron(menu->win, (int)menu->fore);
isfore = TRUE;
}
else
{
wattron(menu->win, (int)menu->back);
isback = TRUE;
}
}
waddnstr(menu->win, item->name.str, item->name.length);
name_len = _nc_Calculate_Text_Width(&(item->name));
for (ch = ' ', i = menu->namelen - name_len; i > 0; i--)
{
waddch(menu->win, ch);
}
count += menu->namelen;
/* Show description if required and available */
if ((menu->opt & O_SHOWDESC) && menu->desclen > 0)
{
int m = menu->spc_desc / 2;
int cy = -1, cx = -1;
int desc_len;
for (ch = ' ', i = 0; i < menu->spc_desc; i++)
{
if (i == m)
{
waddch(menu->win, menu->pad);
getyx(menu->win, cy, cx);
}
else
waddch(menu->win, ch);
}
if (item->description.length)
waddnstr(menu->win, item->description.str, item->description.length);
desc_len = _nc_Calculate_Text_Width(&(item->description));
for (ch = ' ', i = menu->desclen - desc_len; i > 0; i--)
{
waddch(menu->win, ch);
}
count += menu->desclen + menu->spc_desc;
if (menu->spc_rows > 1)
{
int j, k, ncy, ncx;
assert(cx >= 0 && cy >= 0);
getyx(menu->win, ncy, ncx);
if (isgrey)
wattroff(menu->win, (int)menu->grey);
else if (isfore)
wattroff(menu->win, (int)menu->fore);
wattron(menu->win, (int)menu->back);
for (j = 1; j < menu->spc_rows; j++)
{
if ((item_y + j) < getmaxy(menu->win))
{
wmove(menu->win, item_y + j, item_x);
for (k = 0; k < count; k++)
waddch(menu->win, ' ');
}
if ((cy + j) < getmaxy(menu->win))
(void)mvwaddch(menu->win, cy + j, cx - 1, menu->pad);
}
wmove(menu->win, ncy, ncx);
if (!isback)
wattroff(menu->win, (int)menu->back);
}
}
/* Remove attributes */
if (isfore)
wattroff(menu->win, (int)menu->fore);
if (isback)
wattroff(menu->win, (int)menu->back);
if (isgrey)
wattroff(menu->win, (int)menu->grey);
}
/*your_sha256_hash-----------
| Facility : libnmenu
| Function : void _nc_Draw_Menu(const MENU *)
|
| Description : Display the menu in its windows
|
| Return Values : -
+your_sha256_hash----------*/
MENU_EXPORT(void)
_nc_Draw_Menu(const MENU *menu)
{
ITEM *item = menu->items[0];
ITEM *lastvert;
ITEM *hitem;
chtype s_bkgd;
assert(item && menu->win);
s_bkgd = getbkgd(menu->win);
wbkgdset(menu->win, menu->back);
werase(menu->win);
wbkgdset(menu->win, s_bkgd);
lastvert = (menu->opt & O_NONCYCLIC) ? (ITEM *)0 : item;
if (item != NULL)
{
int y = 0;
do
{
ITEM *lasthor;
wmove(menu->win, y, 0);
hitem = item;
lasthor = (menu->opt & O_NONCYCLIC) ? (ITEM *)0 : hitem;
do
{
_nc_Post_Item(menu, hitem);
wattron(menu->win, (int)menu->back);
if (((hitem = hitem->right) != lasthor) && hitem)
{
int i, j, cy, cx;
chtype ch = ' ';
getyx(menu->win, cy, cx);
for (j = 0; j < menu->spc_rows; j++)
{
wmove(menu->win, cy + j, cx);
for (i = 0; i < menu->spc_cols; i++)
{
waddch(menu->win, ch);
}
}
wmove(menu->win, cy, cx + menu->spc_cols);
}
}
while (hitem && (hitem != lasthor));
wattroff(menu->win, (int)menu->back);
item = item->down;
y += menu->spc_rows;
}
while (item && (item != lastvert));
}
}
/*your_sha256_hash-----------
| Facility : libnmenu
| Function : int post_menu(MENU* menu)
|
| Description : Post a menu to the screen. This makes it visible.
|
| Return Values : E_OK - success
| E_BAD_ARGUMENT - not a valid menu pointer
| E_SYSTEM_ERROR - error in lower layers
| E_NOT_CONNECTED - No items connected to menu
| E_BAD_STATE - Menu in userexit routine
| E_POSTED - Menu already posted
+your_sha256_hash----------*/
MENU_EXPORT(int)
post_menu(MENU *menu)
{
T((T_CALLED("post_menu(%p)"), (void *)menu));
if (!menu)
RETURN(E_BAD_ARGUMENT);
if (menu->status & _IN_DRIVER)
RETURN(E_BAD_STATE);
if (menu->status & _POSTED)
RETURN(E_POSTED);
if (menu->items && *(menu->items))
{
int h = 1 + menu->spc_rows * (menu->rows - 1);
WINDOW *win = Get_Menu_Window(menu);
int maxy = getmaxy(win);
if ((menu->win = newpad(h, menu->width)))
{
int y = (maxy >= h) ? h : maxy;
if (y >= menu->height)
y = menu->height;
if (!(menu->sub = subpad(menu->win, y, menu->width, 0, 0)))
RETURN(E_SYSTEM_ERROR);
}
else
RETURN(E_SYSTEM_ERROR);
if (menu->status & _LINK_NEEDED)
_nc_Link_Items(menu);
}
else
RETURN(E_NOT_CONNECTED);
SetStatus(menu, _POSTED);
if (!(menu->opt & O_ONEVALUE))
{
ITEM **items;
for (items = menu->items; *items; items++)
{
(*items)->value = FALSE;
}
}
_nc_Draw_Menu(menu);
Call_Hook(menu, menuinit);
Call_Hook(menu, iteminit);
_nc_Show_Menu(menu);
RETURN(E_OK);
}
/*your_sha256_hash-----------
| Facility : libnmenu
| Function : int unpost_menu(MENU*)
|
| Description : Detach menu from screen
|
| Return Values : E_OK - success
| E_BAD_ARGUMENT - not a valid menu pointer
| E_BAD_STATE - menu in userexit routine
| E_NOT_POSTED - menu is not posted
+your_sha256_hash----------*/
MENU_EXPORT(int)
unpost_menu(MENU *menu)
{
WINDOW *win;
T((T_CALLED("unpost_menu(%p)"), (void *)menu));
if (!menu)
RETURN(E_BAD_ARGUMENT);
if (menu->status & _IN_DRIVER)
RETURN(E_BAD_STATE);
if (!(menu->status & _POSTED))
RETURN(E_NOT_POSTED);
Call_Hook(menu, itemterm);
Call_Hook(menu, menuterm);
win = Get_Menu_Window(menu);
werase(win);
wsyncup(win);
assert(menu->sub);
delwin(menu->sub);
menu->sub = (WINDOW *)0;
assert(menu->win);
delwin(menu->win);
menu->win = (WINDOW *)0;
ClrStatus(menu, _POSTED);
RETURN(E_OK);
}
/* m_post.c ends here */
```
|
Christmas Could Have Been Good is a song by Swedish rock band Mando Diao which was released digitally on December 2, 2011 along with a video . In January 2012, the song was added as the only previously unreleased song to the compilation album Greatest Hits Volume 1.
References
2011 singles
Mando Diao songs
2011 songs
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "path_to_url">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class template last_value</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="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../signals2/reference.html#header.boost.signals2.last_value_hpp" title="Header <boost/signals2/last_value.hpp>">
<link rel="prev" href="dummy_mutex.html" title="Class dummy_mutex">
<link rel="next" href="last_valu_1_3_37_6_5_1_1_2.html" title="Class last_value<void>">
</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="dummy_mutex.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../signals2/reference.html#header.boost.signals2.last_value_hpp"><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="last_valu_1_3_37_6_5_1_1_2.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.signals2.last_value"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template last_value</span></h2>
<p>boost::signals2::last_value — Evaluate an <a class="link" href="../../InputIterator.html" title="Concept InputIterator">InputIterator</a> sequence and return the
last value in the sequence.</p>
</div>
<h2 xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../signals2/reference.html#header.boost.signals2.last_value_hpp" title="Header <boost/signals2/last_value.hpp>">boost/signals2/last_value.hpp</a>>
</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span>
<span class="keyword">class</span> <a class="link" href="last_value.html" title="Class template last_value">last_value</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
<span class="comment">// types</span>
<span class="keyword">typedef</span> <span class="identifier">T</span> <a name="boost.signals2.last_value.result_type"></a><span class="identifier">result_type</span><span class="special">;</span>
<span class="comment">// <a class="link" href="last_value.html#id-1_3_37_6_5_1_1_1_5-bb">invocation</a></span>
<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <a class="link" href="../../InputIterator.html" title="Concept InputIterator">InputIterator</a><span class="special">></span>
<span class="identifier">result_type</span> <a class="link" href="last_value.html#id-1_3_37_6_5_1_1_1_5_1-bb"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">InputIterator</span><span class="special">,</span> <span class="identifier">InputIterator</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.37.6.6.3.4"></a><h2>Description</h2>
<p>
The <code class="computeroutput">last_value</code> class was the default <code class="computeroutput">Combiner</code> template parameter
type for signals in the original Signals library.
Signals2 uses <a class="link" href="optional_last_value.html" title="Class template optional_last_value">optional_last_value</a> as the default, which
does not throw.
</p>
<div class="refsect2">
<a name="id-1.3.37.6.6.3.4.3"></a><h3>
<a name="id-1_3_37_6_5_1_1_1_5-bb"></a><code class="computeroutput">last_value</code> invocation</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <a class="link" href="../../InputIterator.html" title="Concept InputIterator">InputIterator</a><span class="special">></span>
<span class="identifier">result_type</span> <a name="id-1_3_37_6_5_1_1_1_5_1-bb"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term">Effects:</span></p></td>
<td><p>Attempts to dereference every iterator in the sequence <code class="computeroutput">[first, last)</code>.
</p></td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The result of the last successful iterator dereference.</p></td>
</tr>
<tr>
<td><p><span class="term">Throws:</span></p></td>
<td><p><a class="link" href="no_slots_error.html" title="Class no_slots_error">no_slots_error</a> if no iterators were successfully dereferenced,
unless the template type of <code class="computeroutput">last_value</code> is <code class="computeroutput">void</code>.</p></td>
</tr>
</tbody>
</table></div>
</li></ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.37.6.6.3.4.4"></a><h3>Specializations</h3>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p><a class="link" href="last_valu_1_3_37_6_5_1_1_2.html" title="Class last_value<void>">Class last_value<void></a></p></li></ul></div>
</div>
</div>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<code class="filename">LICENSE_1_0.txt</code> or copy at <a href="path_to_url" target="_top">path_to_url
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="dummy_mutex.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../signals2/reference.html#header.boost.signals2.last_value_hpp"><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="last_valu_1_3_37_6_5_1_1_2.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
BMF (or Black Mafia Family) is an American crime drama television series created by Randy Huggins, which follows the Black Mafia Family, a drug trafficking and money laundering organization. The series premiered on September 26, 2021, on Starz. After the series premiere, the series was renewed for a second season which premiered on January 6, 2023. In January 2023, the series was renewed for a third season, which will premiere on March 1, 2024.
Plot
BMF is inspired by the true story of two brothers who rose from the decaying streets of southwest Detroit in the late 1980s and gave birth to one of the most influential crime families in the history of America. Demetrius "Big Meech" Flenory's charismatic leadership, Terry "Southwest T" Flenory's business acumen and the fraternal partnership's vision beyond the drug trade and into the world of hip hop would render the brothers iconic on a global level. Their unwavering belief in family loyalty would be the cornerstone of their partnership and the crux of their eventual estrangement. This is a story about love, betrayal, and thug-capitalism in the pursuit of the American dream.
Cast and characters
Main
Demetrius Flenory Jr. as Demetrius "Meech" Flenory, drug kingpin, Charles & Lucille’s son, Terry & Nicole’s brother.
Da'Vinchi as Terry "Southwest T" Flenory, drug kingpin, Charles & Lucille’s youngest son & Nicole & Meech’s brother
Russell Hornsby as Charles Flenory, Meech, Terry & Nicole’s father & Lucille’s husband
Michole Briana White as Lucille Flenory, Charles’ wife, Meech, Terry & Nicole’s mother
Eric Kofi-Abrefa as Lamar Silas, Meech’s rival
Ajiona Alexus as Kato (season 1)
Myles Truitt as B-Mickie, Meech & Terry's childhood friend & partner
Steve Harris as Detective Von Bryant, the detective assigned to stop Meech & Terry’s operation.
La La Anthony as Markaisha Taylor, Terry's new love interest (recurring season 1; main season 2)
Kelly Hu as Detective Veronica Jin, Detective Bryant’s partner (season 2)
Recurring
Laila Pruitt as Nicole Flenory, Meech & Terry's sister and Lucille & Charles’ daughter
Kash Doll as Monique, Lamar’s ex & Meech’s baby's mother (seasons 1—2: guest season 3)
Wood Harris as Pat, Meech & Terry’s former supplier (season 1)
Snoop Dogg as Pastor Swift, the pastor of the local church
Lil Zane as Sockie (seasons 1—2)
Serayah as Lori Walker (seasons 1—2)
Markice Moore as Filmel
Yusef Thomas as Roland, member of the BMF
Sean Michael Gloria as Detective Jonathan Lopez, Bryant’s former partner who was killed by Kato as he tried to detain Meech
Sydney Mitchell as Lawanda
Tyshown Freeman as Hoop, member of the BMF (season 1—2)
Peyton Alex Smith as Boom, Markaisha's abusive husband (season 1—2)
Christine Horn as Mabel Jones (season 2)
Leslie Jones as Federal Agent Tracy Chambers (season 2)
Caresha Romeka Brownee as Deanna Washington, Ty Washington’s Wife (season 2)
Jerel Alston as Kevin Bryant, Detective Bryant’s son (Season 2)
Javen Lewis as Markus, Kevin’s bully who is killed by Kevin for harassing him constantly
Mo'Nique as Goldie, Meech’s new partner who stays in Atlanta (season 2)
Donnell Rawlings as Alvin, Lamar’s cousin (season 2)
Mike Merrill as Ty Washington, Meech’s partner who was later killed (season 2)
Rayan Lawrence as K-9, Meech’s loyal partner (season 2)
2 Chainz as Stacks (season 3)
Ne-Yo as Rodney 'Greeny' Green (season 3)
Michael King as RIP (season 3)
Cameo appearances
Eminem as White Boy Rick
Jalen Rose as Tariq (season 2)
Episodes
Series overview
Season 1 (2021)
Season 2 (2023)
Season 3 (2024)
The third episode, titled "Sanctuary", was directed by Cierra 'Shooter' Glaude.
Production
Development
In July 2019, it was announced Curtis "50 Cent" Jackson had begun developing a television series revolving around Black Mafia Family, which he would executive produce for Starz. In April 2020, Starz greenlit the series. Production companies are slated to consist of Lionsgate Television and G-Unit Films and Television Inc. On September 30, 2021, Starz renewed the series for a second season only 4 days after the series' premiere. The second season is scheduled to premiere on January 6, 2023. On January 18, 2023, Starz renewed the series for a third season.
Casting
In December 2020, Russell Hornsby and Steve Harris joined the cast of the series, with Kash Doll set to star in a recurring role. In January 2021, Demetrius Flenory Jr., Da'Vinchi, Michole Briana White, Ajiona Alexus, Eric Kofi-Abrefa and Myles Truitt joined the cast in starring roles. In March 2021, Snoop Dogg, La La Anthony and Serayah joined the cast in recurring role. In September 2021, Sean Michael Gloria was cast in a recurring role. In March 2022, La La Anthony had been promoted to series regular while Kelly Hu was cast as a new series regular and Christine Horn and Leslie Jones joined the cast in a recurring role for the second season. In February 2023, 2 Chainz and Ne-Yo were cast in recurring roles for the third season.
Filming
Principal photography began in January 2021 with filming done in Atlanta and Detroit.
During production of season 3 in June 2023, producer Ian Woolf was suspended by Lionsgate following an incident involving Woolf threatening to run over striking writers who were picketing outside of BMF's production facility. Woolf allegedly admitted to trying to scare the writers after first claiming he did not see them, and was unsuccessful in allegedly pleading with Teamsters to cross the picket line.
References
External links
2020s American black television series
2020s American crime drama television series
2021 American television series debuts
English-language television shows
Starz original programming
Television series about families
Television series about organized crime
Television series based on actual events
Television series by G-Unit Films and Television Inc.
Television series by Lionsgate Television
Television series set in the 1980s
Television shows filmed in Atlanta
Television shows filmed in Michigan
Television shows set in Detroit
Works about African-American organized crime
|
```python
# Basic unit tests for jsval pretty-printer.
assert_subprinter_registered('SpiderMonkey', 'JS::Value')
run_fragment('jsval.simple')
assert_pretty('fortytwo', '$jsval(42)')
assert_pretty('negone', '$jsval(-1)')
assert_pretty('undefined', 'JSVAL_VOID')
assert_pretty('null', 'JSVAL_NULL')
assert_pretty('js_true', 'JSVAL_TRUE')
assert_pretty('js_false', 'JSVAL_FALSE')
assert_pretty('elements_hole', '$jsmagic(JS_ELEMENTS_HOLE)')
assert_pretty('empty_string', '$jsval("")')
assert_pretty('friendly_string', '$jsval("Hello!")')
assert_pretty('symbol', '$jsval(Symbol.for("Hello!"))')
assert_pretty('global', '$jsval((JSObject *) [object global] delegate)')
assert_pretty('onehundredthirtysevenonehundredtwentyeighths', '$jsval(1.0703125)')
```
|
```php
<?php
namespace Sentry\Laravel\Features\Storage;
trait CloudFilesystemDecorator
{
use FilesystemDecorator;
public function url($path)
{
return $this->withSentry(__FUNCTION__, func_get_args(), $path, compact('path'));
}
}
```
|
```c++
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing,
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// specific language governing permissions and limitations
#include "kudu/common/row_operations.h"
#include <cstring>
#include <ostream>
#include <string>
#include <type_traits>
#include <utility>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include "kudu/common/common.pb.h"
#include "kudu/common/partial_row.h"
#include "kudu/common/row.h"
#include "kudu/common/row_changelist.h"
#include "kudu/common/schema.h"
#include "kudu/common/types.h"
#include "kudu/gutil/port.h"
#include "kudu/gutil/strings/substitute.h"
#include "kudu/util/bitmap.h"
#include "kudu/util/faststring.h"
#include "kudu/util/flag_tags.h"
#include "kudu/util/logging.h"
#include "kudu/util/memory/arena.h"
#include "kudu/util/safe_math.h"
#include "kudu/util/slice.h"
using std::string;
using std::vector;
using strings::Substitute;
DEFINE_int32(max_cell_size_bytes, 64 * 1024,
"The maximum size of any individual cell in a table. Attempting to store "
"string or binary columns with a size greater than this will result "
"in errors.");
TAG_FLAG(max_cell_size_bytes, unsafe);
namespace kudu {
string DecodedRowOperation::ToString(const Schema& schema) const {
if (!result.ok()) {
return Substitute("row error: $0", result.ToString());
}
// A note on redaction: We redact row operations, since they contain sensitive
// row data. Range partition operations are not redacted, since range
// partitions are considered to be metadata.
switch (type) {
case RowOperationsPB::UNKNOWN:
return "UNKNOWN";
case RowOperationsPB::INSERT:
return "INSERT " + schema.DebugRow(ConstContiguousRow(&schema, row_data));
case RowOperationsPB::INSERT_IGNORE:
return "INSERT IGNORE " + schema.DebugRow(ConstContiguousRow(&schema, row_data));
case RowOperationsPB::UPSERT:
return "UPSERT " + schema.DebugRow(ConstContiguousRow(&schema, row_data));
case RowOperationsPB::UPSERT_IGNORE:
return "UPSERT IGNORE " + schema.DebugRow(ConstContiguousRow(&schema, row_data));
case RowOperationsPB::UPDATE:
case RowOperationsPB::UPDATE_IGNORE:
case RowOperationsPB::DELETE:
case RowOperationsPB::DELETE_IGNORE:
return Substitute("MUTATE $0 $1",
schema.DebugRowKey(ConstContiguousRow(&schema, row_data)),
changelist.ToString(schema));
case RowOperationsPB::SPLIT_ROW:
return Substitute("SPLIT_ROW $0", KUDU_DISABLE_REDACTION(split_row->ToString()));
case RowOperationsPB::RANGE_LOWER_BOUND:
return Substitute("RANGE_LOWER_BOUND $0", KUDU_DISABLE_REDACTION(split_row->ToString()));
case RowOperationsPB::RANGE_UPPER_BOUND:
return Substitute("RANGE_UPPER_BOUND $0", KUDU_DISABLE_REDACTION(split_row->ToString()));
case RowOperationsPB::EXCLUSIVE_RANGE_LOWER_BOUND:
return Substitute("EXCLUSIVE_RANGE_LOWER_BOUND $0",
KUDU_DISABLE_REDACTION(split_row->ToString()));
case RowOperationsPB::INCLUSIVE_RANGE_UPPER_BOUND:
return Substitute("INCLUSIVE_RANGE_UPPER_BOUND $0",
KUDU_DISABLE_REDACTION(split_row->ToString()));
}
return "UNKNOWN";
}
void DecodedRowOperation::SetFailureStatusOnce(Status s) {
DCHECK(!s.ok());
if (result.ok()) {
result = std::move(s);
}
}
RowOperationsPBEncoder::RowOperationsPBEncoder(RowOperationsPB* pb)
: pb_(pb),
prev_indirect_data_size_(string::npos),
prev_rows_size_(string::npos) {
}
RowOperationsPBEncoder::~RowOperationsPBEncoder() {
}
size_t RowOperationsPBEncoder::Add(RowOperationsPB::Type op_type,
const KuduPartialRow& partial_row) {
const Schema* schema = partial_row.schema();
// See wire_protocol.proto for a description of the format.
string* dst = pb_->mutable_rows();
prev_rows_size_ = dst->size();
prev_indirect_data_size_ = pb_->mutable_indirect_data()->size();
// Compute a bound on how much space we may need in the 'rows' field.
// Then, resize it to this much space. This allows us to use simple
// memcpy() calls to copy the data, rather than string->append(), which
// reduces branches significantly in this fairly hot code path.
// (std::string::append doesn't get inlined).
// At the end of the function, we'll resize() the string back down to the
// right size.
size_t isset_bitmap_size;
size_t non_null_bitmap_size;
const size_t new_size_estimate = GetRowsFieldSizeEstimate(
partial_row, &isset_bitmap_size, &non_null_bitmap_size);
dst->resize(new_size_estimate);
uint8_t* dst_ptr = reinterpret_cast<uint8_t*>(&(*dst)[prev_rows_size_]);
*dst_ptr++ = static_cast<uint8_t>(op_type);
memcpy(dst_ptr, partial_row.isset_bitmap_, isset_bitmap_size);
dst_ptr += isset_bitmap_size;
memcpy(dst_ptr,
ContiguousRowHelper::non_null_bitmap_ptr(*schema, partial_row.row_data_),
non_null_bitmap_size);
dst_ptr += non_null_bitmap_size;
size_t indirect_data_size_delta = 0;
ContiguousRow row(schema, partial_row.row_data_);
for (auto i = 0; i < schema->num_columns(); ++i) {
if (!partial_row.IsColumnSet(i)) {
continue;
}
const ColumnSchema& col = schema->column(i);
if (col.is_nullable() && row.is_null(i)) {
continue;
}
if (col.type_info()->physical_type() == BINARY) {
const size_t indirect_offset = pb_->mutable_indirect_data()->size();
const Slice* val = reinterpret_cast<const Slice*>(row.cell_ptr(i));
indirect_data_size_delta += val->size();
pb_->mutable_indirect_data()->append(
reinterpret_cast<const char*>(val->data()), val->size());
Slice to_append(
reinterpret_cast<const uint8_t*>(indirect_offset), val->size());
memcpy(dst_ptr, &to_append, sizeof(Slice));
dst_ptr += sizeof(Slice);
} else {
memcpy(dst_ptr, row.cell_ptr(i), col.type_info()->size());
dst_ptr += col.type_info()->size();
}
}
const size_t rows_size_delta = reinterpret_cast<uintptr_t>(dst_ptr) -
reinterpret_cast<uintptr_t>(&(*dst)[prev_rows_size_]);
dst->resize(prev_rows_size_ + rows_size_delta);
return rows_size_delta + indirect_data_size_delta;
}
void RowOperationsPBEncoder::RemoveLast() {
DCHECK_NE(string::npos, prev_indirect_data_size_);
DCHECK_NE(string::npos, prev_rows_size_);
pb_->mutable_indirect_data()->resize(prev_indirect_data_size_);
pb_->mutable_rows()->resize(prev_rows_size_);
prev_indirect_data_size_ = string::npos;
prev_rows_size_ = string::npos;
}
size_t RowOperationsPBEncoder::GetRowsFieldSizeEstimate(
const KuduPartialRow& partial_row,
size_t* isset_bitmap_size,
size_t* isnon_null_bitmap_size) const {
const Schema* schema = partial_row.schema();
// See wire_protocol.proto for a description of the format.
const string* dst = pb_->mutable_rows();
auto isset_size = BitmapSize(schema->num_columns());
auto isnull_size = ContiguousRowHelper::non_null_bitmap_size(*schema);
constexpr auto type_size = 1; // type uses one byte
auto max_size = type_size + schema->byte_size() + isset_size + isnull_size;
*isset_bitmap_size = isset_size;
*isnon_null_bitmap_size = isnull_size;
return dst->size() + max_size;
}
// ------------------------------------------------------------
// Decoder
// ------------------------------------------------------------
RowOperationsPBDecoder::RowOperationsPBDecoder(const RowOperationsPB* pb,
const Schema* client_schema,
const Schema* tablet_schema,
Arena* dst_arena)
: pb_(pb),
client_schema_(client_schema),
tablet_schema_(tablet_schema),
dst_arena_(dst_arena),
bm_size_(BitmapSize(client_schema_->num_columns())),
tablet_row_size_(ContiguousRowHelper::row_size(*tablet_schema_)),
src_(pb->rows().data(), pb->rows().size()) {
}
RowOperationsPBDecoder::~RowOperationsPBDecoder() {
}
Status RowOperationsPBDecoder::ReadOpType(RowOperationsPB::Type* type) {
if (PREDICT_FALSE(src_.empty())) {
return Status::Corruption("Cannot find operation type");
}
if (PREDICT_FALSE(!RowOperationsPB_Type_IsValid(src_[0]))) {
return Status::NotSupported(Substitute("Unknown operation type: $0", src_[0]));
}
*type = static_cast<RowOperationsPB::Type>(src_[0]);
src_.remove_prefix(1);
return Status::OK();
}
Status RowOperationsPBDecoder::ReadIssetBitmap(const uint8_t** bitmap) {
if (PREDICT_FALSE(src_.size() < bm_size_)) {
*bitmap = nullptr;
return Status::Corruption("Cannot find isset bitmap");
}
*bitmap = src_.data();
src_.remove_prefix(bm_size_);
return Status::OK();
}
Status RowOperationsPBDecoder::ReadNullBitmap(const uint8_t** null_bm) {
if (PREDICT_FALSE(src_.size() < bm_size_)) {
*null_bm = nullptr;
return Status::Corruption("Cannot find null bitmap");
}
*null_bm = src_.data();
src_.remove_prefix(bm_size_);
return Status::OK();
}
Status RowOperationsPBDecoder::GetColumnSlice(const ColumnSchema& col,
Slice* slice,
Status* row_status) {
size_t size = col.type_info()->size();
if (PREDICT_FALSE(src_.size() < size)) {
return Status::Corruption("Not enough data for column", col.ToString());
}
// Find the data
if (col.type_info()->physical_type() == BINARY) {
// The Slice in the protobuf has a pointer relative to the indirect data,
// not a real pointer. Need to fix that.
auto ptr_slice = reinterpret_cast<const Slice*>(src_.data());
auto offset_in_indirect = reinterpret_cast<uintptr_t>(ptr_slice->data());
bool overflowed = false;
size_t max_offset = AddWithOverflowCheck(offset_in_indirect, ptr_slice->size(), &overflowed);
if (PREDICT_FALSE(overflowed || max_offset > pb_->indirect_data().size())) {
return Status::Corruption("Bad indirect slice");
}
// Check that no individual cell is larger than the specified max.
if (PREDICT_FALSE(row_status && ptr_slice->size() > FLAGS_max_cell_size_bytes)) {
*row_status = Status::InvalidArgument(Substitute(
"value too large for column '$0' ($1 bytes, maximum is $2 bytes)",
col.name(), ptr_slice->size(), FLAGS_max_cell_size_bytes));
// After one row's column size has been found to exceed the limit and has been recorded
// in 'row_status', we will consider it OK and continue to consume data in order to properly
// validate subsequent columns and rows.
}
*slice = Slice(&pb_->indirect_data()[offset_in_indirect], ptr_slice->size());
} else {
*slice = Slice(src_.data(), size);
}
src_.remove_prefix(size);
return Status::OK();
}
Status RowOperationsPBDecoder::ReadColumn(const ColumnSchema& col,
uint8_t* dst,
Status* row_status) {
Slice slice;
RETURN_NOT_OK(GetColumnSlice(col, &slice, row_status));
if (col.type_info()->physical_type() == BINARY) {
memcpy(dst, &slice, col.type_info()->size());
} else {
slice.relocate(dst);
}
return Status::OK();
}
Status RowOperationsPBDecoder::ReadColumnAndDiscard(const ColumnSchema& col) {
uint8_t scratch[kLargestTypeSize];
return ReadColumn(col, scratch, nullptr);
}
bool RowOperationsPBDecoder::HasNext() const {
return !src_.empty();
}
namespace {
void SetupPrototypeRow(const Schema& schema,
ContiguousRow* row) {
for (int i = 0; i < schema.num_columns(); i++) {
const ColumnSchema& col = schema.column(i);
if (col.has_write_default()) {
if (col.is_nullable()) {
row->set_null(i, false);
}
memcpy(row->mutable_cell_ptr(i), col.write_default_value(), col.type_info()->size());
} else if (col.is_nullable()) {
row->set_null(i, true);
} else {
// No default and not nullable. Therefore this column is required,
// and we'll ensure that it gets during the projection step.
}
}
}
} // anonymous namespace
// Projector implementation which handles mapping the client column indexes
// to server-side column indexes, ensuring that all of the columns exist,
// and that every required (non-null, non-default) column in the server
// schema is also present in the client.
class ClientServerMapping {
public:
ClientServerMapping(const Schema* client_schema,
const Schema* tablet_schema)
: client_schema_(client_schema),
tablet_schema_(tablet_schema),
saw_tablet_col_(tablet_schema->num_columns(), false) {
}
Status ProjectBaseColumn(size_t client_col_idx, size_t tablet_col_idx) {
// We should get this called exactly once for every input column,
// since the input columns must be a strict subset of the tablet columns.
DCHECK_EQ(client_to_tablet_.size(), client_col_idx);
DCHECK_LT(tablet_col_idx, saw_tablet_col_.size());
client_to_tablet_.push_back(tablet_col_idx);
saw_tablet_col_[tablet_col_idx] = true;
return Status::OK();
}
Status ProjectDefaultColumn(size_t client_col_idx) {
// Even if the client provides a default (which it shouldn't), we don't
// want to accept writes with an extra column.
return ProjectExtraColumn(client_col_idx);
}
Status ProjectExtraColumn(size_t client_col_idx) {
return Status::InvalidArgument(
Substitute("Client provided column $0 not present in tablet",
client_schema_->column(client_col_idx).ToString()));
}
// Translate from a client schema index to the tablet schema index
size_t client_to_tablet_idx(size_t client_idx) const {
DCHECK_LT(client_idx, client_to_tablet_.size());
return client_to_tablet_[client_idx];
}
size_t num_mapped() const {
return client_to_tablet_.size();
}
// Ensure that any required (non-null, non-defaulted) columns from the
// server side schema are found in the client-side schema. If not,
// returns an InvalidArgument.
Status CheckAllRequiredColumnsPresent() {
for (size_t tablet_col_idx = 0;
tablet_col_idx < tablet_schema_->num_columns();
tablet_col_idx++) {
const ColumnSchema& col = tablet_schema_->column(tablet_col_idx);
if (!col.has_write_default() &&
!col.is_nullable()) {
// All clients must pass this column.
if (!saw_tablet_col_[tablet_col_idx]) {
return Status::InvalidArgument(
"Client missing required column", col.ToString());
}
}
}
return Status::OK();
}
private:
const Schema* const client_schema_;
const Schema* const tablet_schema_;
vector<size_t> client_to_tablet_;
vector<bool> saw_tablet_col_;
DISALLOW_COPY_AND_ASSIGN(ClientServerMapping);
};
size_t RowOperationsPBDecoder::GetTabletColIdx(const ClientServerMapping& mapping,
size_t client_col_idx) {
if (client_schema_ != tablet_schema_) {
return mapping.client_to_tablet_idx(client_col_idx);
}
return client_col_idx;
}
Status RowOperationsPBDecoder::DecodeInsertOrUpsert(const uint8_t* prototype_row_storage,
const ClientServerMapping& mapping,
DecodedRowOperation* op,
int64_t* auto_incrementing_counter) {
const uint8_t* client_isset_map = nullptr;
const uint8_t* client_null_map = nullptr;
// Read the null and isset bitmaps for the client-provided row.
RETURN_NOT_OK(ReadIssetBitmap(&client_isset_map));
if (client_schema_->has_nullables()) {
RETURN_NOT_OK(ReadNullBitmap(&client_null_map));
}
// Allocate a row with the tablet's layout.
auto* tablet_row_storage = reinterpret_cast<uint8_t*>(
dst_arena_->AllocateBytesAligned(tablet_row_size_, 8));
auto* tablet_isset_bitmap = reinterpret_cast<uint8_t*>(
dst_arena_->AllocateBytes(BitmapSize(tablet_schema_->num_columns())));
if (PREDICT_FALSE(!tablet_row_storage || !tablet_isset_bitmap)) {
return Status::RuntimeError("Out of memory");
}
// Initialize the bitmap since some columns might be lost in the client schema,
// in which case the original value of the lost columns might be set to default
// value by upsert request.
memset(tablet_isset_bitmap, 0, BitmapSize(tablet_schema_->num_columns()));
// Initialize the new row from the 'prototype' row which has been set
// with all of the server-side default values. This copy may be entirely
// overwritten in the case that all columns are specified, but this is
// still likely faster (and simpler) than looping through all the server-side
// columns to initialize defaults where non-set on every row.
memcpy(tablet_row_storage, prototype_row_storage, tablet_row_size_);
ContiguousRow tablet_row(tablet_schema_, tablet_row_storage);
// Now handle each of the columns passed by the user, replacing the defaults
// from the prototype.
const auto auto_incrementing_col_idx = tablet_schema_->auto_incrementing_col_idx();
for (size_t client_col_idx = 0;
client_col_idx < client_schema_->num_columns();
client_col_idx++) {
// Look up the corresponding column from the tablet. We use the server-side
// ColumnSchema object since it has the most up-to-date default, nullability,
// etc.
size_t tablet_col_idx = GetTabletColIdx(mapping, client_col_idx);
DCHECK_NE(tablet_col_idx, Schema::kColumnNotFound);
const ColumnSchema& col = tablet_schema_->column(tablet_col_idx);
bool isset = BitmapTest(client_isset_map, client_col_idx);
BitmapChange(tablet_isset_bitmap, tablet_col_idx, isset);
if (isset) {
// If the client provided a value for this column, copy it.
// Copy null-ness, if the server side column is nullable.
const bool client_set_to_null = client_schema_->has_nullables() &&
BitmapTest(client_null_map, client_col_idx);
if (col.is_nullable()) {
tablet_row.set_null(tablet_col_idx, client_set_to_null);
}
if (!client_set_to_null) {
// Check if the non-null value is present for auto-incrementing column. For UPSERT or
// UPSERT_IGNORE operations we allow the user to specify the auto-incrementing value.
if (tablet_col_idx != auto_incrementing_col_idx) {
// Copy the non-null value.
Status row_status;
RETURN_NOT_OK(ReadColumn(
col, tablet_row.mutable_cell_ptr(tablet_col_idx), &row_status));
if (PREDICT_FALSE(!row_status.ok())) {
op->SetFailureStatusOnce(row_status);
}
} else {
if (op->type == RowOperationsPB_Type_INSERT ||
op->type == RowOperationsPB_Type_INSERT_IGNORE) {
// auto-incrementing column values not to be set for INSERT/INSERT_IGNORE operations.
static const Status kErrFieldIncorrectlySet = Status::InvalidArgument(
"auto-incrementing column should not be set for INSERT/INSERT_IGNORE operations");
op->SetFailureStatusOnce(kErrFieldIncorrectlySet);
RETURN_NOT_OK(ReadColumnAndDiscard(col));
return kErrFieldIncorrectlySet;
}
// Fetch the auto-incrementing counter from the request.
Status row_status;
int64_t counter = 0;
RETURN_NOT_OK(ReadColumn(
col, reinterpret_cast<uint8_t*>(&counter), &row_status));
if (PREDICT_FALSE(!row_status.ok())) {
op->SetFailureStatusOnce(row_status);
} else {
// Make sure it is positive.
if (counter < 0) {
static const Status kErrorValue = Status::InvalidArgument(
"auto-incrementing column value must be greater than zero");
op->SetFailureStatusOnce(kErrorValue);
return kErrorValue;
}
// Check if the provided counter value is less than what is in memory
// and update the counter in memory.
if (counter > *auto_incrementing_counter) {
*auto_incrementing_counter = counter;
}
memcpy(tablet_row.mutable_cell_ptr(tablet_col_idx), &counter, 8);
}
}
} else if (PREDICT_FALSE(!col.is_nullable())) {
op->SetFailureStatusOnce(Status::InvalidArgument(
"NULL values not allowed for non-nullable column", col.ToString()));
RETURN_NOT_OK(ReadColumnAndDiscard(col));
}
} else {
// If the client didn't provide a value, check if it's an auto-incrementing
// field. If so, populate the field as appropriate.
if (tablet_col_idx == auto_incrementing_col_idx) {
if (op->type == RowOperationsPB_Type_UPSERT ||
op->type == RowOperationsPB_Type_UPSERT_IGNORE) {
static const Status kErrMaxValue = Status::InvalidArgument("auto-incrementing column "
"should be set for "
"UPSERT/UPSERT_IGNORE "
"operations");
op->SetFailureStatusOnce(kErrMaxValue);
return kErrMaxValue;
}
if (*DCHECK_NOTNULL(auto_incrementing_counter) == INT64_MAX) {
static const Status kErrMaxValue = Status::IllegalState("max auto-incrementing column "
"value reached");
op->SetFailureStatusOnce(kErrMaxValue);
return kErrMaxValue;
}
if (*DCHECK_NOTNULL(auto_incrementing_counter) < 0) {
static const Status kErrValue = Status::IllegalState("invalid auto-incrementing "
"column value");
op->SetFailureStatusOnce(kErrValue);
return kErrValue;
}
// We increment the auto incrementing counter at this point regardless of future failures
// in the op for simplicity. The auto-incrementing column key space is large enough to
// not run of values for any realistic workloads.
(*auto_incrementing_counter)++;
memcpy(tablet_row.mutable_cell_ptr(tablet_col_idx), auto_incrementing_counter, 8);
BitmapChange(tablet_isset_bitmap, client_col_idx, true);
} else if (PREDICT_FALSE(!(col.is_nullable() || col.has_write_default()))) {
// Otherwise, the column must either be nullable or have a default (which
// was already set in the prototype row).
op->SetFailureStatusOnce(Status::InvalidArgument("No value provided for required column",
col.ToString()));
}
}
}
op->row_data = tablet_row_storage;
op->isset_bitmap = tablet_isset_bitmap;
return Status::OK();
}
Status RowOperationsPBDecoder::DecodeUpdateOrDelete(const ClientServerMapping& mapping,
DecodedRowOperation* op) {
const uint8_t* client_isset_map = nullptr;
const uint8_t* client_null_map = nullptr;
// Read the null and isset bitmaps for the client-provided row.
RETURN_NOT_OK(ReadIssetBitmap(&client_isset_map));
if (client_schema_->has_nullables()) {
RETURN_NOT_OK(ReadNullBitmap(&client_null_map));
}
// Allocate space for the row key.
auto* rowkey_storage = reinterpret_cast<uint8_t*>(
dst_arena_->AllocateBytesAligned(tablet_schema_->key_byte_size(), 8));
if (PREDICT_FALSE(!rowkey_storage)) {
return Status::RuntimeError("Out of memory");
}
// We're passing the full schema instead of the key schema here.
// That's OK because the keys come at the bottom. We lose some bounds
// checking in debug builds, but it avoids an extra copy of the key schema.
ContiguousRow rowkey(tablet_schema_, rowkey_storage);
// First process the key columns.
size_t client_col_idx = 0;
for (; client_col_idx < client_schema_->num_key_columns(); client_col_idx++) {
// Look up the corresponding column from the tablet. We use the server-side
// ColumnSchema object since it has the most up-to-date default, nullability,
// etc.
if (client_schema_ != tablet_schema_) {
DCHECK_EQ(mapping.client_to_tablet_idx(client_col_idx),
client_col_idx) << "key columns should match";
}
size_t tablet_col_idx = client_col_idx;
const ColumnSchema& col = tablet_schema_->column(tablet_col_idx);
if (PREDICT_FALSE(!BitmapTest(client_isset_map, client_col_idx))) {
op->SetFailureStatusOnce(Status::InvalidArgument("No value provided for key column",
col.ToString()));
continue;
}
bool client_set_to_null = client_schema_->has_nullables() &&
BitmapTest(client_null_map, client_col_idx);
if (PREDICT_FALSE(client_set_to_null)) {
op->SetFailureStatusOnce(Status::InvalidArgument("NULL values not allowed for key column",
col.ToString()));
RETURN_NOT_OK(ReadColumnAndDiscard(col));
continue;
}
RETURN_NOT_OK(ReadColumn(col, rowkey.mutable_cell_ptr(tablet_col_idx), nullptr));
}
op->row_data = rowkey_storage;
// Now we process the rest of the columns:
// For UPDATE, we expect at least one other column to be set, indicating the
// update to perform.
// For DELETE, we expect no other columns to be set (and we verify that).
Status row_status;
if (op->type == RowOperationsPB::UPDATE || op->type == RowOperationsPB::UPDATE_IGNORE) {
faststring buf;
RowChangeListEncoder rcl_encoder(&buf);
// Now process the rest of columns as updates.
DCHECK_EQ(client_schema_->num_key_columns(), client_col_idx);
for (; client_col_idx < client_schema_->num_columns(); client_col_idx++) {
size_t tablet_col_idx = GetTabletColIdx(mapping, client_col_idx);
const ColumnSchema& col = tablet_schema_->column(tablet_col_idx);
if (BitmapTest(client_isset_map, client_col_idx)) {
bool client_set_to_null = client_schema_->has_nullables() &&
BitmapTest(client_null_map, client_col_idx);
if (col.is_immutable()) {
if (op->type == RowOperationsPB::UPDATE) {
op->SetFailureStatusOnce(
Status::Immutable("UPDATE not allowed for immutable column", col.ToString()));
} else {
DCHECK_EQ(RowOperationsPB::UPDATE_IGNORE, op->type);
op->error_ignored = true;
}
if (!client_set_to_null) {
RETURN_NOT_OK(ReadColumnAndDiscard(col));
}
// Use 'continue' not 'break' to consume the rest row data.
continue;
}
uint8_t scratch[kLargestTypeSize];
uint8_t* val_to_add = nullptr;
if (!client_set_to_null) {
RETURN_NOT_OK(ReadColumn(col, scratch, &row_status));
if (PREDICT_FALSE(!row_status.ok())) {
op->SetFailureStatusOnce(row_status);
}
val_to_add = scratch;
} else if (PREDICT_FALSE(!col.is_nullable())) {
op->SetFailureStatusOnce(Status::InvalidArgument(
"NULL value not allowed for non-nullable column", col.ToString()));
RETURN_NOT_OK(ReadColumnAndDiscard(col));
continue;
}
rcl_encoder.AddColumnUpdate(col, tablet_schema_->column_id(tablet_col_idx), val_to_add);
}
}
if (PREDICT_FALSE(buf.size() == 0)) {
// No actual column updates specified!
op->SetFailureStatusOnce(Status::InvalidArgument("No fields updated, key is",
tablet_schema_->DebugRowKey(rowkey)));
}
if (PREDICT_TRUE(op->result.ok())) {
// Copy the row-changelist to the arena.
auto* rcl_in_arena = reinterpret_cast<uint8_t*>(
dst_arena_->AllocateBytesAligned(buf.size(), 8));
if (PREDICT_FALSE(rcl_in_arena == nullptr)) {
return Status::RuntimeError("Out of memory allocating RCL");
}
memcpy(rcl_in_arena, buf.data(), buf.size());
op->changelist = RowChangeList(Slice(rcl_in_arena, buf.size()));
}
} else if (op->type == RowOperationsPB::DELETE || op->type == RowOperationsPB::DELETE_IGNORE) {
// Ensure that no other columns are set.
for (; client_col_idx < client_schema_->num_columns(); client_col_idx++) {
if (PREDICT_FALSE(BitmapTest(client_isset_map, client_col_idx))) {
size_t tablet_col_idx = GetTabletColIdx(mapping, client_col_idx);
const ColumnSchema& col = tablet_schema_->column(tablet_col_idx);
op->SetFailureStatusOnce(Status::InvalidArgument(
"DELETE should not have a value for column", col.ToString()));
bool client_set_to_null = client_schema_->has_nullables() &&
BitmapTest(client_null_map, client_col_idx);
if (!client_set_to_null || !col.is_nullable()) {
RETURN_NOT_OK(ReadColumnAndDiscard(col));
}
}
}
if (PREDICT_TRUE(op->result.ok())) {
op->changelist = RowChangeList::CreateDelete();
}
} else {
LOG(FATAL) << "Should only call this method with UPDATE or DELETE";
}
return Status::OK();
}
Status RowOperationsPBDecoder::DecodeSplitRow(const ClientServerMapping& mapping,
DecodedRowOperation* op) {
op->split_row = std::make_shared<KuduPartialRow>(tablet_schema_);
const uint8_t* client_isset_map;
const uint8_t* client_null_map;
// Read the null and isset bitmaps for the client-provided row.
RETURN_NOT_OK(ReadIssetBitmap(&client_isset_map));
if (client_schema_->has_nullables()) {
RETURN_NOT_OK(ReadNullBitmap(&client_null_map));
}
// Now handle each of the columns passed by the user.
for (size_t client_col_idx = 0;
client_col_idx < client_schema_->num_columns();
client_col_idx++) {
// Look up the corresponding column from the tablet. We use the server-side
// ColumnSchema object since it has the most up-to-date default, nullability,
// etc.
size_t tablet_col_idx = GetTabletColIdx(mapping, client_col_idx);
const ColumnSchema& col = tablet_schema_->column(tablet_col_idx);
if (BitmapTest(client_isset_map, client_col_idx)) {
// If the client provided a value for this column, copy it.
Slice column_slice;
RETURN_NOT_OK(GetColumnSlice(col, &column_slice, nullptr));
const uint8_t* data = (col.type_info()->physical_type() == BINARY)
? reinterpret_cast<const uint8_t*>(&column_slice)
: column_slice.data();
RETURN_NOT_OK(op->split_row->Set(static_cast<int32_t>(tablet_col_idx), data));
}
}
return Status::OK();
}
template <DecoderMode mode>
Status RowOperationsPBDecoder::DecodeOperations(vector<DecodedRowOperation>* ops,
int64_t* auto_incrementing_counter) {
// TODO(todd): there's a bug here, in that if a client passes some column in
// its schema that has been deleted on the server, it will fail even if the
// client never actually specified any values for it. For example, a DBA
// might do a thorough audit that no one is using some column anymore, and
// then drop the column, expecting it to be compatible, but all writes would
// start failing until clients refreshed their schema.
// See DISABLED_TestProjectUpdatesSubsetOfColumns
CHECK_EQ(client_schema_->has_column_ids(), client_schema_ == tablet_schema_);
DCHECK(tablet_schema_->has_column_ids());
ClientServerMapping mapping(client_schema_, tablet_schema_);
if (client_schema_ != tablet_schema_) {
RETURN_NOT_OK(client_schema_->GetProjectionMapping(*tablet_schema_, &mapping));
DCHECK_EQ(mapping.num_mapped(), client_schema_->num_columns());
RETURN_NOT_OK(mapping.CheckAllRequiredColumnsPresent());
}
// Make a "prototype row" which has all the defaults filled in. We can copy
// this to create a starting point for each row as we decode it, with
// all the defaults in place without having to loop.
uint8_t prototype_row_storage[tablet_row_size_];
ContiguousRow prototype_row(tablet_schema_, prototype_row_storage);
SetupPrototypeRow(*tablet_schema_, &prototype_row);
int64_t counter = -1;
auto_incrementing_counter = auto_incrementing_counter ? auto_incrementing_counter : &counter;
while (HasNext()) {
RowOperationsPB::Type type = RowOperationsPB::UNKNOWN;
RETURN_NOT_OK(ReadOpType(&type));
DecodedRowOperation op;
op.type = type;
RETURN_NOT_OK(DecodeOp<mode>(type, prototype_row_storage, mapping, &op,
auto_incrementing_counter));
ops->emplace_back(std::move(op));
}
return Status::OK();
}
template<>
Status RowOperationsPBDecoder::DecodeOp<DecoderMode::WRITE_OPS>(
RowOperationsPB::Type type, const uint8_t* prototype_row_storage,
const ClientServerMapping& mapping, DecodedRowOperation* op,
int64_t* auto_incrementing_counter) {
switch (type) {
case RowOperationsPB::UPSERT:
case RowOperationsPB::UPSERT_IGNORE:
case RowOperationsPB::INSERT:
case RowOperationsPB::INSERT_IGNORE:
return DecodeInsertOrUpsert(prototype_row_storage, mapping, op,
auto_incrementing_counter);
case RowOperationsPB::UPDATE:
case RowOperationsPB::UPDATE_IGNORE:
case RowOperationsPB::DELETE:
case RowOperationsPB::DELETE_IGNORE:
return DecodeUpdateOrDelete(mapping, op);
default:
break;
}
return Status::InvalidArgument(Substitute("Invalid write operation type $0",
RowOperationsPB_Type_Name(type)));
}
template<>
Status RowOperationsPBDecoder::DecodeOp<DecoderMode::SPLIT_ROWS>(
RowOperationsPB::Type type, const uint8_t* /*prototype_row_storage*/,
const ClientServerMapping& mapping, DecodedRowOperation* op,
int64_t* /*auto_incrementing_counter*/) {
switch (type) {
case RowOperationsPB::SPLIT_ROW:
case RowOperationsPB::RANGE_LOWER_BOUND:
case RowOperationsPB::RANGE_UPPER_BOUND:
case RowOperationsPB::EXCLUSIVE_RANGE_LOWER_BOUND:
case RowOperationsPB::INCLUSIVE_RANGE_UPPER_BOUND:
return DecodeSplitRow(mapping, op);
default:
break;
}
return Status::InvalidArgument(Substitute("Invalid split row type $0",
RowOperationsPB_Type_Name(type)));
}
template
Status RowOperationsPBDecoder::DecodeOperations<DecoderMode::SPLIT_ROWS>(
vector<DecodedRowOperation>* ops, int64_t* auto_incrementing_counter);
template
Status RowOperationsPBDecoder::DecodeOperations<DecoderMode::WRITE_OPS>(
vector<DecodedRowOperation>* ops, int64_t* auto_incrementing_counter);
} // namespace kudu
```
|
Vécs is a village in Heves County, Hungary.
References
Populated places in Heves County
|
```yaml
subject: "Rescue keyword"
description: "capturing / with nested element reference"
notes: >
focused_on_node: "org.truffleruby.language.exceptions.TryNode"
ruby: |
begin
"foo"
rescue RuntimeError => a[0][:foo]
42
end
ast: |
TryNodeGen
attributes:
flags = 0
sourceCharIndex = 0
sourceLength = 56
children:
rescueParts = [
RescueClassesNode
attributes:
canOmitBacktrace = false
flags = 0
sourceCharIndex = 21
sourceLength = 12
children:
handlingClassNodes = [
ReadConstantWithLexicalScopeNode
attributes:
flags = 0
lexicalScope = :: Object
name = "RuntimeError"
sourceCharIndex = 21
sourceLength = 12
children:
getConstantNode =
GetConstantNodeGen
lookupConstantNode =
LookupConstantWithLexicalScopeNodeGen
attributes:
lexicalScope = :: Object
name = "RuntimeError"
]
rescueBody =
SequenceNode
attributes:
flags = 0
sourceCharIndex = 14
sourceLength = 38
children:
body = [
AssignRescueVariableNode
attributes:
flags = 0
sourceCharIndex = -1
sourceLength = 0
children:
rescueVariableNode =
InlinedIndexSetNodeGen
attributes:
assumptions = [Assumption(valid, name=set_trace_func is not used)]
flags = 0
parameters = RubyCallNodeParameters{methodName='[]=', descriptor=NoKeywordArgumentsDescriptor, isSplatted=false, ignoreVisibility=false, isVCall=false, isSafeNavigation=false, isAttrAssign=true}
sourceCharIndex = 37
sourceLength = 10
children:
operand1Node_ =
ObjectLiteralNode
attributes:
flags = 0
object = :foo
sourceCharIndex = 42
sourceLength = 4
operand2Node_ =
NilLiteralNode
attributes:
flags = 0
sourceCharIndex = -1
sourceLength = 0
receiver_ =
InlinedIndexGetNodeGen
attributes:
assumptions = [Assumption(valid, name=set_trace_func is not used)]
flags = 0
parameters = RubyCallNodeParameters{methodName='[]', descriptor=NoKeywordArgumentsDescriptor, isSplatted=false, ignoreVisibility=false, isVCall=false, isSafeNavigation=false, isAttrAssign=false}
sourceCharIndex = 37
sourceLength = 4
children:
leftNode_ =
RubyCallNode
attributes:
descriptor = NoKeywordArgumentsDescriptor
dispatchConfig = PRIVATE
emptyKeywordsProfile = false
flags = 0
isAttrAssign = false
isSafeNavigation = false
isSplatted = false
isVCall = true
lastArgIsNotHashProfile = false
methodName = "a"
notEmptyKeywordsProfile = false
notRuby2KeywordsHashProfile = false
sourceCharIndex = 37
sourceLength = 1
children:
receiver =
SelfNode
attributes:
flags = 0
sourceCharIndex = -1
sourceLength = 0
rightNode_ =
IntegerFixnumLiteralNode
attributes:
flags = 0
sourceCharIndex = 39
sourceLength = 1
value = 0
IntegerFixnumLiteralNode
attributes:
flags = 1
sourceCharIndex = 50
sourceLength = 2
value = 42
]
]
tryPart =
StringLiteralNode
attributes:
encoding = UTF-8
flags = 1
sourceCharIndex = 8
sourceLength = 5
tstring = foo
```
|
```shell
#!/usr/bin/env bash
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2020-06-18 20:03:00 +0100 (Thu, 18 Jun 2020)
#
# path_to_url
#
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# path_to_url
#
# Blocking wait on apt-get locks to allow multiple apt-get calls to wait instead of exiting with errors
#
# Not really a new idea, there are similar implementations eg.
#
# path_to_url
set -euo pipefail
[ -n "${DEBUG:-}" ] && set -x
sleep_secs=1
locks="
/var/lib/dpkg/lock
/var/lib/apt/lists/lock
"
unattended_upgrade_log="/var/log/unattended-upgrades/unattended-upgrades.log"
sudo=""
[ $EUID = 0 ] || sudo=sudo
check_bin(){
if ! type -P "$1" &>/dev/null; then
echo "$1 not found in \$PATH ($PATH)" >&2
exit 1
fi
}
check_bin apt-get
check_bin fuser
if [ -n "$sudo" ]; then
check_bin "$sudo"
fi
while true; do
for lock in $locks; do
if $sudo fuser "$lock" &>/dev/null; then
echo "apt lock in use ($lock), waiting..." >&2
sleep "$sleep_secs"
continue 2
fi
done
if [ -f "$unattended_upgrade_log" ] &&
$sudo fuser "$unattended_upgrade_log" &>/dev/null; then
echo "apt unattended upgrade log in use ($unattended_upgrade_log), waiting..." >&2
sleep "$sleep_secs"
continue
fi
break
done
```
|
```yaml
version: 0.1
log:
level: debug
fields:
service: registry
environment: development
hooks:
- type: mail
disabled: true
levels:
- panic
options:
smtp:
addr: mail.example.com:25
username: mailuser
password: password
insecure: true
from: sender@example.com
to:
- errors@example.com
storage:
delete:
enabled: true
cache:
blobdescriptor: redis
filesystem:
rootdirectory: /var/lib/registry
maintenance:
uploadpurging:
enabled: false
http:
addr: :5000
debug:
addr: :5001
prometheus:
enabled: true
path: /metrics
headers:
X-Content-Type-Options: [nosniff]
redis:
addr: localhost:6379
pool:
maxidle: 16
maxactive: 64
idletimeout: 300s
dialtimeout: 10ms
readtimeout: 10ms
writetimeout: 10ms
notifications:
events:
includereferences: true
endpoints:
- name: local-5003
url: path_to_url
headers:
Authorization: [Bearer <an example token>]
timeout: 1s
threshold: 10
backoff: 1s
disabled: true
- name: local-8083
url: path_to_url
timeout: 1s
threshold: 10
backoff: 1s
disabled: true
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
```
|
The Northland rugby league team are a rugby league team that represents the Northland Region in New Zealand Rugby League competitions. They are based in Whangārei. They currently compete in the Albert Baskerville Trophy as the Northern Swords.
Between 2006 and 2007 they were part of the Bartercard Cup, playing under the name the Northern Storm. Northland was originally known as North Auckland and has previously used the nickname the Wild Boars.
The 2015 captain is Chris Bamford.
History
Northlands first season was 1929 and they challenged Auckland for the Northern Union Cup, losing 22–19.
2006-2007: Bartercard Cup
The Northern Storm joined the Bartercard Cup in time for the 2006 season. There inclusion was due to the work of Anthony Murray and Harry Clyde.
The Storm's first win was 40–22 against Wellington and was dedicated to Murray who had died earlier that week.
Notable players
New Zealand Warriors associated with the Northern Storm included Todd Byrne & Grant Rovelli.
2006 results
In the Northern Storm's debut season in 2006 the club performed poorly, managing only two wins and two draws from eighteen matches. They finished in last position on the table, collecting the Wooden Spoon.
A bright point of the season was that fullback Brendon Hikaka, centre Mason Pure and hooker Linton Price were all selected for the Junior Kiwis.
2007 results
Before the season started 2006 Head Coach Geoff Morton moved South and joined the Counties Manukau Jetz. He was replaced by Phil Marsh.
The Storm started the season strongly with big wins against the Jetz (54-28) and Central Falcons (48-24). However they then suffered heavy losses to both the Waitakere Rangers (66-16) and league leaders the Auckland Lions (70-8). The squad showed improvement since 2006 but they again finished near the bottom of the table.
Notable players
Frank Pickrang (played for New Zealand before moving to Whangārei to play for City in 1939).
References
External links
Northern Swords NZRL.co.nz
Rugby league teams in New Zealand
Rugby league in Northland
1929 establishments in New Zealand
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.