text
stringlengths 1
22.8M
|
|---|
The Fruit Bowl is an early 20th century drawing by Juan Gris. The work was produced as part of a collaboration between Gris and Pierre Reverdy to commission a book filled with lithographs made from the former's paintings. The project was interrupted by the onset of World War I in 1914 and never finished. Reverdy composed a poem titled The Fruit Bowl to accompany the painting. Gris' work is currently in the collection of the Metropolitan Museum of Art.
This piece belongs to the movement of Synthetic Cubism, where pioneers like Pablo Picasso and Georges Braque began to find new ways to expand the genre of painting, the most important of these being the development of collage. The idea that commonplace items like paper could be elevated to the level of high art was foundational in the progression of these forms.
References
Drawings in the Metropolitan Museum of Art
1916 drawings
Paintings by Juan Gris
Cubism
|
Jacob Carl Gustaf Herman Björnström (December 14, 1881 – July 17, 1935) was a Finnish sailor who competed in the 1912 Summer Olympics. He was a crew member of the Finnish boat Nina, which won the silver medal in the 10 metre class.
References
External links
1881 births
1935 deaths
Finnish male sailors (sport)
Sailors at the 1912 Summer Olympics – 10 Metre
Olympic sailors for Finland
Olympic silver medalists for Finland
Olympic medalists in sailing
Medalists at the 1912 Summer Olympics
|
Bolin Chetia is an Indian politician of Bharatiya Janata Party from Assam who is serving as the member of the Assam Legislative Assembly representing Sadiya constituency since 2016 as a member of the Bharatiya Janata Party and from 2006 to 2016 as a member of the Indian National Congress . He belongs to the Buruk clan of the Chutia community and hails from Barekuri , Tinsukia.
References
Living people
Bharatiya Janata Party politicians from Assam
Assam MLAs 2006–2011
Assam MLAs 2011–2016
Assam MLAs 2016–2021
People from Tinsukia district
Indian National Congress politicians
Year of birth missing (living people)
Assam MLAs 2021–2026
Indian National Congress politicians from Assam
|
Xylota morna is a species of hoverfly in the family Syrphidae.
Distribution
Borneo.
References
Milesiini
Insects described in 1931
Diptera of North America
Taxa named by Charles Howard Curran
|
```xml
export { RefField } from './RefField';
```
|
```go
package keeper_test
import (
"testing"
dbm "github.com/cosmos/cosmos-db"
"github.com/stretchr/testify/suite"
"cosmossdk.io/log"
"cosmossdk.io/store"
"cosmossdk.io/store/metrics"
storetypes "cosmossdk.io/store/types"
"cosmossdk.io/x/group"
"cosmossdk.io/x/group/internal/orm"
"cosmossdk.io/x/group/keeper"
"github.com/cosmos/cosmos-sdk/codec"
codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
)
type invariantTestSuite struct {
suite.Suite
ctx sdk.Context
cdc *codec.ProtoCodec
key *storetypes.KVStoreKey
}
func TestInvariantTestSuite(t *testing.T) {
suite.Run(t, new(invariantTestSuite))
}
func (s *invariantTestSuite) SetupSuite() {
interfaceRegistry := types.NewInterfaceRegistry()
group.RegisterInterfaces(interfaceRegistry)
cdc := codec.NewProtoCodec(interfaceRegistry)
key := storetypes.NewKVStoreKey(group.ModuleName)
db := dbm.NewMemDB()
cms := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics())
cms.MountStoreWithDB(key, storetypes.StoreTypeIAVL, db)
_ = cms.LoadLatestVersion()
sdkCtx := sdk.NewContext(cms, false, log.NewNopLogger())
s.ctx = sdkCtx
s.cdc = cdc
s.key = key
}
func (s *invariantTestSuite) TestGroupTotalWeightInvariant() {
sdkCtx, _ := s.ctx.CacheContext()
curCtx, cdc, key := sdkCtx, s.cdc, s.key
addressCodec := codectestutil.CodecOptions{}.GetAddressCodec()
// Group Table
groupTable, err := orm.NewAutoUInt64Table([2]byte{keeper.GroupTablePrefix}, keeper.GroupTableSeqPrefix, &group.GroupInfo{}, cdc, addressCodec)
s.Require().NoError(err)
// Group Member Table
groupMemberTable, err := orm.NewPrimaryKeyTable([2]byte{keeper.GroupMemberTablePrefix}, &group.GroupMember{}, cdc, addressCodec)
s.Require().NoError(err)
groupMemberByGroupIndex, err := orm.NewIndex(groupMemberTable, keeper.GroupMemberByGroupIndexPrefix, func(val interface{}) ([]interface{}, error) {
group := val.(*group.GroupMember).GroupId
return []interface{}{group}, nil
}, group.GroupMember{}.GroupId)
s.Require().NoError(err)
_, _, addr1 := testdata.KeyTestPubAddr()
_, _, addr2 := testdata.KeyTestPubAddr()
addr1Str, err := addressCodec.BytesToString(addr1)
s.Require().NoError(err)
addr2Str, err := addressCodec.BytesToString(addr2)
s.Require().NoError(err)
specs := map[string]struct {
groupsInfo *group.GroupInfo
groupMembers []*group.GroupMember
expBroken bool
}{
"invariant not broken": {
groupsInfo: &group.GroupInfo{
Id: 1,
Admin: addr1Str,
Version: 1,
TotalWeight: "3",
},
groupMembers: []*group.GroupMember{
{
GroupId: 1,
Member: &group.Member{
Address: addr1Str,
Weight: "1",
},
},
{
GroupId: 1,
Member: &group.Member{
Address: addr2Str,
Weight: "2",
},
},
},
expBroken: false,
},
"group's TotalWeight must be equal to sum of its members weight ": {
groupsInfo: &group.GroupInfo{
Id: 1,
Admin: addr1Str,
Version: 1,
TotalWeight: "3",
},
groupMembers: []*group.GroupMember{
{
GroupId: 1,
Member: &group.Member{
Address: addr1Str,
Weight: "2",
},
},
{
GroupId: 1,
Member: &group.Member{
Address: addr2Str,
Weight: "2",
},
},
},
expBroken: true,
},
}
for _, spec := range specs {
cacheCurCtx, _ := curCtx.CacheContext()
groupsInfo := spec.groupsInfo
groupMembers := spec.groupMembers
storeService := runtime.NewKVStoreService(key)
kvStore := storeService.OpenKVStore(cacheCurCtx)
_, err := groupTable.Create(kvStore, groupsInfo)
s.Require().NoError(err)
for i := 0; i < len(groupMembers); i++ {
err := groupMemberTable.Create(kvStore, groupMembers[i])
s.Require().NoError(err)
}
_, broken := keeper.GroupTotalWeightInvariantHelper(cacheCurCtx, storeService, *groupTable, groupMemberByGroupIndex)
s.Require().Equal(spec.expBroken, broken)
}
}
```
|
```java
package com.airbnb.epoxy;
import android.content.Context;
import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;
import androidx.annotation.PluralsRes;
import androidx.annotation.StringRes;
import java.lang.CharSequence;
import java.lang.Number;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
/**
* Generated file. Do not modify!
*/
public class TestNullStringOverloadsViewModel_ extends EpoxyModel<TestNullStringOverloadsView> implements GeneratedModel<TestNullStringOverloadsView>, TestNullStringOverloadsViewModelBuilder {
private OnModelBoundListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> onModelBoundListener_epoxyGeneratedModel;
private OnModelUnboundListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> onModelUnboundListener_epoxyGeneratedModel;
private OnModelVisibilityStateChangedListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> onModelVisibilityStateChangedListener_epoxyGeneratedModel;
private OnModelVisibilityChangedListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> onModelVisibilityChangedListener_epoxyGeneratedModel;
private StringAttributeData title_StringAttributeData = new StringAttributeData((CharSequence) null);
@Override
public void addTo(EpoxyController controller) {
super.addTo(controller);
addWithDebugValidation(controller);
}
@Override
public void handlePreBind(final EpoxyViewHolder holder, final TestNullStringOverloadsView object,
final int position) {
validateStateHasNotChangedSinceAdded("The model was changed between being added to the controller and being bound.", position);
}
@Override
public void bind(final TestNullStringOverloadsView object) {
super.bind(object);
object.setTitle(title_StringAttributeData.toString(object.getContext()));
}
@Override
public void bind(final TestNullStringOverloadsView object, EpoxyModel previousModel) {
if (!(previousModel instanceof TestNullStringOverloadsViewModel_)) {
bind(object);
return;
}
TestNullStringOverloadsViewModel_ that = (TestNullStringOverloadsViewModel_) previousModel;
super.bind(object);
if ((title_StringAttributeData != null ? !title_StringAttributeData.equals(that.title_StringAttributeData) : that.title_StringAttributeData != null)) {
object.setTitle(title_StringAttributeData.toString(object.getContext()));
}
}
@Override
public void handlePostBind(final TestNullStringOverloadsView object, int position) {
if (onModelBoundListener_epoxyGeneratedModel != null) {
onModelBoundListener_epoxyGeneratedModel.onModelBound(this, object, position);
}
validateStateHasNotChangedSinceAdded("The model was changed during the bind call.", position);
}
/**
* Register a listener that will be called when this model is bound to a view.
* <p>
* The listener will contribute to this model's hashCode state per the {@link
* com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules.
* <p>
* You may clear the listener by setting a null value, or by calling {@link #reset()}
*/
public TestNullStringOverloadsViewModel_ onBind(
OnModelBoundListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> listener) {
onMutation();
this.onModelBoundListener_epoxyGeneratedModel = listener;
return this;
}
@Override
public void unbind(TestNullStringOverloadsView object) {
super.unbind(object);
if (onModelUnboundListener_epoxyGeneratedModel != null) {
onModelUnboundListener_epoxyGeneratedModel.onModelUnbound(this, object);
}
}
/**
* Register a listener that will be called when this model is unbound from a view.
* <p>
* The listener will contribute to this model's hashCode state per the {@link
* com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules.
* <p>
* You may clear the listener by setting a null value, or by calling {@link #reset()}
*/
public TestNullStringOverloadsViewModel_ onUnbind(
OnModelUnboundListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> listener) {
onMutation();
this.onModelUnboundListener_epoxyGeneratedModel = listener;
return this;
}
@Override
public void onVisibilityStateChanged(int visibilityState,
final TestNullStringOverloadsView object) {
if (onModelVisibilityStateChangedListener_epoxyGeneratedModel != null) {
onModelVisibilityStateChangedListener_epoxyGeneratedModel.onVisibilityStateChanged(this, object, visibilityState);
}
super.onVisibilityStateChanged(visibilityState, object);
}
/**
* Register a listener that will be called when this model visibility state has changed.
* <p>
* The listener will contribute to this model's hashCode state per the {@link
* com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules.
*/
public TestNullStringOverloadsViewModel_ onVisibilityStateChanged(
OnModelVisibilityStateChangedListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> listener) {
onMutation();
this.onModelVisibilityStateChangedListener_epoxyGeneratedModel = listener;
return this;
}
@Override
public void onVisibilityChanged(float percentVisibleHeight, float percentVisibleWidth,
int visibleHeight, int visibleWidth, final TestNullStringOverloadsView object) {
if (onModelVisibilityChangedListener_epoxyGeneratedModel != null) {
onModelVisibilityChangedListener_epoxyGeneratedModel.onVisibilityChanged(this, object, percentVisibleHeight, percentVisibleWidth, visibleHeight, visibleWidth);
}
super.onVisibilityChanged(percentVisibleHeight, percentVisibleWidth, visibleHeight, visibleWidth, object);
}
/**
* Register a listener that will be called when this model visibility has changed.
* <p>
* The listener will contribute to this model's hashCode state per the {@link
* com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules.
*/
public TestNullStringOverloadsViewModel_ onVisibilityChanged(
OnModelVisibilityChangedListener<TestNullStringOverloadsViewModel_, TestNullStringOverloadsView> listener) {
onMutation();
this.onModelVisibilityChangedListener_epoxyGeneratedModel = listener;
return this;
}
@Nullable
public CharSequence getTitle(Context context) {
return title_StringAttributeData.toString(context);
}
/**
* <i>Optional</i>: Default value is (CharSequence) null
*
* @see TestNullStringOverloadsView#setTitle(CharSequence)
*/
public TestNullStringOverloadsViewModel_ title(@Nullable CharSequence title) {
onMutation();
title_StringAttributeData.setValue(title);
return this;
}
/**
* If a value of 0 is set then this attribute will revert to its default value.
* <p>
* <i>Optional</i>: Default value is (CharSequence) null
*
* @see TestNullStringOverloadsView#setTitle(CharSequence)
*/
public TestNullStringOverloadsViewModel_ title(@StringRes int stringRes) {
onMutation();
title_StringAttributeData.setValue(stringRes);
return this;
}
/**
* If a value of 0 is set then this attribute will revert to its default value.
* <p>
* <i>Optional</i>: Default value is (CharSequence) null
*
* @see TestNullStringOverloadsView#setTitle(CharSequence)
*/
public TestNullStringOverloadsViewModel_ title(@StringRes int stringRes, Object... formatArgs) {
onMutation();
title_StringAttributeData.setValue(stringRes, formatArgs);
return this;
}
/**
* If a value of 0 is set then this attribute will revert to its default value.
* <p>
* <i>Optional</i>: Default value is (CharSequence) null
*
* @see TestNullStringOverloadsView#setTitle(CharSequence)
*/
public TestNullStringOverloadsViewModel_ titleQuantityRes(@PluralsRes int pluralRes, int quantity,
Object... formatArgs) {
onMutation();
title_StringAttributeData.setValue(pluralRes, quantity, formatArgs);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ id(long p0) {
super.id(p0);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ id(@Nullable Number... p0) {
super.id(p0);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ id(long p0, long p1) {
super.id(p0, p1);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ id(@Nullable CharSequence p0) {
super.id(p0);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ id(@Nullable CharSequence p0,
@Nullable CharSequence... p1) {
super.id(p0, p1);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ id(@Nullable CharSequence p0, long p1) {
super.id(p0, p1);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ layout(@LayoutRes int p0) {
super.layout(p0);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ spanSizeOverride(
@Nullable EpoxyModel.SpanSizeOverrideCallback p0) {
super.spanSizeOverride(p0);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ show() {
super.show();
return this;
}
@Override
public TestNullStringOverloadsViewModel_ show(boolean p0) {
super.show(p0);
return this;
}
@Override
public TestNullStringOverloadsViewModel_ hide() {
super.hide();
return this;
}
@Override
@LayoutRes
protected int getDefaultLayout() {
return 1;
}
@Override
public TestNullStringOverloadsViewModel_ reset() {
onModelBoundListener_epoxyGeneratedModel = null;
onModelUnboundListener_epoxyGeneratedModel = null;
onModelVisibilityStateChangedListener_epoxyGeneratedModel = null;
onModelVisibilityChangedListener_epoxyGeneratedModel = null;
this.title_StringAttributeData = new StringAttributeData((CharSequence) null);
super.reset();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof TestNullStringOverloadsViewModel_)) {
return false;
}
if (!super.equals(o)) {
return false;
}
TestNullStringOverloadsViewModel_ that = (TestNullStringOverloadsViewModel_) o;
if (((onModelBoundListener_epoxyGeneratedModel == null) != (that.onModelBoundListener_epoxyGeneratedModel == null))) {
return false;
}
if (((onModelUnboundListener_epoxyGeneratedModel == null) != (that.onModelUnboundListener_epoxyGeneratedModel == null))) {
return false;
}
if (((onModelVisibilityStateChangedListener_epoxyGeneratedModel == null) != (that.onModelVisibilityStateChangedListener_epoxyGeneratedModel == null))) {
return false;
}
if (((onModelVisibilityChangedListener_epoxyGeneratedModel == null) != (that.onModelVisibilityChangedListener_epoxyGeneratedModel == null))) {
return false;
}
if ((title_StringAttributeData != null ? !title_StringAttributeData.equals(that.title_StringAttributeData) : that.title_StringAttributeData != null)) {
return false;
}
return true;
}
@Override
public int hashCode() {
int _result = super.hashCode();
_result = 31 * _result + (onModelBoundListener_epoxyGeneratedModel != null ? 1 : 0);
_result = 31 * _result + (onModelUnboundListener_epoxyGeneratedModel != null ? 1 : 0);
_result = 31 * _result + (onModelVisibilityStateChangedListener_epoxyGeneratedModel != null ? 1 : 0);
_result = 31 * _result + (onModelVisibilityChangedListener_epoxyGeneratedModel != null ? 1 : 0);
_result = 31 * _result + (title_StringAttributeData != null ? title_StringAttributeData.hashCode() : 0);
return _result;
}
@Override
public String toString() {
return "TestNullStringOverloadsViewModel_{" +
"title_StringAttributeData=" + title_StringAttributeData +
"}" + super.toString();
}
@Override
public int getSpanSize(int totalSpanCount, int position, int itemCount) {
return totalSpanCount;
}
}
```
|
```javascript
var path = require('path')
var mr = require('npm-registry-mock')
var test = require('tap').test
var common = require('../common-tap')
var Tacks = require('tacks')
var Dir = Tacks.Dir
var File = Tacks.File
var workdir = common.pkg
var cachedir = common.cache
var modulesdir = path.join(workdir, 'modules')
var oldModule = path.join(modulesdir, 'good-night-0.1.0.tgz')
var newModule = path.join(modulesdir, 'good-night-1.0.0.tgz')
var config = [
'--cache', cachedir,
'--prefix', workdir,
'--registry', common.registry
]
var fixture = new Tacks(Dir({
'modules': Dir({
'good-night-0.1.0.tgz': File(Buffer.from(
'1f8b0800000000000003ed934f4bc43010c57beea7187a59056dd36eff80' +
'de85050541c1f3d8c634da4e4a925a8af8dd6db7bb8ba0e0c15559e9eff2' +
'206f929909bc06f327143c6826f51f8d2267cf30c6d2388641c32c61ef75' +
'4d9426e084519a25491645cbcc61e192c5d1e0ef7b90cf688d453d8cf2dd' +
'77a65d60a707c28b0b031e61cdbd33f08452c52949515aef64729eb93652' +
'd168323ff4d9f6bce026d7b2b11bafef11b1eb3a221a2aa6126c6da9f4e8' +
'5e691f6e908a1a697b5ff346196995eec7023399c1c7fe95cc3999f57077' +
'b717d7979efbeafef5a7fd2336b90f6a943484ff477a7c917f96c5bbfc87' +
'493ae63f627138e7ff37c815195571bf52e268b1820e0d0825498055d069' +
'6939d8521ab86f2dace0815715a0a9386f16c7e7730c676666660e9837c0' +
'f6795d000c0000',
'hex'
)),
'good-night-1.0.0.tgz': File(Buffer.from(
'1f8b0800000000000003ed954d6bc24010863dfb2bb6b9a8503793b849a0' +
'eda5979efa052d484184252e495a331b76d78a94fef76e8cf683163cd42a' +
'957d2e03796777268187543c7de299f0aba6d2472db1b5650020668cd81a' +
'24117cae4bc23822ad208c93284a1208c216040318c436dff6223f31d386' +
'2bbbca6fef69de85bcd77fc24b9b583ce4a5f04e88974939e96391e5c63b' +
'6e9267a17421b10e030a14d6cf2742a7aaa8cc2a5b2c38e7f3f91c116d47' +
'd3c2672697aa4eaf1425771c2725c7f579252aa90b23d5a26ed04de87f9f' +
'3f2d52817ab9dcf0fee2f6d26bbfb6f7fdd10e8895f77ec90bb4f2ffc98c' +
'0dfe439c7cf81fc4b5ff213070feef8254a2965341a732eb76b4cef39c12' +
'e456eb52d82a29198dc637639f9c751fce8796eba35ea777ea0c3c14d6fe' +
'532314f62ba9ccf6676cf21fbefcff59ed3f4b22e7ff2e60110bc37d2fe1' +
'70381c8e9df306642df14500100000',
'hex'
))
})
}))
var server
// In this test we mock a situation where the user has a package in his cache,
// a newer version of the package is published, and the user tried to install
// said new version while requestion that the cache be used.
// npm should see that it doesn't have the package in its cache and hit the
// registry.
var onlyOldMetadata = {
'name': 'good-night',
'dist-tags': {
'latest': '0.1.0'
},
'versions': {
'0.1.0': {
'name': 'good-night',
'version': '0.1.0',
'dist': {
'shasum': '2a746d49dd074ba0ec2d6ff13babd40c658d89eb',
'tarball': 'path_to_url + common.port + '/good-night/-/good-night-0.1.0.tgz'
}
}
}
}
var oldAndNewMetadata = Object.assign({}, onlyOldMetadata)
oldAndNewMetadata['dist-tags'] = { latest: '1.0.0' }
oldAndNewMetadata.versions = Object.assign({
'1.0.0': {
'name': 'good-night',
'version': '1.0.0',
'dist': {
'shasum': 'f377bf002a0a8fc4085d347a160a790b76896bc3',
'tarball': 'path_to_url + common.port + '/good-night/-/good-night-1.0.0.tgz'
}
}
}, oldAndNewMetadata.versions)
function setup () {
cleanup()
fixture.create(workdir)
}
function cleanup () {
fixture.remove(workdir)
}
test('setup', function (t) {
setup()
t.end()
})
test('setup initial server', function (t) {
mr({
port: common.port,
throwOnUnmatched: true
}, function (err, s) {
t.ifError(err, 'registry mocked successfully')
server = s
server.get('/good-night')
.many({ min: 1, max: 1 })
.reply(200, onlyOldMetadata)
server.get('/good-night/-/good-night-0.1.0.tgz')
.many({ min: 1, max: 1 })
.replyWithFile(200, oldModule)
t.end()
})
})
test('install initial version', function (t) {
common.npm(config.concat([
'install', 'good-night'
]), {stdio: 'inherit'}, function (err, code) {
if (err) throw err
t.is(code, 0, 'initial install succeeded')
server.done()
t.end()
})
})
test('cleanup initial server', function (t) {
server.close()
t.end()
})
test('setup new server', function (t) {
mr({
port: common.port,
throwOnUnmatched: true
}, function (err, s) {
t.ifError(err, 'registry mocked successfully')
server = s
server.get('/good-night')
.many({ min: 1, max: 1 })
.reply(200, oldAndNewMetadata)
server.get('/good-night/-/good-night-1.0.0.tgz')
.many({ min: 1, max: 1 })
.replyWithFile(200, newModule)
t.end()
})
})
test('install new version', function (t) {
common.npm(config.concat([
'--prefer-offline',
'install', 'good-night@1.0.0'
]), {}, function (err, code, stdout, stderr) {
if (err) throw err
t.equal(stderr, '', 'no error output')
t.is(code, 0, 'install succeeded')
t.end()
})
})
test('install does not hit server again', function (t) {
// The mock server route definitions ensure we don't hit the server again
common.npm(config.concat([
'--prefer-offline',
'--parseable',
'install', 'good-night'
]), {stdio: [0, 'pipe', 2]}, function (err, code, stdout) {
if (err) throw err
t.is(code, 0, 'install succeeded')
t.match(stdout, /^update\tgood-night\t1.0.0\t/, 'installed latest version')
server.done()
t.end()
})
})
test('cleanup', function (t) {
server.close()
cleanup()
t.end()
})
```
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var tape = require( 'tape' );
var proxyquire = require( 'proxyquire' );
var IS_BROWSER = require( '@stdlib/assert/is-browser' );
var dstdevtk = require( './../lib' );
// VARIABLES //
var opts = {
'skip': IS_BROWSER
};
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof dstdevtk, 'function', 'main export is a function' );
t.end();
});
tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) {
t.strictEqual( typeof dstdevtk.ndarray, 'function', 'method is a function' );
t.end();
});
tape( 'if a native implementation is available, the main export is the native implementation', opts, function test( t ) {
var dstdevtk = proxyquire( './../lib', {
'@stdlib/utils/try-require': tryRequire
});
t.strictEqual( dstdevtk, mock, 'returns expected value' );
t.end();
function tryRequire() {
return mock;
}
function mock() {
// Mock...
}
});
tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) {
var dstdevtk;
var main;
main = require( './../lib/dstdevtk.js' );
dstdevtk = proxyquire( './../lib', {
'@stdlib/utils/try-require': tryRequire
});
t.strictEqual( dstdevtk, main, 'returns expected value' );
t.end();
function tryRequire() {
return new Error( 'Cannot find module' );
}
});
```
|
Tržišče may refer to:
Tržišče, Rogaška Slatina, a settlement in the Municipality of Rogaška Slatina, northeastern Slovenia
Tržišče, Sevnica, a settlement in the Municipality of Sevnica, central Slovenia
|
Georgie White Clark (1911–1992) was a river-running guide in the Grand Canyon. She was the first woman to run the Grand Canyon as a commercial enterprise, and she introduced several innovations and adjustments to the way that guides ran the Colorado River. In particular, she used large army-surplus rafts, often lashing together multiple rafts, to maintain stability in the large rapids. In 2001, the United States Board on Geographic Names renamed Mile 24 Rapid in her honor.
Early years
Born Bessie DeRoss in Oklahoma, she was raised in Denver, Colorado, from the age of nine. She married Harold Clark while still in high school and had a daughter, Sommona Rose, at the age of 17. She moved to Chicago for several years, then to New York City with her husband, finding office work at Radio City Music Hall, and divorced him not long after a cross-country bicycle trip in 1936. She was briefly married to James White.
The West and the Grand Canyon
Georgie and her daughter were close companions after her divorce from Clark, engaging in outdoor activities such as mountain and rock climbing, skiing, skating, and bicycling. In 1944, her 15-year-old daughter was killed by a hit-and-run driver while bicycling. She took to hiking in the desert with a friend, Harry Aleson. They found in one another what author David Lavender calls a mutual sedation for the lonely, restless questing that was eating out their insides. Harry had recently fallen in love with the lower Colorado River through Grand Canyon, and invited White on a different sort of adventure, to demonstrate that in the event of a boating accident, it would be easier to float downstream than hike out. So in late June 1945, they made their way up river from Diamond Creek at mile 226, and plunged in the current, running at , and "swam" down to Lake Mead. Though wearing the bulky "Mae West" life jacket, they were still able to carry backpacks for watertight tins that contained first-aid supplies, food, cameras and film. They arrived exhausted three days later at Lake Mead.
The eccentric pair wanted to prove beyond a doubt that river travel was a safe proposition, and provide good press for the emerging commercial rafting industry. So in June 1946, Aleson and White hiked down Parashant Wash, arriving at the Colorado River at mile 198. After recovering from their epic hike, where they nearly perished from thirst, they built a raft fashioned after James White's, who had allegedly been the first to float the Grand Canyon in 1867. But they were unable to launch it into the raging torrent, running the same volume as the previous year. They opted instead to use a one-man U.S. Army Air Corps rescue raft that they had packed in. So on June 26, they began an epic journey down to Lake Mead, unimaginable by modern river runners.
White was the first woman to row the full length of Marble and Grand Canyons in 1952. She made her name when, in the early 1950s, she lashed three rafts together to achieve better stability in big rapids and began taking paying customers to "share the expense" of running the river. Her methods were controversial, as those who ran the river in wooden rowboats such as dories disdained the rubber rafts. She shrugged off her detractors and kept her river-guiding business going for 45 years. Her "Royal River Rats" achieved some fame, being featured in Life Magazine, The Tonight Show Starring Johnny Carson, and countless newspapers. At the age of 73, she could be seen holding her motor rig's tiller with one hand and a beer with the other, wearing a full-length leopard-pattern leotard. Her last Grand Canyon trip took place in September 1991 as she was approaching her 80th birthday. She died of cancer in 1992 at age 81.
Following her death, those who examined her personal effects found artifacts which led some to speculate that White had, in fact, been Bessie Hyde, the woman who had vanished with her husband during a honeymoon float of the Grand Canyon in 1928. Rumors had floated that Bessie had killed her abusive husband and hiked out of the Canyon. Among White's personal effects were a copy of the Hydes' marriage license and a pistol in her lingerie drawer. However, river historian Brad Dimock and White's biographer Richard Westwood have discounted the rumor that White and Hyde were the same person.
The renaming of Mile 24 Rapid in her honor was controversial. Georgie's detractors were many; in addition, her friends would have liked to see a bigger, more prominent rapid named for her. Rapids such as Crystal and Granite were unlikely to be renamed, and on October 11, 2001, the U.S. Board on Geographic Names followed the Arizona State Boards on Geographic and Historic Names and approved renaming Twenty-Four Mile Rapid as Georgie Rapid in a split 3–2 vote.
The detractors were many due to Georgie's habit of disregarding her customers' safety. Her business had the distinction of having the first rafting commercial fatality, Mae Hansen, aged 64, in July 1972, and the first injured person to be evacuated by helicopter from the Grand Canyon, Vernon Read, who suffered severe skull and spinal fractures on a trip in 1959. On August 25, 1984, river guide John Davenport, watched as Georgie intentionally launched her boat into a dangerous position into Lava Falls Rapid (River Mile 179.4), and reported
Customer Norine Abrams died as a result of these actions. When National Park Service Ranger Kim Crumbo arrived to transport Ms. Abram's body out, Georgie became frustrated because the transportation was taking too long. She had new customers arriving and she didn't want them to see the body bag. She so annoyed the ranger (who had injured his back moving the body) that "Ranger Crumbo said 'Georgie, you just killed this woman, now you want me to hurry up and hide the body?' Georgie stared Crumbo in the eye and said, 'You're damned right I do. Now get her out of sight before you scare these new people.'"
Further reading
DeRoss, Rose Marie (1970). Adventures of Georgie White, TV's "Woman of the Rivers". Gardner Printing and Mailing Co. .
Westwood, Dick (1997). Woman of the River: Georgie White Clark, White Water Pioneer. Utah State University Press. .
Dimock, Brad (2001). Sunk Without a Sound: The Tragic Colorado River Honeymoon of Glen and Bessie Hyde . Fretwater Press. .
Briggs, Don (1999). River Runners of the Grand Canyon, VHS/DVD
Ghiglieri, Michael P. and Thomas M. Myers (2001). "Over the Edge: Death in Grand Canyon". Puma Press.
References
Early Grand Canyon river runners
1911 births
1992 deaths
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="300dp">
<TextView
android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:layout_gravity="center"
android:textSize="21sp"/>
</FrameLayout>
```
|
The men's 50 metre butterfly at the 2015 IPC Swimming World Championships was held at the Tollcross International Swimming Centre in Glasgow, United Kingdom from 13–17 July.
Medalists
Legend
WR: World record, CR: Championship record, AF: Africa record, AM: Americas record, AS: Asian record, EU: European record, OS: Oceania record
See also
List of IPC world records in swimming
References
butterfly 50 m men
|
ABC-Clio, LLC (stylized ABC-CLIO) is an American publishing company for academic reference works and periodicals primarily on topics such as history and social sciences for educational and public library settings. ABC-Clio provides service to fifteen different online databases which contain over one million online textbooks. The company consults academic leaders in the fields they cover in order to provide authority for their reference titles. The headquarters are located in Santa Barbara, California.
History
ABC-Clio was founded in 1953 as a privately held corporation by Eric Boehm with its first publication, Historical Abstracts. The name represents the company's two original divisions when it incorporated in 1969: ABC stands for American Bibliographical Center and Clio Press is named after Clio, the muse of history from ancient Greek mythology. According to Boehm, he had always been interested in history so when he noticed that there were not many good historical abstracting services available, he started publishing the Historical Abstracts.
During the 1960s, a sister bibliographic and abstract publication on American history was added, America: History and Life, which was considered an award-winning title. The company entered into digital publishing with electronic data in the 1960s and in 1975, it published its first online database called DIALOG. During the 1980s, ABC-Clio expanded into providing primary reference books such as encyclopedias and dictionaries and stopped publishing bibliographic books.
In the 1990s, ABC-Clio began to provide access to its humanities database on CD-ROM. The Exegy Current Events CD-ROM was named "Best Disc of the Year" by Library Journal. In 1998, ABC-Clio provided electronic access to America: History and Life. By the 2000s, one of the company's most popular products had become online databases for researching many topics in the field of the humanities. In 2001, ABC-Clio began to publish eBooks, initially providing 150 different titles to schools and libraries. The company's reference books had won numerous awards, and the company started a series of subject-related online databases for secondary school use. In 2004, the company acquired the quarterly historical journal, Journal of the West, which has been published since 1962.
In 1996, ABC-Clio merged with an electronic publishing company, Intellimation, which also produced educational software. The merger brought Becky Snyder, ABC-Clio's current president, from Intellimation. It sold Historical Abstracts and America: History and Life to EBSCO Publishing in 2007. Bloomsbury Publishing acquired ABC-CLIO in December 2021.
Subsidiaries
Intellimation
Linworth Publishing, Inc.: In 2009-03-18, Libraries Unlimited announced the acquisition of Linworth Publishing, with partnership becoming effective immediately.
Journal of the West
Imprints and series
ABC-Clio/Greenwood
In 2008, ABC-Clio acquired the Greenwood Publishing Group from Houghton Mifflin Harcourt. The deal gave ABC-Clio a "perpetual license" to use the imprints of Greenwood Press and publish all of its titles. Acquiring the publishing group gave ABC-Clio access to Greenwood Press, Praeger Publishers, Praeger Security International and Libraries Unlimited. Greenwood focuses on publishing full-text reference works which are authoritative on various topics.
Libraries Unlimited
Libraries Unlimited came to ABC-Clio as part of a deal with Greenwood Press. In 2012, Kathyrn Suárez was named Publisher for this division which focuses on publishing for librarians and information professionals.
ABC-Clio Solutions
ABC-Clio databases are provided under the umbrella of ABC-Clio Solutions. There are fifteen different databases providing access to different subject areas. ABC-Clio Solutions provides digital curriculum with multimedia content, text-to-speech features, translation tools which covers various topics relating to history and the humanities. After ABC-Clio acquired Greenwood Press's databases, they revamped the look and feel of their interface in order to provide common access through the ABC-Clio interface. ABC-Clio also provided the ability to search across multiple databases through one search, also providing options for narrowing the search after revamping their interface. The new interface is considered user-friendly and provides access to personalized features.
Praeger
Praeger is known for publishing "scholarly and professional books" in the subject areas of social science and the humanities.
References
External links
Companies based in Santa Barbara, California
Companies based in Santa Barbara County, California
Book publishing companies based in California
Educational book publishing companies
Bibliographic database providers
Academic publishing companies
Publishing companies established in 1953
|
George E. Brenner (1913–1952) was an American cartoonist in the mid 20th-century. He created comics such as The Clock, Bozo the Iron Man, and 711.
Brenner was first employed by the Comics Magazine Company before moving to Everett "Busy" Arnold's Quality Comics group in late 1937, attaining the title of Executive Editor. He subsequently worked on titles such as Crack Comics, Doll Man Quarterly, Feature Comics, Police Comics, and Smash Comics. The cover for Smash Comics #22 was drafted by Brenner. One of the pseudonyms he used was "Wayne Reid".
He also had a small part as a guest in the 1946 movie The Razor's Edge.
The circumstances of his death are unknown, but Brenner is remembered as creator of the first (1936) masked hero in comics (other masked heroes like the Shadow and Zorro had previously appeared in pulps); the face covering worn by The Clock was nothing more than a simple black cloth with a flounce on the bottom.
References
American comics artists
1913 births
1952 deaths
|
```go
// +build !ignore_autogenerated
/*
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.
*/
// Code generated by deepcopy-gen. DO NOT EDIT.
package apiserver
import (
runtime "k8s.io/apimachinery/pkg/runtime"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AdmissionConfiguration) DeepCopyInto(out *AdmissionConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
if in.Plugins != nil {
in, out := &in.Plugins, &out.Plugins
*out = make([]AdmissionPluginConfiguration, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionConfiguration.
func (in *AdmissionConfiguration) DeepCopy() *AdmissionConfiguration {
if in == nil {
return nil
}
out := new(AdmissionConfiguration)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AdmissionConfiguration) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AdmissionPluginConfiguration) DeepCopyInto(out *AdmissionPluginConfiguration) {
*out = *in
if in.Configuration != nil {
in, out := &in.Configuration, &out.Configuration
*out = new(runtime.Unknown)
(*in).DeepCopyInto(*out)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionPluginConfiguration.
func (in *AdmissionPluginConfiguration) DeepCopy() *AdmissionPluginConfiguration {
if in == nil {
return nil
}
out := new(AdmissionPluginConfiguration)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Connection) DeepCopyInto(out *Connection) {
*out = *in
if in.Transport != nil {
in, out := &in.Transport, &out.Transport
*out = new(Transport)
(*in).DeepCopyInto(*out)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connection.
func (in *Connection) DeepCopy() *Connection {
if in == nil {
return nil
}
out := new(Connection)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EgressSelection) DeepCopyInto(out *EgressSelection) {
*out = *in
in.Connection.DeepCopyInto(&out.Connection)
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressSelection.
func (in *EgressSelection) DeepCopy() *EgressSelection {
if in == nil {
return nil
}
out := new(EgressSelection)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *EgressSelectorConfiguration) DeepCopyInto(out *EgressSelectorConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
if in.EgressSelections != nil {
in, out := &in.EgressSelections, &out.EgressSelections
*out = make([]EgressSelection, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressSelectorConfiguration.
func (in *EgressSelectorConfiguration) DeepCopy() *EgressSelectorConfiguration {
if in == nil {
return nil
}
out := new(EgressSelectorConfiguration)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *EgressSelectorConfiguration) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TCPTransport) DeepCopyInto(out *TCPTransport) {
*out = *in
if in.TLSConfig != nil {
in, out := &in.TLSConfig, &out.TLSConfig
*out = new(TLSConfig)
**out = **in
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPTransport.
func (in *TCPTransport) DeepCopy() *TCPTransport {
if in == nil {
return nil
}
out := new(TCPTransport)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TLSConfig) DeepCopyInto(out *TLSConfig) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
func (in *TLSConfig) DeepCopy() *TLSConfig {
if in == nil {
return nil
}
out := new(TLSConfig)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Transport) DeepCopyInto(out *Transport) {
*out = *in
if in.TCP != nil {
in, out := &in.TCP, &out.TCP
*out = new(TCPTransport)
(*in).DeepCopyInto(*out)
}
if in.UDS != nil {
in, out := &in.UDS, &out.UDS
*out = new(UDSTransport)
**out = **in
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Transport.
func (in *Transport) DeepCopy() *Transport {
if in == nil {
return nil
}
out := new(Transport)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *UDSTransport) DeepCopyInto(out *UDSTransport) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UDSTransport.
func (in *UDSTransport) DeepCopy() *UDSTransport {
if in == nil {
return nil
}
out := new(UDSTransport)
in.DeepCopyInto(out)
return out
}
```
|
The Trichogrammatidae are a family of tiny wasps in the Chalcidoidea that include some of the smallest of all insects, with most species having adults less than 1 mm in length, with species of Megaphragma having an adult body length less than 300 μm. The over 840 species are placed in about 80 genera; their distribution is worldwide. Trichogrammatids parasitize the eggs of many different orders of insects. As such, they are among the more important biological control agents known, attacking many pest insects (especially Lepidoptera).
They are not strong fliers and are generally moved through the air by the prevailing winds. Their fore wings are typically somewhat stubby and paddle-shaped, with a long fringe of hinged setae around the outer margin to increase the surface area during the downstroke. Males of some species are wingless, and mate with their sisters inside the host egg in which they are born, dying without ever leaving the host egg.
Trichogrammatidae have unique nervous systems resulting from the necessity to conserve space. They have one of the smallest nervous systems, with one particularly diminutive species, Megaphragma mymaripenne, containing as few as 7,400 neurons. They are also the first (and only) known animals which have functioning neurons without nuclei.
The neurons develop during pupation with functional nuclei and manufacture enough proteins to last through the short lifespans of the adults. Before emerging as an adult, the nuclei are destroyed, allowing the wasp to conserve space by making the neurons smaller. Even without nuclei (which contain the DNA, essential for manufacturing proteins to repair damage in living cells), the neurons can survive because the proteins manufactured as a pupa are sufficient.
Their fossil record extends back to the Eocene aged Baltic amber.
Genera
Adelogramma
Adryas
Aphelinoidea
Apseudogramma
Asynacta
Australufens
Bloodiella
Brachista
Brachistagrapha
Brachygrammatella
Brachyia
Brachyufens
Burksiella
Centrobiopsis
Ceratogramma
Chaetogramma
Chaetostricha
Chaetostrichella
Densufens
Doirania
Emeria
Enneagmus
Epoligosita
Epoligosita
Eteroligosita
Eutrichogramma
Haeckeliania
Hayatia
Hispidophila
Hydrophylita
Ittys
Ittysella
Japania
Kyuwia
Lathromeris
Lathromeroidea
Lathromeromyia
Megaphragma
Microcaetiscus
Mirufens
Monorthochaeta
Neobrachista
Neobrachistella
Neocentrobia
Neocentrobiella
Neolathromera
Nicolavespa
Oligosita
Oligositoides
Ophioneurus
Pachamama
Paracentrobia
Paraittys
Paratrichogramma
Paruscanoidea
Pintoa
Poropoea
Prestwichia
Probrachista
Prochaetostricha
Prosoligosita
Prouscana
Pseudobrachysticha
Pseudogrammina
Pseudoligosita
Pseudomirufens
Pseuduscana
Pterandrophysalis
Pteranomalogramma
Pterygogramma
Sinepalpigramma
Soikiella
Szelenyia
Thanatogramma
Thoreauia
Trichogramma
Trichogrammatella
Trichogrammatoidea
Trichogrammatomyia
Tumidiclava
Tumidifemur
Ufens
Ufensia
Urogramma
Uscana
Uscanella
Uscanoidea
Uscanopsis
Viggianiella
Xenufens
Xenufensia
Xiphogramma
Zaga
Zagella
Zelogramma
References
Doutt, R.L. & Viggiani, G. 1968. The classification of the Trichogrammatidae (Hymenoptera: Chalcidoidea). Proceedings Calif. Acad. Sci. 35:477-586.
Matheson, R. & Crosby, C.R. 1912. Aquatic Hymenoptera in America. Annals of the Entomological Society of America 5:65-71.
Nagarkatti, S. & Nagaraja, H. 1977. Biosystematics of Trichogramma and Trichogrammatoidea species. Annual Review of Entomology 22:157-176.
External links
Universal Chalicidoid Database
UC Riverside Trichogrammatidae page
Apocrita families
Insects used as insect pest control agents
Biological pest control wasps
|
```scss
.Icon {
display: inline-block;
width: 1em;
height: 1em;
min-width: 16px;
min-height: 16px;
background-repeat: no-repeat;
background-size: cover;
vertical-align: text-bottom;
&:not(:last-child) {
margin-right: 0.5em;
}
}
// Create classes for all known icons to be used as a background-image:
$icons: (
'autorefresh',
'check',
'close',
'delete',
'edit',
'exit-fullscreen',
'fullscreen',
'plus',
'share',
'stop',
'link',
'embed',
'save',
'context-menu',
'jump',
'copy-document',
'check-small',
'left',
'up',
'right',
'down',
'error',
'warning',
'close-large',
'check-large',
'collection'
);
@each $icon in $icons {
.Icon--#{$icon} {
background-image: url('./icons/#{$icon}.svg');
}
}
.IconSvg {
svg {
min-height: 16px;
min-width: 16px;
max-height: 1em;
max-width: 1em;
fill: currentColor;
}
}
```
|
Man Bung is a village in Bhamo Township in Bhamo District in the Kachin State of north-eastern Burma.
References
External links
Satellite map at Maplandia.com
Populated places in Kachin State
Bhamo Township
|
```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
/* eslint-disable max-lines */
import cdf = require( '@stdlib/stats/base/dists/pareto-type1/cdf' );
import Pareto1 = require( '@stdlib/stats/base/dists/pareto-type1/ctor' );
import entropy = require( '@stdlib/stats/base/dists/pareto-type1/entropy' );
import kurtosis = require( '@stdlib/stats/base/dists/pareto-type1/kurtosis' );
import logcdf = require( '@stdlib/stats/base/dists/pareto-type1/logcdf' );
import logpdf = require( '@stdlib/stats/base/dists/pareto-type1/logpdf' );
import mean = require( '@stdlib/stats/base/dists/pareto-type1/mean' );
import median = require( '@stdlib/stats/base/dists/pareto-type1/median' );
import mode = require( '@stdlib/stats/base/dists/pareto-type1/mode' );
import pdf = require( '@stdlib/stats/base/dists/pareto-type1/pdf' );
import quantile = require( '@stdlib/stats/base/dists/pareto-type1/quantile' );
import skewness = require( '@stdlib/stats/base/dists/pareto-type1/skewness' );
import stdev = require( '@stdlib/stats/base/dists/pareto-type1/stdev' );
import variance = require( '@stdlib/stats/base/dists/pareto-type1/variance' );
/**
* Interface describing the `pareto-type1` namespace.
*/
interface Namespace {
/**
* Pareto (Type I) distribution cumulative distribution function (CDF).
*
* @param x - input value
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns evaluated CDF
*
* @example
* var y = ns.cdf( 2.0, 1.0, 1.0 );
* // returns 0.5
*
* y = ns.cdf( 5.0, 2.0, 4.0 );
* // returns ~0.36
*
* y = ns.cdf( 4.0, 2.0, 2.0 );
* // returns 0.75
*
* y = ns.cdf( 1.9, 2.0, 2.0 );
* // returns 0.0
*
* y = ns.cdf( +Infinity, 4.0, 2.0 );
* // returns 1.0
*
* var mycdf = ns.cdf.factory( 10.0, 2.0 );
* y = mycdf( 3.0 );
* // returns ~0.983
*
* y = mycdf( 2.5 );
* // returns ~0.893
*/
cdf: typeof cdf;
/**
* Pareto (Type I) distribution.
*/
Pareto1: typeof Pareto1;
/**
* Returns the differential entropy of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `alpha <= 0` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns differential entropy
*
* @example
* var v = ns.entropy( 1.0, 1.0 );
* // returns 2.0
*
* @example
* var v = ns.entropy( 4.0, 12.0 );
* // returns ~2.349
*
* @example
* var v = ns.entropy( 8.0, 2.0 );
* // returns ~-0.261
*
* @example
* var v = ns.entropy( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.entropy( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.entropy( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.entropy( NaN, 2.0 );
* // returns NaN
*/
entropy: typeof entropy;
/**
* Returns the excess kurtosis of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `alpha <= 4` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns excess kurtosis
*
* @example
* var v = ns.kurtosis( 5.0, 1.0 );
* // returns ~70.8
*
* @example
* var v = ns.kurtosis( 7.0, 12.0 );
* // returns ~24.857
*
* @example
* var v = ns.kurtosis( 8.0, 2.0 );
* // returns ~19.725
*
* @example
* var v = ns.kurtosis( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.kurtosis( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.kurtosis( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.kurtosis( NaN, 2.0 );
* // returns NaN
*/
kurtosis: typeof kurtosis;
/**
* Pareto (Type I) distribution logarithm of cumulative distribution function (CDF).
*
* @param x - input value
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns evaluated logCDF
*
* @example
* var y = ns.logcdf( 2.0, 1.0, 1.0 );
* // returns ~-0.693
*
* y = ns.logcdf( 5.0, 2.0, 4.0 );
* // returns ~-1.022
*
* y = ns.logcdf( 4.0, 2.0, 2.0 );
* // returns ~-0.288
*
* y = ns.logcdf( 1.9, 2.0, 2.0 );
* // returns -Infinity
*
* y = ns.logcdf( +Infinity, 4.0, 2.0 );
* // returns 0.0
*
* var mylogcdf = ns.logcdf.factory( 10.0, 2.0 );
* y = mylogcdf( 3.0 );
* // returns ~-0.017
*
* y = mylogcdf( 2.5 );
* // returns ~-0.113
*/
logcdf: typeof logcdf;
/**
* Pareto (Type I) distribution natural logarithm of the probability density function (logPDF).
*
* @param x - input value
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns evaluated logPDF
*
* @example
* var y = ns.logpdf( 4.0, 1.0, 1.0 );
* // returns ~-2.773
*
* y = ns.logpdf( 20.0, 1.0, 10.0 );
* // returns ~-3.689
*
* y = ns.logpdf( 7.0, 2.0, 6.0 );
* // returns ~-1.561
*
* var mylogpdf = ns.logpdf.factory( 0.5, 0.5 );
*
* y = mylogpdf( 0.8 );
* // returns ~-0.705
*
* y = mylogpdf( 2.0 );
* // returns ~-2.079
*/
logpdf: typeof logpdf;
/**
* Returns the expected value of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `0 < alpha <= 1`, the function returns `Infinity`.
* - If `alpha <= 0` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns expected value
*
* @example
* var v = ns.mean( 1.0, 1.0 );
* // returns Infinity
*
* @example
* var v = ns.mean( 4.0, 12.0 );
* // returns 16.0
*
* @example
* var v = ns.mean( 8.0, 2.0 );
* // returns ~2.286
*
* @example
* var v = ns.mean( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.mean( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.mean( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.mean( NaN, 2.0 );
* // returns NaN
*/
mean: typeof mean;
/**
* Returns the median of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `alpha <= 0` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns median
*
* @example
* var v = ns.median( 1.0, 1.0 );
* // returns 2.0
*
* @example
* var v = ns.median( 4.0, 12.0 );
* // returns ~14.27
*
* @example
* var v = ns.median( 8.0, 2.0 );
* // returns ~2.181
*
* @example
* var v = ns.median( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.median( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.median( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.median( NaN, 2.0 );
* // returns NaN
*/
median: typeof median;
/**
* Returns the mode of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `alpha <= 0` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns mode
*
* @example
* var v = ns.mode( 1.0, 1.0 );
* // returns 1.0
*
* @example
* var v = ns.mode( 4.0, 12.0 );
* // returns 12.0
*
* @example
* var v = ns.mode( 8.0, 2.0 );
* // returns 2.0
*
* @example
* var v = ns.mode( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.mode( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.mode( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.mode( NaN, 2.0 );
* // returns NaN
*/
mode: typeof mode;
/**
* Pareto (Type I) distribution probability density function (PDF).
*
* @param x - input value
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns evaluated PDF
*
* @example
* var y = ns.pdf( 4.0, 1.0, 1.0 );
* // returns ~0.044
*
* y = ns.pdf( 20.0, 1.0, 10.0 );
* // returns 0.025
*
* y = ns.pdf( 7.0, 2.0, 6.0 );
* // returns ~0.21
*
* var mypdf = ns.pdf.factory( 0.5, 0.5 );
*
* y = mypdf( 0.8 );
* // returns ~0.494
*
* y = mypdf( 2.0 );
* // returns ~0.125
*/
pdf: typeof pdf;
/**
* Pareto (Type I) distribution quantile function.
*
* @param p - input value
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns evaluated quantile function
*
* @example
* var y = ns.quantile( 0.8, 2.0, 1.0 );
* // returns ~2.236
*
* y = ns.quantile( 0.8, 1.0, 10.0 );
* // returns ~50.0
*
* y = ns.quantile( 0.1, 1.0, 10.0 );
* // returns ~10.541
*
* var myquantile = ns.quantile.factory( 2.5, 0.5 );
* y = myquantile( 0.5 );
* // returns ~0.66
*
* y = myquantile( 0.8 );
* // returns ~0.952
*/
quantile: typeof quantile;
/**
* Returns the skewness of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `alpha <= 3` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns skewness
*
* @example
* var v = ns.skewness( 3.5, 1.0 );
* // returns ~11.784
*
* @example
* var v = ns.skewness( 4.0, 12.0 );
* // returns ~7.071
*
* @example
* var v = ns.skewness( 8.0, 2.0 );
* // returns ~3.118
*
* @example
* var v = ns.skewness( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.skewness( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.skewness( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.skewness( NaN, 2.0 );
* // returns NaN
*/
skewness: typeof skewness;
/**
* Returns the standard deviation of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `0 < alpha <= 2` and `beta > 0`, the function returns positive infinity.
* - If `alpha <= 0` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns standard deviation
*
* @example
* var v = ns.stdev( 4.0, 12.0 );
* // returns ~5.657
*
* @example
* var v = ns.stdev( 8.0, 2.0 );
* // returns ~0.33
*
* @example
* var v = ns.stdev( 1.0, 1.0 );
* // returns Infinity
*
* @example
* var v = ns.stdev( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.stdev( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.stdev( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.stdev( NaN, 2.0 );
* // returns NaN
*/
stdev: typeof stdev;
/**
* Returns the variance of a Pareto (Type I) distribution.
*
* ## Notes
*
* - If `0 < alpha <= 2` and `beta > 0`, the function returns positive infinity.
* - If `alpha <= 0` or `beta <= 0`, the function returns `NaN`.
*
* @param alpha - shape parameter
* @param beta - scale parameter
* @returns variance
*
* @example
* var v = ns.variance( 4.0, 12.0 );
* // returns 32.0
*
* @example
* var v = ns.variance( 8.0, 2.0 );
* // returns ~0.109
*
* @example
* var v = ns.variance( 1.0, 1.0 );
* // returns Infinity
*
* @example
* var v = ns.variance( 1.0, -0.1 );
* // returns NaN
*
* @example
* var v = ns.variance( -0.1, 1.0 );
* // returns NaN
*
* @example
* var v = ns.variance( 2.0, NaN );
* // returns NaN
*
* @example
* var v = ns.variance( NaN, 2.0 );
* // returns NaN
*/
variance: typeof variance;
}
/**
* Pareto (Type I) distribution.
*/
declare var ns: Namespace;
// EXPORTS //
export = ns;
```
|
The Choaspes (also called Zuastus and Guræus) is a river that rises in the ancient Paropamise range (now the Hindu Kush in Afghanistan), eventually falling into the Indus river near its confluence with the Cophes river (which is usually identified with the Kabul river). Strabo's Geography, Book XV, Chapter 1, § 26 incorrectly states that the Choaspes empties directly into the Cophes. The river should not be confused with the river of the same name which flows into the Tigris (after Smith 1854).
External links
Smith, W. (1854). Dictionary of Greek and Roman Geography
Choaspes in Hazlitt's Classical Gazetteer
Rivers of Afghanistan
Tributaries of the Indus River
|
During the French Revolutionary and Napoleonic Wars, British vessels captured at least 12 French warships and privateers named Espoir, which means “Hope” in French. In only one case was there mention of an exchange of fire or casualties. In general, the privateers tried to escape, and failing that surrendered.
captured the French privateer Espoir, of ten guns, on 2 March 1793. Espoir was under the command of Jean-Jacques Magendie. By agreement Crescent shared the bounty bill with and the money was payable in Guernsey in July 1795.
HM hired armed cutter Marechal de Cobourg captured the French privateer lugger Espoir on 12 December 1796. Espoir was a 40-ton ("of load") lugger commissioned in Boulogne in May 1793 under Pierre-Louis-Nicolas Hardouin with 8 swivel guns and 6 smaller pieces (swivel-mounted, large caliber blunderbusses), and a crew of 37 men. She was under Jean-Pierre-Antoine Duchenne from October to November 1795, and under Pierre-Antoine-Joseph Sauvage, with 20 men and 2 guns, when Coburg captured her.
On 31 January 1797 was sailing off Barbuda when she captured the French privateer schooner Espoir. Espoir was armed with four guns and ten swivel guns, and had a crew of 48 men. She was out of Guadeloupe and Lapwing sent her into St. Christopher's.
In mid-morning of 24 June 1797 His Majesty's Excise cutter Viper, under the command of Mr. Robert Adams, was south of the Naze Tower when she encountered and captured a French privateer. Espoir had a crew of 15 men and was under the command of Pierre Francois Codderin. Espoir was armed with two swivel guns and was well supplied with small arms. She had sailed from Dunkirk two days earlier and had not yet taken any prizes.
On 15 September 1797, HMS King’s Fisher, under the command of Commander Charles H. Pierrepont, was off Camina when she encountered the French privateer lugger Espoir, which she captured. Espoir was armed with two carriage guns and four swivel guns and had a crew of 39 men. She was 13 days out of Rochelle but had not made any captures.
HMS Thalia, under Captain Lord Henry Paulet, captured the French navy brig Espoir in the Mediterranean on 18 September 1797. Espoir was armed with sixteen 6-pounder guns and had a crew of 96 men. She had sailed from Cayenne and earlier had been in company with another French corvette, which had, however been captured by an English frigate on 20 July. The Admiralty took her into the Royal Navy as . Later, Thalia shared the prize money with and .
On 8 February 1798 , under the command of Commander William Champain captured the privateer Espoire (or Espoir), off La Désirade. Espoir was armed with eight guns and had a crew of 66 men. She was 16 days out of Guadeloupe but had made no captures
On 11 February 1801, His Majesty's hired armed brig Lady Charlotte, under the command of George Morris, was in Plymouth Sound when she sighted a vessel and gave chase. Eventually Lady Charlotte was able to capture the lugger Espoir. She was armed with two brass 4-pounder and four iron 2-pounder guns, and had a crew of 23 men. She was two days out of Cherbourg and had not taken any prizes. Because of the strength of the wind, Lady Charlotte was not able to take prisoners off nor put a prize crew on board so she escorted her prize into port.
In mid-afternoon on 28 February 1801, the English privateer Lord Nelson, Henry Gibson, master, was between the Isle of Wight and Portland when a lugger came into sight, pursued by a larger vessel. Gibson sailed towards the lugger to cut her off. After a chase of four hours he caught up with her and as he was about to board her, she stuck her colours. The quarry was the French privateer Espoir, under the command of M. Alegis Basset. She was armed with 14 carriage guns and had a crew of 75 men. She was two days out of Saint Malo without having captured anything. Neither captive nor quarry suffered any casualties. The vessel that had been pursuing her was , which came up as Lord Nelson was taking on board the prisoners.
When the fog cleared on 8 September 1803, Lieutenant William Gibbons of His Majesty's hired armed cutter Joseph, discovered two or three miles away the British privateer cutter Maria, of Guernsey, chasing two brigs, one of which was the French privateer Espoir of Saint Malo. Espoir was firing her stern chasers at Maria, and also broadsides. After about an hour Gibbons was able to get within pistol-shot of Espoir, which struck after a few shots from Joseph. Espoir and Maria both had one man wounded. Espoir was armed with six 6-pounder guns and had a crew of 52 men. Gibbons sent Maria, which was the faster vessel, after the second brig, which had been a prize to Espoir. After a two-hour chase Maria succeeded in recapturing the brig. She was Two Friends, sailing from Mogadore to London.
On 20 August 1806 captured the French privateer Espoir.
Captain Samuel Clark and captured the French privateer lugger Espoir on 6 October 1811, off Fécamp. Espoir was armed with 16 guns and had a crew of 50 men. She had sailed the evening before from Saint-Valery-en-Caux and had not taken any prizes.
Notes
Citations
References
1790s ships
1800s ships
Privateer ships of France
Captured ships
|
```objective-c
#ifndef PQCLEAN_MCELIECE6960119_AVX2_crypto_int32_h
#define PQCLEAN_MCELIECE6960119_AVX2_crypto_int32_h
#include <inttypes.h>
typedef int32_t crypto_int32;
#include "namespace.h"
#define crypto_int32_negative_mask CRYPTO_NAMESPACE(crypto_int32_negative_mask)
crypto_int32 crypto_int32_negative_mask(crypto_int32 crypto_int32_x);
#define crypto_int32_nonzero_mask CRYPTO_NAMESPACE(crypto_int32_nonzero_mask)
crypto_int32 crypto_int32_nonzero_mask(crypto_int32 crypto_int32_x);
#define crypto_int32_zero_mask CRYPTO_NAMESPACE(crypto_int32_zero_mask)
crypto_int32 crypto_int32_zero_mask(crypto_int32 crypto_int32_x);
#define crypto_int32_positive_mask CRYPTO_NAMESPACE(crypto_int32_positive_mask)
crypto_int32 crypto_int32_positive_mask(crypto_int32 crypto_int32_x);
#define crypto_int32_unequal_mask CRYPTO_NAMESPACE(crypto_int32_unequal_mask)
crypto_int32 crypto_int32_unequal_mask(crypto_int32 crypto_int32_x, crypto_int32 crypto_int32_y);
#define crypto_int32_equal_mask CRYPTO_NAMESPACE(crypto_int32_equal_mask)
crypto_int32 crypto_int32_equal_mask(crypto_int32 crypto_int32_x, crypto_int32 crypto_int32_y);
#define crypto_int32_smaller_mask CRYPTO_NAMESPACE(crypto_int32_smaller_mask)
crypto_int32 crypto_int32_smaller_mask(crypto_int32 crypto_int32_x, crypto_int32 crypto_int32_y);
#define crypto_int32_min CRYPTO_NAMESPACE(crypto_int32_min)
crypto_int32 crypto_int32_min(crypto_int32 crypto_int32_x, crypto_int32 crypto_int32_y);
#define crypto_int32_max CRYPTO_NAMESPACE(crypto_int32_max)
crypto_int32 crypto_int32_max(crypto_int32 crypto_int32_x, crypto_int32 crypto_int32_y);
#define crypto_int32_minmax CRYPTO_NAMESPACE(crypto_int32_minmax)
void crypto_int32_minmax(crypto_int32 *crypto_int32_a, crypto_int32 *crypto_int32_b);
#endif
```
|
"Nagani" (, ) is a traditional Burmese song that became an anthem of British Burma's independence movement from Great Britain. Thu Maung's rendition of the song remains a classic in Myanmar today.
Nagani was produced by the Nagani Book Club in 1938, as a means to promote the nascent enterprise. Composed by Shwedaing Nyunt, it was first performed by Khin Maung Yin, a Burmese actor and singer. The song was an immediate hit due to its tune and lyrics, which invokes the "Burmese dream," including the right to self-determination, national pride, and a means out of poverty.
References
Burmese music
National symbols of Myanmar
1948 compositions
|
```smalltalk
namespace NS;
public interface Intf {
public string Prop { get; }
}
```
|
Monique van der Vorst (born 20 November 1984, Gouda) is a Dutch racing cyclist. She is a two-time silver medal winner at the Paralympic Games.
After having a leg operation at the age of 13, her legs became paralyzed.
In March 2010, when she was 25 years old, Van der Vorst had an accident, where she was rammed by another cyclist while riding her hand cycle. Some months after this incident, she claimed to regain feeling in both her legs, after which she claimed to retrain herself to walk.
However, Spiegel Online has now reported that Van der Vorst was able to stand and walk during her career as a paraplegic handbiker, and that her neighbors had even reported seeing her dancing while supposedly paralyzed.
Eventually, Van der Vorst began road cycling, and has been signed to the Rabobank Women's Cycling team.
References
External links
Official website
Un-paralyzed Article
1984 births
Living people
Dutch female cyclists
Cyclists at the 2008 Summer Paralympics
Paralympic cyclists for the Netherlands
Paralympic silver medalists for the Netherlands
Sportspeople from Gouda, South Holland
Medalists at the 2008 Summer Paralympics
Paralympic medalists in cycling
Cyclists from South Holland
20th-century Dutch women
21st-century Dutch women
|
SeaBubbles is a startup created by Alain Thébault and Anders Bringdal in 2016. They design and manufacture electric boats, called hydrofoils the size of small cars. It is proposed they could be used as water taxis in cities.
History
Founded by Alain Thébault, designer of the world record breaking Hydroptère, who conceived the idea and Anders Bringdal, a four-time windsurfing world champion. They brought together in France a team with skills in hydrodynamic designing. Finalizing a design in 2016 for a five-person SeaBubbles water taxi.
After testing a ⅛ scale prototype, in July 2016 they raised capital of €500,000 to fund the next stage. Full size prototypes were built and tested on the Seine in Paris in 2017, operating between two landing stages. , 40 units had been ordered.
Design
Designed to operate in a no-wake zone, the SeaBubbles rises after a few meters and reaches a speed of , on four skids. This reduces water drag by 40% and increases efficiency, allowing speeds of up to a potential .
The SeaBubble is powered by two electrically driven propellers attached to the rear skids. The electric power is replenished at the landing stage by using a mixture of solar panels and turbines to charge the batteries.
A full size prototype was tested in March 2017 Prototype test.
Eco friendly
The Bubble is silent and as it makes no wake, it will not erode river banks. It uses electricity thus it has no emission on the trip.
References
External links
S
Shipping and the environment
Boat types
|
```c
/*
* 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.
*/
/*
* author Tomas Hurka
* Ian Formanek
* Misha Dmitriev
*/
#ifdef WIN32
#include <Windows.h>
#else
#include <sys/time.h>
#include <fcntl.h>
#include <time.h>
#endif
#ifdef SOLARIS
#define _STRUCTURED_PROC 1
#include <sys/procfs.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "jni.h"
#include "jvmti.h"
#include "org_graalvm_visualvm_lib_jfluid_server_system_Classes.h"
#include "common_functions.h"
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: getAllLoadedClasses
* Signature: ()[Ljava/lang/Class;
*/
JNIEXPORT jobjectArray JNICALL your_sha256_hashlLoadedClasses
(JNIEnv *env, jclass clz)
{
jvmtiError res;
jint classCount, classStatus;
jclass *classes;
jobjectArray ret;
jclass type;
int i, j, n_linked_classes;
char *class_status;
res = (*_jvmti)->GetLoadedClasses(_jvmti, &classCount, &classes);
assert(res == JVMTI_ERROR_NONE);
n_linked_classes = 0;
class_status = malloc(classCount);
for (i = 0; i < classCount; i++) {
(*_jvmti)->GetClassStatus(_jvmti, classes[i], &classStatus);
if ((classStatus & JVMTI_CLASS_STATUS_PREPARED) != 0 && (classStatus & JVMTI_CLASS_STATUS_ERROR) == 0) {
class_status[i] = 1;
n_linked_classes++;
} else {
class_status[i] = 0;
}
}
type = (*env)->FindClass(env, "java/lang/Class");
assert(type != NULL);
ret = (*env)->NewObjectArray(env, n_linked_classes, type, NULL);
if (ret != NULL) {
j = 0;
for (i = 0; i < classCount; i++) {
if (class_status[i]) {
(*env)->SetObjectArrayElement(env, ret, j++, classes[i]);
}
}
}
free(class_status);
res = (*_jvmti)->Deallocate(_jvmti, (unsigned char*) classes);
assert(res == JVMTI_ERROR_NONE);
return ret;
}
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: cacheLoadedClasses
* Signature: ([Ljava/lang/Class;I)V
*/
JNIEXPORT void JNICALL your_sha256_hashLoadedClasses
(JNIEnv *env, jclass clz, jobjectArray non_system_classes, jint class_count)
{
jclass *classDefs = calloc(class_count,sizeof(jclass));
int i;
for (i = 0; i < class_count; i++) {
classDefs[i] = (*env)->GetObjectArrayElement(env, non_system_classes, i);
}
cache_loaded_classes(_jvmti,classDefs,class_count);
free(classDefs);
}
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: getCachedClassFileBytes
* Signature: (Ljava/lang/Class;)[B
*/
JNIEXPORT jbyteArray JNICALL your_sha256_hashchedClassFileBytes
(JNIEnv *env, jclass clz, jclass clazz)
{
char *class_sig, *class_gen_sig;
jobject loader;
unsigned char *class_data;
int class_data_len;
jbyteArray ret;
jvmtiError res;
res = (*_jvmti)->GetClassSignature(_jvmti, clazz, &class_sig, &class_gen_sig);
assert(res == JVMTI_ERROR_NONE);
res = (*_jvmti)->GetClassLoader(_jvmti, clazz, &loader);
assert(res == JVMTI_ERROR_NONE);
/* class_sig is gonna look something like Lfoo/Bar; Convert it back into normal */
class_sig[strlen(class_sig) - 1] = 0;
get_saved_class_file_bytes(env, class_sig+1, loader, (jint*)&class_data_len, &class_data);
(*_jvmti)->Deallocate(_jvmti, (void*) class_sig);
(*_jvmti)->Deallocate(_jvmti, (void*) class_gen_sig);
if (class_data == NULL) {
return NULL;
}
ret = (*env)->NewByteArray(env, class_data_len);
(*env)->SetByteArrayRegion(env, ret, 0, class_data_len, (jbyte*) class_data);
free(class_data);
return ret;
}
static jclass profilerInterfaceClazz;
static jmethodID classLoadHookMethod = NULL;
void JNICALL register_class_prepare(jvmtiEnv *jvmti_env, JNIEnv* env, jthread thread, jclass clazz) {
(*env)->CallStaticVoidMethod(env, profilerInterfaceClazz, classLoadHookMethod, clazz);
if ((*env)->ExceptionCheck(env)) {
(*env)->ExceptionDescribe(env);
}
}
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: enableClassLoadHook
* Signature: ()V
*/
JNIEXPORT void JNICALL your_sha256_hasheClassLoadHook
(JNIEnv *env, jclass clz)
{
jvmtiError res;
if (classLoadHookMethod == NULL) {
profilerInterfaceClazz = (*env)->FindClass(env, "org/graalvm/visualvm/lib/jfluid/server/ProfilerInterface");
profilerInterfaceClazz = (*env)->NewGlobalRef(env, profilerInterfaceClazz);
classLoadHookMethod = (*env)->GetStaticMethodID(env, profilerInterfaceClazz, "classLoadHook", "(Ljava/lang/Class;)V");
_jvmti_callbacks->ClassPrepare = register_class_prepare;
res = (*_jvmti)->SetEventCallbacks(_jvmti, _jvmti_callbacks, sizeof(*_jvmti_callbacks));
assert (res == JVMTI_ERROR_NONE);
}
res = (*_jvmti)->SetEventNotificationMode(_jvmti, JVMTI_ENABLE, JVMTI_EVENT_CLASS_PREPARE, NULL);
assert(res == JVMTI_ERROR_NONE);
}
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: disableClassLoadHook
* Signature: ()V
*/
JNIEXPORT void JNICALL your_sha256_hashleClassLoadHook
(JNIEnv *env, jclass clz)
{
jvmtiError res;
res = (*_jvmti)->SetEventNotificationMode(_jvmti, JVMTI_DISABLE, JVMTI_EVENT_CLASS_PREPARE, NULL);
assert(res == JVMTI_ERROR_NONE);
}
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: getObjectSize
* Signature: (Ljava/lang/Object;)J
*/
JNIEXPORT jlong JNICALL your_sha256_hashjectSize
(JNIEnv *env, jclass clz, jobject jobject)
{
jlong res;
(*_jvmti)->GetObjectSize(_jvmti, jobject, &res);
return res;
}
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: doRedefineClasses
* Signature: ([Ljava/lang/Class;[[B)I
*/
JNIEXPORT jint JNICALL your_sha256_hashefineClasses
(JNIEnv *env, jclass clz, jobjectArray jclasses, jobjectArray jnewClassFileBytes)
{
static jboolean nativeMethodBindDisabled = FALSE;
jvmtiError res = JVMTI_ERROR_NONE;
jint nClasses, i;
jvmtiClassDefinition* classDefs;
if (!nativeMethodBindDisabled) {
// First, disable the NativeMethodBind event, assume that Thread.sleep and Object.wait have already been intercepted
res = (*_jvmti)->SetEventNotificationMode(_jvmti, JVMTI_DISABLE, JVMTI_EVENT_NATIVE_METHOD_BIND, NULL);
if (res != JVMTI_ERROR_NONE) {
fprintf (stderr, "Profiler Agent Error: Error while turning NativeMethodBind off: %d\n",res);
assert(res == JVMTI_ERROR_NONE);
}
nativeMethodBindDisabled = TRUE;
}
nClasses = (*env)->GetArrayLength(env, jclasses);
classDefs = malloc(sizeof(jvmtiClassDefinition) * nClasses);
for (i = 0; i < nClasses; i++) {
jbyteArray jnewClassBytes;
jbyte *tmpClassBytes;
jint classBytesLen;
jvmtiClassDefinition *classDef = classDefs + i;
classDef->klass = (*env)->GetObjectArrayElement(env, jclasses, i);
jnewClassBytes = (*env)->GetObjectArrayElement(env, jnewClassFileBytes, i);
classBytesLen = classDef->class_byte_count = (*env)->GetArrayLength(env, jnewClassBytes);
assert(classBytesLen > 0);
tmpClassBytes = (*env)->GetByteArrayElements(env, jnewClassBytes, NULL);
classDef->class_bytes = malloc(classBytesLen);
memcpy((jbyte*) classDef->class_bytes, tmpClassBytes, classBytesLen);
(*env)->ReleaseByteArrayElements(env, jnewClassBytes, tmpClassBytes, JNI_ABORT);
(*env)->DeleteLocalRef(env, jnewClassBytes);
}
if (nClasses <= 100) {
res = (*_jvmti)->RedefineClasses(_jvmti, nClasses, classDefs);
} else {
// perform batch redefine in units of 100 classes
int idx = 0;
while (idx < nClasses) {
int redefineCount = nClasses - idx;
if (redefineCount > 100) {
redefineCount = 100;
}
fprintf (stdout, "Profiler Agent: Redefining %d classes at idx %d, out of total %d \n",redefineCount, idx, (int)nClasses);
res = (*_jvmti)->RedefineClasses(_jvmti, redefineCount, classDefs + idx);
idx += 100;
}
}
for (i = 0; i < nClasses; i++) {
(*env)->DeleteLocalRef(env, classDefs[i].klass);
free((jbyte*) classDefs[i].class_bytes);
}
free(classDefs);
return res;
}
/*
* Class: org_graalvm_visualvm_lib_jfluid_server_system_Classes
* Method: notifyAboutClassLoaderUnloading
* Signature: ()V
*/
JNIEXPORT void JNICALL your_sha256_hashyAboutClassLoaderUnloading
(JNIEnv *env, jclass clz)
{
try_removing_bytes_for_unloaded_classes(env);
}
```
|
The fawn-breasted bowerbird (Chlamydera cerviniventris) is a medium-sized, up to long, bowerbird with a greyish brown spotted white plumage, a black bill, dark brown iris, yellow mouth and an orange buff below. Both sexes are similar. The female is slightly smaller than the male.
The fawn-breasted bowerbird is distributed throughout New Guinea and northern Cape York Peninsula, where it inhabits the tropical forests, mangroves, savanna woodlands and forest edges. Its diet consists mainly of figs, fruits and insects. The nest is a loose cup made of small sticks up in a tree. The bower itself is that of "avenue-type" with two side-walls of sticks and usually decorated with green-colored berries.
A common species in its habitat range, the fawn-breasted bowerbird is evaluated as Least Concern on the IUCN Red List of Threatened Species.
The following is an account by expedition naturalist John MacGillivray from the Narrative of the Voyage of H.M.S. Rattlesnake 1846-1850 Vol I. pp. 323–325. It describes the first recorded observation and specimen collection of the Chlamydera cerviniventris.
″Two days before we left Cape York I was told that some bower-birds had been seen in a thicket, or patch of low scrub, half a mile from the beach, and after a long search I found a recently constructed bower, four feet long and eighteen inches high, with some fresh berries lying upon it. The bower was situated near the border of the thicket, the bushes composing which were seldom more than ten feet high, growing in smooth sandy soil without grass.
Next morning I was landed before daylight, and proceeded to the place in company with Paida, taking with us a large board on which to carry off the bower specimen. I had great difficulty in inducing my friend to accompany me, as he was afraid of a war party of Gomokudins, which tribe had lately given notice that they were coming to fight the Evans Bay people. However I promised to protect him, and loaded one barrel with ball, which gave him increased confidence, still he insisted on carrying a large bundle of spears and a throwing-stick. Of late Paida's tribe have taken steps to prevent being surprised by their enemies. At night they remove in their canoes to the neighbouring island Robumo, and sleep there, returning in the morning to the shore, and take care not to go away to a distance singly or unarmed.
While watching in the scrub I caught several glimpses of the tervinya (the native name) as it darted through the bushes in the neighbourhood of the bower, announcing its presence by an occasional loud churr-r-r, and imitating the notes of various other birds, especially the leather-head. I never before met with a more wary bird, and for a long time it enticed me to follow it to a short distance, then flying off and alighting on the bower, it would deposit a berry or two, run through, and be off again (as the black told me) before I could reach the spot. At length, just as my patience was being exhausted, I saw the bird enter the bower and disappear, when I fired at random through the twigs, fortunately with effect. So closely had we concealed ourselves latterly, and so silent had we been, that a kangaroo while feeding actually hopped up within fifteen yards, unconscious of our presence until fired at. My bower-bird proved to be a new species, since described by Mr. Gould as Chlamydera cerviniventris, and the bower is exhibited in the British Museum."
Gallery
References
External links
BirdLife Species Factsheet
fawn-breasted bowerbird
Birds of New Guinea
Birds of Cape York Peninsula
fawn-breasted bowerbird
|
```javascript
'use strict';
const common = require('../common');
const assert = require('assert');
const immediate = setImmediate(() => {});
assert.strictEqual(immediate.hasRef(), true);
immediate.unref();
assert.strictEqual(immediate.hasRef(), false);
clearImmediate(immediate);
// This immediate should execute as it was unrefed and refed again.
// It also confirms that unref/ref are chainable.
setImmediate(common.mustCall(firstStep)).ref().unref().unref().ref();
function firstStep() {
// Unrefed setImmediate executes if it was unrefed but something else keeps
// the loop open
setImmediate(common.mustCall()).unref();
setTimeout(common.mustCall(() => { setImmediate(secondStep); }), 0);
}
function secondStep() {
// clearImmediate works just fine with unref'd immediates
const immA = setImmediate(() => {
clearImmediate(immA);
clearImmediate(immB);
// This should not keep the event loop open indefinitely
// or do anything else weird
immA.ref();
immB.ref();
}).unref();
const immB = setImmediate(common.mustNotCall()).unref();
setImmediate(common.mustCall(finalStep));
}
function finalStep() {
// This immediate should not execute as it was unrefed
// and nothing else is keeping the event loop alive
setImmediate(common.mustNotCall()).unref();
}
```
|
```shell
Quick `cd` tips
Rapidly invoke an editor to write a long, complex, or tricky command
Execute a command without saving it in history
Quick `bash` shortcuts
Terminal incognito mode
```
|
```go
package hello
/*
#include "helloc.h"
*/
import "C"
import "unsafe"
type hello struct {
helloPtr C.helloPtr
}
func New() (r hello) {
r.helloPtr = C.helloInit()
return
}
func (h *hello) Free() {
C.helloFree(unsafe.Pointer(h.helloPtr))
}
func (h *hello) Print() {
C.helloPrint(unsafe.Pointer(h.helloPtr))
}
```
|
```java
package razerdp.demo.base.baseadapter;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewGroup.MarginLayoutParams;
import java.util.ArrayList;
import razerdp.demo.utils.ToolUtil;
import static razerdp.demo.base.baseadapter.FixedViewInfo.ITEM_VIEW_TYPE_FOOTER_START;
import static razerdp.demo.base.baseadapter.FixedViewInfo.ITEM_VIEW_TYPE_HEADER_START;
/**
* Created by on 2019/4/29.
* <p>
* recyclerviewheaderviewadapter
* <p>
* ListView
*/
public final class HeaderViewWrapperAdapter extends RecyclerView.Adapter implements WrapperRecyclerAdapter {
private final RecyclerView.Adapter mWrappedAdapter;
private RecyclerView recyclerView;
final ArrayList<FixedViewInfo> mHeaderViewInfos;
final ArrayList<FixedViewInfo> mFooterViewInfos;
static final ArrayList<FixedViewInfo> EMPTY_INFO_LIST = new ArrayList<>();
private RecyclerView.AdapterDataObserver mDataObserver = new RecyclerView.AdapterDataObserver() {
@Override
public void onChanged() {
notifyDataSetChanged();
}
@Override
public void onItemRangeChanged(int positionStart, int itemCount) {
notifyItemRangeChanged(positionStart + getHeadersCount(), itemCount);
}
@Override
public void onItemRangeInserted(int positionStart, int itemCount) {
notifyItemRangeInserted(positionStart + getHeadersCount(), itemCount);
}
@Override
public void onItemRangeRemoved(int positionStart, int itemCount) {
notifyItemRangeRemoved(positionStart + getHeadersCount(), itemCount);
}
@Override
public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {
int headerViewsCountCount = getHeadersCount();
notifyItemRangeChanged(fromPosition + headerViewsCountCount, toPosition + headerViewsCountCount + itemCount);
}
};
public HeaderViewWrapperAdapter(RecyclerView recyclerView,
@NonNull RecyclerView.Adapter mWrappedAdapter,
ArrayList<FixedViewInfo> mHeaderViewInfos,
ArrayList<FixedViewInfo> mFooterViewInfos) {
this.recyclerView = recyclerView;
this.mWrappedAdapter = mWrappedAdapter;
try {
mWrappedAdapter.registerAdapterDataObserver(mDataObserver);
} catch (IllegalStateException e) {
}
if (mHeaderViewInfos == null) {
this.mHeaderViewInfos = EMPTY_INFO_LIST;
} else {
this.mHeaderViewInfos = mHeaderViewInfos;
}
if (mFooterViewInfos == null) {
this.mFooterViewInfos = EMPTY_INFO_LIST;
} else {
this.mFooterViewInfos = mFooterViewInfos;
}
}
public int getHeadersCount() {
return ToolUtil.isEmpty(mHeaderViewInfos) ? 0 : mHeaderViewInfos.size();
}
public int getFootersCount() {
return ToolUtil.isEmpty(mFooterViewInfos) ? 0 : mFooterViewInfos.size();
}
public boolean removeHeader(View headerView) {
for (int i = 0; i < mHeaderViewInfos.size(); i++) {
FixedViewInfo info = mHeaderViewInfos.get(i);
if (info.view == headerView) {
mHeaderViewInfos.remove(i);
return true;
}
}
return false;
}
public boolean removeFooter(View footerView) {
for (int i = 0; i < mFooterViewInfos.size(); i++) {
FixedViewInfo info = mFooterViewInfos.get(i);
if (info.view == footerView) {
mFooterViewInfos.remove(i);
return true;
}
}
return false;
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//header
if (onCreateHeaderViewHolder(viewType)) {
final int headerPosition = getHeaderPosition(viewType);
FixedViewInfo viewInfo = mHeaderViewInfos.get(headerPosition);
View headerView = viewInfo.view;
checkAndSetRecyclerViewLayoutParams(headerView, viewInfo.width, viewInfo.height);
return new HeaderOrFooterViewHolder(headerView);
} else if (onCreateFooterViewHolder(viewType)) {
//footer
final int footerPosition = getFooterPosition(viewType);
FixedViewInfo viewInfo = mFooterViewInfos.get(footerPosition);
View footerView = viewInfo.view;
checkAndSetRecyclerViewLayoutParams(footerView, viewInfo.width, viewInfo.height);
return new HeaderOrFooterViewHolder(footerView);
}
return mWrappedAdapter.onCreateViewHolder(parent, viewType);
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
int numHeaders = getHeadersCount();
int adapterCount = mWrappedAdapter.getItemCount();
if (position < numHeaders) {
//header
return;
} else if (position > (numHeaders + adapterCount - 1)) {
//footer
return;
} else {
int adjustPosition = position - numHeaders;
if (adjustPosition < adapterCount) {
mWrappedAdapter.onBindViewHolder(holder, adjustPosition);
}
}
}
public boolean isHeader(int position) {
int numHeaders = getHeadersCount();
return position < numHeaders;
}
public boolean isFooter(int position) {
int numHeaders = getHeadersCount();
int adapterCount = mWrappedAdapter.getItemCount();
return position > (numHeaders + adapterCount - 1);
}
private void checkAndSetRecyclerViewLayoutParams(View child, int width, int height) {
if (child == null) return;
LayoutParams p = child.getLayoutParams();
if (p == null) {
p = new RecyclerView.LayoutParams(new MarginLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)));
} else {
if (!(p instanceof RecyclerView.LayoutParams)) {
p = recyclerView.getLayoutManager().generateLayoutParams(p);
}
}
if (width != 0) {
p.width = width;
}
if (height != 0) {
p.height = height;
}
child.setLayoutParams(p);
}
@Override
public int getItemCount() {
if (mWrappedAdapter != null) {
return getHeadersCount() + getFootersCount() + mWrappedAdapter.getItemCount();
} else {
return getHeadersCount() + getFootersCount();
}
}
@Override
public int getItemViewType(int position) {
int numHeaders = getHeadersCount();
if (mWrappedAdapter == null) return -1;
//headerviewadapteritemType
int adjustPos = position - numHeaders;
int adapterItemCount = mWrappedAdapter.getItemCount();
if (position >= numHeaders) {
if (adjustPos < adapterItemCount) {
//adapteradapteritemviewtype
return mWrappedAdapter.getItemViewType(adjustPos);
}
} else if (position < numHeaders) {
return mHeaderViewInfos.get(position).itemViewType;
}
return mFooterViewInfos.get(position - adapterItemCount - numHeaders).itemViewType;
}
@Override
public RecyclerView.Adapter getWrappedAdapter() {
return this.mWrappedAdapter;
}
private boolean onCreateHeaderViewHolder(int viewType) {
return mHeaderViewInfos.size() > 0 && viewType <= ITEM_VIEW_TYPE_HEADER_START && viewType > ITEM_VIEW_TYPE_FOOTER_START;
}
private boolean onCreateFooterViewHolder(int viewType) {
return mFooterViewInfos.size() > 0 && viewType <= ITEM_VIEW_TYPE_FOOTER_START;
}
private int getHeaderPosition(int viewType) {
return Math.abs(viewType) - Math.abs(ITEM_VIEW_TYPE_HEADER_START);
}
private int getFooterPosition(int viewType) {
return Math.abs(viewType) - Math.abs(ITEM_VIEW_TYPE_FOOTER_START);
}
public int findHeaderPosition(View headerView) {
if (headerView == null) return -1;
for (int i = 0; i < mHeaderViewInfos.size(); i++) {
FixedViewInfo info = mHeaderViewInfos.get(i);
if (info.view == headerView) return i;
}
return -1;
}
public int findFooterPosition(View footerView) {
if (footerView == null) return -1;
for (int i = 0; i < mHeaderViewInfos.size(); i++) {
FixedViewInfo info = mHeaderViewInfos.get(i);
if (info.view == footerView) {
return getHeadersCount() + mWrappedAdapter.getItemCount() + i;
}
}
return -1;
}
@Override
public void onAttachedToRecyclerView(RecyclerView recyclerView) {
super.onAttachedToRecyclerView(recyclerView);
fixLayoutManager(recyclerView.getLayoutManager());
mWrappedAdapter.onAttachedToRecyclerView(recyclerView);
}
@Override
public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) {
super.onViewAttachedToWindow(holder);
fixStaggredGridLayoutManager(holder);
mWrappedAdapter.onViewAttachedToWindow(holder);
}
private void fixLayoutManager(RecyclerView.LayoutManager layoutManager) {
if (layoutManager == null) return;
if (layoutManager instanceof GridLayoutManager) {
fixGridLayoutManager((GridLayoutManager) layoutManager);
}
}
private void fixGridLayoutManager(final GridLayoutManager layoutManager) {
layoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() {
@Override
public int getSpanSize(int position) {
return (isHeader(position) || isFooter(position)) ? layoutManager.getSpanCount() : 1;
}
});
}
private void fixStaggredGridLayoutManager(RecyclerView.ViewHolder holder) {
final int position = holder.getLayoutPosition();
if (isHeader(position) || isFooter(position)) {
LayoutParams lp = holder.itemView.getLayoutParams();
if (lp instanceof StaggeredGridLayoutManager.LayoutParams) {
StaggeredGridLayoutManager.LayoutParams p = (StaggeredGridLayoutManager.LayoutParams) lp;
p.setFullSpan(true);
}
}
}
public static final class HeaderOrFooterViewHolder extends RecyclerView.ViewHolder {
public HeaderOrFooterViewHolder(View itemView) {
super(itemView);
}
}
}
```
|
```sqlpl
set enable_analyzer = true;
set optimize_rewrite_array_exists_to_has = false;
EXPLAIN QUERY TREE run_passes = 1 select arrayExists(x -> x = 5 , materialize(range(10))) from numbers(10);
EXPLAIN QUERY TREE run_passes = 1 select arrayExists(x -> 5 = x , materialize(range(10))) from numbers(10);
set optimize_rewrite_array_exists_to_has = true;
EXPLAIN QUERY TREE run_passes = 1 select arrayExists(x -> x = 5 , materialize(range(10))) from numbers(10);
EXPLAIN QUERY TREE run_passes = 1 select arrayExists(x -> 5 = x , materialize(range(10))) from numbers(10);
set enable_analyzer = false;
set optimize_rewrite_array_exists_to_has = false;
EXPLAIN SYNTAX select arrayExists(x -> x = 5 , materialize(range(10))) from numbers(10);
EXPLAIN SYNTAX select arrayExists(x -> 5 = x , materialize(range(10))) from numbers(10);
set optimize_rewrite_array_exists_to_has = true;
EXPLAIN SYNTAX select arrayExists(x -> x = 5 , materialize(range(10))) from numbers(10);
EXPLAIN SYNTAX select arrayExists(x -> 5 = x , materialize(range(10))) from numbers(10);
```
|
```objective-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
*/
/*!
* \file sdaccel_common.h
* \brief SDAccel common header
*/
#ifndef TVM_RUNTIME_OPENCL_SDACCEL_SDACCEL_COMMON_H_
#define TVM_RUNTIME_OPENCL_SDACCEL_SDACCEL_COMMON_H_
#include <memory>
#include "../opencl_common.h"
namespace tvm {
namespace runtime {
namespace cl {
/*!
* \brief Process global SDAccel workspace.
*/
class SDAccelWorkspace final : public OpenCLWorkspace {
public:
// override OpenCL device API
void Init() final;
bool IsOpenCLDevice(Device dev) final;
OpenCLThreadEntry* GetThreadEntry() final;
// get the global workspace
static OpenCLWorkspace* Global();
};
/*! \brief Thread local workspace for SDAccel*/
class SDAccelThreadEntry : public OpenCLThreadEntry {
public:
// constructor
SDAccelThreadEntry()
: OpenCLThreadEntry(static_cast<DLDeviceType>(kDLSDAccel), SDAccelWorkspace::Global()) {}
// get the global workspace
static SDAccelThreadEntry* ThreadLocal();
};
} // namespace cl
} // namespace runtime
} // namespace tvm
#endif // TVM_RUNTIME_OPENCL_SDACCEL_SDACCEL_COMMON_H_
```
|
```javascript
/**
* @license
*/
/**
* @fileoverview Ensure that each cell in a table using the headers refers to another cell in
* that table
* See base class in axe-audit.js for audit() implementation.
*/
import AxeAudit from './axe-audit.js';
import * as i18n from '../../lib/i18n/i18n.js';
const UIStrings = {
/** Title of an accesibility audit that evaluates if all table cell elements in a table that use the headers HTML attribute use it correctly to refer to header cells within the same table. This title is descriptive of the successful state and is shown to users when no user action is required. */
title: 'Cells in a `<table>` element that use the `[headers]` attribute refer ' +
'to table cells within the same table.',
/** Title of an accesibility audit that evaluates if all table cell elements in a table that use the headers HTML attribute use it correctly to refer to header cells within the same table. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
failureTitle: 'Cells in a `<table>` element that use the `[headers]` attribute refer ' +
'to an element `id` not found within the same table.',
/** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
description: 'Screen readers have features to make navigating tables easier. Ensuring ' +
'`<td>` cells using the `[headers]` attribute only refer to other cells in the same ' +
'table may improve the experience for screen reader users. ' +
'[Learn more about the `headers` attribute](path_to_url
};
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);
class TDHeadersAttr extends AxeAudit {
/**
* @return {LH.Audit.Meta}
*/
static get meta() {
return {
id: 'td-headers-attr',
title: str_(UIStrings.title),
failureTitle: str_(UIStrings.failureTitle),
description: str_(UIStrings.description),
requiredArtifacts: ['Accessibility'],
};
}
}
export default TDHeadersAttr;
export {UIStrings};
```
|
Grewia occidentalis, the crossberry, is a species of deciduous tree indigenous to Southern Africa.
Description
A small, scrambling, deciduous tree reaching a height of about 3 m, its purple, star-shaped flowers appear in summer, followed by distinctive four-lobed berries (from where it gets its common names "crossberry" and "four-corner"). These shiny reddish-brown fruits remain on the tree for long periods and are favoured by fruit-eating birds. The simple leaves are shiny, deep green and sometimes slightly hairy.
Distribution and Habitat
Grewia occidentalis occurs naturally across south-eastern Africa, where its range extends from Cape Town along the coast to Mozambique and inland to Zimbabwe.
The native habitats of the plant are extremely varied, it is found in both the arid karoo of western South Africa and from the Highveld, and across the Afromontane forests of the Drakensberg range along the eastern coastline.
Growing Grewia occidentalis
This decorative garden plant tolerates both light frost and drought. It also grows in both full sun or shade. The root system is not aggressive and can therefore be planted near buildings and paving, and it is very good at attracting butterflies and birds to the garden.
The crossberry is best propagated from seed, although even then it can be erratic, as usually the seed needs to pass through the gut of a monkey before germination commences.
The berries are eaten locally, either fresh and raw, fermented with traditional beer, or used with goats milk to make berry yoghurt.
References
External links
occidentalis
Fruits originating in Africa
Afromontane flora
Flora of Lesotho
Flora of Mozambique
Flora of South Africa
Flora of Swaziland
Flora of Zimbabwe
Trees of South Africa
Plants described in 1753
Taxa named by Carl Linnaeus
|
```scala
package chipyard.harness
import chisel3._
import scala.collection.mutable.{ArrayBuffer, LinkedHashMap}
import freechips.rocketchip.diplomacy.{LazyModule}
import org.chipsalliance.cde.config.{Field, Parameters, Config}
import freechips.rocketchip.util.{ResetCatchAndSync, DontTouch}
import freechips.rocketchip.prci.{ClockBundle, ClockBundleParameters, ClockSinkParameters, ClockParameters}
import chipyard.stage.phases.TargetDirKey
import chipyard.harness.{ApplyHarnessBinders, HarnessBinders}
import chipyard.iobinders.HasChipyardPorts
import chipyard.clocking.{SimplePllConfiguration, ClockDividerN}
import chipyard.{ChipTop}
// -------------------------------
// Chipyard Test Harness
// -------------------------------
case object MultiChipNChips extends Field[Option[Int]](None) // None means ignore MultiChipParams
case class MultiChipParameters(chipId: Int) extends Field[Parameters]
case object BuildTop extends Field[Parameters => LazyModule]((p: Parameters) => new ChipTop()(p))
case object HarnessClockInstantiatorKey extends Field[() => HarnessClockInstantiator]()
case object HarnessBinderClockFrequencyKey extends Field[Double](100.0) // MHz
case object MultiChipIdx extends Field[Int](0)
case object DontTouchChipTopPorts extends Field[Boolean](true)
class WithMultiChip(id: Int, p: Parameters) extends Config((site, here, up) => {
case MultiChipParameters(`id`) => p
case MultiChipNChips => Some(up(MultiChipNChips).getOrElse(0) max (id + 1))
})
class WithHomogeneousMultiChip(n: Int, p: Parameters, idStart: Int = 0) extends Config((site, here, up) => {
case MultiChipParameters(id) => if (id >= idStart && id < idStart + n) p else up(MultiChipParameters(id))
case MultiChipNChips => Some(up(MultiChipNChips).getOrElse(0) max (idStart + n))
})
class WithHarnessBinderClockFreqMHz(freqMHz: Double) extends Config((site, here, up) => {
case HarnessBinderClockFrequencyKey => freqMHz
})
class WithDontTouchChipTopPorts(b: Boolean = true) extends Config((site, here, up) => {
case DontTouchChipTopPorts => b
})
// A TestHarness mixing this in will
// - use the HarnessClockInstantiator clock provide
trait HasHarnessInstantiators {
implicit val p: Parameters
// clock/reset of the chiptop reference clock (can be different than the implicit harness clock/reset)
private val harnessBinderClockFreq: Double = p(HarnessBinderClockFrequencyKey)
def getHarnessBinderClockFreqHz: Double = harnessBinderClockFreq * 1000000
def getHarnessBinderClockFreqMHz: Double = harnessBinderClockFreq
// buildtopClock takes the refClockFreq, and drives the harnessbinders
val harnessBinderClock = Wire(Clock())
val harnessBinderReset = Wire(Reset())
// classes which inherit this trait should provide the below definitions
def referenceClockFreqMHz: Double
def referenceClock: Clock
def referenceReset: Reset
def success: Bool
// This can be accessed to get new clocks from the harness
val harnessClockInstantiator = p(HarnessClockInstantiatorKey)()
val supportsMultiChip: Boolean = false
val chipParameters = p(MultiChipNChips) match {
case Some(n) => (0 until n).map { i => p(MultiChipParameters(i)).alterPartial {
case TargetDirKey => p(TargetDirKey) // hacky fix
case MultiChipIdx => i
}}
case None => Seq(p)
}
// This shold be called last to build the ChipTops
def instantiateChipTops(): Seq[LazyModule] = {
require(p(MultiChipNChips).isEmpty || supportsMultiChip,
s"Selected Harness does not support multi-chip")
val lazyDuts = chipParameters.zipWithIndex.map { case (q,i) =>
LazyModule(q(BuildTop)(q)).suggestName(s"chiptop$i")
}
val duts = lazyDuts.map(l => Module(l.module))
withClockAndReset (harnessBinderClock, harnessBinderReset) {
lazyDuts.zipWithIndex.foreach {
case (d: HasChipyardPorts, i: Int) => {
ApplyHarnessBinders(this, d.ports, i)(chipParameters(i))
}
case _ =>
}
ApplyMultiHarnessBinders(this, lazyDuts)
}
if (p(DontTouchChipTopPorts)) {
duts.map(_ match {
case d: DontTouch => d.dontTouchPorts()
case _ =>
})
}
val harnessBinderClk = harnessClockInstantiator.requestClockMHz("harnessbinder_clock", getHarnessBinderClockFreqMHz)
println(s"Harness binder clock is $harnessBinderClockFreq")
harnessBinderClock := harnessBinderClk
harnessBinderReset := ResetCatchAndSync(harnessBinderClk, referenceReset.asBool)
harnessClockInstantiator.instantiateHarnessClocks(referenceClock, referenceClockFreqMHz)
lazyDuts
}
}
```
|
```xml
<!--
~
~
~ 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.
-->
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/colorPrimaryText"
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
</vector>
```
|
The $1,000,000 Chance of a Lifetime is an American game show which offered a $1 million (annuitized) grand prize to winning contestants. The show aired in syndication from January 6, 1986, until May 22, 1987. The show was hosted by Jim Lange, and he was joined by Karen Thomas as co-host during the second season. Mark Summers was the show's announcer for the first few weeks and Johnny Gilbert announced the remainder of the series. The show was produced by XPTLA, Inc., and distributed by Lorimar-Telepictures.
Gameplay
Two couples competed each day, one of which was usually a returning champion. The two couples tried to win money by solving hangman-style word puzzles, but only one member of each couple played at any given time.
In order to fill-in the blank spaces in the puzzle, a series of toss-up clues were played. The clues were usually one word in length, but certain clues called for two or even three words to be used. The contestants were told how many letters were in the clue and the letters were put into the clue one at a time until one of the contestants buzzed in. If that contestant gave a correct answer, the couple scored $25. If not, the clue would be filled in up to the last letter and the opposing contestant got the chance to guess.
Once a contestant guessed correctly, he/she stepped up to an oversized keyboard to place letters in the puzzle, which was displayed on a giant computer screen. All of the letters appearing in the puzzle, as well as a star that would represent numbers or punctuation marks, were lit on the keyboard. There was always an additional key lit that represented what did not appear in the puzzle; the decoy key was referred to as "The Stinger". Correctly guessing the clues earned the contestants the choice of two letters on the keyboard, and each time the letter appeared in the puzzle $25 was added to a bank that went to the couple who solved the puzzle. Finding the Stinger ended a contestant's turn immediately; the contestant had to avoid it on both key choices in order to be able to guess the puzzle. A new clue was played whenever a contestant either failed to guess the puzzle or found the Stinger.
In the second round, the couples switched positions and the values for each word and correctly placed letter doubled to $50. For the third round, as well as any subsequent rounds, the values rose to $100 and each couple had to choose which one of them would play. The game continued as long as time permitted. If time ran short during a puzzle, each of the remaining letters was put into the puzzle one at a time and the bank continued to accumulate until one of the couples answered correctly.
The couple in the lead at the end of the game won their bank and played the bonus round. If there was a tie after the final puzzle, a final toss-up clue was played with sudden death rules; a correct answer won the game, but an incorrect answer resulted in an automatic loss.
Losing couples received consolation prizes, including a copy of the show's home game.
Bonus round
In the bonus round, the couple had to solve six words or phrases within 60 seconds. Before the round, they were presented with three categories to choose from. Once they made the selection, the show's on-stage security guard led them into an isolation booth which was wired so they could only hear Lange and could only see the game board screen.
The round began on Lange's command and one letter at a time was placed in the word or phrase. Letters were revealed at a rate of approximately one per 1.5 seconds, continuing until every blank except one had been filled in. The couple could not pass and had to keep guessing at each word until they either solved it or ran out of time.
If the couple successfully completed the bonus round in their first attempt, they were offered $5,000 and a choice to retire as undefeated champions or to return the next day and face another couple on the following show. If the couple chose to return and then completed the bonus round a second time, the offer increased to $10,000.
If the couple advanced to the bonus round for a third day, they played for the top prize of $1,000,000. In the first season, the grand prize was an annuity, with the couple receiving $40,000 a year for 25 years. For the second season, the couple received over $900,000 as an annuity and an additional $100,000 in prizes, including a pair of automobiles and 20 round-trip tickets on Delta Air Lines valid for any destination in the continental United States.
If at any time the couple failed to win the bonus round, they were retired as champions and left with whatever they had won in the main game to that point.
During its two-season run, a total of nine couples won the grand prize.
Merchandise
A single board game based on the show was released by Cardinal in 1986.
International versions
References
External links
First-run syndicated television programs in the United States
1980s American game shows
1986 American television series debuts
1987 American television series endings
Television series by Lorimar Television
Television series by Lorimar-Telepictures
English-language television shows
|
Nicholas Anthony Christopher Candy (born 23 January 1973) and Christian Peter Candy (born 31 July 1974) are British luxury property developers. The brothers were estimated to share a joint net worth of £1.5 billion in the Estates Gazette rich list 2010, placing them at position 52 in the list of the richest property developers in the United Kingdom.
Early life and education
Born in London to a Greek-Cypriot mother and English father, the brothers were educated at Priory Preparatory School and Epsom College in Surrey. Christian was later studying for a business management degree at King's College London but did not graduate. Nick graduated from University of Reading with a degree in Human Geography.
Career
In 1995, they bought their first property, a one-bedroom flat in Redcliffe Square, Earl's Court, London. Using a £6,000 loan from their grandmother, the brothers renovated the £122,000 apartment while living in it. Eighteen months later they sold it for £172,000, making a £50,000 profit.
In their spare time between 1995 and 1999, the brothers began renovating flats and working their way up the property ladder. Eventually they were able to give up their day jobs where Nick worked in advertising for J. Walter Thompson and Christian for investment bank Merrill Lynch and established Candy & Candy in 1999, of which Nick is CEO. Nicholas and Christian, who did collaborate on the prestigious One Hyde Park scheme in London, operate separate independent businesses and have done for a number of years. In June 2018, Candy & Candy was renamed Candy Property in order to reinforce Nick Candy's sole ownership of the business and to align with his wider portfolio of companies. In 2004, Christian established CPC Group in Guernsey, to specialise in high-end residential developments around the world. Some of their more high-profile developments, however, have been in London.
In 2016 and 2017 they were involved in high-profile litigation in the High Court in London which put their reputations on the line. Mark Holyoake claimed in the High Court action that the Candy Brothers had used threats against him and his family to extort total repayments of £37m against a £12m loan. Although they were cleared of extortion, Mr Justice Nugee said in his judgment "the protagonists...have been willing to lie when they consider their commercial interests justify them doing so". Mr Justice Nugee went on to say "he had found none of Mr Holyoake's claims to be true, and that there had been no undue duress, influence, intimidation or unlawful interference with economic interests." In June 2018, following another application by Mr. Holyoake, the Court of Appeal rejected Mark Holyoake's bid challenging the high-profile high court ruling in December 2017 (above). Lord Justice David Richards concluded that Mr Holyoake's arguments had "no real prospect of success" meaning Mr Justice Nugee's original decision in 2017 was affirmed.
In recent years Nick Candy has diversified his interests outside of real estate and developed a portfolio of global investments (often in high tech, leading edge technology) through his private investment fund Candy Ventures. Candy Ventures, alongside Qualcomm Ventures was reported to have led a $37 million funding round for a leading augmented reality and computer vision company. Candy Ventures acquired the intellectual property assets of leading augmented reality start-up Blippar in January 2019.
The website for Candy Ventures lists 18 investments within the companies portfolio, including Blippar, UK fashion house Ralph & Russo and data processing company Hanzo Archives. Nick Candy is currently in dispute with Ralph & Russo, which filed for bankruptcy in March 2018, in the UK High Court over a disagreement over the terms of a £17 million loan given by Candy Ventures to the company.
Candy Ventures acquired a stake in Blippar and another tech start-up, Crowdmix, after both companies were placed into administration. The takeovers were both facilitated by Paul Appleton, who worked as the administrator for the two companies and was appointed administrator in the Ralph & Russo bankruptcy. Their portfolio includes mining investments in the Runruno gold mine in the Philippines, which has faced opposition from human rights groups after the demolition of local communities in 2012, which caused injuries to six local people. The development has also been blamed for causing landslides leading to deaths in the area. On 28 May 2022, The Times reported that Candy Ventures is considering a bid to buy The Hut Group, though journalist Oliver Shah was sceptical, pointing to "a series of disastrous investments in tech start-ups" and "no record of big acquisitions". However, on 15 June 2022, Bloomberg reported that Candy Ventures had pulled out of the bidding process for The Hut Group.
On 9 March 2022, Nick Candy, a boyhood fan, confirmed he was planning a consortium bid to take over Chelsea Football Club after owner Roman Abramovich put the club up for sale following Russia's invasion of Ukraine. The sale process was halted the following day after Abramovich's assets, including the club, were frozen to stop him making money from Chelsea, but the UK government was open to considering a variation to its sanctions licence to allow a sale so long as Abramovich received no funds. On 25 March 2022, The Athletic reported that Candy's bid to acquire Chelsea had failed, despite support from South Korean firms Hana Financial and C&P Sports Group.
In July 2022, his Luxembourg-registered investment vehicle, Candy Ventures SARL, sued Aaqua BV and its major shareholder, Robert Bonnier, for an alleged fraud. He claimed that Bonnier misled him about Aaqua, a false claim that Apple and LVMH are interested to invest in Aaqua, so requested to the court to froze Bonnier's assets and nullify the swap of his shares in Audioboom Group PLC, a podcast platform, with Aaqua. Later, the High Court issued a freezing order against Bonnier, but ordered that Candy Ventures had to obtain a £10 million bank guarantee to maintain the freezing order. In August 2022, the freezing orders were discharged. On 7 September 2022, Bonnier demanded £150 million in damages from Candy for falsely obtained freezing orders that turned his technology company into a credit risk.
In 2023 Dubai World Trade Centre (DWTC) and Nick Candy’s Candy Capital announced that they have formed a partnership to develop a “super-prime” real estate development in Dubai.
Notable development projects
One Hyde Park (2004)
In 2004, the brothers sought an investment partner to help them buy the site of Bowater House in Knightsbridge, with plans to demolish it and construct 86 luxury apartments.
After setting up a joint venture with Waterknights – a private company owned by the Prime Minister of Qatar – they purchased the site from Land Securities in 2005 for £150m. One Hyde Park was also financed by a £1.15 billion development loan from the German bank, Eurohypo, a successor to the defunct Dresdner Bank, which was led by Matthias Warnig, a long-term associate of Russian President Vladimir Putin.
They then hired the architect Richard Rogers to design the exterior, and used their own Candy & Candy to handle interior design. One Hyde Park: The Residences of Mandarin Oriental, London, was constructed in four years after obtaining planning permission in 2006, with the finished development housing three commercial units: Rolex, McLaren Automotive and Abu Dhabi Islamic Bank. Despite its name, the building's address is located at 68-114 Knightsbridge, London. In 2015, The Guardian obtained a leaked recording of a 2010 promotional video for One Hyde Park, which features Richard Rogers, Nick Candy and Christian Candy, and Stephen Smith, a tax advisor for the Candy Brothers, who demanded changes to the video to "improve the tax profile" to avoid an enquiry by Her Majesty's Revenue & Customs, which at the time was led by Ian Barlow, a former director of a Candy brothers company in the British Virgin Islands.
The One Hyde Park development officially launched in January 2011 and had a profound effect on the global real estate market, breaking a number of industry records as the most expensive residential development in the world. It was reported that the penthouse apartments alone fetched some of the highest prices on record. Since the development opened, apartments at the complex have been purchased by the superrich, including Viktor Kharitonin, a Russian billionaire and business partner of Roman Abramovich, Ukrainian oligarch Rinat Akhmetov, who bought a triplex penthouse in 2010 for £136 million, Anar Aitzhanova, a Kazakh singer whose husband was shot dead in 2004, and Ekaterina Fedun, the daughter of Russian billionaire and Lukoil shareholder Leonid Fedun. Other owners of flats in the bloc include Temur Akhmedov, the son of sanctioned Russian-Azeri oligarch Farkhad Akhmedov, whose $460 million superyacht is now frozen in Germany due to EU sanctions following Russia's invasion of Ukraine in February 2022. On 18 June 2022, The Telegraph reported that Alexander Ponomarenko, a sanctioned Russian oligarch accused of purchasing a palace on behalf of President Vladimir Putin, is the owner of an apartment at One Hyde Park valued at £60 million.
In October 2018, it was reported that Nick Candy refinanced his penthouse at One Hyde Park with an £80 million mortgage from Credit Suisse in order to pursue rental opportunities. The property is reportedly valued at £160 million.
In April 2021, Bloomberg reported that Nick had placed his penthouse on the market for £175 million. In August 2020, Nick also announced that his yacht, the Eleven Eleven was up for sale for €59.5 million.
NoHo Square (2006)
In 2006, the site of the former Middlesex Hospital was purchased for £175m by Project Abbey (Guernsey) Holdings Ltd – an investment consortium which included Kaupthing Bank, the now defunct Icelandic bank, and was led by the Candy's CPC Group. In February 2007, the brothers applied to Westminster City Council for planning permission to redevelop the 1.2 hectare (3 acre) site into a mixed use development of several hundred new residential units and office space. The plans were met with strong criticism from local residents over the Candy's choice of NoHo Square as the name for the new development.
Planning permission for NoHo Square was granted in November 2007; however, the completion of demolition of the hospital in 2008 coincided with the collapse of Kaupthing as a result of the 2007-2008 global financial crisis. Kaupthing was the largest shareholder in the Guernsey-based consortium which bought the Middlesex site from University College Hospital in 2006, and with the bank in administration, the NoHo Square development stalled. As a result of CPC Group being partners with Kaupthing in another property development over in the US, the Candy brothers were able to transfer their equity stake in NoHo Square to the bank and in exchange take full control of the US development.
Chelsea Barracks (2007)
In April 2007, the Candy brothers acquired the Chelsea Barracks in a joint venture with Qatari Diar, part of the Qatar government's investment arm. In what is believed to be Britain's costliest residential property deal, the Candy brothers and the Qatari government have bought the 12.8-acre site from the Ministry of Defence for £959m.
In 2010, Candy's CPC Group brought an £81 million lawsuit against the Qatar Diar after the latter pulled out of the project, which was later settled out of court. Qatari Diar's decision to abandon the project came after pressure from Prince Charles, who criticised the plans and Qatar's Prime Minister and Chairman of Qatari Diar, Sheikh Hamad bin Jassim bin Jaber Al-Thani, calling the plans "brutish". Specifically, Charles was quoted as saying the Chelsea Barracks project would be “a gigantic experiment with the very soul of our capital city” and went on saying “it should be scrapped in favour of something more “old-fashioned”. High Court judge, Mr. Justice Vos ruled that Charles’ intervention in the design of the project was immediately recognized and raised serious political issues that needed to be dealt with at the highest level inferring that Charles had intervened unlawfully.
Beverly Hills 9900 Wilshire development (2008)
In April 2007, the Candy brothers purchased – through CPC Group – an eight-acre site in Beverly Hills, California, known as 9900 Wilshire, with their equity partners Kaupthing for a reported £250m.
CPC Group hired architect Richard Meier to design a condominium and retail complex in place of the former Robinsons-May department store. Victor Bardack of the Beverly Hills North Homeowners Association said: "To put two huge projects on the already-impacted intersection of Santa Monica and Wilshire boulevards is grossly detrimental to the community,[...] It'll be gridlock forever." The controversy stemmed from the Sheikh being part owner of a Middle Eastern newspaper that has been accused of being anti-Semitic and anti-American.
CPC Group served a written notice of default on Kaupthing shortly after. In the same month, the situation was made worse when the acquisition loan to the project from Credit Suisse became past due, and, additionally, it became increasingly difficult to get financing on the 250 condominiums that the original plans catered for. This was due to the collapse of the property market and banks pulling their funding. It was later reported that CPC Group – after negotiating full control of the development from Kaupthing – defaulted on a US$365.5 million bank loan.
Gordon House
Christian agreed to purchase Gordon House from the Royal Hospital Chelsea in 2012. He exchanged contracts, consisting of two lease agreements for £20 million and £48 million. Christian began elaborate subterranean building works, including a 60 ft swimming pool and a cinema. Even though he had not completed on the purchase, the start of the works triggered a rule that the purchase had been "substantially performed", so he had to pay the SDLT levy. He decided not to move in, despite having paid £27.4 million of the price, and gave it to Nick, who finished the works and completed on the purchase — at which point he became liable to pay the tax again.
Personal life
Christian married Emily Crompton, socialite and former nightclub hostess, in a lavish ceremony in 2010. They had twins in 2013, Isabella Monaco Evanthia and Cayman Charles Wolf. They lived between UK and Monaco.
On 29 September 2012, Nick married the Australian-British actress-musician-TV presenter Holly Valance in Beverly Hills, California, US. In November 2013 in London, they had their first child, a daughter, Luka Violet Toni. Their second daughter, Nova Skye Coco, was born in September 2017. On 8 April 2022, Candy and Valance were pictured with former US President Donald Trump and British politician Nigel Farage at Trump's Mar-a-Lago resort, with a tweet by Farage indicating that the group had dinner together. A report in The Times on 28 May 2022 indicated that Candy is also friends with comedians Jimmy Carr and David Walliams, referring to Candy as "any Olympic level name dropper".
In December 2021, The Daily Mirror published a photograph revealing that Nick attended a party with the then Conservative London mayoral candidate Shaun Bailey on 14 December 2020, which would have broken coronavirus restrictions at the time. The publication of the photograph in December 2021 followed reporting by The Times in March 2021, which named Nick as the leader of fundraising for Shaun Bailey's London mayoral campaign. In June 2020, The Guardian also reported that Candy had donated £100,000 to the Conservative Party in March 2020.
References
External links
CPC Group
Candy & Candy Design
Living people
Business duos
British real estate businesspeople
Place of birth missing (living people)
Year of birth missing (living people)
English people of Greek Cypriot descent
People educated at Epsom College
English businesspeople
People from Banstead
|
Kamuga is a settlement in Kenya's Nyanza Province.
References
Populated places in Nyanza Province
|
```javascript
/* Get object property, don't throw undefined error.
*
* |Name |Desc |
* |------|-------------------------|
* |obj |Object to query |
* |path |Path of property to get |
* |return|Target value or undefined|
*/
/* example
* const obj = { a: { aa: { aaa: 1 } } };
* safeGet(obj, 'a.aa.aaa'); // -> 1
* safeGet(obj, ['a', 'aa']); // -> {aaa: 1}
* safeGet(obj, 'a.b'); // -> undefined
*/
/* module
* env: all
*/
/* typescript
* export declare function safeGet(obj: any, path: string | string[]): any;
*/
_('isUndef castPath');
exports = function(obj, path) {
path = castPath(path, obj);
let prop;
prop = path.shift();
while (!isUndef(prop)) {
obj = obj[prop];
if (obj == null) return;
prop = path.shift();
}
return obj;
};
```
|
Biljana Dragić () is a Serbian politician. She has served in the National Assembly of Serbia since 2022. Elected as a member of the Movement for the Restoration of the Kingdom of Serbia (POKS), she is now an independent.
Private career
Dragić is from the village of Kljajićevo in Sombor. She holds a bachelor's degree in general chemistry.
Politician
Dragić appeared in the 235th position out of 250 on the POKS's For the Kingdom of Serbia electoral list in the 2020 Serbian parliamentary election. Election from this position was not a realistic prospect, and in any event the list failed to cross the electoral threshold for representation in the national assembly.
The POKS split in late 2021, and for a period of several months two separate organizations claimed to be the legitimately constituted party. These were respectively led by Vojislav Mihailović and Žika Gojković. Dragić sided with Gojković's group.
Parliamentarian
Gojković's political organization held the legal right to use the POKS name in the 2022 parliamentary election, which it contested in an alliance with Dveri. Dragić received the fourth position on their combined list and was elected when the list won ten mandates. Gojković's group won four seats in total; shortly after the election, it lost the rights to the POKS name when Mihailović was legally recognized as the party's leader.
In August 2022, Gojković and two of his allies in the former POKS group, including Dragić, voted for Serbian Progressive Party (SNS) candidate Vladimir Orlić to become the new president of the national assembly. The fourth ex-POKS member, Miloš Parandilović, voted against Orlić and left Gojković's group entirely. Parandilović later accused Dragić of breaking a promise to resign after the first session of parliament to permit another candidate to enter the assembly in her place.
Dragić is a member of the assembly committee on the rights of the child and the parliamentary friendship groups with Canada, Croatia, Italy, and Slovenia. Along with Gojković, she sits in a parliamentary group with members of the Justice and Reconciliation Party (SPP), the United Peasant Party (USS), and the Democratic Alliance of Croats in Vojvodina (DSHV).
References
1984 births
21st-century Serbian women politicians
Independent politicians in Serbia
Living people
Members of the National Assembly (Serbia)
Movement for the Restoration of the Kingdom of Serbia politicians
Politicians from Sombor
|
```prolog
#!/usr/bin/perl
##
##
## This program is distributed under the terms and conditions of the GNU
## Foundation or, at your option, any later version.
use strict;
use warnings;
do 'bin/make.pl';
my @extlist = ();
my %extensions = ();
our $export = shift;
if (@ARGV)
{
@extlist = @ARGV;
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my $extvar = $extname;
$extvar =~ s/GL(X*)_/GL$1EW_/;
print $export . " GLboolean " . prefix_varname($extvar) . ";\n";
}
}
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this software, associated documentation and/or
* data (collectively the "Software"), free of charge and under any and all
* copyright rights in the Software, and any and all patent rights owned or
* freely licensable by each licensor hereunder covering either (i) the
* unmodified Software as contributed to or provided by such licensor, or (ii)
* the Larger Works (as defined below), to deal in both
*
* (a) the Software, and
*
* (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
* one is included with the Software each a "Larger Work" to which the Software
* is contributed by such licensors),
*
* without restriction, including without limitation the rights to copy, create
* derivative works of, display, perform, and distribute the Software and make,
* use, sell, offer for sale, import, export, have made, and have sold the
* Software and the Larger Work(s), and to sublicense the foregoing rights on
* either these or other terms.
*
* This license is subject to the following condition:
*
* The above copyright notice and either this complete permission notice or at a
* minimum a reference to the UPL must be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.oracle.truffle.api.debug.test;
import java.util.Objects;
import java.util.function.BiFunction;
import com.oracle.truffle.api.CallTarget;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.TruffleLanguage;
import com.oracle.truffle.api.exception.AbstractTruffleException;
import com.oracle.truffle.api.frame.Frame;
import com.oracle.truffle.api.frame.MaterializedFrame;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.instrumentation.GenerateWrapper;
import com.oracle.truffle.api.instrumentation.InstrumentableNode;
import com.oracle.truffle.api.instrumentation.ProbeNode;
import com.oracle.truffle.api.instrumentation.StandardTags;
import com.oracle.truffle.api.instrumentation.Tag;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.interop.InvalidArrayIndexException;
import com.oracle.truffle.api.interop.NodeLibrary;
import com.oracle.truffle.api.interop.TruffleObject;
import com.oracle.truffle.api.interop.UnknownIdentifierException;
import com.oracle.truffle.api.interop.UnsupportedMessageException;
import com.oracle.truffle.api.library.ExportLibrary;
import com.oracle.truffle.api.library.ExportMessage;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.source.SourceSection;
import com.oracle.truffle.api.test.polyglot.ProxyInteropObject;
import com.oracle.truffle.api.test.polyglot.ProxyLanguage;
/**
* A buggy language for debugger tests. Use {@link ProxyLanguage#setDelegate(ProxyLanguage)} to
* register instances of this class. The language produces one root node containing one statement
* node with <code>a</code> and <code>o</code> local variables. <code>a</code> contains an integer
* and <code>o</code> is an object containing an <code>A</code> property.
* <p>
* To trigger an exception, evaluate a Source containing number <code>1</code> for an
* {@link IllegalStateException}, number <code>2</code> for a {@link AbstractTruffleException}, or
* number <code>3</code> for an {@link AssertionError}. The number is available in <code>a</code>
* local variable and <code>o.A</code> property, so that it can be passed to the
* {@link #throwBug(java.lang.Object)}.
* <p>
* Extend this class and {@link #throwBug(java.lang.Object) throw bug} in a language method, or
* evaluate a Source that contains one of following keywords prior the error number:
* <ul>
* <li><b>ROOT</b> - to get an exception from RootNode.getName()</li>
* <li><b>KEYS</b> - to get an exception from KEYS message on the value of <code>o</code> variable
* </li>
* <li><b>KEY_INFO</b> - to get an exception from KEY_INFO message on the <code>A</code> property of
* the <code>o</code> variable</li>
* <li><b>READ</b> - to get an exception from READ message on the <code>A</code> property of the
* <code>o</code> variable</li>
* <li><b>WRITE</b> - to get an exception from WRITE message on the <code>A</code> property of the
* <code>o</code> variable</li>
* </ul>
*/
@SuppressWarnings("static-method")
public class TestDebugBuggyLanguage extends ProxyLanguage {
protected BiFunction<Node, Frame, Object> scopeProvider() {
return null;
}
protected final Object getDefaultScope(Node node, Frame frame, boolean enterNode) {
try {
return NodeLibrary.getUncached().getScope(((TestRootNode) node.getRootNode()).getDefaultScopeNode(), frame, enterNode);
} catch (UnsupportedMessageException e) {
throw CompilerDirectives.shouldNotReachHere(e);
}
}
@Override
protected final CallTarget parse(TruffleLanguage.ParsingRequest request) throws Exception {
return new TestRootNode(languageInstance, request.getSource(), scopeProvider()).getCallTarget();
}
@SuppressWarnings("static-method")
protected final void throwBug(Object value) {
if (value instanceof Integer) {
int v = (Integer) value;
throwBug(v);
}
}
@Override
protected Object getLanguageView(LanguageContext context, Object value) {
return new ProxyInteropObject.InteropWrapper(value) {
@Override
protected boolean hasLanguage() {
return true;
}
@Override
protected Class<? extends TruffleLanguage<?>> getLanguage() throws UnsupportedMessageException {
return ProxyLanguage.get(null).getClass();
}
@Override
protected boolean hasMetaObject() {
return true;
}
@Override
protected Object getMetaObject() throws UnsupportedMessageException {
return new MetaObject(delegate);
}
class MetaObject extends ProxyInteropObject.InteropWrapper {
MetaObject(Object v) {
super(v);
}
@Override
protected boolean isMetaObject() {
return true;
}
@Override
protected String getMetaSimpleName() throws UnsupportedMessageException {
return delegate.getClass().getSimpleName();
}
@Override
protected String getMetaQualifiedName() throws UnsupportedMessageException {
return delegate.getClass().getSimpleName();
}
@Override
protected Object toDisplayString(boolean allowSideEffects) {
return Objects.toString(delegate);
}
}
};
}
static void throwBug(int v) {
if (v == 1) {
throw new IllegalStateException(Integer.toString(v));
} else if (v == 2) {
throw new TestTruffleException();
} else if (v == 3) {
throw new AssertionError(v);
}
}
private static final class TestRootNode extends RootNode {
@Node.Child private TestStatementNode statement;
@Node.Child private TestStatementNode defaultScopeNode;
private final SourceSection statementSection;
TestRootNode(TruffleLanguage<?> language, com.oracle.truffle.api.source.Source source, BiFunction<Node, Frame, Object> scopeProvider) {
super(language);
statementSection = source.createSection(1);
statement = scopeProvider != null ? new TestStatementScopedNode(statementSection, scopeProvider) : new TestStatementNode(statementSection);
defaultScopeNode = new TestStatementNode(statementSection);
insert(statement);
}
Node getDefaultScopeNode() {
if (defaultScopeNode instanceof InstrumentableNode.WrapperNode) {
return ((InstrumentableNode.WrapperNode) defaultScopeNode).getDelegateNode();
}
return defaultScopeNode;
}
@Override
public String getName() {
String text = statementSection.getCharacters().toString();
if (text.startsWith("ROOT")) {
throwBug(Integer.parseInt(text.substring(4).trim()));
}
return text;
}
@Override
public SourceSection getSourceSection() {
return statementSection;
}
@Override
public Object execute(VirtualFrame frame) {
boundary(frame.materialize());
return statement.execute(frame);
}
@CompilerDirectives.TruffleBoundary
private void boundary(MaterializedFrame frame) {
int slot = frame.getFrameDescriptor().findOrAddAuxiliarySlot("a");
String text = statementSection.getCharacters().toString();
int index = 0;
while (!Character.isDigit(text.charAt(index))) {
index++;
}
int errNum = Integer.parseInt(text.substring(index));
frame.setAuxiliarySlot(slot, errNum);
TruffleObject obj = new ErrorObject(text.substring(0, index).trim(), errNum);
slot = frame.getFrameDescriptor().findOrAddAuxiliarySlot("o");
frame.setAuxiliarySlot(slot, obj);
}
@Override
protected boolean isInstrumentable() {
return true;
}
}
@GenerateWrapper
static class TestStatementNode extends Node implements InstrumentableNode {
private final SourceSection sourceSection;
TestStatementNode(SourceSection sourceSection) {
this.sourceSection = sourceSection;
}
@Override
public boolean isInstrumentable() {
return true;
}
@Override
public InstrumentableNode.WrapperNode createWrapper(ProbeNode probe) {
return new TestStatementNodeWrapper(sourceSection, this, probe);
}
public Object execute(VirtualFrame frame) {
assert frame != null;
return 10;
}
@Override
public SourceSection getSourceSection() {
String text = sourceSection.getCharacters().toString();
if (text.startsWith("Location Ex")) {
throwBug(Integer.parseInt(text.substring(8)));
}
return sourceSection;
}
@Override
public boolean hasTag(Class<? extends Tag> tag) {
return StandardTags.StatementTag.class.equals(tag);
}
}
@ExportLibrary(NodeLibrary.class)
static class TestStatementScopedNode extends TestStatementNode {
private final BiFunction<Node, Frame, Object> scopeProvider;
TestStatementScopedNode(SourceSection sourceSection, BiFunction<Node, Frame, Object> scopeProvider) {
super(sourceSection);
this.scopeProvider = scopeProvider;
}
@ExportMessage
boolean hasScope(@SuppressWarnings("unused") Frame frame) {
return scopeProvider != null;
}
@ExportMessage
final Object getScope(Frame frame, @SuppressWarnings("unused") boolean nodeEnter) throws UnsupportedMessageException {
if (scopeProvider != null) {
return scopeProvider.apply(this, frame);
} else {
throw UnsupportedMessageException.create();
}
}
}
@ExportLibrary(InteropLibrary.class)
static final class ErrorObject implements TruffleObject {
private final String error;
private final int errNum;
ErrorObject(String error, int errNum) {
this.error = error;
this.errNum = errNum;
}
@ExportMessage
boolean hasMembers() {
return true;
}
@ExportMessage
boolean isMemberInsertable(@SuppressWarnings("unused") String member) {
return false;
}
@ExportMessage
public Object getMembers(@SuppressWarnings("unused") boolean internal) {
if ("KEYS".equals(error)) {
throwBug(errNum);
}
return new Keys();
}
@ExportMessage
boolean isMemberModifiable(String member) {
if ("KEY_INFO".equals(error) && "A".equals(member)) {
throwBug(errNum);
}
return "A".equals(member) || "B".equals(member);
}
@ExportMessage
boolean isMemberReadable(String member) {
if ("KEY_INFO".equals(error) && "A".equals(member)) {
throwBug(errNum);
}
return "A".equals(member) || "B".equals(member);
}
@ExportMessage
public Object readMember(String key) throws UnknownIdentifierException {
if ("READ".equals(error) && "A".equals(key)) {
throwBug(errNum);
}
if ("A".equals(key)) {
return errNum;
} else if ("B".equals(key)) {
return 42;
} else {
throw UnknownIdentifierException.create(key);
}
}
@ExportMessage
public Object writeMember(String key, Object value) throws UnknownIdentifierException {
if ("WRITE".equals(error) && "A".equals(key)) {
throwBug(errNum);
}
if ("A".equals(key) || "B".equals(key)) {
return value;
} else {
throw UnknownIdentifierException.create(key);
}
}
@ExportMessage
public boolean isExecutable() {
if ("CAN_EXECUTE".equals(error)) {
throwBug(errNum);
}
return true;
}
@ExportMessage
public Object execute(@SuppressWarnings("unused") Object[] args) {
if ("EXECUTE".equals(error)) {
throwBug(errNum);
}
return 10;
}
@Override
public String toString() {
return "ErrorObject " + errNum + (error.isEmpty() ? "" : " " + error);
}
@ExportLibrary(InteropLibrary.class)
static class Keys implements TruffleObject {
@ExportMessage
public boolean hasArrayElements() {
return true;
}
@ExportMessage
public long getArraySize() {
return 2L;
}
@ExportMessage
public boolean isArrayElementReadable(long key) {
return key == 0 || key == 1;
}
@ExportMessage
public Object readArrayElement(long key) throws InvalidArrayIndexException {
if (key == 0) {
return "A";
} else if (key == 1) {
return "B";
} else {
throw InvalidArrayIndexException.create(key);
}
}
}
}
@ExportLibrary(InteropLibrary.class)
static final class TestTruffleException extends AbstractTruffleException {
private static final long serialVersionUID = 7653875618655878235L;
TestTruffleException() {
super("A TruffleException");
}
@Override
public String toString() {
return getMessage();
}
@ExportMessage
public boolean hasMetaObject() {
return true;
}
@ExportMessage
public Object getMetaObject() {
return new MetaObject();
}
@ExportMessage
Object toDisplayString(@SuppressWarnings("unused") boolean allowSideEffects) {
return getMessage();
}
@ExportLibrary(InteropLibrary.class)
static final class MetaObject implements TruffleObject {
@ExportMessage
boolean isMetaObject() {
return true;
}
@ExportMessage
String getMetaQualifiedName() {
return TestTruffleException.class.getName();
}
@ExportMessage
String getMetaSimpleName() {
return TestTruffleException.class.getSimpleName();
}
@ExportMessage
@SuppressWarnings("unused")
String toDisplayString(boolean allowSideEffects) {
return getMetaSimpleName();
}
@ExportMessage
boolean isMetaInstance(Object instance) {
return instance instanceof TestTruffleException;
}
}
}
}
```
|
J.N. College, Dhurwa, also known as Jagannath Nagar College, established in 1972, is a general degree college in Dhurwa, Ranchi. It offers undergraduate and postgraduate (Hindi, History
& Political Science) courses in arts, commerce and sciences. JNC is a constituent unit of Ranchi University.
See also
Education in India
Ranchi University
Ranchi
Literacy in India
List of institutions of higher education in Jharkhand
References
External links
Colleges affiliated to Ranchi University
Educational institutions established in 1972
Universities and colleges in Ranchi
Universities and colleges in Jharkhand
1972 establishments in Bihar
|
```go
//
//
// 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.
package prometheus
import (
// Bring in the internal plugin definitions.
_ "github.com/redpanda-data/connect/v4/internal/impl/prometheus"
)
```
|
Aqcheh Kand (, also Romanized as Āqcheh Kand, Āqcheh Kan, Āqjā Kand, Āqjeh Kand, and Ak-Dzhakand) is a village in Qaqazan-e Sharqi Rural District, in the Central District of Takestan County, Qazvin Province, Iran. At the 2006 census, its population was 238, in 61 families.
References
Populated places in Takestan County
|
Avy Kaufman is an American casting director for film and television.
Early life, family and education
Kaufman is from Atlanta. She relocated to New York City in 1976 to study ballet.
Career
Kaufman originally worked in casting for advertising at Foote,Cone & Belding (often print ads) for six years, then transitioned to feature films.
Since 1987, she has worked in casting more than 150 film and television productions. Kaufman has worked with directors including Steven Spielberg, Ang Lee and Wes Craven. Her casting credits include the psychological thriller film The Sixth Sense (1999), the romantic drama film Brokeback Mountain (2005) and the crime drama film Public Enemies (2009).
Accolades
Kaufman received the 2005 Hollywood Casting Director of the Year award given by the Hollywood Film Festival.
She received a 2008 Primetime Emmy Award for Outstanding Casting for a Drama Series for her work on Damages: Season 1 and in 2020 & 2022 for Primetime Emmy Award for Outstanding Casting for a Drama Series for Succession: Seasons 2-3. She had earlier been nominated for a Primetime Emmy Award for Outstanding Casting for a Miniseries, Movie, or a Special for her work on the romance drama television miniseries Empire Falls.
Kaufman has been nominated for eighteen Artios Awards, and has won three.
Filmography
Television
See also
List of people from New York City
References
External links
Year of birth missing (living people)
Place of birth missing (living people)
20th-century births
American casting directors
Women casting directors
Living people
People from New York City
Primetime Emmy Award winners
|
```java
/*
*
* All rights reserved. This program and the accompanying materials
*
* path_to_url
*/
package org.locationtech.jts.operation.union;
import org.locationtech.jts.geom.Geometry;
import junit.textui.TestRunner;
import test.jts.GeometryTestCase;
public class SparsePolygonUnionTest extends GeometryTestCase {
public static void main(String args[]) {
TestRunner.run(SparsePolygonUnionTest.class);
}
public SparsePolygonUnionTest(String name) {
super(name);
}
public void testSimple() {
check(
"MULTIPOLYGON (((10 20, 20 20, 20 10, 10 10, 10 20)), ((30 10, 20 10, 20 20, 30 20, 30 10)))",
"POLYGON ((10 20, 20 20, 30 20, 30 10, 20 10, 10 10, 10 20))");
}
public void testSimple3() {
check(
"MULTIPOLYGON (((10 20, 20 20, 20 10, 10 10, 10 20)), ((30 10, 20 10, 20 20, 30 20, 30 10)), ((25 30, 30 30, 30 20, 25 20, 25 30)))",
"POLYGON ((10 10, 10 20, 20 20, 25 20, 25 30, 30 30, 30 20, 30 10, 20 10, 10 10))");
}
public void testDisjoint() {
check(
"MULTIPOLYGON (((10 20, 20 20, 20 10, 10 10, 10 20)), ((30 20, 40 20, 40 10, 30 10, 30 20)))",
"MULTIPOLYGON (((10 20, 20 20, 20 10, 10 10, 10 20)), ((30 20, 40 20, 40 10, 30 10, 30 20)))");
}
private void check(String wkt, String wktExpected) {
Geometry geom = read(wkt);
Geometry result = SparsePolygonUnion.union(geom);
Geometry expected = read(wktExpected);
checkEqual(expected, result);
System.out.println(result);
}
}
```
|
Raoiella indica, commonly known as the red palm mite, is a species of mite belonging to the family Tenuipalpidae. A pest of several species of palm in the Middle East and South East Asia, it is now becoming established throughout the Caribbean. The invasion of this species is the biggest mite explosion ever observed in the Americas.
Distribution
This species is indigenous to Egypt, India, Iran, Israel, Mauritius, Oman, Pakistan, Philippines, Réunion, Saudi Arabia, Sri Lanka, Sudan, Thailand and the United Arab Emirates.
It is considered an invasive species in Dominican Republic, Guadeloupe, Puerto Rico, Saint Martin, Trinidad and Tobago, the US Virgin Islands, Grenada, Haiti and Jamaica.
In 2007, the red palm mite was discovered in Florida. As of April, 2009, this pest has been found at almost 400 sites in five counties there.
Description
This species can be distinguished from most other mites by its colour, flat body, long spatulate setae, and droplets on the dorsal body setae. There is also a noticeable absence of the webbing associated with numerous other spider mites.
The red palm mite has a long, bright red, spatulate body. During all stages of life, this species is red, with adult females often showing black patches on their backs after feeding.
Red palm mite eggs are 0.12 mm long and 0.09 wide. The eggs are smooth and can be found in groups attached to the underside of leaves.
Larvae are 0.18–.020 mm in length and only have three pairs of legs. Nymphs are 0.18–0.25 mm long.
Adults are approximately 0.32 mm long. Females are larger than males and have a triangular body.
Life cycle
The egg stage ranges from 6 to 9 days. Development from egg to adult ranges from 23 to 28 days for females, and 20 to 22 days for males. The red palm mite lives for about 26 days.
Hosts
This mite has been found on 32 different palm species. In the Caribbean, this species also infests banana plants, heliconias and gingers.
Survey, detection and damage
The red palm mite forms colonies on the undersides of leaves. There, they feed on the contents of the cells of the leaves. This feeding can cause localized yellowing of the leaves.
Adults are usually visible to the naked eye.
Dispersal
Like most other plant feeding mites, this species disperses on the wind. Tropical storms and hurricanes can distribute this mite over wide areas.
Management
Chemical control is considered impractical due to the large size of most palms. Some biological control agents have proven useful in the Eastern Hemisphere, including predatory mites, beetles, lacewings and other mite predators.
See also
Invasive species
Parasite
Notes
References
Further reading
CariPestNet. 2006. Raoiella indica Hirst (Red Palm Mite)
Etienne, J. and C.H.W. Flechtmann. 2006. First record of Raoiella indica (Hirst, 1924) (Acari: Tenuipalpidae) in Guadeloupe and Saint Martin, West Indies. International Journal of Acarology, 32(3): 331–332.
Flechtmann, C.H.W. and J. Etienne. 2004. The red palm mite, Raoiella indica Hirst, a threat to palms in the Americas (Acari: Prostigmata: Tenuipalpidae). Systematic & Applied Acarology, 9: 109–110.
Flechtmann, C.H.W. and J. Etienne. 2005. Un nouvel acarien ravageur des palmiers. Phytoma 584: 10–11.
Gerson, U., A. Venezian & D. Blumberg. 1983. Phytophagous mites on date palms in Israel. Fruits, 38(2),133–135.
Gutiérrez, B., N. Nohelia & A. Garcia. 2007. Situación actual del cocotero in al municipio Valdez del estado Sucre.
Hirst, S. 1924. On some new species of red spider. Annals and Magazine of Natural History, Set. 9, vol. 14: 522–527.
Hoy, M.A., J. Peña and R. Nguyen. 2006. Red palm mite, Raoiella indica Hirst (Arácnida: Acari: Tenuipalpidae). University of Florida IFAS Extension.
Kane, E.C., R. Ochoa, G. Mathurin, and E.F. Erbe. 2005. indica-Kane_et_al.pdf Raoiella indica Hirst (Acari: Tenuipalpidae): An island-hopping mite pest in the Caribbean. Entomological Society of America, Annual Meeting, Florida poster.
Kane, E., and R. Ochoa. 2006. Detection and identification of the red palm mite Raoiella indica Hirst (Acari: Tenuipalpidae). USDA, ARS, Beltsville, MD, 6 pp.
Mendonga, R.S., D. Navia, and C.H.W. Flechtmann. 2006. Raoiella indica Hirst (Prostigmata: Tenuipalpidae), o ácaro vermelho das palmeiras - uma ameaça para as Américas. Brasilia: Embrapa Recursos Geneticos e Biotecnologia (Portuguese).
Nageshachandra, B.K. and G.P. Channabasavanna. 1984. Development and ecology of Raoiella indica Hirst (Acari: Tenuipalpidae) on coconut. Griffiths, D. A. & Bowman, C.E. (eds.), Acarology VI. 2: 785–790.
Pena, J.E., C.M. Mannion, F.W. Howard and M.A. Hoy. 2006. Raoiella indica (Prostigmata: Tenuipalpidae): The red palm mite: A potential invasive pest of palms and Bananas and other tropical crops in Florida. University of Florida IFAS Extension, ENY-837.
Rodrigues, J. C.V., R. Ochoa and E. Kane. 2007. First report of Raoiella indica Hirst (Acari: Tenuipalpidae) and its damage to coconut palms in Puerto Rico and Culebra Islands. International Journal of Acarology, 33(1): 3–5.
Florida Department of Agriculture red palm mite updates
External links
Trombidiformes
Animals described in 1924
Arachnids of Asia
|
Members of the Organo Anion Transporter (OAT) Family (organic-anion-transporting polypeptides, OATP) are membrane transport proteins or 'transporters' that mediate the transport of mainly organic anions across the cell membrane. Therefore, OATPs are present in the lipid bilayer of the cell membrane, acting as the cell's gatekeepers. OATPs belong to the Solute Carrier Family (SLC) and the major facilitator superfamily.
The generalized transport reactions catalyzed by members of the OAT family are:
Anion (in) → Anion (out)
Anion1 (in) + Anion2 (out) → Anion1 (out) + Anion2 (in)
Function
Proteins of the OAT family catalyze the Na+-independent facilitated transport of fairly large amphipathic organic anions (and less frequently neutral or cationic drugs), such as bromosulfobromophthalein, prostaglandins, conjugated and unconjugated bile acids (taurocholate and cholate), steroid conjugates, thyroid hormones, anionic oligopeptides, drugs, toxins and other xenobiotics. One family member, OATP2B1, has been shown to use cytoplasmic glutamate as the exchanging anion. Among the well characterized substrates are numerous drugs including statins, angiotensin-converting enzyme inhibitors, angiotensin receptor blockers, antibiotics, antihistaminics, antihypertensives and anticancer drugs. Other substrates include luciferin, thyroid hormones and quinolones.
Organic anion transporting polypeptides carry bile acids as well as bilirubin and numerous hormones such as thyroid and steroid hormones across the basolateral membrane (facing sinusoids) in hepatocytes, for excretion in bile. As well as expression in the liver, OATPs are expressed in many other tissues on basolateral and apical membranes, transporting anions, as well as neutral and even cationic compounds. They also transport an extremely diverse range of drug compounds, ranging from anti-cancer, antibiotic, lipid lowering to anti-diabetic drugs, as well as toxins and poisons.
Various anti-cancer drugs like pazopanib, vandetanib, nilotinib, canertinib and erlotinib are known to be transported via OATPs (OATP-1B1 and OATP-1B3). Some of these have also been reported as inhibitors of certain OATPs: pazopanib and nilotinib against OATP-1B1 and vandetanib against OATP-1B3.
They also transport the dye bromosulphopthalein, availing it as a liver-testing substance.
Homology
The various paralogues in a mammal have differing but overlapping substrate specificities and tissue distributions as summarized by Hagenbuch and Meier. These authors also provide a phylogenetic tree of the mammalian members of the family, showing that they fall into five recognizable subfamilies, four of which exhibit deep branching sub-subfamilies. However, all sequences within a subfamily are >60% identical while those between subfamilies are >40% identical. As also shown by Hagenbuch and Meier, all but one (OatP4a1) of the mammalian homologues cluster together, separately from all other animal (insect and worm) homologues.
OAT family homologues have been found in other animals but not outside of the animal kingdom. These transporters have been characterized in mammals, but homologues are present in Drosophila melanogaster, Anopheles gambiae, and Caenorhabditis elegans. The mammalian OAT family proteins exhibit a high degree of tissue specificity.
Human proteins
The table below shows the 11 known human OATPs. Note: Human OATPs are designated with capital letters, animal Oatps are designated with lower class letters. The 'SLCO' stands for their gene name; 'solute carrier organic anion.' Previous nomenclature using letters and numbers (e.g. OATP-A, OATP-8 is no longer correct.
The most well characterised human OATPs are OATP1A2, OATP1B1, OATP1B3 and OATP2B1. Very little is known about the function and characteristics of OATP5A1 and OATP6A1.
Pharmacology
The OATPs play a role in the transport of some classes of drugs across the cell membrane, particularly in the liver and kidney. In the liver, OATPs are expressed on the basolateral membrane of hepatocytes, transporting compounds into the hepatocyte for biotransformation. A number of drug-drug interactions have been associated with the OATPs, affecting the pharmacokinetics and pharmacodynamics of drugs. This is most commonly where one drug inhibits the transport of another drug into the hepatocyte, so that it is retained longer in the body (i.e. increased plasma half-life). The OATPs most associated with these interactions are OATP1B1, OATP1B3 and OATP2B1, which are all present on the hepatocyte basolateral (sinusoidal) membrane. OATP1B1 and OATP1B3 are known to play an important role in hepatic drug disposition. These OATPs contribute towards first step of hepatic accumulation and can influence the disposition of drug via hepatic route. The most clinically relevant interactions have been associated with the lipid lowering drugs statins, which led to the removal of cerivastatin from the market in 2002. Single nucleotide polymorphisms (SNPs) are also associated with the OATPs; particularly OATP1B1.
Many modulators of OATP function have been identified based on in vitro research in OATP-transfected cell lines. Both OATP activation and inhibition has been observed and an in silico model for structure-based identification of OATP modulation was developed.
Since tyrosine kinase inhibitors (TKIs) are metabolized in the liver, interaction of TKIs with OATP1B1 and OATP1B3 can be considered as important molecular targets for transporter mediated drug-drug interactions.
Along with the organic cation transporters and the ATP-binding cassette transporters, the OATPs play an important role in the absorption, distribution, metabolism and excretion (ADME) of many drugs.
Evolution
OATPs are present in many animals, including fruit flies, zebrafish, dogs, cows, rats, mice, monkeys and horses. OATPs are not present in bacteria, indicating their evolution from the animal kingdom. However homologs do not correlate well with the human OATPs and therefore it is likely that isoforms arose by gene duplication. OATPs have however been found in insects, suggesting that their evolution was early in the formation of the animal kingdom.
References
Solute carrier family
Protein families
Membrane proteins
Transmembrane proteins
Transmembrane transporters
Transport proteins
Integral membrane proteins
|
Derrick's theorem is an argument by physicist G. H. Derrick
which shows that stationary localized solutions to a nonlinear wave equation
or nonlinear Klein–Gordon equation
in spatial dimensions three and higher are unstable.
Original argument
Derrick's paper,
which was considered an obstacle to
interpreting soliton-like solutions as particles,
contained the following physical argument
about non-existence of stable localized stationary solutions
to the nonlinear wave equation
now known under the name of Derrick's Theorem. (Above, is a differentiable function with .)
The energy of the time-independent solution is given by
A necessary condition for the solution to be stable is . Suppose is a localized solution of . Define where is an arbitrary constant, and write , . Then
Whence
and since ,
That is, for a variation corresponding to
a uniform stretching of the particle.
Hence the solution is unstable.
Derrick's argument works for , .
Pokhozhaev's identity
More generally,
let be continuous, with .
Denote .
Let
be a solution to the equation
,
in the sense of distributions.
Then satisfies the relation
known as Pokhozhaev's identity (sometimes spelled as Pohozaev's identity).
This result is similar to the virial theorem.
Interpretation in the Hamiltonian form
We may write the equation
in the Hamiltonian form
,
,
where are functions of ,
the Hamilton function is given by
and ,
are the
variational derivatives of .
Then the stationary solution
has the energy
and
satisfies the equation
with
denoting a variational derivative
of the functional
.
Although the solution
is a critical point of (since ),
Derrick's argument shows that
at ,
hence
is not a point of the local minimum of the energy functional .
Therefore, physically, the solution is expected to be unstable.
A related result, showing non-minimization of the energy of localized stationary states
(with the argument also written for , although the derivation being valid in dimensions ) was obtained by R. H. Hobart in 1963.
Relation to linear instability
A stronger statement, linear (or exponential) instability of localized stationary solutions
to the nonlinear wave equation (in any spatial dimension) is proved
by P. Karageorgis and W. A. Strauss in 2007.
Stability of localized time-periodic solutions
Derrick describes some possible ways out of this difficulty, including the conjecture that Elementary particles might correspond to stable, localized solutions which are periodic in time, rather than time-independent.
Indeed, it was later shown that a time-periodic solitary wave with frequency may be orbitally stable if the Vakhitov–Kolokolov stability criterion is satisfied.
See also
Orbital stability
Pokhozhaev's identity
Vakhitov–Kolokolov stability criterion
Virial theorem
References
Stability theory
Solitons
|
```php
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Authors:
* - IBM Globalization Center of Competency, Yamato Software Laboratory bug-glibc-locales@gnu.org
*/
return array_replace_recursive(require __DIR__.'/zh.php', [
'formats' => [
'L' => 'YYYYMMDD',
],
'months' => ['', '', '', '', '', '', '', '', '', '', '', ''],
'months_short' => ['', '', '', '', '', '', '', '', '', '', '', ''],
'weekdays' => ['', '', '', '', '', '', ''],
'weekdays_short' => ['', '', '', '', '', '', ''],
'weekdays_min' => ['', '', '', '', '', '', ''],
'day_of_first_week_of_year' => 1,
]);
```
|
Antiochus or Antioch Kantemir or Cantemir (, Antiokh Dmitrievich Kantemir; ; ; ; 8 September 1708 – 31 March 1744) was a Moldavian who served as a man of letters, diplomat, and prince during the Russian Enlightenment. He has been called "the father of Russian poetry".
Life
Kantemir was born into a noble Moldavian family at Iași on 8 September 1708. His illiterate grandfather Constantin had been made voivode of Moldavia by the Ottomans in 1685 and was succeeded by his well-educated sons Antioch and Demetrius. Kantemir was the son of Demetrius by his wife, Princess Kassandra Cantacuzene, who claimed descent from the Byzantine dynasty of the same name. He spent much of his youth in Constantinople as a hostage to the Turks. He was then educated by his father and at the St Petersburg Academy before moving to the family estate near Dmitrovsk.
He served as the Russian ambassador at London from 1731 to 1736, when he was relocated to Paris to serve as Russia's minister plenipotentiary to the Kingdom of France. There, he became a noted intellectual and a close friend of Montesquieu and Voltaire. Kantemir died a bachelor in Paris amid litigation concerning his illegitimate children.
Work
Considered "the father of Russian poetry", Kantemir used his classical education to assist Peter the Great's programme of modernizing and westernizing Russian culture. His most noticeable effort in this regard is his Petrida, an unfinished epic glorifying the emperor. He produced a tract on old Russian versification in 1744 and numerous odes and fables. His use of gallic rhyme schemes can make his work seem antiquated and awkward to modern readers.
He edited his father's History of the Growth and Decay of the Ottoman Empire in England and wrote a biography and bibliography of his father which later accompanied its 1756 edition. His 1742 Letters on Nature and Man (O Prirode i Cheloveke) was a philosophical work. He is best remembered for his satires in the manner of Juvenal, including To My Mind: On Those Who Blame Education and On the Envy and Pride of Evil-Minded Courtiers, which were among the first such works in the Russian language.
Kantemir translated Horace and Anacreon into Russian, as well as Algarotti's Dialogues on Light and Colors.
He also translated De Fontenelle's Conversations on the Plurality of Worlds, in 1730. When Kantemir's teacher, Christopher Gross, asked the academy to publish the translation, the responsible manager of the chancellery, Johann Daniel Schumacher, wanted to first get permission from the government and the Holy Synod.
Correspondence regarding the matter dragged on until 1738, when permission to publish was finally given, but the book was not published until 1740.
Kantemir's own works were translated into French by the Abbé Guasco, who also penned his biography.
Notes
References
.
External links
A collection of Kantemir's poetry
The ancestors Prince Antiokh Dmitrievich Kantemir
1708 births
1744 deaths
Saint Petersburg State University alumni
Antiochus
Enlightenment philosophers
Writers from Iași
Diplomats of the Russian Empire
Essayists from the Russian Empire
Male essayists
Russian literary critics
Russian philosophers
Male poets from the Russian Empire
Male writers from the Russian Empire
Russian male poets
Translators from the Russian Empire
18th-century Romanian people
Russian people of Romanian descent
Russian people of Crimean Tatar descent
Russian people of Greek descent
Ambassadors of the Russian Empire to France
Ambassadors of the Russian Empire to the United Kingdom
18th-century translators from the Russian Empire
|
Nelson James Dunford (December 12, 1906 – September 7, 1986) was an American mathematician, known for his work in functional analysis, namely integration of vector valued functions, ergodic theory, and linear operators. The Dunford decomposition, Dunford–Pettis property, and Dunford-Schwartz theorem bear his name.
He studied mathematics at the University of Chicago and obtained his Ph.D. in 1936 at Brown University under Jacob Tamarkin. He moved in 1939 to Yale University, where he remained until his retirement in 1960.
In 1981, he was awarded jointly with Jacob T. Schwartz, his Ph.D. student, the well-known Leroy P. Steele Prize of the American Mathematical Society for the three-volume work Linear operators.
Nelson Dunford was coeditor of Transactions of the American Mathematical Society (1941–1945) and Mathematical Surveys and Monographs (1945–1949).
Publications
Nelson Dunford, Jacob T. Schwartz, Linear Operators, Part I General Theory , Part II Spectral Theory, Self Adjoint Operators in Hilbert Space , Part III Spectral Operators
References
Obituary in Notices Amer. Math. Soc., Vol. 34, 1987, p. 287
External links
1906 births
1986 deaths
People from St. Louis
Mathematicians from Missouri
20th-century American mathematicians
Brown University alumni
Yale University faculty
Operator theorists
University of Chicago alumni
|
```javascript
1_1._1_1
```
|
Bishop Anton Jamnik (born 27 July 1961) is a Slovenian Roman Catholic prelate who serves as a Titular Bishop of Vina and Auxiliary Bishop of Archdiocese of Ljubljana since 15 November 2005.
Education
Bishop Jamnik was born into a Roman Catholic family in the capital of Slovenia, but spent his childhood in a peasant family in the village of Videm, Dobrepolje of the historical region of Lower Carniola.
After finishing primary school in Grosuplje in 1976, Anton graduated a Josip Jurčič Gymnasium in Stična with the secondary education during 1976–1980 and also served his compulsory military service in the Yugoslav Army (1980–1981). After that, he joined to the Major Theological Seminary in Ljubljana and in the same time joined the Theological Faculty at the University of Ljubljana, where he studied six years (1981–1987) and was ordained as a priest on 29 June 1985 by archbishop Alojzij Šuštar for his native Archdiocese of Ljubljana.
Pastoral and educational work
After his ordination Fr. Jamnik was engaged in pastoral work and served as priest in Kočevje parish from 1987 until 1990, and from 1990 to 1994 he was a personal assistant of the Archbishop of Ljubljana.
During this time he continued his master's studies at the Department of Philosophy of the Faculty of Theology, University of Ljubljana, and in 1993 he defended his master's thesis. In 1994 he was appointed an assistant at the Department of Philosophy of the Faculty of Theology. In the same year he moved to the Institute of St. Stanislav, where he taught religion and later philosophy at the Diocesan Classical Gymnasium. He continued his doctoral studies and completed his studies with a Doctor of Philosophy degree in 1997. Since 1997 he has been an assistant professor of philosophy at the Faculty of Theology, University of Ljubljana, and in 2012 he was elected and appointed associate professor of philosophy at the Faculty of Theology, University of Ljubljana.
Prelate
On 15 November 2005 he was appointed by Pope Benedict XVI as the Titular Bishop of Vina and Auxiliary Bishop of the Archdiocese of Ljubljana. On 8 January 2006 Fr. Jamnik was consecrated as bishop by Archbishop of Ljubljana Alojz Uran and other prelates of the Roman Catholic Church in the Cathedral of St. Nicholas in Ljubljana.
References
1961 births
Living people
Roman Catholic bishops of Ljubljana
University of Ljubljana alumni
Academic staff of the University of Ljubljana
20th-century Slovenian philosophers
21st-century Roman Catholic bishops in Slovenia
Bishops appointed by Pope Benedict XVI
21st-century Slovenian philosophers
|
```go
package trust
import (
"io/ioutil"
"testing"
"github.com/docker/cli/internal/test"
notaryfake "github.com/docker/cli/internal/test/notary"
"github.com/theupdateframework/notary/client"
"github.com/theupdateframework/notary/tuf/data"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
)
func TestTrustSignerRemoveErrors(t *testing.T) {
testCases := []struct {
name string
args []string
expectedError string
}{
{
name: "not-enough-args-0",
expectedError: "requires at least 2 arguments",
},
{
name: "not-enough-args-1",
args: []string{"user"},
expectedError: "requires at least 2 arguments",
},
}
for _, tc := range testCases {
cmd := newSignerRemoveCommand(
test.NewFakeCli(&fakeClient{}))
cmd.SetArgs(tc.args)
cmd.SetOutput(ioutil.Discard)
assert.ErrorContains(t, cmd.Execute(), tc.expectedError)
}
testCasesWithOutput := []struct {
name string
args []string
expectedError string
}{
{
name: "not-an-image",
args: []string{"user", "notanimage"},
expectedError: "error retrieving signers for notanimage",
},
{
name: "sha-reference",
args: []string{"user", your_sha256_hash},
expectedError: "invalid repository name",
},
{
name: "invalid-img-reference",
args: []string{"user", "ALPINE"},
expectedError: "invalid reference format",
},
}
for _, tc := range testCasesWithOutput {
cli := test.NewFakeCli(&fakeClient{})
cli.SetNotaryClient(notaryfake.GetOfflineNotaryRepository)
cmd := newSignerRemoveCommand(cli)
cmd.SetArgs(tc.args)
cmd.SetOutput(ioutil.Discard)
cmd.Execute()
assert.Check(t, is.Contains(cli.ErrBuffer().String(), tc.expectedError))
}
}
func TestRemoveSingleSigner(t *testing.T) {
cli := test.NewFakeCli(&fakeClient{})
cli.SetNotaryClient(notaryfake.GetLoadedNotaryRepository)
removed, err := removeSingleSigner(cli, "signed-repo", "test", true)
assert.Error(t, err, "No signer test for repository signed-repo")
assert.Equal(t, removed, false, "No signer should be removed")
removed, err = removeSingleSigner(cli, "signed-repo", "releases", true)
assert.Error(t, err, "releases is a reserved keyword and cannot be removed")
assert.Equal(t, removed, false, "No signer should be removed")
}
func TestRemoveMultipleSigners(t *testing.T) {
cli := test.NewFakeCli(&fakeClient{})
cli.SetNotaryClient(notaryfake.GetLoadedNotaryRepository)
err := removeSigner(cli, signerRemoveOptions{signer: "test", repos: []string{"signed-repo", "signed-repo"}, forceYes: true})
assert.Error(t, err, "Error removing signer from: signed-repo, signed-repo")
assert.Check(t, is.Contains(cli.ErrBuffer().String(),
"No signer test for repository signed-repo"))
assert.Check(t, is.Contains(cli.OutBuffer().String(), "Removing signer \"test\" from signed-repo...\n"))
}
func TestRemoveLastSignerWarning(t *testing.T) {
cli := test.NewFakeCli(&fakeClient{})
cli.SetNotaryClient(notaryfake.GetLoadedNotaryRepository)
err := removeSigner(cli, signerRemoveOptions{signer: "alice", repos: []string{"signed-repo"}, forceYes: false})
assert.NilError(t, err)
assert.Check(t, is.Contains(cli.OutBuffer().String(),
"The signer \"alice\" signed the last released version of signed-repo. "+
"Removing this signer will make signed-repo unpullable. "+
"Are you sure you want to continue? [y/N]"))
}
func TestIsLastSignerForReleases(t *testing.T) {
role := data.Role{}
releaserole := client.RoleWithSignatures{}
releaserole.Name = releasesRoleTUFName
releaserole.Threshold = 1
allrole := []client.RoleWithSignatures{releaserole}
lastsigner, _ := isLastSignerForReleases(role, allrole)
assert.Check(t, is.Equal(false, lastsigner))
role.KeyIDs = []string{"deadbeef"}
sig := data.Signature{}
sig.KeyID = "deadbeef"
releaserole.Signatures = []data.Signature{sig}
releaserole.Threshold = 1
allrole = []client.RoleWithSignatures{releaserole}
lastsigner, _ = isLastSignerForReleases(role, allrole)
assert.Check(t, is.Equal(true, lastsigner))
sig.KeyID = "8badf00d"
releaserole.Signatures = []data.Signature{sig}
releaserole.Threshold = 1
allrole = []client.RoleWithSignatures{releaserole}
lastsigner, _ = isLastSignerForReleases(role, allrole)
assert.Check(t, is.Equal(false, lastsigner))
}
```
|
```objective-c
#pragma once
#include <complex>
#include <type_traits>
#include <c10/core/ScalarType.h>
#include <ATen/detail/FunctionTraits.h>
#include <ATen/native/TensorIterator.h>
// This file includes utilities for dynamic_casting done by TensorIterator, see CUDALoops.cuh and Loops.h.
// dynamic_casting handles when the types expected by the iterator do not match the types of the arguments
// to the function that is being called.
// On CUDA, the cast is currently pushed down into the kernel (for performance reasons).
// On CPU, there is currently an internal assert that a dynamic_cast is not needed.
namespace at::native {
// `needs_dynamic_casting` compares the types expected by iterator
// (i.e. dtypes of the operands) with the actual type of the arguments
// (and returns) of func_t
template<typename func_t, int nargs=function_traits<func_t>::arity>
struct needs_dynamic_casting {
static bool check(TensorIteratorBase& iter) {
using traits = function_traits<func_t>;
using cpp_type = typename traits::template arg<nargs - 1>::type;
using cpp_map = c10::CppTypeToScalarType<cpp_type>;
if (iter.input_dtype(nargs-1) != cpp_map::value) {
return true;
}
return needs_dynamic_casting<func_t, nargs - 1>::check(iter);
}
};
template<typename func_t>
struct needs_dynamic_casting<func_t, 0> {
static bool check(TensorIteratorBase& iter) {
using traits = function_traits<func_t>;
using cpp_type = typename traits::result_type;
// we could assert output numbers are correct here, but checks
// (including arity) are currently pushed outside of this struct.
if constexpr (std::is_void_v<cpp_type>) {
return false;
} else {
return iter.dtype(0) != c10::CppTypeToScalarType<cpp_type>::value;
}
}
};
} //namespace at::native
```
|
Wijilawarrim (also referred to as Molly Springs) is a small Aboriginal community, located proximate to Kununurra in the Kimberley region of Western Australia, within the Shire of Wyndham-East Kimberley.
Native title
The Miriuwung Gajerrong people are signatories to the Ord Final Agreement, a broad package of measures which implements a platform for future partnerships between the Miriuwung Gajerrong people, WA State Government, industry and developers for the benefit of the wider community and the East Kimberley region.
Governance
At a broader governance level, Yawoorroong Miriuwung Gajerrong Yirrgeb Noong Dawang Aboriginal Corporation (MG Corp) acts in trust on behalf of all MG native title holders to ensure compliance with its obligations under the Ord Final Agreement including those relating to community living areas.
MG Corp was incorporated under the Corporations (Aboriginal and Torres Strait Islander) Act 2006 in 2006 and its constitution was subsequently amended in 2008.
Town planning
Wijilawarrim Layout Plan No.1 has been prepared in accordance with State Planning Policy 3.2 Aboriginal Settlements. Layout Plan No.1 was endorsed by the community on 16 November 2010 and the Western Australian Planning Commission on 29 September 2010.
Notes
Towns in Western Australia
Aboriginal communities in Kimberley (Western Australia)
|
```shell
#!/bin/bash
#your_sha256_hash---------------------------------------
#your_sha256_hash---------------------------------------
PRINT_USAGE() {
echo "Build RecyclerChecker clang plugin"
echo ""
echo "build.sh [options]"
echo ""
echo "options:"
echo " -h, --help Show help"
echo " --clang-inc=PATH clang development include path"
echo " --cxx=PATH Path to c++ compiler"
echo " --llvm-config=PATH llvm-config executable"
echo ""
}
pushd `dirname $0` > /dev/null
SCRIPT_DIR=`pwd -P`
popd > /dev/null
CLANG_INC=
CXX_COMPILER=
LLVM_CONFIG=
while [[ $# -gt 0 ]]; do
case "$1" in
--clang-inc=*)
CLANG_INC=$1
CLANG_INC="${CLANG_INC:12}"
;;
--cxx=*)
CXX_COMPILER=$1
CXX_COMPILER=${CXX_COMPILER:6}
;;
-h | --help)
PRINT_USAGE && exit
;;
--llvm-config=*)
LLVM_CONFIG=$1
LLVM_CONFIG="${LLVM_CONFIG:14}"
;;
*)
echo "Unknown option $1"
PRINT_USAGE
exit -1
;;
esac
shift
done
if [[ $CLANG_INC ]]; then
echo "CLANG_INCLUDE_DIRS: $CLANG_INC"
CLANG_INC="-DCLANG_INCLUDE_DIRS:STRING=$CLANG_INC"
fi
if [[ $CXX_COMPILER ]]; then
echo "CXX_COMPILER: $CXX_COMPILER"
CXX_COMPILER="-DCMAKE_CXX_COMPILER=$CXX_COMPILER"
fi
if [[ $LLVM_CONFIG ]]; then
echo "LLVM_CONFIG: $LLVM_CONFIG"
LLVM_CONFIG="-DLLVM_CONFIG_EXECUTABLE:STRING=$LLVM_CONFIG"
fi
BUILD_DIR="$SCRIPT_DIR/Build"
mkdir -p $BUILD_DIR
pushd $BUILD_DIR > /dev/null
cmake \
$CLANG_INC \
$CXX_COMPILER \
$LLVM_CONFIG \
.. \
&& make
_RET=$?
popd > /dev/null
exit $_RET
```
|
Quickline (also known as Signature Service) is a bus rapid transit service owned and operated by the Metropolitan Transit Authority of Harris County (METRO). The Quickline service began on June 1, 2009 with the 402 route (also called the QL2 route), which supplements the 2-Bellaire route, which was the most heavily used bus route in the METRO system, with that title now belonging to the 82-Westheimer. Both routes run along Bellaire Boulevard.
System features
The Quickline system features upgraded buses, fewer stops, and more modern and comfortable bus stops. The bus stops resemble those featured along the METRORail Red Line, with announced arrival times for upcoming buses based on GPS tracking systems. In addition, the buses are equipped with control devices that will interact with the traffic signal system at intersections to allow the buses to have priority movement along the route. The service uses 40-ft long hybrid-electric buses, purchased from New Flyer Corporation, that provide on-board security cameras, more comfortable seating, a quieter interior and a significant amount of passenger information to be provided at the stops along the route. To help distinguish the service from regular METRO buses, the Quickline buses have a distinctive blue bus wrap on the exterior with the "Quickline" insignia and route map applied.
402 QL Bellaire
This route is the first of many Quickline bus routes planned by METRO. The QL 402 route only operates during peak traffic hours in the mornings and afternoons, on 15-minute intervals, Monday through Friday; it has now been expanded to include midday service. The 9-mile route only uses 8 stops on the 2-Bellaire route, facilitating significant time savings from the west side of Houston to the Texas Medical Center. In addition, these 8 stops were selected so that transfers to existing METRO local service bus routes could be performed more efficiently. The estimated length of the trip from Ranchester Station to the TMC Transit Center Station is 38 minutes.
Stations
The following is a list of stations and connections for the 402 Quickline, listed in order from west to east. Frequent bus service bolded.
Future expansion
Before breaking ground on any future Quickline routes, METRO has pledged to grade the ridership of the QL2 route. In addition, the transportation agency will survey passengers periodically to gain their opinion of the service and will monitor ridership as a measure of success. Since then, METRO has stated that Quickline routes could potentially be implemented on other heavily used routes planned around Houston, such as Westheimer, Airline, Beechnut, Antoine and Gessner.
References
Metropolitan Transit Authority of Harris County
Bus rapid transit in Texas
|
```shell
Subdirectory checkout
Workflow: topic branches
What is rebasing?
Checkout the previous branch
Cherry-pick a commit
```
|
```java
package com.ctrip.xpipe.lifecycle;
import com.ctrip.xpipe.api.lifecycle.Ordered;
import java.util.Comparator;
/**
* @author wenchao.meng
*
* Aug 22, 2016
*/
public class OrderedComparator implements Comparator<Ordered> {
@Override
public int compare(Ordered o1, Ordered o2) {
return (o1.getOrder() < o2.getOrder()) ? -1 : (o1.getOrder() == o2.getOrder() ? 0 : 1);
}
}
```
|
Hari Jiwan Singh Khalsa is a prominent American Sikh. He is Chief of Protocol for the American Sikh group called Sikh Dharma.
Early years
Khalsa (born Stephen Oxenhandler) was born September 29, 1942, in St. Louis, Missouri, to a well-to-do real estate development family. He was raised in a reformed Jewish community with whom he spent his youth between St. Louis and Palm Springs, California.
Career
In connection with one enterprise, Sweet Song Corporation, Khalsa and his associates were sued by the FTC for falsely representing the value of gemstone investments, and were subsequently barred from engaging in any business related to collectibles investments. In 2000, Hari Jiwan spent 18 months in federal prison for his involvement in the telemarketing scam.
References
American Sikhs
Living people
People from St. Louis
Year of birth missing (living people)
https://www.ftc.gov/sites/default/files/documents/cases/1998/08/final_or.010.htm
|
Andrey Sergeyevich Nikitin (; born 26 November 1979) is a Russian economist and government official. He serves as the Governor of Novgorod Oblast.
Biography
Andrey Nikitin was born on 26 November 1979. Although he was born in Moscow, he lived in Miass, Chelyabinsk Oblast for almost 16 years. After graduation in 2001, he entered the State University of Management (GUU, Moscow), and received a diploma in the specialty "State and Municipal Management". He continued his postgraduate studies, in 2006, he defended his thesis on "The Strategy of Organizational Change as an Instrument of Effective Management (Methodological Aspect)" and became a candidate of economic sciences. In 2008, Nikitin was awarded the MBA from the Stockholm School of Economics. The same year he became associate professor of the Department of Theory of Organization and Management of the State University of Management.
On 13 February 2017, Andrey Nikitin was appointed as the acting Governor of Novgorod Oblast by decree of Russian President Vladimir Putin. On 10 September 2017, having collected 67.99% of the vote, he was elected Governor of the Novgorod Region. He will took office as Governor of the Novgorod Region on 14 October 2017.
In 2018, he defended his doctoral dissertation on "Formation and effective functioning of regional management teams" and became a doctor of economic Sciences.
He was awarded the Medal of the Order "For Merit to the Fatherland" II degree, has the Gratitude of the President.
He is a member of the Presidium of the presidential Council for economic modernization and innovative development of Russia, and a member of the Presidium of the State Council of the Russian Federation. He is also a member of the Supervisory Board of the Agency for Strategic Initiatives to promote new projects.
References
1979 births
Living people
United Russia politicians
State University of Management alumni
Academic staff of the State University of Management
Politicians from Moscow
Acting heads of the federal subjects of Russia
Governors of Novgorod Oblast
21st-century Russian economists
Recipients of the Medal of the Order "For Merit to the Fatherland" II class
|
Un asunto privado is a Spanish drama film co-produced by Portuguese and Argentine producers. Filmed in Portugal, it was released in 1996. The film was directed by Imanol Arias and written by José Ángel Esteban.
Synopsis
An artist hires a gigolo through her faithful servant and lover to bring to life a game of mirrors and representations.
Cast
Jorge Perugorría as Alejandro
Antonio Valero as Bruno
Pastora Vega as Klaudia
Fabián Vena as Dario
Patricia Vico as Clienta
External links
1996 films
1996 drama films
Argentine independent films
1990s Spanish-language films
Spanish independent films
Portuguese independent films
1990s Argentine films
1990s Spanish films
|
Balthazar Matthias Christensen (25 October 1802 – 21 April 1882) was a Danish jurist and politician representing the Society of the Friends of Peasants ().
Christensen was born in Randers, Denmark, in 1802 to master drafter and Major General Christian Peter Christensen (1765–1836) and Kirstine Bang (1772–1855). From 1829 to 1831 he was a government assistant on the Guinean coast, but in 1839 he returned to Denmark, where he founded a law firm in Copenhagen. The same year, he became editor of the newspaper Fædrelandet, but in 1841 he was censured and had to resign. From 1840 to 1843 he was a member of the Copenhagen City Council, the Frederiksberg Parish Council and the Copenhagen County Council. In 1846 he was a co-founder of the Society of the Friends of Peasants () and was its president from 1848 to 1958.
He was a member of the Folketing for long periods in 1849 to 1882, as well as for a short time in the Landstinget (1853–1866); from 1853–1880 he was State Auditor. As one of the leading figures of Venstre, he contributed to the formation of Carl Edvard Rotwitt's government in 1859. In 1866 he voted against the revised Constitution and in 1870 joined ('the United Left'). In his later years he had little political influence. From 1864 to 1867 he was a member of the parish council of Frederiksberg Municipality.
Christensen died in 1882 in Frederiksberg, Denmark, and is buried in Copenhagen.
References
External links
1802 births
1882 deaths
19th-century Copenhagen City Council members
19th-century Danish lawyers
19th-century Danish politicians
Members of the Folketing 1849–1852
Members of the Rigsrådet (1855-1866)
People from Randers
|
```xml
<?xml version='1.0' encoding='utf-8' ?>
<xpipe>
<dc id="FAT" lastModifiedTime="2016080913560001">
<cluster id="cluster_meng">
<shard id="shard1">
<redis id="slaveOtherDc" ip="10.3.2.23" port="6399" master="10.2.58.242:6399"/>
</shard>
</cluster>
</dc>
<dc id="NTGXH" lastModifiedTime="2016080913560001">
<cluster id="cluster_meng">
<shard id="shard1">
<redis id="master" ip="10.2.58.242" port="6399"/>
</shard>
</cluster>
</dc>
<!--dc id="NTGXH" lastModifiedTime="2016080913560001">
<cluster id="cluster_meng">
<shard id="shard1">
<redis id="master" ip="127.0.0.1" port="6379"/>
</shard>
</cluster>
</dc-->
</xpipe>
```
|
```c
#include <stddef.h>
#include "../WinCompat.h"
#define inline
/*
* Codepage tables
*
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdlib.h>
#include "unicode.h"
/* Everything below this line is generated automatically by make_unicode */
/* ### cpmap begin ### */
extern union cptable cptable_037;
extern union cptable cptable_424;
extern union cptable cptable_437;
extern union cptable cptable_500;
extern union cptable cptable_737;
extern union cptable cptable_775;
extern union cptable cptable_850;
extern union cptable cptable_852;
extern union cptable cptable_855;
extern union cptable cptable_856;
extern union cptable cptable_857;
extern union cptable cptable_860;
extern union cptable cptable_861;
extern union cptable cptable_862;
extern union cptable cptable_863;
extern union cptable cptable_864;
extern union cptable cptable_865;
extern union cptable cptable_866;
extern union cptable cptable_866uk;
extern union cptable cptable_869;
extern union cptable cptable_874;
extern union cptable cptable_875;
#ifndef NO_EACP
extern union cptable cptable_932;
extern union cptable cptable_936;
extern union cptable cptable_949;
extern union cptable cptable_950;
#endif
extern union cptable cptable_1006;
extern union cptable cptable_1026;
extern union cptable cptable_1250;
extern union cptable cptable_1251;
extern union cptable cptable_1252;
extern union cptable cptable_1253;
extern union cptable cptable_1254;
extern union cptable cptable_1255;
extern union cptable cptable_1256;
extern union cptable cptable_1257;
extern union cptable cptable_1258;
#ifndef NO_EACP
extern union cptable cptable_1361;
#endif
extern union cptable cptable_10000;
#ifndef NO_EACP
extern union cptable cptable_10001;
extern union cptable cptable_10002;
extern union cptable cptable_10003;
#endif
extern union cptable cptable_10004;
extern union cptable cptable_10005;
extern union cptable cptable_10006;
extern union cptable cptable_10007;
#ifndef NO_EACP
extern union cptable cptable_10008;
#endif
extern union cptable cptable_10010;
extern union cptable cptable_10017;
extern union cptable cptable_10021;
extern union cptable cptable_10029;
extern union cptable cptable_10079;
extern union cptable cptable_10081;
extern union cptable cptable_10082;
extern union cptable cptable_20127;
extern union cptable cptable_20866;
extern union cptable cptable_20880;
#ifndef NO_EACP
extern union cptable cptable_20932;
#endif
extern union cptable cptable_21866;
extern union cptable cptable_28591;
extern union cptable cptable_28592;
extern union cptable cptable_28593;
extern union cptable cptable_28594;
extern union cptable cptable_28595;
extern union cptable cptable_28596;
extern union cptable cptable_28597;
extern union cptable cptable_28598;
extern union cptable cptable_28599;
extern union cptable cptable_28600;
extern union cptable cptable_28603;
extern union cptable cptable_28604;
extern union cptable cptable_28605;
extern union cptable cptable_28606;
static const union cptable * const cptables[] =
{
&cptable_037,
&cptable_424,
&cptable_437,
&cptable_500,
&cptable_737,
&cptable_775,
&cptable_850,
&cptable_852,
&cptable_855,
&cptable_856,
&cptable_857,
&cptable_860,
&cptable_861,
&cptable_862,
&cptable_863,
&cptable_864,
&cptable_865,
&cptable_866,
&cptable_866uk,
&cptable_869,
&cptable_874,
&cptable_875,
#ifndef NO_EACP
&cptable_932,
&cptable_936,
&cptable_949,
&cptable_950,
#endif
&cptable_1006,
&cptable_1026,
&cptable_1250,
&cptable_1251,
&cptable_1252,
&cptable_1253,
&cptable_1254,
&cptable_1255,
&cptable_1256,
&cptable_1257,
&cptable_1258,
#ifndef NO_EACP
&cptable_1361,
#endif
&cptable_10000,
#ifndef NO_EACP
&cptable_10001,
&cptable_10002,
&cptable_10003,
#endif
&cptable_10004,
&cptable_10005,
&cptable_10006,
&cptable_10007,
#ifndef NO_EACP
&cptable_10008,
#endif
&cptable_10010,
&cptable_10017,
&cptable_10021,
&cptable_10029,
&cptable_10079,
&cptable_10081,
&cptable_10082,
&cptable_20127,
&cptable_20866,
&cptable_20880,
#ifndef NO_EACP
&cptable_20932,
#endif
&cptable_21866,
&cptable_28591,
&cptable_28592,
&cptable_28593,
&cptable_28594,
&cptable_28595,
&cptable_28596,
&cptable_28597,
&cptable_28598,
&cptable_28599,
&cptable_28600,
&cptable_28603,
&cptable_28604,
&cptable_28605,
&cptable_28606,
};
/* ### cpmap end ### */
/* Everything above this line is generated automatically by make_unicode */
#define NB_CODEPAGES (sizeof(cptables)/sizeof(cptables[0]))
/* get the table of a given code page */
const union cptable *wine_cp_get_table( unsigned int codepage )
{
const union cptable * const *base = cptables;
size_t cnt = NB_CODEPAGES;
while (cnt) {
const union cptable * const *mid = base + (cnt >> 1);
if (codepage == (*mid)->info.codepage) {
return *mid;
}
if (codepage > (*mid)->info.codepage) { /* key > p: move right */
base = mid + 1;
cnt--;
} /* else move left */
cnt>>= 1;
}
return (NULL);
}
/* enum valid codepages */
const union cptable *wine_cp_enum_table( unsigned int index )
{
if (index >= NB_CODEPAGES) return NULL;
return cptables[index];
}
```
|
```go
/*
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.
*/
package api
import (
"encoding/json"
"github.com/caicloud/nirvana/definition"
"github.com/caicloud/nirvana/service"
)
// Parameter describes a function parameter.
type Parameter struct {
// Source is the parameter value generated from.
Source definition.Source
// Name is the name to get value from a request.
Name string
// Description describes the parameter.
Description string
// Type is parameter object type.
Type TypeName
// Default is encoded default value.
Default []byte
}
// Result describes a function result.
type Result struct {
// Destination is the target for the result.
Destination definition.Destination
// Description describes the result.
Description string
// Type is result object type.
Type TypeName
}
// Example is just an example.
type Example struct {
// Description describes the example.
Description string
// Type is result object type.
Type TypeName
// Instance is encoded instance data.
Instance []byte
}
// Definition is complete version of def.Definition.
type Definition struct {
// Method is definition method.
Method definition.Method
// HTTPMethod is http method.
HTTPMethod string
// HTTPCode is http success code.
HTTPCode int
// Summary is a brief of this definition.
Summary string
// Description describes the API handler.
Description string
// Tags indicates tags of the API handler.
// It will override parent descriptor's tags.
Tags []string
// Consumes indicates how many content types the handler can consume.
// It will override parent descriptor's consumes.
Consumes []string
// Produces indicates how many content types the handler can produce.
// It will override parent descriptor's produces.
Produces []string
// ErrorProduces is used to generate data for error. If this field is empty,
// it means that this field equals to Produces.
// In some cases, successful data and error data should be generated in
// different ways.
ErrorProduces []string
// Function is a function handler. It must be func type.
Function TypeName
// Parameters describes function parameters.
Parameters []Parameter
// Results describes function retrun values.
Results []Result
// Examples contains many examples for the API handler.
Examples []Example
}
// NewDefinition creates openapi.Definition from definition.Definition.
func NewDefinition(tc *TypeContainer, d *definition.Definition) (*Definition, error) {
cd := &Definition{
Method: d.Method,
HTTPMethod: service.HTTPMethodFor(d.Method),
HTTPCode: service.HTTPCodeFor(d.Method),
Summary: d.Summary,
Description: d.Description,
Tags: d.Tags,
Consumes: d.Consumes,
Produces: d.Produces,
ErrorProduces: d.ErrorProduces,
Function: tc.NameOfInstance(d.Function),
}
functionType := tc.Type(cd.Function)
for i, p := range d.Parameters {
param := Parameter{
Source: p.Source,
Name: p.Name,
Description: p.Description,
Type: functionType.In[i].Type,
}
if p.Default != nil {
data, err := encode(p.Default)
if err != nil {
return nil, err
}
param.Default = data
}
if len(p.Operators) > 0 {
param.Type = tc.NameOf(p.Operators[0].In())
}
cd.Parameters = append(cd.Parameters, param)
}
for i, r := range d.Results {
result := Result{
Destination: r.Destination,
Description: r.Description,
Type: functionType.Out[i].Type,
}
if len(r.Operators) > 0 {
result.Type = tc.NameOf(r.Operators[len(r.Operators)-1].Out())
}
cd.Results = append(cd.Results, result)
}
for _, e := range d.Examples {
example := Example{
Description: e.Description,
}
if e.Instance != nil {
example.Type = tc.NameOfInstance(e.Instance)
data, err := encode(e.Instance)
if err != nil {
return nil, err
}
example.Instance = data
}
cd.Examples = append(cd.Examples, example)
}
return cd, nil
}
// NewDefinitions creates a list of definitions.
func NewDefinitions(tc *TypeContainer, definitions []definition.Definition) ([]Definition, error) {
result := make([]Definition, len(definitions))
for i, d := range definitions {
cd, err := NewDefinition(tc, &d)
if err != nil {
return nil, err
}
result[i] = *cd
}
return result, nil
}
// NewPathDefinitions creates a list of definitions with path.
func NewPathDefinitions(tc *TypeContainer, definitions map[string][]definition.Definition) (map[string][]Definition, error) {
result := make(map[string][]Definition)
for path, defs := range definitions {
cds, err := NewDefinitions(tc, defs)
if err != nil {
return nil, err
}
result[path] = cds
}
return result, nil
}
// encode encodes instance to json format.
func encode(ins interface{}) ([]byte, error) {
return json.Marshal(ins)
}
```
|
```python
import json
from traceback import format_exception_only
from django.core.exceptions import ImproperlyConfigured, SuspiciousOperation
from requests import HTTPError
class AnymailError(Exception):
"""Base class for exceptions raised by Anymail
Overrides __str__ to provide additional information about
the ESP API call and response.
"""
def __init__(self, *args, **kwargs):
"""
Optional kwargs:
email_message: the original EmailMessage being sent
status_code: HTTP status code of response to ESP send call
backend: the backend instance involved
payload: data arg (*not* json-stringified) for the ESP send call
response: requests.Response from the send call
esp_name: what to call the ESP (read from backend if provided)
"""
self.backend = kwargs.pop("backend", None)
self.email_message = kwargs.pop("email_message", None)
self.payload = kwargs.pop("payload", None)
self.status_code = kwargs.pop("status_code", None)
self.esp_name = kwargs.pop(
"esp_name", self.backend.esp_name if self.backend else None
)
if isinstance(self, HTTPError):
# must leave response in kwargs for HTTPError
self.response = kwargs.get("response", None)
else:
self.response = kwargs.pop("response", None)
super().__init__(*args, **kwargs)
def __str__(self):
parts = [
" ".join([str(arg) for arg in self.args]),
self.describe_cause(),
self.describe_response(),
]
return "\n".join(filter(None, parts))
def describe_response(self):
"""Return a formatted string of self.status_code and response, or None"""
if self.status_code is None:
return None
# Decode response.reason to text
# (borrowed from requests.Response.raise_for_status)
reason = self.response.reason
if isinstance(reason, bytes):
try:
reason = reason.decode("utf-8")
except UnicodeDecodeError:
reason = reason.decode("iso-8859-1")
description = "%s API response %d (%s)" % (
self.esp_name or "ESP",
self.status_code,
reason,
)
try:
json_response = self.response.json()
description += ":\n" + json.dumps(json_response, indent=2)
except (AttributeError, KeyError, ValueError): # not JSON = ValueError
try:
description += ": %r" % self.response.text
except AttributeError:
pass
return description
def describe_cause(self):
"""Describe the original exception"""
if self.__cause__ is None:
return None
return "".join(
format_exception_only(type(self.__cause__), self.__cause__)
).strip()
class AnymailAPIError(AnymailError):
"""Exception for unsuccessful response from ESP's API."""
class AnymailRequestsAPIError(AnymailAPIError, HTTPError):
"""Exception for unsuccessful response from a requests API."""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if self.response is not None:
self.status_code = self.response.status_code
class AnymailRecipientsRefused(AnymailError):
"""Exception for send where all recipients are invalid or rejected."""
def __init__(self, message=None, *args, **kwargs):
if message is None:
message = "All message recipients were rejected or invalid"
super().__init__(message, *args, **kwargs)
class AnymailInvalidAddress(AnymailError, ValueError):
"""Exception when using an invalidly-formatted email address"""
class AnymailUnsupportedFeature(AnymailError, ValueError):
"""Exception for Anymail features that the ESP doesn't support.
This is typically raised when attempting to send a Django EmailMessage that
uses options or values you might expect to work, but that are silently
ignored by or can't be communicated to the ESP's API.
It's generally *not* raised for ESP-specific limitations, like the number
of tags allowed on a message. (Anymail expects
the ESP to return an API error for these where appropriate, and tries to
avoid duplicating each ESP's validation logic locally.)
"""
class AnymailSerializationError(AnymailError, TypeError):
"""Exception for data that Anymail can't serialize for the ESP's API.
This typically results from including something like a date or Decimal
in your merge_vars.
"""
# inherits from TypeError for compatibility with JSON serialization error
def __init__(self, message=None, orig_err=None, *args, **kwargs):
if message is None:
# self.esp_name not set until super init, so duplicate logic to get esp_name
backend = kwargs.get("backend", None)
esp_name = kwargs.get(
"esp_name", backend.esp_name if backend else "the ESP"
)
message = (
"Don't know how to send this data to %s. "
"Try converting it to a string or number first." % esp_name
)
if orig_err is not None:
message += "\n%s" % str(orig_err)
super().__init__(message, *args, **kwargs)
class AnymailCancelSend(AnymailError):
"""Pre-send signal receiver can raise to prevent message send"""
class AnymailWebhookValidationFailure(AnymailError, SuspiciousOperation):
"""Exception when a webhook cannot be validated.
Django's SuspiciousOperation turns into
an HTTP 400 error in production.
"""
class AnymailConfigurationError(ImproperlyConfigured):
"""Exception for Anymail configuration or installation issues"""
# This deliberately doesn't inherit from AnymailError,
# because we don't want it to be swallowed by backend fail_silently
class AnymailImproperlyInstalled(AnymailConfigurationError, ImportError):
"""Exception for Anymail missing package dependencies"""
def __init__(self, missing_package, install_extra="<esp>"):
# install_extra must be the package "optional extras name" for the ESP
# (not the backend's esp_name)
message = (
"The %s package is required to use this ESP, but isn't installed.\n"
'(Be sure to use `pip install "django-anymail[%s]"` '
"with your desired ESP name(s).)" % (missing_package, install_extra)
)
super().__init__(message)
# Warnings
class AnymailWarning(Warning):
"""Base warning for Anymail"""
class AnymailInsecureWebhookWarning(AnymailWarning):
"""Warns when webhook configured without any validation"""
class AnymailDeprecationWarning(AnymailWarning, DeprecationWarning):
"""Warning for deprecated Anymail features"""
# Helpers
class _LazyError:
"""An object that sits inert unless/until used, then raises an error"""
def __init__(self, error):
self._error = error
def __call__(self, *args, **kwargs):
raise self._error
def __getattr__(self, item):
raise self._error
```
|
Piotr Brol (26 April 1944 – 26 June 2001) was a Polish footballer. He played in two matches for the Poland national football team from 1967 to 1969.
References
External links
1944 births
2001 deaths
Polish men's footballers
Poland men's international footballers
People from Tarnowskie Góry County
Men's association football goalkeepers
Polonia Bytom players
Śląsk Wrocław players
Footballers from Silesian Voivodeship
|
The Jefferson Leader is a local American newspaper founded in 1994 in Festus, Missouri. As part of The Leader Publications, The Jefferson County Leader provides local news for Jefferson County, Missouri and the greater Saint Louis region.
References
1994 establishments in Missouri
Newspapers established in 1994
Newspapers published in Missouri
|
```xml
// See LICENSE in the project root for license information.
import * as ts from 'typescript';
import * as tsdoc from '@microsoft/tsdoc';
import type { Collector } from '../collector/Collector';
import { AstSymbol } from '../analyzer/AstSymbol';
import type { AstDeclaration } from '../analyzer/AstDeclaration';
import type { ApiItemMetadata } from '../collector/ApiItemMetadata';
import { ReleaseTag } from '@microsoft/api-extractor-model';
import { ExtractorMessageId } from '../api/ExtractorMessageId';
import { VisitorState } from '../collector/VisitorState';
import { ResolverFailure } from '../analyzer/AstReferenceResolver';
export class DocCommentEnhancer {
private readonly _collector: Collector;
public constructor(collector: Collector) {
this._collector = collector;
}
public static analyze(collector: Collector): void {
const docCommentEnhancer: DocCommentEnhancer = new DocCommentEnhancer(collector);
docCommentEnhancer.analyze();
}
public analyze(): void {
for (const entity of this._collector.entities) {
if (entity.astEntity instanceof AstSymbol) {
if (
entity.consumable ||
this._collector.extractorConfig.apiReportIncludeForgottenExports ||
this._collector.extractorConfig.docModelIncludeForgottenExports
) {
entity.astEntity.forEachDeclarationRecursive((astDeclaration: AstDeclaration) => {
this._analyzeApiItem(astDeclaration);
});
}
}
}
}
private _analyzeApiItem(astDeclaration: AstDeclaration): void {
const metadata: ApiItemMetadata = this._collector.fetchApiItemMetadata(astDeclaration);
if (metadata.docCommentEnhancerVisitorState === VisitorState.Visited) {
return;
}
if (metadata.docCommentEnhancerVisitorState === VisitorState.Visiting) {
this._collector.messageRouter.addAnalyzerIssue(
ExtractorMessageId.CyclicInheritDoc,
`The @inheritDoc tag for "${astDeclaration.astSymbol.localName}" refers to its own declaration`,
astDeclaration
);
return;
}
metadata.docCommentEnhancerVisitorState = VisitorState.Visiting;
if (metadata.tsdocComment && metadata.tsdocComment.inheritDocTag) {
this._applyInheritDoc(astDeclaration, metadata.tsdocComment, metadata.tsdocComment.inheritDocTag);
}
this._analyzeNeedsDocumentation(astDeclaration, metadata);
this._checkForBrokenLinks(astDeclaration, metadata);
metadata.docCommentEnhancerVisitorState = VisitorState.Visited;
}
private _analyzeNeedsDocumentation(astDeclaration: AstDeclaration, metadata: ApiItemMetadata): void {
if (astDeclaration.declaration.kind === ts.SyntaxKind.Constructor) {
// Constructors always do pretty much the same thing, so it's annoying to require people to write
// descriptions for them. Instead, if the constructor lacks a TSDoc summary, then API Extractor
// will auto-generate one.
metadata.undocumented = false;
// The class that contains this constructor
const classDeclaration: AstDeclaration = astDeclaration.parent!;
const configuration: tsdoc.TSDocConfiguration = this._collector.extractorConfig.tsdocConfiguration;
if (!metadata.tsdocComment) {
metadata.tsdocComment = new tsdoc.DocComment({ configuration });
}
if (!tsdoc.PlainTextEmitter.hasAnyTextContent(metadata.tsdocComment.summarySection)) {
metadata.tsdocComment.summarySection.appendNodesInParagraph([
new tsdoc.DocPlainText({ configuration, text: 'Constructs a new instance of the ' }),
new tsdoc.DocCodeSpan({
configuration,
code: classDeclaration.astSymbol.localName
}),
new tsdoc.DocPlainText({ configuration, text: ' class' })
]);
}
const apiItemMetadata: ApiItemMetadata = this._collector.fetchApiItemMetadata(astDeclaration);
if (apiItemMetadata.effectiveReleaseTag === ReleaseTag.Internal) {
// If the constructor is marked as internal, then add a boilerplate notice for the containing class
const classMetadata: ApiItemMetadata = this._collector.fetchApiItemMetadata(classDeclaration);
if (!classMetadata.tsdocComment) {
classMetadata.tsdocComment = new tsdoc.DocComment({ configuration });
}
if (classMetadata.tsdocComment.remarksBlock === undefined) {
classMetadata.tsdocComment.remarksBlock = new tsdoc.DocBlock({
configuration,
blockTag: new tsdoc.DocBlockTag({
configuration,
tagName: tsdoc.StandardTags.remarks.tagName
})
});
}
classMetadata.tsdocComment.remarksBlock.content.appendNode(
new tsdoc.DocParagraph({ configuration }, [
new tsdoc.DocPlainText({
configuration,
text:
`The constructor for this class is marked as internal. Third-party code should not` +
` call the constructor directly or create subclasses that extend the `
}),
new tsdoc.DocCodeSpan({
configuration,
code: classDeclaration.astSymbol.localName
}),
new tsdoc.DocPlainText({ configuration, text: ' class.' })
])
);
}
return;
} else {
// For non-constructor items, we will determine whether or not the item is documented as follows:
// 1. If it contains a summary section with at least 10 characters, then it is considered "documented".
// 2. If it contains an @inheritDoc tag, then it *may* be considered "documented", depending on whether or not
// the tag resolves to a "documented" API member.
// - Note: for external members, we cannot currently determine this, so we will consider the "documented"
// status to be unknown.
if (metadata.tsdocComment) {
if (tsdoc.PlainTextEmitter.hasAnyTextContent(metadata.tsdocComment.summarySection, 10)) {
// If the API item has a summary comment block (with at least 10 characters), mark it as "documented".
metadata.undocumented = false;
} else if (metadata.tsdocComment.inheritDocTag) {
if (
this._refersToDeclarationInWorkingPackage(
metadata.tsdocComment.inheritDocTag.declarationReference
)
) {
// If the API item has an `@inheritDoc` comment that points to an API item in the working package,
// then the documentation contents should have already been copied from the target via `_applyInheritDoc`.
// The continued existence of the tag indicates that the declaration reference was invalid, and not
// documentation contents could be copied.
// An analyzer issue will have already been logged for this.
// We will treat such an API as "undocumented".
metadata.undocumented = true;
} else {
// If the API item has an `@inheritDoc` comment that points to an external API item, we cannot currently
// determine whether or not the target is "documented", so we cannot say definitively that this is "undocumented".
metadata.undocumented = false;
}
} else {
// If the API item has neither a summary comment block, nor an `@inheritDoc` comment, mark it as "undocumented".
metadata.undocumented = true;
}
} else {
// If there is no tsdoc comment at all, mark "undocumented".
metadata.undocumented = true;
}
}
}
private _checkForBrokenLinks(astDeclaration: AstDeclaration, metadata: ApiItemMetadata): void {
if (!metadata.tsdocComment) {
return;
}
this._checkForBrokenLinksRecursive(astDeclaration, metadata.tsdocComment);
}
private _checkForBrokenLinksRecursive(astDeclaration: AstDeclaration, node: tsdoc.DocNode): void {
if (node instanceof tsdoc.DocLinkTag) {
if (node.codeDestination) {
// Is it referring to the working package? If not, we don't do any link validation, because
// AstReferenceResolver doesn't support it yet (but ModelReferenceResolver does of course).
// Tracked by: path_to_url
if (this._refersToDeclarationInWorkingPackage(node.codeDestination)) {
const referencedAstDeclaration: AstDeclaration | ResolverFailure =
this._collector.astReferenceResolver.resolve(node.codeDestination);
if (referencedAstDeclaration instanceof ResolverFailure) {
this._collector.messageRouter.addAnalyzerIssue(
ExtractorMessageId.UnresolvedLink,
'The @link reference could not be resolved: ' + referencedAstDeclaration.reason,
astDeclaration
);
}
}
}
}
for (const childNode of node.getChildNodes()) {
this._checkForBrokenLinksRecursive(astDeclaration, childNode);
}
}
/**
* Follow an `{@inheritDoc ___}` reference and copy the content that we find in the referenced comment.
*/
private _applyInheritDoc(
astDeclaration: AstDeclaration,
docComment: tsdoc.DocComment,
inheritDocTag: tsdoc.DocInheritDocTag
): void {
if (!inheritDocTag.declarationReference) {
this._collector.messageRouter.addAnalyzerIssue(
ExtractorMessageId.UnresolvedInheritDocBase,
'The @inheritDoc tag needs a TSDoc declaration reference; signature matching is not supported yet',
astDeclaration
);
return;
}
if (!this._refersToDeclarationInWorkingPackage(inheritDocTag.declarationReference)) {
// The `@inheritDoc` tag is referencing an external package. Skip it, since AstReferenceResolver doesn't
// support it yet. As a workaround, this tag will get handled later by api-documenter.
// Tracked by: path_to_url
return;
}
const referencedAstDeclaration: AstDeclaration | ResolverFailure =
this._collector.astReferenceResolver.resolve(inheritDocTag.declarationReference);
if (referencedAstDeclaration instanceof ResolverFailure) {
this._collector.messageRouter.addAnalyzerIssue(
ExtractorMessageId.UnresolvedInheritDocReference,
'The @inheritDoc reference could not be resolved: ' + referencedAstDeclaration.reason,
astDeclaration
);
return;
}
this._analyzeApiItem(referencedAstDeclaration);
const referencedMetadata: ApiItemMetadata =
this._collector.fetchApiItemMetadata(referencedAstDeclaration);
if (referencedMetadata.tsdocComment) {
this._copyInheritedDocs(docComment, referencedMetadata.tsdocComment);
}
}
/**
* Copy the content from `sourceDocComment` to `targetDocComment`.
*/
private _copyInheritedDocs(targetDocComment: tsdoc.DocComment, sourceDocComment: tsdoc.DocComment): void {
targetDocComment.summarySection = sourceDocComment.summarySection;
targetDocComment.remarksBlock = sourceDocComment.remarksBlock;
targetDocComment.params.clear();
for (const param of sourceDocComment.params) {
targetDocComment.params.add(param);
}
for (const typeParam of sourceDocComment.typeParams) {
targetDocComment.typeParams.add(typeParam);
}
targetDocComment.returnsBlock = sourceDocComment.returnsBlock;
targetDocComment.inheritDocTag = undefined;
}
/**
* Determines whether or not the provided declaration reference points to an item in the working package.
*/
private _refersToDeclarationInWorkingPackage(
declarationReference: tsdoc.DocDeclarationReference | undefined
): boolean {
return (
declarationReference?.packageName === undefined ||
declarationReference.packageName === this._collector.workingPackage.name
);
}
}
```
|
```javascript
import { DeleteJobCommand, GlueClient } from "@aws-sdk/client-glue";
/** snippet-start:[javascript.v3.glue.actions.DeleteJob] */
const deleteJob = (jobName) => {
const client = new GlueClient({});
const command = new DeleteJobCommand({
JobName: jobName,
});
return client.send(command);
};
/** snippet-end:[javascript.v3.glue.actions.DeleteJob] */
export { deleteJob };
```
|
Jean-Pierre Cot (born 23 October 1937 in Chêne-Bougeries, Canton of Geneva, Switzerland) is a French jurist who has served as a judge at the International Tribunal for the Law of the Sea.
Biography
He is the son of Pierre Cot, also a politician and minister.
After studying law at Sorbonne University in Paris from 1955 to 1965, he earned a Ph.D. in 1966. He then was professor of public law and international law at the University of Amiens, then the University of Paris I, before being elected as a deputy for Savoie in 1973. He was later re-elected, before joining the Socialist government of Pierre Mauroy in 1981 as deputy minister in charge of Co-operation and Development.
He was a Member of European Parliament (MEP) in 1978–1979 and 1984–1999, and chaired the socialist group of the European Parliament between 1989 and 1994, before becoming its vice-president in 1997.
Since 2002, he has been a member of the International Tribunal for the Law of the Sea.
In 2017, he was made an officer of the legion of honour.
References
External links
ITLOS - Judge Jean-Pierre Cot Biography at the website of the ITLOS
1937 births
Living people
People from Chêne-Bougeries
Socialist Party (France) politicians
Deputies of the 5th National Assembly of the French Fifth Republic
Deputies of the 6th National Assembly of the French Fifth Republic
Deputies of the 7th National Assembly of the French Fifth Republic
Members of Parliament for Savoie
Socialist Party (France) MEPs
MEPs for France 1958–1979
MEPs for France 1984–1989
MEPs for France 1989–1994
MEPs for France 1994–1999
French judges of United Nations courts and tribunals
International Tribunal for the Law of the Sea judges
University of Paris alumni
Academic staff of Pantheon-Sorbonne University
|
Tony Robbins: I Am Not Your Guru is a 2016 documentary film directed by Joe Berlinger. It goes behind the scenes of Tony Robbins’ annual seminar "Date With Destiny" in Boca Raton, Florida. The film captures the efforts of producing the seminar as well as the effects on the participants.
Cast
Anthony Robbins
Julianne Hough
Maria Menounos
Milana Vayntrub
Sage Bonnie Humphrey
Dawn Watson
Reception
The documentary received mixed reviews after its debut on Netflix in 2016. Critics noted that it felt more like a tribute to Robbins rather than an exploration of his life and work. After the film’s debut, Business Insider interviewed Berlinger, in which he said that he intentionally wanted to make a positive film, and noted that he received encouragement from fellow documentarian Michael Moore for “going forward with an uplifting project he believed in, even though he predicted critics would harshly judge his decision to do so.”
References
External links
2016 documentary films
2016 films
Netflix original documentary films
Films directed by Joe Berlinger
Documentary films about Florida
Films shot in Florida
Boca Raton, Florida
Films produced by Joe Berlinger
2010s English-language films
English-language documentary films
|
```go
package master
import (
"sync"
"time"
"github.com/chrislusf/gleam/pb"
)
type AgentInformation struct {
Location pb.Location
LastHeartBeat time.Time
Resource pb.ComputeResource
Allocated pb.ComputeResource
}
type Rack struct {
sync.RWMutex
Name string
Agents map[string]*AgentInformation
Resource pb.ComputeResource
Allocated pb.ComputeResource
}
type DataCenter struct {
sync.RWMutex
Name string
Racks map[string]*Rack
Resource pb.ComputeResource
Allocated pb.ComputeResource
}
type Topology struct {
Resource pb.ComputeResource
Allocated pb.ComputeResource
sync.RWMutex
DataCenters map[string]*DataCenter
}
func NewTopology() *Topology {
return &Topology{
DataCenters: make(map[string]*DataCenter),
}
}
func NewDataCenter(name string) *DataCenter {
return &DataCenter{
Name: name,
Racks: make(map[string]*Rack),
}
}
func NewRack(name string) *Rack {
return &Rack{
Name: name,
Agents: make(map[string]*AgentInformation),
}
}
func (tp *Topology) GetDataCenter(name string) (*DataCenter, bool) {
tp.RLock()
defer tp.RUnlock()
dc, ok := tp.DataCenters[name]
return dc, ok
}
func (dc *DataCenter) GetRack(name string) (*Rack, bool) {
dc.RLock()
defer dc.RUnlock()
rack, ok := dc.Racks[name]
return rack, ok
}
func (rack *Rack) GetAgent(name string) (*AgentInformation, bool) {
rack.RLock()
defer rack.RUnlock()
agentInformation, ok := rack.Agents[name]
return agentInformation, ok
}
func (tp *Topology) AddDataCenter(dc *DataCenter) {
tp.Lock()
defer tp.Unlock()
tp.DataCenters[dc.Name] = dc
}
func (tp *Topology) GetDataCenters() map[string]*DataCenter {
tp.RLock()
defer tp.RUnlock()
s := make(map[string]*DataCenter, len(tp.DataCenters))
for k, v := range tp.DataCenters {
s[k] = v
}
return s
}
func (dc *DataCenter) GetRacks() (ret []*Rack) {
dc.RLock()
defer dc.RUnlock()
for _, v := range dc.Racks {
r := v
ret = append(ret, r)
}
return
}
func (dc *DataCenter) AddRack(rack *Rack) {
dc.Lock()
defer dc.Unlock()
dc.Racks[rack.Name] = rack
}
func (rack *Rack) AddAgent(a *AgentInformation) {
rack.Lock()
defer rack.Unlock()
rack.Agents[a.Location.URL()] = a
}
func (rack *Rack) DropAgent(location *pb.Location) {
rack.Lock()
defer rack.Unlock()
delete(rack.Agents, location.URL())
}
func (rack *Rack) GetAgents() (ret []*AgentInformation) {
rack.RLock()
defer rack.RUnlock()
for _, v := range rack.Agents {
a := v
ret = append(ret, a)
}
return
}
```
|
```java
/*
* This file is part of ViaVersion - path_to_url
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.viaversion.viaversion.api.type.types.item;
import com.viaversion.viaversion.api.minecraft.item.Item;
import com.viaversion.viaversion.api.type.Type;
abstract class BaseItemArrayType extends Type<Item[]> {
protected BaseItemArrayType() {
super(Item[].class);
}
protected BaseItemArrayType(String typeName) {
super(typeName, Item[].class);
}
@Override
public Class<? extends Type> getBaseClass() {
return BaseItemArrayType.class;
}
}
```
|
```c
/*
*
* in the file LICENSE in the source distribution or at
* path_to_url
*/
#include <stdio.h>
#include "internal/cryptlib.h"
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
#include "crypto/evp.h"
static int init(EVP_MD_CTX *ctx)
{
return 1;
}
static int update(EVP_MD_CTX *ctx, const void *data, size_t count)
{
return 1;
}
static int final(EVP_MD_CTX *ctx, unsigned char *md)
{
return 1;
}
static const EVP_MD null_md = {
NID_undef,
NID_undef,
0,
0,
EVP_ORIG_GLOBAL,
init,
update,
final,
NULL,
NULL,
0,
sizeof(EVP_MD *),
};
const EVP_MD *EVP_md_null(void)
{
return &null_md;
}
```
|
Chuchot Gongma is a village-group and the headquarter of Chuchot block in the Leh district of Ladakh, India. It is located in the Leh tehsil. This village Chuchot is divided into three villages: Yokma, Shamma and Chuchot Gongma. Chuchot village is the longest village of ladakh. It starts from Choglamsar and stretches up to Stakna by the bank of the Indus River, and this river is the source of water for irrigating fields.
People here rear cattle and harvest fields. This village, located in ladakh, comes under Leh district and is 13 km South of Leh main town. This village is surrounded by chains of mountain range with the village itself being located on the bank of the historically famous Indus River. Farther away from the bank, the other side of the village has vast barren lands.
Polo and archery are the most common sports. The village grows a large amount of wild sea buckthorn, known for its therapeutic, anti-carsenic, anti-aging antibacterial, anti-inflammatory properties.
Demographics
According to the 2011 census of India, Chuchot Gongma has 368 households. The effective literacy rate (i.e. the literacy rate of population excluding children aged 6 and below) is 79.75%.
References
Villages in Leh tehsil
|
Coupon Mountain was an e-commerce website operated based in Monrovia, California, that displayed syndicated online deals. Founded in 2001 by Harry Tsao and Talmadge O'Neill, Coupon Mountain began as one of the two original website properties for MeziMedia, which was acquired by ValueClick for up to $352 million. MeziMedia was renamed to ValueClick Brands in 2010. In November 2013, ValueClick sold several of its online properties to IAC which, in addition to Coupon Mountain, included price-comparison website PriceRunner and investment education site Investopedia for $80 million. Coupon Mountain, along with PriceRunner, were being actively shopped in 2016 after slumping sales attributed to a change in Google's search algorithm but only PriceRunner was sold in March 2016 to Swedish firm NS Intressenter for around $100 million. That got fully acquired by Klarna in 2022.
At its peak in 2008, Coupon Mountain held 14% of the total market-share for coupon websites and has been offline since October 2014.
Products and services
Through affiliate marketing partnerships with retailers including Target, Walmart, Kohl's, HP, and Nordstrom, Coupon Mountain supplied coupon codes and printable coupons to online shoppers.
In addition to its primary United States-based site, Coupon Mountain maintained international versions in the United Kingdom, Germany, and China.
The website's services were available free of charge, without requiring registration. On the Coupon Mountain website, users could subscribe to email notifications by store, a weekly newsletter, and RSS feeds. Coupon Mountain had 16 categories: arts & collectibles; automotive; babies & kids; books; music & video; clothing & shoes; computers; consumer electronics, flowers & gifts, food & beverages; health & beauty; home & garden; jewelry & watches; office& business; pet supplies; toys; games & sports; and travel.
Consumer response
In 2008, The Wall Street Journal and The Washington Post listed Coupon Mountain as one of the most popular coupons and deals sources online. Coupon Mountain has received additional press coverage on CNN, MSNBC, and the Chicago Tribune.
References
Reward websites
|
Road Trip Elegies: Montreal to New York is an Audible Original production by Rufus Wainwright, released in November 2020. The "audio-only musical narrative" sees Wainwright recreate a trip from Montreal to New York City that he often took with his late mother, Kate McGarrigle. It includes field recordings, songs from Wainwright's discography, and live performances recorded at McCabe's Guitar Store in Los Angeles.
References
2020 works
Rufus Wainwright
Audible
|
Lucas Macie (born 2 July 1960) is a Mozambiquan-Swazi painter.
Biography
Macie was born in Maputo, Mozambique, in 1960 and grew up as an admirer of Malagatana, a renowned Mozambican painter. His brother Valentine is also a painter. Macie began showcasing his work in Maputo but left the country as a refugee and moved to Swaziland. There he continued paintings and showcased his work in the Indingilizi Gallery in Mbabane and gained recognition from the Swaziland Art Society. His paintings have since been bought by private collectors from South Africa, Spain, Portugal, Mozambique, United States, United Kingdom, Australia, Germany, Belgium, Switzerland, Israel, Zanzibar and Tanzania. His nephew is Valentim Macie, a painter like his father and uncle who has done much work to raise awareness for AIDS.
Style
Macie is noted for his gentle use of color, painting mainly people. His reason for this he says is "The Big Master did the same - He created Adam and Eve". He also utilizes the use of symbolism in his works with rings or bracelets or round clay pots.
References
Swazi painters
People from Maputo
People from Mbabane
1960 births
Living people
Immigrants to Eswatini
Mozambican emigrants
20th-century Mozambican painters
21st-century Mozambican painters
|
The men's nanquan competition at the 1994 Asian Games in Hiroshima, Japan was held on 13 October at the Aki Ward Sports Center.
Schedule
Results
References
Wushu at the 1994 Asian Games
|
Otto Keller may refer to:
Otto Keller (footballer) (1939–2014), German football midfielder
Otto Keller (philologist) (1838–1927), German classical philologist who specialized in Horace
|
Swabian-German Cultural Association () or Kulturbund was a cultural, social, and political organization of the ethnic Germans in Kingdom of Yugoslavia. During World War II, the Kulturbund promoted Nazism in the Yugoslavian German community and collaborated with the German occupational authorities.
Founded in June 1920 in Novi Sad, it was originally conceived as a cultural and social organization representing the interests of the nearly 500,000 ethnic Germans in Yugoslavia in the interwar period and preserving their culture and language by promoting German-language education and publishing a German-language newspaper, the Deutsches Volksblatt, while also campaigning for Germans' land rights. In the 1920s, the organization's motto was "faithful to country, faithful to nation" (), which the Kulturbund leadership intended as a gesture of loyalty to the newly founded Yugoslavian state while also working to represent the interests of the German minority. However, some historians have argued that Germans (as well as Hungarians) in Yugoslavia did not collectively develop an allegiance to their new country for myriad reasons, including Serbo-Croatian's legal status as the official language; the German community's negligible influence on the drafting of the 1921 constitution and lack of representation in subsequent government administrations; the higher taxes levied on the provinces of Vojvodina and Slovenia, where the majority of the Yugoslavian Germans lived; and the exclusion of German peasant farmers from the agrarian reforms of the late 1910s and early 1920s. In 1922, the Kulturbund organized the German Party, a conservative minority political party that held between five and eight seats in the Parliament of Yugoslavia in the 1920s, until it was banned during the 6 January Dictatorship.
While the organization was controlled by an older generation of conservative, Roman Catholic ethnic Germans in the 1920s and early 1930s, the Kulturbund came under the control of younger pro-Nazi elements in the late 1930s, partly because of the machinations of the SS-controlled Volksdeutsche Mittelstelle. In 1939, Nazi-sympathizer and collaborator Sepp Janko was elected president of the organization. Janko claimed that by summer 1940, the organization had 300,000 members and was actively trying to recruit the additional 200,000 Germans living in Yugoslavia.
During the Axis Invasion of Yugoslavia, the Kulturbund acted as fifth column. In March 1941, the Nazi agents of the Volksdeutsche Mittelstelle covertly instructed Yugoslavian Germans that if they should be conscripted into the Yugoslavian military, they should desert at the first opportunity and flee to Nazi Germany via Hungary. Additionally, Janko covertly organized a paramilitary group under the guise of a sports organization in order to aid the German military. After the Yugoslavian defeat in April 1941, the Axis powers partitioned and occupied Yugoslavia. Yugoslavian Germans were divided between four different occupation zones and puppet states. While local chapters of the Kulturbund continued to operate throughout occupied Yugoslavian territory during the war, Sepp Janko's centralized Kulturbund saw its jurisdiction drastically shrink. Novi Sad, the location of the organization's headquarters, was occupied by Hungary, and the Janko received instructions from Berlin to move his headquarters to Banat, where the Kulturbund was tasked with organizing Volksdeutsche collaborators among the region's 130,000 ethnic Germans. In 1944, when the Axis was losing the war in the Balkans, members of the Kulturbund were some of the loudest voices calling for ethnic Germans to abandon their land, evacuate Yugoslavia and head to safer areas of the German Reich.
References
Literature
Z
Yugoslavia in World War II
|
```go
// +build go1.6,!go1.7
/*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
package transport
import (
"net"
"golang.org/x/net/context"
)
// dialContext connects to the address on the named network.
func dialContext(ctx context.Context, network, address string) (net.Conn, error) {
return (&net.Dialer{Cancel: ctx.Done()}).Dial(network, address)
}
```
|
Roman Viktorovich Shapkin (; born 27 May 1971) is a Russian professional football coach and a former player.
Club career
He played 7 seasons in the Russian Football National League for FC Spartak-Orekhovo Orekhovo-Zuyevo and FC Dynamo Bryansk.
References
1971 births
People from Orekhovo-Zuyevo
Living people
Soviet men's footballers
Russian men's footballers
Men's association football defenders
FC Torpedo Moscow players
FC Leon Saturn Ramenskoye players
FC Dynamo Bryansk players
Russian football managers
FC Znamya Truda Orekhovo-Zuyevo players
Footballers from Moscow Oblast
FC Kolos Krasnodar players
|
```shell
#!/bin/bash
set -xe
arch=$1
source $(dirname "$0")/tc-tests-utils.sh
mkdir -p ${TASKCLUSTER_ARTIFACTS} || true
cp ${DS_ROOT_TASK}/DeepSpeech/ds/tensorflow/bazel*.log ${TASKCLUSTER_ARTIFACTS}/
case $arch in
"--x86_64")
release_folder="Release-iphonesimulator"
artifact_name="deepspeech_ios.framework.x86_64.tar.xz"
;;
"--arm64")
release_folder="Release-iphoneos"
artifact_name="deepspeech_ios.framework.arm64.tar.xz"
;;
esac
${TAR} -cf - \
-C ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/swift/DerivedData/Build/Products/${release_folder}/ deepspeech_ios.framework \
| ${XZ} > "${TASKCLUSTER_ARTIFACTS}/${artifact_name}"
```
|
The men's 3000 metres steeplechase event at the 2018 African Championships in Athletics was held on 3 August in Asaba, Nigeria.
Results
References
2018 African Championships in Athletics
Steeplechase at the African Championships in Athletics
|
FairyTale: A True Story is a 1997 fantasy drama film directed by Charles Sturridge and produced by Bruce Davey and Wendy Finerman. It is loosely based on the story of the Cottingley Fairies, and follows two children in 1917 England who take a photograph soon believed to be the first scientific evidence of the existence of fairies. The film was produced by Icon Productions and was distributed by Paramount Pictures in the United States and by Warner Bros. internationally.
Plot
Early 20th-century Europe was a time and a place rife with conflicting forces, from the battlefields of World War I to the peaceful countryside of rural England. Scientific advances such as electric light and photography appeared magical to some; spiritualism was championed by Sir Arthur Conan Doyle while his friend Harry Houdini decried false mediums who prey upon grieving families. J.M. Barrie's Peter Pan charmed theatergoers of all ages. Young Frances Griffiths, whose father is missing in action, arrives by train to stay with her cousin Elsie Wright in rural Bradford, West Yorkshire.
Polly Wright, Elsie's mother, is deep in mourning for her son Joseph, a gifted artist who died at the age of ten, and she keeps Joseph's room and art works intact. Elsie is not allowed to wear colours or to play with his toys, but she has taken the unfinished fairy-house he built up to her garret bedroom where her doting father, Arthur, regales her with fairy tales. He is a bit of a local hero, responsible for the electrification of the local mill, where children as young as Elsie go to work. He is also an amateur photographer and chess player. When Frances arrives she and Elsie discover a shared fascination with fairies, whom they encounter down at the "beck", a nearby brook. They abscond with Arthur's camera one afternoon to take pictures of the fairies, hoping to give Polly something to believe in. When she comes home after attending a meeting of the Theosophical Society, where she hears stories of angels and all sorts of ethereal beings, she finds Arthur reviewing the prints in disbelief, but she thinks they are real. She takes them to Theosophist lecturer E.L. Gardner, who has them analysed by a professional and then brings them to the attention of Sir Arthur Conan Doyle. The photos are pronounced genuine, or at least devoid of trickery.
No one except Houdini believes that young children could be capable of photographic fraud, and Conan Doyle himself arrives at the girls' home with Houdini, Gardner and two new cameras. Arthur catches Houdini poking around and tells him point-blank that he doesn't believe that the fairies are real, but that no trickery took place in his darkroom either. Abetted by the buffoonish Gardner, Elsie and Frances soon come up with two more photos and Conan Doyle has the story published in The Strand Magazine, promising everyone's names will be changed. But a newsman soon identifies the beck in Cottingley, tracing the girls through the local school and besieging the family. Hundreds of people invade the village in automobiles and on foot, and the fairies flee the obstreperous mobs. By way of apology to the fairies, the girls finish Joseph's fairy-house and leave it in the forest as a gift.
The girls are invited to London by Conan Doyle, where they embrace their celebrity and see Houdini perform. In a quiet moment backstage Houdini asks Elsie if she wants to know how he does his tricks, and she wisely declines. And when a reporter asks, he exclaims, "Masters of illusion never reveal their secrets!" Back in Yorkshire, while the girls and Polly are away, Arthur has a chess match with a local champion reputed to be mute, and the newsman breaks into their house. He discovers a cache of paper dolls in the form of fairies in a portfolio in Joseph's room, but he is frightened away by the apparition of a young boy, leaving the evidence behind. Arthur wins his match, wringing a shout from his opponent, and another myth is debunked. After the children return home, the fairies reappear, and finally, Frances' father comes home as well.
Cast
Peter O'Toole as Sir Arthur Conan Doyle
Florence Hoath as Elsie Wright
Elizabeth Earl as Frances Griffiths
Harvey Keitel as Harry Houdini
Paul McGann as Arthur Wright
Bill Nighy as Edward Gardner
Phoebe Nicholls as Polly Wright
Anna Chancellor as Peter Pan
Mel Gibson as Sergeant Major Griffiths
Don Henderson as Sydney Chalker
Background
In 1920 Sir Arthur Conan Doyle, the creator of Sherlock Holmes, who had developed a strong belief in spiritualism in the last third of his life, was commissioned by the Strand Magazine to write an article on fairies, and it was while preparing this article that he first heard of the Cottingley Fairies.
In 1922 he published The Coming of the Fairies, which included numerous photographs and extensive discussion.
Magician Harry Houdini publicly exposed the many fraudulent mediums he discovered during his search for a genuine medium who could help him communicate with his late mother.
The two maintained a friendship for several years, exchanging several letters about supernatural phenomena.
Filming and production
Much of the film was shot on location in Cottingley, Bingley, and Keighley in the City of Bradford. Filming locations include Cottingley Town Hall, Cottingley Beck, and Keighley railway station along with the rest of the Keighley and Worth Valley Railway. The cinematography was by Michael Coulter, with art direction by Sam Riley. The film was produced by Mel Gibson's production company Icon Productions and Gibson appears in an uncredited cameo as Frances' father.
Release
The film was released in the United States on 24 October 1997.
The film got its UK premiere in Bradford, the city it was filmed and set in, on 8 February 1998. It was shown simultaneously at the Pictureville Cinema (which is based in the National Science and Media Museum), and Bradford Odeon just over the road. The Bradford premiere was attended by the likes of Dominic Brunt (among other Emmerdale stars), politician Gerry Sutcliffe, the lord mayor of Bradford Tony Cairns, Frances Griffiths' daughter Christine Lynch, the film's stars Phoebe Nicholls, Tim McInnerny, Florence Hoath, and Elizabeth 'Lizzie' Earl, along with the director Charles Sturridge. The after party was based at the Bradford Alhambra, which is situated in between the National Science and Media Museum and the Bradford Odeon.
Reception
FairyTale: A True Story received mixed reviews from critics, as it holds a rating of 56% on Rotten Tomatoes from 32 reviews, with an average rating of 6.1/10. The consensus states: "Believe -- Fairy Tale: A True Storys sense of wonder and magic may help overlook the science behind the film's flaws." Audiences polled by CinemaScore gave the film an average grade of "B+" on an A+ to F scale.
The film grossed just over $14 million in the US and Canada. In the UK, the film grossed £2.4 million ($4 million) for a worldwide total of over $18 million.
See also
Cottingley Fairies
Photographing Fairies, another 1997 film also inspired by the Cottingley Fairies.
The Cottingley Secret, a 2017 novel by Hazel Gaynor
The Cottingley Cuckoo, a 2021 novel by Alison Littlewood
References
External links
A look back at FairyTale: A True Story at Wild About Harry
1997 films
1997 fantasy films
Films set in 1917
Films set in Bradford
Films set in Yorkshire
Films shot in Yorkshire
Icon Productions films
Films directed by Charles Sturridge
Films with screenplays by Tom McLoughlin
Films about magic and magicians
Films produced by Bruce Davey
Films scored by Zbigniew Preisner
Films shot at Pinewood Studios
American films based on actual events
French films based on actual events
Films about fairies and sprites
Cultural depictions of Harry Houdini
Cultural depictions of Arthur Conan Doyle
American fantasy drama films
French fantasy drama films
English-language French films
1990s English-language films
1990s American films
1990s French films
Paramount Pictures films
Warner Bros. films
|
```html
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "path_to_url">
<html xmlns="path_to_url" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.6: path_to_url" />
<title>Boost write_graphml</title>
<link rel="stylesheet" href="../../../rst.css" type="text/css" />
</head>
<body>
<div class="document" id="logo-write-graphml">
<h1 class="title"><a class="reference external" href="../../../index.htm"><img align="middle" alt="Boost" class="align-middle" src="../../../boost.png" /></a> <tt class="docutils literal"><span class="pre">write_graphml</span></tt></h1>
accompanying file LICENSE_1_0.txt or copy at
path_to_url
Authors: Tiago de Paula Peixoto -->
<pre class="literal-block">
template<typename Graph>
void
write_graphml(std::ostream& out, const Graph& g, const dynamic_properties& dp,
bool ordered_vertices=false);
template<typename Graph, typename VertexIndexMap>
void
write_graphml(std::ostream& out, const Graph& g, VertexIndexMap vertex_index,
const dynamic_properties& dp, bool ordered_vertices=false);
</pre>
<p>This is to write a BGL graph object into an output stream in the
<a class="reference external" href="path_to_url">GraphML</a> format. Both overloads of <tt class="docutils literal"><span class="pre">write_graphml</span></tt> will emit all of
the properties stored in the <a class="reference external" href="../../property_map/doc/dynamic_property_map.html">dynamic_properties</a> object, thereby
retaining the properties that have been read in through the dual
function <a class="reference external" href="read_graphml.html">read_graphml</a>. The second overload must be used when the
graph doesn't have an internal vertex index map, which must then be
supplied with the appropriate parameter.</p>
<div class="contents topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#where-defined" id="id2">Where Defined</a></li>
<li><a class="reference internal" href="#parameters" id="id3">Parameters</a></li>
<li><a class="reference internal" href="#example" id="id4">Example</a></li>
<li><a class="reference internal" href="#see-also" id="id5">See Also</a></li>
<li><a class="reference internal" href="#notes" id="id6">Notes</a></li>
</ul>
</div>
<div class="section" id="where-defined">
<h1><a class="toc-backref" href="#id2">Where Defined</a></h1>
<p><tt class="docutils literal"><span class="pre"><boost/graph/graphml.hpp></span></tt></p>
</div>
<div class="section" id="parameters">
<h1><a class="toc-backref" href="#id3">Parameters</a></h1>
<dl class="docutils">
<dt>OUT: <tt class="docutils literal"><span class="pre">std::ostream&</span> <span class="pre">out</span></tt></dt>
<dd>A standard <tt class="docutils literal"><span class="pre">std::ostream</span></tt> object.</dd>
<dt>IN: <tt class="docutils literal"><span class="pre">VertexListGraph&</span> <span class="pre">g</span></tt></dt>
<dd>A directed or undirected graph. The
graph's type must be a model of <a class="reference external" href="VertexListGraph.html">VertexListGraph</a>. If the graph
doesn't have an internal <tt class="docutils literal"><span class="pre">vertex_index</span></tt> property map, one
must be supplied with the vertex_index parameter.</dd>
<dt>IN: <tt class="docutils literal"><span class="pre">VertexIndexMap</span> <span class="pre">vertex_index</span></tt></dt>
<dd>A vertex property map containing the indexes in the range
[0,num_vertices(g)].</dd>
<dt>IN: <tt class="docutils literal"><span class="pre">dynamic_properties&</span> <span class="pre">dp</span></tt></dt>
<dd>Contains all of the vertex, edge, and graph properties that should be
emitted by the GraphML writer.</dd>
<dt>IN: <tt class="docutils literal"><span class="pre">bool</span> <span class="pre">ordered_vertices</span></tt></dt>
<dd>This tells whether or not the order of the vertices from vertices(g)
matches the order of the indexes. If <tt class="docutils literal"><span class="pre">true</span></tt>, the <tt class="docutils literal"><span class="pre">parse.nodeids</span></tt>
graph attribute will be set to <tt class="docutils literal"><span class="pre">canonical</span></tt>. Otherwise it will be
set to <tt class="docutils literal"><span class="pre">free</span></tt>.</dd>
</dl>
</div>
<div class="section" id="example">
<h1><a class="toc-backref" href="#id4">Example</a></h1>
<p>This example demonstrates using BGL-GraphML interface to write
a BGL graph into a GraphML format file.</p>
<pre class="literal-block">
enum files_e { dax_h, yow_h, boz_h, zow_h, foo_cpp,
foo_o, bar_cpp, bar_o, libfoobar_a,
zig_cpp, zig_o, zag_cpp, zag_o,
libzigzag_a, killerapp, N };
const char* name[] = { "dax.h", "yow.h", "boz.h", "zow.h", "foo.cpp",
"foo.o", "bar.cpp", "bar.o", "libfoobar.a",
"zig.cpp", "zig.o", "zag.cpp", "zag.o",
"libzigzag.a", "killerapp" };
int main(int,char*[])
{
typedef pair<int,int> Edge;
Edge used_by[] = {
Edge(dax_h, foo_cpp), Edge(dax_h, bar_cpp), Edge(dax_h, yow_h),
Edge(yow_h, bar_cpp), Edge(yow_h, zag_cpp),
Edge(boz_h, bar_cpp), Edge(boz_h, zig_cpp), Edge(boz_h, zag_cpp),
Edge(zow_h, foo_cpp),
Edge(foo_cpp, foo_o),
Edge(foo_o, libfoobar_a),
Edge(bar_cpp, bar_o),
Edge(bar_o, libfoobar_a),
Edge(libfoobar_a, libzigzag_a),
Edge(zig_cpp, zig_o),
Edge(zig_o, libzigzag_a),
Edge(zag_cpp, zag_o),
Edge(zag_o, libzigzag_a),
Edge(libzigzag_a, killerapp)
};
const int nedges = sizeof(used_by)/sizeof(Edge);
typedef adjacency_list< vecS, vecS, directedS,
property< vertex_color_t, string >,
property< edge_weight_t, int >
> Graph;
Graph g(used_by, used_by + nedges, N);
graph_traits<Graph>::vertex_iterator v, v_end;
for (boost::tie(v,v_end) = vertices(g); v != v_end; ++v)
put(vertex_color_t(), g, *v, name[*v]);
graph_traits<Graph>::edge_iterator e, e_end;
for (boost::tie(e,e_end) = edges(g); e != e_end; ++e)
put(edge_weight_t(), g, *e, 3);
dynamic_properties dp;
dp.property("name", get(vertex_color_t(), g));
dp.property("weight", get(edge_weight_t(), g));
write_graphml(std::cout, g, dp, true);
}
</pre>
<p>The output will be:</p>
<pre class="literal-block">
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="path_to_url xmlns:xsi="path_to_url xsi:schemaLocation="path_to_url path_to_url
<key id="key0" for="node" attr.name="name" attr.type="string" />
<key id="key1" for="edge" attr.name="weight" attr.type="int" />
<graph id="G" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
<node id="n0">
<data key="key0">dax.h</data>
</node>
<node id="n1">
<data key="key0">yow.h</data>
</node>
<node id="n2">
<data key="key0">boz.h</data>
</node>
<node id="n3">
<data key="key0">zow.h</data>
</node>
<node id="n4">
<data key="key0">foo.cpp</data>
</node>
<node id="n5">
<data key="key0">foo.o</data>
</node>
<node id="n6">
<data key="key0">bar.cpp</data>
</node>
<node id="n7">
<data key="key0">bar.o</data>
</node>
<node id="n8">
<data key="key0">libfoobar.a</data>
</node>
<node id="n9">
<data key="key0">zig.cpp</data>
</node>
<node id="n10">
<data key="key0">zig.o</data>
</node>
<node id="n11">
<data key="key0">zag.cpp</data>
</node>
<node id="n12">
<data key="key0">zag.o</data>
</node>
<node id="n13">
<data key="key0">libzigzag.a</data>
</node>
<node id="n14">
<data key="key0">killerapp</data>
</node>
<edge id="e0" source="n0" target="n4">
<data key="key1">3</data>
</edge>
<edge id="e1" source="n0" target="n6">
<data key="key1">3</data>
</edge>
<edge id="e2" source="n0" target="n1">
<data key="key1">3</data>
</edge>
<edge id="e3" source="n1" target="n6">
<data key="key1">3</data>
</edge>
<edge id="e4" source="n1" target="n11">
<data key="key1">3</data>
</edge>
<edge id="e5" source="n2" target="n6">
<data key="key1">3</data>
</edge>
<edge id="e6" source="n2" target="n9">
<data key="key1">3</data>
</edge>
<edge id="e7" source="n2" target="n11">
<data key="key1">3</data>
</edge>
<edge id="e8" source="n3" target="n4">
<data key="key1">3</data>
</edge>
<edge id="e9" source="n4" target="n5">
<data key="key1">3</data>
</edge>
<edge id="e10" source="n5" target="n8">
<data key="key1">3</data>
</edge>
<edge id="e11" source="n6" target="n7">
<data key="key1">3</data>
</edge>
<edge id="e12" source="n7" target="n8">
<data key="key1">3</data>
</edge>
<edge id="e13" source="n8" target="n13">
<data key="key1">3</data>
</edge>
<edge id="e14" source="n9" target="n10">
<data key="key1">3</data>
</edge>
<edge id="e15" source="n10" target="n13">
<data key="key1">3</data>
</edge>
<edge id="e16" source="n11" target="n12">
<data key="key1">3</data>
</edge>
<edge id="e17" source="n12" target="n13">
<data key="key1">3</data>
</edge>
<edge id="e18" source="n13" target="n14">
<data key="key1">3</data>
</edge>
</graph>
</graphml>
</pre>
</div>
<div class="section" id="see-also">
<h1><a class="toc-backref" href="#id5">See Also</a></h1>
<p>_read_graphml</p>
</div>
<div class="section" id="notes">
<h1><a class="toc-backref" href="#id6">Notes</a></h1>
<blockquote>
<ul class="simple">
<li>Note that you can use GraphML file write facilities without linking
against the <tt class="docutils literal"><span class="pre">boost_graph</span></tt> library.</li>
</ul>
</blockquote>
</div>
</div>
<div class="footer">
<hr class="footer" />
Generated on: 2009-06-12 00:41 UTC.
Generated by <a class="reference external" href="path_to_url">Docutils</a> from <a class="reference external" href="path_to_url">reStructuredText</a> source.
</div>
</body>
</html>
```
|
Cannoneer Jabůrek (), published in 1884, is a cantastoria that mocks war propaganda that often made up stories about military heroism. It is one of the most popular parodies of kramářská píseň, the Czech form of cantastoria.
The song
The song is a story of a valiant cannoneer Jabůrek who, as the song says, took part in the Battle of Königgrätz (1866). Even after the enemy's cannonballs tore off both his arms, he continued to load his cannon with bare feet, etc. When his head was torn off, it flew to the general and said: "Reporting, I cannot give a salute." The song further says that for his valiance he was promoted into nobility to be named Edler von den Jabůrek, and that he had no head, no big deal, because there was plenty of headless nobility already. No real event is described in the song; however, at the times there were newspaper reports and legends describing various kinds of exaggerated heroism.
1. Tam u Královýho Hradce, lítaly tam koule prudce
z kanónů a flintiček do ubohých lidiček.
R: A u kanónu stál a pořád ládo-, ládo-, ládo-,
u kanónu stál a furt jen ládoval.
2. Kmáni, šarže, oficíři, kobyly i kanonýři
po zemí se válejí, rány je moc pálejí.
R: A u kanónu stál...
There is a Ukrainian language variant sung by Ukrainian Sich Riflemen, a Ukrainian unit within the Austro-Hungarian Army during the First World War, titled "При каноні стояв" ("He Stood by a Cannon"). The overall idea is the same, but the text is rather different:
При каноні стояв
І фурт-фурт ладував,
І фурт-фурт, і фурт-фурт,
І фурт-фурт ладував.
Гостра куля летіла
Йому руку відтяла.
Але він все стояв
І фурт-фурт ладував.
<etc.>
In culture
Czech
There was a comic duetto "Stará vojna" featuring two fictional military invalids: Cannoneer Jabůrek and Friar Kalina, music by , lyrics by Josef Šváb.
The song about Jabůrek is sung in the book The Good Soldier Švejk.
The brave cannoneer is in the center of the plot of a satirical radio play Jaburek by Austrian playwright Franz Hiesel.
There is a tavern U Kanonýra Jabůrka in Sadová, a place around which the battle was held.
In 1968 recorded a single, Králové Hradecké Zvony / Kanonýr Jabůrek.
In 1985 the Czech folk band recorded the song with Supraphon in the LP album Tam u Královýho Hradce.
Ukrainian
The fragments of the Ukrainian version of the song are quoted in the epic novel Shruba (Шруба) by as the skeleton of the plot.
The song is performed in the 1990 film Tall Tales about Ivan (Небилиці про Івана) directed by Borys Ivchenko.
The song has been performed by a number of Ukrainian bands, see the Ukrainian version of the article.
See also
List of anti-war songs
References
1884 songs
Anti-war songs
Czech songs
Czech humour
Songs about soldiers
Songs about the military
Austro-Prussian War
|
```javascript
/**
* Shell
* 2016/06/20
*/
const Data = require('./data');
const List = require('./list/');
const Toolbar = require('./toolbar');
const Category = require('./category/');
class ShellManager {
constructor() {
const tabbar = antSword['tabbar'];
tabbar.addTab('tab_shellmanager', '<i class="fa fa-th-large"></i>', null, null, true, false);
const cell = tabbar.cells('tab_shellmanager');
const layout = cell.attachLayout('2U');
// -
this.toolbar = new Toolbar(layout, this);
//
this.list = new List(layout.cells('a'), this);
//
this.category = new Category(layout.cells('b'), this);
this.searchPop = null;
this.searchForm = null;
this.initSearchUI();
this.reloadData();
//
antSword['menubar'].reg('shellmanager-search', () => {
antSword
.tabbar
.tabs("tab_shellmanager")
.setActive();
if (this.searchPop.isVisible()) {
this
.searchPop
.hide();
} else {
this
.searchPop
.show(120, document.body.clientHeight, 100, 100);
}
});
}
/**
* shell
* @param {object} arg = {}
* @return {[type]} [description]
*/
reloadData(arg = {}) {
if (this.searchPop.isVisible()) {
let sdata = this.searchForm.getValues();
try {
RegExp(sdata['searchtext']);
} catch (e) {
var tmpstr = sdata['searchtext'].replace(/([\$\(\)\*\+\.\[\?\\\^\{\|])/g, function($, $1) {
return `\\${$1}`;
});
sdata['searchtext'] = tmpstr;
}
var searchObj = {};
switch (sdata['searchtype']) {
case 'all':
searchObj["$or"] = [{
"url": {
$regex: sdata['searchtext']
}
}, {
"pwd": {
$regex: sdata['searchtext']
}
}, {
"note": {
$regex: sdata['searchtext']
}
}];
break;
default:
searchObj[sdata['searchtype']] = {
$regex: sdata['searchtext']
};
break;
}
//
searchObj['category'] = this
.category
.sidebar
.getActiveItem();
$.extend(arg, searchObj);
}
const _data = Data.get(arg);
// UI::
this.list.grid.clearAll();
this.list.grid.parse({
'rows': _data['data']
}, 'json');
// UI::
for (let _ in _data['category']) {
// bubble
if (!!this.category['sidebar'].items(_)) {
this
.category['sidebar']
.items(_)
.setBubble(_data['category'][_]);
continue;
}
//
this
.category['sidebar']
.addItem({
id: _,
bubble: _data['category'][_],
text: `<i class="fa fa-folder-o"></i> ${antSword.noxss(_)}`
});
}
//
this.category.sidebar.items(arg['category'] || 'default').setActive(true);
//
this
.category
.updateHeader();
this
.list
.updateHeader(_data['data'].length);
}
initSearchUI() {
let that = this;
let searchPop = new dhtmlXPopup();
let formData = [{
type: "settings",
position: "label-left",
labelWidth: 80,
inputWidth: 130
}, {
type: "combo",
name: 'searchtype',
options: [{
text: "All",
value: "all",
selected: true
}, {
text: "URL",
value: "url"
}, {
text: "Password",
value: "pwd"
}, {
text: "Remark",
value: "note"
}]
}, {
type: 'newcolumn',
offset: 20
}, {
type: "input",
name: "searchtext"
}];
searchPop.attachEvent("onShow", function() {
if (that.searchForm == null) {
that.searchForm = searchPop.attachForm(formData);
// that.searchForm.attachEvent("onButtonClick", function(){ searchPop.hide();
// });
that
.searchForm
.attachEvent("onInputChange", (name, value, form) => {
if (name == "searchtext") {
that.reloadData({});
}
});
}
// popup
var poparrows = document.getElementsByClassName('dhx_popup_arrow dhx_popup_arrow_top');
if (poparrows.length > 0 && poparrows[0].style.display != "none") {
poparrows[0].style.display = "none";
}
that
.searchForm
.setItemFocus("searchtext");
});
// searchPop.attachEvent("onBeforeHide", function(type, ev, id){ return false;
// });
that.searchPop = searchPop;
}
}
module.exports = ShellManager;
```
|
```go
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package github
import (
"context"
"encoding/json"
"fmt"
)
// HookDelivery represents the data that is received from GitHub's Webhook Delivery API
//
// GitHub API docs:
// - path_to_url#list-deliveries-for-a-repository-webhook
// - path_to_url#get-a-delivery-for-a-repository-webhook
type HookDelivery struct {
ID *int64 `json:"id,omitempty"`
GUID *string `json:"guid,omitempty"`
DeliveredAt *Timestamp `json:"delivered_at,omitempty"`
Redelivery *bool `json:"redelivery,omitempty"`
Duration *float64 `json:"duration,omitempty"`
Status *string `json:"status,omitempty"`
StatusCode *int `json:"status_code,omitempty"`
Event *string `json:"event,omitempty"`
Action *string `json:"action,omitempty"`
InstallationID *int64 `json:"installation_id,omitempty"`
RepositoryID *int64 `json:"repository_id,omitempty"`
// Request is populated by GetHookDelivery.
Request *HookRequest `json:"request,omitempty"`
// Response is populated by GetHookDelivery.
Response *HookResponse `json:"response,omitempty"`
}
func (d HookDelivery) String() string {
return Stringify(d)
}
// HookRequest is a part of HookDelivery that contains
// the HTTP headers and the JSON payload of the webhook request.
type HookRequest struct {
Headers map[string]string `json:"headers,omitempty"`
RawPayload *json.RawMessage `json:"payload,omitempty"`
}
func (r HookRequest) String() string {
return Stringify(r)
}
// HookResponse is a part of HookDelivery that contains
// the HTTP headers and the response body served by the webhook endpoint.
type HookResponse struct {
Headers map[string]string `json:"headers,omitempty"`
RawPayload *json.RawMessage `json:"payload,omitempty"`
}
func (r HookResponse) String() string {
return Stringify(r)
}
// ListHookDeliveries lists webhook deliveries for a webhook configured in a repository.
//
// GitHub API docs: path_to_url#list-deliveries-for-a-repository-webhook
//
//meta:operation GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries
func (s *RepositoriesService) ListHookDeliveries(ctx context.Context, owner, repo string, id int64, opts *ListCursorOptions) ([]*HookDelivery, *Response, error) {
u := fmt.Sprintf("repos/%v/%v/hooks/%v/deliveries", owner, repo, id)
u, err := addOptions(u, opts)
if err != nil {
return nil, nil, err
}
req, err := s.client.NewRequest("GET", u, nil)
if err != nil {
return nil, nil, err
}
deliveries := []*HookDelivery{}
resp, err := s.client.Do(ctx, req, &deliveries)
if err != nil {
return nil, resp, err
}
return deliveries, resp, nil
}
// GetHookDelivery returns a delivery for a webhook configured in a repository.
//
// GitHub API docs: path_to_url#get-a-delivery-for-a-repository-webhook
//
//meta:operation GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}
func (s *RepositoriesService) GetHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) {
u := fmt.Sprintf("repos/%v/%v/hooks/%v/deliveries/%v", owner, repo, hookID, deliveryID)
req, err := s.client.NewRequest("GET", u, nil)
if err != nil {
return nil, nil, err
}
h := new(HookDelivery)
resp, err := s.client.Do(ctx, req, h)
if err != nil {
return nil, resp, err
}
return h, resp, nil
}
// RedeliverHookDelivery redelivers a delivery for a webhook configured in a repository.
//
// GitHub API docs: path_to_url#redeliver-a-delivery-for-a-repository-webhook
//
//meta:operation POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts
func (s *RepositoriesService) RedeliverHookDelivery(ctx context.Context, owner, repo string, hookID, deliveryID int64) (*HookDelivery, *Response, error) {
u := fmt.Sprintf("repos/%v/%v/hooks/%v/deliveries/%v/attempts", owner, repo, hookID, deliveryID)
req, err := s.client.NewRequest("POST", u, nil)
if err != nil {
return nil, nil, err
}
h := new(HookDelivery)
resp, err := s.client.Do(ctx, req, h)
if err != nil {
return nil, resp, err
}
return h, resp, nil
}
// ParseRequestPayload parses the request payload. For recognized event types,
// a value of the corresponding struct type will be returned.
func (d *HookDelivery) ParseRequestPayload() (interface{}, error) {
eType, ok := messageToTypeName[d.GetEvent()]
if !ok {
return nil, fmt.Errorf("unsupported event type %q", d.GetEvent())
}
e := &Event{Type: &eType, RawPayload: d.Request.RawPayload}
return e.ParsePayload()
}
```
|
```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title> | Android Interview</title>
<meta name="generator" content="VuePress 1.9.9">
<meta name="description" content="">
<link rel="preload" href="/AndroidInterview-Q-A/assets/css/0.styles.aa90f834.css" as="style"><link rel="preload" href="/AndroidInterview-Q-A/assets/js/app.e169f4c1.js" as="script"><link rel="preload" href="/AndroidInterview-Q-A/assets/js/2.9b17f659.js" as="script"><link rel="preload" href="/AndroidInterview-Q-A/assets/js/69.23899484.js" as="script"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/10.c2573781.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/11.ae832302.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/12.3343ef8e.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/13.5770262b.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/14.e70957ef.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/15.aa48ebad.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/16.48c282a5.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/17.83878a78.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/18.f413419c.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/19.858374d0.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/20.52095afd.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/21.aacaa098.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/22.d5fe6804.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/23.f7343788.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/24.d281157a.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/25.1c160e8c.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/26.5120699f.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/27.699515ad.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/28.876150cf.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/29.ee8cd5bf.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/3.8be43c93.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/30.714ef1cd.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/31.88fa871a.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/32.f032c410.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/33.a911dcef.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/34.2aabf7dc.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/35.1cdad8e8.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/36.2c4b17cd.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/37.1c5cf1ee.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/38.12af5809.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/39.85f91710.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/4.ff57f142.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/40.bb76f148.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/41.000bfe72.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/42.026c4ae3.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/43.a64d3d9d.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/44.92abeb4c.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/45.5b266982.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/46.2308134c.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/47.bb79218f.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/48.1c9fc7d5.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/49.61ac7bc9.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/5.082bf8bb.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/50.1885cbd0.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/51.cd45fdff.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/52.e9466cf7.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/53.6937ae5b.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/54.eb2ead99.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/55.acc92e1e.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/56.c6f6eeff.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/57.48c68b3e.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/58.a2543ba2.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/59.8f479c38.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/6.a76c0e23.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/60.fc4f75b0.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/61.b1c46878.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/62.fff21d87.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/63.9d3d8477.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/64.010d135d.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/65.6cbce77c.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/66.fdfbb9d1.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/67.7715276d.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/68.3ef20b75.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/7.71d197a6.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/70.9e608dec.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/71.acaba3e2.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/72.fbae8ba4.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/73.d2cbdd12.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/74.a9217ec5.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/75.1d694460.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/76.3e60f4da.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/77.1589c405.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/8.fa989ad9.js"><link rel="prefetch" href="/AndroidInterview-Q-A/assets/js/9.8106ef0a.js">
<link rel="stylesheet" href="/AndroidInterview-Q-A/assets/css/0.styles.aa90f834.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="path_to_url" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/AndroidInterview-Q-A/" class="home-link router-link-active"><!----> <span class="site-name">Android Interview</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Android" class="dropdown-title"><span class="title">Android</span> <span class="arrow down"></span></button> <button type="button" aria-label="Android" class="mobile-dropdown-title"><span class="title">Android</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/AndroidInterview-Q-A/Android/" class="nav-link">
Android
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Java" class="dropdown-title"><span class="title">Java</span> <span class="arrow down"></span></button> <button type="button" aria-label="Java" class="mobile-dropdown-title"><span class="title">Java</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/AndroidInterview-Q-A/Java/" class="nav-link">
Java
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow down"></span></button> <button type="button" aria-label="" class="mobile-dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/AndroidInterview-Q-A//" class="nav-link">
</a></li></ul></div></div> <a href="path_to_url" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="path_to_url" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Android" class="dropdown-title"><span class="title">Android</span> <span class="arrow down"></span></button> <button type="button" aria-label="Android" class="mobile-dropdown-title"><span class="title">Android</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/AndroidInterview-Q-A/Android/" class="nav-link">
Android
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Java" class="dropdown-title"><span class="title">Java</span> <span class="arrow down"></span></button> <button type="button" aria-label="Java" class="mobile-dropdown-title"><span class="title">Java</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/AndroidInterview-Q-A/Java/" class="nav-link">
Java
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow down"></span></button> <button type="button" aria-label="" class="mobile-dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/AndroidInterview-Q-A//" class="nav-link">
</a></li></ul></div></div> <a href="path_to_url" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="path_to_url" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span></span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/AndroidInterview-Q-A/%E4%B8%93%E9%A2%98/" aria-current="page" class="active sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li><li><a href="/AndroidInterview-Q-A//.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"></div> <footer class="page-edit"><div class="edit-link"><a href="path_to_url/README.md" target="_blank" rel="noopener noreferrer">Github</a> <span><svg xmlns="path_to_url" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">:</span> <span class="time">2021/5/6 18:49:32</span></div></footer> <!----> </main></div><div class="global-ui"></div></div>
<script src="/AndroidInterview-Q-A/assets/js/app.e169f4c1.js" defer></script><script src="/AndroidInterview-Q-A/assets/js/2.9b17f659.js" defer></script><script src="/AndroidInterview-Q-A/assets/js/69.23899484.js" defer></script>
</body>
</html>
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.